diff --git a/ChangeLog b/ChangeLog index cbdbc137c64..b7f23cf9e97 100755 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +24.29.0 +=== + - Added support for v202411 + - Removed examples for v202402 + - Removed support for v202311 + 24.28.0 === - Added support for v202408 diff --git a/examples/AdManager/CSharp/AdManager.Examples.CSharp.csproj b/examples/AdManager/CSharp/AdManager.Examples.CSharp.csproj index 6c8490d2820..4aa032dea4c 100644 --- a/examples/AdManager/CSharp/AdManager.Examples.CSharp.csproj +++ b/examples/AdManager/CSharp/AdManager.Examples.CSharp.csproj @@ -15,7 +15,7 @@ - + diff --git a/examples/AdManager/CSharp/OAuth/AdManager.Examples.CSharp.OAuth.csproj b/examples/AdManager/CSharp/OAuth/AdManager.Examples.CSharp.OAuth.csproj index b11fcbe689e..d52dc9aaf63 100755 --- a/examples/AdManager/CSharp/OAuth/AdManager.Examples.CSharp.OAuth.csproj +++ b/examples/AdManager/CSharp/OAuth/AdManager.Examples.CSharp.OAuth.csproj @@ -84,7 +84,7 @@ - + diff --git a/examples/AdManager/CSharp/OAuth/ConsoleExample.cs b/examples/AdManager/CSharp/OAuth/ConsoleExample.cs index 40a3dffc636..08749c264e7 100644 --- a/examples/AdManager/CSharp/OAuth/ConsoleExample.cs +++ b/examples/AdManager/CSharp/OAuth/ConsoleExample.cs @@ -13,8 +13,8 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202408; -using Google.Api.Ads.AdManager.v202408; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; using Google.Api.Ads.Common.Lib; using System; diff --git a/examples/AdManager/CSharp/OAuth/Default.aspx.cs b/examples/AdManager/CSharp/OAuth/Default.aspx.cs index 1e6d7b576d2..1c8fbd4cc42 100644 --- a/examples/AdManager/CSharp/OAuth/Default.aspx.cs +++ b/examples/AdManager/CSharp/OAuth/Default.aspx.cs @@ -15,8 +15,8 @@ using Google.Api.Ads.Common.Lib; using Google.Api.Ads.Common.Util.Reports; using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202408; -using Google.Api.Ads.AdManager.v202408; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; using System; using System.Data; diff --git a/examples/AdManager/CSharp/v202402/ActivityGroupService/CreateActivityGroups.cs b/examples/AdManager/CSharp/v202402/ActivityGroupService/CreateActivityGroups.cs deleted file mode 100755 index 7c2511bb070..00000000000 --- a/examples/AdManager/CSharp/v202402/ActivityGroupService/CreateActivityGroups.cs +++ /dev/null @@ -1,116 +0,0 @@ -// Copyright 2019 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.v202402; - -using System; - -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 -{ - /// - /// This code example creates new activity groups. To determine which activity - /// groups exist, run GetAllActivityGroups.cs. - /// - public class CreateActivityGroups : SampleBase - { - /// - /// Returns a description about the code example. - /// - public override string Description - { - get - { - return - "This code example creates new activity groups. To determine which activity " + - "groups exist, run GetAllActivityGroups.cs."; - } - } - - /// - /// Main method, to run this code example as a standalone application. - /// - public static void Main() - { - CreateActivityGroups codeExample = new CreateActivityGroups(); - Console.WriteLine(codeExample.Description); - codeExample.Run(new AdManagerUser()); - } - - /// - /// Run the code example. - /// - public void Run(AdManagerUser user) - { - using (ActivityGroupService activityGroupService = - user.GetService()) - { - // Set the ID of the advertiser company this activity group is associated - // with. - long advertiserCompanyId = long.Parse(_T("INSERT_ADVERTISER_COMPANY_ID_HERE")); - - // Create a short-term activity group. - ActivityGroup shortTermActivityGroup = new ActivityGroup(); - shortTermActivityGroup.name = "Short-term activity group #" + GetTimeStamp(); - shortTermActivityGroup.companyIds = new long[] - { - advertiserCompanyId - }; - shortTermActivityGroup.clicksLookback = 1; - shortTermActivityGroup.impressionsLookback = 1; - - // Create a long-term activity group. - ActivityGroup longTermActivityGroup = new ActivityGroup(); - longTermActivityGroup.name = "Long-term activity group #" + GetTimeStamp(); - longTermActivityGroup.companyIds = new long[] - { - advertiserCompanyId - }; - longTermActivityGroup.clicksLookback = 30; - longTermActivityGroup.impressionsLookback = 30; - - try - { - // Create the activity groups on the server. - ActivityGroup[] activityGroups = activityGroupService.createActivityGroups( - new ActivityGroup[] - { - shortTermActivityGroup, - longTermActivityGroup - }); - - // Display results. - if (activityGroups != null) - { - foreach (ActivityGroup activityGroup in activityGroups) - { - Console.WriteLine( - "An activity group with ID \"{0}\" and name \"{1}\" was created.", - activityGroup.id, activityGroup.name); - } - } - else - { - Console.WriteLine("No activity groups were created."); - } - } - catch (Exception e) - { - Console.WriteLine("Failed to create activity groups. Exception says \"{0}\"", - e.Message); - } - } - } - } -} diff --git a/examples/AdManager/CSharp/v202402/ActivityGroupService/GetActiveActivityGroups.cs b/examples/AdManager/CSharp/v202402/ActivityGroupService/GetActiveActivityGroups.cs deleted file mode 100755 index 0e4d300ccc8..00000000000 --- a/examples/AdManager/CSharp/v202402/ActivityGroupService/GetActiveActivityGroups.cs +++ /dev/null @@ -1,99 +0,0 @@ -// Copyright 2019 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; - -using System; - -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 -{ - /// - /// This example gets all active activity groups. - /// - public class GetActiveActivityGroups : SampleBase - { - /// - /// Returns a description about the code example. - /// - public override string Description - { - get { return "This example gets all active activity groups."; } - } - - /// - /// Main method, to run this code example as a standalone application. - /// - public static void Main() - { - GetActiveActivityGroups codeExample = new GetActiveActivityGroups(); - Console.WriteLine(codeExample.Description); - try - { - codeExample.Run(new AdManagerUser()); - } - catch (Exception e) - { - Console.WriteLine("Failed to get activity groups. Exception says \"{0}\"", - e.Message); - } - } - - /// - /// Run the code example. - /// - public void Run(AdManagerUser user) - { - using (ActivityGroupService activityGroupService = - user.GetService()) - { - // Create a statement to select activity groups. - int pageSize = StatementBuilder.SUGGESTED_PAGE_LIMIT; - StatementBuilder statementBuilder = new StatementBuilder() - .Where("status = :status") - .OrderBy("id ASC") - .Limit(pageSize) - .AddValue("status", ActivityGroupStatus.ACTIVE.ToString()); - - // Retrieve a small amount of activity groups at a time, paging through until all - // activity groups have been retrieved. - int totalResultSetSize = 0; - do - { - ActivityGroupPage page = - activityGroupService.getActivityGroupsByStatement(statementBuilder - .ToStatement()); - - // Print out some information for each activity group. - if (page.results != null) - { - totalResultSetSize = page.totalResultSetSize; - int i = page.startIndex; - foreach (ActivityGroup activityGroup in page.results) - { - Console.WriteLine( - "{0}) Activity group with ID {1} and name \"{2}\" was found.", i++, - activityGroup.id, activityGroup.name); - } - } - - statementBuilder.IncreaseOffsetBy(pageSize); - } while (statementBuilder.GetOffset() < totalResultSetSize); - - Console.WriteLine("Number of results found: {0}", totalResultSetSize); - } - } - } -} diff --git a/examples/AdManager/CSharp/v202402/ActivityGroupService/GetAllActivityGroups.cs b/examples/AdManager/CSharp/v202402/ActivityGroupService/GetAllActivityGroups.cs deleted file mode 100755 index 1aa356878bf..00000000000 --- a/examples/AdManager/CSharp/v202402/ActivityGroupService/GetAllActivityGroups.cs +++ /dev/null @@ -1,96 +0,0 @@ -// Copyright 2019 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; - -using System; - -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 -{ - /// - /// This example gets all activity groups. - /// - public class GetAllActivityGroups : SampleBase - { - /// - /// Returns a description about the code example. - /// - public override string Description - { - get { return "This example gets all activity groups."; } - } - - /// - /// Main method, to run this code example as a standalone application. - /// - public static void Main() - { - GetAllActivityGroups codeExample = new GetAllActivityGroups(); - Console.WriteLine(codeExample.Description); - try - { - codeExample.Run(new AdManagerUser()); - } - catch (Exception e) - { - Console.WriteLine("Failed to get activity groups. Exception says \"{0}\"", - e.Message); - } - } - - /// - /// Run the code example. - /// - public void Run(AdManagerUser user) - { - using (ActivityGroupService activityGroupService = - user.GetService()) - { - // Create a statement to select activity groups. - int pageSize = StatementBuilder.SUGGESTED_PAGE_LIMIT; - StatementBuilder statementBuilder = - new StatementBuilder().OrderBy("id ASC").Limit(pageSize); - - // Retrieve a small amount of activity groups at a time, paging through until all - // activity groups have been retrieved. - int totalResultSetSize = 0; - do - { - ActivityGroupPage page = - activityGroupService.getActivityGroupsByStatement(statementBuilder - .ToStatement()); - - // Print out some information for each activity group. - if (page.results != null) - { - totalResultSetSize = page.totalResultSetSize; - int i = page.startIndex; - foreach (ActivityGroup activityGroup in page.results) - { - Console.WriteLine( - "{0}) Activity group with ID {1} and name \"{2}\" was found.", i++, - activityGroup.id, activityGroup.name); - } - } - - statementBuilder.IncreaseOffsetBy(pageSize); - } while (statementBuilder.GetOffset() < totalResultSetSize); - - Console.WriteLine("Number of results found: {0}", totalResultSetSize); - } - } - } -} diff --git a/examples/AdManager/CSharp/v202402/ActivityGroupService/UpdateActivityGroups.cs b/examples/AdManager/CSharp/v202402/ActivityGroupService/UpdateActivityGroups.cs deleted file mode 100755 index b8d5200276d..00000000000 --- a/examples/AdManager/CSharp/v202402/ActivityGroupService/UpdateActivityGroups.cs +++ /dev/null @@ -1,108 +0,0 @@ -// Copyright 2019 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.v202402; -using Google.Api.Ads.AdManager.Util.v202402; - -using System; -using System.Collections.Generic; - -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 -{ - /// - /// This code example updates activity groups by adding a company. To - /// determine which activity groups exist, run GetAllActivityGroups.cs. - /// - public class UpdateActivityGroups : SampleBase - { - /// - /// Returns a description about the code example. - /// - public override string Description - { - get - { - return - "This code example updates activity groups by adding a company. To determine " + - "which activity groups exist, run GetAllActivityGroups.cs."; - } - } - - /// - /// Main method, to run this code example as a standalone application. - /// - public static void Main() - { - UpdateActivityGroups codeExample = new UpdateActivityGroups(); - Console.WriteLine(codeExample.Description); - codeExample.Run(new AdManagerUser()); - } - - /// - /// Run the code example. - /// - public void Run(AdManagerUser user) - { - using (ActivityGroupService activityGroupService = - user.GetService()) - { - // Set the ID of the activity group and the company to update it with. - int activityGroupId = int.Parse(_T("INSERT_ACTIVITY_GROUP_ID_HERE")); - long advertiserCompanyId = long.Parse(_T("INSERT_ADVERTISER_COMPANY_ID_HERE")); - - try - { - // Get the activity group. - StatementBuilder statementBuilder = new StatementBuilder() - .Where("id = :id") - .OrderBy("id ASC") - .Limit(1) - .AddValue("id", activityGroupId); - - ActivityGroupPage page = - activityGroupService.getActivityGroupsByStatement(statementBuilder - .ToStatement()); - - ActivityGroup activityGroup = page.results[0]; - - // Update the companies. - List companyIds = new List(activityGroup.companyIds); - companyIds.Add(advertiserCompanyId); - activityGroup.companyIds = companyIds.ToArray(); - - // Update the activity groups on the server. - ActivityGroup[] activityGroups = activityGroupService.updateActivityGroups( - new ActivityGroup[] - { - activityGroup - }); - - // Display results. - foreach (ActivityGroup updatedActivityGroup in activityGroups) - { - Console.WriteLine( - "Activity group with ID \"{0}\" and name \"{1}\" was updated.", - updatedActivityGroup.id, updatedActivityGroup.name); - } - } - catch (Exception e) - { - Console.WriteLine("Failed to update activity groups. Exception says \"{0}\"", - e.Message); - } - } - } - } -} diff --git a/examples/AdManager/CSharp/v202402/ActivityService/CreateActivities.cs b/examples/AdManager/CSharp/v202402/ActivityService/CreateActivities.cs deleted file mode 100755 index f7e5dee6b97..00000000000 --- a/examples/AdManager/CSharp/v202402/ActivityService/CreateActivities.cs +++ /dev/null @@ -1,104 +0,0 @@ -// Copyright 2019 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.v202402; - -using System; - -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 -{ - /// - /// This code example creates new activities. To determine which activities - /// exist, run GetAllActivities.cs. - /// - public class CreateActivities : SampleBase - { - /// - /// Returns a description about the code example. - /// - public override string Description - { - get - { - return "This code example creates new activities. To determine which activities " + - "exist, run GetAllActivities.cs."; - } - } - - /// - /// Main method, to run this code example as a standalone application. - /// - public static void Main() - { - CreateActivities codeExample = new CreateActivities(); - Console.WriteLine(codeExample.Description); - codeExample.Run(new AdManagerUser()); - } - - /// - /// Run the code example. - /// - public void Run(AdManagerUser user) - { - using (ActivityService activityService = user.GetService()) - { - // Set the ID of the activity group this activity is associated with. - long activityGroupId = long.Parse(_T("INSERT_ACTIVITY_GROUP_ID_HERE")); - - // Create a daily visits activity. - Activity dailyVisitsActivity = new Activity(); - dailyVisitsActivity.name = "Activity #" + GetTimeStamp(); - dailyVisitsActivity.activityGroupId = activityGroupId; - dailyVisitsActivity.type = ActivityType.DAILY_VISITS; - - // Create a custom activity. - Activity customActivity = new Activity(); - customActivity.name = "Activity #" + GetTimeStamp(); - customActivity.activityGroupId = activityGroupId; - customActivity.type = ActivityType.CUSTOM; - - try - { - // Create the activities on the server. - Activity[] activities = activityService.createActivities(new Activity[] - { - dailyVisitsActivity, - customActivity - }); - - // Display results. - if (activities != null) - { - foreach (Activity newActivity in activities) - { - Console.WriteLine( - "An activity with ID \"{0}\", name \"{1}\", and type \"{2}\" " + - "was created.", newActivity.id, newActivity.name, newActivity.type); - } - } - else - { - Console.WriteLine("No activities were created."); - } - } - catch (Exception e) - { - Console.WriteLine("Failed to create activities. Exception says \"{0}\"", - e.Message); - } - } - } - } -} diff --git a/examples/AdManager/CSharp/v202402/ActivityService/GetActiveActivities.cs b/examples/AdManager/CSharp/v202402/ActivityService/GetActiveActivities.cs deleted file mode 100755 index 10b851431d6..00000000000 --- a/examples/AdManager/CSharp/v202402/ActivityService/GetActiveActivities.cs +++ /dev/null @@ -1,97 +0,0 @@ -// Copyright 2019 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; - -using System; - -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 -{ - /// - /// This example gets all active activities. - /// - public class GetActiveActivities : SampleBase - { - /// - /// Returns a description about the code example. - /// - public override string Description - { - get { return "This example gets all active activities."; } - } - - /// - /// Main method, to run this code example as a standalone application. - /// - public static void Main() - { - GetActiveActivities codeExample = new GetActiveActivities(); - Console.WriteLine(codeExample.Description); - try - { - codeExample.Run(new AdManagerUser()); - } - catch (Exception e) - { - Console.WriteLine("Failed to get activities. Exception says \"{0}\"", e.Message); - } - } - - /// - /// Run the code example. - /// - public void Run(AdManagerUser user) - { - using (ActivityService activityService = user.GetService()) - { - // Create a statement to select activities. - int pageSize = StatementBuilder.SUGGESTED_PAGE_LIMIT; - StatementBuilder statementBuilder = new StatementBuilder() - .Where("status = :status") - .OrderBy("id ASC") - .Limit(pageSize) - .AddValue("status", ActivityStatus.ACTIVE.ToString()); - - // Retrieve a small amount of activities at a time, paging through until all - // activities have been retrieved. - int totalResultSetSize = 0; - do - { - ActivityPage page = - activityService.getActivitiesByStatement(statementBuilder.ToStatement()); - - // Print out some information for each activity. - if (page.results != null) - { - totalResultSetSize = page.totalResultSetSize; - int i = page.startIndex; - foreach (Activity activity in page.results) - { - Console.WriteLine( - "{0}) Activity with ID {1}, name \"{2}\", and type \"{3}\" was " + - "found.", - i++, activity.id, activity.name, activity.type); - } - } - - statementBuilder.IncreaseOffsetBy(pageSize); - } while (statementBuilder.GetOffset() < totalResultSetSize); - - Console.WriteLine("Number of results found: {0}", totalResultSetSize); - } - } - } -} diff --git a/examples/AdManager/CSharp/v202402/ActivityService/GetAllActivities.cs b/examples/AdManager/CSharp/v202402/ActivityService/GetAllActivities.cs deleted file mode 100755 index 87c0c9d95a9..00000000000 --- a/examples/AdManager/CSharp/v202402/ActivityService/GetAllActivities.cs +++ /dev/null @@ -1,93 +0,0 @@ -// Copyright 2019 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; - -using System; - -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 -{ - /// - /// This example gets all activities. - /// - public class GetAllActivities : SampleBase - { - /// - /// Returns a description about the code example. - /// - public override string Description - { - get { return "This example gets all activities."; } - } - - /// - /// Main method, to run this code example as a standalone application. - /// - public static void Main() - { - GetAllActivities codeExample = new GetAllActivities(); - Console.WriteLine(codeExample.Description); - try - { - codeExample.Run(new AdManagerUser()); - } - catch (Exception e) - { - Console.WriteLine("Failed to get activities. Exception says \"{0}\"", e.Message); - } - } - - /// - /// Run the code example. - /// - public void Run(AdManagerUser user) - { - using (ActivityService activityService = user.GetService()) - { - // Create a statement to select activities. - int pageSize = StatementBuilder.SUGGESTED_PAGE_LIMIT; - StatementBuilder statementBuilder = - new StatementBuilder().OrderBy("id ASC").Limit(pageSize); - - // Retrieve a small amount of activities at a time, paging through until all - // activities have been retrieved. - int totalResultSetSize = 0; - do - { - ActivityPage page = - activityService.getActivitiesByStatement(statementBuilder.ToStatement()); - - // Print out some information for each activity. - if (page.results != null) - { - totalResultSetSize = page.totalResultSetSize; - int i = page.startIndex; - foreach (Activity activity in page.results) - { - Console.WriteLine( - "{0}) Activity with ID {1} and name \"{2}\" was found.", i++, - activity.id, activity.name); - } - } - - statementBuilder.IncreaseOffsetBy(pageSize); - } while (statementBuilder.GetOffset() < totalResultSetSize); - - Console.WriteLine("Number of results found: {0}", totalResultSetSize); - } - } - } -} diff --git a/examples/AdManager/CSharp/v202402/ActivityService/UpdateActivities.cs b/examples/AdManager/CSharp/v202402/ActivityService/UpdateActivities.cs deleted file mode 100755 index 9d7035ab223..00000000000 --- a/examples/AdManager/CSharp/v202402/ActivityService/UpdateActivities.cs +++ /dev/null @@ -1,97 +0,0 @@ -// Copyright 2019 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.v202402; -using Google.Api.Ads.AdManager.Util.v202402; - -using System; - -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 -{ - /// - /// This code example updates activity expected URLs. To determine which - /// activities exist, run GetAllActivities.cs. - /// - public class UpdateActivities : SampleBase - { - /// - /// Returns a description about the code example. - /// - public override string Description - { - get - { - return "This code example updates activity expected URLs. To determine which " + - "activities exist, run GetAllActivities.cs."; - } - } - - /// - /// Main method, to run this code example as a standalone application. - /// - public static void Main() - { - UpdateActivities codeExample = new UpdateActivities(); - Console.WriteLine(codeExample.Description); - codeExample.Run(new AdManagerUser()); - } - - /// - /// Run the code example. - /// - public void Run(AdManagerUser user) - { - using (ActivityService activityService = user.GetService()) - { - // Set the ID of the activity to update. - int activityId = int.Parse(_T("INSERT_ACTIVITY_ID_HERE")); - - try - { - // Get the activity. - StatementBuilder statemetnBuilder = new StatementBuilder() - .Where("id = :id") - .OrderBy("id ASC") - .Limit(1) - .AddValue("id", activityId); - - ActivityPage page = - activityService.getActivitiesByStatement(statemetnBuilder.ToStatement()); - Activity activity = page.results[0]; - - // Update the expected URL. - activity.expectedURL = "https://www.google.com"; - - // Update the activity on the server. - Activity[] activities = activityService.updateActivities(new Activity[] - { - activity - }); - - foreach (Activity updatedActivity in activities) - { - Console.WriteLine("Activity with ID \"{0}\" and name \"{1}\" was updated.", - updatedActivity.id, updatedActivity.name); - } - } - catch (Exception e) - { - Console.WriteLine("Failed to update activities. Exception says \"{0}\"", - e.Message); - } - } - } - } -} diff --git a/examples/AdManager/CSharp/v202402/LineItemCreativeAssociationService/PushCreativeToDevices.cs b/examples/AdManager/CSharp/v202402/LineItemCreativeAssociationService/PushCreativeToDevices.cs deleted file mode 100755 index 07e599648f4..00000000000 --- a/examples/AdManager/CSharp/v202402/LineItemCreativeAssociationService/PushCreativeToDevices.cs +++ /dev/null @@ -1,91 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; - -using System; -using System.Collections.Generic; - -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 -{ - /// - /// This code example pushes a LICA to a linked device for preview. To determine - /// which linked devices exist, use the PublisherQueryLanguageService linked_device table. - /// - public class PushCreativeToDevices : SampleBase - { - /// - /// Returns a description about the code example. - /// - public override string Description - { - get - { - return "This code example pushes a LICA to a linked device for preview. To " + - "determine which linked devices exist, use the PublisherQueryLanguageService " + - "linked_device table."; - } - } - - /// - /// Main method, to run this code example as a standalone application. - /// - public static void Main() - { - PushCreativeToDevices codeExample = new PushCreativeToDevices(); - Console.WriteLine(codeExample.Description); - // Set the line item to push to the linked device. - long lineItemId = long.Parse(_T("INSERT_LINE_ITEM_ID_HERE")); - // Set the creative to push to the linked device. - long creativeId = long.Parse(_T("INSERT_CREATIVE_ID_HERE")); - // Set the linked device to push the LICA to. - long linkedDeviceId = long.Parse(_T("INSERT_LINKED_DEVICE_ID_HERE")); - codeExample.Run(new AdManagerUser(), lineItemId, creativeId, linkedDeviceId); - } - - /// - /// Run the code example. - /// - public void Run(AdManagerUser user, long lineItemId, long creativeId, long linkedDeviceId) - { - using (LineItemCreativeAssociationService licaService = - user.GetService()) - { - - // Create a statement to page through active LICAs. - StatementBuilder statementBuilder = new StatementBuilder() - .Where("id = :linkedDeviceId") - .AddValue("linkedDeviceId", linkedDeviceId); - - try - { - // Perform action. - UpdateResult result = licaService.pushCreativeToDevices( - statementBuilder.ToStatement(), - new CreativePushOptions() { lineItemId = lineItemId, - creativeId = creativeId }); - // Display results. - Console.WriteLine("Creative pushed to {0} device(s)", result.numChanges); - } - catch (Exception e) - { - Console.WriteLine("Failed to push creative. Exception says \"{0}\"", - e.Message); - } - } - } - } -} diff --git a/examples/AdManager/CSharp/v202402/AdjustmentService/CreateForecastAdjustments.cs b/examples/AdManager/CSharp/v202411/AdjustmentService/CreateForecastAdjustments.cs similarity index 96% rename from examples/AdManager/CSharp/v202402/AdjustmentService/CreateForecastAdjustments.cs rename to examples/AdManager/CSharp/v202411/AdjustmentService/CreateForecastAdjustments.cs index ec1769b52c7..682d474e960 100644 --- a/examples/AdManager/CSharp/v202402/AdjustmentService/CreateForecastAdjustments.cs +++ b/examples/AdManager/CSharp/v202411/AdjustmentService/CreateForecastAdjustments.cs @@ -13,13 +13,13 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; using System; using System.Linq; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This example creates a new Forecast Adjustment of 110% for New Years Day Traffic. diff --git a/examples/AdManager/CSharp/v202402/AdjustmentService/CreateTrafficForecastSegments.cs b/examples/AdManager/CSharp/v202411/AdjustmentService/CreateTrafficForecastSegments.cs similarity index 96% rename from examples/AdManager/CSharp/v202402/AdjustmentService/CreateTrafficForecastSegments.cs rename to examples/AdManager/CSharp/v202411/AdjustmentService/CreateTrafficForecastSegments.cs index cc12a0f34db..a3dae6305c8 100644 --- a/examples/AdManager/CSharp/v202402/AdjustmentService/CreateTrafficForecastSegments.cs +++ b/examples/AdManager/CSharp/v202411/AdjustmentService/CreateTrafficForecastSegments.cs @@ -13,13 +13,13 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; using System; using System.Linq; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This example creates a traffic forecast segment for all ad units in the United States." diff --git a/examples/AdManager/CSharp/v202402/AdjustmentService/GetAllForecastAdjustments.cs b/examples/AdManager/CSharp/v202411/AdjustmentService/GetAllForecastAdjustments.cs similarity index 95% rename from examples/AdManager/CSharp/v202402/AdjustmentService/GetAllForecastAdjustments.cs rename to examples/AdManager/CSharp/v202411/AdjustmentService/GetAllForecastAdjustments.cs index d39043659ab..a63f9904f5f 100644 --- a/examples/AdManager/CSharp/v202402/AdjustmentService/GetAllForecastAdjustments.cs +++ b/examples/AdManager/CSharp/v202411/AdjustmentService/GetAllForecastAdjustments.cs @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This example gets all forecast adjustments. diff --git a/examples/AdManager/CSharp/v202402/AdjustmentService/GetAllTrafficForecastSegments.cs b/examples/AdManager/CSharp/v202411/AdjustmentService/GetAllTrafficForecastSegments.cs similarity index 96% rename from examples/AdManager/CSharp/v202402/AdjustmentService/GetAllTrafficForecastSegments.cs rename to examples/AdManager/CSharp/v202411/AdjustmentService/GetAllTrafficForecastSegments.cs index 7a2a0f8f105..d1e2d09f3c3 100644 --- a/examples/AdManager/CSharp/v202402/AdjustmentService/GetAllTrafficForecastSegments.cs +++ b/examples/AdManager/CSharp/v202411/AdjustmentService/GetAllTrafficForecastSegments.cs @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This example gets all traffic forecast segments. diff --git a/examples/AdManager/CSharp/v202402/AdjustmentService/GetForecastAdjustmentsForTrafficForecastSegment.cs b/examples/AdManager/CSharp/v202411/AdjustmentService/GetForecastAdjustmentsForTrafficForecastSegment.cs similarity index 96% rename from examples/AdManager/CSharp/v202402/AdjustmentService/GetForecastAdjustmentsForTrafficForecastSegment.cs rename to examples/AdManager/CSharp/v202411/AdjustmentService/GetForecastAdjustmentsForTrafficForecastSegment.cs index 3604036fb8d..9824bc91c36 100644 --- a/examples/AdManager/CSharp/v202402/AdjustmentService/GetForecastAdjustmentsForTrafficForecastSegment.cs +++ b/examples/AdManager/CSharp/v202411/AdjustmentService/GetForecastAdjustmentsForTrafficForecastSegment.cs @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This example gets all forecast adjustments for a given traffic forecast segment. diff --git a/examples/AdManager/CSharp/v202402/AdjustmentService/UpdateForecastAdjustments.cs b/examples/AdManager/CSharp/v202411/AdjustmentService/UpdateForecastAdjustments.cs similarity index 95% rename from examples/AdManager/CSharp/v202402/AdjustmentService/UpdateForecastAdjustments.cs rename to examples/AdManager/CSharp/v202411/AdjustmentService/UpdateForecastAdjustments.cs index e1f353ba042..35bb6d84dfe 100644 --- a/examples/AdManager/CSharp/v202402/AdjustmentService/UpdateForecastAdjustments.cs +++ b/examples/AdManager/CSharp/v202411/AdjustmentService/UpdateForecastAdjustments.cs @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This example updates a Forecast Adjustment's name. diff --git a/examples/AdManager/CSharp/v202402/AudienceSegmentService/CreateAudienceSegments.cs b/examples/AdManager/CSharp/v202411/AudienceSegmentService/CreateAudienceSegments.cs similarity index 98% rename from examples/AdManager/CSharp/v202402/AudienceSegmentService/CreateAudienceSegments.cs rename to examples/AdManager/CSharp/v202411/AudienceSegmentService/CreateAudienceSegments.cs index 7c04090c9ba..a9e23392bda 100755 --- a/examples/AdManager/CSharp/v202402/AudienceSegmentService/CreateAudienceSegments.cs +++ b/examples/AdManager/CSharp/v202411/AudienceSegmentService/CreateAudienceSegments.cs @@ -13,11 +13,11 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.v202411; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This code example creates new rule based first party audience segments. To diff --git a/examples/AdManager/CSharp/v202402/AudienceSegmentService/GetAllAudienceSegments.cs b/examples/AdManager/CSharp/v202411/AudienceSegmentService/GetAllAudienceSegments.cs similarity index 96% rename from examples/AdManager/CSharp/v202402/AudienceSegmentService/GetAllAudienceSegments.cs rename to examples/AdManager/CSharp/v202411/AudienceSegmentService/GetAllAudienceSegments.cs index f66831b05c2..cce9f261a27 100755 --- a/examples/AdManager/CSharp/v202402/AudienceSegmentService/GetAllAudienceSegments.cs +++ b/examples/AdManager/CSharp/v202411/AudienceSegmentService/GetAllAudienceSegments.cs @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This example gets all audience segments. diff --git a/examples/AdManager/CSharp/v202402/AudienceSegmentService/GetFirstPartyAudienceSegments.cs b/examples/AdManager/CSharp/v202411/AudienceSegmentService/GetFirstPartyAudienceSegments.cs similarity index 96% rename from examples/AdManager/CSharp/v202402/AudienceSegmentService/GetFirstPartyAudienceSegments.cs rename to examples/AdManager/CSharp/v202411/AudienceSegmentService/GetFirstPartyAudienceSegments.cs index da96a5e4704..bbebc5944d1 100755 --- a/examples/AdManager/CSharp/v202402/AudienceSegmentService/GetFirstPartyAudienceSegments.cs +++ b/examples/AdManager/CSharp/v202411/AudienceSegmentService/GetFirstPartyAudienceSegments.cs @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This example gets all first party audience segments. diff --git a/examples/AdManager/CSharp/v202402/AudienceSegmentService/PopulateFirstPartyAudienceSegments.cs b/examples/AdManager/CSharp/v202411/AudienceSegmentService/PopulateFirstPartyAudienceSegments.cs similarity index 96% rename from examples/AdManager/CSharp/v202402/AudienceSegmentService/PopulateFirstPartyAudienceSegments.cs rename to examples/AdManager/CSharp/v202411/AudienceSegmentService/PopulateFirstPartyAudienceSegments.cs index 22d98914089..c4416959d65 100755 --- a/examples/AdManager/CSharp/v202402/AudienceSegmentService/PopulateFirstPartyAudienceSegments.cs +++ b/examples/AdManager/CSharp/v202411/AudienceSegmentService/PopulateFirstPartyAudienceSegments.cs @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This code example populates a specific rule base first party audience diff --git a/examples/AdManager/CSharp/v202402/AudienceSegmentService/UpdateAudienceSegments.cs b/examples/AdManager/CSharp/v202411/AudienceSegmentService/UpdateAudienceSegments.cs similarity index 96% rename from examples/AdManager/CSharp/v202402/AudienceSegmentService/UpdateAudienceSegments.cs rename to examples/AdManager/CSharp/v202411/AudienceSegmentService/UpdateAudienceSegments.cs index efef2d9a013..56635a7da15 100755 --- a/examples/AdManager/CSharp/v202402/AudienceSegmentService/UpdateAudienceSegments.cs +++ b/examples/AdManager/CSharp/v202411/AudienceSegmentService/UpdateAudienceSegments.cs @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This code example updates a first party audience segment's member diff --git a/examples/AdManager/CSharp/v202402/CdnConfigurationService/CreateCdnConfigurations.cs b/examples/AdManager/CSharp/v202411/CdnConfigurationService/CreateCdnConfigurations.cs similarity index 98% rename from examples/AdManager/CSharp/v202402/CdnConfigurationService/CreateCdnConfigurations.cs rename to examples/AdManager/CSharp/v202411/CdnConfigurationService/CreateCdnConfigurations.cs index 8b18111749c..877bcf83f5a 100644 --- a/examples/AdManager/CSharp/v202402/CdnConfigurationService/CreateCdnConfigurations.cs +++ b/examples/AdManager/CSharp/v202411/CdnConfigurationService/CreateCdnConfigurations.cs @@ -13,11 +13,11 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.v202411; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This code example creates new CDN configurations. diff --git a/examples/AdManager/CSharp/v202402/CdnConfigurationService/GetAllCdnConfigurations.cs b/examples/AdManager/CSharp/v202411/CdnConfigurationService/GetAllCdnConfigurations.cs similarity index 96% rename from examples/AdManager/CSharp/v202402/CdnConfigurationService/GetAllCdnConfigurations.cs rename to examples/AdManager/CSharp/v202411/CdnConfigurationService/GetAllCdnConfigurations.cs index 262d48ef578..a03da1c10bd 100644 --- a/examples/AdManager/CSharp/v202402/CdnConfigurationService/GetAllCdnConfigurations.cs +++ b/examples/AdManager/CSharp/v202411/CdnConfigurationService/GetAllCdnConfigurations.cs @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This example gets all CDN configurations. diff --git a/examples/AdManager/CSharp/v202402/CmsMetadataService/ActivateCmsMetadataValues.cs b/examples/AdManager/CSharp/v202411/CmsMetadataService/ActivateCmsMetadataValues.cs similarity index 94% rename from examples/AdManager/CSharp/v202402/CmsMetadataService/ActivateCmsMetadataValues.cs rename to examples/AdManager/CSharp/v202411/CmsMetadataService/ActivateCmsMetadataValues.cs index 3487e45e5a8..aba89bf2ed1 100755 --- a/examples/AdManager/CSharp/v202402/CmsMetadataService/ActivateCmsMetadataValues.cs +++ b/examples/AdManager/CSharp/v202411/CmsMetadataService/ActivateCmsMetadataValues.cs @@ -13,14 +13,14 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; using System; using System.Collections; using System.Collections.Generic; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This example activates all CMS metadata values for the given key. @@ -105,8 +105,8 @@ public void Run(AdManagerUser user, long cmsMetadataKeyId) statementBuilder.RemoveLimitAndOffset(); // Create action. - Google.Api.Ads.AdManager.v202402.ActivateCmsMetadataValues action = - new Google.Api.Ads.AdManager.v202402.ActivateCmsMetadataValues(); + Google.Api.Ads.AdManager.v202411.ActivateCmsMetadataValues action = + new Google.Api.Ads.AdManager.v202411.ActivateCmsMetadataValues(); // Perform action. UpdateResult result = cmsMetadataService.performCmsMetadataValueAction(action, diff --git a/examples/AdManager/CSharp/v202402/CmsMetadataService/GetAllCmsMetadataKeys.cs b/examples/AdManager/CSharp/v202411/CmsMetadataService/GetAllCmsMetadataKeys.cs similarity index 95% rename from examples/AdManager/CSharp/v202402/CmsMetadataService/GetAllCmsMetadataKeys.cs rename to examples/AdManager/CSharp/v202411/CmsMetadataService/GetAllCmsMetadataKeys.cs index 2f4c0985c99..a822388f552 100755 --- a/examples/AdManager/CSharp/v202402/CmsMetadataService/GetAllCmsMetadataKeys.cs +++ b/examples/AdManager/CSharp/v202411/CmsMetadataService/GetAllCmsMetadataKeys.cs @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This example gets all CMS metadata keys. diff --git a/examples/AdManager/CSharp/v202402/CmsMetadataService/GetAllCmsMetadataValues.cs b/examples/AdManager/CSharp/v202411/CmsMetadataService/GetAllCmsMetadataValues.cs similarity index 96% rename from examples/AdManager/CSharp/v202402/CmsMetadataService/GetAllCmsMetadataValues.cs rename to examples/AdManager/CSharp/v202411/CmsMetadataService/GetAllCmsMetadataValues.cs index 57da1401301..1a6f91ef201 100755 --- a/examples/AdManager/CSharp/v202402/CmsMetadataService/GetAllCmsMetadataValues.cs +++ b/examples/AdManager/CSharp/v202411/CmsMetadataService/GetAllCmsMetadataValues.cs @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This example gets all CMS metadata values. diff --git a/examples/AdManager/CSharp/v202402/CmsMetadataService/GetCmsMetadataValuesForKey.cs b/examples/AdManager/CSharp/v202411/CmsMetadataService/GetCmsMetadataValuesForKey.cs similarity index 96% rename from examples/AdManager/CSharp/v202402/CmsMetadataService/GetCmsMetadataValuesForKey.cs rename to examples/AdManager/CSharp/v202411/CmsMetadataService/GetCmsMetadataValuesForKey.cs index 9a7c6f1ee1f..0f5f938df3c 100755 --- a/examples/AdManager/CSharp/v202402/CmsMetadataService/GetCmsMetadataValuesForKey.cs +++ b/examples/AdManager/CSharp/v202411/CmsMetadataService/GetCmsMetadataValuesForKey.cs @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This example gets all CMS metadata values. diff --git a/examples/AdManager/CSharp/v202402/CompanyService/CreateCompanies.cs b/examples/AdManager/CSharp/v202411/CompanyService/CreateCompanies.cs similarity index 97% rename from examples/AdManager/CSharp/v202402/CompanyService/CreateCompanies.cs rename to examples/AdManager/CSharp/v202411/CompanyService/CreateCompanies.cs index 8db17dfbc96..3a475127b34 100755 --- a/examples/AdManager/CSharp/v202402/CompanyService/CreateCompanies.cs +++ b/examples/AdManager/CSharp/v202411/CompanyService/CreateCompanies.cs @@ -13,11 +13,11 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.v202411; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This code example creates new companies. To determine which companies diff --git a/examples/AdManager/CSharp/v202402/CompanyService/GetAdvertisers.cs b/examples/AdManager/CSharp/v202411/CompanyService/GetAdvertisers.cs similarity index 96% rename from examples/AdManager/CSharp/v202402/CompanyService/GetAdvertisers.cs rename to examples/AdManager/CSharp/v202411/CompanyService/GetAdvertisers.cs index 4768ec15b49..9143255c2b2 100644 --- a/examples/AdManager/CSharp/v202402/CompanyService/GetAdvertisers.cs +++ b/examples/AdManager/CSharp/v202411/CompanyService/GetAdvertisers.cs @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This example gets all companies that are advertisers. diff --git a/examples/AdManager/CSharp/v202402/CompanyService/GetAllCompanies.cs b/examples/AdManager/CSharp/v202411/CompanyService/GetAllCompanies.cs similarity index 95% rename from examples/AdManager/CSharp/v202402/CompanyService/GetAllCompanies.cs rename to examples/AdManager/CSharp/v202411/CompanyService/GetAllCompanies.cs index a4c187eaf25..25a0662c075 100755 --- a/examples/AdManager/CSharp/v202402/CompanyService/GetAllCompanies.cs +++ b/examples/AdManager/CSharp/v202411/CompanyService/GetAllCompanies.cs @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This example gets all companies. diff --git a/examples/AdManager/CSharp/v202402/CompanyService/UpdateCompanies.cs b/examples/AdManager/CSharp/v202411/CompanyService/UpdateCompanies.cs similarity index 96% rename from examples/AdManager/CSharp/v202402/CompanyService/UpdateCompanies.cs rename to examples/AdManager/CSharp/v202411/CompanyService/UpdateCompanies.cs index 5a11cabd7f6..1d6e6f8f95e 100755 --- a/examples/AdManager/CSharp/v202402/CompanyService/UpdateCompanies.cs +++ b/examples/AdManager/CSharp/v202411/CompanyService/UpdateCompanies.cs @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This code example updates company comments. To determine which companies exist, diff --git a/examples/AdManager/CSharp/v202402/ContactService/CreateContacts.cs b/examples/AdManager/CSharp/v202411/ContactService/CreateContacts.cs similarity index 97% rename from examples/AdManager/CSharp/v202402/ContactService/CreateContacts.cs rename to examples/AdManager/CSharp/v202411/ContactService/CreateContacts.cs index c1c65313581..4a8c0f9248a 100755 --- a/examples/AdManager/CSharp/v202402/ContactService/CreateContacts.cs +++ b/examples/AdManager/CSharp/v202411/ContactService/CreateContacts.cs @@ -13,11 +13,11 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.v202411; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This code example creates new contacts. To determine which contacts exist, diff --git a/examples/AdManager/CSharp/v202402/ContactService/GetAllContacts.cs b/examples/AdManager/CSharp/v202411/ContactService/GetAllContacts.cs similarity index 95% rename from examples/AdManager/CSharp/v202402/ContactService/GetAllContacts.cs rename to examples/AdManager/CSharp/v202411/ContactService/GetAllContacts.cs index d5cdfbb886c..31cd60c89ed 100755 --- a/examples/AdManager/CSharp/v202402/ContactService/GetAllContacts.cs +++ b/examples/AdManager/CSharp/v202411/ContactService/GetAllContacts.cs @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This example gets all contacts. diff --git a/examples/AdManager/CSharp/v202402/ContactService/GetUninvitedContacts.cs b/examples/AdManager/CSharp/v202411/ContactService/GetUninvitedContacts.cs similarity index 96% rename from examples/AdManager/CSharp/v202402/ContactService/GetUninvitedContacts.cs rename to examples/AdManager/CSharp/v202411/ContactService/GetUninvitedContacts.cs index 1f810bc0c58..a46c22dbbaf 100755 --- a/examples/AdManager/CSharp/v202402/ContactService/GetUninvitedContacts.cs +++ b/examples/AdManager/CSharp/v202411/ContactService/GetUninvitedContacts.cs @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This example gets all contacts that aren't invited yet. diff --git a/examples/AdManager/CSharp/v202402/ContactService/UpdateContacts.cs b/examples/AdManager/CSharp/v202411/ContactService/UpdateContacts.cs similarity index 96% rename from examples/AdManager/CSharp/v202402/ContactService/UpdateContacts.cs rename to examples/AdManager/CSharp/v202411/ContactService/UpdateContacts.cs index 8906c9221ad..8f3961696e3 100755 --- a/examples/AdManager/CSharp/v202402/ContactService/UpdateContacts.cs +++ b/examples/AdManager/CSharp/v202411/ContactService/UpdateContacts.cs @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.v202402; -using Google.Api.Ads.AdManager.Util.v202402; +using Google.Api.Ads.AdManager.v202411; +using Google.Api.Ads.AdManager.Util.v202411; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This code example updates contact addresses. To determine which contacts diff --git a/examples/AdManager/CSharp/v202402/ContentService/GetAllContent.cs b/examples/AdManager/CSharp/v202411/ContentService/GetAllContent.cs similarity index 95% rename from examples/AdManager/CSharp/v202402/ContentService/GetAllContent.cs rename to examples/AdManager/CSharp/v202411/ContentService/GetAllContent.cs index 0f500e04346..eef60ed5735 100755 --- a/examples/AdManager/CSharp/v202402/ContentService/GetAllContent.cs +++ b/examples/AdManager/CSharp/v202411/ContentService/GetAllContent.cs @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This example gets all content. diff --git a/examples/AdManager/CSharp/v202402/ContentService/GetRecentlyMofifiedContent.cs b/examples/AdManager/CSharp/v202411/ContentService/GetRecentlyMofifiedContent.cs similarity index 96% rename from examples/AdManager/CSharp/v202402/ContentService/GetRecentlyMofifiedContent.cs rename to examples/AdManager/CSharp/v202411/ContentService/GetRecentlyMofifiedContent.cs index 647cf1a740e..5ee3324b5f3 100755 --- a/examples/AdManager/CSharp/v202402/ContentService/GetRecentlyMofifiedContent.cs +++ b/examples/AdManager/CSharp/v202411/ContentService/GetRecentlyMofifiedContent.cs @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This example gets recently modified content. diff --git a/examples/AdManager/CSharp/v202402/CreativeService/CopyImageCreatives.cs b/examples/AdManager/CSharp/v202411/CreativeService/CopyImageCreatives.cs similarity index 97% rename from examples/AdManager/CSharp/v202402/CreativeService/CopyImageCreatives.cs rename to examples/AdManager/CSharp/v202411/CreativeService/CopyImageCreatives.cs index e01df965a4f..224301e6cdb 100755 --- a/examples/AdManager/CSharp/v202402/CreativeService/CopyImageCreatives.cs +++ b/examples/AdManager/CSharp/v202411/CreativeService/CopyImageCreatives.cs @@ -14,12 +14,12 @@ using Google.Api.Ads.Common.Util; using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This code example creates a copy of an image creative. This would diff --git a/examples/AdManager/CSharp/v202402/CreativeService/CreateCreativeFromTemplate.cs b/examples/AdManager/CSharp/v202411/CreativeService/CreateCreativeFromTemplate.cs similarity index 98% rename from examples/AdManager/CSharp/v202402/CreativeService/CreateCreativeFromTemplate.cs rename to examples/AdManager/CSharp/v202411/CreativeService/CreateCreativeFromTemplate.cs index 43df2515746..8f5751abd4b 100755 --- a/examples/AdManager/CSharp/v202402/CreativeService/CreateCreativeFromTemplate.cs +++ b/examples/AdManager/CSharp/v202411/CreativeService/CreateCreativeFromTemplate.cs @@ -14,11 +14,11 @@ using Google.Api.Ads.Common.Util; using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.v202411; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This code example creates a new template creative for a given advertiser. diff --git a/examples/AdManager/CSharp/v202402/CreativeService/CreateCreatives.cs b/examples/AdManager/CSharp/v202411/CreativeService/CreateCreatives.cs similarity index 98% rename from examples/AdManager/CSharp/v202402/CreativeService/CreateCreatives.cs rename to examples/AdManager/CSharp/v202411/CreativeService/CreateCreatives.cs index c9bb6a91d7c..555a47bda2e 100755 --- a/examples/AdManager/CSharp/v202402/CreativeService/CreateCreatives.cs +++ b/examples/AdManager/CSharp/v202411/CreativeService/CreateCreatives.cs @@ -14,11 +14,11 @@ using Google.Api.Ads.Common.Util; using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.v202411; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This code example creates new image creatives for a given advertiser. To diff --git a/examples/AdManager/CSharp/v202402/CreativeService/CreateCustomCreative.cs b/examples/AdManager/CSharp/v202411/CreativeService/CreateCustomCreative.cs similarity index 98% rename from examples/AdManager/CSharp/v202402/CreativeService/CreateCustomCreative.cs rename to examples/AdManager/CSharp/v202411/CreativeService/CreateCustomCreative.cs index 13ca38ff2ad..69ef1221f22 100755 --- a/examples/AdManager/CSharp/v202402/CreativeService/CreateCustomCreative.cs +++ b/examples/AdManager/CSharp/v202411/CreativeService/CreateCustomCreative.cs @@ -14,11 +14,11 @@ using Google.Api.Ads.Common.Util; using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.v202411; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This code example creates a custom creative for a given advertiser. To diff --git a/examples/AdManager/CSharp/v202402/CreativeService/CreateNativeCreative.cs b/examples/AdManager/CSharp/v202411/CreativeService/CreateNativeCreative.cs similarity index 98% rename from examples/AdManager/CSharp/v202402/CreativeService/CreateNativeCreative.cs rename to examples/AdManager/CSharp/v202411/CreativeService/CreateNativeCreative.cs index a781f595971..3bd9f3a650b 100755 --- a/examples/AdManager/CSharp/v202402/CreativeService/CreateNativeCreative.cs +++ b/examples/AdManager/CSharp/v202411/CreativeService/CreateNativeCreative.cs @@ -14,13 +14,13 @@ using Google.Api.Ads.Common.Util; using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; using System; using System.Collections.Generic; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This code example creates a new native creative. To determine which creatives diff --git a/examples/AdManager/CSharp/v202402/CreativeService/CreateVideoCreative.cs b/examples/AdManager/CSharp/v202411/CreativeService/CreateVideoCreative.cs similarity index 97% rename from examples/AdManager/CSharp/v202402/CreativeService/CreateVideoCreative.cs rename to examples/AdManager/CSharp/v202411/CreativeService/CreateVideoCreative.cs index 633b1fc2e01..5b4bcbc8715 100755 --- a/examples/AdManager/CSharp/v202402/CreativeService/CreateVideoCreative.cs +++ b/examples/AdManager/CSharp/v202411/CreativeService/CreateVideoCreative.cs @@ -14,11 +14,11 @@ using Google.Api.Ads.Common.Util; using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.v202411; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This code example creates a new video creative for a given advertiser. diff --git a/examples/AdManager/CSharp/v202402/CreativeService/GetAllCreatives.cs b/examples/AdManager/CSharp/v202411/CreativeService/GetAllCreatives.cs similarity index 95% rename from examples/AdManager/CSharp/v202402/CreativeService/GetAllCreatives.cs rename to examples/AdManager/CSharp/v202411/CreativeService/GetAllCreatives.cs index fd49c94df92..399233f0c86 100755 --- a/examples/AdManager/CSharp/v202402/CreativeService/GetAllCreatives.cs +++ b/examples/AdManager/CSharp/v202411/CreativeService/GetAllCreatives.cs @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This example gets all creatives. diff --git a/examples/AdManager/CSharp/v202402/CreativeService/GetImageCreatives.cs b/examples/AdManager/CSharp/v202411/CreativeService/GetImageCreatives.cs similarity index 95% rename from examples/AdManager/CSharp/v202402/CreativeService/GetImageCreatives.cs rename to examples/AdManager/CSharp/v202411/CreativeService/GetImageCreatives.cs index a87a69591d7..85d46dee693 100644 --- a/examples/AdManager/CSharp/v202402/CreativeService/GetImageCreatives.cs +++ b/examples/AdManager/CSharp/v202411/CreativeService/GetImageCreatives.cs @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This example gets all image creatives. diff --git a/examples/AdManager/CSharp/v202402/CreativeService/UpdateCreatives.cs b/examples/AdManager/CSharp/v202411/CreativeService/UpdateCreatives.cs similarity index 96% rename from examples/AdManager/CSharp/v202402/CreativeService/UpdateCreatives.cs rename to examples/AdManager/CSharp/v202411/CreativeService/UpdateCreatives.cs index 855905cf4aa..df2e44f82e3 100755 --- a/examples/AdManager/CSharp/v202402/CreativeService/UpdateCreatives.cs +++ b/examples/AdManager/CSharp/v202411/CreativeService/UpdateCreatives.cs @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This code example updates image creatives. To create an image creative, run diff --git a/examples/AdManager/CSharp/v202402/CreativeSetService/GetAllCreativeSets.cs b/examples/AdManager/CSharp/v202411/CreativeSetService/GetAllCreativeSets.cs similarity index 95% rename from examples/AdManager/CSharp/v202402/CreativeSetService/GetAllCreativeSets.cs rename to examples/AdManager/CSharp/v202411/CreativeSetService/GetAllCreativeSets.cs index 878981e11c4..f28cb4de434 100644 --- a/examples/AdManager/CSharp/v202402/CreativeSetService/GetAllCreativeSets.cs +++ b/examples/AdManager/CSharp/v202411/CreativeSetService/GetAllCreativeSets.cs @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This example gets all creative sets. diff --git a/examples/AdManager/CSharp/v202402/CreativeSetService/GetCreativeSetsForMasterCreative.cs b/examples/AdManager/CSharp/v202411/CreativeSetService/GetCreativeSetsForMasterCreative.cs similarity index 96% rename from examples/AdManager/CSharp/v202402/CreativeSetService/GetCreativeSetsForMasterCreative.cs rename to examples/AdManager/CSharp/v202411/CreativeSetService/GetCreativeSetsForMasterCreative.cs index 178ab206f27..a44e9c40ac7 100644 --- a/examples/AdManager/CSharp/v202402/CreativeSetService/GetCreativeSetsForMasterCreative.cs +++ b/examples/AdManager/CSharp/v202411/CreativeSetService/GetCreativeSetsForMasterCreative.cs @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This example gets all creative sets for a master creative. diff --git a/examples/AdManager/CSharp/v202402/CreativeTemplateService/GetAllCreativeTemplates.cs b/examples/AdManager/CSharp/v202411/CreativeTemplateService/GetAllCreativeTemplates.cs similarity index 96% rename from examples/AdManager/CSharp/v202402/CreativeTemplateService/GetAllCreativeTemplates.cs rename to examples/AdManager/CSharp/v202411/CreativeTemplateService/GetAllCreativeTemplates.cs index e7bbbdfd32a..fcfbf81f218 100755 --- a/examples/AdManager/CSharp/v202402/CreativeTemplateService/GetAllCreativeTemplates.cs +++ b/examples/AdManager/CSharp/v202411/CreativeTemplateService/GetAllCreativeTemplates.cs @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This example gets all creative templates. diff --git a/examples/AdManager/CSharp/v202402/CreativeTemplateService/GetSystemDefinedCreativeTemplates.cs b/examples/AdManager/CSharp/v202411/CreativeTemplateService/GetSystemDefinedCreativeTemplates.cs similarity index 96% rename from examples/AdManager/CSharp/v202402/CreativeTemplateService/GetSystemDefinedCreativeTemplates.cs rename to examples/AdManager/CSharp/v202411/CreativeTemplateService/GetSystemDefinedCreativeTemplates.cs index ed48bc7e359..68c0b73edb6 100644 --- a/examples/AdManager/CSharp/v202402/CreativeTemplateService/GetSystemDefinedCreativeTemplates.cs +++ b/examples/AdManager/CSharp/v202411/CreativeTemplateService/GetSystemDefinedCreativeTemplates.cs @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This example gets all system defined creative templates. diff --git a/examples/AdManager/CSharp/v202402/CreativeWrapperService/CreateCreativeWrappers.cs b/examples/AdManager/CSharp/v202411/CreativeWrapperService/CreateCreativeWrappers.cs similarity index 97% rename from examples/AdManager/CSharp/v202402/CreativeWrapperService/CreateCreativeWrappers.cs rename to examples/AdManager/CSharp/v202411/CreativeWrapperService/CreateCreativeWrappers.cs index 536535b609b..c28f5bab943 100755 --- a/examples/AdManager/CSharp/v202402/CreativeWrapperService/CreateCreativeWrappers.cs +++ b/examples/AdManager/CSharp/v202411/CreativeWrapperService/CreateCreativeWrappers.cs @@ -13,11 +13,11 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.v202411; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This code example creates a new creative wrapper. Creative wrappers must diff --git a/examples/AdManager/CSharp/v202402/CreativeWrapperService/DeactivateCreativeWrappers.cs b/examples/AdManager/CSharp/v202411/CreativeWrapperService/DeactivateCreativeWrappers.cs similarity index 97% rename from examples/AdManager/CSharp/v202402/CreativeWrapperService/DeactivateCreativeWrappers.cs rename to examples/AdManager/CSharp/v202411/CreativeWrapperService/DeactivateCreativeWrappers.cs index 5813dee6428..21474111377 100755 --- a/examples/AdManager/CSharp/v202402/CreativeWrapperService/DeactivateCreativeWrappers.cs +++ b/examples/AdManager/CSharp/v202411/CreativeWrapperService/DeactivateCreativeWrappers.cs @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This code example deactivates all creative wrappers belonging to a label. diff --git a/examples/AdManager/CSharp/v202402/CreativeWrapperService/GetActiveCreativeWrappers.cs b/examples/AdManager/CSharp/v202411/CreativeWrapperService/GetActiveCreativeWrappers.cs similarity index 96% rename from examples/AdManager/CSharp/v202402/CreativeWrapperService/GetActiveCreativeWrappers.cs rename to examples/AdManager/CSharp/v202411/CreativeWrapperService/GetActiveCreativeWrappers.cs index aabc610ebda..1d2043a85d5 100755 --- a/examples/AdManager/CSharp/v202402/CreativeWrapperService/GetActiveCreativeWrappers.cs +++ b/examples/AdManager/CSharp/v202411/CreativeWrapperService/GetActiveCreativeWrappers.cs @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This example gets all active creative wrappers. diff --git a/examples/AdManager/CSharp/v202402/CreativeWrapperService/GetAllCreativeWrappers.cs b/examples/AdManager/CSharp/v202411/CreativeWrapperService/GetAllCreativeWrappers.cs similarity index 96% rename from examples/AdManager/CSharp/v202402/CreativeWrapperService/GetAllCreativeWrappers.cs rename to examples/AdManager/CSharp/v202411/CreativeWrapperService/GetAllCreativeWrappers.cs index 5313699056f..21901addcc6 100755 --- a/examples/AdManager/CSharp/v202402/CreativeWrapperService/GetAllCreativeWrappers.cs +++ b/examples/AdManager/CSharp/v202411/CreativeWrapperService/GetAllCreativeWrappers.cs @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This example gets all creative wrappers. diff --git a/examples/AdManager/CSharp/v202402/CreativeWrapperService/UpdateCreativeWrappers.cs b/examples/AdManager/CSharp/v202411/CreativeWrapperService/UpdateCreativeWrappers.cs similarity index 96% rename from examples/AdManager/CSharp/v202402/CreativeWrapperService/UpdateCreativeWrappers.cs rename to examples/AdManager/CSharp/v202411/CreativeWrapperService/UpdateCreativeWrappers.cs index 20400e23cea..7001246eef9 100755 --- a/examples/AdManager/CSharp/v202402/CreativeWrapperService/UpdateCreativeWrappers.cs +++ b/examples/AdManager/CSharp/v202411/CreativeWrapperService/UpdateCreativeWrappers.cs @@ -13,13 +13,13 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.v202411; using System; -using Google.Api.Ads.AdManager.Util.v202402; +using Google.Api.Ads.AdManager.Util.v202411; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This code example updates a creative wrapper to the 'OUTER' wrapping diff --git a/examples/AdManager/CSharp/v202402/CustomFieldService/CreateCustomFieldOptions.cs b/examples/AdManager/CSharp/v202411/CustomFieldService/CreateCustomFieldOptions.cs similarity index 97% rename from examples/AdManager/CSharp/v202402/CustomFieldService/CreateCustomFieldOptions.cs rename to examples/AdManager/CSharp/v202411/CustomFieldService/CreateCustomFieldOptions.cs index 80fd2306a1f..028487a934d 100755 --- a/examples/AdManager/CSharp/v202402/CustomFieldService/CreateCustomFieldOptions.cs +++ b/examples/AdManager/CSharp/v202411/CustomFieldService/CreateCustomFieldOptions.cs @@ -13,11 +13,11 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.v202411; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This code example creates custom field options for a drop-down custom diff --git a/examples/AdManager/CSharp/v202402/CustomFieldService/CreateCustomFields.cs b/examples/AdManager/CSharp/v202411/CustomFieldService/CreateCustomFields.cs similarity index 97% rename from examples/AdManager/CSharp/v202402/CustomFieldService/CreateCustomFields.cs rename to examples/AdManager/CSharp/v202411/CustomFieldService/CreateCustomFields.cs index 40acf48ca0e..7aa5ce853e2 100755 --- a/examples/AdManager/CSharp/v202402/CustomFieldService/CreateCustomFields.cs +++ b/examples/AdManager/CSharp/v202411/CustomFieldService/CreateCustomFields.cs @@ -13,11 +13,11 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.v202411; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This code example creates custom fields. To determine which custom fields diff --git a/examples/AdManager/CSharp/v202402/CustomFieldService/DeactivateCustomFields.cs b/examples/AdManager/CSharp/v202411/CustomFieldService/DeactivateCustomFields.cs similarity index 94% rename from examples/AdManager/CSharp/v202402/CustomFieldService/DeactivateCustomFields.cs rename to examples/AdManager/CSharp/v202411/CustomFieldService/DeactivateCustomFields.cs index 636e6bafcc1..5b3a4780ad7 100755 --- a/examples/AdManager/CSharp/v202402/CustomFieldService/DeactivateCustomFields.cs +++ b/examples/AdManager/CSharp/v202411/CustomFieldService/DeactivateCustomFields.cs @@ -13,13 +13,13 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; using System; using System.Collections.Generic; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This code example deactivates a custom field. To determine which custom fields exist, @@ -104,8 +104,8 @@ public void Run(AdManagerUser user) statementBuilder.RemoveLimitAndOffset(); // Create action. - Google.Api.Ads.AdManager.v202402.DeactivateCustomFields action = - new Google.Api.Ads.AdManager.v202402.DeactivateCustomFields(); + Google.Api.Ads.AdManager.v202411.DeactivateCustomFields action = + new Google.Api.Ads.AdManager.v202411.DeactivateCustomFields(); // Perform action. UpdateResult result = diff --git a/examples/AdManager/CSharp/v202402/CustomFieldService/GetAllCustomFields.cs b/examples/AdManager/CSharp/v202411/CustomFieldService/GetAllCustomFields.cs similarity index 95% rename from examples/AdManager/CSharp/v202402/CustomFieldService/GetAllCustomFields.cs rename to examples/AdManager/CSharp/v202411/CustomFieldService/GetAllCustomFields.cs index 3995ee145cc..8f97390c550 100755 --- a/examples/AdManager/CSharp/v202402/CustomFieldService/GetAllCustomFields.cs +++ b/examples/AdManager/CSharp/v202411/CustomFieldService/GetAllCustomFields.cs @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This example gets all custom fields. diff --git a/examples/AdManager/CSharp/v202402/CustomFieldService/GetCustomFieldsForLineItems.cs b/examples/AdManager/CSharp/v202411/CustomFieldService/GetCustomFieldsForLineItems.cs similarity index 96% rename from examples/AdManager/CSharp/v202402/CustomFieldService/GetCustomFieldsForLineItems.cs rename to examples/AdManager/CSharp/v202411/CustomFieldService/GetCustomFieldsForLineItems.cs index 776a8302012..8d253d8a06b 100644 --- a/examples/AdManager/CSharp/v202402/CustomFieldService/GetCustomFieldsForLineItems.cs +++ b/examples/AdManager/CSharp/v202411/CustomFieldService/GetCustomFieldsForLineItems.cs @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This example gets all custom fields that can be applied to line items. diff --git a/examples/AdManager/CSharp/v202402/CustomFieldService/SetLineItemCustomFieldValue.cs b/examples/AdManager/CSharp/v202411/CustomFieldService/SetLineItemCustomFieldValue.cs similarity index 98% rename from examples/AdManager/CSharp/v202402/CustomFieldService/SetLineItemCustomFieldValue.cs rename to examples/AdManager/CSharp/v202411/CustomFieldService/SetLineItemCustomFieldValue.cs index 8aab199cf44..765e66edf87 100755 --- a/examples/AdManager/CSharp/v202402/CustomFieldService/SetLineItemCustomFieldValue.cs +++ b/examples/AdManager/CSharp/v202411/CustomFieldService/SetLineItemCustomFieldValue.cs @@ -13,15 +13,15 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.v202411; using System; -using Google.Api.Ads.AdManager.Util.v202402; +using Google.Api.Ads.AdManager.Util.v202411; using System.Collections.Generic; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This code example sets custom field values on a line item. To determine diff --git a/examples/AdManager/CSharp/v202402/CustomFieldService/UpdateCustomFields.cs b/examples/AdManager/CSharp/v202411/CustomFieldService/UpdateCustomFields.cs similarity index 96% rename from examples/AdManager/CSharp/v202402/CustomFieldService/UpdateCustomFields.cs rename to examples/AdManager/CSharp/v202411/CustomFieldService/UpdateCustomFields.cs index 36ff2553cb5..c53b3a52f55 100755 --- a/examples/AdManager/CSharp/v202402/CustomFieldService/UpdateCustomFields.cs +++ b/examples/AdManager/CSharp/v202411/CustomFieldService/UpdateCustomFields.cs @@ -13,13 +13,13 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.v202411; using System; -using Google.Api.Ads.AdManager.Util.v202402; +using Google.Api.Ads.AdManager.Util.v202411; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This code example updates custom field descriptions. To determine which diff --git a/examples/AdManager/CSharp/v202402/CustomTargetingService/CreateCustomTargetingKeysAndValues.cs b/examples/AdManager/CSharp/v202411/CustomTargetingService/CreateCustomTargetingKeysAndValues.cs similarity index 98% rename from examples/AdManager/CSharp/v202402/CustomTargetingService/CreateCustomTargetingKeysAndValues.cs rename to examples/AdManager/CSharp/v202411/CustomTargetingService/CreateCustomTargetingKeysAndValues.cs index 1c39a490afe..df851eabb52 100755 --- a/examples/AdManager/CSharp/v202402/CustomTargetingService/CreateCustomTargetingKeysAndValues.cs +++ b/examples/AdManager/CSharp/v202411/CustomTargetingService/CreateCustomTargetingKeysAndValues.cs @@ -13,11 +13,11 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.v202411; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This code example creates new custom targeting keys and values. To diff --git a/examples/AdManager/CSharp/v202402/CustomTargetingService/GetAllCustomTargetingKeysAndValues.cs b/examples/AdManager/CSharp/v202411/CustomTargetingService/GetAllCustomTargetingKeysAndValues.cs similarity index 97% rename from examples/AdManager/CSharp/v202402/CustomTargetingService/GetAllCustomTargetingKeysAndValues.cs rename to examples/AdManager/CSharp/v202411/CustomTargetingService/GetAllCustomTargetingKeysAndValues.cs index e4fd17b771d..a96acc96bef 100755 --- a/examples/AdManager/CSharp/v202402/CustomTargetingService/GetAllCustomTargetingKeysAndValues.cs +++ b/examples/AdManager/CSharp/v202411/CustomTargetingService/GetAllCustomTargetingKeysAndValues.cs @@ -13,13 +13,13 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; using System; using System.Collections.Generic; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This example gets all custom targeting values. diff --git a/examples/AdManager/CSharp/v202402/CustomTargetingService/GetPredefinedCustomTargetingKeysAndValues.cs b/examples/AdManager/CSharp/v202411/CustomTargetingService/GetPredefinedCustomTargetingKeysAndValues.cs similarity index 97% rename from examples/AdManager/CSharp/v202402/CustomTargetingService/GetPredefinedCustomTargetingKeysAndValues.cs rename to examples/AdManager/CSharp/v202411/CustomTargetingService/GetPredefinedCustomTargetingKeysAndValues.cs index f43052aa137..9affd45e82a 100644 --- a/examples/AdManager/CSharp/v202402/CustomTargetingService/GetPredefinedCustomTargetingKeysAndValues.cs +++ b/examples/AdManager/CSharp/v202411/CustomTargetingService/GetPredefinedCustomTargetingKeysAndValues.cs @@ -13,13 +13,13 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; using System; using System.Collections.Generic; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This example gets predefined custom targeting keys and values. diff --git a/examples/AdManager/CSharp/v202402/CustomTargetingService/UpdateCustomTargetingKeys.cs b/examples/AdManager/CSharp/v202411/CustomTargetingService/UpdateCustomTargetingKeys.cs similarity index 96% rename from examples/AdManager/CSharp/v202402/CustomTargetingService/UpdateCustomTargetingKeys.cs rename to examples/AdManager/CSharp/v202411/CustomTargetingService/UpdateCustomTargetingKeys.cs index 4688543831c..a8ae925383b 100755 --- a/examples/AdManager/CSharp/v202402/CustomTargetingService/UpdateCustomTargetingKeys.cs +++ b/examples/AdManager/CSharp/v202411/CustomTargetingService/UpdateCustomTargetingKeys.cs @@ -14,12 +14,12 @@ using Google.Api.Ads.Common.Util; using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This code example updates the display name of each custom targeting key up diff --git a/examples/AdManager/CSharp/v202402/CustomTargetingService/UpdateCustomTargetingValues.cs b/examples/AdManager/CSharp/v202411/CustomTargetingService/UpdateCustomTargetingValues.cs similarity index 97% rename from examples/AdManager/CSharp/v202402/CustomTargetingService/UpdateCustomTargetingValues.cs rename to examples/AdManager/CSharp/v202411/CustomTargetingService/UpdateCustomTargetingValues.cs index 6ff2d74d1bf..828795d101d 100755 --- a/examples/AdManager/CSharp/v202402/CustomTargetingService/UpdateCustomTargetingValues.cs +++ b/examples/AdManager/CSharp/v202411/CustomTargetingService/UpdateCustomTargetingValues.cs @@ -14,12 +14,12 @@ using Google.Api.Ads.Common.Util; using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This code example updates the display name of custom targeting values. To determine diff --git a/examples/AdManager/CSharp/v202402/ForecastService/GetAvailabilityForecast.cs b/examples/AdManager/CSharp/v202411/ForecastService/GetAvailabilityForecast.cs similarity index 98% rename from examples/AdManager/CSharp/v202402/ForecastService/GetAvailabilityForecast.cs rename to examples/AdManager/CSharp/v202411/ForecastService/GetAvailabilityForecast.cs index 48e34ffd32d..45855e1e4a1 100755 --- a/examples/AdManager/CSharp/v202402/ForecastService/GetAvailabilityForecast.cs +++ b/examples/AdManager/CSharp/v202411/ForecastService/GetAvailabilityForecast.cs @@ -14,11 +14,11 @@ using System; using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; -using DateTime = Google.Api.Ads.AdManager.v202402.DateTime; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; +using DateTime = Google.Api.Ads.AdManager.v202411.DateTime; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This code example gets a forecast for a prospective line item. diff --git a/examples/AdManager/CSharp/v202402/ForecastService/GetAvailabilityForecastById.cs b/examples/AdManager/CSharp/v202411/ForecastService/GetAvailabilityForecastById.cs similarity index 97% rename from examples/AdManager/CSharp/v202402/ForecastService/GetAvailabilityForecastById.cs rename to examples/AdManager/CSharp/v202411/ForecastService/GetAvailabilityForecastById.cs index 6fd194df758..eb086e00e98 100755 --- a/examples/AdManager/CSharp/v202402/ForecastService/GetAvailabilityForecastById.cs +++ b/examples/AdManager/CSharp/v202411/ForecastService/GetAvailabilityForecastById.cs @@ -13,11 +13,11 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.v202411; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This code example gets a forecast for an existing line item. To determine diff --git a/examples/AdManager/CSharp/v202402/ForecastService/GetDeliveryForecastByIds.cs b/examples/AdManager/CSharp/v202411/ForecastService/GetDeliveryForecastByIds.cs similarity index 97% rename from examples/AdManager/CSharp/v202402/ForecastService/GetDeliveryForecastByIds.cs rename to examples/AdManager/CSharp/v202411/ForecastService/GetDeliveryForecastByIds.cs index 4ad3a145bee..6dc128f55ed 100755 --- a/examples/AdManager/CSharp/v202402/ForecastService/GetDeliveryForecastByIds.cs +++ b/examples/AdManager/CSharp/v202411/ForecastService/GetDeliveryForecastByIds.cs @@ -13,11 +13,11 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.v202411; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This code example gets a delivery forecast for existing line items. To determine diff --git a/examples/AdManager/CSharp/v202402/ForecastService/GetTrafficData.cs b/examples/AdManager/CSharp/v202411/ForecastService/GetTrafficData.cs similarity index 96% rename from examples/AdManager/CSharp/v202402/ForecastService/GetTrafficData.cs rename to examples/AdManager/CSharp/v202411/ForecastService/GetTrafficData.cs index 74b1c8a2d0a..096180582ed 100755 --- a/examples/AdManager/CSharp/v202402/ForecastService/GetTrafficData.cs +++ b/examples/AdManager/CSharp/v202411/ForecastService/GetTrafficData.cs @@ -14,11 +14,11 @@ using System; using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; -using DateTime = Google.Api.Ads.AdManager.v202402.DateTime; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; +using DateTime = Google.Api.Ads.AdManager.v202411.DateTime; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This example gets run-of-network traffic for the previous and next 7 days. diff --git a/examples/AdManager/CSharp/v202402/InventoryService/CreateAdUnits.cs b/examples/AdManager/CSharp/v202411/InventoryService/CreateAdUnits.cs similarity index 97% rename from examples/AdManager/CSharp/v202402/InventoryService/CreateAdUnits.cs rename to examples/AdManager/CSharp/v202411/InventoryService/CreateAdUnits.cs index 87f91fe7f3b..b7a2e9fbff5 100755 --- a/examples/AdManager/CSharp/v202402/InventoryService/CreateAdUnits.cs +++ b/examples/AdManager/CSharp/v202411/InventoryService/CreateAdUnits.cs @@ -13,11 +13,11 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.v202411; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This code example creates new ad units under the effective root ad unit. diff --git a/examples/AdManager/CSharp/v202402/InventoryService/CreateVideoAdUnit.cs b/examples/AdManager/CSharp/v202411/InventoryService/CreateVideoAdUnit.cs similarity index 98% rename from examples/AdManager/CSharp/v202402/InventoryService/CreateVideoAdUnit.cs rename to examples/AdManager/CSharp/v202411/InventoryService/CreateVideoAdUnit.cs index a9f6ee65890..a2b4879c190 100755 --- a/examples/AdManager/CSharp/v202402/InventoryService/CreateVideoAdUnit.cs +++ b/examples/AdManager/CSharp/v202411/InventoryService/CreateVideoAdUnit.cs @@ -13,11 +13,11 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.v202411; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This code example creates a new video ad unit under the effective root diff --git a/examples/AdManager/CSharp/v202402/InventoryService/DeActivateAdUnits.cs b/examples/AdManager/CSharp/v202411/InventoryService/DeActivateAdUnits.cs similarity index 97% rename from examples/AdManager/CSharp/v202402/InventoryService/DeActivateAdUnits.cs rename to examples/AdManager/CSharp/v202411/InventoryService/DeActivateAdUnits.cs index 6cfafc7d337..dd86eae63e2 100755 --- a/examples/AdManager/CSharp/v202402/InventoryService/DeActivateAdUnits.cs +++ b/examples/AdManager/CSharp/v202411/InventoryService/DeActivateAdUnits.cs @@ -13,13 +13,13 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; using System; using System.Collections.Generic; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This code example deactivates all active ad units. To determine which ad diff --git a/examples/AdManager/CSharp/v202402/InventoryService/GetAdUnitsByStatement.cs b/examples/AdManager/CSharp/v202411/InventoryService/GetAdUnitsByStatement.cs similarity index 96% rename from examples/AdManager/CSharp/v202402/InventoryService/GetAdUnitsByStatement.cs rename to examples/AdManager/CSharp/v202411/InventoryService/GetAdUnitsByStatement.cs index a9253d85c9c..cf0501f76e1 100755 --- a/examples/AdManager/CSharp/v202402/InventoryService/GetAdUnitsByStatement.cs +++ b/examples/AdManager/CSharp/v202411/InventoryService/GetAdUnitsByStatement.cs @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This code example gets all child ad units of the effective root ad unit. To create an ad diff --git a/examples/AdManager/CSharp/v202402/InventoryService/GetAllAdUnitSizes.cs b/examples/AdManager/CSharp/v202411/InventoryService/GetAllAdUnitSizes.cs similarity index 94% rename from examples/AdManager/CSharp/v202402/InventoryService/GetAllAdUnitSizes.cs rename to examples/AdManager/CSharp/v202411/InventoryService/GetAllAdUnitSizes.cs index 240d2749b0e..81780def63c 100644 --- a/examples/AdManager/CSharp/v202402/InventoryService/GetAllAdUnitSizes.cs +++ b/examples/AdManager/CSharp/v202411/InventoryService/GetAllAdUnitSizes.cs @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This example gets all ad unit sizes. diff --git a/examples/AdManager/CSharp/v202402/InventoryService/GetAllAdUnits.cs b/examples/AdManager/CSharp/v202411/InventoryService/GetAllAdUnits.cs similarity index 95% rename from examples/AdManager/CSharp/v202402/InventoryService/GetAllAdUnits.cs rename to examples/AdManager/CSharp/v202411/InventoryService/GetAllAdUnits.cs index 79da34e256e..a52874a3938 100755 --- a/examples/AdManager/CSharp/v202402/InventoryService/GetAllAdUnits.cs +++ b/examples/AdManager/CSharp/v202411/InventoryService/GetAllAdUnits.cs @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This example gets all ad units. diff --git a/examples/AdManager/CSharp/v202402/InventoryService/GetInventoryTree.cs b/examples/AdManager/CSharp/v202411/InventoryService/GetInventoryTree.cs similarity index 98% rename from examples/AdManager/CSharp/v202402/InventoryService/GetInventoryTree.cs rename to examples/AdManager/CSharp/v202411/InventoryService/GetInventoryTree.cs index 7ac7df4433b..2d4db282b2f 100755 --- a/examples/AdManager/CSharp/v202402/InventoryService/GetInventoryTree.cs +++ b/examples/AdManager/CSharp/v202411/InventoryService/GetInventoryTree.cs @@ -13,14 +13,14 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; using System; using System.Collections.Generic; using System.Text; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This code example retrieves a previously created ad units and creates diff --git a/examples/AdManager/CSharp/v202402/InventoryService/UpdateAdUnits.cs b/examples/AdManager/CSharp/v202411/InventoryService/UpdateAdUnits.cs similarity index 96% rename from examples/AdManager/CSharp/v202402/InventoryService/UpdateAdUnits.cs rename to examples/AdManager/CSharp/v202411/InventoryService/UpdateAdUnits.cs index e0de35478d6..ed7c3f5fcfb 100755 --- a/examples/AdManager/CSharp/v202402/InventoryService/UpdateAdUnits.cs +++ b/examples/AdManager/CSharp/v202411/InventoryService/UpdateAdUnits.cs @@ -13,13 +13,13 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; using System; using System.Collections.Generic; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This code example updates an ad unit's sizes by adding a banner ad size. diff --git a/examples/AdManager/CSharp/v202402/LabelService/CreateLabels.cs b/examples/AdManager/CSharp/v202411/LabelService/CreateLabels.cs similarity index 97% rename from examples/AdManager/CSharp/v202402/LabelService/CreateLabels.cs rename to examples/AdManager/CSharp/v202411/LabelService/CreateLabels.cs index 0bbf77881c9..0a9b94f6038 100755 --- a/examples/AdManager/CSharp/v202402/LabelService/CreateLabels.cs +++ b/examples/AdManager/CSharp/v202411/LabelService/CreateLabels.cs @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.v202411; using System; using System.Text; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This code example creates new labels. To determine which labels exist, run diff --git a/examples/AdManager/CSharp/v202402/LabelService/DeactivateActiveLabels.cs b/examples/AdManager/CSharp/v202411/LabelService/DeactivateActiveLabels.cs similarity index 96% rename from examples/AdManager/CSharp/v202402/LabelService/DeactivateActiveLabels.cs rename to examples/AdManager/CSharp/v202411/LabelService/DeactivateActiveLabels.cs index 7c0ebecd35c..f6b29c4e165 100755 --- a/examples/AdManager/CSharp/v202402/LabelService/DeactivateActiveLabels.cs +++ b/examples/AdManager/CSharp/v202411/LabelService/DeactivateActiveLabels.cs @@ -13,13 +13,13 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; using System; using System.Collections.Generic; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This code example deactivates all active labels. To determine which labels diff --git a/examples/AdManager/CSharp/v202402/LabelService/GetActiveLabels.cs b/examples/AdManager/CSharp/v202411/LabelService/GetActiveLabels.cs similarity index 95% rename from examples/AdManager/CSharp/v202402/LabelService/GetActiveLabels.cs rename to examples/AdManager/CSharp/v202411/LabelService/GetActiveLabels.cs index f8fc595264f..71925b19540 100644 --- a/examples/AdManager/CSharp/v202402/LabelService/GetActiveLabels.cs +++ b/examples/AdManager/CSharp/v202411/LabelService/GetActiveLabels.cs @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This example gets all active labels. diff --git a/examples/AdManager/CSharp/v202402/LabelService/GetAllLabels.cs b/examples/AdManager/CSharp/v202411/LabelService/GetAllLabels.cs similarity index 95% rename from examples/AdManager/CSharp/v202402/LabelService/GetAllLabels.cs rename to examples/AdManager/CSharp/v202411/LabelService/GetAllLabels.cs index 91456bdc9bb..88366b8a47a 100755 --- a/examples/AdManager/CSharp/v202402/LabelService/GetAllLabels.cs +++ b/examples/AdManager/CSharp/v202411/LabelService/GetAllLabels.cs @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This example gets all labels. diff --git a/examples/AdManager/CSharp/v202402/LabelService/UpdateLabels.cs b/examples/AdManager/CSharp/v202411/LabelService/UpdateLabels.cs similarity index 95% rename from examples/AdManager/CSharp/v202402/LabelService/UpdateLabels.cs rename to examples/AdManager/CSharp/v202411/LabelService/UpdateLabels.cs index 963a8cd19ee..d9caf5a1752 100755 --- a/examples/AdManager/CSharp/v202402/LabelService/UpdateLabels.cs +++ b/examples/AdManager/CSharp/v202411/LabelService/UpdateLabels.cs @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This code example updates a label's description. To determine which labels diff --git a/examples/AdManager/CSharp/v202402/LineItemCreativeAssociationService/ActivateLicas.cs b/examples/AdManager/CSharp/v202411/LineItemCreativeAssociationService/ActivateLicas.cs similarity index 97% rename from examples/AdManager/CSharp/v202402/LineItemCreativeAssociationService/ActivateLicas.cs rename to examples/AdManager/CSharp/v202411/LineItemCreativeAssociationService/ActivateLicas.cs index 7f18d75881d..ae6cca9fd38 100755 --- a/examples/AdManager/CSharp/v202402/LineItemCreativeAssociationService/ActivateLicas.cs +++ b/examples/AdManager/CSharp/v202411/LineItemCreativeAssociationService/ActivateLicas.cs @@ -13,13 +13,13 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; using System; using System.Collections.Generic; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This code example activates all LICAs for a given line item. To diff --git a/examples/AdManager/CSharp/v202402/LineItemCreativeAssociationService/CreateLicas.cs b/examples/AdManager/CSharp/v202411/LineItemCreativeAssociationService/CreateLicas.cs similarity index 97% rename from examples/AdManager/CSharp/v202402/LineItemCreativeAssociationService/CreateLicas.cs rename to examples/AdManager/CSharp/v202411/LineItemCreativeAssociationService/CreateLicas.cs index 1a4e1c8fecb..cf20725c72d 100755 --- a/examples/AdManager/CSharp/v202402/LineItemCreativeAssociationService/CreateLicas.cs +++ b/examples/AdManager/CSharp/v202411/LineItemCreativeAssociationService/CreateLicas.cs @@ -13,11 +13,11 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.v202411; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This code example creates new line item creative associations (LICAs) for diff --git a/examples/AdManager/CSharp/v202402/LineItemCreativeAssociationService/DeactivateLicas.cs b/examples/AdManager/CSharp/v202411/LineItemCreativeAssociationService/DeactivateLicas.cs similarity index 97% rename from examples/AdManager/CSharp/v202402/LineItemCreativeAssociationService/DeactivateLicas.cs rename to examples/AdManager/CSharp/v202411/LineItemCreativeAssociationService/DeactivateLicas.cs index bcfb61ec4aa..7aa5f8d5b3a 100755 --- a/examples/AdManager/CSharp/v202402/LineItemCreativeAssociationService/DeactivateLicas.cs +++ b/examples/AdManager/CSharp/v202411/LineItemCreativeAssociationService/DeactivateLicas.cs @@ -13,13 +13,13 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; using System; using System.Collections.Generic; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This code example deactivates all LICAs for a given line item. To determine diff --git a/examples/AdManager/CSharp/v202402/LineItemCreativeAssociationService/GetAllLicas.cs b/examples/AdManager/CSharp/v202411/LineItemCreativeAssociationService/GetAllLicas.cs similarity index 96% rename from examples/AdManager/CSharp/v202402/LineItemCreativeAssociationService/GetAllLicas.cs rename to examples/AdManager/CSharp/v202411/LineItemCreativeAssociationService/GetAllLicas.cs index 8511627c599..59715af3f50 100755 --- a/examples/AdManager/CSharp/v202402/LineItemCreativeAssociationService/GetAllLicas.cs +++ b/examples/AdManager/CSharp/v202411/LineItemCreativeAssociationService/GetAllLicas.cs @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This example gets all line item creative associations. diff --git a/examples/AdManager/CSharp/v202402/LineItemCreativeAssociationService/GetLicasForLineItem.cs b/examples/AdManager/CSharp/v202411/LineItemCreativeAssociationService/GetLicasForLineItem.cs similarity index 96% rename from examples/AdManager/CSharp/v202402/LineItemCreativeAssociationService/GetLicasForLineItem.cs rename to examples/AdManager/CSharp/v202411/LineItemCreativeAssociationService/GetLicasForLineItem.cs index 520d2a14b74..ab8e57c8570 100644 --- a/examples/AdManager/CSharp/v202402/LineItemCreativeAssociationService/GetLicasForLineItem.cs +++ b/examples/AdManager/CSharp/v202411/LineItemCreativeAssociationService/GetLicasForLineItem.cs @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This example gets all line item creative associations for a given line item. diff --git a/examples/AdManager/CSharp/v202402/LineItemCreativeAssociationService/UpdateLicas.cs b/examples/AdManager/CSharp/v202411/LineItemCreativeAssociationService/UpdateLicas.cs similarity index 96% rename from examples/AdManager/CSharp/v202402/LineItemCreativeAssociationService/UpdateLicas.cs rename to examples/AdManager/CSharp/v202411/LineItemCreativeAssociationService/UpdateLicas.cs index 82211b02676..d5bf726b5c9 100755 --- a/examples/AdManager/CSharp/v202402/LineItemCreativeAssociationService/UpdateLicas.cs +++ b/examples/AdManager/CSharp/v202411/LineItemCreativeAssociationService/UpdateLicas.cs @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This code example updates the destination URL of a LICA. To determine which LICAs exist, diff --git a/examples/AdManager/CSharp/v202402/LineItemService/ActivateLineItem.cs b/examples/AdManager/CSharp/v202411/LineItemService/ActivateLineItem.cs similarity index 97% rename from examples/AdManager/CSharp/v202402/LineItemService/ActivateLineItem.cs rename to examples/AdManager/CSharp/v202411/LineItemService/ActivateLineItem.cs index 7bcef009e28..86c8766f26f 100755 --- a/examples/AdManager/CSharp/v202402/LineItemService/ActivateLineItem.cs +++ b/examples/AdManager/CSharp/v202411/LineItemService/ActivateLineItem.cs @@ -13,13 +13,13 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; using System; using System.Collections.Generic; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This code example activates all line items for the given order. To be diff --git a/examples/AdManager/CSharp/v202402/LineItemService/CreateLineItems.cs b/examples/AdManager/CSharp/v202411/LineItemService/CreateLineItems.cs similarity index 98% rename from examples/AdManager/CSharp/v202402/LineItemService/CreateLineItems.cs rename to examples/AdManager/CSharp/v202411/LineItemService/CreateLineItems.cs index 059bfab4194..6a2bdb87e9c 100755 --- a/examples/AdManager/CSharp/v202402/LineItemService/CreateLineItems.cs +++ b/examples/AdManager/CSharp/v202411/LineItemService/CreateLineItems.cs @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This code example creates new line items. To determine which line items @@ -117,7 +117,7 @@ public void Run(AdManagerUser user) // Target only the weekend in the browser's timezone. DayPart saturdayDayPart = new DayPart(); - saturdayDayPart.dayOfWeek = Google.Api.Ads.AdManager.v202402.DayOfWeek.SATURDAY; + saturdayDayPart.dayOfWeek = Google.Api.Ads.AdManager.v202411.DayOfWeek.SATURDAY; saturdayDayPart.startTime = new TimeOfDay(); saturdayDayPart.startTime.hour = 0; @@ -128,7 +128,7 @@ public void Run(AdManagerUser user) saturdayDayPart.endTime.minute = MinuteOfHour.ZERO; DayPart sundayDayPart = new DayPart(); - sundayDayPart.dayOfWeek = Google.Api.Ads.AdManager.v202402.DayOfWeek.SUNDAY; + sundayDayPart.dayOfWeek = Google.Api.Ads.AdManager.v202411.DayOfWeek.SUNDAY; sundayDayPart.startTime = new TimeOfDay(); sundayDayPart.startTime.hour = 0; diff --git a/examples/AdManager/CSharp/v202402/LineItemService/CreateVideoLineItem.cs b/examples/AdManager/CSharp/v202411/LineItemService/CreateVideoLineItem.cs similarity index 98% rename from examples/AdManager/CSharp/v202402/LineItemService/CreateVideoLineItem.cs rename to examples/AdManager/CSharp/v202411/LineItemService/CreateVideoLineItem.cs index ae8d17d7a94..d4d50ba9048 100755 --- a/examples/AdManager/CSharp/v202402/LineItemService/CreateVideoLineItem.cs +++ b/examples/AdManager/CSharp/v202411/LineItemService/CreateVideoLineItem.cs @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This code example creates a new line item to serve to video content. To diff --git a/examples/AdManager/CSharp/v202402/LineItemService/GetAllLineItems.cs b/examples/AdManager/CSharp/v202411/LineItemService/GetAllLineItems.cs similarity index 95% rename from examples/AdManager/CSharp/v202402/LineItemService/GetAllLineItems.cs rename to examples/AdManager/CSharp/v202411/LineItemService/GetAllLineItems.cs index 8715cac2c10..e1e5a240890 100755 --- a/examples/AdManager/CSharp/v202402/LineItemService/GetAllLineItems.cs +++ b/examples/AdManager/CSharp/v202411/LineItemService/GetAllLineItems.cs @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This example gets all line items. diff --git a/examples/AdManager/CSharp/v202402/LineItemService/GetLineItemsThatNeedCreatives.cs b/examples/AdManager/CSharp/v202411/LineItemService/GetLineItemsThatNeedCreatives.cs similarity index 96% rename from examples/AdManager/CSharp/v202402/LineItemService/GetLineItemsThatNeedCreatives.cs rename to examples/AdManager/CSharp/v202411/LineItemService/GetLineItemsThatNeedCreatives.cs index c9f78e0a2e7..24ed6a4425b 100644 --- a/examples/AdManager/CSharp/v202402/LineItemService/GetLineItemsThatNeedCreatives.cs +++ b/examples/AdManager/CSharp/v202411/LineItemService/GetLineItemsThatNeedCreatives.cs @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This example gets all line items that are missing creatives. diff --git a/examples/AdManager/CSharp/v202402/LineItemService/GetRecentlyUpdatedLineItems.cs b/examples/AdManager/CSharp/v202411/LineItemService/GetRecentlyUpdatedLineItems.cs similarity index 96% rename from examples/AdManager/CSharp/v202402/LineItemService/GetRecentlyUpdatedLineItems.cs rename to examples/AdManager/CSharp/v202411/LineItemService/GetRecentlyUpdatedLineItems.cs index 31baad9d21b..485458372d7 100755 --- a/examples/AdManager/CSharp/v202402/LineItemService/GetRecentlyUpdatedLineItems.cs +++ b/examples/AdManager/CSharp/v202411/LineItemService/GetRecentlyUpdatedLineItems.cs @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This example gets only recently updated line items. diff --git a/examples/AdManager/CSharp/v202402/LineItemService/TargetCustomCriteria.cs b/examples/AdManager/CSharp/v202411/LineItemService/TargetCustomCriteria.cs similarity index 98% rename from examples/AdManager/CSharp/v202402/LineItemService/TargetCustomCriteria.cs rename to examples/AdManager/CSharp/v202411/LineItemService/TargetCustomCriteria.cs index 790294edc3a..6a891fb0dae 100755 --- a/examples/AdManager/CSharp/v202402/LineItemService/TargetCustomCriteria.cs +++ b/examples/AdManager/CSharp/v202411/LineItemService/TargetCustomCriteria.cs @@ -13,13 +13,13 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; using System; using System.Text; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This code example updates a line item to add custom criteria targeting. To diff --git a/examples/AdManager/CSharp/v202402/LineItemService/UpdateLineItems.cs b/examples/AdManager/CSharp/v202411/LineItemService/UpdateLineItems.cs similarity index 96% rename from examples/AdManager/CSharp/v202402/LineItemService/UpdateLineItems.cs rename to examples/AdManager/CSharp/v202411/LineItemService/UpdateLineItems.cs index ab489f6a3c4..a0646db15fd 100755 --- a/examples/AdManager/CSharp/v202402/LineItemService/UpdateLineItems.cs +++ b/examples/AdManager/CSharp/v202411/LineItemService/UpdateLineItems.cs @@ -13,13 +13,13 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; using System; using System.Collections.Generic; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This code example updates the delivery rate of a line items. diff --git a/examples/AdManager/CSharp/v202402/NativeStyleService/CreateNativeStyles.cs b/examples/AdManager/CSharp/v202411/NativeStyleService/CreateNativeStyles.cs similarity index 98% rename from examples/AdManager/CSharp/v202402/NativeStyleService/CreateNativeStyles.cs rename to examples/AdManager/CSharp/v202411/NativeStyleService/CreateNativeStyles.cs index bd2905972fa..d13d4c9e8a7 100755 --- a/examples/AdManager/CSharp/v202402/NativeStyleService/CreateNativeStyles.cs +++ b/examples/AdManager/CSharp/v202411/NativeStyleService/CreateNativeStyles.cs @@ -13,11 +13,11 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.v202411; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This code example creates a new native style. diff --git a/examples/AdManager/CSharp/v202402/NativeStyleService/GetAllNativeStyles.cs b/examples/AdManager/CSharp/v202411/NativeStyleService/GetAllNativeStyles.cs similarity index 95% rename from examples/AdManager/CSharp/v202402/NativeStyleService/GetAllNativeStyles.cs rename to examples/AdManager/CSharp/v202411/NativeStyleService/GetAllNativeStyles.cs index 20619124cf5..ccbfe219d41 100755 --- a/examples/AdManager/CSharp/v202402/NativeStyleService/GetAllNativeStyles.cs +++ b/examples/AdManager/CSharp/v202411/NativeStyleService/GetAllNativeStyles.cs @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This example gets all native styles. diff --git a/examples/AdManager/CSharp/v202402/NetworkService/GetAllNetworks.cs b/examples/AdManager/CSharp/v202411/NetworkService/GetAllNetworks.cs similarity index 95% rename from examples/AdManager/CSharp/v202402/NetworkService/GetAllNetworks.cs rename to examples/AdManager/CSharp/v202411/NetworkService/GetAllNetworks.cs index c7db174debc..e80dff2f1eb 100755 --- a/examples/AdManager/CSharp/v202402/NetworkService/GetAllNetworks.cs +++ b/examples/AdManager/CSharp/v202411/NetworkService/GetAllNetworks.cs @@ -13,11 +13,11 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.v202411; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This example gets all networks. diff --git a/examples/AdManager/CSharp/v202402/NetworkService/GetCurrentNetwork.cs b/examples/AdManager/CSharp/v202411/NetworkService/GetCurrentNetwork.cs similarity index 95% rename from examples/AdManager/CSharp/v202402/NetworkService/GetCurrentNetwork.cs rename to examples/AdManager/CSharp/v202411/NetworkService/GetCurrentNetwork.cs index d3318696286..6a6697e4050 100755 --- a/examples/AdManager/CSharp/v202402/NetworkService/GetCurrentNetwork.cs +++ b/examples/AdManager/CSharp/v202411/NetworkService/GetCurrentNetwork.cs @@ -13,11 +13,11 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.v202411; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This code example gets the current network that you can make requests diff --git a/examples/AdManager/CSharp/v202402/NetworkService/GetDefaultThirdPartyDataDeclaration.cs b/examples/AdManager/CSharp/v202411/NetworkService/GetDefaultThirdPartyDataDeclaration.cs similarity index 96% rename from examples/AdManager/CSharp/v202402/NetworkService/GetDefaultThirdPartyDataDeclaration.cs rename to examples/AdManager/CSharp/v202411/NetworkService/GetDefaultThirdPartyDataDeclaration.cs index 75ee8f0e722..51ea319ef71 100755 --- a/examples/AdManager/CSharp/v202402/NetworkService/GetDefaultThirdPartyDataDeclaration.cs +++ b/examples/AdManager/CSharp/v202411/NetworkService/GetDefaultThirdPartyDataDeclaration.cs @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This code example gets the current network's default third party data declaration. diff --git a/examples/AdManager/CSharp/v202402/NetworkService/MakeTestNetwork.cs b/examples/AdManager/CSharp/v202411/NetworkService/MakeTestNetwork.cs similarity index 97% rename from examples/AdManager/CSharp/v202402/NetworkService/MakeTestNetwork.cs rename to examples/AdManager/CSharp/v202411/NetworkService/MakeTestNetwork.cs index ce6dbd22342..80315000ab5 100755 --- a/examples/AdManager/CSharp/v202402/NetworkService/MakeTestNetwork.cs +++ b/examples/AdManager/CSharp/v202411/NetworkService/MakeTestNetwork.cs @@ -13,11 +13,11 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.v202411; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This code example creates a test network. You do not need to have an Ad Manager diff --git a/examples/AdManager/CSharp/v202402/OrderService/ApproveOrder.cs b/examples/AdManager/CSharp/v202411/OrderService/ApproveOrder.cs similarity index 97% rename from examples/AdManager/CSharp/v202402/OrderService/ApproveOrder.cs rename to examples/AdManager/CSharp/v202411/OrderService/ApproveOrder.cs index 690c6f8336c..0b2abcebde4 100755 --- a/examples/AdManager/CSharp/v202402/OrderService/ApproveOrder.cs +++ b/examples/AdManager/CSharp/v202411/OrderService/ApproveOrder.cs @@ -13,13 +13,13 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; using System; using System.Collections.Generic; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This code example approves an order and all line items belonging to that order. To determine diff --git a/examples/AdManager/CSharp/v202402/OrderService/CreateOrders.cs b/examples/AdManager/CSharp/v202411/OrderService/CreateOrders.cs similarity index 97% rename from examples/AdManager/CSharp/v202402/OrderService/CreateOrders.cs rename to examples/AdManager/CSharp/v202411/OrderService/CreateOrders.cs index 613100f735b..59a8235463a 100755 --- a/examples/AdManager/CSharp/v202402/OrderService/CreateOrders.cs +++ b/examples/AdManager/CSharp/v202411/OrderService/CreateOrders.cs @@ -13,11 +13,11 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.v202411; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This code example creates new orders. To determine which orders exist, diff --git a/examples/AdManager/CSharp/v202402/OrderService/GetAllOrders.cs b/examples/AdManager/CSharp/v202411/OrderService/GetAllOrders.cs similarity index 95% rename from examples/AdManager/CSharp/v202402/OrderService/GetAllOrders.cs rename to examples/AdManager/CSharp/v202411/OrderService/GetAllOrders.cs index df9ede55a11..6c5976adf54 100755 --- a/examples/AdManager/CSharp/v202402/OrderService/GetAllOrders.cs +++ b/examples/AdManager/CSharp/v202411/OrderService/GetAllOrders.cs @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This example gets all orders. diff --git a/examples/AdManager/CSharp/v202402/OrderService/GetOrdersStartingSoon.cs b/examples/AdManager/CSharp/v202411/OrderService/GetOrdersStartingSoon.cs similarity index 96% rename from examples/AdManager/CSharp/v202402/OrderService/GetOrdersStartingSoon.cs rename to examples/AdManager/CSharp/v202411/OrderService/GetOrdersStartingSoon.cs index 9e0f60107e9..5aa9263702a 100644 --- a/examples/AdManager/CSharp/v202402/OrderService/GetOrdersStartingSoon.cs +++ b/examples/AdManager/CSharp/v202411/OrderService/GetOrdersStartingSoon.cs @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This example gets all orders that are starting soon. diff --git a/examples/AdManager/CSharp/v202402/OrderService/UpdateOrders.cs b/examples/AdManager/CSharp/v202411/OrderService/UpdateOrders.cs similarity index 96% rename from examples/AdManager/CSharp/v202402/OrderService/UpdateOrders.cs rename to examples/AdManager/CSharp/v202411/OrderService/UpdateOrders.cs index 8a8c9f2c5ae..fa6a27ce8c1 100755 --- a/examples/AdManager/CSharp/v202402/OrderService/UpdateOrders.cs +++ b/examples/AdManager/CSharp/v202411/OrderService/UpdateOrders.cs @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This code example updates the note of an order. To determine which orders exist, diff --git a/examples/AdManager/CSharp/v202402/PlacementService/CreatePlacements.cs b/examples/AdManager/CSharp/v202411/PlacementService/CreatePlacements.cs similarity index 98% rename from examples/AdManager/CSharp/v202402/PlacementService/CreatePlacements.cs rename to examples/AdManager/CSharp/v202411/PlacementService/CreatePlacements.cs index 8788a4f59df..7955e6e147a 100755 --- a/examples/AdManager/CSharp/v202402/PlacementService/CreatePlacements.cs +++ b/examples/AdManager/CSharp/v202411/PlacementService/CreatePlacements.cs @@ -13,13 +13,13 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; using System; using System.Collections.Generic; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This code example creates new placements for various ad unit sizes. To diff --git a/examples/AdManager/CSharp/v202402/PlacementService/DeactivatePlacement.cs b/examples/AdManager/CSharp/v202411/PlacementService/DeactivatePlacement.cs similarity index 97% rename from examples/AdManager/CSharp/v202402/PlacementService/DeactivatePlacement.cs rename to examples/AdManager/CSharp/v202411/PlacementService/DeactivatePlacement.cs index 0c846c45fff..7ac5dec4dd1 100755 --- a/examples/AdManager/CSharp/v202402/PlacementService/DeactivatePlacement.cs +++ b/examples/AdManager/CSharp/v202411/PlacementService/DeactivatePlacement.cs @@ -13,13 +13,13 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; using System; using System.Collections.Generic; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This code example deactivates a placement. To determine which diff --git a/examples/AdManager/CSharp/v202402/PlacementService/GetActivePlacements.cs b/examples/AdManager/CSharp/v202411/PlacementService/GetActivePlacements.cs similarity index 96% rename from examples/AdManager/CSharp/v202402/PlacementService/GetActivePlacements.cs rename to examples/AdManager/CSharp/v202411/PlacementService/GetActivePlacements.cs index 95c34eba894..20c9b8cc0a5 100644 --- a/examples/AdManager/CSharp/v202402/PlacementService/GetActivePlacements.cs +++ b/examples/AdManager/CSharp/v202411/PlacementService/GetActivePlacements.cs @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This example gets all active placements. diff --git a/examples/AdManager/CSharp/v202402/PlacementService/GetAllPlacements.cs b/examples/AdManager/CSharp/v202411/PlacementService/GetAllPlacements.cs similarity index 95% rename from examples/AdManager/CSharp/v202402/PlacementService/GetAllPlacements.cs rename to examples/AdManager/CSharp/v202411/PlacementService/GetAllPlacements.cs index 9b5d36af8f6..cb5e322e9f6 100755 --- a/examples/AdManager/CSharp/v202402/PlacementService/GetAllPlacements.cs +++ b/examples/AdManager/CSharp/v202411/PlacementService/GetAllPlacements.cs @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This example gets all placements. diff --git a/examples/AdManager/CSharp/v202402/PlacementService/UpdatePlacements.cs b/examples/AdManager/CSharp/v202411/PlacementService/UpdatePlacements.cs similarity index 96% rename from examples/AdManager/CSharp/v202402/PlacementService/UpdatePlacements.cs rename to examples/AdManager/CSharp/v202411/PlacementService/UpdatePlacements.cs index 371f3e1f4b1..1e69f52170e 100755 --- a/examples/AdManager/CSharp/v202402/PlacementService/UpdatePlacements.cs +++ b/examples/AdManager/CSharp/v202411/PlacementService/UpdatePlacements.cs @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This code example updates the description of a placement. diff --git a/examples/AdManager/CSharp/v202402/ProposalLineItemService/ArchiveProposalLineItems.cs b/examples/AdManager/CSharp/v202411/ProposalLineItemService/ArchiveProposalLineItems.cs similarity index 95% rename from examples/AdManager/CSharp/v202402/ProposalLineItemService/ArchiveProposalLineItems.cs rename to examples/AdManager/CSharp/v202411/ProposalLineItemService/ArchiveProposalLineItems.cs index 9116e98df02..280784b4405 100755 --- a/examples/AdManager/CSharp/v202402/ProposalLineItemService/ArchiveProposalLineItems.cs +++ b/examples/AdManager/CSharp/v202411/ProposalLineItemService/ArchiveProposalLineItems.cs @@ -13,13 +13,13 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; using System; using System.Collections.Generic; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This code example archives a proposal line item. To determine which proposal line items @@ -103,8 +103,8 @@ public void Run(AdManagerUser user) statementBuilder.RemoveLimitAndOffset(); // Create action. - Google.Api.Ads.AdManager.v202402.ArchiveProposalLineItems action = - new Google.Api.Ads.AdManager.v202402.ArchiveProposalLineItems(); + Google.Api.Ads.AdManager.v202411.ArchiveProposalLineItems action = + new Google.Api.Ads.AdManager.v202411.ArchiveProposalLineItems(); // Perform action. UpdateResult result = diff --git a/examples/AdManager/CSharp/v202402/ProposalLineItemService/CreateProposalLineItems.cs b/examples/AdManager/CSharp/v202411/ProposalLineItemService/CreateProposalLineItems.cs similarity index 97% rename from examples/AdManager/CSharp/v202402/ProposalLineItemService/CreateProposalLineItems.cs rename to examples/AdManager/CSharp/v202411/ProposalLineItemService/CreateProposalLineItems.cs index afa92ca43eb..3e90454b0a7 100755 --- a/examples/AdManager/CSharp/v202402/ProposalLineItemService/CreateProposalLineItems.cs +++ b/examples/AdManager/CSharp/v202411/ProposalLineItemService/CreateProposalLineItems.cs @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This example creates a new proposal line item. diff --git a/examples/AdManager/CSharp/v202402/ProposalLineItemService/GetAllProposalLineItems.cs b/examples/AdManager/CSharp/v202411/ProposalLineItemService/GetAllProposalLineItems.cs similarity index 96% rename from examples/AdManager/CSharp/v202402/ProposalLineItemService/GetAllProposalLineItems.cs rename to examples/AdManager/CSharp/v202411/ProposalLineItemService/GetAllProposalLineItems.cs index f20593dc062..c557c477f2f 100755 --- a/examples/AdManager/CSharp/v202402/ProposalLineItemService/GetAllProposalLineItems.cs +++ b/examples/AdManager/CSharp/v202411/ProposalLineItemService/GetAllProposalLineItems.cs @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This example gets all proposal line items. diff --git a/examples/AdManager/CSharp/v202402/ProposalLineItemService/GetProposalLineItemsForProposal.cs b/examples/AdManager/CSharp/v202411/ProposalLineItemService/GetProposalLineItemsForProposal.cs similarity index 96% rename from examples/AdManager/CSharp/v202402/ProposalLineItemService/GetProposalLineItemsForProposal.cs rename to examples/AdManager/CSharp/v202411/ProposalLineItemService/GetProposalLineItemsForProposal.cs index a5d530a0a65..adaf9e15f0f 100644 --- a/examples/AdManager/CSharp/v202402/ProposalLineItemService/GetProposalLineItemsForProposal.cs +++ b/examples/AdManager/CSharp/v202411/ProposalLineItemService/GetProposalLineItemsForProposal.cs @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This example gets all proposal line items belonging to a specific proposal. diff --git a/examples/AdManager/CSharp/v202402/ProposalLineItemService/UpdateProposalLineItems.cs b/examples/AdManager/CSharp/v202411/ProposalLineItemService/UpdateProposalLineItems.cs similarity index 96% rename from examples/AdManager/CSharp/v202402/ProposalLineItemService/UpdateProposalLineItems.cs rename to examples/AdManager/CSharp/v202411/ProposalLineItemService/UpdateProposalLineItems.cs index 5a966d47997..80e90d68520 100755 --- a/examples/AdManager/CSharp/v202402/ProposalLineItemService/UpdateProposalLineItems.cs +++ b/examples/AdManager/CSharp/v202411/ProposalLineItemService/UpdateProposalLineItems.cs @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This code example updates a proposal line item's notes. To determine which diff --git a/examples/AdManager/CSharp/v202402/ProposalService/CreateProposals.cs b/examples/AdManager/CSharp/v202411/ProposalService/CreateProposals.cs similarity index 97% rename from examples/AdManager/CSharp/v202402/ProposalService/CreateProposals.cs rename to examples/AdManager/CSharp/v202411/ProposalService/CreateProposals.cs index 7c770798da5..078c295ac96 100755 --- a/examples/AdManager/CSharp/v202402/ProposalService/CreateProposals.cs +++ b/examples/AdManager/CSharp/v202411/ProposalService/CreateProposals.cs @@ -13,11 +13,11 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.v202411; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This example creates a proposal. diff --git a/examples/AdManager/CSharp/v202402/ProposalService/GetAllProposals.cs b/examples/AdManager/CSharp/v202411/ProposalService/GetAllProposals.cs similarity index 95% rename from examples/AdManager/CSharp/v202402/ProposalService/GetAllProposals.cs rename to examples/AdManager/CSharp/v202411/ProposalService/GetAllProposals.cs index e6e3c0022ce..3dcd6cb05a2 100755 --- a/examples/AdManager/CSharp/v202402/ProposalService/GetAllProposals.cs +++ b/examples/AdManager/CSharp/v202411/ProposalService/GetAllProposals.cs @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This example gets all proposals. diff --git a/examples/AdManager/CSharp/v202402/ProposalService/GetMarketplaceComments.cs b/examples/AdManager/CSharp/v202411/ProposalService/GetMarketplaceComments.cs similarity index 96% rename from examples/AdManager/CSharp/v202402/ProposalService/GetMarketplaceComments.cs rename to examples/AdManager/CSharp/v202411/ProposalService/GetMarketplaceComments.cs index 9451d717fad..f667333efe7 100755 --- a/examples/AdManager/CSharp/v202402/ProposalService/GetMarketplaceComments.cs +++ b/examples/AdManager/CSharp/v202411/ProposalService/GetMarketplaceComments.cs @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This example gets the Marketplace comments for a programmatic proposal. diff --git a/examples/AdManager/CSharp/v202402/ProposalService/GetProposalsAwaitingSellerReview.cs b/examples/AdManager/CSharp/v202411/ProposalService/GetProposalsAwaitingSellerReview.cs similarity index 96% rename from examples/AdManager/CSharp/v202402/ProposalService/GetProposalsAwaitingSellerReview.cs rename to examples/AdManager/CSharp/v202411/ProposalService/GetProposalsAwaitingSellerReview.cs index c98e7c8bbde..a318dd4a589 100644 --- a/examples/AdManager/CSharp/v202402/ProposalService/GetProposalsAwaitingSellerReview.cs +++ b/examples/AdManager/CSharp/v202411/ProposalService/GetProposalsAwaitingSellerReview.cs @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This example gets all proposals awaiting seller review. diff --git a/examples/AdManager/CSharp/v202402/ProposalService/RequestBuyerAcceptance.cs b/examples/AdManager/CSharp/v202411/ProposalService/RequestBuyerAcceptance.cs similarity index 94% rename from examples/AdManager/CSharp/v202402/ProposalService/RequestBuyerAcceptance.cs rename to examples/AdManager/CSharp/v202411/ProposalService/RequestBuyerAcceptance.cs index ea7ff5e7991..433259aca76 100755 --- a/examples/AdManager/CSharp/v202402/ProposalService/RequestBuyerAcceptance.cs +++ b/examples/AdManager/CSharp/v202411/ProposalService/RequestBuyerAcceptance.cs @@ -13,13 +13,13 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; using System; using System.Collections.Generic; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This example sends programmatic proposals to Marketplace to request buyer acceptance. @@ -105,8 +105,8 @@ public void Run(AdManagerUser user, long proposalId) statementBuilder.RemoveLimitAndOffset(); // Create action. - Google.Api.Ads.AdManager.v202402.RequestBuyerAcceptance action = - new Google.Api.Ads.AdManager.v202402.RequestBuyerAcceptance(); + Google.Api.Ads.AdManager.v202411.RequestBuyerAcceptance action = + new Google.Api.Ads.AdManager.v202411.RequestBuyerAcceptance(); // Perform action. UpdateResult result = diff --git a/examples/AdManager/CSharp/v202402/ProposalService/UpdateProposals.cs b/examples/AdManager/CSharp/v202411/ProposalService/UpdateProposals.cs similarity index 96% rename from examples/AdManager/CSharp/v202402/ProposalService/UpdateProposals.cs rename to examples/AdManager/CSharp/v202411/ProposalService/UpdateProposals.cs index 46bfff05d38..198da727958 100755 --- a/examples/AdManager/CSharp/v202402/ProposalService/UpdateProposals.cs +++ b/examples/AdManager/CSharp/v202411/ProposalService/UpdateProposals.cs @@ -13,13 +13,13 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; using System; using System.Collections.Generic; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This code example updates the note of an proposal. To determine which proposals exist, diff --git a/examples/AdManager/CSharp/v202402/PublisherQueryLanguageService/FetchMatchTables.cs b/examples/AdManager/CSharp/v202411/PublisherQueryLanguageService/FetchMatchTables.cs similarity index 97% rename from examples/AdManager/CSharp/v202402/PublisherQueryLanguageService/FetchMatchTables.cs rename to examples/AdManager/CSharp/v202411/PublisherQueryLanguageService/FetchMatchTables.cs index bb46d0d202d..5aca517d9b3 100755 --- a/examples/AdManager/CSharp/v202402/PublisherQueryLanguageService/FetchMatchTables.cs +++ b/examples/AdManager/CSharp/v202411/PublisherQueryLanguageService/FetchMatchTables.cs @@ -14,13 +14,13 @@ using Google.Api.Ads.Common.Util; using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; using System; using System.Collections.Generic; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This code example fetches and creates match table files from the diff --git a/examples/AdManager/CSharp/v202402/PublisherQueryLanguageService/GetAllLineItemsUsingPql.cs b/examples/AdManager/CSharp/v202411/PublisherQueryLanguageService/GetAllLineItemsUsingPql.cs similarity index 94% rename from examples/AdManager/CSharp/v202402/PublisherQueryLanguageService/GetAllLineItemsUsingPql.cs rename to examples/AdManager/CSharp/v202411/PublisherQueryLanguageService/GetAllLineItemsUsingPql.cs index 5723a688018..d6110d1b224 100755 --- a/examples/AdManager/CSharp/v202402/PublisherQueryLanguageService/GetAllLineItemsUsingPql.cs +++ b/examples/AdManager/CSharp/v202411/PublisherQueryLanguageService/GetAllLineItemsUsingPql.cs @@ -14,19 +14,19 @@ using Google.Api.Ads.Common.Util; using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; using System; using System.Collections.Generic; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This code example gets all line items in your network using the Line_Item /// table. This code example may take a while to run. The Line_Item PQL table /// schema can be found here: - /// https://developers.google.com/doubleclick-publishers/docs/reference/v202402/PublisherQueryLanguageService#Line_Item + /// https://developers.google.com/doubleclick-publishers/docs/reference/v202411/PublisherQueryLanguageService#Line_Item /// public class GetAllLineItemsUsingPql : SampleBase { @@ -40,7 +40,7 @@ public override string Description return "This code example gets all line items in your network using the " + "Line_Item table. This code example may take a while to run. The Line_Item " + "PQL table schema can be found here: " + - "https://developers.google.com/doubleclick-publishers/docs/reference/v202402/" + + "https://developers.google.com/doubleclick-publishers/docs/reference/v202411/" + "PublisherQueryLanguageService#Line_Item"; } } diff --git a/examples/AdManager/CSharp/v202402/PublisherQueryLanguageService/GetAllProgrammaticBuyers.cs b/examples/AdManager/CSharp/v202411/PublisherQueryLanguageService/GetAllProgrammaticBuyers.cs similarity index 96% rename from examples/AdManager/CSharp/v202402/PublisherQueryLanguageService/GetAllProgrammaticBuyers.cs rename to examples/AdManager/CSharp/v202411/PublisherQueryLanguageService/GetAllProgrammaticBuyers.cs index 03f9a9a2f7d..5e062983a43 100755 --- a/examples/AdManager/CSharp/v202402/PublisherQueryLanguageService/GetAllProgrammaticBuyers.cs +++ b/examples/AdManager/CSharp/v202411/PublisherQueryLanguageService/GetAllProgrammaticBuyers.cs @@ -14,13 +14,13 @@ using Google.Api.Ads.Common.Util; using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; using System; using System.Collections.Generic; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This example gets all programmatic buyers in your network using the diff --git a/examples/AdManager/CSharp/v202402/PublisherQueryLanguageService/GetGeoTargets.cs b/examples/AdManager/CSharp/v202411/PublisherQueryLanguageService/GetGeoTargets.cs similarity index 95% rename from examples/AdManager/CSharp/v202402/PublisherQueryLanguageService/GetGeoTargets.cs rename to examples/AdManager/CSharp/v202411/PublisherQueryLanguageService/GetGeoTargets.cs index 8d272755bb5..10c8f8dc012 100755 --- a/examples/AdManager/CSharp/v202402/PublisherQueryLanguageService/GetGeoTargets.cs +++ b/examples/AdManager/CSharp/v202411/PublisherQueryLanguageService/GetGeoTargets.cs @@ -14,20 +14,20 @@ using Google.Api.Ads.Common.Util; using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; using System; using System.Collections.Generic; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This code example gets geographic criteria from the Geo_Target table, /// such as all cities available to target. Other types include 'Country', /// 'Region', 'State', 'Postal_Code', and 'DMA_Region' (i.e. Metro). /// A full list of available geo target types can be found at - /// https://developers.google.com/doubleclick-publishers/docs/reference/v202402/PublisherQueryLanguageService + /// https://developers.google.com/doubleclick-publishers/docs/reference/v202411/PublisherQueryLanguageService /// public class GetGeoTargets : SampleBase { @@ -42,7 +42,7 @@ public override string Description "such as all cities available to target. Other types include 'Country', " + "'Region', 'State', 'Postal_Code', and 'DMA_Region' (i.e. Metro). " + "A full list of available geo target types can be found at " + - "https://developers.google.com/doubleclick-publishers/docs/reference/v202402/" + + "https://developers.google.com/doubleclick-publishers/docs/reference/v202411/" + "PublisherQueryLanguageService"; } } diff --git a/examples/AdManager/CSharp/v202402/PublisherQueryLanguageService/GetLineItemsNamedLike.cs b/examples/AdManager/CSharp/v202411/PublisherQueryLanguageService/GetLineItemsNamedLike.cs similarity index 96% rename from examples/AdManager/CSharp/v202402/PublisherQueryLanguageService/GetLineItemsNamedLike.cs rename to examples/AdManager/CSharp/v202411/PublisherQueryLanguageService/GetLineItemsNamedLike.cs index e6f4cac5c33..f10a8b86fe3 100755 --- a/examples/AdManager/CSharp/v202402/PublisherQueryLanguageService/GetLineItemsNamedLike.cs +++ b/examples/AdManager/CSharp/v202411/PublisherQueryLanguageService/GetLineItemsNamedLike.cs @@ -14,13 +14,13 @@ using Google.Api.Ads.Common.Util; using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; using System; using System.Collections.Generic; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This code example gets all line items which have a name beginning with diff --git a/examples/AdManager/CSharp/v202402/PublisherQueryLanguageService/GetMcmEarnings.cs b/examples/AdManager/CSharp/v202411/PublisherQueryLanguageService/GetMcmEarnings.cs similarity index 97% rename from examples/AdManager/CSharp/v202402/PublisherQueryLanguageService/GetMcmEarnings.cs rename to examples/AdManager/CSharp/v202411/PublisherQueryLanguageService/GetMcmEarnings.cs index 91d45c80f61..acb99ec9236 100755 --- a/examples/AdManager/CSharp/v202402/PublisherQueryLanguageService/GetMcmEarnings.cs +++ b/examples/AdManager/CSharp/v202411/PublisherQueryLanguageService/GetMcmEarnings.cs @@ -14,13 +14,13 @@ using Google.Api.Ads.Common.Util; using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; using System; using System.Collections.Generic; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This example gets Multiple Customer Management earning information for the prior month. diff --git a/examples/AdManager/CSharp/v202402/PublisherQueryLanguageService/GetRecentChanges.cs b/examples/AdManager/CSharp/v202411/PublisherQueryLanguageService/GetRecentChanges.cs similarity index 95% rename from examples/AdManager/CSharp/v202402/PublisherQueryLanguageService/GetRecentChanges.cs rename to examples/AdManager/CSharp/v202411/PublisherQueryLanguageService/GetRecentChanges.cs index 06eb58afb81..0c67f4cc540 100755 --- a/examples/AdManager/CSharp/v202402/PublisherQueryLanguageService/GetRecentChanges.cs +++ b/examples/AdManager/CSharp/v202411/PublisherQueryLanguageService/GetRecentChanges.cs @@ -14,21 +14,21 @@ using Google.Api.Ads.Common.Util; using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; -using DateTime = Google.Api.Ads.AdManager.v202402.DateTime; +using DateTime = Google.Api.Ads.AdManager.v202411.DateTime; using System; using System.Collections.Generic; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This example gets recent changes in your network using the Change_History table. /// /// A full list of available tables can be found at - /// https://developers.google.com/doubleclick-publishers/docs/reference/v202402/PublisherQueryLanguageService + /// https://developers.google.com/doubleclick-publishers/docs/reference/v202411/PublisherQueryLanguageService /// public class GetRecentChanges : SampleBase { @@ -41,7 +41,7 @@ public override string Description { return "This example gets recent changes in your network using the " + "Change_History table. A full list of available tables can be found at " + - "https://developers.google.com/doubleclick-publishers/docs/reference/v202402/" + + "https://developers.google.com/doubleclick-publishers/docs/reference/v202411/" + "PublisherQueryLanguageService"; } } diff --git a/examples/AdManager/CSharp/v202402/ReportService/RunDeliveryReport.cs b/examples/AdManager/CSharp/v202411/ReportService/RunDeliveryReport.cs similarity index 97% rename from examples/AdManager/CSharp/v202402/ReportService/RunDeliveryReport.cs rename to examples/AdManager/CSharp/v202411/ReportService/RunDeliveryReport.cs index 9129f400006..c4676075ec3 100755 --- a/examples/AdManager/CSharp/v202402/ReportService/RunDeliveryReport.cs +++ b/examples/AdManager/CSharp/v202411/ReportService/RunDeliveryReport.cs @@ -14,12 +14,12 @@ using Google.Api.Ads.Common.Util.Reports; using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.v202402; -using Google.Api.Ads.AdManager.Util.v202402; +using Google.Api.Ads.AdManager.v202411; +using Google.Api.Ads.AdManager.Util.v202411; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This code example runs a report similar to the "Orders report" in the Ad Manager diff --git a/examples/AdManager/CSharp/v202402/ReportService/RunInventoryReport.cs b/examples/AdManager/CSharp/v202411/ReportService/RunInventoryReport.cs similarity index 96% rename from examples/AdManager/CSharp/v202402/ReportService/RunInventoryReport.cs rename to examples/AdManager/CSharp/v202411/ReportService/RunInventoryReport.cs index e3e1a0d2fcb..d7af3ae1b98 100755 --- a/examples/AdManager/CSharp/v202402/ReportService/RunInventoryReport.cs +++ b/examples/AdManager/CSharp/v202411/ReportService/RunInventoryReport.cs @@ -14,12 +14,12 @@ using Google.Api.Ads.Common.Util.Reports; using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.v202402; -using Google.Api.Ads.AdManager.Util.v202402; +using Google.Api.Ads.AdManager.v202411; +using Google.Api.Ads.AdManager.Util.v202411; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This code example runs a report equal to the "Whole network report" in the diff --git a/examples/AdManager/CSharp/v202402/ReportService/RunReachReport.cs b/examples/AdManager/CSharp/v202411/ReportService/RunReachReport.cs similarity index 96% rename from examples/AdManager/CSharp/v202402/ReportService/RunReachReport.cs rename to examples/AdManager/CSharp/v202411/ReportService/RunReachReport.cs index fdfd950517c..196601a2475 100755 --- a/examples/AdManager/CSharp/v202402/ReportService/RunReachReport.cs +++ b/examples/AdManager/CSharp/v202411/ReportService/RunReachReport.cs @@ -14,12 +14,12 @@ using Google.Api.Ads.Common.Util.Reports; using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.v202402; -using Google.Api.Ads.AdManager.Util.v202402; +using Google.Api.Ads.AdManager.v202411; +using Google.Api.Ads.AdManager.Util.v202411; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This code example runs a reach report. The report is saved to the specified file path. diff --git a/examples/AdManager/CSharp/v202402/ReportService/RunReachReportWithAdUnitDimensions.cs b/examples/AdManager/CSharp/v202411/ReportService/RunReachReportWithAdUnitDimensions.cs similarity index 96% rename from examples/AdManager/CSharp/v202402/ReportService/RunReachReportWithAdUnitDimensions.cs rename to examples/AdManager/CSharp/v202411/ReportService/RunReachReportWithAdUnitDimensions.cs index 1c5df5fed33..06b7c086d03 100755 --- a/examples/AdManager/CSharp/v202402/ReportService/RunReachReportWithAdUnitDimensions.cs +++ b/examples/AdManager/CSharp/v202411/ReportService/RunReachReportWithAdUnitDimensions.cs @@ -14,12 +14,12 @@ using Google.Api.Ads.Common.Util.Reports; using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.v202402; -using Google.Api.Ads.AdManager.Util.v202402; +using Google.Api.Ads.AdManager.v202411; +using Google.Api.Ads.AdManager.Util.v202411; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This code example runs a reach report with ad unit dimensions. The report is saved to the diff --git a/examples/AdManager/CSharp/v202402/ReportService/RunReportWithCustomFields.cs b/examples/AdManager/CSharp/v202411/ReportService/RunReportWithCustomFields.cs similarity index 97% rename from examples/AdManager/CSharp/v202402/ReportService/RunReportWithCustomFields.cs rename to examples/AdManager/CSharp/v202411/ReportService/RunReportWithCustomFields.cs index 2005c51c1aa..37725a15a51 100755 --- a/examples/AdManager/CSharp/v202402/ReportService/RunReportWithCustomFields.cs +++ b/examples/AdManager/CSharp/v202411/ReportService/RunReportWithCustomFields.cs @@ -14,13 +14,13 @@ using Google.Api.Ads.Common.Util.Reports; using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.v202402; -using Google.Api.Ads.AdManager.Util.v202402; +using Google.Api.Ads.AdManager.v202411; +using Google.Api.Ads.AdManager.Util.v202411; using System; using System.Collections.Generic; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This code example runs a report that includes custom fields found in the diff --git a/examples/AdManager/CSharp/v202402/ReportService/RunSavedQuery.cs b/examples/AdManager/CSharp/v202411/ReportService/RunSavedQuery.cs similarity index 96% rename from examples/AdManager/CSharp/v202402/ReportService/RunSavedQuery.cs rename to examples/AdManager/CSharp/v202411/ReportService/RunSavedQuery.cs index 87de285b7da..eda087dc0cc 100755 --- a/examples/AdManager/CSharp/v202402/ReportService/RunSavedQuery.cs +++ b/examples/AdManager/CSharp/v202411/ReportService/RunSavedQuery.cs @@ -14,12 +14,12 @@ using Google.Api.Ads.Common.Util.Reports; using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.v202402; -using Google.Api.Ads.AdManager.Util.v202402; +using Google.Api.Ads.AdManager.v202411; +using Google.Api.Ads.AdManager.Util.v202411; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This code example runs a report from a saved query. diff --git a/examples/AdManager/CSharp/v202402/SiteService/CreateSites.cs b/examples/AdManager/CSharp/v202411/SiteService/CreateSites.cs similarity index 96% rename from examples/AdManager/CSharp/v202402/SiteService/CreateSites.cs rename to examples/AdManager/CSharp/v202411/SiteService/CreateSites.cs index 47713398081..14557e65dbb 100755 --- a/examples/AdManager/CSharp/v202402/SiteService/CreateSites.cs +++ b/examples/AdManager/CSharp/v202411/SiteService/CreateSites.cs @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.v202411; using System; using System.Linq; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This code example creates new sites. diff --git a/examples/AdManager/CSharp/v202402/SiteService/GetAllSites.cs b/examples/AdManager/CSharp/v202411/SiteService/GetAllSites.cs similarity index 95% rename from examples/AdManager/CSharp/v202402/SiteService/GetAllSites.cs rename to examples/AdManager/CSharp/v202411/SiteService/GetAllSites.cs index 96440eaa671..4758a804760 100755 --- a/examples/AdManager/CSharp/v202402/SiteService/GetAllSites.cs +++ b/examples/AdManager/CSharp/v202411/SiteService/GetAllSites.cs @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This example gets all sites. diff --git a/examples/AdManager/CSharp/v202402/SiteService/GetSitesRequiringApproval.cs b/examples/AdManager/CSharp/v202411/SiteService/GetSitesRequiringApproval.cs similarity index 96% rename from examples/AdManager/CSharp/v202402/SiteService/GetSitesRequiringApproval.cs rename to examples/AdManager/CSharp/v202411/SiteService/GetSitesRequiringApproval.cs index b437c44e5ca..cf80b9bf639 100755 --- a/examples/AdManager/CSharp/v202402/SiteService/GetSitesRequiringApproval.cs +++ b/examples/AdManager/CSharp/v202411/SiteService/GetSitesRequiringApproval.cs @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This example gets sites under Multiple Customer Management requiring review. diff --git a/examples/AdManager/CSharp/v202402/SiteService/SubmitSiteForApproval.cs b/examples/AdManager/CSharp/v202411/SiteService/SubmitSiteForApproval.cs similarity index 94% rename from examples/AdManager/CSharp/v202402/SiteService/SubmitSiteForApproval.cs rename to examples/AdManager/CSharp/v202411/SiteService/SubmitSiteForApproval.cs index a935d02fa53..6c1a2e3c761 100755 --- a/examples/AdManager/CSharp/v202402/SiteService/SubmitSiteForApproval.cs +++ b/examples/AdManager/CSharp/v202411/SiteService/SubmitSiteForApproval.cs @@ -13,13 +13,13 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; using System; using System.Collections.Generic; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This example submits a site for approval. @@ -102,8 +102,8 @@ public void Run(AdManagerUser user, long siteId) statementBuilder.RemoveLimitAndOffset(); // Create action. - Google.Api.Ads.AdManager.v202402.SubmitSiteForApproval action = - new Google.Api.Ads.AdManager.v202402.SubmitSiteForApproval(); + Google.Api.Ads.AdManager.v202411.SubmitSiteForApproval action = + new Google.Api.Ads.AdManager.v202411.SubmitSiteForApproval(); // Perform action. UpdateResult result = diff --git a/examples/AdManager/CSharp/v202402/SuggestedAdUnitService/ApproveSuggestedAdUnits.cs b/examples/AdManager/CSharp/v202411/SuggestedAdUnitService/ApproveSuggestedAdUnits.cs similarity index 94% rename from examples/AdManager/CSharp/v202402/SuggestedAdUnitService/ApproveSuggestedAdUnits.cs rename to examples/AdManager/CSharp/v202411/SuggestedAdUnitService/ApproveSuggestedAdUnits.cs index 8d25299a1eb..241d548a98a 100755 --- a/examples/AdManager/CSharp/v202402/SuggestedAdUnitService/ApproveSuggestedAdUnits.cs +++ b/examples/AdManager/CSharp/v202411/SuggestedAdUnitService/ApproveSuggestedAdUnits.cs @@ -13,14 +13,14 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.v202411; using System; using System.Collections.Generic; -using Google.Api.Ads.AdManager.Util.v202402; +using Google.Api.Ads.AdManager.Util.v202411; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This code example approves all suggested ad units with 50 or more @@ -102,8 +102,8 @@ public void Run(AdManagerUser user) statementBuilder.RemoveLimitAndOffset(); // Create action. - Google.Api.Ads.AdManager.v202402.ApproveSuggestedAdUnits action = - new Google.Api.Ads.AdManager.v202402.ApproveSuggestedAdUnits(); + Google.Api.Ads.AdManager.v202411.ApproveSuggestedAdUnits action = + new Google.Api.Ads.AdManager.v202411.ApproveSuggestedAdUnits(); // Perform action. SuggestedAdUnitUpdateResult result = diff --git a/examples/AdManager/CSharp/v202402/SuggestedAdUnitService/GetAllSuggestedAdUnits.cs b/examples/AdManager/CSharp/v202411/SuggestedAdUnitService/GetAllSuggestedAdUnits.cs similarity index 96% rename from examples/AdManager/CSharp/v202402/SuggestedAdUnitService/GetAllSuggestedAdUnits.cs rename to examples/AdManager/CSharp/v202411/SuggestedAdUnitService/GetAllSuggestedAdUnits.cs index 058e4098890..a50edab68a7 100755 --- a/examples/AdManager/CSharp/v202402/SuggestedAdUnitService/GetAllSuggestedAdUnits.cs +++ b/examples/AdManager/CSharp/v202411/SuggestedAdUnitService/GetAllSuggestedAdUnits.cs @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This example gets all suggested ad units. diff --git a/examples/AdManager/CSharp/v202402/SuggestedAdUnitService/GetHighlyRequestedSuggestedAdUnits.cs b/examples/AdManager/CSharp/v202411/SuggestedAdUnitService/GetHighlyRequestedSuggestedAdUnits.cs similarity index 96% rename from examples/AdManager/CSharp/v202402/SuggestedAdUnitService/GetHighlyRequestedSuggestedAdUnits.cs rename to examples/AdManager/CSharp/v202411/SuggestedAdUnitService/GetHighlyRequestedSuggestedAdUnits.cs index 9d4f90b7392..316a0b48276 100644 --- a/examples/AdManager/CSharp/v202402/SuggestedAdUnitService/GetHighlyRequestedSuggestedAdUnits.cs +++ b/examples/AdManager/CSharp/v202411/SuggestedAdUnitService/GetHighlyRequestedSuggestedAdUnits.cs @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This example gets all highly requested suggested ad units. diff --git a/examples/AdManager/CSharp/v202402/TargetingPresetService/GetAllTargetingPresets.cs b/examples/AdManager/CSharp/v202411/TargetingPresetService/GetAllTargetingPresets.cs similarity index 96% rename from examples/AdManager/CSharp/v202402/TargetingPresetService/GetAllTargetingPresets.cs rename to examples/AdManager/CSharp/v202411/TargetingPresetService/GetAllTargetingPresets.cs index 08f6b873fbb..6345d123371 100755 --- a/examples/AdManager/CSharp/v202402/TargetingPresetService/GetAllTargetingPresets.cs +++ b/examples/AdManager/CSharp/v202411/TargetingPresetService/GetAllTargetingPresets.cs @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This example gets all targeting presets. diff --git a/examples/AdManager/CSharp/v202402/TeamService/CreateTeams.cs b/examples/AdManager/CSharp/v202411/TeamService/CreateTeams.cs similarity index 96% rename from examples/AdManager/CSharp/v202402/TeamService/CreateTeams.cs rename to examples/AdManager/CSharp/v202411/TeamService/CreateTeams.cs index 40bc272db88..d4ec7f4d804 100755 --- a/examples/AdManager/CSharp/v202402/TeamService/CreateTeams.cs +++ b/examples/AdManager/CSharp/v202411/TeamService/CreateTeams.cs @@ -13,11 +13,11 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.v202411; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This code example creates new teams. To determine which teams exist, run diff --git a/examples/AdManager/CSharp/v202402/TeamService/GetAllTeams.cs b/examples/AdManager/CSharp/v202411/TeamService/GetAllTeams.cs similarity index 95% rename from examples/AdManager/CSharp/v202402/TeamService/GetAllTeams.cs rename to examples/AdManager/CSharp/v202411/TeamService/GetAllTeams.cs index 7f653c77968..8c0bdc3d525 100755 --- a/examples/AdManager/CSharp/v202402/TeamService/GetAllTeams.cs +++ b/examples/AdManager/CSharp/v202411/TeamService/GetAllTeams.cs @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This example gets all teams. diff --git a/examples/AdManager/CSharp/v202402/TeamService/UpdateTeams.cs b/examples/AdManager/CSharp/v202411/TeamService/UpdateTeams.cs similarity index 96% rename from examples/AdManager/CSharp/v202402/TeamService/UpdateTeams.cs rename to examples/AdManager/CSharp/v202411/TeamService/UpdateTeams.cs index 5e7ea5256c7..fbca379f21e 100755 --- a/examples/AdManager/CSharp/v202402/TeamService/UpdateTeams.cs +++ b/examples/AdManager/CSharp/v202411/TeamService/UpdateTeams.cs @@ -13,13 +13,13 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.v202411; using System; -using Google.Api.Ads.AdManager.Util.v202402; +using Google.Api.Ads.AdManager.Util.v202411; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This code example updates a team by adding an ad unit to it. To diff --git a/examples/AdManager/CSharp/v202402/UserService/CreateUsers.cs b/examples/AdManager/CSharp/v202411/UserService/CreateUsers.cs similarity index 97% rename from examples/AdManager/CSharp/v202402/UserService/CreateUsers.cs rename to examples/AdManager/CSharp/v202411/UserService/CreateUsers.cs index b90a58aea0f..8fb37242d33 100755 --- a/examples/AdManager/CSharp/v202402/UserService/CreateUsers.cs +++ b/examples/AdManager/CSharp/v202411/UserService/CreateUsers.cs @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.v202411; using System; using System.Collections.Generic; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This code example creates new users. To determine which users diff --git a/examples/AdManager/CSharp/v202402/UserService/DeactivateUser.cs b/examples/AdManager/CSharp/v202411/UserService/DeactivateUser.cs similarity index 97% rename from examples/AdManager/CSharp/v202402/UserService/DeactivateUser.cs rename to examples/AdManager/CSharp/v202411/UserService/DeactivateUser.cs index e610773012f..b4e317ee008 100755 --- a/examples/AdManager/CSharp/v202402/UserService/DeactivateUser.cs +++ b/examples/AdManager/CSharp/v202411/UserService/DeactivateUser.cs @@ -13,13 +13,13 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; using System; using System.Collections.Generic; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This code example deactivates a user. Deactivated users can no longer make diff --git a/examples/AdManager/CSharp/v202402/UserService/GetAllRoles.cs b/examples/AdManager/CSharp/v202411/UserService/GetAllRoles.cs similarity index 93% rename from examples/AdManager/CSharp/v202402/UserService/GetAllRoles.cs rename to examples/AdManager/CSharp/v202411/UserService/GetAllRoles.cs index abbd85adf94..ddf8bc17170 100755 --- a/examples/AdManager/CSharp/v202402/UserService/GetAllRoles.cs +++ b/examples/AdManager/CSharp/v202411/UserService/GetAllRoles.cs @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This example gets all roles. diff --git a/examples/AdManager/CSharp/v202402/UserService/GetAllUsers.cs b/examples/AdManager/CSharp/v202411/UserService/GetAllUsers.cs similarity index 95% rename from examples/AdManager/CSharp/v202402/UserService/GetAllUsers.cs rename to examples/AdManager/CSharp/v202411/UserService/GetAllUsers.cs index 764f8ea3005..c62219c0f5b 100755 --- a/examples/AdManager/CSharp/v202402/UserService/GetAllUsers.cs +++ b/examples/AdManager/CSharp/v202411/UserService/GetAllUsers.cs @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This example gets all users. diff --git a/examples/AdManager/CSharp/v202402/UserService/GetCurrentUser.cs b/examples/AdManager/CSharp/v202411/UserService/GetCurrentUser.cs similarity index 96% rename from examples/AdManager/CSharp/v202402/UserService/GetCurrentUser.cs rename to examples/AdManager/CSharp/v202411/UserService/GetCurrentUser.cs index e29c2141af0..4b92089abe3 100755 --- a/examples/AdManager/CSharp/v202402/UserService/GetCurrentUser.cs +++ b/examples/AdManager/CSharp/v202411/UserService/GetCurrentUser.cs @@ -13,11 +13,11 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.v202411; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This code example gets current user. To create users, run CreateUsers.cs. diff --git a/examples/AdManager/CSharp/v202402/UserService/GetUserByEmailAddress.cs b/examples/AdManager/CSharp/v202411/UserService/GetUserByEmailAddress.cs similarity index 95% rename from examples/AdManager/CSharp/v202402/UserService/GetUserByEmailAddress.cs rename to examples/AdManager/CSharp/v202411/UserService/GetUserByEmailAddress.cs index 2a7380dc2f7..a593f8662be 100644 --- a/examples/AdManager/CSharp/v202402/UserService/GetUserByEmailAddress.cs +++ b/examples/AdManager/CSharp/v202411/UserService/GetUserByEmailAddress.cs @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This example gets users by email. diff --git a/examples/AdManager/CSharp/v202402/UserService/UpdateUsers.cs b/examples/AdManager/CSharp/v202411/UserService/UpdateUsers.cs similarity index 96% rename from examples/AdManager/CSharp/v202402/UserService/UpdateUsers.cs rename to examples/AdManager/CSharp/v202411/UserService/UpdateUsers.cs index 8ec31b56f8e..c60cb5d2afd 100755 --- a/examples/AdManager/CSharp/v202402/UserService/UpdateUsers.cs +++ b/examples/AdManager/CSharp/v202411/UserService/UpdateUsers.cs @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This code example updates a user by adding "Sr." to the end of its diff --git a/examples/AdManager/CSharp/v202402/UserTeamAssociationService/CreateUserTeamAssociations.cs b/examples/AdManager/CSharp/v202411/UserTeamAssociationService/CreateUserTeamAssociations.cs similarity index 97% rename from examples/AdManager/CSharp/v202402/UserTeamAssociationService/CreateUserTeamAssociations.cs rename to examples/AdManager/CSharp/v202411/UserTeamAssociationService/CreateUserTeamAssociations.cs index 02705a63d43..a7ef2e54705 100755 --- a/examples/AdManager/CSharp/v202402/UserTeamAssociationService/CreateUserTeamAssociations.cs +++ b/examples/AdManager/CSharp/v202411/UserTeamAssociationService/CreateUserTeamAssociations.cs @@ -13,11 +13,11 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.v202411; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This code example adds a user to a team by creating an association diff --git a/examples/AdManager/CSharp/v202402/UserTeamAssociationService/DeleteUserTeamAssociations.cs b/examples/AdManager/CSharp/v202411/UserTeamAssociationService/DeleteUserTeamAssociations.cs similarity index 97% rename from examples/AdManager/CSharp/v202402/UserTeamAssociationService/DeleteUserTeamAssociations.cs rename to examples/AdManager/CSharp/v202411/UserTeamAssociationService/DeleteUserTeamAssociations.cs index 192d25009fe..0eef813d497 100755 --- a/examples/AdManager/CSharp/v202402/UserTeamAssociationService/DeleteUserTeamAssociations.cs +++ b/examples/AdManager/CSharp/v202411/UserTeamAssociationService/DeleteUserTeamAssociations.cs @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This code example removes the user from all its teams. To determine which diff --git a/examples/AdManager/CSharp/v202402/UserTeamAssociationService/GetAllUserTeamAssociations.cs b/examples/AdManager/CSharp/v202411/UserTeamAssociationService/GetAllUserTeamAssociations.cs similarity index 96% rename from examples/AdManager/CSharp/v202402/UserTeamAssociationService/GetAllUserTeamAssociations.cs rename to examples/AdManager/CSharp/v202411/UserTeamAssociationService/GetAllUserTeamAssociations.cs index fee5266cbae..2863a9d7099 100755 --- a/examples/AdManager/CSharp/v202402/UserTeamAssociationService/GetAllUserTeamAssociations.cs +++ b/examples/AdManager/CSharp/v202411/UserTeamAssociationService/GetAllUserTeamAssociations.cs @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This example gets all user team associations. diff --git a/examples/AdManager/CSharp/v202402/UserTeamAssociationService/GetUserTeamAssociationsForUser.cs b/examples/AdManager/CSharp/v202411/UserTeamAssociationService/GetUserTeamAssociationsForUser.cs similarity index 96% rename from examples/AdManager/CSharp/v202402/UserTeamAssociationService/GetUserTeamAssociationsForUser.cs rename to examples/AdManager/CSharp/v202411/UserTeamAssociationService/GetUserTeamAssociationsForUser.cs index d97766b2e25..18c0d79bb68 100755 --- a/examples/AdManager/CSharp/v202402/UserTeamAssociationService/GetUserTeamAssociationsForUser.cs +++ b/examples/AdManager/CSharp/v202411/UserTeamAssociationService/GetUserTeamAssociationsForUser.cs @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This example gets all user team associations (i.e. teams) for a given user. diff --git a/examples/AdManager/CSharp/v202402/UserTeamAssociationService/UpdateUserTeamAssociations.cs b/examples/AdManager/CSharp/v202411/UserTeamAssociationService/UpdateUserTeamAssociations.cs similarity index 97% rename from examples/AdManager/CSharp/v202402/UserTeamAssociationService/UpdateUserTeamAssociations.cs rename to examples/AdManager/CSharp/v202411/UserTeamAssociationService/UpdateUserTeamAssociations.cs index 5d2959c72d2..5b189c652ba 100755 --- a/examples/AdManager/CSharp/v202402/UserTeamAssociationService/UpdateUserTeamAssociations.cs +++ b/examples/AdManager/CSharp/v202411/UserTeamAssociationService/UpdateUserTeamAssociations.cs @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202402; -using Google.Api.Ads.AdManager.v202402; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v202402 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v202411 { /// /// This code example updates user team associations by setting the diff --git a/src/AdManager/AdManager.csproj b/src/AdManager/AdManager.csproj index 25d62eb560a..1b2f511ecc1 100644 --- a/src/AdManager/AdManager.csproj +++ b/src/AdManager/AdManager.csproj @@ -3,7 +3,7 @@ Google's Ad Manager API Dotnet Client Library Google.Dfp - 24.28.0 + 24.29.0 This library provides you with functionality to access the Google's Ad Manager API. See https://github.com/googleads/googleads-dotnet-lib/blob/main/ChangeLog DFP Google diff --git a/src/AdManager/Util/v202311/DateTimeUtilities.cs b/src/AdManager/Util/v202411/DateTimeUtilities.cs similarity index 96% rename from src/AdManager/Util/v202311/DateTimeUtilities.cs rename to src/AdManager/Util/v202411/DateTimeUtilities.cs index bec611c0f32..32d527ec155 100755 --- a/src/AdManager/Util/v202311/DateTimeUtilities.cs +++ b/src/AdManager/Util/v202411/DateTimeUtilities.cs @@ -13,7 +13,7 @@ // limitations under the License. using Google.Api.Ads.Common.Util; -using Google.Api.Ads.AdManager.v202311; +using Google.Api.Ads.AdManager.v202411; using System; using System.Collections.Generic; @@ -21,9 +21,9 @@ using NodaTime; -using AdManagerDateTime = Google.Api.Ads.AdManager.v202311.DateTime; +using AdManagerDateTime = Google.Api.Ads.AdManager.v202411.DateTime; -namespace Google.Api.Ads.AdManager.Util.v202311 +namespace Google.Api.Ads.AdManager.Util.v202411 { /// /// A utility class that allows you to build Datetime objects from strings. diff --git a/src/AdManager/Util/v202311/PqlUtilities.cs b/src/AdManager/Util/v202411/PqlUtilities.cs similarity index 96% rename from src/AdManager/Util/v202311/PqlUtilities.cs rename to src/AdManager/Util/v202411/PqlUtilities.cs index d1da46f26c0..401e2217181 100755 --- a/src/AdManager/Util/v202311/PqlUtilities.cs +++ b/src/AdManager/Util/v202411/PqlUtilities.cs @@ -13,7 +13,7 @@ // limitations under the License. using Google.Api.Ads.Common.Util; -using Google.Api.Ads.AdManager.v202311; +using Google.Api.Ads.AdManager.v202411; using System; using System.Collections.Generic; @@ -21,7 +21,7 @@ using System.Text; using System.Reflection; -namespace Google.Api.Ads.AdManager.Util.v202311 +namespace Google.Api.Ads.AdManager.Util.v202411 { /// /// A utility class for handling PQL objects. @@ -271,16 +271,16 @@ private static string GetTextValue(Object value) return ""; } - if (value is Google.Api.Ads.AdManager.v202311.Date) + if (value is Google.Api.Ads.AdManager.v202411.Date) { - Google.Api.Ads.AdManager.v202311.Date date = - (Google.Api.Ads.AdManager.v202311.Date) value; + Google.Api.Ads.AdManager.v202411.Date date = + (Google.Api.Ads.AdManager.v202411.Date) value; return string.Format("{0:0000}-{1:00}-{2:00}", date.year, date.month, date.day); } - else if (value is Google.Api.Ads.AdManager.v202311.DateTime) + else if (value is Google.Api.Ads.AdManager.v202411.DateTime) { - Google.Api.Ads.AdManager.v202311.DateTime dateTime = - (Google.Api.Ads.AdManager.v202311.DateTime) value; + Google.Api.Ads.AdManager.v202411.DateTime dateTime = + (Google.Api.Ads.AdManager.v202411.DateTime) value; return string.Format("{0:0000}-{1:00}-{2:00}T{3:00}:{4:00}:{5:00} {6}", dateTime.date.year, dateTime.date.month, dateTime.date.day, dateTime.hour, dateTime.minute, dateTime.second, dateTime.timeZoneId); diff --git a/src/AdManager/Util/v202311/ReportUtilities.cs b/src/AdManager/Util/v202411/ReportUtilities.cs similarity index 97% rename from src/AdManager/Util/v202311/ReportUtilities.cs rename to src/AdManager/Util/v202411/ReportUtilities.cs index f795fc7e289..12d4e6cd783 100755 --- a/src/AdManager/Util/v202311/ReportUtilities.cs +++ b/src/AdManager/Util/v202411/ReportUtilities.cs @@ -16,14 +16,14 @@ using Google.Api.Ads.Common.Util; using Google.Api.Ads.Common.Util.Reports; using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.v202311; +using Google.Api.Ads.AdManager.v202411; using System.Web; using System.Net; using System.Text; using System.Threading; -namespace Google.Api.Ads.AdManager.Util.v202311 +namespace Google.Api.Ads.AdManager.Util.v202411 { /// /// Utility class for DFP API report downloads. diff --git a/src/AdManager/Util/v202311/StatementBuilder.cs b/src/AdManager/Util/v202411/StatementBuilder.cs similarity index 98% rename from src/AdManager/Util/v202311/StatementBuilder.cs rename to src/AdManager/Util/v202411/StatementBuilder.cs index b9ac15ae7ab..201e3bca3f1 100755 --- a/src/AdManager/Util/v202311/StatementBuilder.cs +++ b/src/AdManager/Util/v202411/StatementBuilder.cs @@ -13,15 +13,15 @@ // limitations under the License. using Google.Api.Ads.Common.Util; -using Google.Api.Ads.AdManager.v202311; +using Google.Api.Ads.AdManager.v202411; using System; using System.Collections.Generic; using System.Text; -using DateTime = Google.Api.Ads.AdManager.v202311.DateTime; +using DateTime = Google.Api.Ads.AdManager.v202411.DateTime; -namespace Google.Api.Ads.AdManager.Util.v202311 +namespace Google.Api.Ads.AdManager.Util.v202411 { /// /// A utility class that allows for statements to be constructed in parts. diff --git a/src/AdManager/v202311/AdManagerApi.cs b/src/AdManager/v202411/AdManagerApi.cs similarity index 87% rename from src/AdManager/v202311/AdManagerApi.cs rename to src/AdManager/v202411/AdManagerApi.cs index d0feeb10117..684ae526560 100644 --- a/src/AdManager/v202311/AdManagerApi.cs +++ b/src/AdManager/v202411/AdManagerApi.cs @@ -1,6 +1,6 @@ #pragma warning disable 1591 #pragma warning disable 1570 -namespace Google.Api.Ads.AdManager.v202311 +namespace Google.Api.Ads.AdManager.v202411 { using System.ComponentModel; using System; @@ -13,7 +13,7 @@ namespace Google.Api.Ads.AdManager.v202311 [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] public partial class ApiException : ApplicationException { private ApiError[] errorsField; @@ -43,62 +43,54 @@ public ApiError[] errors { [System.Xml.Serialization.XmlIncludeAttribute(typeof(RequiredNumberError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(RequiredError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(RequiredCollectionError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(RangeError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(QuotaError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(PublisherQueryLanguageSyntaxError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(PublisherQueryLanguageContextError))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(PoddingError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(PermissionError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(ParseError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(NotNullError))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(InventoryTargetingError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(InternalApiError))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(GeoTargetingError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(FeatureError))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(CustomTargetingError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(CommonError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(CollectionSizeError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(AuthenticationError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(ApiVersionError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ActivityError))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(AdRuleTargetingError))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(AdRuleSlotError))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(AdRulePriorityError))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(AdRuleFrequencyCapError))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(AdRuleError))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(AdRuleDateError))] [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(TypeError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(TranscodingError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(TemplateInstantiatedCreativeError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(SwiffyConversionError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(SetTopBoxCreativeError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(RichMediaStudioCreativeError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(RequiredSizeError))] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(RangeError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(NullError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(LineItemCreativeAssociationError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(LabelEntityAssociationError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(InvalidUrlError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(InvalidPhoneNumberError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ImageError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(HtmlBundleProcessorError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(FileError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(EntityLimitReachedError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(CustomFieldValueError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(CustomCreativeError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(CreativeTemplateOperationError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(CreativeTemplateError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(CreativeSetError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(CreativeError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(CreativeAssetMacroError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(AssetError))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(TypeError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(LabelError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(CreativeWrapperError))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(EntityLimitReachedError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(EntityChildrenLimitReachedError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(CustomTargetingError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(CustomFieldError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(VideoPositionTargetingError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(UserDomainTargetingError))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(TranscodingError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(TimeZoneError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(TechnologyTargetingError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(TeamError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(SetTopBoxLineItemError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(AudienceSegmentError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(ReservationDetailsError))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(RequiredSizeError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(RequestPlatformTargetingError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(RegExError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(ProgrammaticError))] @@ -109,22 +101,26 @@ public ApiError[] errors { [System.Xml.Serialization.XmlIncludeAttribute(typeof(LineItemOperationError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(LineItemFlightDateError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(LineItemError))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(LineItemCreativeAssociationError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(LineItemActivityAssociationError))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(LabelEntityAssociationError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(InventoryUnitError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(InventoryTargetingError))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ImageError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(GrpSettingsError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(GeoTargetingError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(GenericTargetingError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(FrequencyCapError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(ForecastError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(DayPartTargetingError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(DateTimeRangeTargetingError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(DateError))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(CustomFieldValueError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(CurrencyCodeError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(CrossSellError))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(CreativeError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(CompanyCreditStatusError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(ClickTrackingLineItemError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(AudienceExtensionError))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(AssetError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(AdUnitCodeError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(InventoryUnitSizesError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(InventoryUnitRefreshRateError))] @@ -132,8 +128,20 @@ public ApiError[] errors { [System.Xml.Serialization.XmlIncludeAttribute(typeof(CompanyError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(AdUnitHierarchyError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(AdSenseAccountError))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(TemplateInstantiatedCreativeError))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(SwiffyConversionError))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(SetTopBoxCreativeError))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(RichMediaStudioCreativeError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(LineItemCreativeAssociationOperationError))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(InvalidPhoneNumberError))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(HtmlBundleProcessorError))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(FileError))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(CustomCreativeError))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(CreativeSetError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(CreativePreviewError))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(CreativeAssetMacroError))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(InvalidEmailError))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ContactError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(VideoAdTagError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(LiveStreamEventSlateError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(LiveStreamEventPrerollSettingsError))] @@ -149,8 +157,8 @@ public ApiError[] errors { [System.Xml.Serialization.XmlIncludeAttribute(typeof(UrlError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(RequestError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(NetworkError))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(McmError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(InventoryClientApiError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(InvalidEmailError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(ExchangeSignupApiError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(PlacementError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(ProposalLineItemProgrammaticError))] @@ -163,20 +171,13 @@ public ApiError[] errors { [System.Xml.Serialization.XmlIncludeAttribute(typeof(BillingError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(ProposalLineItemActionError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(PreferredDealError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(PoddingError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(AdRuleTargetingError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(AdRuleSlotError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(AdRulePriorityError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(AdRuleFrequencyCapError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(AdRuleError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(AdRuleDateError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(ReportError))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(DaiAuthenticationKeyActionError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(TokenError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(NativeStyleError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(TrafficForecastSegmentError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(ForecastAdjustmentError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(MetadataMergeSpecError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ContactError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(SamSessionError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(DaiEncodingProfileVariantSettingsError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(DaiEncodingProfileUpdateError))] @@ -188,7 +189,6 @@ public ApiError[] errors { [System.Xml.Serialization.XmlIncludeAttribute(typeof(IdError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(DistinctError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(SegmentPopulationError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(DaiAuthenticationKeyActionError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(CdnConfigurationError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(ContentFilterError))] public abstract partial class ApiError { @@ -258,7 +258,7 @@ public string errorString { [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] public partial class FieldPathElement { private string fieldField; @@ -314,7 +314,7 @@ public bool indexSpecified { [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] public partial class ApplicationException { private string messageField; @@ -332,4189 +332,3425 @@ public string message { } - /// Activities are organized within activity groups, which are sets of activities - /// that share the same configuration. You create and manage activities from within - /// activity groups. + /// Simple object representing an ad slot within an AdRule. Ad + /// rule slots contain information about the types/number of ads to display, as well + /// as additional information on how the ad server will generate playlists. /// + [System.Xml.Serialization.XmlIncludeAttribute(typeof(UnknownAdRuleSlot))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(StandardPoddingAdRuleSlot))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(OptimizedPoddingAdRuleSlot))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(NoPoddingAdRuleSlot))] [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ActivityGroup { - private long idField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public abstract partial class BaseAdRuleSlot { + private AdRuleSlotBehavior slotBehaviorField; - private bool idFieldSpecified; + private bool slotBehaviorFieldSpecified; - private string nameField; + private long maxVideoAdDurationField; + + private bool maxVideoAdDurationFieldSpecified; - private long[] companyIdsField; + private MidrollFrequencyType videoMidrollFrequencyTypeField; + + private bool videoMidrollFrequencyTypeFieldSpecified; - private int impressionsLookbackField; + private string videoMidrollFrequencyField; - private bool impressionsLookbackFieldSpecified; + private AdRuleSlotBumper bumperField; - private int clicksLookbackField; + private bool bumperFieldSpecified; - private bool clicksLookbackFieldSpecified; + private long maxBumperDurationField; - private ActivityGroupStatus statusField; + private bool maxBumperDurationFieldSpecified; - private bool statusFieldSpecified; + private long maxPodDurationField; - /// The unique ID of the ActivityGroup. This attribute is readonly and - /// is assigned by Google. + private bool maxPodDurationFieldSpecified; + + private int maxAdsInPodField; + + private bool maxAdsInPodFieldSpecified; + + private long breakTemplateIdField; + + private bool breakTemplateIdFieldSpecified; + + /// The AdRuleSlotBehavior for video ads for this + /// slot. This attribute is optional and defaults to AdRuleSlotBehavior#DEFER.

Indicates + /// whether video ads are allowed for this slot, or if the decision is deferred to a + /// lower-priority ad rule.

///
[System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public long id { + public AdRuleSlotBehavior slotBehavior { get { - return this.idField; + return this.slotBehaviorField; } set { - this.idField = value; - this.idSpecified = true; + this.slotBehaviorField = value; + this.slotBehaviorSpecified = true; } } - /// true, if a value is specified for , - /// false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool idSpecified { + public bool slotBehaviorSpecified { get { - return this.idFieldSpecified; + return this.slotBehaviorFieldSpecified; } set { - this.idFieldSpecified = value; + this.slotBehaviorFieldSpecified = value; } } - /// The name of the ActivityGroup. This attribute is required to create - /// an activity group and has a maximum length of 255 characters. + /// The maximum duration in milliseconds of video ads within this slot. This + /// attribute is optional and defaults to 0. /// [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public string name { + public long maxVideoAdDuration { get { - return this.nameField; + return this.maxVideoAdDurationField; } set { - this.nameField = value; + this.maxVideoAdDurationField = value; + this.maxVideoAdDurationSpecified = true; } } - /// The company ids whose ads will be included for conversion tracking on the - /// activities in this group. Only clicks and impressions of ads from these - /// companies will lead to conversions on the containing activities. This attribute - /// is required when creating an activity group.

The company types allowed are: - /// Company.Type#ADVERTISER, and Company.Type#AD_NETWORK, and Company.Type#HOUSE_ADVERTISER

- ///
- [System.Xml.Serialization.XmlElementAttribute("companyIds", Order = 2)] - public long[] companyIds { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool maxVideoAdDurationSpecified { get { - return this.companyIdsField; + return this.maxVideoAdDurationFieldSpecified; } set { - this.companyIdsField = value; + this.maxVideoAdDurationFieldSpecified = value; } } - /// Ad Manager records view-through conversions for users who have previously viewed - /// an Ad Manager ad within the number of days that you set here (1 to 30 days), - /// then visits a webpage containing activity tags from this activity group. To be - /// counted, the ad needs to belong to one of the companies associated with the - /// activity group. This attribute is required to create an activity group. + /// The frequency type for video ads in this ad rule slot. This attribute is + /// required for mid-rolls, but if this is not a mid-roll, the value is set to MidrollFrequencyType#NONE. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public int impressionsLookback { + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public MidrollFrequencyType videoMidrollFrequencyType { get { - return this.impressionsLookbackField; + return this.videoMidrollFrequencyTypeField; } set { - this.impressionsLookbackField = value; - this.impressionsLookbackSpecified = true; + this.videoMidrollFrequencyTypeField = value; + this.videoMidrollFrequencyTypeSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="videoMidrollFrequencyType" />, false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool impressionsLookbackSpecified { + public bool videoMidrollFrequencyTypeSpecified { + get { + return this.videoMidrollFrequencyTypeFieldSpecified; + } + set { + this.videoMidrollFrequencyTypeFieldSpecified = value; + } + } + + /// The mid-roll frequency of this ad rule slot for video ads. This attribute is + /// required for mid-rolls, but if MidrollFrequencyType is set to MidrollFrequencyType#NONE, this value + /// should be ignored. For example, if this slot has a frequency type of MidrollFrequencyType#EVERY_N_SECONDS and + /// #videoMidrollFrequency = "60", this would mean " play a mid-roll + /// every 60 seconds." + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 3)] + public string videoMidrollFrequency { get { - return this.impressionsLookbackFieldSpecified; + return this.videoMidrollFrequencyField; } set { - this.impressionsLookbackFieldSpecified = value; + this.videoMidrollFrequencyField = value; } } - /// Ad Manager records click-through conversions for users who have previously - /// clicked on an Ad Manager ad within the number of days that you set here (1 to 30 - /// days), then visits a webpage containing activity tags from this activity group. - /// To be counted, the ad needs to belong to one of the companies associated with - /// the activity group. This attribute is required to create an activity group. + /// The AdRuleSlotBumper for this slot. This + /// attribute is optional and defaults to AdRuleSlotBumper#NONE. /// [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public int clicksLookback { + public AdRuleSlotBumper bumper { get { - return this.clicksLookbackField; + return this.bumperField; } set { - this.clicksLookbackField = value; - this.clicksLookbackSpecified = true; + this.bumperField = value; + this.bumperSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , + /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool clicksLookbackSpecified { + public bool bumperSpecified { get { - return this.clicksLookbackFieldSpecified; + return this.bumperFieldSpecified; } set { - this.clicksLookbackFieldSpecified = value; + this.bumperFieldSpecified = value; } } - /// The status of this activity group. This attribute is readonly. + /// The maximum duration of bumper ads within this slot. This attribute is optional + /// and defaults to 0. /// [System.Xml.Serialization.XmlElementAttribute(Order = 5)] - public ActivityGroupStatus status { + public long maxBumperDuration { get { - return this.statusField; + return this.maxBumperDurationField; } set { - this.statusField = value; - this.statusSpecified = true; + this.maxBumperDurationField = value; + this.maxBumperDurationSpecified = true; } } - /// true, if a value is specified for , - /// false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool statusSpecified { + public bool maxBumperDurationSpecified { get { - return this.statusFieldSpecified; + return this.maxBumperDurationFieldSpecified; } set { - this.statusFieldSpecified = value; + this.maxBumperDurationFieldSpecified = value; } } - } - - - /// The activity group status. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ActivityGroup.Status", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum ActivityGroupStatus { - ACTIVE = 0, - INACTIVE = 1, - } - - - /// An error for a field which must satisfy a uniqueness constraint - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class UniqueError : ApiError { - } - - - /// Errors for Strings which do not meet given length constraints. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class StringLengthError : ApiError { - private StringLengthErrorReason reasonField; - - private bool reasonFieldSpecified; - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public StringLengthErrorReason reason { + /// The maximum pod duration in milliseconds for this slot. This attribute is + /// optional and defaults to 0. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 6)] + public long maxPodDuration { get { - return this.reasonField; + return this.maxPodDurationField; } set { - this.reasonField = value; - this.reasonSpecified = true; + this.maxPodDurationField = value; + this.maxPodDurationSpecified = true; } } - /// true, if a value is specified for , - /// false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { + public bool maxPodDurationSpecified { get { - return this.reasonFieldSpecified; + return this.maxPodDurationFieldSpecified; } set { - this.reasonFieldSpecified = value; + this.maxPodDurationFieldSpecified = value; } } - } - - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "StringLengthError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum StringLengthErrorReason { - TOO_LONG = 0, - TOO_SHORT = 1, - /// The value returned if the actual value is not exposed by the requested API - /// version. + /// The maximum number of ads allowed in a pod in this slot. This attribute is + /// optional and defaults to 0. /// - UNKNOWN = 2, - } - - - /// A list of error code for reporting invalid content of input strings. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class StringFormatError : ApiError { - private StringFormatErrorReason reasonField; - - private bool reasonFieldSpecified; - - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public StringFormatErrorReason reason { + [System.Xml.Serialization.XmlElementAttribute(Order = 7)] + public int maxAdsInPod { get { - return this.reasonField; + return this.maxAdsInPodField; } set { - this.reasonField = value; - this.reasonSpecified = true; + this.maxAdsInPodField = value; + this.maxAdsInPodSpecified = true; } } - /// true, if a value is specified for , - /// false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { + public bool maxAdsInPodSpecified { get { - return this.reasonFieldSpecified; + return this.maxAdsInPodFieldSpecified; } set { - this.reasonFieldSpecified = value; + this.maxAdsInPodFieldSpecified = value; } } - } - - - /// The reasons for the target error. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "StringFormatError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum StringFormatErrorReason { - UNKNOWN = 0, - /// The input string value contains disallowed characters. - /// - ILLEGAL_CHARS = 1, - /// The input string value is invalid for the associated field. - /// - INVALID_FORMAT = 2, - } - - - /// An error that occurs while parsing Statement objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class StatementError : ApiError { - private StatementErrorReason reasonField; - - private bool reasonFieldSpecified; - /// The error reason represented by an enum. + /// ID of a BreakTemplate that defines what kinds of ads + /// show at which positions within this slot. This field is optional and only + /// supported on OptimizedPoddingAdRuleSlot + /// entities. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public StatementErrorReason reason { + [System.Xml.Serialization.XmlElementAttribute(Order = 8)] + public long breakTemplateId { get { - return this.reasonField; + return this.breakTemplateIdField; } set { - this.reasonField = value; - this.reasonSpecified = true; + this.breakTemplateIdField = value; + this.breakTemplateIdSpecified = true; } } - /// true, if a value is specified for , - /// false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { + public bool breakTemplateIdSpecified { get { - return this.reasonFieldSpecified; + return this.breakTemplateIdFieldSpecified; } set { - this.reasonFieldSpecified = value; + this.breakTemplateIdFieldSpecified = value; } } } + /// The types of behaviors for ads within a ad rule + /// slot. + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "StatementError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum StatementErrorReason { - /// A bind variable has not been bound to a value. + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum AdRuleSlotBehavior { + /// This ad rule always includes this slot's ads. /// - VARIABLE_NOT_BOUND_TO_VALUE = 0, + ALWAYS_SHOW = 0, + /// This ad rule never includes this slot's ads. + /// + NEVER_SHOW = 1, + /// Defer to lower priority rules. This ad rule doesn't specify guidelines for this + /// slot's ads. + /// + DEFER = 2, /// The value returned if the actual value is not exposed by the requested API /// version. /// - UNKNOWN = 1, + UNKNOWN = 3, } - /// Errors related to the server. + /// Frequency types for mid-roll ad rule slots. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ServerError : ApiError { - private ServerErrorReason reasonField; - - private bool reasonFieldSpecified; - - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public ServerErrorReason reason { - get { - return this.reasonField; - } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { - return this.reasonFieldSpecified; - } - set { - this.reasonFieldSpecified = value; - } - } + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum MidrollFrequencyType { + /// The ad rule slot is not a mid-roll and hence should be ignored. + /// + NONE = 0, + /// MidrollFrequency is a time interval and mentioned as a single + /// numeric value in seconds. For example, "100" would mean "play a mid-roll every + /// 100 seconds". + /// + EVERY_N_SECONDS = 1, + /// MidrollFrequency is a comma-delimited list of points in time (in + /// seconds) when an ad should play. For example, "100,300" would mean "play an ad + /// at 100 seconds and 300 seconds". + /// + FIXED_TIME = 2, + /// MidrollFrequency is a cue point interval and is a single integer + /// value, such as "5", which means "play a mid-roll every 5th cue point". + /// + EVERY_N_CUEPOINTS = 3, + /// Same as #FIXED_TIME, except the values represent the + /// ordinal cue points ("1,3,5", for example). + /// + FIXED_CUE_POINTS = 4, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 5, } - /// Describes reasons for server errors + /// Types of bumper ads on an ad rule slot. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ServerError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum ServerErrorReason { - /// Indicates that an unexpected error occured. + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum AdRuleSlotBumper { + /// Do not show a bumper ad. /// - SERVER_ERROR = 0, - /// Indicates that the server is currently experiencing a high load. Please wait and - /// try your request again. + NONE = 0, + /// Show a bumper ad before the slot's other ads. /// - SERVER_BUSY = 1, + BEFORE = 1, + /// Show a bumper ad after the slot's other ads. + /// + AFTER = 2, + /// Show a bumper before and after the slot's other ads. + /// + BEFORE_AND_AFTER = 3, /// The value returned if the actual value is not exposed by the requested API /// version. /// - UNKNOWN = 2, + UNKNOWN = 4, } - /// A list of all errors to be used in conjunction with required number validators. + /// The BaseAdRuleSlot subtype returned if the actual + /// type is not exposed by the requested API version. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class RequiredNumberError : ApiError { - private RequiredNumberErrorReason reasonField; - - private bool reasonFieldSpecified; - - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public RequiredNumberErrorReason reason { - get { - return this.reasonField; - } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { - return this.reasonFieldSpecified; - } - set { - this.reasonFieldSpecified = value; - } - } + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class UnknownAdRuleSlot : BaseAdRuleSlot { } - /// Describes reasons for a number to be invalid. + /// An ad rule slot with standard podding. A standard pod is a series of video ads + /// played back to back. Standard pods are defined by a BaseAdRuleSlot#maxAdsInPod and a BaseAdRuleSlot#maxVideoAdDuration. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "RequiredNumberError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum RequiredNumberErrorReason { - REQUIRED = 0, - TOO_LARGE = 1, - TOO_SMALL = 2, - TOO_LARGE_WITH_DETAILS = 3, - TOO_SMALL_WITH_DETAILS = 4, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 5, + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class StandardPoddingAdRuleSlot : BaseAdRuleSlot { } - /// Errors due to missing required field. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] + /// Ad rule slot with optimized podding. Optimized pods are defined by a BaseAdRuleSlot#maxPodDuration and a BaseAdRuleSlot#maxAdsInPod, and the ad + /// server chooses the best ads for the alloted duration. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class RequiredError : ApiError { - private RequiredErrorReason reasonField; - - private bool reasonFieldSpecified; - - /// The error reason represented by an enum. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public RequiredErrorReason reason { - get { - return this.reasonField; - } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { - return this.reasonFieldSpecified; - } - set { - this.reasonFieldSpecified = value; - } - } + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class OptimizedPoddingAdRuleSlot : BaseAdRuleSlot { } - /// The reasons for the target error. + /// An ad rule slot with no podding. It is defined by a BaseAdRuleSlot#maxVideoAdDuration. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "RequiredError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum RequiredErrorReason { - /// Missing required field. - /// - REQUIRED = 0, + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class NoPoddingAdRuleSlot : BaseAdRuleSlot { } - /// A list of all errors to be used for validating sizes of collections. + /// Represents the dimensions of an AdUnit, LineItem or Creative.

For + /// interstitial size (out-of-page), native, ignored and fluid size, Size must be 1x1.

///
[System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class RequiredCollectionError : ApiError { - private RequiredCollectionErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class Size { + private int widthField; - private bool reasonFieldSpecified; + private bool widthFieldSpecified; + + private int heightField; + + private bool heightFieldSpecified; + + private bool isAspectRatioField; + + private bool isAspectRatioFieldSpecified; + /// The width of the AdUnit, LineItem or + /// Creative. + /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public RequiredCollectionErrorReason reason { + public int width { get { - return this.reasonField; + return this.widthField; } set { - this.reasonField = value; - this.reasonSpecified = true; + this.widthField = value; + this.widthSpecified = true; } } - /// true, if a value is specified for , + /// true, if a value is specified for , /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { + public bool widthSpecified { get { - return this.reasonFieldSpecified; + return this.widthFieldSpecified; } set { - this.reasonFieldSpecified = value; + this.widthFieldSpecified = value; } } - } - - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "RequiredCollectionError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum RequiredCollectionErrorReason { - /// A required collection is missing. - /// - REQUIRED = 0, - /// Collection size is too large. - /// - TOO_LARGE = 1, - /// Collection size is too small. - /// - TOO_SMALL = 2, - /// The value returned if the actual value is not exposed by the requested API - /// version. + /// The height of the AdUnit, LineItem + /// or Creative. /// - UNKNOWN = 3, - } - - - /// A list of all errors associated with the Range constraint. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class RangeError : ApiError { - private RangeErrorReason reasonField; - - private bool reasonFieldSpecified; - - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public RangeErrorReason reason { + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public int height { get { - return this.reasonField; + return this.heightField; } set { - this.reasonField = value; - this.reasonSpecified = true; + this.heightField = value; + this.heightSpecified = true; } } - /// true, if a value is specified for , + /// true, if a value is specified for , /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { + public bool heightSpecified { get { - return this.reasonFieldSpecified; + return this.heightFieldSpecified; } set { - this.reasonFieldSpecified = value; + this.heightFieldSpecified = value; } } - } - - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "RangeError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum RangeErrorReason { - TOO_HIGH = 0, - TOO_LOW = 1, - /// The value returned if the actual value is not exposed by the requested API - /// version. + /// Whether this size represents an aspect ratio. /// - UNKNOWN = 2, - } - - - /// Describes a client-side error on which a user is attempting to perform an action - /// to which they have no quota remaining. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class QuotaError : ApiError { - private QuotaErrorReason reasonField; - - private bool reasonFieldSpecified; - - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public QuotaErrorReason reason { + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public bool isAspectRatio { get { - return this.reasonField; + return this.isAspectRatioField; } set { - this.reasonField = value; - this.reasonSpecified = true; + this.isAspectRatioField = value; + this.isAspectRatioSpecified = true; } } - /// true, if a value is specified for , - /// false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { + public bool isAspectRatioSpecified { get { - return this.reasonFieldSpecified; + return this.isAspectRatioFieldSpecified; } set { - this.reasonFieldSpecified = value; + this.isAspectRatioFieldSpecified = value; } } } + /// A size that is targeted on a request. + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "QuotaError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum QuotaErrorReason { - /// The number of requests made per second is too high and has exceeded the - /// allowable limit. The recommended approach to handle this error is to wait about - /// 5 seconds and then retry the request. Note that this does not guarantee the - /// request will succeed. If it fails again, try increasing the wait time. - ///

Another way to mitigate this error is to limit requests to 8 per second for - /// Ad Manager 360 accounts, or 2 per second for Ad Manager accounts. Once again - /// this does not guarantee that every request will succeed, but may help reduce the - /// number of times you receive this error.

- ///
- EXCEEDED_QUOTA = 0, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 1, - /// This user has exceeded the allowed number of new report requests per hour (this - /// includes both reports run via the UI and reports run via ReportService#runReportJob). The - /// recommended approach to handle this error is to wait about 10 minutes and then - /// retry the request. Note that this does not guarantee the request will succeed. - /// If it fails again, try increasing the wait time.

Another way to mitigate this - /// error is to limit the number of new report requests to 250 per hour per user. - /// Once again, this does not guarantee that every request will succeed, but may - /// help reduce the number of times you receive this error.

- ///
- REPORT_JOB_LIMIT = 2, - /// This network has exceeded the allowed number of identifiers uploaded within a 24 - /// hour period. The recommended approach to handle this error is to wait 30 minutes - /// and then retry the request. Note that this does not guarantee the request will - /// succeed. If it fails again, try increasing the wait time. - /// - SEGMENT_POPULATION_LIMIT = 3, + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class TargetedSize { + private Size sizeField; + + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public Size size { + get { + return this.sizeField; + } + set { + this.sizeField = value; + } + } } - /// An error that occurs while parsing a PQL query contained in a Statement object. + /// Represents a collection of targeted and excluded inventory sizes. This is + /// currently only available on YieldGroup and TrafficDataRequest. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class PublisherQueryLanguageSyntaxError : ApiError { - private PublisherQueryLanguageSyntaxErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class InventorySizeTargeting { + private bool isTargetedField; - private bool reasonFieldSpecified; + private bool isTargetedFieldSpecified; - /// The error reason represented by an enum. + private TargetedSize[] targetedSizesField; + + /// Whether the inventory sizes should be targeted or excluded. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public PublisherQueryLanguageSyntaxErrorReason reason { + public bool isTargeted { get { - return this.reasonField; + return this.isTargetedField; } set { - this.reasonField = value; - this.reasonSpecified = true; + this.isTargetedField = value; + this.isTargetedSpecified = true; } } - /// true, if a value is specified for , - /// false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { + public bool isTargetedSpecified { get { - return this.reasonFieldSpecified; + return this.isTargetedFieldSpecified; } set { - this.reasonFieldSpecified = value; + this.isTargetedFieldSpecified = value; } } - } - - /// The reasons for the target error. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "PublisherQueryLanguageSyntaxError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum PublisherQueryLanguageSyntaxErrorReason { - /// Indicates that there was a PQL syntax error. - /// - UNPARSABLE = 0, - /// The value returned if the actual value is not exposed by the requested API - /// version. + /// A list of TargetedSizeDtos. /// - UNKNOWN = 1, + [System.Xml.Serialization.XmlElementAttribute("targetedSizes", Order = 1)] + public TargetedSize[] targetedSizes { + get { + return this.targetedSizesField; + } + set { + this.targetedSizesField = value; + } + } } - /// An error that occurs while executing a PQL query contained in a Statement object. + /// Provides line items the ability to target the platform that requests and renders + /// the ad.

The following rules apply for RequestPlatformTargeting

///
[System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class PublisherQueryLanguageContextError : ApiError { - private PublisherQueryLanguageContextErrorReason reasonField; - - private bool reasonFieldSpecified; - - /// The error reason represented by an enum. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public PublisherQueryLanguageContextErrorReason reason { - get { - return this.reasonField; - } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class RequestPlatformTargeting { + private RequestPlatform[] targetedRequestPlatformsField; - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { + [System.Xml.Serialization.XmlElementAttribute("targetedRequestPlatforms", Order = 0)] + public RequestPlatform[] targetedRequestPlatforms { get { - return this.reasonFieldSpecified; + return this.targetedRequestPlatformsField; } set { - this.reasonFieldSpecified = value; + this.targetedRequestPlatformsField = value; } } } - /// The reasons for the target error. + /// Represents the platform which requests and renders the ad. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "PublisherQueryLanguageContextError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum PublisherQueryLanguageContextErrorReason { - /// Indicates that there was an error executing the PQL. - /// - UNEXECUTABLE = 0, + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum RequestPlatform { /// The value returned if the actual value is not exposed by the requested API /// version. /// - UNKNOWN = 1, + UNKNOWN = 0, + /// Represents a request made from a web browser. This includes both desktop and + /// mobile web. + /// + BROWSER = 1, + /// Represents a request made from a mobile application. This includes mobile app + /// interstitial and rewarded video requests. + /// + MOBILE_APP = 2, + /// Represents a request made from a video player that is playing publisher content. + /// This includes video players embedded in web pages and mobile applications, and + /// connected TV screens. + /// + VIDEO_PLAYER = 3, } - /// Errors related to incorrect permission. + /// Vertical targeting information. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class PermissionError : ApiError { - private PermissionErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class VerticalTargeting { + private long[] targetedVerticalIdsField; - private bool reasonFieldSpecified; + private long[] excludedVerticalIdsField; - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public PermissionErrorReason reason { + [System.Xml.Serialization.XmlElementAttribute("targetedVerticalIds", Order = 0)] + public long[] targetedVerticalIds { get { - return this.reasonField; + return this.targetedVerticalIdsField; } set { - this.reasonField = value; - this.reasonSpecified = true; + this.targetedVerticalIdsField = value; } } - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { + [System.Xml.Serialization.XmlElementAttribute("excludedVerticalIds", Order = 1)] + public long[] excludedVerticalIds { get { - return this.reasonFieldSpecified; + return this.excludedVerticalIdsField; } set { - this.reasonFieldSpecified = value; + this.excludedVerticalIdsField = value; } } } - /// Describes reasons for permission errors. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "PermissionError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum PermissionErrorReason { - /// User does not have the required permission for the request. - /// - PERMISSION_DENIED = 0, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 1, - } - - - /// Lists errors related to parsing. + /// The representation of an inventory Url that is used in targeting. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ParseError : ApiError { - private ParseErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class InventoryUrl { + private long idField; - private bool reasonFieldSpecified; + private bool idFieldSpecified; - /// The error reason represented by an enum. - /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public ParseErrorReason reason { + public long id { get { - return this.reasonField; + return this.idField; } set { - this.reasonField = value; - this.reasonSpecified = true; + this.idField = value; + this.idSpecified = true; } } - /// true, if a value is specified for , + /// true, if a value is specified for , /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { + public bool idSpecified { get { - return this.reasonFieldSpecified; + return this.idFieldSpecified; } set { - this.reasonFieldSpecified = value; + this.idFieldSpecified = value; } } } - /// The reasons for the target error. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ParseError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum ParseErrorReason { - /// Indicates an error in parsing an attribute. - /// - UNPARSABLE = 0, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 1, - } - - - /// Caused by supplying a null value for an attribute that cannot be null. + /// A collection of targeted inventory urls. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class NotNullError : ApiError { - private NotNullErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class InventoryUrlTargeting { + private InventoryUrl[] targetedUrlsField; - private bool reasonFieldSpecified; + private InventoryUrl[] excludedUrlsField; - /// The error reason represented by an enum. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public NotNullErrorReason reason { + [System.Xml.Serialization.XmlElementAttribute("targetedUrls", Order = 0)] + public InventoryUrl[] targetedUrls { get { - return this.reasonField; + return this.targetedUrlsField; } set { - this.reasonField = value; - this.reasonSpecified = true; + this.targetedUrlsField = value; } } - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { + [System.Xml.Serialization.XmlElementAttribute("excludedUrls", Order = 1)] + public InventoryUrl[] excludedUrls { get { - return this.reasonFieldSpecified; + return this.excludedUrlsField; } set { - this.reasonFieldSpecified = value; + this.excludedUrlsField = value; } } } - /// The reasons for the target error. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "NotNullError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum NotNullErrorReason { - /// Assuming that a method will not have more than 3 arguments, if it does, return - /// NULL - /// - ARG1_NULL = 0, - ARG2_NULL = 1, - ARG3_NULL = 2, - NULL = 3, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 4, - } - - - /// Indicates that a server-side error has occured. s are generally not - /// the result of an invalid request or message sent by the client. + /// The BuyerUserListTargeting associated with a programmatic LineItem or ProposalLineItem object. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class InternalApiError : ApiError { - private InternalApiErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class BuyerUserListTargeting { + private bool hasBuyerUserListTargetingField; - private bool reasonFieldSpecified; + private bool hasBuyerUserListTargetingFieldSpecified; - /// The error reason represented by an enum. + /// Whether the programmatic LineItem or object has buyer + /// user list targeting. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public InternalApiErrorReason reason { + public bool hasBuyerUserListTargeting { get { - return this.reasonField; + return this.hasBuyerUserListTargetingField; } set { - this.reasonField = value; - this.reasonSpecified = true; + this.hasBuyerUserListTargetingField = value; + this.hasBuyerUserListTargetingSpecified = true; } } - /// true, if a value is specified for , - /// false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { + public bool hasBuyerUserListTargetingSpecified { get { - return this.reasonFieldSpecified; + return this.hasBuyerUserListTargetingFieldSpecified; } set { - this.reasonFieldSpecified = value; + this.hasBuyerUserListTargetingFieldSpecified = value; } } } - /// The single reason for the internal API error. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "InternalApiError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum InternalApiErrorReason { - /// API encountered an unexpected internal error. - /// - UNEXPECTED_INTERNAL_API_ERROR = 0, - /// A temporary error occurred during the request. Please retry. - /// - TRANSIENT_ERROR = 1, - /// The cause of the error is not known or only defined in newer versions. - /// - UNKNOWN = 2, - /// The API is currently unavailable for a planned downtime. - /// - DOWNTIME = 3, - /// Mutate succeeded but server was unable to build response. Client should not - /// retry mutate. - /// - ERROR_GENERATING_RESPONSE = 4, - } - - - /// Errors related to feature management. If you attempt using a feature that is not - /// available to the current network you'll receive a FeatureError with the missing - /// feature as the trigger. + /// Provides line items the ability to target or exclude users' mobile applications. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class FeatureError : ApiError { - private FeatureErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class MobileApplicationTargeting { + private long[] mobileApplicationIdsField; - private bool reasonFieldSpecified; + private bool isTargetedField; - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public FeatureErrorReason reason { + private bool isTargetedFieldSpecified; + + /// The IDs that are being targeted or + /// excluded by the LineItem. + /// + [System.Xml.Serialization.XmlElementAttribute("mobileApplicationIds", Order = 0)] + public long[] mobileApplicationIds { get { - return this.reasonField; + return this.mobileApplicationIdsField; } set { - this.reasonField = value; - this.reasonSpecified = true; + this.mobileApplicationIdsField = value; } } - /// true, if a value is specified for , - /// false otherwise. + /// Indicates whether mobile apps should be targeted or excluded. This attribute is + /// optional and defaults to true. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public bool isTargeted { + get { + return this.isTargetedField; + } + set { + this.isTargetedField = value; + this.isTargetedSpecified = true; + } + } + + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { + public bool isTargetedSpecified { get { - return this.reasonFieldSpecified; + return this.isTargetedFieldSpecified; } set { - this.reasonFieldSpecified = value; + this.isTargetedFieldSpecified = value; } } } - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "FeatureError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum FeatureErrorReason { - /// A feature is being used that is not enabled on the current network. - /// - MISSING_FEATURE = 0, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 1, - } - - - /// A place for common errors that can be used across services. + /// Represents a targetable position within a pod within a video stream. A video ad + /// can be targeted to any position in the pod (first, second, third ... last). If + /// there is only 1 ad in a pod, either first or last will target that position. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class CommonError : ApiError { - private CommonErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class VideoPositionWithinPod { + private int indexField; - private bool reasonFieldSpecified; + private bool indexFieldSpecified; + /// The specific index of the pod. The index is defined as:
  • 1 = first
  • + ///
  • 2 = second
  • 3 = third
  • ....
  • 100 = last
+ /// 100 will always be the last position. For example, for a pod with 5 positions, + /// 100 would target position 5. Multiple targets against the index 100 can + /// exist.
Positions over 100 are not supported. + ///
[System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public CommonErrorReason reason { + public int index { get { - return this.reasonField; + return this.indexField; } set { - this.reasonField = value; - this.reasonSpecified = true; + this.indexField = value; + this.indexSpecified = true; } } - /// true, if a value is specified for , + /// true, if a value is specified for , /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { + public bool indexSpecified { get { - return this.reasonFieldSpecified; + return this.indexFieldSpecified; } set { - this.reasonFieldSpecified = value; + this.indexFieldSpecified = value; } } } - /// Describes reasons for common errors - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CommonError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum CommonErrorReason { - /// Indicates that an attempt was made to retrieve an entity that does not exist. - /// - NOT_FOUND = 0, - /// Indicates that an attempt was made to create an entity that already exists. - /// - ALREADY_EXISTS = 1, - /// Indicates that a value is not applicable for given use case. - /// - NOT_APPLICABLE = 6, - /// Indicates that two elements in the collection were identical. - /// - DUPLICATE_OBJECT = 2, - /// Indicates that an attempt was made to change an immutable field. - /// - CANNOT_UPDATE = 3, - /// Indicates that the requested operation is not supported. - /// - UNSUPPORTED_OPERATION = 7, - /// Indicates that another request attempted to update the same data in the same - /// network at about the same time. Please wait and try the request again. - /// - CONCURRENT_MODIFICATION = 4, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 5, - } - - - /// Error for the size of the collection being too large + /// Represents a targetable position within a video. A video ad can be targeted to a + /// position (pre-roll, all mid-rolls, or post-roll), or to a specific mid-roll + /// index. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class CollectionSizeError : ApiError { - private CollectionSizeErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class VideoPosition { + private VideoPositionType positionTypeField; - private bool reasonFieldSpecified; + private bool positionTypeFieldSpecified; + + private int midrollIndexField; + + private bool midrollIndexFieldSpecified; + /// The type of video position (pre-roll, mid-roll, or post-roll). + /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public CollectionSizeErrorReason reason { + public VideoPositionType positionType { get { - return this.reasonField; + return this.positionTypeField; } set { - this.reasonField = value; - this.reasonSpecified = true; + this.positionTypeField = value; + this.positionTypeSpecified = true; } } - /// true, if a value is specified for , - /// false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { + public bool positionTypeSpecified { get { - return this.reasonFieldSpecified; + return this.positionTypeFieldSpecified; } set { - this.reasonFieldSpecified = value; + this.positionTypeFieldSpecified = value; } } - } - - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CollectionSizeError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum CollectionSizeErrorReason { - TOO_LARGE = 0, - /// The value returned if the actual value is not exposed by the requested API - /// version. + /// The index of the mid-roll to target. Only valid if the positionType is VideoPositionType#MIDROLL, otherwise this + /// field will be ignored. /// - UNKNOWN = 1, - } - - - /// An error for an exception that occurred when authenticating. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class AuthenticationError : ApiError { - private AuthenticationErrorReason reasonField; - - private bool reasonFieldSpecified; - - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public AuthenticationErrorReason reason { + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public int midrollIndex { get { - return this.reasonField; + return this.midrollIndexField; } set { - this.reasonField = value; - this.reasonSpecified = true; + this.midrollIndexField = value; + this.midrollIndexSpecified = true; } } - /// true, if a value is specified for , - /// false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { + public bool midrollIndexSpecified { get { - return this.reasonFieldSpecified; + return this.midrollIndexFieldSpecified; } set { - this.reasonFieldSpecified = value; + this.midrollIndexFieldSpecified = value; } } } + /// Represents a targetable position within a video. + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AuthenticationError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum AuthenticationErrorReason { - /// The SOAP message contains a request header with an ambiguous definition of the - /// authentication header fields. This means either the authToken and - /// oAuthToken fields were both null or both were specified. Exactly - /// one value should be specified with each request. - /// - AMBIGUOUS_SOAP_REQUEST_HEADER = 0, - /// The login provided is invalid. - /// - INVALID_EMAIL = 1, - /// Tried to authenticate with provided information, but failed. - /// - AUTHENTICATION_FAILED = 2, - /// The OAuth provided is invalid. - /// - INVALID_OAUTH_SIGNATURE = 3, - /// The specified service to use was not recognized. - /// - INVALID_SERVICE = 4, - /// The SOAP message is missing a request header with an and optional - /// networkCode. - /// - MISSING_SOAP_REQUEST_HEADER = 5, - /// The HTTP request is missing a request header with an - /// - MISSING_AUTHENTICATION_HTTP_HEADER = 6, - /// The request is missing an authToken - /// - MISSING_AUTHENTICATION = 7, - /// The network does not have API access enabled. - /// - NETWORK_API_ACCESS_DISABLED = 16, - /// The user is not associated with any network. - /// - NO_NETWORKS_TO_ACCESS = 9, - /// No network for the given networkCode was found. - /// - NETWORK_NOT_FOUND = 10, - /// The user has access to more than one network, but did not provide a - /// networkCode. + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "VideoPosition.Type", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum VideoPositionType { + /// The value returned if the actual value is not exposed by the requested API + /// version. /// - NETWORK_CODE_REQUIRED = 11, - /// An error happened on the server side during connection to authentication - /// service. + UNKNOWN = 3, + /// This position targets all of the above video positions. /// - CONNECTION_ERROR = 12, - /// The user tried to create a test network using an account that already is - /// associated with a network. + ALL = 4, + /// The position defined as showing before the video starts playing. /// - GOOGLE_ACCOUNT_ALREADY_ASSOCIATED_WITH_NETWORK = 13, - /// The account is blocked and under investigation by the collections team. Please - /// contact Google for more information. + PREROLL = 0, + /// The position defined as showing within the middle of the playing video. /// - UNDER_INVESTIGATION = 15, - /// The value returned if the actual value is not exposed by the requested API - /// version. + MIDROLL = 1, + /// The position defined as showing after the video is completed. /// - UNKNOWN = 14, + POSTROLL = 2, } - /// Errors related to the usage of API versions. + /// Represents the options for targetable positions within a video. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ApiVersionError : ApiError { - private ApiVersionErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class VideoPositionTarget { + private VideoPosition videoPositionField; - private bool reasonFieldSpecified; + private VideoBumperType videoBumperTypeField; + + private bool videoBumperTypeFieldSpecified; + + private VideoPositionWithinPod videoPositionWithinPodField; + + private long adSpotIdField; + + private bool adSpotIdFieldSpecified; + /// The video position to target. This attribute is required. + /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public ApiVersionErrorReason reason { + public VideoPosition videoPosition { get { - return this.reasonField; + return this.videoPositionField; } set { - this.reasonField = value; - this.reasonSpecified = true; + this.videoPositionField = value; } } - /// true, if a value is specified for , - /// false otherwise. + /// The video bumper type to target. To target a video position or a pod position, + /// this value must be null. To target a bumper position this value must be + /// populated and the line item must have a bumper type. To target a custom ad spot, + /// this value must be null. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public VideoBumperType videoBumperType { + get { + return this.videoBumperTypeField; + } + set { + this.videoBumperTypeField = value; + this.videoBumperTypeSpecified = true; + } + } + + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { + public bool videoBumperTypeSpecified { get { - return this.reasonFieldSpecified; + return this.videoBumperTypeFieldSpecified; } set { - this.reasonFieldSpecified = value; + this.videoBumperTypeFieldSpecified = value; } } - } - - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ApiVersionError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum ApiVersionErrorReason { - /// Indicates that the operation is not allowed in the version the request was made - /// in. - /// - UPDATE_TO_NEWER_VERSION = 0, - /// The value returned if the actual value is not exposed by the requested API - /// version. + /// The video position within a pod to target. To target a video position or a + /// bumper position, this value must be null. To target a position within a pod this + /// value must be populated. To target a custom ad spot, this value must be null. /// - UNKNOWN = 1, - } - - - /// Errors relating to Activity and Activity Group services. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ActivityError : ApiError { - private ActivityErrorReason reasonField; - - private bool reasonFieldSpecified; + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public VideoPositionWithinPod videoPositionWithinPod { + get { + return this.videoPositionWithinPodField; + } + set { + this.videoPositionWithinPodField = value; + } + } - /// The error reason represented by an enum. + /// A custom spot AdSpot to target. To target a video position, + /// a bumper type or a video position within a pod this value must be null. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public ActivityErrorReason reason { + [System.Xml.Serialization.XmlElementAttribute(Order = 3)] + public long adSpotId { get { - return this.reasonField; + return this.adSpotIdField; } set { - this.reasonField = value; - this.reasonSpecified = true; + this.adSpotIdField = value; + this.adSpotIdSpecified = true; } } - /// true, if a value is specified for , - /// false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { + public bool adSpotIdSpecified { get { - return this.reasonFieldSpecified; + return this.adSpotIdFieldSpecified; } set { - this.reasonFieldSpecified = value; + this.adSpotIdFieldSpecified = value; } } } - /// The reasons for the target error. + /// Represents the options for targetable bumper positions, surrounding an ad pod, + /// within a video stream. This includes before and after the supported ad pod + /// positions, VideoPositionType#PREROLL, VideoPositionType#MIDROLL, and VideoPositionType#POSTROLL. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ActivityError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum ActivityErrorReason { - /// The 'activities' feature is required but not enabled. - /// - ACTIVITIES_FEATURE_REQUIRED = 0, - /// Activity group cannot be associated with the company types. + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum VideoBumperType { + /// Represents the bumper position before the ad pod. /// - UNSUPPORTED_COMPANY_TYPE = 2, - /// The value returned if the actual value is not exposed by the requested API - /// version. + BEFORE = 0, + /// Represents the bumper position after the ad pod. /// - UNKNOWN = 1, + AFTER = 1, } - /// Captures the WHERE, ORDER BY and LIMIT - /// clauses of a PQL query. Statements are typically used to retrieve objects of a - /// predefined domain type, which makes SELECT clause unnecessary.

An example - /// query text might be "WHERE status = 'ACTIVE' ORDER BY id LIMIT - /// 30".

Statements support bind variables. These are substitutes for - /// literals and can be thought of as input parameters to a PQL query.

An - /// example of such a query might be "WHERE id = :idValue".

- ///

Statements also support use of the LIKE keyword. This provides wildcard - /// string matching.

An example of such a query might be "WHERE name - /// LIKE '%searchString%'".

The value for the variable idValue must then - /// be set with an object of type Value, e.g., NumberValue, TextValue or BooleanValue. + /// Represents positions within and around a video where ads can be targeted to. + ///

Example positions could be pre-roll (before the video plays), + /// post-roll (after a video has completed playback) and + /// mid-roll (during video playback).

Empty video position + /// targeting means that all video positions are allowed. If a bumper line item has + /// empty video position targeting it will be updated to target all bumper + /// positions.

///
[System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class Statement { - private string queryField; - - private String_ValueMapEntry[] valuesField; - - /// Holds the query in PQL syntax. The syntax is:
[WHERE - /// <condition> {[AND | OR] <condition> ...}]
[ORDER - /// BY <property> [ASC | DESC]]
[LIMIT {[<offset>,] - /// <count>} | {<count> OFFSET <offset>}]
- ///

<condition>
#x160;#x160;#x160;#x160; := - /// <property> {< | <= | > | >= | = | != } <value>
<condition>
#x160;#x160;#x160;#x160; := - /// <property> {< | <= | > | >= | = | != } <bind - /// variable>
<condition> := <property> IN - /// <list>
<condition> := <property> IS - /// NULL
<condition> := <property> LIKE - /// <wildcard%match>
<bind variable> := - /// :<name>

- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public string query { - get { - return this.queryField; - } - set { - this.queryField = value; - } - } + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class VideoPositionTargeting { + private VideoPositionTarget[] targetedPositionsField; - /// Holds keys and values for bind variables and their values. The key is the name - /// of the bind variable. The value is the literal value of the variable.

In the - /// example "WHERE status = :bindStatus ORDER BY id LIMIT 30", the bind - /// variable, represented by :bindStatus is named - /// bindStatus, which would also be the parameter map key. The bind - /// variable's value would be represented by a parameter map value of type TextValue. The final result, for example, would be an entry - /// of "bindStatus" => StringParam("ACTIVE").

+ /// The VideoTargetingPosition objects being + /// targeted by the video LineItem. /// - [System.Xml.Serialization.XmlElementAttribute("values", Order = 1)] - public String_ValueMapEntry[] values { + [System.Xml.Serialization.XmlElementAttribute("targetedPositions", Order = 0)] + public VideoPositionTarget[] targetedPositions { get { - return this.valuesField; + return this.targetedPositionsField; } set { - this.valuesField = value; + this.targetedPositionsField = value; } } } - /// This represents an entry in a map with a key of type String and value of type - /// Value. + /// Used to target LineItems to specific videos on a + /// publisher's site. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class String_ValueMapEntry { - private string keyField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ContentTargeting { + private long[] targetedContentIdsField; - private Value valueField; + private long[] excludedContentIdsField; - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public string key { + private long[] targetedVideoContentBundleIdsField; + + private long[] excludedVideoContentBundleIdsField; + + /// The IDs of content being targeted by the LineItem. + /// + [System.Xml.Serialization.XmlElementAttribute("targetedContentIds", Order = 0)] + public long[] targetedContentIds { get { - return this.keyField; + return this.targetedContentIdsField; } set { - this.keyField = value; + this.targetedContentIdsField = value; } } - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public Value value { - get { - return this.valueField; - } + /// The IDs of content being excluded by the LineItem. + /// + [System.Xml.Serialization.XmlElementAttribute("excludedContentIds", Order = 1)] + public long[] excludedContentIds { + get { + return this.excludedContentIdsField; + } set { - this.valueField = value; + this.excludedContentIdsField = value; } } - } - - - /// Value represents a value. - /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(TextValue))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(SetValue))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(NumberValue))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(DateValue))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(DateTimeValue))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(BooleanValue))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ObjectValue))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(TargetingValue))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ChangeHistoryValue))] - public abstract partial class Value { - } - - /// Contains a string value. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class TextValue : Value { - private string valueField; + /// A list of video content bundles, represented by ContentBundle IDs, that are being targeted by the + /// LineItem. + /// + [System.Xml.Serialization.XmlElementAttribute("targetedVideoContentBundleIds", Order = 2)] + public long[] targetedVideoContentBundleIds { + get { + return this.targetedVideoContentBundleIdsField; + } + set { + this.targetedVideoContentBundleIdsField = value; + } + } - /// The string value. + /// A list of video content bundles, represented by ContentBundle IDs, that are being excluded by the + /// LineItem. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public string value { + [System.Xml.Serialization.XmlElementAttribute("excludedVideoContentBundleIds", Order = 3)] + public long[] excludedVideoContentBundleIds { get { - return this.valueField; + return this.excludedVideoContentBundleIdsField; } set { - this.valueField = value; + this.excludedVideoContentBundleIdsField = value; } } } - /// Contains a set of Values. May not contain duplicates. + /// Provides line items the ability to target or exclude users visiting their + /// websites from a list of domains or subdomains. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class SetValue : Value { - private Value[] valuesField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class UserDomainTargeting { + private string[] domainsField; - /// The values. They must all be the same type of Value and not contain - /// duplicates. + private bool targetedField; + + private bool targetedFieldSpecified; + + /// The domains or subdomains that are being targeted or excluded by the LineItem. This attribute is required and the maximum length + /// of each domain is 67 characters. /// - [System.Xml.Serialization.XmlElementAttribute("values", Order = 0)] - public Value[] values { + [System.Xml.Serialization.XmlElementAttribute("domains", Order = 0)] + public string[] domains { get { - return this.valuesField; + return this.domainsField; } set { - this.valuesField = value; + this.domainsField = value; } } - } - - - /// Contains a numeric value. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class NumberValue : Value { - private string valueField; - /// The numeric value represented as a string. + /// Indicates whether domains should be targeted or excluded. This attribute is + /// optional and defaults to true. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public string value { + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public bool targeted { get { - return this.valueField; + return this.targetedField; } set { - this.valueField = value; + this.targetedField = value; + this.targetedSpecified = true; + } + } + + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool targetedSpecified { + get { + return this.targetedFieldSpecified; + } + set { + this.targetedFieldSpecified = value; } } } - /// Contains a date value. + /// A CustomCriteriaNode is a node in the custom + /// targeting tree. A custom criteria node can either be a CustomCriteriaSet (a non-leaf node) or a CustomCriteria (a leaf node). The custom criteria + /// targeting tree is subject to the rules defined on Targeting#customTargeting. /// + [System.Xml.Serialization.XmlIncludeAttribute(typeof(CustomCriteriaLeaf))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(AudienceSegmentCriteria))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(CmsMetadataCriteria))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(CustomCriteria))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(CustomCriteriaSet))] [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class DateValue : Value { - private Date valueField; - - /// The Date value. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public Date value { - get { - return this.valueField; - } - set { - this.valueField = value; - } - } + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public abstract partial class CustomCriteriaNode { } - /// Represents a date. + /// A CustomCriteriaLeaf object represents a + /// generic leaf of CustomCriteria tree structure. /// + [System.Xml.Serialization.XmlIncludeAttribute(typeof(AudienceSegmentCriteria))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(CmsMetadataCriteria))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(CustomCriteria))] [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class Date { - private int yearField; - - private bool yearFieldSpecified; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public abstract partial class CustomCriteriaLeaf : CustomCriteriaNode { + } - private int monthField; - private bool monthFieldSpecified; + /// An AudienceSegmentCriteria object is used + /// to target AudienceSegment objects. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class AudienceSegmentCriteria : CustomCriteriaLeaf { + private AudienceSegmentCriteriaComparisonOperator operatorField; - private int dayField; + private bool operatorFieldSpecified; - private bool dayFieldSpecified; + private long[] audienceSegmentIdsField; - /// Year (e.g., 2009) + /// The comparison operator. This attribute is required. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public int year { + public AudienceSegmentCriteriaComparisonOperator @operator { get { - return this.yearField; + return this.operatorField; } set { - this.yearField = value; - this.yearSpecified = true; + this.operatorField = value; + this.operatorSpecified = true; } } - /// true, if a value is specified for , - /// false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool yearSpecified { + public bool operatorSpecified { get { - return this.yearFieldSpecified; + return this.operatorFieldSpecified; } set { - this.yearFieldSpecified = value; + this.operatorFieldSpecified = value; } } - /// Month (1..12) + /// The ids of AudienceSegment objects used to target + /// audience segments. This attribute is required. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public int month { + [System.Xml.Serialization.XmlElementAttribute("audienceSegmentIds", Order = 1)] + public long[] audienceSegmentIds { get { - return this.monthField; + return this.audienceSegmentIdsField; } set { - this.monthField = value; - this.monthSpecified = true; + this.audienceSegmentIdsField = value; } } + } - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool monthSpecified { + + /// Specifies the available comparison operators. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AudienceSegmentCriteria.ComparisonOperator", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum AudienceSegmentCriteriaComparisonOperator { + IS = 0, + IS_NOT = 1, + } + + + /// A CmsMetadataCriteria object is used to target + /// objects. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class CmsMetadataCriteria : CustomCriteriaLeaf { + private CmsMetadataCriteriaComparisonOperator operatorField; + + private bool operatorFieldSpecified; + + private long[] cmsMetadataValueIdsField; + + /// The comparison operator. This attribute is required. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public CmsMetadataCriteriaComparisonOperator @operator { get { - return this.monthFieldSpecified; + return this.operatorField; } set { - this.monthFieldSpecified = value; + this.operatorField = value; + this.operatorSpecified = true; } } - /// Day (1..31) - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public int day { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool operatorSpecified { get { - return this.dayField; + return this.operatorFieldSpecified; } set { - this.dayField = value; - this.daySpecified = true; + this.operatorFieldSpecified = value; } } - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool daySpecified { + /// The ids of CmsMetadataValue objects used to + /// target CMS metadata. This attribute is required. + /// + [System.Xml.Serialization.XmlElementAttribute("cmsMetadataValueIds", Order = 1)] + public long[] cmsMetadataValueIds { get { - return this.dayFieldSpecified; + return this.cmsMetadataValueIdsField; } set { - this.dayFieldSpecified = value; + this.cmsMetadataValueIdsField = value; } } } - /// Contains a date-time value. + /// Specifies the available comparison operators. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class DateTimeValue : Value { - private DateTime valueField; - - /// The DateTime value. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public DateTime value { - get { - return this.valueField; - } - set { - this.valueField = value; - } - } + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CmsMetadataCriteria.ComparisonOperator", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum CmsMetadataCriteriaComparisonOperator { + EQUALS = 0, + NOT_EQUALS = 1, } - /// Represents a date combined with the time of day. + /// A CustomCriteria object is used to perform custom + /// criteria targeting on custom targeting keys of type CustomTargetingKey.Type#PREDEFINED + /// or CustomTargetingKey.Type#FREEFORM. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class DateTime { - private Date dateField; - - private int hourField; - - private bool hourFieldSpecified; - - private int minuteField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class CustomCriteria : CustomCriteriaLeaf { + private long keyIdField; - private bool minuteFieldSpecified; + private bool keyIdFieldSpecified; - private int secondField; + private long[] valueIdsField; - private bool secondFieldSpecified; + private CustomCriteriaComparisonOperator operatorField; - private string timeZoneIdField; + private bool operatorFieldSpecified; + /// The CustomTargetingKey#id of the CustomTargetingKey object that was created using + /// CustomTargetingService. This attribute is + /// required. + /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public Date date { - get { - return this.dateField; - } - set { - this.dateField = value; - } - } - - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public int hour { + public long keyId { get { - return this.hourField; + return this.keyIdField; } set { - this.hourField = value; - this.hourSpecified = true; + this.keyIdField = value; + this.keyIdSpecified = true; } } - /// true, if a value is specified for , + /// true, if a value is specified for , /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool hourSpecified { - get { - return this.hourFieldSpecified; - } - set { - this.hourFieldSpecified = value; - } - } - - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public int minute { + public bool keyIdSpecified { get { - return this.minuteField; + return this.keyIdFieldSpecified; } set { - this.minuteField = value; - this.minuteSpecified = true; + this.keyIdFieldSpecified = value; } } - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool minuteSpecified { + /// The ids of CustomTargetingValue objects to + /// target the custom targeting key with id CustomCriteria#keyId. This attribute is + /// required. + /// + [System.Xml.Serialization.XmlElementAttribute("valueIds", Order = 1)] + public long[] valueIds { get { - return this.minuteFieldSpecified; + return this.valueIdsField; } set { - this.minuteFieldSpecified = value; + this.valueIdsField = value; } } - [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public int second { + /// The comparison operator. This attribute is required. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public CustomCriteriaComparisonOperator @operator { get { - return this.secondField; + return this.operatorField; } set { - this.secondField = value; - this.secondSpecified = true; + this.operatorField = value; + this.operatorSpecified = true; } } - /// true, if a value is specified for , - /// false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool secondSpecified { + public bool operatorSpecified { get { - return this.secondFieldSpecified; + return this.operatorFieldSpecified; } set { - this.secondFieldSpecified = value; + this.operatorFieldSpecified = value; } } + } - [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public string timeZoneId { - get { - return this.timeZoneIdField; - } - set { - this.timeZoneIdField = value; - } - } + + /// Specifies the available comparison operators. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CustomCriteria.ComparisonOperator", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum CustomCriteriaComparisonOperator { + IS = 0, + IS_NOT = 1, } - /// Contains a boolean value. + /// A CustomCriteriaSet comprises of a set of CustomCriteriaNode objects combined by the CustomCriteriaSet.LogicalOperator#logicalOperator. + /// The custom criteria targeting tree is subject to the rules defined on Targeting#customTargeting. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class BooleanValue : Value { - private bool valueField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class CustomCriteriaSet : CustomCriteriaNode { + private CustomCriteriaSetLogicalOperator logicalOperatorField; - private bool valueFieldSpecified; + private bool logicalOperatorFieldSpecified; - /// The boolean value. + private CustomCriteriaNode[] childrenField; + + /// The logical operator to be applied to CustomCriteriaSet#children. This attribute + /// is required. This attribute is + /// required. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public bool value { + public CustomCriteriaSetLogicalOperator logicalOperator { get { - return this.valueField; + return this.logicalOperatorField; } set { - this.valueField = value; - this.valueSpecified = true; + this.logicalOperatorField = value; + this.logicalOperatorSpecified = true; } } - /// true, if a value is specified for , - /// false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool valueSpecified { + public bool logicalOperatorSpecified { get { - return this.valueFieldSpecified; + return this.logicalOperatorFieldSpecified; } set { - this.valueFieldSpecified = value; + this.logicalOperatorFieldSpecified = value; + } + } + + /// The custom criteria. This attribute is required. + /// + [System.Xml.Serialization.XmlElementAttribute("children", Order = 1)] + public CustomCriteriaNode[] children { + get { + return this.childrenField; + } + set { + this.childrenField = value; } } } - /// Contains an object value.

This object is experimental! - /// ObjectValue is an experimental, innovative, and rapidly changing - /// new feature for Ad Manager. Unfortunately, being on the bleeding edge means that - /// we may make backwards-incompatible changes to ObjectValue. We will - /// inform the community when this feature is no longer experimental.

+ /// Specifies the available logical operators. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(TargetingValue))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ChangeHistoryValue))] - public abstract partial class ObjectValue : Value { + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CustomCriteriaSet.LogicalOperator", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum CustomCriteriaSetLogicalOperator { + AND = 0, + OR = 1, } - /// Captures a page of ActivityGroup objects. + /// Represents operating system versions that are being targeted or excluded by the + /// LineItem. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ActivityGroupPage { - private int totalResultSetSizeField; - - private bool totalResultSetSizeFieldSpecified; - - private int startIndexField; - - private bool startIndexFieldSpecified; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class OperatingSystemVersionTargeting { + private Technology[] targetedOperatingSystemVersionsField; - private ActivityGroup[] resultsField; + private Technology[] excludedOperatingSystemVersionsField; - /// The size of the total result set to which this page belongs. + /// Operating system versions that are being targeted by the LineItem. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public int totalResultSetSize { + [System.Xml.Serialization.XmlElementAttribute("targetedOperatingSystemVersions", Order = 0)] + public Technology[] targetedOperatingSystemVersions { get { - return this.totalResultSetSizeField; + return this.targetedOperatingSystemVersionsField; } set { - this.totalResultSetSizeField = value; - this.totalResultSetSizeSpecified = true; + this.targetedOperatingSystemVersionsField = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool totalResultSetSizeSpecified { - get { - return this.totalResultSetSizeFieldSpecified; + /// Operating system versions that are being excluded by the LineItem. + /// + [System.Xml.Serialization.XmlElementAttribute("excludedOperatingSystemVersions", Order = 1)] + public Technology[] excludedOperatingSystemVersions { + get { + return this.excludedOperatingSystemVersionsField; } set { - this.totalResultSetSizeFieldSpecified = value; + this.excludedOperatingSystemVersionsField = value; } } + } - /// The absolute index in the total result set on which this page begins. + + /// Represents a technology entity that can be targeted. + /// + [System.Xml.Serialization.XmlIncludeAttribute(typeof(OperatingSystemVersion))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(OperatingSystem))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(MobileDeviceSubmodel))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(MobileDevice))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(MobileCarrier))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(DeviceManufacturer))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(DeviceCategory))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(DeviceCapability))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(BrowserLanguage))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(Browser))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(BandwidthGroup))] + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class Technology { + private long idField; + + private bool idFieldSpecified; + + private string nameField; + + /// The unique ID of the Technology. This value is required for all + /// forms of TechnologyTargeting. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public int startIndex { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public long id { get { - return this.startIndexField; + return this.idField; } set { - this.startIndexField = value; - this.startIndexSpecified = true; + this.idField = value; + this.idSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , + /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool startIndexSpecified { + public bool idSpecified { get { - return this.startIndexFieldSpecified; + return this.idFieldSpecified; } set { - this.startIndexFieldSpecified = value; + this.idFieldSpecified = value; } } - /// The collection of activity groups contained within this page. + /// The name of the technology being targeting. This value is read-only and is + /// assigned by Google. /// - [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] - public ActivityGroup[] results { + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public string name { get { - return this.resultsField; + return this.nameField; } set { - this.resultsField = value; + this.nameField = value; } } } - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public interface ActivityGroupServiceInterfaceChannel : Google.Api.Ads.AdManager.v202311.ActivityGroupServiceInterface, System.ServiceModel.IClientChannel - { - } - namespace Wrappers.ActivityGroupService - { - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "createActivityGroups", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class createActivityGroupsRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("activityGroups")] - public Google.Api.Ads.AdManager.v202311.ActivityGroup[] activityGroups; - - /// Creates a new instance of the class. - public createActivityGroupsRequest() { - } - - /// Creates a new instance of the class. - public createActivityGroupsRequest(Google.Api.Ads.AdManager.v202311.ActivityGroup[] activityGroups) { - this.activityGroups = activityGroups; - } - } - + /// Represents a specific version of an operating system. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class OperatingSystemVersion : Technology { + private int majorVersionField; - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "createActivityGroupsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class createActivityGroupsResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v202311.ActivityGroup[] rval; + private bool majorVersionFieldSpecified; - /// Creates a new instance of the class. - public createActivityGroupsResponse() { - } + private int minorVersionField; - /// Creates a new instance of the class. - public createActivityGroupsResponse(Google.Api.Ads.AdManager.v202311.ActivityGroup[] rval) { - this.rval = rval; - } - } + private bool minorVersionFieldSpecified; + private int microVersionField; - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "updateActivityGroups", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class updateActivityGroupsRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("activityGroups")] - public Google.Api.Ads.AdManager.v202311.ActivityGroup[] activityGroups; + private bool microVersionFieldSpecified; - /// Creates a new instance of the class. - public updateActivityGroupsRequest() { + /// The operating system major version. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public int majorVersion { + get { + return this.majorVersionField; } - - /// Creates a new instance of the class. - public updateActivityGroupsRequest(Google.Api.Ads.AdManager.v202311.ActivityGroup[] activityGroups) { - this.activityGroups = activityGroups; + set { + this.majorVersionField = value; + this.majorVersionSpecified = true; } } - - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "updateActivityGroupsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class updateActivityGroupsResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v202311.ActivityGroup[] rval; - - /// Creates a new instance of the class. - public updateActivityGroupsResponse() { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool majorVersionSpecified { + get { + return this.majorVersionFieldSpecified; } - - /// Creates a new instance of the class. - public updateActivityGroupsResponse(Google.Api.Ads.AdManager.v202311.ActivityGroup[] rval) { - this.rval = rval; + set { + this.majorVersionFieldSpecified = value; } } - } - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", ConfigurationName = "Google.Api.Ads.AdManager.v202311.ActivityGroupServiceInterface")] - public interface ActivityGroupServiceInterface - { - // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Wrappers.ActivityGroupService.createActivityGroupsResponse createActivityGroups(Wrappers.ActivityGroupService.createActivityGroupsRequest request); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task createActivityGroupsAsync(Wrappers.ActivityGroupService.createActivityGroupsRequest request); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v202311.ActivityGroupPage getActivityGroupsByStatement(Google.Api.Ads.AdManager.v202311.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getActivityGroupsByStatementAsync(Google.Api.Ads.AdManager.v202311.Statement filterStatement); - - // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Wrappers.ActivityGroupService.updateActivityGroupsResponse updateActivityGroups(Wrappers.ActivityGroupService.updateActivityGroupsRequest request); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task updateActivityGroupsAsync(Wrappers.ActivityGroupService.updateActivityGroupsRequest request); - } - - - /// Provides methods for creating, updating and retrieving ActivityGroup objects.

An activity group contains Activity objects. Activities have a many-to-one relationship - /// with activity groups, meaning each activity can belong to only one activity - /// group, but activity groups can have multiple activities. An activity group can - /// be used to manage the activities it contains.

- ///
- [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public partial class ActivityGroupService : AdManagerSoapClient, IActivityGroupService { - /// Creates a new instance of the - /// class. - public ActivityGroupService() { - } - - /// Creates a new instance of the - /// class. - public ActivityGroupService(string endpointConfigurationName) - : base(endpointConfigurationName) { - } - - /// Creates a new instance of the - /// class. - public ActivityGroupService(string endpointConfigurationName, string remoteAddress) - : base(endpointConfigurationName, remoteAddress) { - } - - /// Creates a new instance of the - /// class. - public ActivityGroupService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) - : base(endpointConfigurationName, remoteAddress) { - } - - /// Creates a new instance of the - /// class. - public ActivityGroupService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) - : base(binding, remoteAddress) { - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.ActivityGroupService.createActivityGroupsResponse Google.Api.Ads.AdManager.v202311.ActivityGroupServiceInterface.createActivityGroups(Wrappers.ActivityGroupService.createActivityGroupsRequest request) { - return base.Channel.createActivityGroups(request); - } - - /// Creates a new ActivityGroup objects. - /// - public virtual Google.Api.Ads.AdManager.v202311.ActivityGroup[] createActivityGroups(Google.Api.Ads.AdManager.v202311.ActivityGroup[] activityGroups) { - Wrappers.ActivityGroupService.createActivityGroupsRequest inValue = new Wrappers.ActivityGroupService.createActivityGroupsRequest(); - inValue.activityGroups = activityGroups; - Wrappers.ActivityGroupService.createActivityGroupsResponse retVal = ((Google.Api.Ads.AdManager.v202311.ActivityGroupServiceInterface)(this)).createActivityGroups(inValue); - return retVal.rval; - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202311.ActivityGroupServiceInterface.createActivityGroupsAsync(Wrappers.ActivityGroupService.createActivityGroupsRequest request) { - return base.Channel.createActivityGroupsAsync(request); - } - - public virtual System.Threading.Tasks.Task createActivityGroupsAsync(Google.Api.Ads.AdManager.v202311.ActivityGroup[] activityGroups) { - Wrappers.ActivityGroupService.createActivityGroupsRequest inValue = new Wrappers.ActivityGroupService.createActivityGroupsRequest(); - inValue.activityGroups = activityGroups; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202311.ActivityGroupServiceInterface)(this)).createActivityGroupsAsync(inValue)).Result.rval); - } - - /// Gets an ActivityGroupPage of ActivityGroup objects that satisfy the given Statement#query. The following fields are supported - /// for filtering: - /// - /// - /// - ///
PQL Property Object Property
id ActivityGroup#id
name ActivityGroup#name
impressionsLookback ActivityGroup#impressionsLookback
clicksLookback ActivityGroup#clicksLookback
status ActivityGroup#status
- ///
- public virtual Google.Api.Ads.AdManager.v202311.ActivityGroupPage getActivityGroupsByStatement(Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.getActivityGroupsByStatement(filterStatement); - } - - public virtual System.Threading.Tasks.Task getActivityGroupsByStatementAsync(Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.getActivityGroupsByStatementAsync(filterStatement); - } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.ActivityGroupService.updateActivityGroupsResponse Google.Api.Ads.AdManager.v202311.ActivityGroupServiceInterface.updateActivityGroups(Wrappers.ActivityGroupService.updateActivityGroupsRequest request) { - return base.Channel.updateActivityGroups(request); - } - - /// Updates the specified ActivityGroup objects. + /// The operating system minor version. /// - public virtual Google.Api.Ads.AdManager.v202311.ActivityGroup[] updateActivityGroups(Google.Api.Ads.AdManager.v202311.ActivityGroup[] activityGroups) { - Wrappers.ActivityGroupService.updateActivityGroupsRequest inValue = new Wrappers.ActivityGroupService.updateActivityGroupsRequest(); - inValue.activityGroups = activityGroups; - Wrappers.ActivityGroupService.updateActivityGroupsResponse retVal = ((Google.Api.Ads.AdManager.v202311.ActivityGroupServiceInterface)(this)).updateActivityGroups(inValue); - return retVal.rval; - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202311.ActivityGroupServiceInterface.updateActivityGroupsAsync(Wrappers.ActivityGroupService.updateActivityGroupsRequest request) { - return base.Channel.updateActivityGroupsAsync(request); - } - - public virtual System.Threading.Tasks.Task updateActivityGroupsAsync(Google.Api.Ads.AdManager.v202311.ActivityGroup[] activityGroups) { - Wrappers.ActivityGroupService.updateActivityGroupsRequest inValue = new Wrappers.ActivityGroupService.updateActivityGroupsRequest(); - inValue.activityGroups = activityGroups; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202311.ActivityGroupServiceInterface)(this)).updateActivityGroupsAsync(inValue)).Result.rval); - } - } - namespace Wrappers.CreativeService - { - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "createCreatives", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class createCreativesRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("creatives")] - public Google.Api.Ads.AdManager.v202311.Creative[] creatives; - - /// Creates a new instance of the - /// class. - public createCreativesRequest() { + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public int minorVersion { + get { + return this.minorVersionField; } - - /// Creates a new instance of the - /// class. - public createCreativesRequest(Google.Api.Ads.AdManager.v202311.Creative[] creatives) { - this.creatives = creatives; + set { + this.minorVersionField = value; + this.minorVersionSpecified = true; } } - - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "createCreativesResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class createCreativesResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v202311.Creative[] rval; - - /// Creates a new instance of the - /// class. - public createCreativesResponse() { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool minorVersionSpecified { + get { + return this.minorVersionFieldSpecified; } - - /// Creates a new instance of the - /// class. - public createCreativesResponse(Google.Api.Ads.AdManager.v202311.Creative[] rval) { - this.rval = rval; + set { + this.minorVersionFieldSpecified = value; } } - - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "updateCreatives", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class updateCreativesRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("creatives")] - public Google.Api.Ads.AdManager.v202311.Creative[] creatives; - - /// Creates a new instance of the - /// class. - public updateCreativesRequest() { + /// The operating system micro version. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public int microVersion { + get { + return this.microVersionField; } - - /// Creates a new instance of the - /// class. - public updateCreativesRequest(Google.Api.Ads.AdManager.v202311.Creative[] creatives) { - this.creatives = creatives; + set { + this.microVersionField = value; + this.microVersionSpecified = true; } } - - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "updateCreativesResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class updateCreativesResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v202311.Creative[] rval; - - /// Creates a new instance of the - /// class. - public updateCreativesResponse() { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool microVersionSpecified { + get { + return this.microVersionFieldSpecified; } - - /// Creates a new instance of the - /// class. - public updateCreativesResponse(Google.Api.Ads.AdManager.v202311.Creative[] rval) { - this.rval = rval; + set { + this.microVersionFieldSpecified = value; } } } - /// A base class for storing values of the CreativeTemplateVariable. + + + /// Represents an Operating System, such as Linux, Mac OS or Windows. /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(UrlCreativeTemplateVariableValue))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(StringCreativeTemplateVariableValue))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(LongCreativeTemplateVariableValue))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(AssetCreativeTemplateVariableValue))] [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public abstract partial class BaseCreativeTemplateVariableValue { - private string uniqueNameField; - - /// A uniqueName of the CreativeTemplateVariable. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public string uniqueName { - get { - return this.uniqueNameField; - } - set { - this.uniqueNameField = value; - } - } + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class OperatingSystem : Technology { } - /// Stores values of CreativeTemplateVariable - /// of VariableType#URL. + /// Represents a mobile device submodel. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class UrlCreativeTemplateVariableValue : BaseCreativeTemplateVariableValue { - private string valueField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class MobileDeviceSubmodel : Technology { + private long mobileDeviceCriterionIdField; - /// The url value of CreativeTemplateVariable + private bool mobileDeviceCriterionIdFieldSpecified; + + private long deviceManufacturerCriterionIdField; + + private bool deviceManufacturerCriterionIdFieldSpecified; + + /// The mobile device id. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public string value { + public long mobileDeviceCriterionId { get { - return this.valueField; + return this.mobileDeviceCriterionIdField; } set { - this.valueField = value; + this.mobileDeviceCriterionIdField = value; + this.mobileDeviceCriterionIdSpecified = true; } } - } + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool mobileDeviceCriterionIdSpecified { + get { + return this.mobileDeviceCriterionIdFieldSpecified; + } + set { + this.mobileDeviceCriterionIdFieldSpecified = value; + } + } - /// Stores values of CreativeTemplateVariable - /// of VariableType#STRING and VariableType#LIST. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class StringCreativeTemplateVariableValue : BaseCreativeTemplateVariableValue { - private string valueField; + /// The device manufacturer id. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public long deviceManufacturerCriterionId { + get { + return this.deviceManufacturerCriterionIdField; + } + set { + this.deviceManufacturerCriterionIdField = value; + this.deviceManufacturerCriterionIdSpecified = true; + } + } - /// The string value of CreativeTemplateVariable + /// true, if a value is specified for , false otherwise. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public string value { + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool deviceManufacturerCriterionIdSpecified { get { - return this.valueField; + return this.deviceManufacturerCriterionIdFieldSpecified; } set { - this.valueField = value; + this.deviceManufacturerCriterionIdFieldSpecified = value; } } } - /// Stores values of CreativeTemplateVariable - /// of VariableType#LONG. + /// Represents a Mobile Device. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class LongCreativeTemplateVariableValue : BaseCreativeTemplateVariableValue { - private long valueField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class MobileDevice : Technology { + private long manufacturerCriterionIdField; - private bool valueFieldSpecified; + private bool manufacturerCriterionIdFieldSpecified; - /// The long value of CreativeTemplateVariable + /// Manufacturer Id. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public long value { + public long manufacturerCriterionId { get { - return this.valueField; + return this.manufacturerCriterionIdField; } set { - this.valueField = value; - this.valueSpecified = true; + this.manufacturerCriterionIdField = value; + this.manufacturerCriterionIdSpecified = true; } } - /// true, if a value is specified for , - /// false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool valueSpecified { + public bool manufacturerCriterionIdSpecified { get { - return this.valueFieldSpecified; + return this.manufacturerCriterionIdFieldSpecified; } set { - this.valueFieldSpecified = value; + this.manufacturerCriterionIdFieldSpecified = value; } } } - /// Stores values of CreativeTemplateVariable - /// of VariableType#ASSET. + /// Represents a mobile carrier. Carrier targeting is only available to Ad Manager + /// mobile publishers. For a list of current mobile carriers, you can use PublisherQueryLanguageService#mobile_carrier. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class AssetCreativeTemplateVariableValue : BaseCreativeTemplateVariableValue { - private CreativeAsset assetField; - - /// The associated asset. This attribute is required when creating a new - /// TemplateCreative. To view the asset, use CreativeAsset#assetUrl. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public CreativeAsset asset { - get { - return this.assetField; - } - set { - this.assetField = value; - } - } + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class MobileCarrier : Technology { } - /// A CreativeAsset is an asset that can be used in creatives. + /// Represents a mobile device's manufacturer. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class CreativeAsset { - private long assetIdField; - - private bool assetIdFieldSpecified; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class DeviceManufacturer : Technology { + } - private byte[] assetByteArrayField; - private string fileNameField; + /// Represents the category of a device. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class DeviceCategory : Technology { + } - private long fileSizeField; - private bool fileSizeFieldSpecified; + /// Represents a capability of a physical device. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class DeviceCapability : Technology { + } - private string assetUrlField; - private Size sizeField; + /// Represents a Browser's language. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class BrowserLanguage : Technology { + } - private ClickTag[] clickTagsField; - private ImageDensity imageDensityField; + /// Represents an internet browser. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class Browser : Technology { + private string majorVersionField; - private bool imageDensityFieldSpecified; + private string minorVersionField; - /// The ID of the asset. This attribute is generated by Google upon creation. + /// Browser major version. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public long assetId { - get { - return this.assetIdField; - } - set { - this.assetIdField = value; - this.assetIdSpecified = true; - } - } - - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool assetIdSpecified { + public string majorVersion { get { - return this.assetIdFieldSpecified; + return this.majorVersionField; } set { - this.assetIdFieldSpecified = value; + this.majorVersionField = value; } } - /// The content of the asset as a byte array. This attribute is required when - /// creating the creative that contains this asset if an assetId is not - /// provided.

When updating the content, pass a new byte array, and set - /// to null. Otherwise, this field can be null.

The - /// assetByteArray will be null when the creative is - /// retrieved.

+ /// Browser minor version. /// - [System.Xml.Serialization.XmlElementAttribute(DataType = "base64Binary", Order = 1)] - public byte[] assetByteArray { + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public string minorVersion { get { - return this.assetByteArrayField; + return this.minorVersionField; } set { - this.assetByteArrayField = value; + this.minorVersionField = value; } } + } - /// The file name of the asset. This attribute is required when creating a new asset - /// (e.g. when #assetByteArray is not null). - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public string fileName { - get { - return this.fileNameField; - } - set { - this.fileNameField = value; - } - } - /// The file size of the asset in bytes. This attribute is read-only. + /// Represents a group of bandwidths that are logically organized by some well known + /// generic names such as 'Cable' or 'DSL'. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class BandwidthGroup : Technology { + } + + + /// Represents operating systems that are being targeted or excluded by the LineItem. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class OperatingSystemTargeting { + private bool isTargetedField; + + private bool isTargetedFieldSpecified; + + private Technology[] operatingSystemsField; + + /// Indicates whether operating systems should be targeted or excluded. This + /// attribute is optional and defaults to true. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public long fileSize { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public bool isTargeted { get { - return this.fileSizeField; + return this.isTargetedField; } set { - this.fileSizeField = value; - this.fileSizeSpecified = true; + this.isTargetedField = value; + this.isTargetedSpecified = true; } } - /// true, if a value is specified for true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool fileSizeSpecified { + public bool isTargetedSpecified { get { - return this.fileSizeFieldSpecified; + return this.isTargetedFieldSpecified; } set { - this.fileSizeFieldSpecified = value; + this.isTargetedFieldSpecified = value; } } - /// A URL where the asset can be previewed at. This field is read-only and set by - /// Google. + /// Operating systems that are being targeted or excluded by the LineItem. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public string assetUrl { + [System.Xml.Serialization.XmlElementAttribute("operatingSystems", Order = 1)] + public Technology[] operatingSystems { get { - return this.assetUrlField; + return this.operatingSystemsField; } set { - this.assetUrlField = value; + this.operatingSystemsField = value; } } + } - /// The size of the asset. Note that this may not always reflect the actual physical - /// size of the asset, but may reflect the expected size. This attribute is - /// read-only and is populated by Google. + + /// Represents mobile devices that are being targeted or excluded by the LineItem. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class MobileDeviceSubmodelTargeting { + private Technology[] targetedMobileDeviceSubmodelsField; + + private Technology[] excludedMobileDeviceSubmodelsField; + + /// Mobile device submodels that are being targeted by the LineItem. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 5)] - public Size size { + [System.Xml.Serialization.XmlElementAttribute("targetedMobileDeviceSubmodels", Order = 0)] + public Technology[] targetedMobileDeviceSubmodels { get { - return this.sizeField; + return this.targetedMobileDeviceSubmodelsField; } set { - this.sizeField = value; + this.targetedMobileDeviceSubmodelsField = value; } } - /// The click tags of the asset. This field is read-only. + /// Mobile device submodels that are being excluded by the LineItem. /// - [System.Xml.Serialization.XmlElementAttribute("clickTags", Order = 6)] - public ClickTag[] clickTags { + [System.Xml.Serialization.XmlElementAttribute("excludedMobileDeviceSubmodels", Order = 1)] + public Technology[] excludedMobileDeviceSubmodels { get { - return this.clickTagsField; + return this.excludedMobileDeviceSubmodelsField; } set { - this.clickTagsField = value; + this.excludedMobileDeviceSubmodelsField = value; } } + } - /// The display density of the image. This is the ratio between a dimension in - /// pixels of the image and the dimension in pixels that it should occupy in - /// device-independent pixels when displayed. This attribute is optional and - /// defaults to ONE_TO_ONE. + + /// Represents mobile devices that are being targeted or excluded by the LineItem. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class MobileDeviceTargeting { + private Technology[] targetedMobileDevicesField; + + private Technology[] excludedMobileDevicesField; + + /// Mobile devices that are being targeted by the LineItem. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 7)] - public ImageDensity imageDensity { + [System.Xml.Serialization.XmlElementAttribute("targetedMobileDevices", Order = 0)] + public Technology[] targetedMobileDevices { get { - return this.imageDensityField; + return this.targetedMobileDevicesField; } set { - this.imageDensityField = value; - this.imageDensitySpecified = true; + this.targetedMobileDevicesField = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool imageDensitySpecified { + /// Mobile devices that are being excluded by the LineItem. + /// + [System.Xml.Serialization.XmlElementAttribute("excludedMobileDevices", Order = 1)] + public Technology[] excludedMobileDevices { get { - return this.imageDensityFieldSpecified; + return this.excludedMobileDevicesField; } set { - this.imageDensityFieldSpecified = value; + this.excludedMobileDevicesField = value; } } } - /// Represents the dimensions of an AdUnit, LineItem or Creative.

For - /// interstitial size (out-of-page), native, ignored and fluid size, Size must be 1x1.

+ /// Represents mobile carriers that are being targeted or excluded by the LineItem. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class Size { - private int widthField; - - private bool widthFieldSpecified; - - private int heightField; - - private bool heightFieldSpecified; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class MobileCarrierTargeting { + private bool isTargetedField; - private bool isAspectRatioField; + private bool isTargetedFieldSpecified; - private bool isAspectRatioFieldSpecified; + private Technology[] mobileCarriersField; - /// The width of the AdUnit, LineItem or - /// Creative. + /// Indicates whether mobile carriers should be targeted or excluded. This attribute + /// is optional and defaults to true. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public int width { + public bool isTargeted { get { - return this.widthField; + return this.isTargetedField; } set { - this.widthField = value; - this.widthSpecified = true; + this.isTargetedField = value; + this.isTargetedSpecified = true; } } - /// true, if a value is specified for , - /// false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool widthSpecified { + public bool isTargetedSpecified { get { - return this.widthFieldSpecified; + return this.isTargetedFieldSpecified; } set { - this.widthFieldSpecified = value; + this.isTargetedFieldSpecified = value; } } - /// The height of the AdUnit, LineItem - /// or Creative. + /// Mobile carriers that are being targeted or excluded by the LineItem. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public int height { + [System.Xml.Serialization.XmlElementAttribute("mobileCarriers", Order = 1)] + public Technology[] mobileCarriers { get { - return this.heightField; + return this.mobileCarriersField; } set { - this.heightField = value; - this.heightSpecified = true; + this.mobileCarriersField = value; } } + } - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool heightSpecified { + + /// Represents device manufacturer that are being targeted or excluded by the LineItem. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class DeviceManufacturerTargeting { + private bool isTargetedField; + + private bool isTargetedFieldSpecified; + + private Technology[] deviceManufacturersField; + + /// Indicates whether device manufacturers should be targeted or excluded. This + /// attribute is optional and defaults to true. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public bool isTargeted { get { - return this.heightFieldSpecified; + return this.isTargetedField; } set { - this.heightFieldSpecified = value; + this.isTargetedField = value; + this.isTargetedSpecified = true; } } - /// Whether this size represents an aspect ratio. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public bool isAspectRatio { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool isTargetedSpecified { get { - return this.isAspectRatioField; + return this.isTargetedFieldSpecified; } set { - this.isAspectRatioField = value; - this.isAspectRatioSpecified = true; + this.isTargetedFieldSpecified = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool isAspectRatioSpecified { + /// Device manufacturers that are being targeted or excluded by the LineItem. + /// + [System.Xml.Serialization.XmlElementAttribute("deviceManufacturers", Order = 1)] + public Technology[] deviceManufacturers { get { - return this.isAspectRatioFieldSpecified; + return this.deviceManufacturersField; } set { - this.isAspectRatioFieldSpecified = value; + this.deviceManufacturersField = value; } } } - /// Click tags define click-through URLs for each exit on an HTML5 creative. An exit - /// is any area that can be clicked that directs the browser to a landing page. Each - /// click tag defines the click-through URL for a different exit. In Ad Manager, - /// tracking pixels are attached to the click tags if URLs are valid. + /// Represents device categories that are being targeted or excluded by the LineItem. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ClickTag { - private string nameField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class DeviceCategoryTargeting { + private Technology[] targetedDeviceCategoriesField; - private string urlField; + private Technology[] excludedDeviceCategoriesField; - /// Name of the click tag, follows the regex "clickTag\\d*" + /// Device categories that are being targeted by the LineItem. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public string name { + [System.Xml.Serialization.XmlElementAttribute("targetedDeviceCategories", Order = 0)] + public Technology[] targetedDeviceCategories { get { - return this.nameField; + return this.targetedDeviceCategoriesField; } set { - this.nameField = value; + this.targetedDeviceCategoriesField = value; } } - /// URL of the click tag. + /// Device categories that are being excluded by the LineItem. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public string url { + [System.Xml.Serialization.XmlElementAttribute("excludedDeviceCategories", Order = 1)] + public Technology[] excludedDeviceCategories { get { - return this.urlField; + return this.excludedDeviceCategoriesField; } set { - this.urlField = value; + this.excludedDeviceCategoriesField = value; } } } - /// Image densities. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum ImageDensity { - /// Indicates that there is a 1:1 ratio between the dimensions of the raw image and - /// the dimensions that it should be displayed at in device-independent pixels. - /// - ONE_TO_ONE = 0, - /// Indicates that there is a 3:2 ratio between the dimensions of the raw image and - /// the dimensions that it should be displayed at in device-independent pixels. - /// - THREE_TO_TWO = 1, - /// Indicates that there is a 2:1 ratio between the dimensions of the raw image and - /// the dimensions that it should be displayed at in device-independent pixels. - /// - TWO_TO_ONE = 2, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 3, - } - - - /// A CustomCreativeAsset is an association between a CustomCreative and an asset. Any assets that are - /// associated with a creative can be inserted into its HTML snippet. + /// Represents device capabilities that are being targeted or excluded by the LineItem. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class CustomCreativeAsset { - private string macroNameField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class DeviceCapabilityTargeting { + private Technology[] targetedDeviceCapabilitiesField; - private CreativeAsset assetField; + private Technology[] excludedDeviceCapabilitiesField; - /// The name by which the associated asset will be referenced. For example, if the - /// value is "foo", then the asset can be inserted into an HTML snippet using the - /// macro: "%%FILE:foo%%". + /// Device capabilities that are being targeted by the LineItem. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public string macroName { + [System.Xml.Serialization.XmlElementAttribute("targetedDeviceCapabilities", Order = 0)] + public Technology[] targetedDeviceCapabilities { get { - return this.macroNameField; + return this.targetedDeviceCapabilitiesField; } set { - this.macroNameField = value; + this.targetedDeviceCapabilitiesField = value; } } - /// The asset. This attribute is required. To view the asset, use CreativeAsset#assetUrl. + /// Device capabilities that are being excluded by the LineItem. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public CreativeAsset asset { + [System.Xml.Serialization.XmlElementAttribute("excludedDeviceCapabilities", Order = 1)] + public Technology[] excludedDeviceCapabilities { get { - return this.assetField; + return this.excludedDeviceCapabilitiesField; } set { - this.assetField = value; + this.excludedDeviceCapabilitiesField = value; } } } - /// Metadata for a video asset. + /// Represents browser languages that are being targeted or excluded by the LineItem. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class VideoMetadata { - private ScalableType scalableTypeField; - - private bool scalableTypeFieldSpecified; - - private int durationField; - - private bool durationFieldSpecified; - - private int bitRateField; - - private bool bitRateFieldSpecified; - - private int minimumBitRateField; - - private bool minimumBitRateFieldSpecified; - - private int maximumBitRateField; - - private bool maximumBitRateFieldSpecified; - - private Size sizeField; - - private MimeType mimeTypeField; - - private bool mimeTypeFieldSpecified; - - private VideoDeliveryType deliveryTypeField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class BrowserLanguageTargeting { + private bool isTargetedField; - private bool deliveryTypeFieldSpecified; + private bool isTargetedFieldSpecified; - private string[] codecsField; + private Technology[] browserLanguagesField; - /// The scalable type of the asset. This attribute is required. + /// Indicates whether browsers languages should be targeted or excluded. This + /// attribute is optional and defaults to true. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public ScalableType scalableType { + public bool isTargeted { get { - return this.scalableTypeField; + return this.isTargetedField; } set { - this.scalableTypeField = value; - this.scalableTypeSpecified = true; + this.isTargetedField = value; + this.isTargetedSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool scalableTypeSpecified { + public bool isTargetedSpecified { get { - return this.scalableTypeFieldSpecified; + return this.isTargetedFieldSpecified; } set { - this.scalableTypeFieldSpecified = value; + this.isTargetedFieldSpecified = value; } } - /// The duration of the asset in milliseconds. This attribute is required. + /// Browser languages that are being targeted or excluded by the LineItem. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public int duration { + [System.Xml.Serialization.XmlElementAttribute("browserLanguages", Order = 1)] + public Technology[] browserLanguages { get { - return this.durationField; + return this.browserLanguagesField; } set { - this.durationField = value; - this.durationSpecified = true; + this.browserLanguagesField = value; } } + } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool durationSpecified { + + /// Represents browsers that are being targeted or excluded by the LineItem. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class BrowserTargeting { + private bool isTargetedField; + + private bool isTargetedFieldSpecified; + + private Technology[] browsersField; + + /// Indicates whether browsers should be targeted or excluded. This attribute is + /// optional and defaults to true. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public bool isTargeted { get { - return this.durationFieldSpecified; + return this.isTargetedField; } set { - this.durationFieldSpecified = value; + this.isTargetedField = value; + this.isTargetedSpecified = true; } } - /// The bit rate of the asset in kbps. If the asset can play at a range of bit rates - /// (such as an Http Live Streaming video), then set the bit rate to zero and - /// populate the minimum and maximum bit rate instead. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public int bitRate { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool isTargetedSpecified { get { - return this.bitRateField; + return this.isTargetedFieldSpecified; } set { - this.bitRateField = value; - this.bitRateSpecified = true; + this.isTargetedFieldSpecified = value; } } - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool bitRateSpecified { + /// Browsers that are being targeted or excluded by the LineItem. + /// + [System.Xml.Serialization.XmlElementAttribute("browsers", Order = 1)] + public Technology[] browsers { get { - return this.bitRateFieldSpecified; + return this.browsersField; } set { - this.bitRateFieldSpecified = value; + this.browsersField = value; } } + } - /// The minimum bitrate of the video in kbps. Only set this if the asset can play at - /// a range of bit rates. + + /// Represents bandwidth groups that are being targeted or excluded by the LineItem. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class BandwidthGroupTargeting { + private bool isTargetedField; + + private bool isTargetedFieldSpecified; + + private Technology[] bandwidthGroupsField; + + /// Indicates whether bandwidth groups should be targeted or excluded. This + /// attribute is optional and defaults to true. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public int minimumBitRate { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public bool isTargeted { get { - return this.minimumBitRateField; + return this.isTargetedField; } set { - this.minimumBitRateField = value; - this.minimumBitRateSpecified = true; + this.isTargetedField = value; + this.isTargetedSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool minimumBitRateSpecified { + public bool isTargetedSpecified { get { - return this.minimumBitRateFieldSpecified; + return this.isTargetedFieldSpecified; } set { - this.minimumBitRateFieldSpecified = value; + this.isTargetedFieldSpecified = value; } } - /// The maximum bitrate of the video in kbps. Only set this if the asset can play at - /// a range of bit rates. + /// The bandwidth groups that are being targeted or excluded by the LineItem. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public int maximumBitRate { + [System.Xml.Serialization.XmlElementAttribute("bandwidthGroups", Order = 1)] + public Technology[] bandwidthGroups { get { - return this.maximumBitRateField; + return this.bandwidthGroupsField; } set { - this.maximumBitRateField = value; - this.maximumBitRateSpecified = true; + this.bandwidthGroupsField = value; } } + } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool maximumBitRateSpecified { + + /// Provides LineItem objects the ability to target or + /// exclude technologies. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class TechnologyTargeting { + private BandwidthGroupTargeting bandwidthGroupTargetingField; + + private BrowserTargeting browserTargetingField; + + private BrowserLanguageTargeting browserLanguageTargetingField; + + private DeviceCapabilityTargeting deviceCapabilityTargetingField; + + private DeviceCategoryTargeting deviceCategoryTargetingField; + + private DeviceManufacturerTargeting deviceManufacturerTargetingField; + + private MobileCarrierTargeting mobileCarrierTargetingField; + + private MobileDeviceTargeting mobileDeviceTargetingField; + + private MobileDeviceSubmodelTargeting mobileDeviceSubmodelTargetingField; + + private OperatingSystemTargeting operatingSystemTargetingField; + + private OperatingSystemVersionTargeting operatingSystemVersionTargetingField; + + /// The bandwidth groups being targeted by the LineItem. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public BandwidthGroupTargeting bandwidthGroupTargeting { get { - return this.maximumBitRateFieldSpecified; + return this.bandwidthGroupTargetingField; } set { - this.maximumBitRateFieldSpecified = value; + this.bandwidthGroupTargetingField = value; } } - /// The size (width and height) of the asset. This attribute is required. + /// The browsers being targeted by the LineItem. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 5)] - public Size size { + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public BrowserTargeting browserTargeting { get { - return this.sizeField; + return this.browserTargetingField; } set { - this.sizeField = value; + this.browserTargetingField = value; } } - /// The mime type of the asset. This attribute is required. + /// The languages of browsers being targeted by the LineItem. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 6)] - public MimeType mimeType { + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public BrowserLanguageTargeting browserLanguageTargeting { get { - return this.mimeTypeField; + return this.browserLanguageTargetingField; } set { - this.mimeTypeField = value; - this.mimeTypeSpecified = true; + this.browserLanguageTargetingField = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool mimeTypeSpecified { + /// The device capabilities being targeted by the LineItem. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 3)] + public DeviceCapabilityTargeting deviceCapabilityTargeting { get { - return this.mimeTypeFieldSpecified; + return this.deviceCapabilityTargetingField; } set { - this.mimeTypeFieldSpecified = value; + this.deviceCapabilityTargetingField = value; } } - /// The delivery type of the asset. This attribute is required. + /// The device categories being targeted by the LineItem. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 7)] - public VideoDeliveryType deliveryType { + [System.Xml.Serialization.XmlElementAttribute(Order = 4)] + public DeviceCategoryTargeting deviceCategoryTargeting { get { - return this.deliveryTypeField; + return this.deviceCategoryTargetingField; } set { - this.deliveryTypeField = value; - this.deliveryTypeSpecified = true; + this.deviceCategoryTargetingField = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool deliveryTypeSpecified { + /// The device manufacturers being targeted by the LineItem. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 5)] + public DeviceManufacturerTargeting deviceManufacturerTargeting { get { - return this.deliveryTypeFieldSpecified; + return this.deviceManufacturerTargetingField; } set { - this.deliveryTypeFieldSpecified = value; + this.deviceManufacturerTargetingField = value; } } - /// The codecs of the asset. This attribute is optional and defaults to an empty - /// list. + /// The mobile carriers being targeted by the LineItem. /// - [System.Xml.Serialization.XmlElementAttribute("codecs", Order = 8)] - public string[] codecs { + [System.Xml.Serialization.XmlElementAttribute(Order = 6)] + public MobileCarrierTargeting mobileCarrierTargeting { get { - return this.codecsField; + return this.mobileCarrierTargetingField; } set { - this.codecsField = value; + this.mobileCarrierTargetingField = value; } } - } - - - /// The different ways a video/flash can scale. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum ScalableType { - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 0, - /// The creative should not be scaled. - /// - NOT_SCALABLE = 1, - /// The creative can be scaled and its aspect-ratio must be maintained. - /// - RATIO_SCALABLE = 2, - /// The creative can be scaled and its aspect-ratio can be distorted. - /// - STRETCH_SCALABLE = 3, - } - - /// Enum of supported mime types - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum MimeType { - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 0, - /// application/x-asp - /// - ASP = 1, - /// audio/aiff - /// - AUDIO_AIFF = 2, - /// audio/basic - /// - AUDIO_BASIC = 3, - /// audio/flac - /// - AUDIO_FLAC = 4, - /// audio/mid - /// - AUDIO_MID = 5, - /// audio/mpeg - /// - AUDIO_MP3 = 6, - /// audio/mp4 - /// - AUDIO_MP4 = 7, - /// audio/x-mpegurl - /// - AUDIO_MPEG_URL = 8, - /// audio/x-ms-wma - /// - AUDIO_MS_WMA = 9, - /// audio/ogg - /// - AUDIO_OGG = 10, - /// audio/x-pn-realaudio-plugin - /// - AUDIO_REAL_AUDIO_PLUGIN = 11, - /// audio/x-wav - /// - AUDIO_WAV = 12, - /// application/binary - /// - BINARY = 13, - /// application/dash+xml - /// - DASH = 62, - /// application/x-director - /// - DIRECTOR = 14, - /// application/x-shockwave-flash - /// - FLASH = 15, - /// application/graphicconverter - /// - GRAPHIC_CONVERTER = 16, - /// application/x-javascript - /// - JAVASCRIPT = 17, - /// application/json - /// - JSON = 18, - /// image/x-win-bitmap - /// - IMAGE_BITMAP = 19, - /// image/bmp - /// - IMAGE_BMP = 20, - /// image/gif - /// - IMAGE_GIF = 21, - /// image/jpeg - /// - IMAGE_JPEG = 22, - /// image/photoshop - /// - IMAGE_PHOTOSHOP = 23, - /// image/png - /// - IMAGE_PNG = 24, - /// image/tiff - /// - IMAGE_TIFF = 25, - /// image/vnd.wap.wbmp - /// - IMAGE_WBMP = 26, - /// application/x-mpegURL - /// - M3U8 = 27, - /// application/mac-binhex40 - /// - MAC_BIN_HEX_40 = 28, - /// application/vnd.ms-excel - /// - MS_EXCEL = 29, - /// application/ms-powerpoint - /// - MS_POWERPOINT = 30, - /// application/msword - /// - MS_WORD = 31, - /// application/octet-stream - /// - OCTET_STREAM = 32, - /// application/pdf - /// - PDF = 33, - /// application/postscript - /// - POSTSCRIPT = 34, - /// application/vnd.rn-realmedia - /// - RN_REAL_MEDIA = 35, - /// message/rfc822 - /// - RFC_822 = 36, - /// application/rtf - /// - RTF = 37, - /// text/calendar - /// - TEXT_CALENDAR = 38, - /// text/css - /// - TEXT_CSS = 39, - /// text/csv - /// - TEXT_CSV = 40, - /// text/html - /// - TEXT_HTML = 41, - /// text/java - /// - TEXT_JAVA = 42, - /// text/plain - /// - TEXT_PLAIN = 43, - /// video/3gpp - /// - VIDEO_3GPP = 44, - /// video/3gpp2 - /// - VIDEO_3GPP2 = 45, - /// video/avi - /// - VIDEO_AVI = 46, - /// video/x-flv - /// - VIDEO_FLV = 47, - /// video/mp4 - /// - VIDEO_MP4 = 48, - /// video/mp4v-es - /// - VIDEO_MP4V_ES = 49, - /// video/mpeg - /// - VIDEO_MPEG = 50, - /// video/x-ms-asf - /// - VIDEO_MS_ASF = 51, - /// video/x-ms-wm - /// - VIDEO_MS_WM = 52, - /// video/x-ms-wmv - /// - VIDEO_MS_WMV = 53, - /// video/x-ms-wvx - /// - VIDEO_MS_WVX = 54, - /// video/ogg - /// - VIDEO_OGG = 55, - /// video/x-quicktime - /// - VIDEO_QUICKTIME = 56, - /// video/webm - /// - VIDEO_WEBM = 57, - /// application/xaml+xml - /// - XAML = 58, - /// application/xhtml+xml - /// - XHTML = 59, - /// application/xml - /// - XML = 60, - /// application/zip + /// The mobile devices being targeted by the LineItem. /// - ZIP = 61, - } - + [System.Xml.Serialization.XmlElementAttribute(Order = 7)] + public MobileDeviceTargeting mobileDeviceTargeting { + get { + return this.mobileDeviceTargetingField; + } + set { + this.mobileDeviceTargetingField = value; + } + } - /// The video delivery type. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum VideoDeliveryType { - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 0, - /// Video will be served through a progressive download. - /// - PROGRESSIVE = 1, - /// Video will be served via a streaming protocol like HLS or DASH. + /// The mobile device submodels being targeted by the LineItem. /// - STREAMING = 2, - } - - - /// Base asset properties. - /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(RedirectAsset))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(VideoRedirectAsset))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public abstract partial class Asset { - } - - - /// An externally hosted asset. - /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(VideoRedirectAsset))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public abstract partial class RedirectAsset : Asset { - private string redirectUrlField; + [System.Xml.Serialization.XmlElementAttribute(Order = 8)] + public MobileDeviceSubmodelTargeting mobileDeviceSubmodelTargeting { + get { + return this.mobileDeviceSubmodelTargetingField; + } + set { + this.mobileDeviceSubmodelTargetingField = value; + } + } - /// The URL where the asset is hosted. + /// The operating systems being targeted by the LineItem. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public string redirectUrl { + [System.Xml.Serialization.XmlElementAttribute(Order = 9)] + public OperatingSystemTargeting operatingSystemTargeting { get { - return this.redirectUrlField; + return this.operatingSystemTargetingField; } set { - this.redirectUrlField = value; + this.operatingSystemTargetingField = value; } } - } - - - /// An externally-hosted video asset. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class VideoRedirectAsset : RedirectAsset { - private VideoMetadata metadataField; - /// Metadata related to the asset. This attribute is required. + /// The operating system versions being targeted by the LineItem. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public VideoMetadata metadata { + [System.Xml.Serialization.XmlElementAttribute(Order = 10)] + public OperatingSystemVersionTargeting operatingSystemVersionTargeting { get { - return this.metadataField; + return this.operatingSystemVersionTargetingField; } set { - this.metadataField = value; + this.operatingSystemVersionTargetingField = value; } } } - /// This represents an entry in a map with a key of type ConversionEvent and value - /// of type TrackingUrls. + /// Represents a date. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ConversionEvent_TrackingUrlsMapEntry { - private ConversionEvent keyField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class Date { + private int yearField; - private bool keyFieldSpecified; + private bool yearFieldSpecified; - private string[] valueField; + private int monthField; + + private bool monthFieldSpecified; + private int dayField; + + private bool dayFieldSpecified; + + /// Year (e.g., 2009) + /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public ConversionEvent key { + public int year { get { - return this.keyField; + return this.yearField; } set { - this.keyField = value; - this.keySpecified = true; + this.yearField = value; + this.yearSpecified = true; } } - /// true, if a value is specified for , + /// true, if a value is specified for , /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool keySpecified { + public bool yearSpecified { get { - return this.keyFieldSpecified; + return this.yearFieldSpecified; } set { - this.keyFieldSpecified = value; + this.yearFieldSpecified = value; } } - [System.Xml.Serialization.XmlArrayAttribute(Order = 1)] - [System.Xml.Serialization.XmlArrayItemAttribute("urls", IsNullable = false)] - public string[] value { + /// Month (1..12) + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public int month { get { - return this.valueField; + return this.monthField; } set { - this.valueField = value; + this.monthField = value; + this.monthSpecified = true; } } - } + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool monthSpecified { + get { + return this.monthFieldSpecified; + } + set { + this.monthFieldSpecified = value; + } + } - /// All possible tracking event types. Not all events are supported by every kind of - /// creative. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum ConversionEvent { - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 0, - /// Corresponds to the creativeView tracking event. - /// - CREATIVE_VIEW = 1, - /// Corresponds to the start tracking event. - /// - START = 2, - /// An event that is fired when a video skip button is shown, usually after 5 - /// seconds of viewing the video. This event does not correspond to any VAST element - /// and is implemented using an extension. - /// - SKIP_SHOWN = 3, - /// Corresponds to the firstQuartile tracking event. - /// - FIRST_QUARTILE = 4, - /// Corresponds to the midpoint tracking event. - /// - MIDPOINT = 5, - /// Corresponds to the thirdQuartile tracking event. - /// - THIRD_QUARTILE = 6, - /// An event that is fired after 30 seconds of viewing the video or when the video - /// finished (if the video duration is less than 30 seconds). This event does not - /// correspond to any VAST element and is implemented using an extension. - /// - ENGAGED_VIEW = 7, - /// Corresponds to the complete tracking event. - /// - COMPLETE = 8, - /// Corresponds to the mute tracking event. - /// - MUTE = 9, - /// Corresponds to the unmute tracking event. - /// - UNMUTE = 10, - /// Corresponds to the pause tracking event. - /// - PAUSE = 11, - /// Corresponds to the rewind tracking event. - /// - REWIND = 12, - /// Corresponds to the resume tracking event. - /// - RESUME = 13, - /// An event that is fired when a video was skipped. This event does not correspond - /// to any VAST element and is implemented using an extension. - /// - SKIPPED = 14, - /// Corresponds to the fullscreen tracking event. - /// - FULLSCREEN = 15, - /// Corresponds to the expand tracking event. - /// - EXPAND = 16, - /// Corresponds to the collapse tracking event. - /// - COLLAPSE = 17, - /// Corresponds to the acceptInvitation tracking event. - /// - ACCEPT_INVITATION = 18, - /// Corresponds to the close tracking event. - /// - CLOSE = 19, - /// Corresponds to the Linear.VideoClicks.ClickTracking node. - /// - CLICK_TRACKING = 20, - /// Corresponds to the InLine.Survey node. - /// - SURVEY = 21, - /// Corresponds to the Linear.VideoClicks.CustomClick node. - /// - CUSTOM_CLICK = 22, - /// Corresponds to the measurableImpression tracking event. - /// - MEASURABLE_IMPRESSION = 23, - /// Corresponds to the viewableImpression tracking event. - /// - VIEWABLE_IMPRESSION = 24, - /// Corresponds to the abandon tracking event. - /// - VIDEO_ABANDON = 25, - /// Corresponds to the tracking event. + /// Day (1..31) /// - FULLY_VIEWABLE_AUDIBLE_HALF_DURATION_IMPRESSION = 26, + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public int day { + get { + return this.dayField; + } + set { + this.dayField = value; + this.daySpecified = true; + } + } + + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool daySpecified { + get { + return this.dayFieldSpecified; + } + set { + this.dayFieldSpecified = value; + } + } } - /// Represents a child asset in RichMediaStudioCreative. + /// Represents a date combined with the time of day. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class RichMediaStudioChildAssetProperty { - private string nameField; - - private RichMediaStudioChildAssetPropertyType typeField; - - private bool typeFieldSpecified; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class DateTime { + private Date dateField; - private long totalFileSizeField; + private int hourField; - private bool totalFileSizeFieldSpecified; + private bool hourFieldSpecified; - private int widthField; + private int minuteField; - private bool widthFieldSpecified; + private bool minuteFieldSpecified; - private int heightField; + private int secondField; - private bool heightFieldSpecified; + private bool secondFieldSpecified; - private string urlField; + private string timeZoneIdField; - /// The name of the asset as known by Rich Media Studio. This attribute is readonly. - /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public string name { + public Date date { get { - return this.nameField; + return this.dateField; } set { - this.nameField = value; + this.dateField = value; } } - /// Required file type of the asset. This attribute is readonly. - /// [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public RichMediaStudioChildAssetPropertyType type { + public int hour { get { - return this.typeField; + return this.hourField; } set { - this.typeField = value; - this.typeSpecified = true; + this.hourField = value; + this.hourSpecified = true; } } - /// true, if a value is specified for , + /// true, if a value is specified for , /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool typeSpecified { + public bool hourSpecified { get { - return this.typeFieldSpecified; + return this.hourFieldSpecified; } set { - this.typeFieldSpecified = value; + this.hourFieldSpecified = value; } } - /// The total size of the asset in bytes. This attribute is readonly. - /// [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public long totalFileSize { + public int minute { get { - return this.totalFileSizeField; + return this.minuteField; } set { - this.totalFileSizeField = value; - this.totalFileSizeSpecified = true; + this.minuteField = value; + this.minuteSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , + /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool totalFileSizeSpecified { + public bool minuteSpecified { get { - return this.totalFileSizeFieldSpecified; + return this.minuteFieldSpecified; } set { - this.totalFileSizeFieldSpecified = value; + this.minuteFieldSpecified = value; } } - /// Width of the widget in pixels. This attribute is readonly. - /// [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public int width { + public int second { get { - return this.widthField; + return this.secondField; } set { - this.widthField = value; - this.widthSpecified = true; + this.secondField = value; + this.secondSpecified = true; } } - /// true, if a value is specified for , + /// true, if a value is specified for , /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool widthSpecified { + public bool secondSpecified { get { - return this.widthFieldSpecified; + return this.secondFieldSpecified; } set { - this.widthFieldSpecified = value; + this.secondFieldSpecified = value; } } - /// Height of the widget in pixels. This attribute is readonly. - /// [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public int height { + public string timeZoneId { get { - return this.heightField; + return this.timeZoneIdField; } set { - this.heightField = value; - this.heightSpecified = true; + this.timeZoneIdField = value; } } + } - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool heightSpecified { + + /// Represents a range of dates (combined with time of day) that has an upper and/or + /// lower bound. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class DateTimeRange { + private DateTime startDateTimeField; + + private DateTime endDateTimeField; + + /// The start date time of this range. This field is optional and if it is not set + /// then there is no lower bound on the date time range. If this field is not set + /// then endDateTime must be specified. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public DateTime startDateTime { get { - return this.heightFieldSpecified; + return this.startDateTimeField; } set { - this.heightFieldSpecified = value; + this.startDateTimeField = value; } } - /// The URL of the asset. This attribute is readonly. + /// The end date time of this range. This field is optional and if it is not set + /// then there is no upper bound on the date time range. If this field is not set + /// then startDateTime must be specified. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 5)] - public string url { + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public DateTime endDateTime { get { - return this.urlField; + return this.endDateTimeField; } set { - this.urlField = value; + this.endDateTimeField = value; } } } - /// Type of RichMediaStudioChildAssetProperty - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "RichMediaStudioChildAssetProperty.Type", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum RichMediaStudioChildAssetPropertyType { - /// SWF files - /// - FLASH = 0, - /// FLVS and any other video file types - /// - VIDEO = 1, - /// Image files - /// - IMAGE = 2, - /// The rest of the supported file types .txt, .xml, etc. - /// - DATA = 3, - } - - - /// Represents a set of declarations about what (if any) third party companies are - /// associated with a given creative.

This can be set at the network level, as a - /// default for all creatives, or overridden for a particular creative.

+ /// Represents a specific time in a day. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ThirdPartyDataDeclaration { - private DeclarationType declarationTypeField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class TimeOfDay { + private int hourField; - private bool declarationTypeFieldSpecified; + private bool hourFieldSpecified; - private long[] thirdPartyCompanyIdsField; + private MinuteOfHour minuteField; + + private bool minuteFieldSpecified; + /// Hour in 24 hour time (0..24). This field must be between 0 and 24, inclusive. + /// This field is required. + /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public DeclarationType declarationType { + public int hour { get { - return this.declarationTypeField; + return this.hourField; } set { - this.declarationTypeField = value; - this.declarationTypeSpecified = true; + this.hourField = value; + this.hourSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , + /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool declarationTypeSpecified { + public bool hourSpecified { get { - return this.declarationTypeFieldSpecified; + return this.hourFieldSpecified; } set { - this.declarationTypeFieldSpecified = value; + this.hourFieldSpecified = value; } } - [System.Xml.Serialization.XmlElementAttribute("thirdPartyCompanyIds", Order = 1)] - public long[] thirdPartyCompanyIds { + /// Minutes in an hour. Currently, only 0, 15, 30, and 45 are supported. This field + /// is required. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public MinuteOfHour minute { get { - return this.thirdPartyCompanyIdsField; + return this.minuteField; } set { - this.thirdPartyCompanyIdsField = value; + this.minuteField = value; + this.minuteSpecified = true; + } + } + + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool minuteSpecified { + get { + return this.minuteFieldSpecified; + } + set { + this.minuteFieldSpecified = value; } } } - /// The declaration about third party data usage on the associated entity. + /// Minutes in an hour. Currently, only 0, 15, 30, and 45 are supported. This field + /// is required. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum DeclarationType { - /// There are no companies associated. Functionally the same as DECLARED, combined - /// with an empty company list. + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum MinuteOfHour { + /// Zero minutes past hour. /// - NONE = 0, - /// There is a set of RichMediaAdsCompanys - /// associated with this entity. + ZERO = 0, + /// Fifteen minutes past hour. /// - DECLARED = 1, - /// The value returned if the actual value is not exposed by the requested API - /// version. + FIFTEEN = 1, + /// Thirty minutes past hour. /// - UNKNOWN = 2, + THIRTY = 2, + /// Forty-five minutes past hour. + /// + FORTY_FIVE = 3, } - /// The value of a CustomField for a particular entity. + /// DayPart represents a time-period within a day of the week which is + /// targeted by a LineItem. /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(DropDownCustomFieldValue))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(CustomFieldValue))] [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public abstract partial class BaseCustomFieldValue { - private long customFieldIdField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class DayPart { + private DayOfWeek dayOfWeekField; - private bool customFieldIdFieldSpecified; + private bool dayOfWeekFieldSpecified; - /// Id of the CustomField to which this value belongs. This attribute - /// is required. + private TimeOfDay startTimeField; + + private TimeOfDay endTimeField; + + /// Day of the week the target applies to. This field is required. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public long customFieldId { + public DayOfWeek dayOfWeek { get { - return this.customFieldIdField; + return this.dayOfWeekField; } set { - this.customFieldIdField = value; - this.customFieldIdSpecified = true; + this.dayOfWeekField = value; + this.dayOfWeekSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool customFieldIdSpecified { + public bool dayOfWeekSpecified { get { - return this.customFieldIdFieldSpecified; + return this.dayOfWeekFieldSpecified; } set { - this.customFieldIdFieldSpecified = value; + this.dayOfWeekFieldSpecified = value; } } - } - - - /// A CustomFieldValue for a CustomField that has a CustomField#dataType of CustomFieldDataType#DROP_DOWN - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class DropDownCustomFieldValue : BaseCustomFieldValue { - private long customFieldOptionIdField; - - private bool customFieldOptionIdFieldSpecified; - /// The ID of the CustomFieldOption for this value. + /// Represents the start time of the targeted period (inclusive). /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public long customFieldOptionId { + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public TimeOfDay startTime { get { - return this.customFieldOptionIdField; + return this.startTimeField; } set { - this.customFieldOptionIdField = value; - this.customFieldOptionIdSpecified = true; + this.startTimeField = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool customFieldOptionIdSpecified { + /// Represents the end time of the targeted period (exclusive). + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public TimeOfDay endTime { get { - return this.customFieldOptionIdFieldSpecified; + return this.endTimeField; } set { - this.customFieldOptionIdFieldSpecified = value; + this.endTimeField = value; } } } - /// The value of a CustomField that does not have a CustomField#dataType of CustomFieldDataType#DROP_DOWN. + /// Days of the week. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum DayOfWeek { + /// The day of week named Monday. + /// + MONDAY = 0, + /// The day of week named Tuesday. + /// + TUESDAY = 1, + /// The day of week named Wednesday. + /// + WEDNESDAY = 2, + /// The day of week named Thursday. + /// + THURSDAY = 3, + /// The day of week named Friday. + /// + FRIDAY = 4, + /// The day of week named Saturday. + /// + SATURDAY = 5, + /// The day of week named Sunday. + /// + SUNDAY = 6, + } + + + /// Modify the delivery times of line items for particular days of the week. By + /// default, line items are served at all days and times. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class CustomFieldValue : BaseCustomFieldValue { - private Value valueField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class DayPartTargeting { + private DayPart[] dayPartsField; - /// The value for this field. The appropriate type of Value is - /// determined by the CustomField#dataType of the that - /// this conforms to.
CustomFieldDataType Value type
STRING TextValue
NUMBER NumberValue
TOGGLE BooleanValue
+ private DeliveryTimeZone timeZoneField; + + private bool timeZoneFieldSpecified; + + /// Specifies days of the week and times at which a LineItem will be + /// delivered.

If targeting all days and times, this value will be ignored.

///
- [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public Value value { + [System.Xml.Serialization.XmlElementAttribute("dayParts", Order = 0)] + public DayPart[] dayParts { get { - return this.valueField; + return this.dayPartsField; } set { - this.valueField = value; + this.dayPartsField = value; + } + } + + /// Specifies the time zone to be used for delivering LineItem objects. This attribute is optional and defaults to + /// DeliveryTimeZone#BROWSER.

Setting this + /// has no effect if targeting all days and times.

+ ///
+ [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public DeliveryTimeZone timeZone { + get { + return this.timeZoneField; + } + set { + this.timeZoneField = value; + this.timeZoneSpecified = true; + } + } + + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool timeZoneSpecified { + get { + return this.timeZoneFieldSpecified; + } + set { + this.timeZoneFieldSpecified = value; } } } - /// Represents a Label that can be applied to an entity. To - /// negate an inherited label, create an with labelId as - /// the inherited label's ID and isNegated set to true. + /// Represents the time zone to be used for DayPartTargeting. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum DeliveryTimeZone { + /// Use the time zone of the publisher. + /// + PUBLISHER = 0, + /// Use the time zone of the browser. + /// + BROWSER = 1, + } + + + /// Represents targeted or excluded ad units. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class AppliedLabel { - private long labelIdField; - - private bool labelIdFieldSpecified; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class AdUnitTargeting { + private string adUnitIdField; - private bool isNegatedField; + private bool includeDescendantsField; - private bool isNegatedFieldSpecified; + private bool includeDescendantsFieldSpecified; - /// The ID of a created Label. + /// Included or excluded ad unit id. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public long labelId { - get { - return this.labelIdField; - } - set { - this.labelIdField = value; - this.labelIdSpecified = true; - } - } - - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool labelIdSpecified { + public string adUnitId { get { - return this.labelIdFieldSpecified; + return this.adUnitIdField; } set { - this.labelIdFieldSpecified = value; + this.adUnitIdField = value; } } - /// isNegated should be set to true to negate the effects - /// of labelId. + /// Whether or not all descendants are included (or excluded) as part of including + /// (or excluding) this ad unit. By default, the value is true which + /// means targeting this ad unit will target all of its descendants. /// [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public bool isNegated { + public bool includeDescendants { get { - return this.isNegatedField; + return this.includeDescendantsField; } set { - this.isNegatedField = value; - this.isNegatedSpecified = true; + this.includeDescendantsField = value; + this.includeDescendantsSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool isNegatedSpecified { + public bool includeDescendantsSpecified { get { - return this.isNegatedFieldSpecified; + return this.includeDescendantsFieldSpecified; } set { - this.isNegatedFieldSpecified = value; + this.includeDescendantsFieldSpecified = value; } } } - /// A Creative represents the media for the ad being served.

Read - /// more about creatives on the Ad Manager Help - /// Center.

+ /// A collection of targeted and excluded ad units and placements. /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(VastRedirectCreative))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(UnsupportedCreative))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ThirdPartyCreative))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(TemplateCreative))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ProgrammaticCreative))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(LegacyDfpCreative))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(InternalRedirectCreative))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(Html5Creative))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(HasDestinationUrlCreative))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(CustomCreative))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(BaseVideoCreative))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(VideoRedirectCreative))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(VideoCreative))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(SetTopBoxCreative))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(BaseImageRedirectCreative))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ImageRedirectOverlayCreative))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ImageRedirectCreative))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(BaseImageCreative))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ImageOverlayCreative))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ImageCreative))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(BaseAudioCreative))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(AudioRedirectCreative))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(AudioCreative))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(AspectRatioImageCreative))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ClickTrackingCreative))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(BaseRichMediaStudioCreative))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(RichMediaStudioCreative))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(BaseDynamicAllocationCreative))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(HasHtmlSnippetDynamicAllocationCreative))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(AdSenseCreative))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(AdExchangeCreative))] [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public abstract partial class Creative { - private long advertiserIdField; - - private bool advertiserIdFieldSpecified; - - private long idField; - - private bool idFieldSpecified; - - private string nameField; - - private Size sizeField; - - private string previewUrlField; - - private CreativePolicyViolation[] policyLabelsField; - - private AppliedLabel[] appliedLabelsField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class InventoryTargeting { + private AdUnitTargeting[] targetedAdUnitsField; - private DateTime lastModifiedDateTimeField; + private AdUnitTargeting[] excludedAdUnitsField; - private BaseCustomFieldValue[] customFieldValuesField; + private long[] targetedPlacementIdsField; - private ThirdPartyDataDeclaration thirdPartyDataDeclarationField; + /// A list of targeted AdUnitTargeting. + /// + [System.Xml.Serialization.XmlElementAttribute("targetedAdUnits", Order = 0)] + public AdUnitTargeting[] targetedAdUnits { + get { + return this.targetedAdUnitsField; + } + set { + this.targetedAdUnitsField = value; + } + } - /// The ID of the advertiser that owns the creative. This attribute is required. + /// A list of excluded AdUnitTargeting. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public long advertiserId { + [System.Xml.Serialization.XmlElementAttribute("excludedAdUnits", Order = 1)] + public AdUnitTargeting[] excludedAdUnits { get { - return this.advertiserIdField; + return this.excludedAdUnitsField; } set { - this.advertiserIdField = value; - this.advertiserIdSpecified = true; + this.excludedAdUnitsField = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool advertiserIdSpecified { + /// A list of targeted Placement ids. + /// + [System.Xml.Serialization.XmlElementAttribute("targetedPlacementIds", Order = 2)] + public long[] targetedPlacementIds { get { - return this.advertiserIdFieldSpecified; + return this.targetedPlacementIdsField; } set { - this.advertiserIdFieldSpecified = value; + this.targetedPlacementIdsField = value; } } + } - /// Uniquely identifies the Creative. This value is read-only and is - /// assigned by Google when the creative is created. This attribute is required for - /// updates. + + /// A Location represents a geographical entity that can be + /// targeted. If a location type is not available because of the API version you are + /// using, the location will be represented as just the base class, otherwise it + /// will be sub-classed correctly. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class Location { + private long idField; + + private bool idFieldSpecified; + + private string typeField; + + private int canonicalParentIdField; + + private bool canonicalParentIdFieldSpecified; + + private string displayNameField; + + /// Uniquely identifies each Location. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] public long id { get { return this.idField; @@ -4538,4538 +3774,5472 @@ public bool idSpecified { } } - /// The name of the creative. This attribute is required and has a maximum length of - /// 255 characters. + /// The location type for this geographical entity (ex. "COUNTRY", "CITY", "STATE", + /// "COUNTY", etc.) /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public string name { + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public string type { get { - return this.nameField; + return this.typeField; } set { - this.nameField = value; + this.typeField = value; } } - /// The Size of the creative. This attribute is required for - /// creation and then is read-only. + /// The nearest location parent's ID for this geographical entity. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public Size size { + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public int canonicalParentId { get { - return this.sizeField; + return this.canonicalParentIdField; } set { - this.sizeField = value; + this.canonicalParentIdField = value; + this.canonicalParentIdSpecified = true; } } - /// The URL of the creative for previewing the media. This attribute is read-only - /// and is assigned by Google when a creative is created. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public string previewUrl { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool canonicalParentIdSpecified { get { - return this.previewUrlField; + return this.canonicalParentIdFieldSpecified; } set { - this.previewUrlField = value; + this.canonicalParentIdFieldSpecified = value; } } - /// Set of policy labels detected for this creative. This attribute is read-only. + /// The localized name of the geographical entity. /// - [System.Xml.Serialization.XmlElementAttribute("policyLabels", Order = 5)] - public CreativePolicyViolation[] policyLabels { + [System.Xml.Serialization.XmlElementAttribute(Order = 3)] + public string displayName { get { - return this.policyLabelsField; + return this.displayNameField; } set { - this.policyLabelsField = value; + this.displayNameField = value; } } + } - /// The set of labels applied to this creative. - /// - [System.Xml.Serialization.XmlElementAttribute("appliedLabels", Order = 6)] - public AppliedLabel[] appliedLabels { - get { - return this.appliedLabelsField; - } - set { - this.appliedLabelsField = value; - } - } - /// The date and time this creative was last modified. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 7)] - public DateTime lastModifiedDateTime { - get { - return this.lastModifiedDateTimeField; - } - set { - this.lastModifiedDateTimeField = value; - } - } + /// Provides line items the ability to target geographical locations. By default, + /// line items target all countries and their subdivisions. With geographical + /// targeting, you can target line items to specific countries, regions, metro + /// areas, and cities. You can also exclude the same.

The following rules apply + /// for geographical targeting:

  • You cannot target and exclude the same + /// location.
  • You cannot target a child whose parent has been excluded. For + /// example, if the state of Illinois has been excluded, then you cannot target + /// Chicago.
  • You must not target a location if you are also targeting its + /// parent. For example, if you are targeting New York City, you must not have the + /// state of New York as one of the targeted locations.
  • You cannot + /// explicitly define inclusions or exclusions that are already implicit. For + /// example, if you explicitly include California, you implicitly exclude all other + /// states. You therefore cannot explicitly exclude Florida, because it is already + /// implicitly excluded. Conversely if you explicitly exclude Florida, you cannot + /// explicitly include California.
+ ///
+ [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class GeoTargeting { + private Location[] targetedLocationsField; - /// The values of the custom fields associated with this creative. + private Location[] excludedLocationsField; + + /// The geographical locations being targeted by the LineItem. /// - [System.Xml.Serialization.XmlElementAttribute("customFieldValues", Order = 8)] - public BaseCustomFieldValue[] customFieldValues { + [System.Xml.Serialization.XmlElementAttribute("targetedLocations", Order = 0)] + public Location[] targetedLocations { get { - return this.customFieldValuesField; + return this.targetedLocationsField; } set { - this.customFieldValuesField = value; + this.targetedLocationsField = value; } } - /// The third party companies associated with this creative.

This is distinct - /// from any associated companies that Google may detect programmatically.

+ /// The geographical locations being excluded by the LineItem. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 9)] - public ThirdPartyDataDeclaration thirdPartyDataDeclaration { + [System.Xml.Serialization.XmlElementAttribute("excludedLocations", Order = 1)] + public Location[] excludedLocations { get { - return this.thirdPartyDataDeclarationField; + return this.excludedLocationsField; } set { - this.thirdPartyDataDeclarationField = value; + this.excludedLocationsField = value; } } } - /// Represents the different types of policy violations that may be detected on a - /// given creative.

For more information about the various types of policy - /// violations, see here.

- ///
- [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum CreativePolicyViolation { - /// Malware was found in the creative.

For more information see here.

- ///
- MALWARE_IN_CREATIVE = 0, - /// Malware was found in the landing page.

For more information see here.

- ///
- MALWARE_IN_LANDING_PAGE = 1, - /// The redirect url contains legally objectionable content. - /// - LEGALLY_BLOCKED_REDIRECT_URL = 2, - /// The creative misrepresents the product or service being advertised.

For more - /// information see here.

- ///
- MISREPRESENTATION_OF_PRODUCT = 3, - /// The creative has been determined to be self clicking. - /// - SELF_CLICKING_CREATIVE = 4, - /// The creative has been determined as attempting to game the Google network. - ///

For more information see here.

- ///
- GAMING_GOOGLE_NETWORK = 5, - /// The landing page for the creative uses a dynamic DNS.

For more information - /// see here.

- ///
- DYNAMIC_DNS = 6, - /// The creative has been determined as attempting to circumvent Google advertising - /// systems. - /// - CIRCUMVENTING_SYSTEMS = 13, - /// Phishing found in creative or landing page.

For more information see here.

- ///
- PHISHING = 7, - /// The creative prompts the user to download a file.

For more information see here

- ///
- DOWNLOAD_PROMPT_IN_CREATIVE = 9, - /// The creative sets an unauthorized cookie on a Google domain.

For more - /// information see here

- ///
- UNAUTHORIZED_COOKIE_DETECTED = 10, - /// The creative has been temporarily paused while we investigate. - /// - TEMPORARY_PAUSE_FOR_VENDOR_INVESTIGATION = 11, - /// The landing page contains an abusive experience.

For more information see here.

- ///
- ABUSIVE_EXPERIENCE = 12, - /// The creative is designed to mislead or trick the user into interacting with it. - ///

For more information see here.

- ///
- TRICK_TO_CLICK = 14, - /// Non-allowlisted OMID verification script.

For more information see here.

- ///
- USE_OF_NON_ALLOWLISTED_OMID_VERIFICATION_SCRIPT = 18, - /// OMID sdk injected by creative. < p>For more information see here. - /// - MISUSE_OF_OMID_API = 16, - /// Unacceptable HTML5 ad.

For more information see here.

- ///
- UNACCEPTABLE_HTML_AD = 17, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 8, - } - - - /// A Creative that points to an externally hosted VAST ad and is - /// served via VAST XML as a VAST Wrapper. + /// Contains targeting criteria for LineItem objects. See LineItem#targeting. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class VastRedirectCreative : Creative { - private string vastXmlUrlField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class Targeting { + private GeoTargeting geoTargetingField; - private VastRedirectType vastRedirectTypeField; + private InventoryTargeting inventoryTargetingField; - private bool vastRedirectTypeFieldSpecified; + private DayPartTargeting dayPartTargetingField; - private int durationField; + private DateTimeRange[] dateTimeRangeTargetingField; - private bool durationFieldSpecified; + private TechnologyTargeting technologyTargetingField; - private long[] companionCreativeIdsField; + private CustomCriteriaSet customTargetingField; - private ConversionEvent_TrackingUrlsMapEntry[] trackingUrlsField; + private UserDomainTargeting userDomainTargetingField; - private string vastPreviewUrlField; + private ContentTargeting contentTargetingField; - private SslScanResult sslScanResultField; + private VideoPositionTargeting videoPositionTargetingField; - private bool sslScanResultFieldSpecified; + private MobileApplicationTargeting mobileApplicationTargetingField; - private SslManualOverride sslManualOverrideField; + private BuyerUserListTargeting buyerUserListTargetingField; - private bool sslManualOverrideFieldSpecified; + private InventoryUrlTargeting inventoryUrlTargetingField; - private bool isAudioField; + private VerticalTargeting verticalTargetingField; - private bool isAudioFieldSpecified; + private long[] contentLabelTargetingField; - /// The URL where the 3rd party VAST XML is hosted. This attribute is required. + private RequestPlatformTargeting requestPlatformTargetingField; + + private InventorySizeTargeting inventorySizeTargetingField; + + /// Specifies what geographical locations are targeted by the LineItem. This attribute is optional. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public string vastXmlUrl { + public GeoTargeting geoTargeting { get { - return this.vastXmlUrlField; + return this.geoTargetingField; } set { - this.vastXmlUrlField = value; + this.geoTargetingField = value; } } - /// The type of VAST ad that this redirects to. This attribute is required. + /// Specifies what inventory is targeted by the LineItem. + /// This attribute is required. The line item must target at least one ad unit or + /// placement. /// [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public VastRedirectType vastRedirectType { + public InventoryTargeting inventoryTargeting { get { - return this.vastRedirectTypeField; + return this.inventoryTargetingField; } set { - this.vastRedirectTypeField = value; - this.vastRedirectTypeSpecified = true; + this.inventoryTargetingField = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool vastRedirectTypeSpecified { + /// Specifies the days of the week and times that are targeted by the LineItem. This attribute is optional. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public DayPartTargeting dayPartTargeting { get { - return this.vastRedirectTypeFieldSpecified; + return this.dayPartTargetingField; } set { - this.vastRedirectTypeFieldSpecified = value; + this.dayPartTargetingField = value; } } - /// The duration of the VAST ad in milliseconds. This attribute is required. + /// Specifies the dates and time ranges that are targeted by the LineItem. This attribute is optional. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public int duration { + [System.Xml.Serialization.XmlArrayAttribute(Order = 3)] + [System.Xml.Serialization.XmlArrayItemAttribute("targetedDateTimeRanges", IsNullable = false)] + public DateTimeRange[] dateTimeRangeTargeting { get { - return this.durationField; + return this.dateTimeRangeTargetingField; } set { - this.durationField = value; - this.durationSpecified = true; + this.dateTimeRangeTargetingField = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool durationSpecified { + /// Specifies the browsing technologies that are targeted by the LineItem. This attribute is optional. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 4)] + public TechnologyTargeting technologyTargeting { get { - return this.durationFieldSpecified; + return this.technologyTargetingField; } set { - this.durationFieldSpecified = value; + this.technologyTargetingField = value; } } - /// The IDs of the companion creatives that are associated with this creative. This - /// attribute is optional. + /// Specifies the collection of custom criteria that is targeted by the LineItem.

Once the LineItem is + /// updated or modified with custom targeting, the server may return a normalized, + /// but equivalent representation of the custom targeting expression.

+ ///

customTargeting will have up to three levels of expressions + /// including itself.

The top level CustomCriteriaSet i.e. the + /// object can only contain a CustomCriteriaSet.LogicalOperator#OR + /// of all its children.

The second level of CustomCriteriaSet + /// objects can only contain CustomCriteriaSet.LogicalOperator#AND of + /// all their children. If a CustomCriteria is placed + /// on this level, the server will wrap it in a CustomCriteriaSet.

The third level can only + /// comprise of CustomCriteria objects.

The + /// resulting custom targeting tree would be of the form:

///
- [System.Xml.Serialization.XmlElementAttribute("companionCreativeIds", Order = 3)] - public long[] companionCreativeIds { + [System.Xml.Serialization.XmlElementAttribute(Order = 5)] + public CustomCriteriaSet customTargeting { get { - return this.companionCreativeIdsField; + return this.customTargetingField; } set { - this.companionCreativeIdsField = value; + this.customTargetingField = value; } } - /// A map from ConversionEvent to a list of URLs that will be pinged - /// when the event happens. This attribute is optional. + /// Specifies the domains or subdomains that are targeted or excluded by the LineItem. Users visiting from an IP address associated with + /// those domains will be targeted or excluded. This attribute is optional. /// - [System.Xml.Serialization.XmlElementAttribute("trackingUrls", Order = 4)] - public ConversionEvent_TrackingUrlsMapEntry[] trackingUrls { + [System.Xml.Serialization.XmlElementAttribute(Order = 6)] + public UserDomainTargeting userDomainTargeting { get { - return this.trackingUrlsField; + return this.userDomainTargetingField; } set { - this.trackingUrlsField = value; + this.userDomainTargetingField = value; } } - /// An ad tag URL that will return a preview of the VAST XML response specific to - /// this creative. This attribute is read-only. + /// Specifies the video categories and individual videos targeted by the LineItem. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 5)] - public string vastPreviewUrl { + [System.Xml.Serialization.XmlElementAttribute(Order = 7)] + public ContentTargeting contentTargeting { get { - return this.vastPreviewUrlField; + return this.contentTargetingField; } set { - this.vastPreviewUrlField = value; + this.contentTargetingField = value; } } - /// The SSL compatibility scan result for this creative.

This attribute is - /// read-only and determined by Google.

+ /// Specifies targeting against video position types. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 6)] - public SslScanResult sslScanResult { + [System.Xml.Serialization.XmlElementAttribute(Order = 8)] + public VideoPositionTargeting videoPositionTargeting { get { - return this.sslScanResultField; + return this.videoPositionTargetingField; } set { - this.sslScanResultField = value; - this.sslScanResultSpecified = true; + this.videoPositionTargetingField = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool sslScanResultSpecified { + /// Specifies targeting against mobile applications. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 9)] + public MobileApplicationTargeting mobileApplicationTargeting { get { - return this.sslScanResultFieldSpecified; + return this.mobileApplicationTargetingField; } set { - this.sslScanResultFieldSpecified = value; + this.mobileApplicationTargetingField = value; } } - /// The manual override for the SSL compatibility of this creative.

This - /// attribute is optional and defaults to SslManualOverride#NO_OVERRIDE.

+ /// Specifies whether buyer user lists are targeted on a programmatic LineItem or ProposalLineItem. This attribute + /// is readonly and is populated by Google. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 7)] - public SslManualOverride sslManualOverride { + [System.Xml.Serialization.XmlElementAttribute(Order = 10)] + public BuyerUserListTargeting buyerUserListTargeting { get { - return this.sslManualOverrideField; + return this.buyerUserListTargetingField; } set { - this.sslManualOverrideField = value; - this.sslManualOverrideSpecified = true; + this.buyerUserListTargetingField = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool sslManualOverrideSpecified { + /// Specifies the URLs that are targeted by the entity. This is currently only + /// supported by YieldGroup. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 11)] + public InventoryUrlTargeting inventoryUrlTargeting { get { - return this.sslManualOverrideFieldSpecified; + return this.inventoryUrlTargetingField; } set { - this.sslManualOverrideFieldSpecified = value; + this.inventoryUrlTargetingField = value; } } - /// Whether the 3rd party VAST XML points to an audio ad. When true, VastRedirectCreative#size will always be 1x1. + /// Specifies the verticals that are targeted by the entity. The IDs listed here + /// correspond to the IDs in the AD_CATEGORY table of type VERTICAL. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 8)] - public bool isAudio { + [System.Xml.Serialization.XmlElementAttribute(Order = 12)] + public VerticalTargeting verticalTargeting { get { - return this.isAudioField; + return this.verticalTargetingField; } set { - this.isAudioField = value; - this.isAudioSpecified = true; + this.verticalTargetingField = value; } } - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool isAudioSpecified { + /// Specifies the content labels that are excluded by the entity. The IDs listed + /// here correspond to the IDs in the CONTENT_LABEL table. + /// + [System.Xml.Serialization.XmlArrayAttribute(Order = 13)] + [System.Xml.Serialization.XmlArrayItemAttribute("excludedContentLabelIds", IsNullable = false)] + public long[] contentLabelTargeting { get { - return this.isAudioFieldSpecified; + return this.contentLabelTargetingField; } set { - this.isAudioFieldSpecified = value; + this.contentLabelTargetingField = value; } } - } - - - /// The types of VAST ads that a VastRedirectCreative can point to. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum VastRedirectType { - /// The VAST XML contains only linear ads. - /// - LINEAR = 0, - /// The VAST XML contains only nonlinear ads. - /// - NON_LINEAR = 1, - /// The VAST XML contains both linear and nonlinear ads. - /// - LINEAR_AND_NON_LINEAR = 2, - } - - - /// Enum to store the creative SSL compatibility scan result. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum SslScanResult { - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 0, - UNSCANNED = 1, - SCANNED_SSL = 2, - SCANNED_NON_SSL = 3, - } - - /// Enum to store the creative SSL compatibility manual override. Its three states - /// are similar to that of SslScanResult. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum SslManualOverride { - /// The value returned if the actual value is not exposed by the requested API - /// version. + /// Specifies the request platforms that are targeted by the LineItem. This attribute is required for video line items + /// and for ProposalLineItem.

This value is + /// modifiable for video line items, but read-only for non-video line items.

+ ///

This value is read-only for video line items generated from proposal line + /// items.

///
- UNKNOWN = 0, - NO_OVERRIDE = 1, - SSL_COMPATIBLE = 2, - NOT_SSL_COMPATIBLE = 3, - } - - - /// A Creative that isn't supported by this version of the API. This - /// object is readonly and when encountered should be reported on the Ad Manager API - /// forum. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class UnsupportedCreative : Creative { - private string unsupportedCreativeTypeField; + [System.Xml.Serialization.XmlElementAttribute(Order = 14)] + public RequestPlatformTargeting requestPlatformTargeting { + get { + return this.requestPlatformTargetingField; + } + set { + this.requestPlatformTargetingField = value; + } + } - /// The creative type that is unsupported by this API version. + /// Specifies the sizes that are targeted by the entity. This is currently only + /// supported on YieldGroup and TrafficDataRequest. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public string unsupportedCreativeType { + [System.Xml.Serialization.XmlElementAttribute(Order = 15)] + public InventorySizeTargeting inventorySizeTargeting { get { - return this.unsupportedCreativeTypeField; + return this.inventorySizeTargetingField; } set { - this.unsupportedCreativeTypeField = value; + this.inventorySizeTargetingField = value; } } } - /// A Creative that is served by a 3rd-party vendor. + /// An AdRule contains data that the ad server will use to + /// generate a playlist of video ads. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ThirdPartyCreative : Creative { - private string snippetField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class AdRule { + private long idField; - private string expandedSnippetField; + private bool idFieldSpecified; - private SslScanResult sslScanResultField; + private string nameField; - private bool sslScanResultFieldSpecified; + private int priorityField; - private SslManualOverride sslManualOverrideField; + private bool priorityFieldSpecified; - private bool sslManualOverrideFieldSpecified; + private Targeting targetingField; - private LockedOrientation lockedOrientationField; + private DateTime startDateTimeField; - private bool lockedOrientationFieldSpecified; + private StartDateTimeType startDateTimeTypeField; - private bool isSafeFrameCompatibleField; + private bool startDateTimeTypeFieldSpecified; - private bool isSafeFrameCompatibleFieldSpecified; + private DateTime endDateTimeField; - private string[] thirdPartyImpressionTrackingUrlsField; + private bool unlimitedEndDateTimeField; - private string ampRedirectUrlField; + private bool unlimitedEndDateTimeFieldSpecified; - /// The HTML snippet that this creative delivers. This attribute is required. + private AdRuleStatus statusField; + + private bool statusFieldSpecified; + + private FrequencyCapBehavior frequencyCapBehaviorField; + + private bool frequencyCapBehaviorFieldSpecified; + + private int maxImpressionsPerLineItemPerStreamField; + + private bool maxImpressionsPerLineItemPerStreamFieldSpecified; + + private int maxImpressionsPerLineItemPerPodField; + + private bool maxImpressionsPerLineItemPerPodFieldSpecified; + + private BaseAdRuleSlot prerollField; + + private BaseAdRuleSlot midrollField; + + private BaseAdRuleSlot postrollField; + + /// The unique ID of the AdRule. This value is readonly and is + /// assigned by Google. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public string snippet { + public long id { get { - return this.snippetField; + return this.idField; } set { - this.snippetField = value; + this.idField = value; + this.idSpecified = true; } } - /// The HTML snippet that this creative delivers with macros expanded. This - /// attribute is read-only and is set by Google. + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool idSpecified { + get { + return this.idFieldSpecified; + } + set { + this.idFieldSpecified = value; + } + } + + /// The unique name of the AdRule. This attribute is required + /// to create an ad rule and has a maximum length of 255 characters. /// [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public string expandedSnippet { + public string name { get { - return this.expandedSnippetField; + return this.nameField; } set { - this.expandedSnippetField = value; + this.nameField = value; } } - /// The SSL compatibility scan result for this creative.

This attribute is - /// read-only and determined by Google.

+ /// The priority of the AdRule. This attribute is required and + /// can range from 1 to 1000, with 1 being the highest possible priority. + ///

Changing an ad rule's priority can affect the priorities of other ad rules. + /// For example, increasing an ad rule's priority from 5 to 1 will shift the ad + /// rules that were previously in priority positions 1 through 4 down one.

///
[System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public SslScanResult sslScanResult { + public int priority { get { - return this.sslScanResultField; + return this.priorityField; } set { - this.sslScanResultField = value; - this.sslScanResultSpecified = true; + this.priorityField = value; + this.prioritySpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool sslScanResultSpecified { + public bool prioritySpecified { get { - return this.sslScanResultFieldSpecified; + return this.priorityFieldSpecified; } set { - this.sslScanResultFieldSpecified = value; + this.priorityFieldSpecified = value; } } - /// The manual override for the SSL compatibility of this creative.

This - /// attribute is optional and defaults to SslManualOverride#NO_OVERRIDE.

+ /// The targeting criteria of the AdRule. This attribute is + /// required. /// [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public SslManualOverride sslManualOverride { + public Targeting targeting { get { - return this.sslManualOverrideField; + return this.targetingField; } set { - this.sslManualOverrideField = value; - this.sslManualOverrideSpecified = true; + this.targetingField = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool sslManualOverrideSpecified { + /// This AdRule object's start date and time. This attribute is + /// required and must be a date in the future for new ad rules. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 4)] + public DateTime startDateTime { get { - return this.sslManualOverrideFieldSpecified; + return this.startDateTimeField; } set { - this.sslManualOverrideFieldSpecified = value; + this.startDateTimeField = value; } } - /// A locked orientation for this creative to be displayed in. + /// Specifies whether to start using the AdRule right away, in + /// an hour, etc. This attribute is optional and defaults to StartDateTimeType#USE_START_DATE_TIME. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public LockedOrientation lockedOrientation { + [System.Xml.Serialization.XmlElementAttribute(Order = 5)] + public StartDateTimeType startDateTimeType { get { - return this.lockedOrientationField; + return this.startDateTimeTypeField; } set { - this.lockedOrientationField = value; - this.lockedOrientationSpecified = true; + this.startDateTimeTypeField = value; + this.startDateTimeTypeSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="startDateTimeType" />, false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool lockedOrientationSpecified { + public bool startDateTimeTypeSpecified { get { - return this.lockedOrientationFieldSpecified; + return this.startDateTimeTypeFieldSpecified; } set { - this.lockedOrientationFieldSpecified = value; + this.startDateTimeTypeFieldSpecified = value; } } - /// Whether the Creative is compatible for SafeFrame - /// rendering.

This attribute is optional and defaults to true.

+ /// This AdRule object's end date and time. This attribute is + /// required unless unlimitedEndDateTime is set to true. + /// If specified, it must be after the . /// - [System.Xml.Serialization.XmlElementAttribute(Order = 5)] - public bool isSafeFrameCompatible { + [System.Xml.Serialization.XmlElementAttribute(Order = 6)] + public DateTime endDateTime { get { - return this.isSafeFrameCompatibleField; + return this.endDateTimeField; } set { - this.isSafeFrameCompatibleField = value; - this.isSafeFrameCompatibleSpecified = true; + this.endDateTimeField = value; + } + } + + /// Specifies whether the AdRule has an end time. This + /// attribute is optional and defaults to false. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 7)] + public bool unlimitedEndDateTime { + get { + return this.unlimitedEndDateTimeField; + } + set { + this.unlimitedEndDateTimeField = value; + this.unlimitedEndDateTimeSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="unlimitedEndDateTime" />, false otherwise.
[System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool isSafeFrameCompatibleSpecified { + public bool unlimitedEndDateTimeSpecified { get { - return this.isSafeFrameCompatibleFieldSpecified; + return this.unlimitedEndDateTimeFieldSpecified; } set { - this.isSafeFrameCompatibleFieldSpecified = value; + this.unlimitedEndDateTimeFieldSpecified = value; } } - /// A list of impression tracking URLs to ping when this creative is displayed. This - /// field is optional. + /// The AdRuleStatus of the ad rule. This attribute is + /// read-only and defaults to AdRuleStatus#INACTIVE. /// - [System.Xml.Serialization.XmlElementAttribute("thirdPartyImpressionTrackingUrls", Order = 6)] - public string[] thirdPartyImpressionTrackingUrls { + [System.Xml.Serialization.XmlElementAttribute(Order = 8)] + public AdRuleStatus status { get { - return this.thirdPartyImpressionTrackingUrlsField; + return this.statusField; } set { - this.thirdPartyImpressionTrackingUrlsField = value; + this.statusField = value; + this.statusSpecified = true; } } - /// The URL of the AMP creative. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 7)] - public string ampRedirectUrl { + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool statusSpecified { get { - return this.ampRedirectUrlField; + return this.statusFieldSpecified; } set { - this.ampRedirectUrlField = value; + this.statusFieldSpecified = value; } } - } - - /// Describes the orientation that a creative should be served with. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum LockedOrientation { - /// The value returned if the actual value is not exposed by the requested API - /// version. + /// The FrequencyCapBehavior of the AdRule. This attribute is optional and defaults to FrequencyCapBehavior#DEFER. /// - UNKNOWN = 0, - FREE_ORIENTATION = 1, - PORTRAIT_ONLY = 2, - LANDSCAPE_ONLY = 3, - } + [System.Xml.Serialization.XmlElementAttribute(Order = 9)] + public FrequencyCapBehavior frequencyCapBehavior { + get { + return this.frequencyCapBehaviorField; + } + set { + this.frequencyCapBehaviorField = value; + this.frequencyCapBehaviorSpecified = true; + } + } + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool frequencyCapBehaviorSpecified { + get { + return this.frequencyCapBehaviorFieldSpecified; + } + set { + this.frequencyCapBehaviorFieldSpecified = value; + } + } - /// A Creative that is created by the specified creative template. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class TemplateCreative : Creative { - private long creativeTemplateIdField; - - private bool creativeTemplateIdFieldSpecified; - - private bool isInterstitialField; - - private bool isInterstitialFieldSpecified; - - private bool isNativeEligibleField; - - private bool isNativeEligibleFieldSpecified; - - private bool isSafeFrameCompatibleField; - - private bool isSafeFrameCompatibleFieldSpecified; - - private string destinationUrlField; - - private BaseCreativeTemplateVariableValue[] creativeTemplateVariableValuesField; - - private SslScanResult sslScanResultField; - - private bool sslScanResultFieldSpecified; - - private SslManualOverride sslManualOverrideField; - - private bool sslManualOverrideFieldSpecified; - - private LockedOrientation lockedOrientationField; - - private bool lockedOrientationFieldSpecified; - - /// Creative template ID that this creative is created from. + /// This AdRule object's frequency cap for the maximum + /// impressions per stream. This attribute is optional and defaults to 0. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public long creativeTemplateId { + [System.Xml.Serialization.XmlElementAttribute(Order = 10)] + public int maxImpressionsPerLineItemPerStream { get { - return this.creativeTemplateIdField; + return this.maxImpressionsPerLineItemPerStreamField; } set { - this.creativeTemplateIdField = value; - this.creativeTemplateIdSpecified = true; + this.maxImpressionsPerLineItemPerStreamField = value; + this.maxImpressionsPerLineItemPerStreamSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="maxImpressionsPerLineItemPerStream" />, false otherwise. + /// [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool creativeTemplateIdSpecified { + public bool maxImpressionsPerLineItemPerStreamSpecified { get { - return this.creativeTemplateIdFieldSpecified; + return this.maxImpressionsPerLineItemPerStreamFieldSpecified; } set { - this.creativeTemplateIdFieldSpecified = value; + this.maxImpressionsPerLineItemPerStreamFieldSpecified = value; } } - /// true if this template instantiated creative is interstitial. This - /// attribute is read-only and is assigned by Google based on the creative template. + /// This AdRule object's frequency cap for the maximum + /// impressions per pod. This attribute is optional and defaults to 0. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public bool isInterstitial { + [System.Xml.Serialization.XmlElementAttribute(Order = 11)] + public int maxImpressionsPerLineItemPerPod { get { - return this.isInterstitialField; + return this.maxImpressionsPerLineItemPerPodField; } set { - this.isInterstitialField = value; - this.isInterstitialSpecified = true; + this.maxImpressionsPerLineItemPerPodField = value; + this.maxImpressionsPerLineItemPerPodSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="maxImpressionsPerLineItemPerPod" />, false otherwise. + /// [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool isInterstitialSpecified { + public bool maxImpressionsPerLineItemPerPodSpecified { get { - return this.isInterstitialFieldSpecified; + return this.maxImpressionsPerLineItemPerPodFieldSpecified; } set { - this.isInterstitialFieldSpecified = value; + this.maxImpressionsPerLineItemPerPodFieldSpecified = value; } } - /// true if this template instantiated creative is eligible for native - /// adserving. This attribute is read-only and is assigned by Google based on the - /// creative template. + /// This AdRule object's pre-roll slot. This attribute is + /// required. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public bool isNativeEligible { + [System.Xml.Serialization.XmlElementAttribute(Order = 12)] + public BaseAdRuleSlot preroll { get { - return this.isNativeEligibleField; + return this.prerollField; } set { - this.isNativeEligibleField = value; - this.isNativeEligibleSpecified = true; + this.prerollField = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool isNativeEligibleSpecified { + /// This AdRule object's mid-roll slot. This attribute is + /// required. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 13)] + public BaseAdRuleSlot midroll { get { - return this.isNativeEligibleFieldSpecified; + return this.midrollField; } set { - this.isNativeEligibleFieldSpecified = value; + this.midrollField = value; } } - /// Whether the Creative is compatible for SafeFrame - /// rendering.

This attribute is read-only and is assigned by Google based on the - /// CreativeTemplate.

+ /// This AdRule object's post-roll slot. This attribute is + /// required. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public bool isSafeFrameCompatible { + [System.Xml.Serialization.XmlElementAttribute(Order = 14)] + public BaseAdRuleSlot postroll { get { - return this.isSafeFrameCompatibleField; + return this.postrollField; } set { - this.isSafeFrameCompatibleField = value; - this.isSafeFrameCompatibleSpecified = true; + this.postrollField = value; } } + } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool isSafeFrameCompatibleSpecified { - get { - return this.isSafeFrameCompatibleFieldSpecified; - } - set { - this.isSafeFrameCompatibleFieldSpecified = value; - } - } - /// The URL the user is directed to if they click on the creative. This attribute is - /// only required if the template snippet contains the %u or - /// %%DEST_URL%% macro. It has a maximum length of 1024 characters. + /// Specifies the start type to use for an entity with a start date time field. For + /// example, a LineItem or LineItemCreativeAssociation. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum StartDateTimeType { + /// Use the value in #startDateTime. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public string destinationUrl { - get { - return this.destinationUrlField; - } - set { - this.destinationUrlField = value; - } - } + USE_START_DATE_TIME = 0, + /// The entity will start serving immediately. #startDateTime in the request is ignored and will be + /// set to the current time. Additionally, #startDateTimeType will be set to StartDateTimeType#USE_START_DATE_TIME. + /// + IMMEDIATELY = 1, + /// The entity will start serving one hour from now. #startDateTime in the request is ignored and will be + /// set to one hour from the current time. Additionally, #startDateTimeType will be set to StartDateTimeType#USE_START_DATE_TIME. + /// + ONE_HOUR_FROM_NOW = 2, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 3, + } - /// Stores values of CreativeTemplateVariable - /// in the CreativeTemplate. + + /// Represents the status of ad rules and ad rule slots. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum AdRuleStatus { + /// Created and ready to be served. Is user-visible. /// - [System.Xml.Serialization.XmlElementAttribute("creativeTemplateVariableValues", Order = 5)] - public BaseCreativeTemplateVariableValue[] creativeTemplateVariableValues { - get { - return this.creativeTemplateVariableValuesField; - } - set { - this.creativeTemplateVariableValuesField = value; - } - } + ACTIVE = 0, + /// Paused, user-visible. + /// + INACTIVE = 1, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 3, + } - /// The SSL compatibility scan result for this creative.

This attribute is - /// read-only and determined by Google.

+ + /// Types of behavior for frequency caps within ad rules. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum FrequencyCapBehavior { + /// Turn on at least one of the frequency caps. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 6)] - public SslScanResult sslScanResult { + TURN_ON = 0, + /// Turn off all frequency caps. + /// + TURN_OFF = 1, + /// Defer frequency cap decisions to the next ad rule in priority order. + /// + DEFER = 2, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 3, + } + + + /// An error for a field which must satisfy a uniqueness constraint + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class UniqueError : ApiError { + } + + + /// Errors for Strings which do not meet given length constraints. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class StringLengthError : ApiError { + private StringLengthErrorReason reasonField; + + private bool reasonFieldSpecified; + + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public StringLengthErrorReason reason { get { - return this.sslScanResultField; + return this.reasonField; } set { - this.sslScanResultField = value; - this.sslScanResultSpecified = true; + this.reasonField = value; + this.reasonSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , + /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool sslScanResultSpecified { + public bool reasonSpecified { get { - return this.sslScanResultFieldSpecified; + return this.reasonFieldSpecified; } set { - this.sslScanResultFieldSpecified = value; + this.reasonFieldSpecified = value; } } + } - /// The manual override for the SSL compatibility of this creative.

This - /// attribute is optional and defaults to SslManualOverride#NO_OVERRIDE.

+ + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "StringLengthError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum StringLengthErrorReason { + TOO_LONG = 0, + TOO_SHORT = 1, + /// The value returned if the actual value is not exposed by the requested API + /// version. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 7)] - public SslManualOverride sslManualOverride { + UNKNOWN = 2, + } + + + /// A list of error code for reporting invalid content of input strings. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class StringFormatError : ApiError { + private StringFormatErrorReason reasonField; + + private bool reasonFieldSpecified; + + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public StringFormatErrorReason reason { get { - return this.sslManualOverrideField; + return this.reasonField; } set { - this.sslManualOverrideField = value; - this.sslManualOverrideSpecified = true; + this.reasonField = value; + this.reasonSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , + /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool sslManualOverrideSpecified { + public bool reasonSpecified { get { - return this.sslManualOverrideFieldSpecified; + return this.reasonFieldSpecified; } set { - this.sslManualOverrideFieldSpecified = value; + this.reasonFieldSpecified = value; } } + } - /// A locked orientation for this creative to be displayed in. + + /// The reasons for the target error. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "StringFormatError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum StringFormatErrorReason { + UNKNOWN = 0, + /// The input string value contains disallowed characters. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 8)] - public LockedOrientation lockedOrientation { + ILLEGAL_CHARS = 1, + /// The input string value is invalid for the associated field. + /// + INVALID_FORMAT = 2, + } + + + /// An error that occurs while parsing Statement objects. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class StatementError : ApiError { + private StatementErrorReason reasonField; + + private bool reasonFieldSpecified; + + /// The error reason represented by an enum. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public StatementErrorReason reason { get { - return this.lockedOrientationField; + return this.reasonField; } set { - this.lockedOrientationField = value; - this.lockedOrientationSpecified = true; + this.reasonField = value; + this.reasonSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , + /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool lockedOrientationSpecified { + public bool reasonSpecified { get { - return this.lockedOrientationFieldSpecified; + return this.reasonFieldSpecified; } set { - this.lockedOrientationFieldSpecified = value; + this.reasonFieldSpecified = value; } } } - /// A Creative used for programmatic trafficking. This creative will be - /// auto-created with the right approval from the buyer. This creative cannot be - /// created through the API. This creative can be updated. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ProgrammaticCreative : Creative { - } - - - /// A Creative that isn't supported by Google DFP, but was migrated - /// from DART. Creatives of this type cannot be created or modified. - /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class LegacyDfpCreative : Creative { + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "StatementError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum StatementErrorReason { + /// A bind variable has not been bound to a value. + /// + VARIABLE_NOT_BOUND_TO_VALUE = 0, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 1, } - /// A Creative hosted by Campaign Manager 360.

Similar to - /// third-party creatives, a Campaign Manager 360 tag is used to retrieve a creative - /// asset. However, Campaign Manager 360 tags are not sent to the user's browser. - /// Instead, they are processed internally within the Google Marketing Platform - /// system..

+ /// Errors related to the server. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class InternalRedirectCreative : Creative { - private LockedOrientation lockedOrientationField; - - private bool lockedOrientationFieldSpecified; - - private Size assetSizeField; - - private string internalRedirectUrlField; - - private bool overrideSizeField; - - private bool overrideSizeFieldSpecified; - - private bool isInterstitialField; - - private bool isInterstitialFieldSpecified; - - private SslScanResult sslScanResultField; - - private bool sslScanResultFieldSpecified; - - private SslManualOverride sslManualOverrideField; - - private bool sslManualOverrideFieldSpecified; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ServerError : ApiError { + private ServerErrorReason reasonField; - private string[] thirdPartyImpressionTrackingUrlsField; + private bool reasonFieldSpecified; - /// A locked orientation for this creative to be displayed in. - /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public LockedOrientation lockedOrientation { + public ServerErrorReason reason { get { - return this.lockedOrientationField; + return this.reasonField; } set { - this.lockedOrientationField = value; - this.lockedOrientationSpecified = true; + this.reasonField = value; + this.reasonSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , + /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool lockedOrientationSpecified { + public bool reasonSpecified { get { - return this.lockedOrientationFieldSpecified; + return this.reasonFieldSpecified; } set { - this.lockedOrientationFieldSpecified = value; + this.reasonFieldSpecified = value; } } + } - /// The asset size of an internal redirect creative. Note that this may differ from - /// size if users set overrideSize to true. This attribute - /// is read-only and is populated by Google. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public Size assetSize { - get { - return this.assetSizeField; - } - set { - this.assetSizeField = value; - } - } - /// The internal redirect URL of the DFA or DART for Publishers hosted creative. - /// This attribute is required and has a maximum length of 1024 characters. + /// Describes reasons for server errors + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ServerError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum ServerErrorReason { + /// Indicates that an unexpected error occured. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public string internalRedirectUrl { + SERVER_ERROR = 0, + /// Indicates that the server is currently experiencing a high load. Please wait and + /// try your request again. + /// + SERVER_BUSY = 1, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 2, + } + + + /// A list of all errors to be used in conjunction with required number validators. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class RequiredNumberError : ApiError { + private RequiredNumberErrorReason reasonField; + + private bool reasonFieldSpecified; + + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public RequiredNumberErrorReason reason { get { - return this.internalRedirectUrlField; + return this.reasonField; } set { - this.internalRedirectUrlField = value; + this.reasonField = value; + this.reasonSpecified = true; } } - /// Allows the creative size to differ from the actual size specified in the - /// internal redirect's url. This attribute is optional. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public bool overrideSize { + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool reasonSpecified { get { - return this.overrideSizeField; + return this.reasonFieldSpecified; } set { - this.overrideSizeField = value; - this.overrideSizeSpecified = true; + this.reasonFieldSpecified = value; } } + } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool overrideSizeSpecified { - get { - return this.overrideSizeFieldSpecified; - } - set { - this.overrideSizeFieldSpecified = value; - } - } - /// true if this internal redirect creative is interstitial. + /// Describes reasons for a number to be invalid. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "RequiredNumberError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum RequiredNumberErrorReason { + REQUIRED = 0, + TOO_LARGE = 1, + TOO_SMALL = 2, + TOO_LARGE_WITH_DETAILS = 3, + TOO_SMALL_WITH_DETAILS = 4, + /// The value returned if the actual value is not exposed by the requested API + /// version. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public bool isInterstitial { + UNKNOWN = 5, + } + + + /// Errors due to missing required field. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class RequiredError : ApiError { + private RequiredErrorReason reasonField; + + private bool reasonFieldSpecified; + + /// The error reason represented by an enum. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public RequiredErrorReason reason { get { - return this.isInterstitialField; + return this.reasonField; } set { - this.isInterstitialField = value; - this.isInterstitialSpecified = true; + this.reasonField = value; + this.reasonSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , + /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool isInterstitialSpecified { + public bool reasonSpecified { get { - return this.isInterstitialFieldSpecified; + return this.reasonFieldSpecified; } set { - this.isInterstitialFieldSpecified = value; + this.reasonFieldSpecified = value; } } + } - /// The SSL compatibility scan result for this creative.

This attribute is - /// read-only and determined by Google.

+ + /// The reasons for the target error. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "RequiredError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum RequiredErrorReason { + /// Missing required field. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 5)] - public SslScanResult sslScanResult { + REQUIRED = 0, + } + + + /// A list of all errors to be used for validating sizes of collections. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class RequiredCollectionError : ApiError { + private RequiredCollectionErrorReason reasonField; + + private bool reasonFieldSpecified; + + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public RequiredCollectionErrorReason reason { get { - return this.sslScanResultField; + return this.reasonField; } set { - this.sslScanResultField = value; - this.sslScanResultSpecified = true; + this.reasonField = value; + this.reasonSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , + /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool sslScanResultSpecified { + public bool reasonSpecified { get { - return this.sslScanResultFieldSpecified; + return this.reasonFieldSpecified; } set { - this.sslScanResultFieldSpecified = value; + this.reasonFieldSpecified = value; } } + } - /// The manual override for the SSL compatibility of this creative.

This - /// attribute is optional and defaults to SslManualOverride#NO_OVERRIDE.

+ + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "RequiredCollectionError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum RequiredCollectionErrorReason { + /// A required collection is missing. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 6)] - public SslManualOverride sslManualOverride { + REQUIRED = 0, + /// Collection size is too large. + /// + TOO_LARGE = 1, + /// Collection size is too small. + /// + TOO_SMALL = 2, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 3, + } + + + /// Describes a client-side error on which a user is attempting to perform an action + /// to which they have no quota remaining. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class QuotaError : ApiError { + private QuotaErrorReason reasonField; + + private bool reasonFieldSpecified; + + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public QuotaErrorReason reason { get { - return this.sslManualOverrideField; + return this.reasonField; } set { - this.sslManualOverrideField = value; - this.sslManualOverrideSpecified = true; + this.reasonField = value; + this.reasonSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , + /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool sslManualOverrideSpecified { + public bool reasonSpecified { get { - return this.sslManualOverrideFieldSpecified; + return this.reasonFieldSpecified; } set { - this.sslManualOverrideFieldSpecified = value; + this.reasonFieldSpecified = value; } } + } - /// A list of impression tracking URLs to ping when this creative is displayed. This - /// field is optional. + + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "QuotaError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum QuotaErrorReason { + /// The number of requests made per second is too high and has exceeded the + /// allowable limit. The recommended approach to handle this error is to wait about + /// 5 seconds and then retry the request. Note that this does not guarantee the + /// request will succeed. If it fails again, try increasing the wait time. + ///

Another way to mitigate this error is to limit requests to 8 per second for + /// Ad Manager 360 accounts, or 2 per second for Ad Manager accounts. Once again + /// this does not guarantee that every request will succeed, but may help reduce the + /// number of times you receive this error.

///
- [System.Xml.Serialization.XmlElementAttribute("thirdPartyImpressionTrackingUrls", Order = 7)] - public string[] thirdPartyImpressionTrackingUrls { - get { - return this.thirdPartyImpressionTrackingUrlsField; - } - set { - this.thirdPartyImpressionTrackingUrlsField = value; - } - } + EXCEEDED_QUOTA = 0, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 1, + /// This user has exceeded the allowed number of new report requests per hour (this + /// includes both reports run via the UI and reports run via ReportService#runReportJob). The + /// recommended approach to handle this error is to wait about 10 minutes and then + /// retry the request. Note that this does not guarantee the request will succeed. + /// If it fails again, try increasing the wait time.

Another way to mitigate this + /// error is to limit the number of new report requests to 250 per hour per user. + /// Once again, this does not guarantee that every request will succeed, but may + /// help reduce the number of times you receive this error.

+ ///
+ REPORT_JOB_LIMIT = 2, + /// This network has exceeded the allowed number of identifiers uploaded within a 24 + /// hour period. The recommended approach to handle this error is to wait 30 minutes + /// and then retry the request. Note that this does not guarantee the request will + /// succeed. If it fails again, try increasing the wait time. + /// + SEGMENT_POPULATION_LIMIT = 3, } - /// A Creative that contains a zipped HTML5 bundle asset, a list of - /// third party impression trackers, and a third party click tracker. + /// An error that occurs while parsing a PQL query contained in a Statement object. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class Html5Creative : Creative { - private bool overrideSizeField; - - private bool overrideSizeFieldSpecified; - - private string[] thirdPartyImpressionTrackingUrlsField; - - private string thirdPartyClickTrackingUrlField; - - private LockedOrientation lockedOrientationField; - - private bool lockedOrientationFieldSpecified; - - private SslScanResult sslScanResultField; - - private bool sslScanResultFieldSpecified; - - private SslManualOverride sslManualOverrideField; - - private bool sslManualOverrideFieldSpecified; - - private bool isSafeFrameCompatibleField; - - private bool isSafeFrameCompatibleFieldSpecified; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class PublisherQueryLanguageSyntaxError : ApiError { + private PublisherQueryLanguageSyntaxErrorReason reasonField; - private CreativeAsset html5AssetField; + private bool reasonFieldSpecified; - /// Allows the creative size to differ from the actual HTML5 asset size. This - /// attribute is optional. + /// The error reason represented by an enum. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public bool overrideSize { + public PublisherQueryLanguageSyntaxErrorReason reason { get { - return this.overrideSizeField; + return this.reasonField; } set { - this.overrideSizeField = value; - this.overrideSizeSpecified = true; + this.reasonField = value; + this.reasonSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , + /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool overrideSizeSpecified { + public bool reasonSpecified { get { - return this.overrideSizeFieldSpecified; + return this.reasonFieldSpecified; } set { - this.overrideSizeFieldSpecified = value; + this.reasonFieldSpecified = value; } } + } - /// Impression tracking URLs to ping when this creative is displayed. This field is - /// optional. - /// - [System.Xml.Serialization.XmlElementAttribute("thirdPartyImpressionTrackingUrls", Order = 1)] - public string[] thirdPartyImpressionTrackingUrls { - get { - return this.thirdPartyImpressionTrackingUrlsField; - } - set { - this.thirdPartyImpressionTrackingUrlsField = value; - } - } - /// A click tracking URL to ping when this creative is clicked. This field is - /// optional. + /// The reasons for the target error. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "PublisherQueryLanguageSyntaxError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum PublisherQueryLanguageSyntaxErrorReason { + /// Indicates that there was a PQL syntax error. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public string thirdPartyClickTrackingUrl { - get { - return this.thirdPartyClickTrackingUrlField; - } - set { - this.thirdPartyClickTrackingUrlField = value; - } - } + UNPARSABLE = 0, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 1, + } - /// A locked orientation for this creative to be displayed in. + + /// An error that occurs while executing a PQL query contained in a Statement object. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class PublisherQueryLanguageContextError : ApiError { + private PublisherQueryLanguageContextErrorReason reasonField; + + private bool reasonFieldSpecified; + + /// The error reason represented by an enum. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public LockedOrientation lockedOrientation { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public PublisherQueryLanguageContextErrorReason reason { get { - return this.lockedOrientationField; + return this.reasonField; } set { - this.lockedOrientationField = value; - this.lockedOrientationSpecified = true; + this.reasonField = value; + this.reasonSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , + /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool lockedOrientationSpecified { + public bool reasonSpecified { get { - return this.lockedOrientationFieldSpecified; + return this.reasonFieldSpecified; } set { - this.lockedOrientationFieldSpecified = value; + this.reasonFieldSpecified = value; } } + } - /// The SSL compatibility scan result of this creative.

This attribute is - /// read-only and determined by Google.

+ + /// The reasons for the target error. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "PublisherQueryLanguageContextError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum PublisherQueryLanguageContextErrorReason { + /// Indicates that there was an error executing the PQL. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public SslScanResult sslScanResult { + UNEXECUTABLE = 0, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 1, + } + + + /// Errors related to podding fields in ad rule slots. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class PoddingError : ApiError { + private PoddingErrorReason reasonField; + + private bool reasonFieldSpecified; + + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public PoddingErrorReason reason { get { - return this.sslScanResultField; + return this.reasonField; } set { - this.sslScanResultField = value; - this.sslScanResultSpecified = true; + this.reasonField = value; + this.reasonSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , + /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool sslScanResultSpecified { + public bool reasonSpecified { get { - return this.sslScanResultFieldSpecified; + return this.reasonFieldSpecified; } set { - this.sslScanResultFieldSpecified = value; + this.reasonFieldSpecified = value; } } + } - /// The manual override for the SSL compatibility of this creative.

This - /// attribute is optional and defaults to SslManualOverride#NO_OVERRIDE.

+ + /// Describes reason for PoddingErrors. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "PoddingError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum PoddingErrorReason { + /// Invalid podding type NONE, but has podding fields filled in. Podding types are + /// defined in com.google.ads.publisher.domain.entity.adrule.export.PoddingType. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 5)] - public SslManualOverride sslManualOverride { + INVALID_PODDING_TYPE_NONE = 0, + /// Invalid podding type STANDARD, but doesn't specify the max ads in pod and max ad + /// duration podding fields. + /// + INVALID_PODDING_TYPE_STANDARD = 1, + /// Invalid podding type OPTIMIZED, but doesn't specify pod duration. + /// + INVALID_OPTIMIZED_POD_WITHOUT_DURATION = 2, + /// Invalid optimized pod that does not specify a valid max ads in pod, which must + /// either be a positive number or -1 to signify that there is no maximum. + /// + INVALID_OPTIMIZED_POD_WITHOUT_ADS = 3, + /// Min pod ad duration is greater than max pod ad duration. + /// + INVALID_POD_DURATION_RANGE = 4, + } + + + /// Errors related to incorrect permission. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class PermissionError : ApiError { + private PermissionErrorReason reasonField; + + private bool reasonFieldSpecified; + + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public PermissionErrorReason reason { get { - return this.sslManualOverrideField; + return this.reasonField; } set { - this.sslManualOverrideField = value; - this.sslManualOverrideSpecified = true; + this.reasonField = value; + this.reasonSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , + /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool sslManualOverrideSpecified { + public bool reasonSpecified { get { - return this.sslManualOverrideFieldSpecified; + return this.reasonFieldSpecified; } set { - this.sslManualOverrideFieldSpecified = value; + this.reasonFieldSpecified = value; } } + } - /// Whether the Creative is compatible for SafeFrame - /// rendering.

This attribute is optional and defaults to true.

+ + /// Describes reasons for permission errors. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "PermissionError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum PermissionErrorReason { + /// User does not have the required permission for the request. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 6)] - public bool isSafeFrameCompatible { + PERMISSION_DENIED = 0, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 1, + } + + + /// Lists errors related to parsing. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ParseError : ApiError { + private ParseErrorReason reasonField; + + private bool reasonFieldSpecified; + + /// The error reason represented by an enum. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public ParseErrorReason reason { get { - return this.isSafeFrameCompatibleField; + return this.reasonField; } set { - this.isSafeFrameCompatibleField = value; - this.isSafeFrameCompatibleSpecified = true; + this.reasonField = value; + this.reasonSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , + /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool isSafeFrameCompatibleSpecified { - get { - return this.isSafeFrameCompatibleFieldSpecified; - } - set { - this.isSafeFrameCompatibleFieldSpecified = value; - } - } - - /// The HTML5 asset. To preview the HTML5 asset, use the CreativeAsset#assetUrl. In this field, the CreativeAsset#assetByteArray must be a - /// zip bundle and the CreativeAsset#fileName must have a zip - /// extension. This attribute is required. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 7)] - public CreativeAsset html5Asset { + public bool reasonSpecified { get { - return this.html5AssetField; + return this.reasonFieldSpecified; } set { - this.html5AssetField = value; + this.reasonFieldSpecified = value; } } } - /// A Creative that has a destination url + /// The reasons for the target error. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ParseError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum ParseErrorReason { + /// Indicates an error in parsing an attribute. + /// + UNPARSABLE = 0, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 1, + } + + + /// Caused by supplying a null value for an attribute that cannot be null. /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(CustomCreative))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(BaseVideoCreative))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(VideoRedirectCreative))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(VideoCreative))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(SetTopBoxCreative))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(BaseImageRedirectCreative))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ImageRedirectOverlayCreative))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ImageRedirectCreative))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(BaseImageCreative))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ImageOverlayCreative))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ImageCreative))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(BaseAudioCreative))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(AudioRedirectCreative))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(AudioCreative))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(AspectRatioImageCreative))] [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public abstract partial class HasDestinationUrlCreative : Creative { - private string destinationUrlField; - - private DestinationUrlType destinationUrlTypeField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class NotNullError : ApiError { + private NotNullErrorReason reasonField; - private bool destinationUrlTypeFieldSpecified; + private bool reasonFieldSpecified; - /// The URL that the user is directed to if they click on the creative. This - /// attribute is required unless the destinationUrlType is DestinationUrlType#NONE, and has a maximum - /// length of 1024 characters. + /// The error reason represented by an enum. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public string destinationUrl { - get { - return this.destinationUrlField; - } - set { - this.destinationUrlField = value; - } - } - - /// The action that should be performed if the user clicks on the creative. This - /// attribute is optional and defaults to DestinationUrlType#CLICK_TO_WEB. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public DestinationUrlType destinationUrlType { + public NotNullErrorReason reason { get { - return this.destinationUrlTypeField; + return this.reasonField; } set { - this.destinationUrlTypeField = value; - this.destinationUrlTypeSpecified = true; + this.reasonField = value; + this.reasonSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , + /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool destinationUrlTypeSpecified { + public bool reasonSpecified { get { - return this.destinationUrlTypeFieldSpecified; + return this.reasonFieldSpecified; } set { - this.destinationUrlTypeFieldSpecified = value; + this.reasonFieldSpecified = value; } } } - /// The valid actions that a destination URL may perform if the user clicks on the - /// ad. + /// The reasons for the target error. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum DestinationUrlType { + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "NotNullError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum NotNullErrorReason { + /// Assuming that a method will not have more than 3 arguments, if it does, return + /// NULL + /// + ARG1_NULL = 0, + ARG2_NULL = 1, + ARG3_NULL = 2, + NULL = 3, /// The value returned if the actual value is not exposed by the requested API /// version. /// - UNKNOWN = 0, - /// Navigate to a web page. (a.k.a. "Click-through URL"). - /// - CLICK_TO_WEB = 1, - /// Start an application. - /// - CLICK_TO_APP = 2, - /// Make a phone call. - /// - CLICK_TO_CALL = 3, - /// Destination URL not present. Useful for video creatives where a landing page or - /// a product isn't necessarily applicable. - /// - NONE = 4, + UNKNOWN = 4, } - /// A Creative that contains an arbitrary HTML snippet and file assets. + /// Lists all inventory errors caused by associating a line item with a targeting + /// expression. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class CustomCreative : HasDestinationUrlCreative { - private string htmlSnippetField; - - private CustomCreativeAsset[] customCreativeAssetsField; - - private bool isInterstitialField; - - private bool isInterstitialFieldSpecified; - - private LockedOrientation lockedOrientationField; - - private bool lockedOrientationFieldSpecified; - - private SslScanResult sslScanResultField; - - private bool sslScanResultFieldSpecified; - - private SslManualOverride sslManualOverrideField; - - private bool sslManualOverrideFieldSpecified; - - private bool isSafeFrameCompatibleField; - - private bool isSafeFrameCompatibleFieldSpecified; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class InventoryTargetingError : ApiError { + private InventoryTargetingErrorReason reasonField; - private string[] thirdPartyImpressionTrackingUrlsField; + private bool reasonFieldSpecified; - /// The HTML snippet that this creative delivers. This attribute is required. + /// The error reason represented by an enum. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public string htmlSnippet { - get { - return this.htmlSnippetField; - } - set { - this.htmlSnippetField = value; - } - } - - /// A list of file assets that are associated with this creative, and can be - /// referenced in the snippet. - /// - [System.Xml.Serialization.XmlElementAttribute("customCreativeAssets", Order = 1)] - public CustomCreativeAsset[] customCreativeAssets { - get { - return this.customCreativeAssetsField; - } - set { - this.customCreativeAssetsField = value; - } - } - - /// true if this custom creative is interstitial. An interstitial - /// creative will not consider an impression served until it is fully rendered in - /// the browser. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public bool isInterstitial { + public InventoryTargetingErrorReason reason { get { - return this.isInterstitialField; + return this.reasonField; } set { - this.isInterstitialField = value; - this.isInterstitialSpecified = true; + this.reasonField = value; + this.reasonSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , + /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool isInterstitialSpecified { + public bool reasonSpecified { get { - return this.isInterstitialFieldSpecified; + return this.reasonFieldSpecified; } set { - this.isInterstitialFieldSpecified = value; + this.reasonFieldSpecified = value; } } + } - /// A locked orientation for this creative to be displayed in. + + /// The reasons for the target error. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "InventoryTargetingError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum InventoryTargetingErrorReason { + /// At least one placement or inventory unit is required /// - [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public LockedOrientation lockedOrientation { - get { - return this.lockedOrientationField; - } - set { - this.lockedOrientationField = value; - this.lockedOrientationSpecified = true; - } - } + AT_LEAST_ONE_PLACEMENT_OR_INVENTORY_UNIT_REQUIRED = 0, + /// The same inventory unit or placement cannot be targeted and excluded at the same + /// time + /// + INVENTORY_CANNOT_BE_TARGETED_AND_EXCLUDED = 1, + /// A child inventory unit cannot be targeted if its ancestor inventory unit is also + /// targeted. + /// + INVENTORY_UNIT_CANNOT_BE_TARGETED_IF_ANCESTOR_IS_TARGETED = 4, + /// A child inventory unit cannot be targeted if its ancestor inventory unit is + /// excluded. + /// + INVENTORY_UNIT_CANNOT_BE_TARGETED_IF_ANCESTOR_IS_EXCLUDED = 5, + /// A child inventory unit cannot be excluded if its ancestor inventory unit is also + /// excluded. + /// + INVENTORY_UNIT_CANNOT_BE_EXCLUDED_IF_ANCESTOR_IS_EXCLUDED = 6, + /// An explicitly targeted inventory unit cannot be targeted. + /// + EXPLICITLY_TARGETED_INVENTORY_UNIT_CANNOT_BE_TARGETED = 7, + /// An explicitly targeted inventory unit cannot be excluded. + /// + EXPLICITLY_TARGETED_INVENTORY_UNIT_CANNOT_BE_EXCLUDED = 8, + /// A landing page-only ad unit cannot be targeted. + /// + SELF_ONLY_INVENTORY_UNIT_NOT_ALLOWED = 9, + /// A landing page-only ad unit cannot be targeted if it doesn't have any children. + /// + SELF_ONLY_INVENTORY_UNIT_WITHOUT_DESCENDANTS = 10, + /// Audience segments shared from YouTube can only be targeted with inventory shared + /// from YouTube for cross selling. + /// + YOUTUBE_AUDIENCE_SEGMENTS_CAN_ONLY_BE_TARGETED_WITH_YOUTUBE_SHARED_INVENTORY = 11, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 13, + } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool lockedOrientationSpecified { - get { - return this.lockedOrientationFieldSpecified; - } - set { - this.lockedOrientationFieldSpecified = value; - } - } - /// The SSL compatibility scan result of this creative.

This attribute is - /// read-only and determined by Google.

+ /// Indicates that a server-side error has occured. s are generally not + /// the result of an invalid request or message sent by the client. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class InternalApiError : ApiError { + private InternalApiErrorReason reasonField; + + private bool reasonFieldSpecified; + + /// The error reason represented by an enum. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public SslScanResult sslScanResult { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public InternalApiErrorReason reason { get { - return this.sslScanResultField; + return this.reasonField; } set { - this.sslScanResultField = value; - this.sslScanResultSpecified = true; + this.reasonField = value; + this.reasonSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , + /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool sslScanResultSpecified { + public bool reasonSpecified { get { - return this.sslScanResultFieldSpecified; + return this.reasonFieldSpecified; } set { - this.sslScanResultFieldSpecified = value; + this.reasonFieldSpecified = value; } } + } - /// The manual override for the SSL compatibility of this creative.

This - /// attribute is optional and defaults to SslManualOverride#NO_OVERRIDE.

+ + /// The single reason for the internal API error. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "InternalApiError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum InternalApiErrorReason { + /// API encountered an unexpected internal error. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 5)] - public SslManualOverride sslManualOverride { - get { - return this.sslManualOverrideField; - } - set { - this.sslManualOverrideField = value; - this.sslManualOverrideSpecified = true; - } - } + UNEXPECTED_INTERNAL_API_ERROR = 0, + /// A temporary error occurred during the request. Please retry. + /// + TRANSIENT_ERROR = 1, + /// The cause of the error is not known or only defined in newer versions. + /// + UNKNOWN = 2, + /// The API is currently unavailable for a planned downtime. + /// + DOWNTIME = 3, + /// Mutate succeeded but server was unable to build response. Client should not + /// retry mutate. + /// + ERROR_GENERATING_RESPONSE = 4, + } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool sslManualOverrideSpecified { - get { - return this.sslManualOverrideFieldSpecified; - } - set { - this.sslManualOverrideFieldSpecified = value; - } - } - /// Whether the Creative is compatible for SafeFrame - /// rendering.

This attribute is optional and defaults to true.

+ /// Lists all errors associated with geographical targeting for a LineItem. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class GeoTargetingError : ApiError { + private GeoTargetingErrorReason reasonField; + + private bool reasonFieldSpecified; + + /// The error reason represented by an enum. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 6)] - public bool isSafeFrameCompatible { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public GeoTargetingErrorReason reason { get { - return this.isSafeFrameCompatibleField; + return this.reasonField; } set { - this.isSafeFrameCompatibleField = value; - this.isSafeFrameCompatibleSpecified = true; + this.reasonField = value; + this.reasonSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , + /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool isSafeFrameCompatibleSpecified { + public bool reasonSpecified { get { - return this.isSafeFrameCompatibleFieldSpecified; + return this.reasonFieldSpecified; } set { - this.isSafeFrameCompatibleFieldSpecified = value; + this.reasonFieldSpecified = value; } } + } - /// A list of impression tracking URLs to ping when this creative is displayed. This - /// field is optional. + + /// The reasons for the target error. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "GeoTargetingError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum GeoTargetingErrorReason { + /// A location that is targeted cannot also be excluded. /// - [System.Xml.Serialization.XmlElementAttribute("thirdPartyImpressionTrackingUrls", Order = 7)] - public string[] thirdPartyImpressionTrackingUrls { - get { - return this.thirdPartyImpressionTrackingUrlsField; - } - set { - this.thirdPartyImpressionTrackingUrlsField = value; - } - } + TARGETED_LOCATIONS_NOT_EXCLUDABLE = 0, + /// Excluded locations cannot have any of their children targeted. + /// + EXCLUDED_LOCATIONS_CANNOT_HAVE_CHILDREN_TARGETED = 1, + /// Postal codes cannot be excluded. + /// + POSTAL_CODES_CANNOT_BE_EXCLUDED = 2, + /// Indicates that location targeting is not allowed. + /// + UNTARGETABLE_LOCATION = 3, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 4, } - /// A base type for video creatives. + /// Errors related to feature management. If you attempt using a feature that is not + /// available to the current network you'll receive a FeatureError with the missing + /// feature as the trigger. /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(VideoRedirectCreative))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(VideoCreative))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(SetTopBoxCreative))] [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public abstract partial class BaseVideoCreative : HasDestinationUrlCreative { - private int durationField; - - private bool durationFieldSpecified; - - private bool allowDurationOverrideField; - - private bool allowDurationOverrideFieldSpecified; - - private ConversionEvent_TrackingUrlsMapEntry[] trackingUrlsField; - - private long[] companionCreativeIdsField; - - private string customParametersField; - - private string adIdField; - - private AdIdType adIdTypeField; - - private bool adIdTypeFieldSpecified; - - private SkippableAdType skippableAdTypeField; - - private bool skippableAdTypeFieldSpecified; - - private string vastPreviewUrlField; - - private SslScanResult sslScanResultField; - - private bool sslScanResultFieldSpecified; - - private SslManualOverride sslManualOverrideField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class FeatureError : ApiError { + private FeatureErrorReason reasonField; - private bool sslManualOverrideFieldSpecified; + private bool reasonFieldSpecified; - /// The expected duration of this creative in milliseconds. - /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public int duration { + public FeatureErrorReason reason { get { - return this.durationField; + return this.reasonField; } set { - this.durationField = value; - this.durationSpecified = true; + this.reasonField = value; + this.reasonSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , + /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool durationSpecified { + public bool reasonSpecified { get { - return this.durationFieldSpecified; + return this.reasonFieldSpecified; } set { - this.durationFieldSpecified = value; + this.reasonFieldSpecified = value; } } + } - /// Allows the creative duration to differ from the actual asset durations. This - /// attribute is optional. + + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "FeatureError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum FeatureErrorReason { + /// A feature is being used that is not enabled on the current network. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public bool allowDurationOverride { + MISSING_FEATURE = 0, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 1, + } + + + /// Lists all errors related to CustomTargetingKey + /// and CustomTargetingValue objects. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class CustomTargetingError : ApiError { + private CustomTargetingErrorReason reasonField; + + private bool reasonFieldSpecified; + + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public CustomTargetingErrorReason reason { get { - return this.allowDurationOverrideField; + return this.reasonField; } set { - this.allowDurationOverrideField = value; - this.allowDurationOverrideSpecified = true; + this.reasonField = value; + this.reasonSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , + /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool allowDurationOverrideSpecified { + public bool reasonSpecified { get { - return this.allowDurationOverrideFieldSpecified; + return this.reasonFieldSpecified; } set { - this.allowDurationOverrideFieldSpecified = value; + this.reasonFieldSpecified = value; } } + } - /// A map from ConversionEvent to a list of URLs that will be pinged - /// when the event happens. This attribute is optional. - /// - [System.Xml.Serialization.XmlElementAttribute("trackingUrls", Order = 2)] - public ConversionEvent_TrackingUrlsMapEntry[] trackingUrls { - get { - return this.trackingUrlsField; - } - set { - this.trackingUrlsField = value; - } - } - /// The IDs of the companion creatives that are associated with this creative. This - /// attribute is optional. + /// The reasons for the target error. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CustomTargetingError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum CustomTargetingErrorReason { + /// Requested CustomTargetingKey is not found. /// - [System.Xml.Serialization.XmlElementAttribute("companionCreativeIds", Order = 3)] - public long[] companionCreativeIds { - get { - return this.companionCreativeIdsField; - } - set { - this.companionCreativeIdsField = value; - } - } - - /// A comma separated key=value list of parameters that will be supplied to the - /// creative, written into the VAST node. This attribute is optional. + KEY_NOT_FOUND = 0, + /// Number of CustomTargetingKey objects created + /// exceeds the limit allowed for the network. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public string customParameters { - get { - return this.customParametersField; - } - set { - this.customParametersField = value; - } - } - - /// The ad id associated with the video as defined by the registry. - /// This field is required if adIdType is not AdIdType#NONE. + KEY_COUNT_TOO_LARGE = 1, + /// CustomTargetingKey with the same CustomTargetingKey#name already exists. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 5)] - public string adId { - get { - return this.adIdField; - } - set { - this.adIdField = value; - } - } - - /// The registry which the ad id of this creative belongs to. This field is optional - /// and defaults to AdIdType#NONE. + KEY_NAME_DUPLICATE = 2, + /// CustomTargetingKey#name is empty. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 6)] - public AdIdType adIdType { - get { - return this.adIdTypeField; - } - set { - this.adIdTypeField = value; - this.adIdTypeSpecified = true; - } - } + KEY_NAME_EMPTY = 3, + /// CustomTargetingKey#name is too long. + /// + KEY_NAME_INVALID_LENGTH = 4, + /// CustomTargetingKey#name contains + /// unsupported or reserved characters. + /// + KEY_NAME_INVALID_CHARS = 5, + /// CustomTargetingKey#name matches one of the + /// reserved custom targeting key names. + /// + KEY_NAME_RESERVED = 6, + /// CustomTargetingKey#displayName is + /// too long. + /// + KEY_DISPLAY_NAME_INVALID_LENGTH = 7, + /// Key is not active. + /// + KEY_STATUS_NOT_ACTIVE = 37, + /// Requested CustomTargetingValue is not found. + /// + VALUE_NOT_FOUND = 8, + /// The WHERE clause in the Statement#query must always contain CustomTargetingValue#customTargetingKeyId + /// as one of its columns in a way that it is AND'ed with the rest of the query. + /// + GET_VALUES_BY_STATEMENT_MUST_CONTAIN_KEY_ID = 9, + /// The number of CustomTargetingValue objects + /// associated with a CustomTargetingKey exceeds + /// the network limit. This is only applicable for keys of type . + /// + VALUE_COUNT_FOR_KEY_TOO_LARGE = 10, + /// CustomTargetingValue with the same CustomTargetingValue#name already exists. + /// + VALUE_NAME_DUPLICATE = 11, + /// CustomTargetingValue#name is empty. + /// + VALUE_NAME_EMPTY = 12, + /// CustomTargetingValue#name is too long. + /// + VALUE_NAME_INVALID_LENGTH = 13, + /// CustomTargetingValue#name contains + /// unsupported or reserved characters. + /// + VALUE_NAME_INVALID_CHARS = 14, + /// CustomTargetingValue#displayName + /// is too long. + /// + VALUE_DISPLAY_NAME_INVALID_LENGTH = 15, + /// Only Ad Manager 360 networks can have CustomTargetingValue#matchType other + /// than CustomTargetingValue.MatchType#EXACT. + /// + VALUE_MATCH_TYPE_NOT_ALLOWED = 16, + /// You can only create CustomTargetingValue + /// objects with match type CustomTargetingValue.MatchType#EXACT + /// when associating with CustomTargetingKey + /// objects of type CustomTargetingKey.Type#PREDEFINED + /// + VALUE_MATCH_TYPE_NOT_EXACT_FOR_PREDEFINED_KEY = 17, + /// CustomTargetingValue object cannot have match + /// type of CustomTargetingValue.MatchType#SUFFIX + /// when adding a CustomTargetingValue to a line + /// item. + /// + SUFFIX_MATCH_TYPE_NOT_ALLOWED = 18, + /// CustomTargetingValue object cannot have match + /// type of CustomTargetingValue.MatchType#CONTAINS + /// when adding a CustomTargetingValue to + /// targeting expression of a line item. + /// + CONTAINS_MATCH_TYPE_NOT_ALLOWED = 19, + /// Value is not active. + /// + VALUE_STATUS_NOT_ACTIVE = 38, + /// The CustomTargetingKey does not have any CustomTargetingValue associated with it. + /// + KEY_WITH_MISSING_VALUES = 20, + /// The CustomTargetingKey has a CustomTargetingValue specified for which the + /// value is not a valid child. + /// + INVALID_VALUE_FOR_KEY = 35, + /// CustomCriteriaSet.LogicalOperator#OR + /// operation cannot be applied to values with different keys. + /// + CANNOT_OR_DIFFERENT_KEYS = 21, + /// Targeting expression is invalid. This can happen if the sequence of operators is + /// wrong, or a node contains invalid number of children. + /// + INVALID_TARGETING_EXPRESSION = 22, + /// The key has been deleted. CustomCriteria cannot + /// have deleted keys. + /// + DELETED_KEY_CANNOT_BE_USED_FOR_TARGETING = 23, + /// The value has been deleted. CustomCriteria cannot + /// have deleted values. + /// + DELETED_VALUE_CANNOT_BE_USED_FOR_TARGETING = 24, + /// The key is set as the video browse-by key, which cannot be used for custom + /// targeting. + /// + VIDEO_BROWSE_BY_KEY_CANNOT_BE_USED_FOR_CUSTOM_TARGETING = 25, + /// Cannot delete a custom criteria key that is targeted by an active partner + /// assignment. + /// + CANNOT_DELETE_CUSTOM_KEY_USED_IN_PARTNER_ASSIGNMENT_TARGETING = 33, + /// Cannot delete a custom criteria value that is targeted by an active partner + /// assignment. + /// + CANNOT_DELETE_CUSTOM_VALUE_USED_IN_PARTNER_ASSIGNMENT_TARGETING = 34, + /// AudienceSegment object cannot be targeted. + /// + CANNOT_TARGET_AUDIENCE_SEGMENT = 26, + /// Third party AudienceSegment cannot be targeted. + /// + CANNOT_TARGET_THIRD_PARTY_AUDIENCE_SEGMENT = 39, + /// Inactive AudienceSegment object cannot be + /// targeted. + /// + CANNOT_TARGET_INACTIVE_AUDIENCE_SEGMENT = 27, + /// Targeted AudienceSegment object is not valid. + /// + INVALID_AUDIENCE_SEGMENTS = 28, + /// Mapped metadata key-values are deprecated and cannot be targeted. + /// + CANNOT_TARGET_MAPPED_METADATA = 36, + /// Targeted AudienceSegment objects have not been + /// approved. + /// + ONLY_APPROVED_AUDIENCE_SEGMENTS_CAN_BE_TARGETED = 29, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 30, + } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool adIdTypeSpecified { - get { - return this.adIdTypeFieldSpecified; - } - set { - this.adIdTypeFieldSpecified = value; - } - } - /// The type of skippable ad. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 7)] - public SkippableAdType skippableAdType { + /// A place for common errors that can be used across services. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class CommonError : ApiError { + private CommonErrorReason reasonField; + + private bool reasonFieldSpecified; + + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public CommonErrorReason reason { get { - return this.skippableAdTypeField; + return this.reasonField; } set { - this.skippableAdTypeField = value; - this.skippableAdTypeSpecified = true; + this.reasonField = value; + this.reasonSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , + /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool skippableAdTypeSpecified { + public bool reasonSpecified { get { - return this.skippableAdTypeFieldSpecified; + return this.reasonFieldSpecified; } set { - this.skippableAdTypeFieldSpecified = value; + this.reasonFieldSpecified = value; } } + } - /// An ad tag URL that will return a preview of the VAST XML response specific to - /// this creative. This attribute is read-only. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 8)] - public string vastPreviewUrl { - get { - return this.vastPreviewUrlField; - } - set { - this.vastPreviewUrlField = value; - } - } - /// The SSL compatibility scan result of this creative.

This attribute is - /// read-only and determined by Google.

+ /// Describes reasons for common errors + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CommonError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum CommonErrorReason { + /// Indicates that an attempt was made to retrieve an entity that does not exist. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 9)] - public SslScanResult sslScanResult { + NOT_FOUND = 0, + /// Indicates that an attempt was made to create an entity that already exists. + /// + ALREADY_EXISTS = 1, + /// Indicates that a value is not applicable for given use case. + /// + NOT_APPLICABLE = 6, + /// Indicates that two elements in the collection were identical. + /// + DUPLICATE_OBJECT = 2, + /// Indicates that an attempt was made to change an immutable field. + /// + CANNOT_UPDATE = 3, + /// Indicates that the requested operation is not supported. + /// + UNSUPPORTED_OPERATION = 7, + /// Indicates that another request attempted to update the same data in the same + /// network at about the same time. Please wait and try the request again. + /// + CONCURRENT_MODIFICATION = 4, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 5, + } + + + /// Error for the size of the collection being too large + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class CollectionSizeError : ApiError { + private CollectionSizeErrorReason reasonField; + + private bool reasonFieldSpecified; + + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public CollectionSizeErrorReason reason { get { - return this.sslScanResultField; + return this.reasonField; } set { - this.sslScanResultField = value; - this.sslScanResultSpecified = true; + this.reasonField = value; + this.reasonSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , + /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool sslScanResultSpecified { + public bool reasonSpecified { get { - return this.sslScanResultFieldSpecified; + return this.reasonFieldSpecified; } set { - this.sslScanResultFieldSpecified = value; + this.reasonFieldSpecified = value; } } + } - /// The manual override for the SSL compatibility of this creative.

This - /// attribute is optional and defaults to SslManualOverride#NO_OVERRIDE.

+ + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CollectionSizeError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum CollectionSizeErrorReason { + TOO_LARGE = 0, + /// The value returned if the actual value is not exposed by the requested API + /// version. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 10)] - public SslManualOverride sslManualOverride { + UNKNOWN = 1, + } + + + /// An error for an exception that occurred when authenticating. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class AuthenticationError : ApiError { + private AuthenticationErrorReason reasonField; + + private bool reasonFieldSpecified; + + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public AuthenticationErrorReason reason { get { - return this.sslManualOverrideField; + return this.reasonField; } set { - this.sslManualOverrideField = value; - this.sslManualOverrideSpecified = true; + this.reasonField = value; + this.reasonSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , + /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool sslManualOverrideSpecified { + public bool reasonSpecified { get { - return this.sslManualOverrideFieldSpecified; + return this.reasonFieldSpecified; } set { - this.sslManualOverrideFieldSpecified = value; + this.reasonFieldSpecified = value; } } } - /// The registry that an ad ID belongs to. - /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum AdIdType { - /// The value returned if the actual value is not exposed by the requested API - /// version. + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AuthenticationError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum AuthenticationErrorReason { + /// The SOAP message contains a request header with an ambiguous definition of the + /// authentication header fields. This means either the authToken and + /// oAuthToken fields were both null or both were specified. Exactly + /// one value should be specified with each request. /// - UNKNOWN = 0, - /// The ad ID is registered with ad-id.org. + AMBIGUOUS_SOAP_REQUEST_HEADER = 0, + /// The login provided is invalid. /// - AD_ID = 1, - /// The ad ID is registered with clearcast.co.uk. + INVALID_EMAIL = 1, + /// Tried to authenticate with provided information, but failed. /// - CLEARCAST = 2, - /// The creative does not have an ad ID outside of Ad Manager. + AUTHENTICATION_FAILED = 2, + /// The OAuth provided is invalid. /// - NONE = 3, - } - - - /// The different types of skippable ads. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum SkippableAdType { - /// The value returned if the actual value is not exposed by the requested API - /// version. + INVALID_OAUTH_SIGNATURE = 3, + /// The specified service to use was not recognized. /// - UNKNOWN = 0, - /// Skippable ad type is disabled. + INVALID_SERVICE = 4, + /// The SOAP message is missing a request header with an and optional + /// networkCode. /// - DISABLED = 1, - /// Skippable ad type is enabled. + MISSING_SOAP_REQUEST_HEADER = 5, + /// The HTTP request is missing a request header with an /// - ENABLED = 2, - /// Skippable in-stream ad type. + MISSING_AUTHENTICATION_HTTP_HEADER = 6, + /// The request is missing an authToken /// - INSTREAM_SELECT = 3, - /// Any skippable or not skippable. This is only for programmatic case when the - /// creative skippability is decided by the buyside. + MISSING_AUTHENTICATION = 7, + /// The network does not have API access enabled. /// - ANY = 4, + NETWORK_API_ACCESS_DISABLED = 16, + /// The user is not associated with any network. + /// + NO_NETWORKS_TO_ACCESS = 9, + /// No network for the given networkCode was found. + /// + NETWORK_NOT_FOUND = 10, + /// The user has access to more than one network, but did not provide a + /// networkCode. + /// + NETWORK_CODE_REQUIRED = 11, + /// An error happened on the server side during connection to authentication + /// service. + /// + CONNECTION_ERROR = 12, + /// The user tried to create a test network using an account that already is + /// associated with a network. + /// + GOOGLE_ACCOUNT_ALREADY_ASSOCIATED_WITH_NETWORK = 13, + /// The account is blocked and under investigation by the collections team. Please + /// contact Google for more information. + /// + UNDER_INVESTIGATION = 15, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 14, } - /// A Creative that contains externally hosted video ads and is served - /// via VAST XML. + /// Errors related to the usage of API versions. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class VideoRedirectCreative : BaseVideoCreative { - private VideoRedirectAsset[] videoAssetsField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ApiVersionError : ApiError { + private ApiVersionErrorReason reasonField; - private VideoRedirectAsset mezzanineFileField; + private bool reasonFieldSpecified; - /// The video creative assets. - /// - [System.Xml.Serialization.XmlElementAttribute("videoAssets", Order = 0)] - public VideoRedirectAsset[] videoAssets { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public ApiVersionErrorReason reason { get { - return this.videoAssetsField; + return this.reasonField; } set { - this.videoAssetsField = value; + this.reasonField = value; + this.reasonSpecified = true; } } - /// The high quality mezzanine video asset. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public VideoRedirectAsset mezzanineFile { + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool reasonSpecified { get { - return this.mezzanineFileField; + return this.reasonFieldSpecified; } set { - this.mezzanineFileField = value; + this.reasonFieldSpecified = value; } } } - /// A Creative that contains Ad Manager hosted video ads and is served - /// via VAST XML. - /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class VideoCreative : BaseVideoCreative { - private string videoSourceUrlField; - - /// A URL that points to the source media that will be used for transcoding. + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ApiVersionError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum ApiVersionErrorReason { + /// Indicates that the operation is not allowed in the version the request was made + /// in. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public string videoSourceUrl { - get { - return this.videoSourceUrlField; - } - set { - this.videoSourceUrlField = value; - } - } + UPDATE_TO_NEWER_VERSION = 0, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 1, } - /// A Creative that will be served into cable set-top boxes. There are - /// no assets for this creative type, as they are hosted by external cable systems. + /// Lists all errors associated with ad rule targeting. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class SetTopBoxCreative : BaseVideoCreative { - private string externalAssetIdField; - - private string providerIdField; - - private string[] availabilityRegionIdsField; - - private DateTime licenseWindowStartDateTimeField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class AdRuleTargetingError : ApiError { + private AdRuleTargetingErrorReason reasonField; - private DateTime licenseWindowEndDateTimeField; + private bool reasonFieldSpecified; - /// An external asset identifier that is used in the cable system. This attribute is - /// read-only after creation. - /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public string externalAssetId { + public AdRuleTargetingErrorReason reason { get { - return this.externalAssetIdField; + return this.reasonField; } set { - this.externalAssetIdField = value; + this.reasonField = value; + this.reasonSpecified = true; } } - /// An identifier for the provider in the cable system. This attribute is read-only - /// after creation. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public string providerId { + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool reasonSpecified { get { - return this.providerIdField; + return this.reasonFieldSpecified; } set { - this.providerIdField = value; + this.reasonFieldSpecified = value; } } + } - /// IDs of regions where the creative is available to serve from a local cable - /// video-on-demand server. This attribute is optional. - /// - [System.Xml.Serialization.XmlElementAttribute("availabilityRegionIds", Order = 2)] - public string[] availabilityRegionIds { - get { - return this.availabilityRegionIdsField; - } - set { - this.availabilityRegionIdsField = value; - } - } - /// The date and time that this creative can begin serving from a local cable - /// video-on-demand server. This attribute is optional. + /// Describes reasons for AdRuleTargetingError ad rule targeting + /// errors. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AdRuleTargetingError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum AdRuleTargetingErrorReason { + /// Cannot target video positions. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public DateTime licenseWindowStartDateTime { + VIDEO_POSITION_TARGETING_NOT_ALLOWED = 0, + /// As part of COPPA requirements, custom targeting for session ad rules requires + /// exact custom value matching. + /// + EXACT_CUSTOM_VALUE_TARGETING_REQUIRED = 2, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 1, + } + + + /// Errors related to ad rule slots. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class AdRuleSlotError : ApiError { + private AdRuleSlotErrorReason reasonField; + + private bool reasonFieldSpecified; + + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public AdRuleSlotErrorReason reason { get { - return this.licenseWindowStartDateTimeField; + return this.reasonField; } set { - this.licenseWindowStartDateTimeField = value; + this.reasonField = value; + this.reasonSpecified = true; } } - /// The date and time that this creative can no longer be served from a local cable - /// video-on-demand server. This attribute is optional. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public DateTime licenseWindowEndDateTime { + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool reasonSpecified { get { - return this.licenseWindowEndDateTimeField; + return this.reasonFieldSpecified; } set { - this.licenseWindowEndDateTimeField = value; + this.reasonFieldSpecified = value; } } } - /// The base type for creatives that load an image asset from a specified URL. + /// Describes reason for AdRuleSlotErrors. /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ImageRedirectOverlayCreative))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ImageRedirectCreative))] [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public abstract partial class BaseImageRedirectCreative : HasDestinationUrlCreative { - private string imageUrlField; - - /// The URL where the actual asset resides. This attribute is required and has a - /// maximum length of 1024 characters. + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AdRuleSlotError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum AdRuleSlotErrorReason { + /// Has a different status than the ad rule to which it belongs. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public string imageUrl { - get { - return this.imageUrlField; - } - set { - this.imageUrlField = value; - } - } + DIFFERENT_STATUS_THAN_AD_RULE = 0, + /// Min video ad duration is greater than max video ad duration. + /// + INVALID_VIDEO_AD_DURATION_RANGE = 1, + /// Video mid-roll frequency type other than NONE for pre-roll or post-roll. + /// + INVALID_VIDEO_MIDROLL_FREQUENCY_TYPE = 2, + /// Invalid format for video mid-roll frequency when expecting a CSV list of + /// numbers. Valid formats are the following:
  • empty
  • + ///
  • comma-separated list of numbers (time milliseconds or cue points)
  • a + /// single number (every n milliseconds or cue points, or one specific time / cue + /// point)
+ ///
+ MALFORMED_VIDEO_MIDROLL_FREQUENCY_CSV = 3, + /// Invalid format for video mid-roll frequency when expecting a single number only, + /// e.g., every n seconds or every n cue points. + /// + MALFORMED_VIDEO_MIDROLL_FREQUENCY_SINGLE_NUMBER = 4, + /// Min overlay ad duration is greater than max overlay ad duration. + /// + INVALID_OVERLAY_AD_DURATION_RANGE = 5, + /// Overlay mid-roll frequency type other than NONE for pre-roll or post-roll. + /// + INVALID_OVERLAY_MIDROLL_FREQUENCY_TYPE = 6, + /// Invalid format for overlay mid-roll frequency for list of numbers. See valid + /// formats above. + /// + MALFORMED_OVERLAY_MIDROLL_FREQUENCY_CSV = 7, + /// Invalid format for overlay mid-roll frequency for a single number. + /// + MALFORMED_OVERLAY_MIDROLL_FREQUENCY_SINGLE_NUMBER = 8, + /// Non-positive bumper duration when expecting a positive number. + /// + INVALID_BUMPER_MAX_DURATION = 9, + /// At most one mid-roll can be set to disallow ads. + /// + TOO_MANY_MIDROLL_SLOTS_WITHOUT_ADS = 11, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 10, } - /// An overlay Creative that loads an image asset from a specified URL - /// and is served via VAST XML. Overlays cover part of the video content they are - /// displayed on top of. This creative is read only. + /// Errors associated with ad rule priorities. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ImageRedirectOverlayCreative : BaseImageRedirectCreative { - private Size assetSizeField; - - private int durationField; - - private bool durationFieldSpecified; - - private long[] companionCreativeIdsField; - - private ConversionEvent_TrackingUrlsMapEntry[] trackingUrlsField; - - private string customParametersField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class AdRulePriorityError : ApiError { + private AdRulePriorityErrorReason reasonField; - private string vastPreviewUrlField; + private bool reasonFieldSpecified; - /// The size of the image asset. Note that this may differ from #size if the asset is not expected to fill the entire video - /// player. This attribute is optional. - /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public Size assetSize { - get { - return this.assetSizeField; - } - set { - this.assetSizeField = value; - } - } - - /// Minimum suggested duration in milliseconds. This attribute is optional. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public int duration { + public AdRulePriorityErrorReason reason { get { - return this.durationField; + return this.reasonField; } set { - this.durationField = value; - this.durationSpecified = true; + this.reasonField = value; + this.reasonSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , + /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool durationSpecified { + public bool reasonSpecified { get { - return this.durationFieldSpecified; + return this.reasonFieldSpecified; } set { - this.durationFieldSpecified = value; + this.reasonFieldSpecified = value; } } + } - /// The IDs of the companion creatives that are associated with this creative. This - /// attribute is optional. - /// - [System.Xml.Serialization.XmlElementAttribute("companionCreativeIds", Order = 2)] - public long[] companionCreativeIds { - get { - return this.companionCreativeIdsField; - } - set { - this.companionCreativeIdsField = value; - } - } - /// A map from ConversionEvent to a list of URLs that will be pinged - /// when the event happens. This attribute is optional. + /// Reasons for an AdRulePriorityError. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AdRulePriorityError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum AdRulePriorityErrorReason { + /// Ad rules must have unique priorities. /// - [System.Xml.Serialization.XmlElementAttribute("trackingUrls", Order = 3)] - public ConversionEvent_TrackingUrlsMapEntry[] trackingUrls { + DUPLICATE_PRIORITY = 0, + /// One or more priorities are missing. + /// + PRIORITIES_NOT_SEQUENTIAL = 1, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 2, + } + + + /// Errors related to ad rule frequency caps + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class AdRuleFrequencyCapError : ApiError { + private AdRuleFrequencyCapErrorReason reasonField; + + private bool reasonFieldSpecified; + + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public AdRuleFrequencyCapErrorReason reason { get { - return this.trackingUrlsField; + return this.reasonField; } set { - this.trackingUrlsField = value; + this.reasonField = value; + this.reasonSpecified = true; } } - /// A comma separated key=value list of parameters that will be supplied to the - /// creative, written into the VAST node. This attribute is optional. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public string customParameters { + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool reasonSpecified { get { - return this.customParametersField; + return this.reasonFieldSpecified; } set { - this.customParametersField = value; + this.reasonFieldSpecified = value; } } + } - /// An ad tag URL that will return a preview of the VAST XML response specific to - /// this creative. This attribute is read-only. + + /// Describes reason for AdRuleFrequencyCapErrors. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AdRuleFrequencyCapError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum AdRuleFrequencyCapErrorReason { + /// The ad rule specifies that frequency caps should be turned on, but then none of + /// the frequency caps have actually been set. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 5)] - public string vastPreviewUrl { - get { - return this.vastPreviewUrlField; - } - set { - this.vastPreviewUrlField = value; - } - } + NO_FREQUENCY_CAPS_SPECIFIED_WHEN_FREQUENCY_CAPS_TURNED_ON = 0, + /// The ad rule specifies that frequency caps should not be turned on, but then some + /// frequency caps were actually set. + /// + FREQUENCY_CAPS_SPECIFIED_WHEN_FREQUENCY_CAPS_TURNED_OFF = 1, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 2, } - /// A Creative that loads an image asset from a specified URL. + /// Errors ad rule break template objects. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ImageRedirectCreative : BaseImageRedirectCreative { - private string altTextField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class AdRuleError : ApiError { + private AdRuleErrorReason reasonField; - private string[] thirdPartyImpressionTrackingUrlsField; + private bool reasonFieldSpecified; - /// Alternative text to be rendered along with the creative used mainly for - /// accessibility. This field is optional and has a maximum length of 500 - /// characters. - /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public string altText { + public AdRuleErrorReason reason { get { - return this.altTextField; + return this.reasonField; } set { - this.altTextField = value; + this.reasonField = value; + this.reasonSpecified = true; } } - /// A list of impression tracking URL to ping when this creative is displayed. This - /// field is optional and each string has a maximum length of 1024 characters. - /// - [System.Xml.Serialization.XmlElementAttribute("thirdPartyImpressionTrackingUrls", Order = 1)] - public string[] thirdPartyImpressionTrackingUrls { + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool reasonSpecified { get { - return this.thirdPartyImpressionTrackingUrlsField; + return this.reasonFieldSpecified; } set { - this.thirdPartyImpressionTrackingUrlsField = value; + this.reasonFieldSpecified = value; } } } - /// The base type for creatives that display an image. + /// Describes reason for AdRuleErrors. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AdRuleError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum AdRuleErrorReason { + /// The name contains unsupported or reserved characters. + /// + NAME_CONTAINS_INVALID_CHARACTERS = 0, + /// The break template must have exactly one flexible ad spot. + /// + BREAK_TEMPLATE_MUST_HAVE_EXACTLY_ONE_FLEXIBLE_AD_SPOT = 1, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 2, + } + + + /// Lists all errors associated with ad rule start and end dates. /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ImageOverlayCreative))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ImageCreative))] [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public abstract partial class BaseImageCreative : HasDestinationUrlCreative { - private bool overrideSizeField; - - private bool overrideSizeFieldSpecified; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class AdRuleDateError : ApiError { + private AdRuleDateErrorReason reasonField; - private CreativeAsset primaryImageAssetField; + private bool reasonFieldSpecified; - /// Allows the creative size to differ from the actual image asset size. This - /// attribute is optional. - /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public bool overrideSize { + public AdRuleDateErrorReason reason { get { - return this.overrideSizeField; + return this.reasonField; } set { - this.overrideSizeField = value; - this.overrideSizeSpecified = true; + this.reasonField = value; + this.reasonSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , + /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool overrideSizeSpecified { + public bool reasonSpecified { get { - return this.overrideSizeFieldSpecified; + return this.reasonFieldSpecified; } set { - this.overrideSizeFieldSpecified = value; + this.reasonFieldSpecified = value; } } + } - /// The primary image asset associated with this creative. This attribute is - /// required. + + /// Describes reasons for AdRuleDateErrors. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AdRuleDateError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum AdRuleDateErrorReason { + /// Cannot create a new ad rule with a start date in the past. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public CreativeAsset primaryImageAsset { - get { - return this.primaryImageAssetField; - } - set { - this.primaryImageAssetField = value; - } - } + START_DATE_TIME_IS_IN_PAST = 0, + /// Cannot update an existing ad rule that has already completely passed with a new + /// end date that is still in the past. + /// + END_DATE_TIME_IS_IN_PAST = 1, + /// End date must be after the start date. + /// + END_DATE_TIME_NOT_AFTER_START_TIME = 2, + /// DateTimes after 1 January 2037 are not supported. + /// + END_DATE_TIME_TOO_LATE = 3, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 4, } - /// An overlay Creative that displays an image and is served via VAST - /// 2.0 XML. Overlays cover part of the video content they are displayed on top of. - /// This creative is read only prior to v201705. + /// A AdSpot is a targetable entity used in the creation of AdRule objects.

A ad spot contains a variable number of ads + /// and has constraints (ad duration, reservation type, etc) on the ads that can + /// appear in it.

///
[System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ImageOverlayCreative : BaseImageCreative { - private long[] companionCreativeIdsField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class AdSpot { + private long idField; - private ConversionEvent_TrackingUrlsMapEntry[] trackingUrlsField; + private bool idFieldSpecified; - private LockedOrientation lockedOrientationField; + private string nameField; - private bool lockedOrientationFieldSpecified; + private string displayNameField; - private string customParametersField; + private bool customSpotField; - private int durationField; + private bool customSpotFieldSpecified; - private bool durationFieldSpecified; + private bool flexibleField; - private string vastPreviewUrlField; + private bool flexibleFieldSpecified; - /// The IDs of the companion creatives that are associated with this creative. This - /// attribute is optional. This attribute is read-only. + private long maxDurationMillisField; + + private bool maxDurationMillisFieldSpecified; + + private int maxNumberOfAdsField; + + private bool maxNumberOfAdsFieldSpecified; + + private AdSpotTargetingType targetingTypeField; + + private bool targetingTypeFieldSpecified; + + private bool backfillBlockedField; + + private bool backfillBlockedFieldSpecified; + + private LineItemType[] allowedLineItemTypesField; + + private bool inventorySharingBlockedField; + + private bool inventorySharingBlockedFieldSpecified; + + /// The unique ID of the AdSpot. This value is readonly and is + /// assigned by Google. /// - [System.Xml.Serialization.XmlElementAttribute("companionCreativeIds", Order = 0)] - public long[] companionCreativeIds { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public long id { get { - return this.companionCreativeIdsField; + return this.idField; } set { - this.companionCreativeIdsField = value; + this.idField = value; + this.idSpecified = true; } } - /// A map from ConversionEvent to a list of URLs that will be pinged - /// when the event happens. This attribute is optional. - /// - [System.Xml.Serialization.XmlElementAttribute("trackingUrls", Order = 1)] - public ConversionEvent_TrackingUrlsMapEntry[] trackingUrls { + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool idSpecified { get { - return this.trackingUrlsField; + return this.idFieldSpecified; } set { - this.trackingUrlsField = value; + this.idFieldSpecified = value; } } - /// A locked orientation for this creative to be displayed in. + /// Name of the AdSpot. The name is case insenstive and can be + /// referenced in ad tags. This value is required if customSpot is + /// true, and cannot be set otherwise.

You can use alphanumeric characters and + /// symbols other than the following: ", ', =, !, +, #, *, ~, ;, ^, (, ), <, + /// >, [, ], the white space character.

///
- [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public LockedOrientation lockedOrientation { + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public string name { get { - return this.lockedOrientationField; + return this.nameField; } set { - this.lockedOrientationField = value; - this.lockedOrientationSpecified = true; + this.nameField = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool lockedOrientationSpecified { + /// Descriptive name for the AdSpot.This value is optional if + /// customSpot is true, and cannot be set otherwise. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public string displayName { get { - return this.lockedOrientationFieldSpecified; + return this.displayNameField; } set { - this.lockedOrientationFieldSpecified = value; + this.displayNameField = value; } } - /// A comma separated key=value list of parameters that will be supplied to the - /// creative, written into the VAST node. This attribute is optional. + /// Whether this ad spot is a custom spot. This field is optional and defaults to + /// false.

Custom spots can be reused and targeted in the targeting picker.

///
[System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public string customParameters { + public bool customSpot { get { - return this.customParametersField; + return this.customSpotField; } set { - this.customParametersField = value; + this.customSpotField = value; + this.customSpotSpecified = true; } } - /// Minimum suggested duration in milliseconds. This attribute is optional. + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool customSpotSpecified { + get { + return this.customSpotFieldSpecified; + } + set { + this.customSpotFieldSpecified = value; + } + } + + /// Whether this ad spot is a flexible spot. This field is optional and defaults to + /// false.

Flexible spots are allowed to have no max number of ads.

///
[System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public int duration { + public bool flexible { get { - return this.durationField; + return this.flexibleField; } set { - this.durationField = value; - this.durationSpecified = true; + this.flexibleField = value; + this.flexibleSpecified = true; } } - /// true, if a value is specified for true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool durationSpecified { + public bool flexibleSpecified { get { - return this.durationFieldSpecified; + return this.flexibleFieldSpecified; } set { - this.durationFieldSpecified = value; + this.flexibleFieldSpecified = value; } } - /// An ad tag URL that will return a preview of the VAST XML response specific to - /// this creative. This attribute is read-only. + /// The maximum total duration for this AdSpot. This field is + /// optional, defaults to 0, and supports precision to the nearest second. /// [System.Xml.Serialization.XmlElementAttribute(Order = 5)] - public string vastPreviewUrl { + public long maxDurationMillis { get { - return this.vastPreviewUrlField; + return this.maxDurationMillisField; } set { - this.vastPreviewUrlField = value; + this.maxDurationMillisField = value; + this.maxDurationMillisSpecified = true; } } - } - - - /// A Creative that displays an image. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ImageCreative : BaseImageCreative { - private string altTextField; - - private string[] thirdPartyImpressionTrackingUrlsField; - - private CreativeAsset[] secondaryImageAssetsField; - /// Alternative text to be rendered along with the creative used mainly for - /// accessibility. This field is optional and has a maximum length of 500 - /// characters. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public string altText { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool maxDurationMillisSpecified { get { - return this.altTextField; + return this.maxDurationMillisFieldSpecified; } set { - this.altTextField = value; + this.maxDurationMillisFieldSpecified = value; } } - /// A list of impression tracking URL to ping when this creative is displayed. This - /// field is optional and each string has a maximum length of 1024 characters. + /// The maximum number of ads allowed in the AdSpot. This field + /// is optional and defaults to O.

A maxNumberOfAds of 0 means that + /// there is no maximum for the number of ads in the ad spot. No max ads is only + /// supported for ad spots that have flexible set to true.

///
- [System.Xml.Serialization.XmlElementAttribute("thirdPartyImpressionTrackingUrls", Order = 1)] - public string[] thirdPartyImpressionTrackingUrls { + [System.Xml.Serialization.XmlElementAttribute(Order = 6)] + public int maxNumberOfAds { get { - return this.thirdPartyImpressionTrackingUrlsField; + return this.maxNumberOfAdsField; } set { - this.thirdPartyImpressionTrackingUrlsField = value; + this.maxNumberOfAdsField = value; + this.maxNumberOfAdsSpecified = true; } } - /// The list of secondary image assets associated with this creative. This attribute - /// is optional.

Secondary image assets can be used to store different resolution - /// versions of the primary asset for use on non-standard density screens.

- ///
- [System.Xml.Serialization.XmlElementAttribute("secondaryImageAssets", Order = 2)] - public CreativeAsset[] secondaryImageAssets { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool maxNumberOfAdsSpecified { get { - return this.secondaryImageAssetsField; + return this.maxNumberOfAdsFieldSpecified; } set { - this.secondaryImageAssetsField = value; + this.maxNumberOfAdsFieldSpecified = value; } } - } - - - /// A base type for audio creatives. - /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(AudioRedirectCreative))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(AudioCreative))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public abstract partial class BaseAudioCreative : HasDestinationUrlCreative { - private int durationField; - - private bool durationFieldSpecified; - - private bool allowDurationOverrideField; - - private bool allowDurationOverrideFieldSpecified; - - private ConversionEvent_TrackingUrlsMapEntry[] trackingUrlsField; - - private long[] companionCreativeIdsField; - - private string customParametersField; - - private string adIdField; - - private AdIdType adIdTypeField; - - private bool adIdTypeFieldSpecified; - - private SkippableAdType skippableAdTypeField; - - private bool skippableAdTypeFieldSpecified; - - private string vastPreviewUrlField; - - private SslScanResult sslScanResultField; - - private bool sslScanResultFieldSpecified; - - private SslManualOverride sslManualOverrideField; - - private bool sslManualOverrideFieldSpecified; - /// The expected duration of this creative in milliseconds. + /// The SubpodTargetingType determines how this ad + /// spot can be targeted. This field is required. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public int duration { + [System.Xml.Serialization.XmlElementAttribute(Order = 7)] + public AdSpotTargetingType targetingType { get { - return this.durationField; + return this.targetingTypeField; } set { - this.durationField = value; - this.durationSpecified = true; + this.targetingTypeField = value; + this.targetingTypeSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool durationSpecified { + public bool targetingTypeSpecified { get { - return this.durationFieldSpecified; + return this.targetingTypeFieldSpecified; } set { - this.durationFieldSpecified = value; + this.targetingTypeFieldSpecified = value; } } - /// Allows the creative duration to differ from the actual asset durations. This - /// attribute is optional. + /// Whether backfill is blocked in this ad spot. This field is optional and defaults + /// to false. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public bool allowDurationOverride { + [System.Xml.Serialization.XmlElementAttribute(Order = 8)] + public bool backfillBlocked { get { - return this.allowDurationOverrideField; + return this.backfillBlockedField; } set { - this.allowDurationOverrideField = value; - this.allowDurationOverrideSpecified = true; + this.backfillBlockedField = value; + this.backfillBlockedSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="backfillBlocked" />, false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool allowDurationOverrideSpecified { + public bool backfillBlockedSpecified { get { - return this.allowDurationOverrideFieldSpecified; + return this.backfillBlockedFieldSpecified; } set { - this.allowDurationOverrideFieldSpecified = value; + this.backfillBlockedFieldSpecified = value; } } - /// A map from ConversionEvent to a list of URLs that will be pinged - /// when the event happens. This attribute is optional. + /// The set of line item types that may appear in the ad spot. This field is + /// optional and defaults to an empty set, which means that all types are allowed. + ///

Note, backfill reservation types are controlled via the + /// field.

///
- [System.Xml.Serialization.XmlElementAttribute("trackingUrls", Order = 2)] - public ConversionEvent_TrackingUrlsMapEntry[] trackingUrls { + [System.Xml.Serialization.XmlElementAttribute("allowedLineItemTypes", Order = 9)] + public LineItemType[] allowedLineItemTypes { get { - return this.trackingUrlsField; + return this.allowedLineItemTypesField; } set { - this.trackingUrlsField = value; + this.allowedLineItemTypesField = value; } } - /// The IDs of the companion creatives that are associated with this creative. This - /// attribute is optional. + /// Whether inventory sharing is blocked in this ad spot. This field is optional and + /// defaults to false. /// - [System.Xml.Serialization.XmlElementAttribute("companionCreativeIds", Order = 3)] - public long[] companionCreativeIds { + [System.Xml.Serialization.XmlElementAttribute(Order = 10)] + public bool inventorySharingBlocked { get { - return this.companionCreativeIdsField; + return this.inventorySharingBlockedField; } set { - this.companionCreativeIdsField = value; + this.inventorySharingBlockedField = value; + this.inventorySharingBlockedSpecified = true; } } - /// A comma separated key=value list of parameters that will be supplied to the - /// creative, written into the VAST node. This attribute is optional. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public string customParameters { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool inventorySharingBlockedSpecified { get { - return this.customParametersField; + return this.inventorySharingBlockedFieldSpecified; } set { - this.customParametersField = value; + this.inventorySharingBlockedFieldSpecified = value; } } + } - /// The ad id associated with the video as defined by the registry. - /// This field is required if adIdType is not AdIdType#NONE. + + /// Defines the targeting behavior of an ad spot. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum AdSpotTargetingType { + /// Line items not targeting this ad spot explicitly may serve in it. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 5)] - public string adId { - get { - return this.adIdField; - } - set { - this.adIdField = value; - } - } + NOT_REQUIRED = 0, + /// Only line items targeting this ad spots explicitly may serve in it + /// + EXPLICITLY_TARGETED = 1, + /// If house ads are an allowed reservation type, they may serve in the ad spot + /// regardless of whether they explicitly target it. Ads of other reservation types + /// (whose type is allowed in the ad spot), may serve in the ad spot only if + /// explicitly targeted. + /// + EXPLICITLY_TARGETED_EXCEPT_HOUSE = 2, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 3, + } - /// The registry which the ad id of this creative belongs to. This field is optional - /// and defaults to AdIdType#NONE. + + /// LineItemType indicates the priority of a LineItem, determined by the way in which impressions are + /// reserved to be served for it. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum LineItemType { + /// The type of LineItem for which a percentage of all the + /// impressions that are being sold are reserved. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 6)] - public AdIdType adIdType { + SPONSORSHIP = 0, + /// The type of LineItem for which a fixed quantity of + /// impressions or clicks are reserved. + /// + STANDARD = 1, + /// The type of LineItem most commonly used to fill a site's + /// unsold inventory if not contractually obligated to deliver a requested number of + /// impressions. Users specify the daily percentage of unsold impressions or clicks + /// when creating this line item. + /// + NETWORK = 2, + /// The type of LineItem for which a fixed quantity of + /// impressions or clicks will be delivered at a priority lower than the LineItemType#STANDARD type. + /// + BULK = 3, + /// The type of LineItem most commonly used to fill a site's + /// unsold inventory if not contractually obligated to deliver a requested number of + /// impressions. Users specify the fixed quantity of unsold impressions or clicks + /// when creating this line item. + /// + PRICE_PRIORITY = 4, + /// The type of LineItem typically used for ads that promote + /// products and services chosen by the publisher. These usually do not generate + /// revenue and have the lowest delivery priority. + /// + HOUSE = 5, + /// Represents a legacy LineItem that has been migrated from + /// the DFP system. Such line items cannot be created any more. Also, these line + /// items cannot be activated or resumed. + /// + LEGACY_DFP = 6, + /// The type of LineItem used for ads that track ads being + /// served externally of Ad Manager, for example an email newsletter. The click + /// through would reference this ad, and the click would be tracked via this ad. + /// + CLICK_TRACKING = 7, + /// A LineItem using dynamic allocation backed by AdSense. + /// + ADSENSE = 8, + /// A LineItem using dynamic allocation backed by the Google + /// Ad Exchange. + /// + AD_EXCHANGE = 9, + /// Represents a non-monetizable video LineItem that targets + /// one or more bumper positions, which are short house video messages used by + /// publishers to separate content from ad breaks. + /// + BUMPER = 10, + /// A LineItem using dynamic allocation backed by AdMob. + /// + ADMOB = 11, + /// The type of LineItem for which there are no impressions + /// reserved, and will serve for a second price bid. All LineItems of type LineItemType#PREFERRED_DEAL should be + /// created via a ProposalLineItem with a matching + /// type. When creating a LineItem of type LineItemType#PREFERRED_DEAL, the ProposalLineItem#estimatedMinimumImpressions + /// field is required. + /// + PREFERRED_DEAL = 13, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 12, + } + + + /// A BreakTemplate defines what kinds of ads show at + /// which positions within a pod.

Break templates are made up of AdSpot objects. A break template must have a single ad spot + /// that has AdSpot#flexible set to true.

+ ///
+ [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class BreakTemplate { + private long idField; + + private bool idFieldSpecified; + + private bool customTemplateField; + + private bool customTemplateFieldSpecified; + + private string nameField; + + private string displayNameField; + + private BreakTemplateBreakTemplateMember[] breakTemplateMembersField; + + /// The unique ID of the BreakTemplate. This value is + /// readonly and is assigned by Google. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public long id { get { - return this.adIdTypeField; + return this.idField; } set { - this.adIdTypeField = value; - this.adIdTypeSpecified = true; + this.idField = value; + this.idSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , + /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool adIdTypeSpecified { + public bool idSpecified { get { - return this.adIdTypeFieldSpecified; + return this.idFieldSpecified; } set { - this.adIdTypeFieldSpecified = value; + this.idFieldSpecified = value; } } - /// The type of skippable ad. + /// Whether this is custom template. Custom templates get created outside of the ad + /// rule workflow and can be referenced in ad tags.

Only custom templates can + /// have names and display names.

///
- [System.Xml.Serialization.XmlElementAttribute(Order = 7)] - public SkippableAdType skippableAdType { + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public bool customTemplate { get { - return this.skippableAdTypeField; + return this.customTemplateField; } set { - this.skippableAdTypeField = value; - this.skippableAdTypeSpecified = true; + this.customTemplateField = value; + this.customTemplateSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="customTemplate" />, false otherwise.
[System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool skippableAdTypeSpecified { + public bool customTemplateSpecified { get { - return this.skippableAdTypeFieldSpecified; + return this.customTemplateFieldSpecified; } set { - this.skippableAdTypeFieldSpecified = value; + this.customTemplateFieldSpecified = value; } } - /// An ad tag URL that will return a preview of the VAST XML response specific to - /// this creative. This attribute is read-only. + /// Name of the BreakTemplate. The name is case + /// insenstive and can be referenced in ad tags. This value is required if + /// customTemplate is true, and cannot be set otherwise.

You can use + /// alphanumeric characters and symbols other than the following: ", ', =, !, +, #, + /// *, ~, ;, ^, (, ), <, >, [, ], the white space character.

///
- [System.Xml.Serialization.XmlElementAttribute(Order = 8)] - public string vastPreviewUrl { + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public string name { get { - return this.vastPreviewUrlField; + return this.nameField; } set { - this.vastPreviewUrlField = value; + this.nameField = value; } } - /// The SSL compatibility scan result of this creative.

This attribute is - /// read-only and determined by Google.

+ /// Descriptive name for the BreakTemplateDto. This + /// value is optional if customTemplate is true, and cannot be set + /// otherwise. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 9)] - public SslScanResult sslScanResult { + [System.Xml.Serialization.XmlElementAttribute(Order = 3)] + public string displayName { get { - return this.sslScanResultField; + return this.displayNameField; } set { - this.sslScanResultField = value; - this.sslScanResultSpecified = true; + this.displayNameField = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool sslScanResultSpecified { - get { - return this.sslScanResultFieldSpecified; + /// The list of the BreakTemplateMember objects in + /// the order in which they should appear in the ad pod. Each BreakTemplateMember has a reference to a AdSpot, which defines what kinds of ads can appear at that + /// position, as well as other metadata that defines how each ad spot should be + /// filled. + /// + [System.Xml.Serialization.XmlElementAttribute("breakTemplateMembers", Order = 4)] + public BreakTemplateBreakTemplateMember[] breakTemplateMembers { + get { + return this.breakTemplateMembersField; } set { - this.sslScanResultFieldSpecified = value; + this.breakTemplateMembersField = value; } } + } - /// The manual override for the SSL compatibility of this creative.

This - /// attribute is optional and defaults to SslManualOverride#NO_OVERRIDE.

+ + /// A building block of a pod template. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "BreakTemplate.BreakTemplateMember", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class BreakTemplateBreakTemplateMember { + private long adSpotIdField; + + private bool adSpotIdFieldSpecified; + + private AdSpotFillType adSpotFillTypeField; + + private bool adSpotFillTypeFieldSpecified; + + /// The ID of the AdSpot that has the settings about what kinds + /// of ads can appear in this position of the BreakTemplate. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 10)] - public SslManualOverride sslManualOverride { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public long adSpotId { get { - return this.sslManualOverrideField; + return this.adSpotIdField; } set { - this.sslManualOverrideField = value; - this.sslManualOverrideSpecified = true; + this.adSpotIdField = value; + this.adSpotIdSpecified = true; + } + } + + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool adSpotIdSpecified { + get { + return this.adSpotIdFieldSpecified; + } + set { + this.adSpotIdFieldSpecified = value; + } + } + + /// The behavior for how the AdSpot should be filled in the + /// context of the BreakTemplate. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public AdSpotFillType adSpotFillType { + get { + return this.adSpotFillTypeField; + } + set { + this.adSpotFillTypeField = value; + this.adSpotFillTypeSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="adSpotFillType" />, false otherwise.
[System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool sslManualOverrideSpecified { + public bool adSpotFillTypeSpecified { get { - return this.sslManualOverrideFieldSpecified; + return this.adSpotFillTypeFieldSpecified; } set { - this.sslManualOverrideFieldSpecified = value; + this.adSpotFillTypeFieldSpecified = value; } } } - /// A Creative that contains externally hosted audio ads and is served - /// via VAST XML. + /// The different options for how ad spots are filled. Only some allocations of ads + /// to subpods produce a valid final pod. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum AdSpotFillType { + /// If this ad spot is empty, the overall pod is invalid. + /// + REQUIRED = 0, + /// The ad spot is always "satisfied", whether empty or nonempty. + /// + OPTIONAL = 1, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 2, + } + + + /// Captures the WHERE, ORDER BY and LIMIT + /// clauses of a PQL query. Statements are typically used to retrieve objects of a + /// predefined domain type, which makes SELECT clause unnecessary.

An example + /// query text might be "WHERE status = 'ACTIVE' ORDER BY id LIMIT + /// 30".

Statements support bind variables. These are substitutes for + /// literals and can be thought of as input parameters to a PQL query.

An + /// example of such a query might be "WHERE id = :idValue".

+ ///

Statements also support use of the LIKE keyword. This provides wildcard + /// string matching.

An example of such a query might be "WHERE name + /// LIKE '%searchString%'".

The value for the variable idValue must then + /// be set with an object of type Value, e.g., NumberValue, TextValue or BooleanValue. ///
[System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class AudioRedirectCreative : BaseAudioCreative { - private VideoRedirectAsset[] audioAssetsField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class Statement { + private string queryField; - private VideoRedirectAsset mezzanineFileField; + private String_ValueMapEntry[] valuesField; - /// The audio creative assets. + /// Holds the query in PQL syntax. The syntax is:
[WHERE + /// <condition> {[AND | OR] <condition> ...}]
[ORDER + /// BY <property> [ASC | DESC]]
[LIMIT {[<offset>,] + /// <count>} | {<count> OFFSET <offset>}]
+ ///

<condition>
#x160;#x160;#x160;#x160; := + /// <property> {< | <= | > | >= | = | != } <value>
<condition>
#x160;#x160;#x160;#x160; := + /// <property> {< | <= | > | >= | = | != } <bind + /// variable>
<condition> := <property> IN + /// <list>
<condition> := <property> IS + /// NULL
<condition> := <property> LIKE + /// <wildcard%match>
<bind variable> := + /// :<name>

///
- [System.Xml.Serialization.XmlElementAttribute("audioAssets", Order = 0)] - public VideoRedirectAsset[] audioAssets { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public string query { get { - return this.audioAssetsField; + return this.queryField; } set { - this.audioAssetsField = value; + this.queryField = value; } } - /// The high quality mezzanine audio asset. + /// Holds keys and values for bind variables and their values. The key is the name + /// of the bind variable. The value is the literal value of the variable.

In the + /// example "WHERE status = :bindStatus ORDER BY id LIMIT 30", the bind + /// variable, represented by :bindStatus is named + /// bindStatus, which would also be the parameter map key. The bind + /// variable's value would be represented by a parameter map value of type TextValue. The final result, for example, would be an entry + /// of "bindStatus" => StringParam("ACTIVE").

///
- [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public VideoRedirectAsset mezzanineFile { + [System.Xml.Serialization.XmlElementAttribute("values", Order = 1)] + public String_ValueMapEntry[] values { get { - return this.mezzanineFileField; + return this.valuesField; } set { - this.mezzanineFileField = value; + this.valuesField = value; } } } - /// A Creative that contains Ad Manager hosted audio ads and is served - /// via VAST XML. This creative is read-only. + /// This represents an entry in a map with a key of type String and value of type + /// Value. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class AudioCreative : BaseAudioCreative { - private string audioSourceUrlField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class String_ValueMapEntry { + private string keyField; + + private Value valueField; - /// A URL that points to the source media that will be used for transcoding. - /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public string audioSourceUrl { + public string key { get { - return this.audioSourceUrlField; + return this.keyField; } set { - this.audioSourceUrlField = value; + this.keyField = value; + } + } + + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public Value value { + get { + return this.valueField; + } + set { + this.valueField = value; } } } - /// A Creative intended for mobile platforms that displays an image, - /// whose LineItem#creativePlaceholders size is defined as an aspect ratio, i.e. Size#isAspectRatio. It can have multiple images - /// whose dimensions conform to that aspect ratio. + /// Value represents a value. /// + [System.Xml.Serialization.XmlIncludeAttribute(typeof(TextValue))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(SetValue))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(NumberValue))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(DateValue))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(DateTimeValue))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(BooleanValue))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ObjectValue))] [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class AspectRatioImageCreative : HasDestinationUrlCreative { - private CreativeAsset[] imageAssetsField; - - private string altTextField; - - private string[] thirdPartyImpressionTrackingUrlsField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(TargetingValue))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ChangeHistoryValue))] + public abstract partial class Value { + } - private bool overrideSizeField; - private bool overrideSizeFieldSpecified; + /// Contains a string value. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class TextValue : Value { + private string valueField; - /// The images associated with this creative. The ad server will choose one based on - /// the capabilities of the device. Each asset should have a size which is of the - /// same aspect ratio as the Creative#size. This - /// attribute is required and must have at least one asset. + /// The string value. /// - [System.Xml.Serialization.XmlElementAttribute("imageAssets", Order = 0)] - public CreativeAsset[] imageAssets { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public string value { get { - return this.imageAssetsField; + return this.valueField; } set { - this.imageAssetsField = value; + this.valueField = value; } } + } - /// The text that is served along with the image creative, primarily for - /// accessibility. If no suitable image size is available for the device, this text - /// replaces the image completely. This field is optional and has a maximum length - /// of 500 characters. + + /// Contains a set of Values. May not contain duplicates. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class SetValue : Value { + private Value[] valuesField; + + /// The values. They must all be the same type of Value and not contain + /// duplicates. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public string altText { + [System.Xml.Serialization.XmlElementAttribute("values", Order = 0)] + public Value[] values { get { - return this.altTextField; + return this.valuesField; } set { - this.altTextField = value; + this.valuesField = value; } } + } - /// A list of impression tracking URL to ping when this creative is displayed. This - /// field is optional and each string has a maximum length of 1024 characters. + + /// Contains a numeric value. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class NumberValue : Value { + private string valueField; + + /// The numeric value represented as a string. /// - [System.Xml.Serialization.XmlElementAttribute("thirdPartyImpressionTrackingUrls", Order = 2)] - public string[] thirdPartyImpressionTrackingUrls { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public string value { get { - return this.thirdPartyImpressionTrackingUrlsField; + return this.valueField; } set { - this.thirdPartyImpressionTrackingUrlsField = value; + this.valueField = value; } } + } - /// Allows the actual image asset sizes to differ from the creative size. This - /// attribute is optional. + + /// Contains a date value. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class DateValue : Value { + private Date valueField; + + /// The Date value. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public bool overrideSize { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public Date value { get { - return this.overrideSizeField; + return this.valueField; } set { - this.overrideSizeField = value; - this.overrideSizeSpecified = true; + this.valueField = value; } } + } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool overrideSizeSpecified { + + /// Contains a date-time value. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class DateTimeValue : Value { + private DateTime valueField; + + /// The DateTime value. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public DateTime value { get { - return this.overrideSizeFieldSpecified; + return this.valueField; } set { - this.overrideSizeFieldSpecified = value; + this.valueField = value; } } } - /// A creative that is used for tracking clicks on ads that are served directly from - /// the customers' web servers or media servers. NOTE: The size attribute is not - /// used for click tracking creative and it will not be persisted upon save. + /// Contains a boolean value. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ClickTrackingCreative : Creative { - private string clickTrackingUrlField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class BooleanValue : Value { + private bool valueField; - /// The click tracking URL. This attribute is required. + private bool valueFieldSpecified; + + /// The boolean value. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public string clickTrackingUrl { + public bool value { get { - return this.clickTrackingUrlField; + return this.valueField; } set { - this.clickTrackingUrlField = value; + this.valueField = value; + this.valueSpecified = true; + } + } + + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool valueSpecified { + get { + return this.valueFieldSpecified; + } + set { + this.valueFieldSpecified = value; } } } - /// A Creative that is created by a Rich Media Studio. + /// Contains an object value.

This object is experimental! + /// ObjectValue is an experimental, innovative, and rapidly changing + /// new feature for Ad Manager. Unfortunately, being on the bleeding edge means that + /// we may make backwards-incompatible changes to ObjectValue. We will + /// inform the community when this feature is no longer experimental.

///
- [System.Xml.Serialization.XmlIncludeAttribute(typeof(RichMediaStudioCreative))] [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public abstract partial class BaseRichMediaStudioCreative : Creative { - private long studioCreativeIdField; - - private bool studioCreativeIdFieldSpecified; - - private RichMediaStudioCreativeFormat creativeFormatField; - - private bool creativeFormatFieldSpecified; - - private RichMediaStudioCreativeArtworkType artworkTypeField; - - private bool artworkTypeFieldSpecified; - - private long totalFileSizeField; - - private bool totalFileSizeFieldSpecified; - - private string[] adTagKeysField; - - private string[] customKeyValuesField; - - private string surveyUrlField; - - private string allImpressionsUrlField; - - private string richMediaImpressionsUrlField; - - private string backupImageImpressionsUrlField; - - private string overrideCssField; - - private string requiredFlashPluginVersionField; - - private int durationField; - - private bool durationFieldSpecified; - - private RichMediaStudioCreativeBillingAttribute billingAttributeField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(TargetingValue))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ChangeHistoryValue))] + public abstract partial class ObjectValue : Value { + } - private bool billingAttributeFieldSpecified; - private RichMediaStudioChildAssetProperty[] richMediaStudioChildAssetPropertiesField; + /// Captures a page of AdRule objects. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class AdRulePage { + private int totalResultSetSizeField; - private SslScanResult sslScanResultField; + private bool totalResultSetSizeFieldSpecified; - private bool sslScanResultFieldSpecified; + private int startIndexField; - private SslManualOverride sslManualOverrideField; + private bool startIndexFieldSpecified; - private bool sslManualOverrideFieldSpecified; + private AdRule[] resultsField; - /// The creative ID as known by Rich Media Studio creative. This attribute is - /// readonly. + /// The size of the total result set to which this page belongs. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public long studioCreativeId { + public int totalResultSetSize { get { - return this.studioCreativeIdField; + return this.totalResultSetSizeField; } set { - this.studioCreativeIdField = value; - this.studioCreativeIdSpecified = true; + this.totalResultSetSizeField = value; + this.totalResultSetSizeSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="totalResultSetSize" />, false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool studioCreativeIdSpecified { + public bool totalResultSetSizeSpecified { get { - return this.studioCreativeIdFieldSpecified; + return this.totalResultSetSizeFieldSpecified; } set { - this.studioCreativeIdFieldSpecified = value; + this.totalResultSetSizeFieldSpecified = value; } } - /// The creative format of the Rich Media Studio creative. This attribute is - /// readonly. + /// The absolute index in the total result set on which this page begins. /// [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public RichMediaStudioCreativeFormat creativeFormat { + public int startIndex { get { - return this.creativeFormatField; + return this.startIndexField; } set { - this.creativeFormatField = value; - this.creativeFormatSpecified = true; + this.startIndexField = value; + this.startIndexSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool creativeFormatSpecified { + public bool startIndexSpecified { get { - return this.creativeFormatFieldSpecified; + return this.startIndexFieldSpecified; } set { - this.creativeFormatFieldSpecified = value; + this.startIndexFieldSpecified = value; } } - /// The type of artwork used in this creative. This attribute is readonly. + /// The collection of ad rules contained within this page. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public RichMediaStudioCreativeArtworkType artworkType { + [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] + public AdRule[] results { get { - return this.artworkTypeField; + return this.resultsField; } set { - this.artworkTypeField = value; - this.artworkTypeSpecified = true; + this.resultsField = value; } } + } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool artworkTypeSpecified { + + /// Captures a page of AdSpot objects. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class AdSpotPage { + private int totalResultSetSizeField; + + private bool totalResultSetSizeFieldSpecified; + + private int startIndexField; + + private bool startIndexFieldSpecified; + + private AdSpot[] resultsField; + + /// The size of the total result set to which this page belongs. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public int totalResultSetSize { get { - return this.artworkTypeFieldSpecified; + return this.totalResultSetSizeField; } set { - this.artworkTypeFieldSpecified = value; - } - } - - /// The total size of all assets in bytes. This attribute is readonly. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public long totalFileSize { - get { - return this.totalFileSizeField; - } - set { - this.totalFileSizeField = value; - this.totalFileSizeSpecified = true; + this.totalResultSetSizeField = value; + this.totalResultSetSizeSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="totalResultSetSize" />, false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool totalFileSizeSpecified { - get { - return this.totalFileSizeFieldSpecified; - } - set { - this.totalFileSizeFieldSpecified = value; - } - } - - /// Ad tag keys. This attribute is optional and updatable. - /// - [System.Xml.Serialization.XmlElementAttribute("adTagKeys", Order = 4)] - public string[] adTagKeys { + public bool totalResultSetSizeSpecified { get { - return this.adTagKeysField; + return this.totalResultSetSizeFieldSpecified; } set { - this.adTagKeysField = value; + this.totalResultSetSizeFieldSpecified = value; } } - /// Custom key values. This attribute is optional and updatable. + /// The absolute index in the total result set on which this page begins. /// - [System.Xml.Serialization.XmlElementAttribute("customKeyValues", Order = 5)] - public string[] customKeyValues { + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public int startIndex { get { - return this.customKeyValuesField; + return this.startIndexField; } set { - this.customKeyValuesField = value; + this.startIndexField = value; + this.startIndexSpecified = true; } } - /// The survey URL for this creative. This attribute is optional and updatable. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 6)] - public string surveyUrl { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool startIndexSpecified { get { - return this.surveyUrlField; + return this.startIndexFieldSpecified; } set { - this.surveyUrlField = value; + this.startIndexFieldSpecified = value; } } - /// The tracking URL to be triggered when an ad starts to play, whether Rich Media - /// or backup content is displayed. Behaves like the URL that DART - /// used to track impressions. This URL can't exceed 1024 characters and must start - /// with http:// or https://. This attribute is optional and updatable. + /// The collection of ad spot contained within this page. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 7)] - public string allImpressionsUrl { + [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] + public AdSpot[] results { get { - return this.allImpressionsUrlField; + return this.resultsField; } set { - this.allImpressionsUrlField = value; + this.resultsField = value; } } + } - /// The tracking URL to be triggered when any rich media artwork is displayed in an - /// ad. Behaves like the /imp URL that DART used to track impressions. - /// This URL can't exceed 1024 characters and must start with http:// or https://. - /// This attribute is optional and updatable. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 8)] - public string richMediaImpressionsUrl { - get { - return this.richMediaImpressionsUrlField; - } - set { - this.richMediaImpressionsUrlField = value; - } - } - /// The tracking URL to be triggered when the Rich Media backup image is served. - /// This attribute is optional and updatable. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 9)] - public string backupImageImpressionsUrl { - get { - return this.backupImageImpressionsUrlField; - } - set { - this.backupImageImpressionsUrlField = value; - } - } + /// Captures a page of BreakTemplate objects. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class BreakTemplatePage { + private int totalResultSetSizeField; - /// The override CSS. You can put custom CSS code here to repair creative styling; - /// e.g. tr td { background-color:#FBB; }. This attribute is optional - /// and updatable. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 10)] - public string overrideCss { - get { - return this.overrideCssField; - } - set { - this.overrideCssField = value; - } - } + private bool totalResultSetSizeFieldSpecified; - /// The Flash plugin version required to view this creative; e.g. Flash - /// 10.2/AS 3. This attribute is read only. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 11)] - public string requiredFlashPluginVersion { - get { - return this.requiredFlashPluginVersionField; - } - set { - this.requiredFlashPluginVersionField = value; - } - } + private int startIndexField; - /// The duration of the creative in milliseconds. This attribute is optional and - /// updatable. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 12)] - public int duration { - get { - return this.durationField; - } - set { - this.durationField = value; - this.durationSpecified = true; - } - } + private bool startIndexFieldSpecified; - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool durationSpecified { - get { - return this.durationFieldSpecified; - } - set { - this.durationFieldSpecified = value; - } - } + private BreakTemplate[] resultsField; - /// The billing attribute associated with this creative. This attribute is read - /// only. + /// The size of the total result set to which this page belongs. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 13)] - public RichMediaStudioCreativeBillingAttribute billingAttribute { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public int totalResultSetSize { get { - return this.billingAttributeField; + return this.totalResultSetSizeField; } set { - this.billingAttributeField = value; - this.billingAttributeSpecified = true; + this.totalResultSetSizeField = value; + this.totalResultSetSizeSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="totalResultSetSize" />, false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool billingAttributeSpecified { - get { - return this.billingAttributeFieldSpecified; - } - set { - this.billingAttributeFieldSpecified = value; - } - } - - /// The list of child assets associated with this creative. This attribute is read - /// only. - /// - [System.Xml.Serialization.XmlElementAttribute("richMediaStudioChildAssetProperties", Order = 14)] - public RichMediaStudioChildAssetProperty[] richMediaStudioChildAssetProperties { + public bool totalResultSetSizeSpecified { get { - return this.richMediaStudioChildAssetPropertiesField; + return this.totalResultSetSizeFieldSpecified; } set { - this.richMediaStudioChildAssetPropertiesField = value; + this.totalResultSetSizeFieldSpecified = value; } } - /// The SSL compatibility scan result of this creative.

This attribute is - /// read-only and determined by Google.

+ /// The absolute index in the total result set on which this page begins. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 15)] - public SslScanResult sslScanResult { + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public int startIndex { get { - return this.sslScanResultField; + return this.startIndexField; } set { - this.sslScanResultField = value; - this.sslScanResultSpecified = true; + this.startIndexField = value; + this.startIndexSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool sslScanResultSpecified { + public bool startIndexSpecified { get { - return this.sslScanResultFieldSpecified; + return this.startIndexFieldSpecified; } set { - this.sslScanResultFieldSpecified = value; + this.startIndexFieldSpecified = value; } } - /// The manual override for the SSL compatibility of this creative.

This - /// attribute is optional and defaults to SslManualOverride#NO_OVERRIDE.

+ /// The collection of break templates contained within this page. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 16)] - public SslManualOverride sslManualOverride { - get { - return this.sslManualOverrideField; - } - set { - this.sslManualOverrideField = value; - this.sslManualOverrideSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool sslManualOverrideSpecified { + [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] + public BreakTemplate[] results { get { - return this.sslManualOverrideFieldSpecified; + return this.resultsField; } set { - this.sslManualOverrideFieldSpecified = value; + this.resultsField = value; } } } - /// Different creative format supported by Rich Media Studio creative. + /// Represents the actions that can be performed on AdRule + /// objects. /// + [System.Xml.Serialization.XmlIncludeAttribute(typeof(DeleteAdRules))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(DeactivateAdRules))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ActivateAdRules))] [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum RichMediaStudioCreativeFormat { - /// In-page creatives are served into an ad slot on publishers page. In-page implies - /// that they maintain a static size, e.g, 468x60 and do not break out of these - /// dimensions. - /// - IN_PAGE = 0, - /// Expanding creatives expand/collapse on user interaction such as mouse over. It - /// consists of an initial, or collapsed and an expanded creative area. - /// - EXPANDING = 1, - /// Creatives that are served in an instant messenger application such as AOL - /// Instant Messanger or Yahoo! Messenger. This can also be used in desktop - /// applications such as weatherbug. - /// - IM_EXPANDING = 2, - /// Floating creatives float on top of publishers page and can be closed with a - /// close button. - /// - FLOATING = 3, - /// Peel-down creatives show a glimpse of your ad in the corner of a web page. When - /// the user interacts, the rest of the ad peels down to reveal the full message. - /// - PEEL_DOWN = 4, - /// An In-Page with Floating creative is a dual-asset creative consisting of an - /// in-page asset and a floating asset. This creative type lets you deliver a static - /// primary ad to a webpage, while inviting a user to find out more through a - /// floating asset delivered when the user interacts with the creative. - /// - IN_PAGE_WITH_FLOATING = 5, - /// A Flash ad that renders in a Flash environment. The adserver will serve this - /// using VAST, but it is not a proper VAST XML ad. It's an amalgamation of the - /// proprietary InStream protocol, rendered inside VAST so that we can capture some - /// standard behavior such as companions. - /// - FLASH_IN_FLASH = 6, - /// An expanding flash ad that renders in a Flash environment. The adserver will - /// serve this using VAST, but it is not a proper VAST XML ad. It's an amalgamation - /// of the proprietary InStream protocol, rendered inside VAST so that we can - /// capture some standard behavior such as companions. - /// - FLASH_IN_FLASH_EXPANDING = 7, - /// In-app creatives are served into an ad slot within a publisher's app. In-app - /// implies that they maintain a static size, e.g, 468x60 and do not break out of - /// these dimensions. - /// - IN_APP = 8, - /// The creative format is unknown or not supported in the API version in use. - /// - UNKNOWN = 9, + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public abstract partial class AdRuleAction { } - /// Rich Media Studio creative artwork types. + /// The action used for deleting AdRule objects. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum RichMediaStudioCreativeArtworkType { - /// The creative is a Flash creative. - /// - FLASH = 0, - /// The creative is HTML5. - /// - HTML5 = 1, - /// The creative is Flash if available, and HTML5 otherwise. - /// - MIXED = 2, + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class DeleteAdRules : AdRuleAction { } - /// Rich Media Studio creative supported billing attributes.

This is determined - /// by Rich Media Studio based on the content of the creative and is not - /// updateable.

+ /// The action used for pausing AdRule objects. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum RichMediaStudioCreativeBillingAttribute { - /// Applies to any RichMediaStudioCreativeFormat#IN_PAGE, - /// without Video. - /// - IN_PAGE = 0, - /// Applies to any of these following RichMediaStudioCreativeFormat, without - /// Video: RichMediaStudioCreativeFormat#EXPANDING, - /// RichMediaStudioCreativeFormat#IM_EXPANDING, - /// RichMediaStudioCreativeFormat#FLOATING, - /// RichMediaStudioCreativeFormat#PEEL_DOWN, - /// RichMediaStudioCreativeFormat#IN_PAGE_WITH_FLOATING - /// - FLOATING_EXPANDING = 1, - /// Applies to any creatives that includes a video. - /// - VIDEO = 2, - /// Applies to any RichMediaStudioCreativeFormat#FLASH_IN_FLASH, - /// without Video. - /// - FLASH_IN_FLASH = 3, + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class DeactivateAdRules : AdRuleAction { } - /// A Creative that is created by a Rich Media Studio. You cannot - /// create this creative, but you can update some fields of this creative. + /// The action used for resuming AdRule objects. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class RichMediaStudioCreative : BaseRichMediaStudioCreative { - private LockedOrientation lockedOrientationField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ActivateAdRules : AdRuleAction { + } - private bool lockedOrientationFieldSpecified; - private bool isInterstitialField; + /// Represents the result of performing an action on objects. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class UpdateResult { + private int numChangesField; - private bool isInterstitialFieldSpecified; + private bool numChangesFieldSpecified; - /// A locked orientation for this creative to be displayed in. + /// The number of objects that were changed as a result of performing the action. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public LockedOrientation lockedOrientation { + public int numChanges { get { - return this.lockedOrientationField; + return this.numChangesField; } set { - this.lockedOrientationField = value; - this.lockedOrientationSpecified = true; + this.numChangesField = value; + this.numChangesSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool lockedOrientationSpecified { + public bool numChangesSpecified { get { - return this.lockedOrientationFieldSpecified; + return this.numChangesFieldSpecified; } set { - this.lockedOrientationFieldSpecified = value; + this.numChangesFieldSpecified = value; } } + } - /// true if this is interstitial. An interstitial creative will not - /// consider an impression served until it is fully rendered in the browser. This - /// attribute is readonly. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public bool isInterstitial { - get { - return this.isInterstitialField; + + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + public interface AdRuleServiceInterfaceChannel : Google.Api.Ads.AdManager.v202411.AdRuleServiceInterface, System.ServiceModel.IClientChannel + { + } + namespace Wrappers.AdRuleService + { + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "createAdRules", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class createAdRulesRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("adRules")] + public Google.Api.Ads.AdManager.v202411.AdRule[] adRules; + + /// Creates a new instance of the + /// class. + public createAdRulesRequest() { } - set { - this.isInterstitialField = value; - this.isInterstitialSpecified = true; + + /// Creates a new instance of the + /// class. + public createAdRulesRequest(Google.Api.Ads.AdManager.v202411.AdRule[] adRules) { + this.adRules = adRules; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool isInterstitialSpecified { - get { - return this.isInterstitialFieldSpecified; + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "createAdRulesResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class createAdRulesResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("rval")] + public Google.Api.Ads.AdManager.v202411.AdRule[] rval; + + /// Creates a new instance of the + /// class. + public createAdRulesResponse() { } - set { - this.isInterstitialFieldSpecified = value; + + /// Creates a new instance of the + /// class. + public createAdRulesResponse(Google.Api.Ads.AdManager.v202411.AdRule[] rval) { + this.rval = rval; } } - } - - - /// A base class for dynamic allocation creatives. - /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(HasHtmlSnippetDynamicAllocationCreative))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(AdSenseCreative))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(AdExchangeCreative))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public abstract partial class BaseDynamicAllocationCreative : Creative { - } - /// Dynamic allocation creative with a backfill code snippet. - /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(AdSenseCreative))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(AdExchangeCreative))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public abstract partial class HasHtmlSnippetDynamicAllocationCreative : BaseDynamicAllocationCreative { - private string codeSnippetField; + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "createAdSpots", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class createAdSpotsRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("adSpots")] + public Google.Api.Ads.AdManager.v202411.AdSpot[] adSpots; - /// The code snippet (ad tag) from Ad Exchange or AdSense to traffic the dynamic - /// allocation creative. Only valid Ad Exchange or AdSense parameters will be - /// considered. Any extraneous HTML or JavaScript will be ignored. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public string codeSnippet { - get { - return this.codeSnippetField; + /// Creates a new instance of the + /// class. + public createAdSpotsRequest() { } - set { - this.codeSnippetField = value; + + /// Creates a new instance of the + /// class. + public createAdSpotsRequest(Google.Api.Ads.AdManager.v202411.AdSpot[] adSpots) { + this.adSpots = adSpots; } } - } - /// An AdSense dynamic allocation creative. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class AdSenseCreative : HasHtmlSnippetDynamicAllocationCreative { - } + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "createAdSpotsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class createAdSpotsResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("rval")] + public Google.Api.Ads.AdManager.v202411.AdSpot[] rval; + /// Creates a new instance of the + /// class. + public createAdSpotsResponse() { + } - /// An Ad Exchange dynamic allocation creative. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class AdExchangeCreative : HasHtmlSnippetDynamicAllocationCreative { - private bool isNativeEligibleField; - - private bool isNativeEligibleFieldSpecified; - - private bool isInterstitialField; - - private bool isInterstitialFieldSpecified; + /// Creates a new instance of the + /// class. + public createAdSpotsResponse(Google.Api.Ads.AdManager.v202411.AdSpot[] rval) { + this.rval = rval; + } + } - private bool isAllowsAllRequestedSizesField; - private bool isAllowsAllRequestedSizesFieldSpecified; + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "createBreakTemplates", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class createBreakTemplatesRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("breakTemplate")] + public Google.Api.Ads.AdManager.v202411.BreakTemplate[] breakTemplate; - /// Whether this creative is eligible for native ad-serving. This value is optional - /// and defaults to false. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public bool isNativeEligible { - get { - return this.isNativeEligibleField; - } - set { - this.isNativeEligibleField = value; - this.isNativeEligibleSpecified = true; + /// Creates a new instance of the class. + public createBreakTemplatesRequest() { } - } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool isNativeEligibleSpecified { - get { - return this.isNativeEligibleFieldSpecified; - } - set { - this.isNativeEligibleFieldSpecified = value; + /// Creates a new instance of the class. + public createBreakTemplatesRequest(Google.Api.Ads.AdManager.v202411.BreakTemplate[] breakTemplate) { + this.breakTemplate = breakTemplate; } } - /// true if this creative is interstitial. An interstitial creative - /// will not consider an impression served until it is fully rendered in the - /// browser. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public bool isInterstitial { - get { - return this.isInterstitialField; + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "createBreakTemplatesResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class createBreakTemplatesResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("rval")] + public Google.Api.Ads.AdManager.v202411.BreakTemplate[] rval; + + /// Creates a new instance of the class. + public createBreakTemplatesResponse() { } - set { - this.isInterstitialField = value; - this.isInterstitialSpecified = true; + + /// Creates a new instance of the class. + public createBreakTemplatesResponse(Google.Api.Ads.AdManager.v202411.BreakTemplate[] rval) { + this.rval = rval; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool isInterstitialSpecified { - get { - return this.isInterstitialFieldSpecified; + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "updateAdRules", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class updateAdRulesRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("adRules")] + public Google.Api.Ads.AdManager.v202411.AdRule[] adRules; + + /// Creates a new instance of the + /// class. + public updateAdRulesRequest() { } - set { - this.isInterstitialFieldSpecified = value; + + /// Creates a new instance of the + /// class. + public updateAdRulesRequest(Google.Api.Ads.AdManager.v202411.AdRule[] adRules) { + this.adRules = adRules; } } - /// true if this creative is eligible for all requested sizes. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public bool isAllowsAllRequestedSizes { - get { - return this.isAllowsAllRequestedSizesField; + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "updateAdRulesResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class updateAdRulesResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("rval")] + public Google.Api.Ads.AdManager.v202411.AdRule[] rval; + + /// Creates a new instance of the + /// class. + public updateAdRulesResponse() { } - set { - this.isAllowsAllRequestedSizesField = value; - this.isAllowsAllRequestedSizesSpecified = true; + + /// Creates a new instance of the + /// class. + public updateAdRulesResponse(Google.Api.Ads.AdManager.v202411.AdRule[] rval) { + this.rval = rval; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool isAllowsAllRequestedSizesSpecified { - get { - return this.isAllowsAllRequestedSizesFieldSpecified; + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "updateAdSpots", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class updateAdSpotsRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("adSpots")] + public Google.Api.Ads.AdManager.v202411.AdSpot[] adSpots; + + /// Creates a new instance of the + /// class. + public updateAdSpotsRequest() { } - set { - this.isAllowsAllRequestedSizesFieldSpecified = value; + + /// Creates a new instance of the + /// class. + public updateAdSpotsRequest(Google.Api.Ads.AdManager.v202411.AdSpot[] adSpots) { + this.adSpots = adSpots; } } - } - /// An error for a field which is an invalid type. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class TypeError : ApiError { - } + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "updateAdSpotsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class updateAdSpotsResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("rval")] + public Google.Api.Ads.AdManager.v202411.AdSpot[] rval; + + /// Creates a new instance of the + /// class. + public updateAdSpotsResponse() { + } + /// Creates a new instance of the + /// class. + public updateAdSpotsResponse(Google.Api.Ads.AdManager.v202411.AdSpot[] rval) { + this.rval = rval; + } + } - /// Errors associated with the video and audio transcoding flow. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class TranscodingError : ApiError { - private TranscodingErrorReason reasonField; - private bool reasonFieldSpecified; + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "updateBreakTemplates", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class updateBreakTemplatesRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("breakTemplate")] + public Google.Api.Ads.AdManager.v202411.BreakTemplate[] breakTemplate; - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public TranscodingErrorReason reason { - get { - return this.reasonField; + /// Creates a new instance of the class. + public updateBreakTemplatesRequest() { } - set { - this.reasonField = value; - this.reasonSpecified = true; + + /// Creates a new instance of the class. + public updateBreakTemplatesRequest(Google.Api.Ads.AdManager.v202411.BreakTemplate[] breakTemplate) { + this.breakTemplate = breakTemplate; } } - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { - return this.reasonFieldSpecified; + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "updateBreakTemplatesResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class updateBreakTemplatesResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("rval")] + public Google.Api.Ads.AdManager.v202411.BreakTemplate[] rval; + + /// Creates a new instance of the class. + public updateBreakTemplatesResponse() { } - set { - this.reasonFieldSpecified = value; + + /// Creates a new instance of the class. + public updateBreakTemplatesResponse(Google.Api.Ads.AdManager.v202411.BreakTemplate[] rval) { + this.rval = rval; } } } + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", ConfigurationName = "Google.Api.Ads.AdManager.v202411.AdRuleServiceInterface")] + public interface AdRuleServiceInterface + { + // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Wrappers.AdRuleService.createAdRulesResponse createAdRules(Wrappers.AdRuleService.createAdRulesRequest request); + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + System.Threading.Tasks.Task createAdRulesAsync(Wrappers.AdRuleService.createAdRulesRequest request); - /// The type of transcode request rejection. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "TranscodingError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum TranscodingErrorReason { - /// The request to copy the creative(s) was rejected because the source is not - /// transcoded. - /// - CANNOT_COPY_CREATIVE_PENDING_TRANSCODE = 0, - /// The request to copy the creative(s) was rejected because the source is invalid. - /// - CANNOT_COPY_INVALID_CREATIVE = 1, - /// The creative is still being transcoded or processed. Please try again later. - /// - TRANSCODING_IS_IN_PROGRESS = 2, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 3, - } + // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Wrappers.AdRuleService.createAdSpotsResponse createAdSpots(Wrappers.AdRuleService.createAdSpotsRequest request); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + System.Threading.Tasks.Task createAdSpotsAsync(Wrappers.AdRuleService.createAdSpotsRequest request); + // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Wrappers.AdRuleService.createBreakTemplatesResponse createBreakTemplates(Wrappers.AdRuleService.createBreakTemplatesRequest request); - /// Lists all errors associated with template instantiated creatives. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class TemplateInstantiatedCreativeError : ApiError { - private TemplateInstantiatedCreativeErrorReason reasonField; + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + System.Threading.Tasks.Task createBreakTemplatesAsync(Wrappers.AdRuleService.createBreakTemplatesRequest request); - private bool reasonFieldSpecified; + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v202411.AdRulePage getAdRulesByStatement(Google.Api.Ads.AdManager.v202411.Statement statement); - /// The error reason represented by an enum. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public TemplateInstantiatedCreativeErrorReason reason { - get { - return this.reasonField; - } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task getAdRulesByStatementAsync(Google.Api.Ads.AdManager.v202411.Statement statement); - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { - return this.reasonFieldSpecified; - } - set { - this.reasonFieldSpecified = value; - } - } - } + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v202411.AdSpotPage getAdSpotsByStatement(Google.Api.Ads.AdManager.v202411.Statement filterStatement); + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task getAdSpotsByStatementAsync(Google.Api.Ads.AdManager.v202411.Statement filterStatement); - /// The reason for the error - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "TemplateInstantiatedCreativeError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum TemplateInstantiatedCreativeErrorReason { - /// A new creative cannot be created from an inactive creative template. - /// - INACTIVE_CREATIVE_TEMPLATE = 0, - /// An uploaded file type is not allowed - /// - FILE_TYPE_NOT_ALLOWED = 1, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 2, - } + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v202411.BreakTemplatePage getBreakTemplatesByStatement(Google.Api.Ads.AdManager.v202411.Statement filterStatement); + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task getBreakTemplatesByStatementAsync(Google.Api.Ads.AdManager.v202411.Statement filterStatement); - /// Error for converting flash to swiffy asset. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class SwiffyConversionError : ApiError { - private SwiffyConversionErrorReason reasonField; + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v202411.UpdateResult performAdRuleAction(Google.Api.Ads.AdManager.v202411.AdRuleAction adRuleAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement); - private bool reasonFieldSpecified; + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task performAdRuleActionAsync(Google.Api.Ads.AdManager.v202411.AdRuleAction adRuleAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement); - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public SwiffyConversionErrorReason reason { - get { - return this.reasonField; - } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } + // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Wrappers.AdRuleService.updateAdRulesResponse updateAdRules(Wrappers.AdRuleService.updateAdRulesRequest request); - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { - return this.reasonFieldSpecified; - } - set { - this.reasonFieldSpecified = value; - } - } - } + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + System.Threading.Tasks.Task updateAdRulesAsync(Wrappers.AdRuleService.updateAdRulesRequest request); + + // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Wrappers.AdRuleService.updateAdSpotsResponse updateAdSpots(Wrappers.AdRuleService.updateAdSpotsRequest request); + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + System.Threading.Tasks.Task updateAdSpotsAsync(Wrappers.AdRuleService.updateAdSpotsRequest request); - /// Error reason for SwiffyConversionError. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "SwiffyConversionError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum SwiffyConversionErrorReason { - /// Indicates the Swiffy service has an internal error that prevents the flash asset - /// being converted. - /// - SERVER_ERROR = 0, - /// Indicates the uploaded flash asset is not a valid flash file. - /// - INVALID_FLASH_FILE = 1, - /// Indicates the Swiffy service currently does not support converting this flash - /// asset. - /// - UNSUPPORTED_FLASH = 2, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 3, + // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Wrappers.AdRuleService.updateBreakTemplatesResponse updateBreakTemplates(Wrappers.AdRuleService.updateBreakTemplatesRequest request); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + System.Threading.Tasks.Task updateBreakTemplatesAsync(Wrappers.AdRuleService.updateBreakTemplatesRequest request); } - /// Errors associated with set-top box creatives. + /// Provides methods for creating, updating and retrieving AdRule objects.

Ad rules contain data that the ad server + /// uses to generate a playlist of video ads.

///
- [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class SetTopBoxCreativeError : ApiError { - private SetTopBoxCreativeErrorReason reasonField; - - private bool reasonFieldSpecified; - - /// The error reason represented by an enum. + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + public partial class AdRuleService : AdManagerSoapClient, IAdRuleService { + /// Creates a new instance of the class. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public SetTopBoxCreativeErrorReason reason { - get { - return this.reasonField; - } - set { - this.reasonField = value; - this.reasonSpecified = true; - } + public AdRuleService() { } - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { - return this.reasonFieldSpecified; - } - set { - this.reasonFieldSpecified = value; - } + /// Creates a new instance of the class. + /// + public AdRuleService(string endpointConfigurationName) + : base(endpointConfigurationName) { } - } - - /// Error reasons for set-top box creatives. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "SetTopBoxCreativeError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum SetTopBoxCreativeErrorReason { - /// Set-top box creative external asset IDs are immutable after creation. - /// - EXTERNAL_ASSET_ID_IMMUTABLE = 1, - /// Set-top box creatives require an external asset ID. + /// Creates a new instance of the class. /// - EXTERNAL_ASSET_ID_REQUIRED = 2, - /// Set-top box creative provider IDs are immutable after creation. + public AdRuleService(string endpointConfigurationName, string remoteAddress) + : base(endpointConfigurationName, remoteAddress) { + } + + /// Creates a new instance of the class. /// - PROVIDER_ID_IMMUTABLE = 3, - /// The value returned if the actual value is not exposed by the requested API - /// version. + public AdRuleService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) + : base(endpointConfigurationName, remoteAddress) { + } + + /// Creates a new instance of the class. /// - UNKNOWN = 4, - } + public AdRuleService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) + : base(binding, remoteAddress) { + } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + Wrappers.AdRuleService.createAdRulesResponse Google.Api.Ads.AdManager.v202411.AdRuleServiceInterface.createAdRules(Wrappers.AdRuleService.createAdRulesRequest request) { + return base.Channel.createAdRules(request); + } - /// Lists all errors associated with Studio creatives. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class RichMediaStudioCreativeError : ApiError { - private RichMediaStudioCreativeErrorReason reasonField; + /// Creates new AdRule objects. + /// + public virtual Google.Api.Ads.AdManager.v202411.AdRule[] createAdRules(Google.Api.Ads.AdManager.v202411.AdRule[] adRules) { + Wrappers.AdRuleService.createAdRulesRequest inValue = new Wrappers.AdRuleService.createAdRulesRequest(); + inValue.adRules = adRules; + Wrappers.AdRuleService.createAdRulesResponse retVal = ((Google.Api.Ads.AdManager.v202411.AdRuleServiceInterface)(this)).createAdRules(inValue); + return retVal.rval; + } - private bool reasonFieldSpecified; + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202411.AdRuleServiceInterface.createAdRulesAsync(Wrappers.AdRuleService.createAdRulesRequest request) { + return base.Channel.createAdRulesAsync(request); + } - /// The error reason represented by an enum. + public virtual System.Threading.Tasks.Task createAdRulesAsync(Google.Api.Ads.AdManager.v202411.AdRule[] adRules) { + Wrappers.AdRuleService.createAdRulesRequest inValue = new Wrappers.AdRuleService.createAdRulesRequest(); + inValue.adRules = adRules; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202411.AdRuleServiceInterface)(this)).createAdRulesAsync(inValue)).Result.rval); + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + Wrappers.AdRuleService.createAdSpotsResponse Google.Api.Ads.AdManager.v202411.AdRuleServiceInterface.createAdSpots(Wrappers.AdRuleService.createAdSpotsRequest request) { + return base.Channel.createAdSpots(request); + } + + /// Creates new AdSpot objects. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public RichMediaStudioCreativeErrorReason reason { - get { - return this.reasonField; - } - set { - this.reasonField = value; - this.reasonSpecified = true; - } + public virtual Google.Api.Ads.AdManager.v202411.AdSpot[] createAdSpots(Google.Api.Ads.AdManager.v202411.AdSpot[] adSpots) { + Wrappers.AdRuleService.createAdSpotsRequest inValue = new Wrappers.AdRuleService.createAdSpotsRequest(); + inValue.adSpots = adSpots; + Wrappers.AdRuleService.createAdSpotsResponse retVal = ((Google.Api.Ads.AdManager.v202411.AdRuleServiceInterface)(this)).createAdSpots(inValue); + return retVal.rval; } - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { - return this.reasonFieldSpecified; - } - set { - this.reasonFieldSpecified = value; - } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202411.AdRuleServiceInterface.createAdSpotsAsync(Wrappers.AdRuleService.createAdSpotsRequest request) { + return base.Channel.createAdSpotsAsync(request); } - } + public virtual System.Threading.Tasks.Task createAdSpotsAsync(Google.Api.Ads.AdManager.v202411.AdSpot[] adSpots) { + Wrappers.AdRuleService.createAdSpotsRequest inValue = new Wrappers.AdRuleService.createAdSpotsRequest(); + inValue.adSpots = adSpots; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202411.AdRuleServiceInterface)(this)).createAdSpotsAsync(inValue)).Result.rval); + } - /// The reasons for the target error. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "RichMediaStudioCreativeError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum RichMediaStudioCreativeErrorReason { - /// Only Studio can create a RichMediaStudioCreative. - /// - CREATION_NOT_ALLOWED = 0, - /// Unknown error - /// - UKNOWN_ERROR = 1, - /// Invalid request indicating missing/invalid request parameters. + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + Wrappers.AdRuleService.createBreakTemplatesResponse Google.Api.Ads.AdManager.v202411.AdRuleServiceInterface.createBreakTemplates(Wrappers.AdRuleService.createBreakTemplatesRequest request) { + return base.Channel.createBreakTemplates(request); + } + + /// Creates new breakTemplate objects. /// - INVALID_CODE_GENERATION_REQUEST = 2, - /// Invalid creative object. + public virtual Google.Api.Ads.AdManager.v202411.BreakTemplate[] createBreakTemplates(Google.Api.Ads.AdManager.v202411.BreakTemplate[] breakTemplate) { + Wrappers.AdRuleService.createBreakTemplatesRequest inValue = new Wrappers.AdRuleService.createBreakTemplatesRequest(); + inValue.breakTemplate = breakTemplate; + Wrappers.AdRuleService.createBreakTemplatesResponse retVal = ((Google.Api.Ads.AdManager.v202411.AdRuleServiceInterface)(this)).createBreakTemplates(inValue); + return retVal.rval; + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202411.AdRuleServiceInterface.createBreakTemplatesAsync(Wrappers.AdRuleService.createBreakTemplatesRequest request) { + return base.Channel.createBreakTemplatesAsync(request); + } + + public virtual System.Threading.Tasks.Task createBreakTemplatesAsync(Google.Api.Ads.AdManager.v202411.BreakTemplate[] breakTemplate) { + Wrappers.AdRuleService.createBreakTemplatesRequest inValue = new Wrappers.AdRuleService.createBreakTemplatesRequest(); + inValue.breakTemplate = breakTemplate; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202411.AdRuleServiceInterface)(this)).createBreakTemplatesAsync(inValue)).Result.rval); + } + + /// Gets an AdRulePage of AdRule + /// objects that satisfy the given Statement#query. The following + /// fields are supported for filtering: + /// + /// + /// + /// + ///
PQL + /// Property Object Property
id AdRule#id (AdRule#adRuleId beginning in v201702)
name AdRule#name
priority AdRule#priority
status AdRule#status
///
- INVALID_CREATIVE_OBJECT = 3, - /// Unable to connect to Rich Media Studio to save the creative. Please try again - /// later. + public virtual Google.Api.Ads.AdManager.v202411.AdRulePage getAdRulesByStatement(Google.Api.Ads.AdManager.v202411.Statement statement) { + return base.Channel.getAdRulesByStatement(statement); + } + + public virtual System.Threading.Tasks.Task getAdRulesByStatementAsync(Google.Api.Ads.AdManager.v202411.Statement statement) { + return base.Channel.getAdRulesByStatementAsync(statement); + } + + /// Gets a AdSpotPage of AdSpot + /// objects that satisfy the given Statement#query. /// - STUDIO_CONNECTION_ERROR = 4, - /// The push down duration is not allowed + public virtual Google.Api.Ads.AdManager.v202411.AdSpotPage getAdSpotsByStatement(Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.getAdSpotsByStatement(filterStatement); + } + + public virtual System.Threading.Tasks.Task getAdSpotsByStatementAsync(Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.getAdSpotsByStatementAsync(filterStatement); + } + + /// Gets a BreakTemplatePage of BreakTemplate objects that satisfy the given Statement#query. /// - PUSHDOWN_DURATION_NOT_ALLOWED = 5, - /// The position is invalid + public virtual Google.Api.Ads.AdManager.v202411.BreakTemplatePage getBreakTemplatesByStatement(Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.getBreakTemplatesByStatement(filterStatement); + } + + public virtual System.Threading.Tasks.Task getBreakTemplatesByStatementAsync(Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.getBreakTemplatesByStatementAsync(filterStatement); + } + + /// Performs actions on AdRule objects that match the given Statement#query. /// - INVALID_POSITION = 6, - /// The Z-index is invalid + public virtual Google.Api.Ads.AdManager.v202411.UpdateResult performAdRuleAction(Google.Api.Ads.AdManager.v202411.AdRuleAction adRuleAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.performAdRuleAction(adRuleAction, filterStatement); + } + + public virtual System.Threading.Tasks.Task performAdRuleActionAsync(Google.Api.Ads.AdManager.v202411.AdRuleAction adRuleAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.performAdRuleActionAsync(adRuleAction, filterStatement); + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + Wrappers.AdRuleService.updateAdRulesResponse Google.Api.Ads.AdManager.v202411.AdRuleServiceInterface.updateAdRules(Wrappers.AdRuleService.updateAdRulesRequest request) { + return base.Channel.updateAdRules(request); + } + + /// Updates the specified AdRule objects. /// - INVALID_Z_INDEX = 7, - /// The push-down duration is invalid + public virtual Google.Api.Ads.AdManager.v202411.AdRule[] updateAdRules(Google.Api.Ads.AdManager.v202411.AdRule[] adRules) { + Wrappers.AdRuleService.updateAdRulesRequest inValue = new Wrappers.AdRuleService.updateAdRulesRequest(); + inValue.adRules = adRules; + Wrappers.AdRuleService.updateAdRulesResponse retVal = ((Google.Api.Ads.AdManager.v202411.AdRuleServiceInterface)(this)).updateAdRules(inValue); + return retVal.rval; + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202411.AdRuleServiceInterface.updateAdRulesAsync(Wrappers.AdRuleService.updateAdRulesRequest request) { + return base.Channel.updateAdRulesAsync(request); + } + + public virtual System.Threading.Tasks.Task updateAdRulesAsync(Google.Api.Ads.AdManager.v202411.AdRule[] adRules) { + Wrappers.AdRuleService.updateAdRulesRequest inValue = new Wrappers.AdRuleService.updateAdRulesRequest(); + inValue.adRules = adRules; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202411.AdRuleServiceInterface)(this)).updateAdRulesAsync(inValue)).Result.rval); + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + Wrappers.AdRuleService.updateAdSpotsResponse Google.Api.Ads.AdManager.v202411.AdRuleServiceInterface.updateAdSpots(Wrappers.AdRuleService.updateAdSpotsRequest request) { + return base.Channel.updateAdSpots(request); + } + + /// Updates the specified AdSpot objects. /// - INVALID_PUSHDOWN_DURATION = 8, - /// The value returned if the actual value is not exposed by the requested API - /// version. + public virtual Google.Api.Ads.AdManager.v202411.AdSpot[] updateAdSpots(Google.Api.Ads.AdManager.v202411.AdSpot[] adSpots) { + Wrappers.AdRuleService.updateAdSpotsRequest inValue = new Wrappers.AdRuleService.updateAdSpotsRequest(); + inValue.adSpots = adSpots; + Wrappers.AdRuleService.updateAdSpotsResponse retVal = ((Google.Api.Ads.AdManager.v202411.AdRuleServiceInterface)(this)).updateAdSpots(inValue); + return retVal.rval; + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202411.AdRuleServiceInterface.updateAdSpotsAsync(Wrappers.AdRuleService.updateAdSpotsRequest request) { + return base.Channel.updateAdSpotsAsync(request); + } + + public virtual System.Threading.Tasks.Task updateAdSpotsAsync(Google.Api.Ads.AdManager.v202411.AdSpot[] adSpots) { + Wrappers.AdRuleService.updateAdSpotsRequest inValue = new Wrappers.AdRuleService.updateAdSpotsRequest(); + inValue.adSpots = adSpots; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202411.AdRuleServiceInterface)(this)).updateAdSpotsAsync(inValue)).Result.rval); + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + Wrappers.AdRuleService.updateBreakTemplatesResponse Google.Api.Ads.AdManager.v202411.AdRuleServiceInterface.updateBreakTemplates(Wrappers.AdRuleService.updateBreakTemplatesRequest request) { + return base.Channel.updateBreakTemplates(request); + } + + /// Updates the specified breakTemplate objects. /// - UNKNOWN = 9, - } + public virtual Google.Api.Ads.AdManager.v202411.BreakTemplate[] updateBreakTemplates(Google.Api.Ads.AdManager.v202411.BreakTemplate[] breakTemplate) { + Wrappers.AdRuleService.updateBreakTemplatesRequest inValue = new Wrappers.AdRuleService.updateBreakTemplatesRequest(); + inValue.breakTemplate = breakTemplate; + Wrappers.AdRuleService.updateBreakTemplatesResponse retVal = ((Google.Api.Ads.AdManager.v202411.AdRuleServiceInterface)(this)).updateBreakTemplates(inValue); + return retVal.rval; + } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202411.AdRuleServiceInterface.updateBreakTemplatesAsync(Wrappers.AdRuleService.updateBreakTemplatesRequest request) { + return base.Channel.updateBreakTemplatesAsync(request); + } - /// A list of all errors to be used for validating Size. + public virtual System.Threading.Tasks.Task updateBreakTemplatesAsync(Google.Api.Ads.AdManager.v202411.BreakTemplate[] breakTemplate) { + Wrappers.AdRuleService.updateBreakTemplatesRequest inValue = new Wrappers.AdRuleService.updateBreakTemplatesRequest(); + inValue.breakTemplate = breakTemplate; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202411.AdRuleServiceInterface)(this)).updateBreakTemplatesAsync(inValue)).Result.rval); + } + } + namespace Wrappers.CreativeTemplateService + { + } + /// Stores variable choices that users can select from /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class RequiredSizeError : ApiError { - private RequiredSizeErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ListStringCreativeTemplateVariable.VariableChoice", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ListStringCreativeTemplateVariableVariableChoice { + private string labelField; - private bool reasonFieldSpecified; + private string valueField; + /// Label that users can select from. This is displayed to users when creating a TemplateCreative. This attribute is intended to be + /// more descriptive than #value. This attribute is required + /// and has a maximum length of 255 characters. + /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public RequiredSizeErrorReason reason { + public string label { get { - return this.reasonField; + return this.labelField; } set { - this.reasonField = value; - this.reasonSpecified = true; + this.labelField = value; } } - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { + /// Value that users can select from. When creating a TemplateCreative, the value in StringCreativeTemplateVariableValue + /// should match this value, if you intend to select this value. This attribute is + /// required and has a maximum length of 255 characters. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public string value { get { - return this.reasonFieldSpecified; + return this.valueField; } set { - this.reasonFieldSpecified = value; + this.valueField = value; } } } - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "RequiredSizeError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum RequiredSizeErrorReason { - /// Creative#size or LineItem#creativePlaceholders size is - /// missing. - /// - REQUIRED = 0, - /// LineItemCreativeAssociation#sizes - /// must be a subset of LineItem#creativePlaceholders sizes. - /// - NOT_ALLOWED = 1, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 2, - } - - - /// Caused by supplying a non-null value for an attribute that should be null. + /// Represents a variable defined in a creative template. /// + [System.Xml.Serialization.XmlIncludeAttribute(typeof(UrlCreativeTemplateVariable))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(StringCreativeTemplateVariable))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ListStringCreativeTemplateVariable))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(LongCreativeTemplateVariable))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(AssetCreativeTemplateVariable))] [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class NullError : ApiError { - private NullErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public abstract partial class CreativeTemplateVariable { + private string labelField; - private bool reasonFieldSpecified; + private string uniqueNameField; - /// The error reason represented by an enum. + private string descriptionField; + + private bool isRequiredField; + + private bool isRequiredFieldSpecified; + + /// Label that is displayed to users when creating TemplateCreative from the CreativeTemplate. This attribute is required and has + /// a maximum length of 127 characters. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public NullErrorReason reason { + public string label { get { - return this.reasonField; + return this.labelField; } set { - this.reasonField = value; - this.reasonSpecified = true; + this.labelField = value; } } - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { + /// Unique name used to identify the variable. This attribute is read-only and is + /// assigned by Google, by deriving from label, when a creative template variable is + /// created. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public string uniqueName { get { - return this.reasonFieldSpecified; + return this.uniqueNameField; } set { - this.reasonFieldSpecified = value; + this.uniqueNameField = value; } } - } + /// A descriptive help text that is displayed to users along with the label. This + /// attribute is required and has a maximum length of 255 characters. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public string description { + get { + return this.descriptionField; + } + set { + this.descriptionField = value; + } + } - /// The reasons for the target error. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "NullError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum NullErrorReason { - /// Specified list/container must not contain any null elements + /// true if this variable is required to be filled in by users when + /// creating TemplateCreative from the CreativeTemplate. /// - NULL_CONTENT = 0, + [System.Xml.Serialization.XmlElementAttribute(Order = 3)] + public bool isRequired { + get { + return this.isRequiredField; + } + set { + this.isRequiredField = value; + this.isRequiredSpecified = true; + } + } + + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool isRequiredSpecified { + get { + return this.isRequiredFieldSpecified; + } + set { + this.isRequiredFieldSpecified = value; + } + } } - /// Lists all errors associated with line item-to-creative association dates. + /// Represents a url variable defined in a creative template.

Use UrlCreativeTemplateVariableValue to + /// specify the value for this variable when creating TemplateCreative from the TemplateCreative

///
[System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class LineItemCreativeAssociationError : ApiError { - private LineItemCreativeAssociationErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class UrlCreativeTemplateVariable : CreativeTemplateVariable { + private string defaultValueField; - private bool reasonFieldSpecified; + private bool isTrackingUrlField; - /// The error reason represented by an enum. + private bool isTrackingUrlFieldSpecified; + + /// Default value to be filled in when creating creatives from the creative + /// template. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public LineItemCreativeAssociationErrorReason reason { + public string defaultValue { get { - return this.reasonField; + return this.defaultValueField; } set { - this.reasonField = value; - this.reasonSpecified = true; + this.defaultValueField = value; } } - /// true, if a value is specified for , - /// false otherwise. + /// When true, if the URL is identified as from a known vendor, cache-busting macros + /// will automatically be inserted upon save. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public bool isTrackingUrl { + get { + return this.isTrackingUrlField; + } + set { + this.isTrackingUrlField = value; + this.isTrackingUrlSpecified = true; + } + } + + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { + public bool isTrackingUrlSpecified { get { - return this.reasonFieldSpecified; + return this.isTrackingUrlFieldSpecified; } set { - this.reasonFieldSpecified = value; + this.isTrackingUrlFieldSpecified = value; } } } - /// The reasons for the target error. + /// Represents a string variable defined in a creative template.

Use StringCreativeTemplateVariableValue + /// to specify the value for this variable when creating TemplateCreative from the TemplateCreative.

///
+ [System.Xml.Serialization.XmlIncludeAttribute(typeof(ListStringCreativeTemplateVariable))] [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "LineItemCreativeAssociationError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum LineItemCreativeAssociationErrorReason { - /// Cannot associate a creative to the wrong advertiser - /// - CREATIVE_IN_WRONG_ADVERTISERS_LIBRARY = 0, - /// The creative type being associated is a invalid for the line item type. - /// - INVALID_LINEITEM_CREATIVE_PAIRING = 1, - /// Association start date cannot be before line item start date - /// - STARTDATE_BEFORE_LINEITEM_STARTDATE = 2, - /// Association start date cannot be same as or after line item end date - /// - STARTDATE_NOT_BEFORE_LINEITEM_ENDDATE = 3, - /// Association end date cannot be after line item end date - /// - ENDDATE_AFTER_LINEITEM_ENDDATE = 4, - /// Association end date cannot be same as or before line item start date - /// - ENDDATE_NOT_AFTER_LINEITEM_STARTDATE = 5, - /// Association end date cannot be same as or before its start date - /// - ENDDATE_NOT_AFTER_STARTDATE = 6, - /// Association end date cannot be in the past. - /// - ENDDATE_IN_THE_PAST = 7, - /// Cannot copy an association to the same line item without creating new creative - /// - CANNOT_COPY_WITHIN_SAME_LINE_ITEM = 8, - /// Programmatic only supports the "Video" redirect type. - /// - UNSUPPORTED_CREATIVE_VAST_REDIRECT_TYPE = 21, - /// Programmatic does not support YouTube hosted creatives. - /// - UNSUPPORTED_YOUTUBE_HOSTED_CREATIVE = 18, - /// Programmatic creatives can only be assigned to one line item. - /// - PROGRAMMATIC_CREATIVES_CAN_ONLY_BE_ASSIGNED_TO_ONE_LINE_ITEM = 9, - /// Cannot activate a line item creative association if the associated creative is - /// inactive. - /// - CANNOT_ACTIVATE_ASSOCIATION_WITH_INACTIVE_CREATIVE = 22, - /// Cannot create programmatic creatives. - /// - CANNOT_CREATE_PROGRAMMATIC_CREATIVES = 10, - /// Cannot update programmatic creatives. - /// - CANNOT_UPDATE_PROGRAMMATIC_CREATIVES = 11, - /// Cannot associate a creative with a line item if only one of them is set-top box - /// enabled. - /// - CREATIVE_AND_LINE_ITEM_MUST_BOTH_BE_SET_TOP_BOX_ENABLED = 12, - /// Cannot delete associations between set-top box enabled line items and set-top - /// box enabled creatives. - /// - CANNOT_DELETE_SET_TOP_BOX_ENABLED_ASSOCIATIONS = 13, - /// Creative rotation weights must be integers. - /// - SET_TOP_BOX_CREATIVE_ROTATION_WEIGHT_MUST_BE_INTEGER = 14, - /// Creative rotation weights are only valid when creative rotation type is set to - /// CreativeRotationType#MANUAL. - /// - INVALID_CREATIVE_ROTATION_TYPE_FOR_MANUAL_WEIGHT = 15, - /// The code snippet of a creative must contain a click macro (%%CLICK_URL_ESC%% or - /// %%CLICK_URL_UNESC%%). - /// - CLICK_MACROS_REQUIRED = 19, - /// The code snippet of a creative must not contain a view macro (%%VIEW_URL_ESC%% - /// or %%VIEW_URL_UNESC%%). - /// - VIEW_MACROS_NOT_ALLOWED = 20, - /// The value returned if the actual value is not exposed by the requested API - /// version. + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class StringCreativeTemplateVariable : CreativeTemplateVariable { + private string defaultValueField; + + /// Default value to be filled in when creating creatives from the creative + /// template. /// - UNKNOWN = 16, + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public string defaultValue { + get { + return this.defaultValueField; + } + set { + this.defaultValueField = value; + } + } } - /// Errors specific to creating label entity associations. + /// Represents a list variable defined in a creative template. This is similar to StringCreativeTemplateVariable, except + /// that there are possible choices to choose from.

Use StringCreativeTemplateVariableValue + /// to specify the value for this variable when creating a TemplateCreative from a CreativeTemplate.

///
[System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class LabelEntityAssociationError : ApiError { - private LabelEntityAssociationErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ListStringCreativeTemplateVariable : StringCreativeTemplateVariable { + private ListStringCreativeTemplateVariableVariableChoice[] choicesField; - private bool reasonFieldSpecified; + private bool allowOtherChoiceField; - /// The error reason represented by an enum. + private bool allowOtherChoiceFieldSpecified; + + /// The values within the list users need to select from. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public LabelEntityAssociationErrorReason reason { + [System.Xml.Serialization.XmlElementAttribute("choices", Order = 0)] + public ListStringCreativeTemplateVariableVariableChoice[] choices { get { - return this.reasonField; + return this.choicesField; } set { - this.reasonField = value; - this.reasonSpecified = true; + this.choicesField = value; } } - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { - return this.reasonFieldSpecified; + /// true if a user can specifiy an 'other' value. For example, if a + /// variable called backgroundColor is defined as a list with values: red, green, + /// blue, this boolean can be set to allow a user to enter a value not on the list + /// such as purple. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public bool allowOtherChoice { + get { + return this.allowOtherChoiceField; } set { - this.reasonFieldSpecified = value; + this.allowOtherChoiceField = value; + this.allowOtherChoiceSpecified = true; + } + } + + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool allowOtherChoiceSpecified { + get { + return this.allowOtherChoiceFieldSpecified; + } + set { + this.allowOtherChoiceFieldSpecified = value; } } } - /// The reasons for the target error. + /// Represents a long variable defined in a creative template. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "LabelEntityAssociationError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum LabelEntityAssociationErrorReason { - /// The label has already been attached to the entity. - /// - DUPLICATE_ASSOCIATION = 1, - /// A label is being applied to an entity that does not support that entity type. - /// - INVALID_ASSOCIATION = 2, - /// Label negation cannot be applied to the entity type. - /// - NEGATION_NOT_ALLOWED = 5, - /// The same label is being applied and negated to the same entity. + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class LongCreativeTemplateVariable : CreativeTemplateVariable { + private long defaultValueField; + + private bool defaultValueFieldSpecified; + + /// Default value to be filled in when creating creatives from the creative + /// template. /// - DUPLICATE_ASSOCIATION_WITH_NEGATION = 3, - /// The value returned if the actual value is not exposed by the requested API - /// version. + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public long defaultValue { + get { + return this.defaultValueField; + } + set { + this.defaultValueField = value; + this.defaultValueSpecified = true; + } + } + + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool defaultValueSpecified { + get { + return this.defaultValueFieldSpecified; + } + set { + this.defaultValueFieldSpecified = value; + } + } + } + + + /// Represents a file asset variable defined in a creative template.

Use AssetCreativeTemplateVariableValue + /// to specify the value for this variable when creating TemplateCreative from the TemplateCreative.

+ ///
+ [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class AssetCreativeTemplateVariable : CreativeTemplateVariable { + private AssetCreativeTemplateVariableMimeType[] mimeTypesField; + + /// A set of supported mime types. This set can be empty or null if there's no + /// constraint, meaning files of any mime types are allowed. /// - UNKNOWN = 4, + [System.Xml.Serialization.XmlElementAttribute("mimeTypes", Order = 0)] + public AssetCreativeTemplateVariableMimeType[] mimeTypes { + get { + return this.mimeTypesField; + } + set { + this.mimeTypesField = value; + } + } } - /// Lists all errors associated with URLs. + /// Different mime type that the asset variable supports. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AssetCreativeTemplateVariable.MimeType", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum AssetCreativeTemplateVariableMimeType { + JPG = 0, + PNG = 1, + GIF = 2, + SWF = 3, + } + + + /// A template upon which a creative can be created. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class InvalidUrlError : ApiError { - private InvalidUrlErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class CreativeTemplate { + private long idField; - private bool reasonFieldSpecified; + private bool idFieldSpecified; + + private string nameField; + + private string descriptionField; + + private CreativeTemplateVariable[] variablesField; + + private string snippetField; + + private CreativeTemplateStatus statusField; + + private bool statusFieldSpecified; + + private CreativeTemplateType typeField; + + private bool typeFieldSpecified; + + private bool isInterstitialField; + + private bool isInterstitialFieldSpecified; + + private bool isNativeEligibleField; + + private bool isNativeEligibleFieldSpecified; + + private bool isSafeFrameCompatibleField; + + private bool isSafeFrameCompatibleFieldSpecified; + /// Uniquely identifies the CreativeTemplate. This attribute is + /// read-only and is assigned by Google when a creative template is created. + /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public InvalidUrlErrorReason reason { + public long id { get { - return this.reasonField; + return this.idField; } set { - this.reasonField = value; - this.reasonSpecified = true; + this.idField = value; + this.idSpecified = true; } } - /// true, if a value is specified for , + /// true, if a value is specified for , /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { + public bool idSpecified { get { - return this.reasonFieldSpecified; + return this.idFieldSpecified; } set { - this.reasonFieldSpecified = value; + this.idFieldSpecified = value; + } + } + + /// The name of the creative template. This attribute is required and has a maximum + /// length of 255 characters. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public string name { + get { + return this.nameField; + } + set { + this.nameField = value; + } + } + + /// The description of the creative template. This attribute is optional. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public string description { + get { + return this.descriptionField; + } + set { + this.descriptionField = value; + } + } + + /// The list of creative template variables. This attribute is required. + /// + [System.Xml.Serialization.XmlElementAttribute("variables", Order = 3)] + public CreativeTemplateVariable[] variables { + get { + return this.variablesField; + } + set { + this.variablesField = value; + } + } + + /// The snippet of the creative template, with placeholders for the associated + /// variables. This attribute is required. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 4)] + public string snippet { + get { + return this.snippetField; + } + set { + this.snippetField = value; + } + } + + /// The status of the CreativeTemplate. This attribute is read-only and + /// is assigned by Google. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 5)] + public CreativeTemplateStatus status { + get { + return this.statusField; + } + set { + this.statusField = value; + this.statusSpecified = true; + } + } + + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool statusSpecified { + get { + return this.statusFieldSpecified; + } + set { + this.statusFieldSpecified = value; + } + } + + /// The type of the CreativeTemplate. Publisher can only create + /// user-defined template + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 6)] + public CreativeTemplateType type { + get { + return this.typeField; + } + set { + this.typeField = value; + this.typeSpecified = true; + } + } + + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool typeSpecified { + get { + return this.typeFieldSpecified; + } + set { + this.typeFieldSpecified = value; + } + } + + /// true if this creative template produces interstitial creatives. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 7)] + public bool isInterstitial { + get { + return this.isInterstitialField; + } + set { + this.isInterstitialField = value; + this.isInterstitialSpecified = true; + } + } + + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool isInterstitialSpecified { + get { + return this.isInterstitialFieldSpecified; + } + set { + this.isInterstitialFieldSpecified = value; + } + } + + /// true if this creative template produces native-eligible creatives. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 8)] + public bool isNativeEligible { + get { + return this.isNativeEligibleField; + } + set { + this.isNativeEligibleField = value; + this.isNativeEligibleSpecified = true; + } + } + + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool isNativeEligibleSpecified { + get { + return this.isNativeEligibleFieldSpecified; + } + set { + this.isNativeEligibleFieldSpecified = value; + } + } + + /// Whether the Creative produced is compatible for SafeFrame + /// rendering.

This attribute is optional and defaults to true.

+ ///
+ [System.Xml.Serialization.XmlElementAttribute(Order = 9)] + public bool isSafeFrameCompatible { + get { + return this.isSafeFrameCompatibleField; + } + set { + this.isSafeFrameCompatibleField = value; + this.isSafeFrameCompatibleSpecified = true; + } + } + + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool isSafeFrameCompatibleSpecified { + get { + return this.isSafeFrameCompatibleFieldSpecified; + } + set { + this.isSafeFrameCompatibleFieldSpecified = value; } } } + /// Describes status of the creative template + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "InvalidUrlError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum InvalidUrlErrorReason { - /// The URL contains invalid characters. + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum CreativeTemplateStatus { + /// The CreativeTemplate is active /// - ILLEGAL_CHARACTERS = 0, - /// The format of the URL is not allowed. This could occur for a number of reasons. - /// For example, if an invalid scheme is specified (like "ftp://") or if a port is - /// specified when not required, or if a query was specified when not required. + ACTIVE = 0, + /// The CreativeTemplate is inactive. Users cannot + /// create new creatives from this template, but existing ones can be edited and + /// continue to serve /// - INVALID_FORMAT = 1, - /// URL contains insecure scheme. + INACTIVE = 1, + /// The CreativeTemplate is deleted. Creatives + /// created from this CreativeTemplate can no longer + /// serve. /// - INSECURE_SCHEME = 2, - /// The URL does not contain a scheme. + DELETED = 2, + } + + + /// Describes type of the creative template. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum CreativeTemplateType { + /// Creative templates that Google defines for users to use. /// - NO_SCHEME = 3, - /// The value returned if the actual value is not exposed by the requested API - /// version. + SYSTEM_DEFINED = 0, + /// Arbitrary creative templates that users can define as they see fit. Such + /// templates are bound to a specific network and can only be used with creatives + /// being created under the network. /// - UNKNOWN = 4, + USER_DEFINED = 1, } - /// Lists all errors associated with phone numbers. + /// Captures a page of CreativeTemplate objects. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class InvalidPhoneNumberError : ApiError { - private InvalidPhoneNumberErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class CreativeTemplatePage { + private int totalResultSetSizeField; + + private bool totalResultSetSizeFieldSpecified; + + private int startIndexField; + + private bool startIndexFieldSpecified; + + private CreativeTemplate[] resultsField; + + /// The size of the total result set to which this page belongs. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public int totalResultSetSize { + get { + return this.totalResultSetSizeField; + } + set { + this.totalResultSetSizeField = value; + this.totalResultSetSizeSpecified = true; + } + } + + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool totalResultSetSizeSpecified { + get { + return this.totalResultSetSizeFieldSpecified; + } + set { + this.totalResultSetSizeFieldSpecified = value; + } + } + + /// The absolute index in the total result set on which this page begins. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public int startIndex { + get { + return this.startIndexField; + } + set { + this.startIndexField = value; + this.startIndexSpecified = true; + } + } + + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool startIndexSpecified { + get { + return this.startIndexFieldSpecified; + } + set { + this.startIndexFieldSpecified = value; + } + } + + /// The collection of creative templates contained within this page. + /// + [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] + public CreativeTemplate[] results { + get { + return this.resultsField; + } + set { + this.resultsField = value; + } + } + } + + + /// A list of all errors associated with the Range constraint. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class RangeError : ApiError { + private RangeErrorReason reasonField; private bool reasonFieldSpecified; [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public InvalidPhoneNumberErrorReason reason { + public RangeErrorReason reason { get { return this.reasonField; } @@ -9096,14 +9266,10 @@ public bool reasonSpecified { [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "InvalidPhoneNumberError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum InvalidPhoneNumberErrorReason { - /// The phone number is invalid. - /// - INVALID_FORMAT = 0, - /// The phone number is too short. - /// - TOO_SHORT = 1, + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "RangeError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum RangeErrorReason { + TOO_HIGH = 0, + TOO_LOW = 1, /// The value returned if the actual value is not exposed by the requested API /// version. /// @@ -9111,22 +9277,22 @@ public enum InvalidPhoneNumberErrorReason { } - /// Lists all errors associated with images. + /// Caused by supplying a non-null value for an attribute that should be null. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ImageError : ApiError { - private ImageErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class NullError : ApiError { + private NullErrorReason reasonField; private bool reasonFieldSpecified; /// The error reason represented by an enum. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public ImageErrorReason reason { + public NullErrorReason reason { get { return this.reasonField; } @@ -9155,117 +9321,28 @@ public bool reasonSpecified { /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ImageError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum ImageErrorReason { - /// The file's format is invalid. - /// - INVALID_IMAGE = 0, - /// Size#width and Size#height - /// cannot be negative. - /// - INVALID_SIZE = 1, - /// The actual image size does not match the expected image size. + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "NullError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum NullErrorReason { + /// Specified list/container must not contain any null elements /// - UNEXPECTED_SIZE = 2, - /// The size of the asset is larger than that of the overlay creative. - /// - OVERLAY_SIZE_TOO_LARGE = 3, - /// Animated images are not allowed. - /// - ANIMATED_NOT_ALLOWED = 4, - /// Animation length exceeded the allowed policy limit. - /// - ANIMATION_TOO_LONG = 5, - /// Images in CMYK color formats are not allowed. - /// - CMYK_JPEG_NOT_ALLOWED = 6, - /// Flash files are not allowed. - /// - FLASH_NOT_ALLOWED = 7, - /// If FlashCreative#clickTagRequired - /// is true, then the flash file is required to have a click tag - /// embedded in it. - /// - FLASH_WITHOUT_CLICKTAG = 8, - /// Animated visual effect is not allowed. - /// - ANIMATED_VISUAL_EFFECT = 9, - /// An error was encountered in the flash file. - /// - FLASH_ERROR = 10, - /// Incorrect image layout. - /// - LAYOUT_PROBLEM = 11, - /// Flash files with network objects are not allowed. - /// - FLASH_HAS_NETWORK_OBJECTS = 12, - /// Flash files with network methods are not allowed. - /// - FLASH_HAS_NETWORK_METHODS = 13, - /// Flash files with hard-coded click thru URLs are not allowed. - /// - FLASH_HAS_URL = 14, - /// Flash files with mouse tracking are not allowed. - /// - FLASH_HAS_MOUSE_TRACKING = 15, - /// Flash files that generate or use random numbers are not allowed. - /// - FLASH_HAS_RANDOM_NUM = 16, - /// Flash files with self targets are not allowed. - /// - FLASH_SELF_TARGETS = 17, - /// Flash file contains a bad geturl target. - /// - FLASH_BAD_GETURL_TARGET = 18, - /// Flash or ActionScript version in the submitted file is not supported. - /// - FLASH_VERSION_NOT_SUPPORTED = 19, - /// The uploaded file is too large. - /// - FILE_TOO_LARGE = 20, - /// A system error occurred, please try again. - /// - SYSTEM_ERROR_IRS = 27, - /// A system error occurred, please try again. - /// - SYSTEM_ERROR_SCS = 28, - /// The image density for a primary asset was not one of the expected image - /// densities. - /// - UNEXPECTED_PRIMARY_ASSET_DENSITY = 22, - /// Two or more assets have the same image density. - /// - DUPLICATE_ASSET_DENSITY = 23, - /// The creative does not contain a primary asset. (For high-density creatives, the - /// primary asset must be a standard image file with 1x density.) - /// - MISSING_DEFAULT_ASSET = 24, - /// preverified_mime_type is not in the client spec's allowlist. - /// - PREVERIFIED_MIMETYPE_NOT_ALLOWED = 26, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 25, + NULL_CONTENT = 0, } - /// Lists all errors associated with html5 file processing. + /// Lists all errors associated with URLs. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class HtmlBundleProcessorError : ApiError { - private HtmlBundleProcessorErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class InvalidUrlError : ApiError { + private InvalidUrlErrorReason reasonField; private bool reasonFieldSpecified; - /// The error reason represented by an enum. - /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public HtmlBundleProcessorErrorReason reason { + public InvalidUrlErrorReason reason { get { return this.reasonField; } @@ -9290,85 +9367,47 @@ public bool reasonSpecified { } - /// Error reasons that may arise during HTML5 bundle processing. - /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "HtmlBundleProcessorError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum HtmlBundleProcessorErrorReason { - /// Cannot extract files from HTML5 bundle. - /// - CANNOT_EXTRACT_FILES_FROM_BUNDLE = 0, - /// Bundle cannot have hard-coded click tag url(s). - /// - CLICK_TAG_HARD_CODED = 1, - /// Bundles created using GWD (Google Web Designer) cannot have click tags. - /// GWD-published bundles should use exit events instead of defining var - /// clickTAG. - /// - CLICK_TAG_IN_GWD_UNUPPORTED = 2, - /// Click tag detected outside of primary HTML file. - /// - CLICK_TAG_NOT_IN_PRIMARY_HTML = 3, - /// Click tag or exit function has invalid name or url. - /// - CLICK_TAG_INVALID = 4, - /// HTML5 bundle or total size of extracted files cannot be more than 1000 KB. - /// - FILE_SIZE_TOO_LARGE = 5, - /// HTML5 bundle cannot have more than 50 files. - /// - FILES_TOO_MANY = 6, - /// Flash files in HTML5 bundles are not supported. Any file with a .swf or .flv - /// extension causes this error. - /// - FLASH_UNSUPPORTED = 7, - /// The HTML5 bundle contains unsupported GWD component(s). - /// - GWD_COMPONENTS_UNSUPPORTED = 8, - /// The HTML5 bundle contains Unsupported GWD Enabler method(s). - /// - GWD_ENABLER_METHODS_UNSUPPORTED = 9, - /// GWD properties are invalid. - /// - GWD_PROPERTIES_INVALID = 10, - /// The HTML5 bundle contains broken relative file reference(s). - /// - LINKED_FILES_NOT_FOUND = 11, - /// No primary HTML file detected. + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "InvalidUrlError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum InvalidUrlErrorReason { + /// The URL contains invalid characters. /// - PRIMARY_HTML_MISSING = 12, - /// Multiple HTML files are detected. One of them should be named as - /// index.html + ILLEGAL_CHARACTERS = 0, + /// The format of the URL is not allowed. This could occur for a number of reasons. + /// For example, if an invalid scheme is specified (like "ftp://") or if a port is + /// specified when not required, or if a query was specified when not required. /// - PRIMARY_HTML_UNDETERMINED = 13, - /// An SVG block could not be parsed. + INVALID_FORMAT = 1, + /// URL contains insecure scheme. /// - SVG_BLOCK_INVALID = 14, - /// The HTML5 bundle cannot be decoded. + INSECURE_SCHEME = 2, + /// The URL does not contain a scheme. /// - CANNOT_DECODE_BUNDLE = 16, + NO_SCHEME = 3, /// The value returned if the actual value is not exposed by the requested API /// version. /// - UNKNOWN = 15, + UNKNOWN = 4, } - /// A list of all errors to be used for problems related to files. + /// An error that can occur while performing an operation on a creative template. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class FileError : ApiError { - private FileErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class CreativeTemplateOperationError : ApiError { + private CreativeTemplateOperationErrorReason reasonField; private bool reasonFieldSpecified; + /// The error reason represented by an enum. + /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public FileErrorReason reason { + public CreativeTemplateOperationErrorReason reason { get { return this.reasonField; } @@ -9393,16 +9432,19 @@ public bool reasonSpecified { } + /// The reasons for the target error. + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "FileError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum FileErrorReason { - /// The provided byte array is empty. + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CreativeTemplateOperationError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum CreativeTemplateOperationErrorReason { + /// The current user is not allowed to modify this creative template. /// - MISSING_CONTENTS = 0, - /// The provided file is larger than the maximum size defined for the network. + NOT_ALLOWED = 0, + /// The operation is not applicable to the current state. (e.g. Trying to activate + /// an active creative template) /// - SIZE_TOO_LARGE = 1, + NOT_APPLICABLE = 1, /// The value returned if the actual value is not exposed by the requested API /// version. /// @@ -9410,21 +9452,23 @@ public enum FileErrorReason { } - /// An error that occurs when creating an entity if the limit on the number of - /// allowed entities for a network has already been reached. + /// A catch-all error that lists all generic errors associated with + /// CreativeTemplate. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class EntityLimitReachedError : ApiError { - private EntityLimitReachedErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class CreativeTemplateError : ApiError { + private CreativeTemplateErrorReason reasonField; private bool reasonFieldSpecified; + /// The error reason represented by an enum. + /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public EntityLimitReachedErrorReason reason { + public CreativeTemplateErrorReason reason { get { return this.reasonField; } @@ -9449,367 +9493,793 @@ public bool reasonSpecified { } - /// The reasons for the entity limit reached error. + /// The reasons for the target error. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "EntityLimitReachedError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum EntityLimitReachedErrorReason { - /// The number of custom targeting values exceeds the max number allowed in the - /// network. + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CreativeTemplateError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum CreativeTemplateErrorReason { + /// The XML of the creative template definition is malformed and cannot be parsed. /// - CUSTOM_TARGETING_VALUES_LIMIT_REACHED = 0, - /// The number of ad exclusion rules exceeds the max number allowed in the network. + CANNOT_PARSE_CREATIVE_TEMPLATE = 0, + /// A creative template has multiple variables with the same uniqueName. /// - AD_EXCLUSION_RULES_LIMIT_REACHED = 1, - /// The number of first party audience segments exceeds the max number allowed in - /// the network. + VARIABLE_DUPLICATE_UNIQUE_NAME = 1, + /// The creative template contains a variable with invalid characters. Valid + /// characters are letters, numbers, spaces, forward slashes, dashes, and + /// underscores. /// - FIRST_PARTY_AUDIENCE_SEGMENTS_LIMIT_REACHED = 2, - /// The number of active placements exceeds the max number allowed in the network. + VARIABLE_INVALID_UNIQUE_NAME = 2, + /// Multiple choices for a CreativeTemplateListStringVariable have the same value. /// - PLACEMENTS_LIMIT_REACHED = 3, - /// The number of line items excceeds the max number allowed in the network. + LIST_CHOICE_DUPLICATE_VALUE = 3, + /// The choices for a CreativeTemplateListStringVariable do not contain the default + /// value. /// - LINE_ITEMS_LIMIT_REACHED = 4, - /// The number of active line items exceeds the max number allowed in the network. + LIST_CHOICE_NEEDS_DEFAULT = 4, + /// There are no choices specified for the list variable. /// - ACTIVE_LINE_ITEMS_LIMIT_REACHED = 6, - /// The number of not-archived encoding profiles exceeds the max number allowed in - /// the network. + LIST_CHOICES_EMPTY = 5, + /// No target platform is assigned to a creative template. /// - DAI_ENCODING_PROFILES_LIMIT_REACHED = 9, - /// The number of traffic forecast segments exceeds the max number allowed in the - /// network. + NO_TARGET_PLATFORMS = 6, + /// More than one target platform is assigned to a single creative template. /// - TRAFFIC_FORECAST_SEGMENTS_LIMIT_REACHED = 7, - /// The number of forecast adjustments exceeds the max number allowed in the - /// network. + MULTIPLE_TARGET_PLATFORMS = 7, + /// The formatter contains a placeholder which is not defined as a variable. /// - FORECAST_ADJUSTMENTS_LIMIT_REACHED = 8, - /// The number of active experiments exceeds the max number allowed in the network. + UNRECOGNIZED_PLACEHOLDER = 8, + /// There are variables defined which are not being used in the formatter. /// - ACTIVE_EXPERIMENTS_LIMIT_REACHED = 10, - /// The number of sites exceeds the max number allowed in the network. + PLACEHOLDERS_NOT_IN_FORMATTER = 9, + /// The creative template is interstitial, but the formatter doesn't contain an + /// interstitial macro. /// - SITES_LIMIT_REACHED = 11, + MISSING_INTERSTITIAL_MACRO = 10, /// The value returned if the actual value is not exposed by the requested API /// version. /// - UNKNOWN = 5, + UNKNOWN = 11, } - /// Errors specific to editing custom field values + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", ConfigurationName = "Google.Api.Ads.AdManager.v202411.CreativeTemplateServiceInterface")] + public interface CreativeTemplateServiceInterface + { + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v202411.CreativeTemplatePage getCreativeTemplatesByStatement(Google.Api.Ads.AdManager.v202411.Statement filterStatement); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task getCreativeTemplatesByStatementAsync(Google.Api.Ads.AdManager.v202411.Statement filterStatement); + } + + + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + public interface CreativeTemplateServiceInterfaceChannel : Google.Api.Ads.AdManager.v202411.CreativeTemplateServiceInterface, System.ServiceModel.IClientChannel + { + } + + + /// Provides methods for retrieving CreativeTemplate + /// objects. + /// + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + public partial class CreativeTemplateService : AdManagerSoapClient, ICreativeTemplateService { + /// Creates a new instance of the + /// class. + public CreativeTemplateService() { + } + + /// Creates a new instance of the + /// class. + public CreativeTemplateService(string endpointConfigurationName) + : base(endpointConfigurationName) { + } + + /// Creates a new instance of the + /// class. + public CreativeTemplateService(string endpointConfigurationName, string remoteAddress) + : base(endpointConfigurationName, remoteAddress) { + } + + /// Creates a new instance of the + /// class. + public CreativeTemplateService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) + : base(endpointConfigurationName, remoteAddress) { + } + + /// Creates a new instance of the + /// class. + public CreativeTemplateService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) + : base(binding, remoteAddress) { + } + + /// Gets a CreativeTemplatePage of CreativeTemplate objects that satisfy the given Statement#query. The following fields are supported + /// for filtering: + /// + /// + ///
PQL Property Object Property
id CreativeTemplate#id
name CreativeTemplate#name
type CreativeTemplate#type
status CreativeTemplate#status
+ ///
+ public virtual Google.Api.Ads.AdManager.v202411.CreativeTemplatePage getCreativeTemplatesByStatement(Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.getCreativeTemplatesByStatement(filterStatement); + } + + public virtual System.Threading.Tasks.Task getCreativeTemplatesByStatementAsync(Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.getCreativeTemplatesByStatementAsync(filterStatement); + } + } + namespace Wrappers.CreativeWrapperService + { + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "createCreativeWrappers", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class createCreativeWrappersRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("creativeWrappers")] + public Google.Api.Ads.AdManager.v202411.CreativeWrapper[] creativeWrappers; + + /// Creates a new instance of the class. + public createCreativeWrappersRequest() { + } + + /// Creates a new instance of the class. + public createCreativeWrappersRequest(Google.Api.Ads.AdManager.v202411.CreativeWrapper[] creativeWrappers) { + this.creativeWrappers = creativeWrappers; + } + } + + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "createCreativeWrappersResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class createCreativeWrappersResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("rval")] + public Google.Api.Ads.AdManager.v202411.CreativeWrapper[] rval; + + /// Creates a new instance of the class. + public createCreativeWrappersResponse() { + } + + /// Creates a new instance of the class. + public createCreativeWrappersResponse(Google.Api.Ads.AdManager.v202411.CreativeWrapper[] rval) { + this.rval = rval; + } + } + + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "updateCreativeWrappers", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class updateCreativeWrappersRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("creativeWrappers")] + public Google.Api.Ads.AdManager.v202411.CreativeWrapper[] creativeWrappers; + + /// Creates a new instance of the class. + public updateCreativeWrappersRequest() { + } + + /// Creates a new instance of the class. + public updateCreativeWrappersRequest(Google.Api.Ads.AdManager.v202411.CreativeWrapper[] creativeWrappers) { + this.creativeWrappers = creativeWrappers; + } + } + + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "updateCreativeWrappersResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class updateCreativeWrappersResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("rval")] + public Google.Api.Ads.AdManager.v202411.CreativeWrapper[] rval; + + /// Creates a new instance of the class. + public updateCreativeWrappersResponse() { + } + + /// Creates a new instance of the class. + public updateCreativeWrappersResponse(Google.Api.Ads.AdManager.v202411.CreativeWrapper[] rval) { + this.rval = rval; + } + } + } + /// Represents a set of declarations about what (if any) third party companies are + /// associated with a given creative.

This can be set at the network level, as a + /// default for all creatives, or overridden for a particular creative.

///
[System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class CustomFieldValueError : ApiError { - private CustomFieldValueErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ThirdPartyDataDeclaration { + private DeclarationType declarationTypeField; - private bool reasonFieldSpecified; + private bool declarationTypeFieldSpecified; + + private long[] thirdPartyCompanyIdsField; - /// The error reason represented by an enum. - /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public CustomFieldValueErrorReason reason { + public DeclarationType declarationType { get { - return this.reasonField; + return this.declarationTypeField; } set { - this.reasonField = value; - this.reasonSpecified = true; + this.declarationTypeField = value; + this.declarationTypeSpecified = true; } } - /// true, if a value is specified for , - /// false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { + public bool declarationTypeSpecified { get { - return this.reasonFieldSpecified; + return this.declarationTypeFieldSpecified; } set { - this.reasonFieldSpecified = value; + this.declarationTypeFieldSpecified = value; + } + } + + [System.Xml.Serialization.XmlElementAttribute("thirdPartyCompanyIds", Order = 1)] + public long[] thirdPartyCompanyIds { + get { + return this.thirdPartyCompanyIdsField; + } + set { + this.thirdPartyCompanyIdsField = value; } } } - /// The reasons for the target error. + /// The declaration about third party data usage on the associated entity. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CustomFieldValueError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum CustomFieldValueErrorReason { - /// An attempt was made to modify or create a CustomFieldValue for a CustomField that does not exist. - /// - CUSTOM_FIELD_NOT_FOUND = 0, - /// An attempt was made to create a new value for a custom field that is inactive. - /// - CUSTOM_FIELD_INACTIVE = 1, - /// An attempt was made to modify or create a CustomFieldValue corresponding to a CustomFieldOption that could not be found. + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum DeclarationType { + /// There are no companies associated. Functionally the same as DECLARED, combined + /// with an empty company list. /// - CUSTOM_FIELD_OPTION_NOT_FOUND = 2, - /// An attempt was made to modify or create a CustomFieldValue with an association to an entity of - /// the wrong type for its field. + NONE = 0, + /// There is a set of RichMediaAdsCompanys + /// associated with this entity. /// - INVALID_ENTITY_TYPE = 4, + DECLARED = 1, /// The value returned if the actual value is not exposed by the requested API /// version. /// - UNKNOWN = 3, + UNKNOWN = 2, } - /// Lists all errors associated with custom creatives. + /// This represents an entry in a map with a key of type ConversionEvent and value + /// of type TrackingUrls. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class CustomCreativeError : ApiError { - private CustomCreativeErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ConversionEvent_TrackingUrlsMapEntry { + private ConversionEvent keyField; - private bool reasonFieldSpecified; + private bool keyFieldSpecified; + + private string[] valueField; - /// The error reason represented by an enum. - /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public CustomCreativeErrorReason reason { + public ConversionEvent key { get { - return this.reasonField; + return this.keyField; } set { - this.reasonField = value; - this.reasonSpecified = true; + this.keyField = value; + this.keySpecified = true; } } - /// true, if a value is specified for , + /// true, if a value is specified for , /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { + public bool keySpecified { get { - return this.reasonFieldSpecified; + return this.keyFieldSpecified; } set { - this.reasonFieldSpecified = value; + this.keyFieldSpecified = value; + } + } + + [System.Xml.Serialization.XmlArrayAttribute(Order = 1)] + [System.Xml.Serialization.XmlArrayItemAttribute("urls", IsNullable = false)] + public string[] value { + get { + return this.valueField; + } + set { + this.valueField = value; } } } - /// The reasons for the target error. + /// All possible tracking event types. Not all events are supported by every kind of + /// creative. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CustomCreativeError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum CustomCreativeErrorReason { - /// Macros associated with a single custom creative must have unique names. - /// - DUPLICATE_MACRO_NAME_FOR_CREATIVE = 0, - /// The file macro referenced in the snippet does not exist. + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum ConversionEvent { + /// The value returned if the actual value is not exposed by the requested API + /// version. /// - SNIPPET_REFERENCES_MISSING_MACRO = 1, - /// The macro referenced in the snippet is not valid. + UNKNOWN = 0, + /// Corresponds to the creativeView tracking event. /// - UNRECOGNIZED_MACRO = 2, - /// Custom creatives are not allowed in this context. + CREATIVE_VIEW = 1, + /// Corresponds to the start tracking event. /// - CUSTOM_CREATIVE_NOT_ALLOWED = 3, - /// The custom creative is an interstitial, but the snippet is missing an - /// interstitial macro. + START = 2, + /// An event that is fired when a video skip button is shown, usually after 5 + /// seconds of viewing the video. This event does not correspond to any VAST element + /// and is implemented using an extension. /// - MISSING_INTERSTITIAL_MACRO = 4, - /// Macros associated with the same custom creative cannot share the same asset. + SKIP_SHOWN = 3, + /// Corresponds to the firstQuartile tracking event. /// - DUPLICATE_ASSET_IN_MACROS = 5, - /// The value returned if the actual value is not exposed by the requested API - /// version. + FIRST_QUARTILE = 4, + /// Corresponds to the midpoint tracking event. /// - UNKNOWN = 6, + MIDPOINT = 5, + /// Corresponds to the thirdQuartile tracking event. + /// + THIRD_QUARTILE = 6, + /// An event that is fired after 30 seconds of viewing the video or when the video + /// finished (if the video duration is less than 30 seconds). This event does not + /// correspond to any VAST element and is implemented using an extension. + /// + ENGAGED_VIEW = 7, + /// Corresponds to the complete tracking event. + /// + COMPLETE = 8, + /// Corresponds to the mute tracking event. + /// + MUTE = 9, + /// Corresponds to the unmute tracking event. + /// + UNMUTE = 10, + /// Corresponds to the pause tracking event. + /// + PAUSE = 11, + /// Corresponds to the rewind tracking event. + /// + REWIND = 12, + /// Corresponds to the resume tracking event. + /// + RESUME = 13, + /// An event that is fired when a video was skipped. This event does not correspond + /// to any VAST element and is implemented using an extension. + /// + SKIPPED = 14, + /// Corresponds to the fullscreen tracking event. + /// + FULLSCREEN = 15, + /// Corresponds to the expand tracking event. + /// + EXPAND = 16, + /// Corresponds to the collapse tracking event. + /// + COLLAPSE = 17, + /// Corresponds to the acceptInvitation tracking event. + /// + ACCEPT_INVITATION = 18, + /// Corresponds to the close tracking event. + /// + CLOSE = 19, + /// Corresponds to the Linear.VideoClicks.ClickTracking node. + /// + CLICK_TRACKING = 20, + /// Corresponds to the InLine.Survey node. + /// + SURVEY = 21, + /// Corresponds to the Linear.VideoClicks.CustomClick node. + /// + CUSTOM_CLICK = 22, + /// Corresponds to the measurableImpression tracking event. + /// + MEASURABLE_IMPRESSION = 23, + /// Corresponds to the viewableImpression tracking event. + /// + VIEWABLE_IMPRESSION = 24, + /// Corresponds to the abandon tracking event. + /// + VIDEO_ABANDON = 25, + /// Corresponds to the tracking event. + /// + FULLY_VIEWABLE_AUDIBLE_HALF_DURATION_IMPRESSION = 26, } - /// An error that can occur while performing an operation on a creative template. + /// A CreativeWrapper allows the wrapping of HTML snippets to be served + /// along with Creative objects.

Creative wrappers must be + /// associated with a LabelType#CREATIVE_WRAPPER label and + /// applied to ad units by AdUnit#appliedLabels.

///
[System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class CreativeTemplateOperationError : ApiError { - private CreativeTemplateOperationErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class CreativeWrapper { + private long idField; - private bool reasonFieldSpecified; + private bool idFieldSpecified; - /// The error reason represented by an enum. + private long labelIdField; + + private bool labelIdFieldSpecified; + + private CreativeWrapperType creativeWrapperTypeField; + + private bool creativeWrapperTypeFieldSpecified; + + private string htmlHeaderField; + + private string htmlFooterField; + + private string ampHeadField; + + private string ampBodyField; + + private ConversionEvent_TrackingUrlsMapEntry[] videoTrackingUrlsField; + + private ThirdPartyDataDeclaration thirdPartyDataDeclarationField; + + private CreativeWrapperOrdering orderingField; + + private bool orderingFieldSpecified; + + private CreativeWrapperStatus statusField; + + private bool statusFieldSpecified; + + /// The unique ID of the CreativeWrapper. This value is readonly and is + /// assigned by Google. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public CreativeTemplateOperationErrorReason reason { + public long id { get { - return this.reasonField; + return this.idField; } set { - this.reasonField = value; - this.reasonSpecified = true; + this.idField = value; + this.idSpecified = true; } } - /// true, if a value is specified for , + /// true, if a value is specified for , /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { + public bool idSpecified { get { - return this.reasonFieldSpecified; + return this.idFieldSpecified; } set { - this.reasonFieldSpecified = value; + this.idFieldSpecified = value; + } + } + + /// The ID of the Label which will be used to label ad units. + /// The labelId on a creative wrapper cannot be changed once it is + /// created. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public long labelId { + get { + return this.labelIdField; + } + set { + this.labelIdField = value; + this.labelIdSpecified = true; } } - } + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool labelIdSpecified { + get { + return this.labelIdFieldSpecified; + } + set { + this.labelIdFieldSpecified = value; + } + } - /// The reasons for the target error. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CreativeTemplateOperationError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum CreativeTemplateOperationErrorReason { - /// The current user is not allowed to modify this creative template. + /// The creative wrapper type. If the creative wrapper type is CreativeWrapperType#VIDEO_TRACKING_URL, the field must + /// be set. If the creative wrapper type is CreativeWrapperType#HTML, either the + /// header or footer field must be set. This field is + /// required. /// - NOT_ALLOWED = 0, - /// The operation is not applicable to the current state. (e.g. Trying to activate - /// an active creative template) + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public CreativeWrapperType creativeWrapperType { + get { + return this.creativeWrapperTypeField; + } + set { + this.creativeWrapperTypeField = value; + this.creativeWrapperTypeSpecified = true; + } + } + + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool creativeWrapperTypeSpecified { + get { + return this.creativeWrapperTypeFieldSpecified; + } + set { + this.creativeWrapperTypeFieldSpecified = value; + } + } + + /// The header HTML snippet that this creative wrapper delivers. /// - NOT_APPLICABLE = 1, - /// The value returned if the actual value is not exposed by the requested API - /// version. + [System.Xml.Serialization.XmlElementAttribute(Order = 3)] + public string htmlHeader { + get { + return this.htmlHeaderField; + } + set { + this.htmlHeaderField = value; + } + } + + /// The footer HTML snippet that this creative wrapper delivers. /// - UNKNOWN = 2, - } + [System.Xml.Serialization.XmlElementAttribute(Order = 4)] + public string htmlFooter { + get { + return this.htmlFooterField; + } + set { + this.htmlFooterField = value; + } + } + + /// The header AMP snippet that this creative wrapper delivers. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 5)] + public string ampHead { + get { + return this.ampHeadField; + } + set { + this.ampHeadField = value; + } + } + /// The footer AMP snippet that this creative wrapper delivers. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 6)] + public string ampBody { + get { + return this.ampBodyField; + } + set { + this.ampBodyField = value; + } + } - /// A catch-all error that lists all generic errors associated with - /// CreativeTemplate. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class CreativeTemplateError : ApiError { - private CreativeTemplateErrorReason reasonField; + /// The video tracking URLs that this creative wrapper delivers. This field is + /// required if the creativeWrapperType is CreativeWrapperType#VIDEO_TRACKING_URL + /// and ignored otherwise. + /// + [System.Xml.Serialization.XmlElementAttribute("videoTrackingUrls", Order = 7)] + public ConversionEvent_TrackingUrlsMapEntry[] videoTrackingUrls { + get { + return this.videoTrackingUrlsField; + } + set { + this.videoTrackingUrlsField = value; + } + } - private bool reasonFieldSpecified; + /// The ThirdPartyDataDeclaration for this creative wrapper.

It is + /// copied to one of the underlying creatives. If the header creative is active then + /// it is persisted there. Otherwise it is stored on the footer creative.

+ ///
+ [System.Xml.Serialization.XmlElementAttribute(Order = 8)] + public ThirdPartyDataDeclaration thirdPartyDataDeclaration { + get { + return this.thirdPartyDataDeclarationField; + } + set { + this.thirdPartyDataDeclarationField = value; + } + } - /// The error reason represented by an enum. + /// If there are multiple wrappers for a creative, then defines the + /// order in which the HTML snippets are rendered. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public CreativeTemplateErrorReason reason { + [System.Xml.Serialization.XmlElementAttribute(Order = 9)] + public CreativeWrapperOrdering ordering { get { - return this.reasonField; + return this.orderingField; } set { - this.reasonField = value; - this.reasonSpecified = true; + this.orderingField = value; + this.orderingSpecified = true; } } - /// true, if a value is specified for , + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool orderingSpecified { + get { + return this.orderingFieldSpecified; + } + set { + this.orderingFieldSpecified = value; + } + } + + /// The status of the CreativeWrapper. This attribute is readonly. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 10)] + public CreativeWrapperStatus status { + get { + return this.statusField; + } + set { + this.statusField = value; + this.statusSpecified = true; + } + } + + /// true, if a value is specified for , /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { + public bool statusSpecified { get { - return this.reasonFieldSpecified; + return this.statusFieldSpecified; } set { - this.reasonFieldSpecified = value; + this.statusFieldSpecified = value; } } } - /// The reasons for the target error. + /// The type of a creative wrapper which is specified on the CreativeWrapper. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CreativeTemplateError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum CreativeTemplateErrorReason { - /// The XML of the creative template definition is malformed and cannot be parsed. - /// - CANNOT_PARSE_CREATIVE_TEMPLATE = 0, - /// A creative template has multiple variables with the same uniqueName. - /// - VARIABLE_DUPLICATE_UNIQUE_NAME = 1, - /// The creative template contains a variable with invalid characters. Valid - /// characters are letters, numbers, spaces, forward slashes, dashes, and - /// underscores. - /// - VARIABLE_INVALID_UNIQUE_NAME = 2, - /// Multiple choices for a CreativeTemplateListStringVariable have the same value. - /// - LIST_CHOICE_DUPLICATE_VALUE = 3, - /// The choices for a CreativeTemplateListStringVariable do not contain the default - /// value. - /// - LIST_CHOICE_NEEDS_DEFAULT = 4, - /// There are no choices specified for the list variable. - /// - LIST_CHOICES_EMPTY = 5, - /// No target platform is assigned to a creative template. + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum CreativeWrapperType { + /// HTML creative wrappers that include header/footer HTML snippets. /// - NO_TARGET_PLATFORMS = 6, - /// More than one target platform is assigned to a single creative template. + HTML = 0, + /// Video Tracking URL creative wrappers that include tracking URIs. /// - MULTIPLE_TARGET_PLATFORMS = 7, - /// The formatter contains a placeholder which is not defined as a variable. + VIDEO_TRACKING_URL = 1, + /// The value returned if the actual value is not exposed by the requested API + /// version. /// - UNRECOGNIZED_PLACEHOLDER = 8, - /// There are variables defined which are not being used in the formatter. + UNKNOWN = 2, + } + + + /// Defines the order in which the header and footer HTML snippets will be wrapped + /// around the served creative. INNER snippets will be wrapped first, + /// followed by NO_PREFERENCE and finally OUTER. If the + /// creative needs to be wrapped with more than one snippet with the same CreativeWrapperOrdering, then the order is + /// unspecified. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum CreativeWrapperOrdering { + /// Wrapping occurs after #INNER but before #OUTER /// - PLACEHOLDERS_NOT_IN_FORMATTER = 9, - /// The creative template is interstitial, but the formatter doesn't contain an - /// interstitial macro. + NO_PREFERENCE = 0, + /// Wrapping occurs as early as possible. /// - MISSING_INTERSTITIAL_MACRO = 10, - /// The value returned if the actual value is not exposed by the requested API - /// version. + INNER = 1, + /// Wrapping occurs after both #NO_PREFERENCE and #INNER /// - UNKNOWN = 11, + OUTER = 2, } - /// Errors relating to creative sets & subclasses. + /// Indicates whether the CreativeWrapper is active. HTML snippets are + /// served to creatives only when the creative wrapper is active. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum CreativeWrapperStatus { + ACTIVE = 0, + INACTIVE = 1, + } + + + /// An error for a field which is an invalid type. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class CreativeSetError : ApiError { - private CreativeSetErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class TypeError : ApiError { + } + + + /// Errors specific to labels. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class LabelError : ApiError { + private LabelErrorReason reasonField; private bool reasonFieldSpecified; /// The error reason represented by an enum. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public CreativeSetErrorReason reason { + public LabelErrorReason reason { get { return this.reasonField; } @@ -9838,56 +10308,37 @@ public bool reasonSpecified { /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CreativeSetError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum CreativeSetErrorReason { - /// The 'video' feature is required but not enabled. - /// - VIDEO_FEATURE_REQUIRED = 0, - /// Video creatives (including overlays, VAST redirects, etc..) cannot be created or - /// updated through the API. - /// - CANNOT_CREATE_OR_UPDATE_VIDEO_CREATIVES = 1, - /// The 'roadblock' feature is required but not enabled. - /// - ROADBLOCK_FEATURE_REQUIRED = 2, - /// A master creative cannot be a companion creative in the same creative set. - /// - MASTER_CREATIVE_CANNOT_BE_COMPANION = 3, - /// Creatives in a creative set must be for the same advertiser. - /// - INVALID_ADVERTISER = 4, - /// Updating a master creative in a creative set is not allowed. - /// - UPDATE_MASTER_CREATIVE_NOT_ALLOWED = 5, - /// A master creative must belong to only one video creative set. + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "LabelError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum LabelErrorReason { + /// A user created label cannot begin with the Google internal system label prefix. /// - MASTER_CREATIVE_CANNOT_BELONG_TO_MULTIPLE_VIDEO_CREATIVE_SETS = 7, - /// The {@Code SkippableAdType} is not allowed. + INVALID_PREFIX = 0, + /// Label#name contains unsupported or reserved characters. /// - SKIPPABLE_AD_TYPE_NOT_ALLOWED = 8, + NAME_INVALID_CHARS = 1, /// The value returned if the actual value is not exposed by the requested API /// version. /// - UNKNOWN = 6, + UNKNOWN = 2, } - /// Lists all errors associated with creatives. + /// Errors specific to creative wrappers. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class CreativeError : ApiError { - private CreativeErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class CreativeWrapperError : ApiError { + private CreativeWrapperErrorReason reasonField; private bool reasonFieldSpecified; /// The error reason represented by an enum. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public CreativeErrorReason reason { + public CreativeWrapperErrorReason reason { get { return this.reasonField; } @@ -9912,291 +10363,123 @@ public bool reasonSpecified { } - /// The reasons for the target error. + /// The reasons for the creative wrapper error. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CreativeError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum CreativeErrorReason { - /// FlashRedirectCreative#flashUrl and - /// FlashRedirectCreative#fallbackUrl - /// are the same. The fallback URL is used when the flash URL does not work and must - /// be different from it. + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CreativeWrapperError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum CreativeWrapperErrorReason { + /// The label is already associated with a CreativeWrapper. /// - FLASH_AND_FALLBACK_URL_ARE_SAME = 0, - /// The internal redirect URL was invalid. The URL must have the following syntax - /// http://ad.doubleclick.net/ad/sitename/;sz=size. + LABEL_ALREADY_ASSOCIATED_WITH_CREATIVE_WRAPPER = 0, + /// The label type of a creative wrapper must be LabelType#CREATIVE_WRAPPER. /// - INVALID_INTERNAL_REDIRECT_URL = 1, - /// HasDestinationUrlCreative#destinationUrl - /// is required. + INVALID_LABEL_TYPE = 1, + /// A macro used inside the snippet is not recognized. /// - DESTINATION_URL_REQUIRED = 2, - /// HasDestinationUrlCreative#destinationUrl - /// must be empty when its type is DestinationUrlType#NONE. - /// - DESTINATION_URL_NOT_EMPTY = 14, - /// The provided DestinationUrlType is not - /// supported for the creative type it is being used on. - /// - DESTINATION_URL_TYPE_NOT_SUPPORTED = 15, - /// Cannot create or update legacy DART For Publishers creative. - /// - CANNOT_CREATE_OR_UPDATE_LEGACY_DFP_CREATIVE = 3, - /// Cannot create or update legacy mobile creative. - /// - CANNOT_CREATE_OR_UPDATE_LEGACY_DFP_MOBILE_CREATIVE = 4, - /// The user is missing a necessary feature. - /// - MISSING_FEATURE = 5, - /// Company type should be one of Advertisers, House Advertisers and Ad Networks. - /// - INVALID_COMPANY_TYPE = 6, - /// Invalid size for AdSense dynamic allocation creative. Only valid AFC sizes are - /// allowed. - /// - INVALID_ADSENSE_CREATIVE_SIZE = 7, - /// Invalid size for Ad Exchange dynamic allocation creative. Only valid Ad Exchange - /// sizes are allowed. - /// - INVALID_AD_EXCHANGE_CREATIVE_SIZE = 8, - /// Assets associated with the same creative must be unique. - /// - DUPLICATE_ASSET_IN_CREATIVE = 9, - /// A creative asset cannot contain an asset ID and a byte array. - /// - CREATIVE_ASSET_CANNOT_HAVE_ID_AND_BYTE_ARRAY = 10, - /// Cannot create or update unsupported creative. - /// - CANNOT_CREATE_OR_UPDATE_UNSUPPORTED_CREATIVE = 11, - /// Cannot create programmatic creatives. - /// - CANNOT_CREATE_PROGRAMMATIC_CREATIVES = 12, - /// A creative must have valid size to use the third-party impression tracker. - /// - INVALID_SIZE_FOR_THIRD_PARTY_IMPRESSION_TRACKER = 16, - /// Ineligible creatives can not be deactivated. - /// - CANNOT_DEACTIVATE_CREATIVES_IN_CREATIVE_SETS = 17, - /// Ad Manager hosted video creatives must contain a video asset. - /// - HOSTED_VIDEO_CREATIVE_REQUIRES_VIDEO_ASSET = 18, - /// ImageCreative#thirdPartyImpressionTrackingUrls - /// should not contain more than one url. - /// - CANNOT_SET_MULTIPLE_IMPRESSION_TRACKING_URLS = 19, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 13, - } - - - /// Lists all errors associated with creative asset macros. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class CreativeAssetMacroError : ApiError { - private CreativeAssetMacroErrorReason reasonField; - - private bool reasonFieldSpecified; - - /// The error reason represented by an enum. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public CreativeAssetMacroErrorReason reason { - get { - return this.reasonField; - } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { - return this.reasonFieldSpecified; - } - set { - this.reasonFieldSpecified = value; - } - } - } - - - /// The reasons for the target error. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CreativeAssetMacroError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum CreativeAssetMacroErrorReason { - /// Invalid macro name specified. Macro names must start with an alpha character and - /// consist only of alpha-numeric characters and underscores and be between 1 and 64 - /// characters. - /// - INVALID_MACRO_NAME = 0, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 1, - } - - - /// Lists all errors associated with assets. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class AssetError : ApiError { - private AssetErrorReason reasonField; - - private bool reasonFieldSpecified; - - /// The error reason represented by an enum. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public AssetErrorReason reason { - get { - return this.reasonField; - } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { - return this.reasonFieldSpecified; - } - set { - this.reasonFieldSpecified = value; - } - } - } - - - /// The reasons for the target error. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AssetError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum AssetErrorReason { - /// An asset name must be unique across advertiser. - /// - NON_UNIQUE_NAME = 0, - /// The file name is too long. + UNRECOGNIZED_MACRO = 2, + /// When creating a new creative wrapper, either header or footer should exist. /// - FILE_NAME_TOO_LONG = 1, - /// The file size is too large. + NEITHER_HEADER_NOR_FOOTER_SPECIFIED = 3, + /// Creative wrapper must have either header and/or footer, or video tracking URLs. /// - FILE_SIZE_TOO_LARGE = 2, - /// Required client code is not present in the code snippet. + NEITHER_HEADER_NOR_FOOTER_NOR_VIDEO_TRACKING_URLS_SPECIFIED = 9, + /// The network has not been enabled for creating labels of type LabelType#CREATIVE_WRAPPER. /// - MISSING_REQUIRED_DYNAMIC_ALLOCATION_CLIENT = 3, - /// Required height is not present in the code snippet. + CANNOT_USE_CREATIVE_WRAPPER_TYPE = 4, + /// Cannot update CreativeWrapper#labelId. /// - MISSING_REQUIRED_DYNAMIC_ALLOCATION_HEIGHT = 4, - /// Required width is not present in the code snippet. + CANNOT_UPDATE_LABEL_ID = 5, + /// Cannot apply LabelType#CREATIVE_WRAPPER + /// labels to an ad unit if it has no descendants with AdUnit#adUnitSizes of as EnvironmentType#BROWSER. /// - MISSING_REQUIRED_DYNAMIC_ALLOCATION_WIDTH = 5, - /// Required format is not present in the mobile code snippet. + CANNOT_APPLY_TO_AD_UNIT_WITH_VIDEO_SIZES = 6, + /// Cannot apply LabelType#CREATIVE_WRAPPER + /// labels with a CreativeWrapper#VIDEO_TRACKING_URL type to an ad + /// unit if it has no descendants with AdUnit#adUnitSizes of + /// AdUnitSize#environmentType as EnvironmentType#VIDEO_PLAYER. /// - MISSING_REQUIRED_DYNAMIC_ALLOCATION_FORMAT = 6, - /// The parameter value in the code snippet is invalid. + CANNOT_APPLY_TO_AD_UNIT_WITHOUT_VIDEO_SIZES = 10, + /// Cannot apply LabelType#CREATIVE_WRAPPER + /// labels to an ad unit if the label is not associated with a creative wrapper. /// - INVALID_CODE_SNIPPET_PARAMETER_VALUE = 7, - /// Invalid asset Id. + CANNOT_APPLY_TO_AD_UNIT_WITHOUT_LABEL_ASSOCIATION = 11, + /// Cannot apply LabelType#CREATIVE_WRAPPER + /// labels to an ad unit if AdUnit#targetPlatform is of type /// - INVALID_ASSET_ID = 8, + CANNOT_APPLY_TO_MOBILE_AD_UNIT = 7, /// The value returned if the actual value is not exposed by the requested API /// version. /// - UNKNOWN = 9, + UNKNOWN = 8, } [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", ConfigurationName = "Google.Api.Ads.AdManager.v202311.CreativeServiceInterface")] - public interface CreativeServiceInterface + [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", ConfigurationName = "Google.Api.Ads.AdManager.v202411.CreativeWrapperServiceInterface")] + public interface CreativeWrapperServiceInterface { // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(Asset))] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Wrappers.CreativeService.createCreativesResponse createCreatives(Wrappers.CreativeService.createCreativesRequest request); + Wrappers.CreativeWrapperService.createCreativeWrappersResponse createCreativeWrappers(Wrappers.CreativeWrapperService.createCreativeWrappersRequest request); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task createCreativesAsync(Wrappers.CreativeService.createCreativesRequest request); + System.Threading.Tasks.Task createCreativeWrappersAsync(Wrappers.CreativeWrapperService.createCreativeWrappersRequest request); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(Asset))] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v202311.CreativePage getCreativesByStatement(Google.Api.Ads.AdManager.v202311.Statement filterStatement); + Google.Api.Ads.AdManager.v202411.CreativeWrapperPage getCreativeWrappersByStatement(Google.Api.Ads.AdManager.v202411.Statement filterStatement); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getCreativesByStatementAsync(Google.Api.Ads.AdManager.v202311.Statement filterStatement); + System.Threading.Tasks.Task getCreativeWrappersByStatementAsync(Google.Api.Ads.AdManager.v202411.Statement filterStatement); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(Asset))] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v202311.UpdateResult performCreativeAction(Google.Api.Ads.AdManager.v202311.CreativeAction creativeAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement); + Google.Api.Ads.AdManager.v202411.UpdateResult performCreativeWrapperAction(Google.Api.Ads.AdManager.v202411.CreativeWrapperAction creativeWrapperAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task performCreativeActionAsync(Google.Api.Ads.AdManager.v202311.CreativeAction creativeAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement); + System.Threading.Tasks.Task performCreativeWrapperActionAsync(Google.Api.Ads.AdManager.v202411.CreativeWrapperAction creativeWrapperAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement); // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(Asset))] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Wrappers.CreativeService.updateCreativesResponse updateCreatives(Wrappers.CreativeService.updateCreativesRequest request); + Wrappers.CreativeWrapperService.updateCreativeWrappersResponse updateCreativeWrappers(Wrappers.CreativeWrapperService.updateCreativeWrappersRequest request); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task updateCreativesAsync(Wrappers.CreativeService.updateCreativesRequest request); + System.Threading.Tasks.Task updateCreativeWrappersAsync(Wrappers.CreativeWrapperService.updateCreativeWrappersRequest request); } - /// Captures a page of Creative objects. + /// Captures a page of CreativeWrapper objects. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class CreativePage { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class CreativeWrapperPage { private int totalResultSetSizeField; private bool totalResultSetSizeFieldSpecified; @@ -10205,7 +10488,7 @@ public partial class CreativePage { private bool startIndexFieldSpecified; - private Creative[] resultsField; + private CreativeWrapper[] resultsField; /// The size of the total result set to which this page belongs. /// @@ -10259,10 +10542,10 @@ public bool startIndexSpecified { } } - /// The collection of creatives contained within this page. + /// The collection of creative wrappers contained within this page. /// [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] - public Creative[] results { + public CreativeWrapper[] results { get { return this.resultsField; } @@ -10273,960 +10556,937 @@ public Creative[] results { } - /// Represents the actions that can be performed on Creative - /// objects. - /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(DeactivateCreatives))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ActivateCreatives))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public abstract partial class CreativeAction { - } - - - /// The action used for deactivating Creative objects. + /// Represents the actions that can be performed on CreativeWrapper objects. /// + [System.Xml.Serialization.XmlIncludeAttribute(typeof(DeactivateCreativeWrappers))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ActivateCreativeWrappers))] [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class DeactivateCreatives : CreativeAction { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public abstract partial class CreativeWrapperAction { } - /// The action used for activating Creative objects. + /// The action used for deactivating CreativeWrapper + /// objects. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ActivateCreatives : CreativeAction { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class DeactivateCreativeWrappers : CreativeWrapperAction { } - /// Represents the result of performing an action on objects. + /// The action used for activating CreativeWrapper + /// objects. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class UpdateResult { - private int numChangesField; - - private bool numChangesFieldSpecified; - - /// The number of objects that were changed as a result of performing the action. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public int numChanges { - get { - return this.numChangesField; - } - set { - this.numChangesField = value; - this.numChangesSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool numChangesSpecified { - get { - return this.numChangesFieldSpecified; - } - set { - this.numChangesFieldSpecified = value; - } - } + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ActivateCreativeWrappers : CreativeWrapperAction { } [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public interface CreativeServiceInterfaceChannel : Google.Api.Ads.AdManager.v202311.CreativeServiceInterface, System.ServiceModel.IClientChannel + public interface CreativeWrapperServiceInterfaceChannel : Google.Api.Ads.AdManager.v202411.CreativeWrapperServiceInterface, System.ServiceModel.IClientChannel { } - /// Provides methods for adding, updating and retrieving Creative objects.

For a creative to run, it must be - /// associated with a LineItem managed by the LineItemCreativeAssociationService.

Read more about creatives - /// on the Ad Manager - /// Help Center.

+ /// Provides methods for the creation and management of creative wrappers. CreativeWrappers allow HTML snippets to be served + /// along with creatives.

Creative wrappers must be associated with a LabelType#CREATIVE_WRAPPER label and + /// applied to ad units by AdUnit#appliedLabels.

///
[System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public partial class CreativeService : AdManagerSoapClient, ICreativeService { - /// Creates a new instance of the class. - /// - public CreativeService() { + public partial class CreativeWrapperService : AdManagerSoapClient, ICreativeWrapperService { + /// Creates a new instance of the + /// class. + public CreativeWrapperService() { } - /// Creates a new instance of the class. - /// - public CreativeService(string endpointConfigurationName) + /// Creates a new instance of the + /// class. + public CreativeWrapperService(string endpointConfigurationName) : base(endpointConfigurationName) { } - /// Creates a new instance of the class. - /// - public CreativeService(string endpointConfigurationName, string remoteAddress) + /// Creates a new instance of the + /// class. + public CreativeWrapperService(string endpointConfigurationName, string remoteAddress) : base(endpointConfigurationName, remoteAddress) { } - /// Creates a new instance of the class. - /// - public CreativeService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) + /// Creates a new instance of the + /// class. + public CreativeWrapperService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) : base(endpointConfigurationName, remoteAddress) { } - /// Creates a new instance of the class. - /// - public CreativeService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) + /// Creates a new instance of the + /// class. + public CreativeWrapperService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) : base(binding, remoteAddress) { } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.CreativeService.createCreativesResponse Google.Api.Ads.AdManager.v202311.CreativeServiceInterface.createCreatives(Wrappers.CreativeService.createCreativesRequest request) { - return base.Channel.createCreatives(request); + Wrappers.CreativeWrapperService.createCreativeWrappersResponse Google.Api.Ads.AdManager.v202411.CreativeWrapperServiceInterface.createCreativeWrappers(Wrappers.CreativeWrapperService.createCreativeWrappersRequest request) { + return base.Channel.createCreativeWrappers(request); } - /// Creates new Creative objects. + /// Creates a new CreativeWrapper objects.

The following fields are + /// required:

///
- public virtual Google.Api.Ads.AdManager.v202311.Creative[] createCreatives(Google.Api.Ads.AdManager.v202311.Creative[] creatives) { - Wrappers.CreativeService.createCreativesRequest inValue = new Wrappers.CreativeService.createCreativesRequest(); - inValue.creatives = creatives; - Wrappers.CreativeService.createCreativesResponse retVal = ((Google.Api.Ads.AdManager.v202311.CreativeServiceInterface)(this)).createCreatives(inValue); + public virtual Google.Api.Ads.AdManager.v202411.CreativeWrapper[] createCreativeWrappers(Google.Api.Ads.AdManager.v202411.CreativeWrapper[] creativeWrappers) { + Wrappers.CreativeWrapperService.createCreativeWrappersRequest inValue = new Wrappers.CreativeWrapperService.createCreativeWrappersRequest(); + inValue.creativeWrappers = creativeWrappers; + Wrappers.CreativeWrapperService.createCreativeWrappersResponse retVal = ((Google.Api.Ads.AdManager.v202411.CreativeWrapperServiceInterface)(this)).createCreativeWrappers(inValue); return retVal.rval; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202311.CreativeServiceInterface.createCreativesAsync(Wrappers.CreativeService.createCreativesRequest request) { - return base.Channel.createCreativesAsync(request); + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202411.CreativeWrapperServiceInterface.createCreativeWrappersAsync(Wrappers.CreativeWrapperService.createCreativeWrappersRequest request) { + return base.Channel.createCreativeWrappersAsync(request); } - public virtual System.Threading.Tasks.Task createCreativesAsync(Google.Api.Ads.AdManager.v202311.Creative[] creatives) { - Wrappers.CreativeService.createCreativesRequest inValue = new Wrappers.CreativeService.createCreativesRequest(); - inValue.creatives = creatives; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202311.CreativeServiceInterface)(this)).createCreativesAsync(inValue)).Result.rval); + public virtual System.Threading.Tasks.Task createCreativeWrappersAsync(Google.Api.Ads.AdManager.v202411.CreativeWrapper[] creativeWrappers) { + Wrappers.CreativeWrapperService.createCreativeWrappersRequest inValue = new Wrappers.CreativeWrapperService.createCreativeWrappersRequest(); + inValue.creativeWrappers = creativeWrappers; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202411.CreativeWrapperServiceInterface)(this)).createCreativeWrappersAsync(inValue)).Result.rval); } - /// Gets a CreativePage of Creative objects that satisfy the given Statement#query. The following fields are supported for filtering: - /// - /// - /// - /// - /// - /// - ///
PQL Property Object - /// Property
id Creative#id
nameCreative#name
advertiserId Creative#advertiserId
width Creative#size
height Creative#size
lastModifiedDateTime Creative#lastModifiedDateTime
+ /// Gets a CreativeWrapperPage of CreativeWrapper objects that satisfy the given Statement#query. The following fields are supported + /// for filtering: + /// + /// + ///
PQL Property Object Property
id CreativeWrapper#id
labelId CreativeWrapper#labelId
status CreativeWrapper#status
ordering CreativeWrapper#ordering
///
- public virtual Google.Api.Ads.AdManager.v202311.CreativePage getCreativesByStatement(Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.getCreativesByStatement(filterStatement); + public virtual Google.Api.Ads.AdManager.v202411.CreativeWrapperPage getCreativeWrappersByStatement(Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.getCreativeWrappersByStatement(filterStatement); } - public virtual System.Threading.Tasks.Task getCreativesByStatementAsync(Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.getCreativesByStatementAsync(filterStatement); + public virtual System.Threading.Tasks.Task getCreativeWrappersByStatementAsync(Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.getCreativeWrappersByStatementAsync(filterStatement); } - /// Performs action on Creative objects that match the given - /// Statement#query. + /// Performs actions on CreativeWrapper objects that + /// match the given Statement#query. /// - public virtual Google.Api.Ads.AdManager.v202311.UpdateResult performCreativeAction(Google.Api.Ads.AdManager.v202311.CreativeAction creativeAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.performCreativeAction(creativeAction, filterStatement); + public virtual Google.Api.Ads.AdManager.v202411.UpdateResult performCreativeWrapperAction(Google.Api.Ads.AdManager.v202411.CreativeWrapperAction creativeWrapperAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.performCreativeWrapperAction(creativeWrapperAction, filterStatement); } - public virtual System.Threading.Tasks.Task performCreativeActionAsync(Google.Api.Ads.AdManager.v202311.CreativeAction creativeAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.performCreativeActionAsync(creativeAction, filterStatement); + public virtual System.Threading.Tasks.Task performCreativeWrapperActionAsync(Google.Api.Ads.AdManager.v202411.CreativeWrapperAction creativeWrapperAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.performCreativeWrapperActionAsync(creativeWrapperAction, filterStatement); } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.CreativeService.updateCreativesResponse Google.Api.Ads.AdManager.v202311.CreativeServiceInterface.updateCreatives(Wrappers.CreativeService.updateCreativesRequest request) { - return base.Channel.updateCreatives(request); + Wrappers.CreativeWrapperService.updateCreativeWrappersResponse Google.Api.Ads.AdManager.v202411.CreativeWrapperServiceInterface.updateCreativeWrappers(Wrappers.CreativeWrapperService.updateCreativeWrappersRequest request) { + return base.Channel.updateCreativeWrappers(request); } - /// Updates the specified Creative objects. + /// Updates the specified CreativeWrapper objects. /// - public virtual Google.Api.Ads.AdManager.v202311.Creative[] updateCreatives(Google.Api.Ads.AdManager.v202311.Creative[] creatives) { - Wrappers.CreativeService.updateCreativesRequest inValue = new Wrappers.CreativeService.updateCreativesRequest(); - inValue.creatives = creatives; - Wrappers.CreativeService.updateCreativesResponse retVal = ((Google.Api.Ads.AdManager.v202311.CreativeServiceInterface)(this)).updateCreatives(inValue); + public virtual Google.Api.Ads.AdManager.v202411.CreativeWrapper[] updateCreativeWrappers(Google.Api.Ads.AdManager.v202411.CreativeWrapper[] creativeWrappers) { + Wrappers.CreativeWrapperService.updateCreativeWrappersRequest inValue = new Wrappers.CreativeWrapperService.updateCreativeWrappersRequest(); + inValue.creativeWrappers = creativeWrappers; + Wrappers.CreativeWrapperService.updateCreativeWrappersResponse retVal = ((Google.Api.Ads.AdManager.v202411.CreativeWrapperServiceInterface)(this)).updateCreativeWrappers(inValue); return retVal.rval; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202311.CreativeServiceInterface.updateCreativesAsync(Wrappers.CreativeService.updateCreativesRequest request) { - return base.Channel.updateCreativesAsync(request); + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202411.CreativeWrapperServiceInterface.updateCreativeWrappersAsync(Wrappers.CreativeWrapperService.updateCreativeWrappersRequest request) { + return base.Channel.updateCreativeWrappersAsync(request); } - public virtual System.Threading.Tasks.Task updateCreativesAsync(Google.Api.Ads.AdManager.v202311.Creative[] creatives) { - Wrappers.CreativeService.updateCreativesRequest inValue = new Wrappers.CreativeService.updateCreativesRequest(); - inValue.creatives = creatives; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202311.CreativeServiceInterface)(this)).updateCreativesAsync(inValue)).Result.rval); + public virtual System.Threading.Tasks.Task updateCreativeWrappersAsync(Google.Api.Ads.AdManager.v202411.CreativeWrapper[] creativeWrappers) { + Wrappers.CreativeWrapperService.updateCreativeWrappersRequest inValue = new Wrappers.CreativeWrapperService.updateCreativeWrappersRequest(); + inValue.creativeWrappers = creativeWrappers; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202411.CreativeWrapperServiceInterface)(this)).updateCreativeWrappersAsync(inValue)).Result.rval); } } - namespace Wrappers.CreativeSetService + namespace Wrappers.CustomTargetingService { - } - /// A creative set is comprised of a master creative and its companion creatives. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class CreativeSet { - private long idField; - - private bool idFieldSpecified; - - private string nameField; + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "createCustomTargetingKeys", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class createCustomTargetingKeysRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("keys")] + public Google.Api.Ads.AdManager.v202411.CustomTargetingKey[] keys; - private long masterCreativeIdField; + /// Creates a new instance of the class. + public createCustomTargetingKeysRequest() { + } - private bool masterCreativeIdFieldSpecified; + /// Creates a new instance of the class. + public createCustomTargetingKeysRequest(Google.Api.Ads.AdManager.v202411.CustomTargetingKey[] keys) { + this.keys = keys; + } + } - private long[] companionCreativeIdsField; - private DateTime lastModifiedDateTimeField; + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "createCustomTargetingKeysResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class createCustomTargetingKeysResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("rval")] + public Google.Api.Ads.AdManager.v202411.CustomTargetingKey[] rval; - /// Uniquely identifies the CreativeSet. This attribute is read-only - /// and is assigned by Google when a creative set is created. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public long id { - get { - return this.idField; + /// Creates a new instance of the class. + public createCustomTargetingKeysResponse() { } - set { - this.idField = value; - this.idSpecified = true; + + /// Creates a new instance of the class. + public createCustomTargetingKeysResponse(Google.Api.Ads.AdManager.v202411.CustomTargetingKey[] rval) { + this.rval = rval; } } - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool idSpecified { - get { - return this.idFieldSpecified; + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "createCustomTargetingValues", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class createCustomTargetingValuesRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("values")] + public Google.Api.Ads.AdManager.v202411.CustomTargetingValue[] values; + + /// Creates a new instance of the class. + public createCustomTargetingValuesRequest() { } - set { - this.idFieldSpecified = value; + + /// Creates a new instance of the class. + public createCustomTargetingValuesRequest(Google.Api.Ads.AdManager.v202411.CustomTargetingValue[] values) { + this.values = values; } } - /// The name of the creative set. This attribute is required and has a maximum - /// length of 255 characters. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public string name { - get { - return this.nameField; + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "createCustomTargetingValuesResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class createCustomTargetingValuesResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("rval")] + public Google.Api.Ads.AdManager.v202411.CustomTargetingValue[] rval; + + /// Creates a new instance of the class. + public createCustomTargetingValuesResponse() { } - set { - this.nameField = value; + + /// Creates a new instance of the class. + public createCustomTargetingValuesResponse(Google.Api.Ads.AdManager.v202411.CustomTargetingValue[] rval) { + this.rval = rval; } } - /// The ID of the master creative associated with this creative set. This attribute - /// is required. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public long masterCreativeId { - get { - return this.masterCreativeIdField; - } - set { - this.masterCreativeIdField = value; - this.masterCreativeIdSpecified = true; - } - } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool masterCreativeIdSpecified { - get { - return this.masterCreativeIdFieldSpecified; - } - set { - this.masterCreativeIdFieldSpecified = value; - } - } + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "updateCustomTargetingKeys", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class updateCustomTargetingKeysRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("keys")] + public Google.Api.Ads.AdManager.v202411.CustomTargetingKey[] keys; - /// The IDs of the companion creatives associated with this creative set. This - /// attribute is required. - /// - [System.Xml.Serialization.XmlElementAttribute("companionCreativeIds", Order = 3)] - public long[] companionCreativeIds { - get { - return this.companionCreativeIdsField; + /// Creates a new instance of the class. + public updateCustomTargetingKeysRequest() { } - set { - this.companionCreativeIdsField = value; + + /// Creates a new instance of the class. + public updateCustomTargetingKeysRequest(Google.Api.Ads.AdManager.v202411.CustomTargetingKey[] keys) { + this.keys = keys; } } - /// The date and time this creative set was last modified. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public DateTime lastModifiedDateTime { - get { - return this.lastModifiedDateTimeField; + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "updateCustomTargetingKeysResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class updateCustomTargetingKeysResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("rval")] + public Google.Api.Ads.AdManager.v202411.CustomTargetingKey[] rval; + + /// Creates a new instance of the class. + public updateCustomTargetingKeysResponse() { } - set { - this.lastModifiedDateTimeField = value; + + /// Creates a new instance of the class. + public updateCustomTargetingKeysResponse(Google.Api.Ads.AdManager.v202411.CustomTargetingKey[] rval) { + this.rval = rval; } } - } - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", ConfigurationName = "Google.Api.Ads.AdManager.v202311.CreativeSetServiceInterface")] - public interface CreativeSetServiceInterface - { - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v202311.CreativeSet createCreativeSet(Google.Api.Ads.AdManager.v202311.CreativeSet creativeSet); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task createCreativeSetAsync(Google.Api.Ads.AdManager.v202311.CreativeSet creativeSet); + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "updateCustomTargetingValues", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class updateCustomTargetingValuesRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("values")] + public Google.Api.Ads.AdManager.v202411.CustomTargetingValue[] values; - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v202311.CreativeSetPage getCreativeSetsByStatement(Google.Api.Ads.AdManager.v202311.Statement statement); + /// Creates a new instance of the class. + public updateCustomTargetingValuesRequest() { + } - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getCreativeSetsByStatementAsync(Google.Api.Ads.AdManager.v202311.Statement statement); + /// Creates a new instance of the class. + public updateCustomTargetingValuesRequest(Google.Api.Ads.AdManager.v202411.CustomTargetingValue[] values) { + this.values = values; + } + } - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v202311.CreativeSet updateCreativeSet(Google.Api.Ads.AdManager.v202311.CreativeSet creativeSet); - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task updateCreativeSetAsync(Google.Api.Ads.AdManager.v202311.CreativeSet creativeSet); - } + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "updateCustomTargetingValuesResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class updateCustomTargetingValuesResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("rval")] + public Google.Api.Ads.AdManager.v202411.CustomTargetingValue[] rval; + /// Creates a new instance of the class. + public updateCustomTargetingValuesResponse() { + } - /// Captures a page of CreativeSet objects. + /// Creates a new instance of the class. + public updateCustomTargetingValuesResponse(Google.Api.Ads.AdManager.v202411.CustomTargetingValue[] rval) { + this.rval = rval; + } + } + } + /// CustomTargetingKey represents a key used for custom targeting. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class CreativeSetPage { - private int totalResultSetSizeField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class CustomTargetingKey { + private long idField; - private bool totalResultSetSizeFieldSpecified; + private bool idFieldSpecified; - private int startIndexField; + private string nameField; - private bool startIndexFieldSpecified; + private string displayNameField; - private CreativeSet[] resultsField; + private CustomTargetingKeyType typeField; - /// The size of the total result set to which this page belongs. + private bool typeFieldSpecified; + + private CustomTargetingKeyStatus statusField; + + private bool statusFieldSpecified; + + private ReportableType reportableTypeField; + + private bool reportableTypeFieldSpecified; + + /// The ID of the CustomTargetingKey. This value is readonly and is + /// populated by Google. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public int totalResultSetSize { + public long id { get { - return this.totalResultSetSizeField; + return this.idField; } set { - this.totalResultSetSizeField = value; - this.totalResultSetSizeSpecified = true; + this.idField = value; + this.idSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , + /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool totalResultSetSizeSpecified { + public bool idSpecified { get { - return this.totalResultSetSizeFieldSpecified; + return this.idFieldSpecified; } set { - this.totalResultSetSizeFieldSpecified = value; + this.idFieldSpecified = value; } } - /// The absolute index in the total result set on which this page begins. + /// Name of the key. Keys can contain up to 10 characters each. You can use + /// alphanumeric characters and symbols other than the following: ", ', =, !, +, #, + /// *, ~, ;, ^, (, ), <, >, [, ], the white space character. /// [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public int startIndex { + public string name { get { - return this.startIndexField; + return this.nameField; } set { - this.startIndexField = value; - this.startIndexSpecified = true; + this.nameField = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool startIndexSpecified { + /// Descriptive name for the key. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public string displayName { get { - return this.startIndexFieldSpecified; + return this.displayNameField; } set { - this.startIndexFieldSpecified = value; + this.displayNameField = value; } } - /// The collection of creative sets contained within this page. + /// Indicates whether users will select from predefined values or create new + /// targeting values, while specifying targeting criteria for a line item. /// - [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] - public CreativeSet[] results { + [System.Xml.Serialization.XmlElementAttribute(Order = 3)] + public CustomTargetingKeyType type { get { - return this.resultsField; + return this.typeField; } set { - this.resultsField = value; + this.typeField = value; + this.typeSpecified = true; } } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public interface CreativeSetServiceInterfaceChannel : Google.Api.Ads.AdManager.v202311.CreativeSetServiceInterface, System.ServiceModel.IClientChannel - { - } - - /// Provides methods for adding, updating and retrieving CreativeSet objects. - /// - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public partial class CreativeSetService : AdManagerSoapClient, ICreativeSetService { - /// Creates a new instance of the class. - /// - public CreativeSetService() { + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool typeSpecified { + get { + return this.typeFieldSpecified; + } + set { + this.typeFieldSpecified = value; + } } - /// Creates a new instance of the class. + /// Status of the CustomTargetingKey. This field is read-only. A key + /// can be activated and deactivated by calling CustomTargetingService#performCustomTargetingKeyAction. /// - public CreativeSetService(string endpointConfigurationName) - : base(endpointConfigurationName) { + [System.Xml.Serialization.XmlElementAttribute(Order = 4)] + public CustomTargetingKeyStatus status { + get { + return this.statusField; + } + set { + this.statusField = value; + this.statusSpecified = true; + } } - /// Creates a new instance of the class. - /// - public CreativeSetService(string endpointConfigurationName, string remoteAddress) - : base(endpointConfigurationName, remoteAddress) { + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool statusSpecified { + get { + return this.statusFieldSpecified; + } + set { + this.statusFieldSpecified = value; + } } - /// Creates a new instance of the class. + /// Reportable state of a {@CustomTargetingKey} as defined in ReportableType. /// - public CreativeSetService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) - : base(endpointConfigurationName, remoteAddress) { + [System.Xml.Serialization.XmlElementAttribute(Order = 5)] + public ReportableType reportableType { + get { + return this.reportableTypeField; + } + set { + this.reportableTypeField = value; + this.reportableTypeSpecified = true; + } } - /// Creates a new instance of the class. - /// - public CreativeSetService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) - : base(binding, remoteAddress) { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool reportableTypeSpecified { + get { + return this.reportableTypeFieldSpecified; + } + set { + this.reportableTypeFieldSpecified = value; + } } + } - /// Creates a new CreativeSet. + + /// Specifies the types for CustomTargetingKey objects. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CustomTargetingKey.Type", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum CustomTargetingKeyType { + /// Target audiences by criteria values that are defined in advance. /// - public virtual Google.Api.Ads.AdManager.v202311.CreativeSet createCreativeSet(Google.Api.Ads.AdManager.v202311.CreativeSet creativeSet) { - return base.Channel.createCreativeSet(creativeSet); - } + PREDEFINED = 0, + /// Target audiences by adding criteria values when creating line items. + /// + FREEFORM = 1, + } - public virtual System.Threading.Tasks.Task createCreativeSetAsync(Google.Api.Ads.AdManager.v202311.CreativeSet creativeSet) { - return base.Channel.createCreativeSetAsync(creativeSet); - } - /// Gets a CreativeSetPage of CreativeSet objects that satisfy the given Statement#query. The following fields are supported for filtering: - /// - /// - /// - /// - ///
PQL Property Object - /// Property
id CreativeSet#id
name CreativeSet#name
masterCreativeId CreativeSet#masterCreativeId
lastModifiedDateTime CreativeSet#lastModifiedDateTime
+ /// Describes the statuses for CustomTargetingKey objects. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CustomTargetingKey.Status", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum CustomTargetingKeyStatus { + /// The object is active. /// - public virtual Google.Api.Ads.AdManager.v202311.CreativeSetPage getCreativeSetsByStatement(Google.Api.Ads.AdManager.v202311.Statement statement) { - return base.Channel.getCreativeSetsByStatement(statement); - } + ACTIVE = 0, + /// The object is no longer active. + /// + INACTIVE = 1, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 2, + } - public virtual System.Threading.Tasks.Task getCreativeSetsByStatementAsync(Google.Api.Ads.AdManager.v202311.Statement statement) { - return base.Channel.getCreativeSetsByStatementAsync(statement); - } - /// Updates the specified CreativeSet. + /// Represents the reportable state of a custom key. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum ReportableType { + /// The value returned if the actual value is not exposed by the requested API + /// version. /// - public virtual Google.Api.Ads.AdManager.v202311.CreativeSet updateCreativeSet(Google.Api.Ads.AdManager.v202311.CreativeSet creativeSet) { - return base.Channel.updateCreativeSet(creativeSet); - } - - public virtual System.Threading.Tasks.Task updateCreativeSetAsync(Google.Api.Ads.AdManager.v202311.CreativeSet creativeSet) { - return base.Channel.updateCreativeSetAsync(creativeSet); - } - } - namespace Wrappers.CreativeTemplateService - { + UNKNOWN = 0, + /// Available for reporting in the Ad Manager query tool. + /// + ON = 1, + /// Not available for reporting in the Ad Manager query tool. + /// + OFF = 2, + /// Custom dimension available for reporting in the AdManager query tool. + /// + CUSTOM_DIMENSION = 3, } - /// Stores variable choices that users can select from + + + /// An error that occurs when creating an entity if the limit on the number of + /// allowed entities for a network has already been reached. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ListStringCreativeTemplateVariable.VariableChoice", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ListStringCreativeTemplateVariableVariableChoice { - private string labelField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class EntityLimitReachedError : ApiError { + private EntityLimitReachedErrorReason reasonField; - private string valueField; + private bool reasonFieldSpecified; - /// Label that users can select from. This is displayed to users when creating a TemplateCreative. This attribute is intended to be - /// more descriptive than #value. This attribute is required - /// and has a maximum length of 255 characters. - /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public string label { + public EntityLimitReachedErrorReason reason { get { - return this.labelField; + return this.reasonField; } set { - this.labelField = value; + this.reasonField = value; + this.reasonSpecified = true; } } - /// Value that users can select from. When creating a TemplateCreative, the value in StringCreativeTemplateVariableValue - /// should match this value, if you intend to select this value. This attribute is - /// required and has a maximum length of 255 characters. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public string value { + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool reasonSpecified { get { - return this.valueField; + return this.reasonFieldSpecified; } set { - this.valueField = value; + this.reasonFieldSpecified = value; } } } - /// Represents a variable defined in a creative template. + /// The reasons for the entity limit reached error. /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(UrlCreativeTemplateVariable))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(StringCreativeTemplateVariable))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ListStringCreativeTemplateVariable))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(LongCreativeTemplateVariable))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(AssetCreativeTemplateVariable))] [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public abstract partial class CreativeTemplateVariable { - private string labelField; - - private string uniqueNameField; + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "EntityLimitReachedError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum EntityLimitReachedErrorReason { + /// The number of custom targeting values exceeds the max number allowed in the + /// network. + /// + CUSTOM_TARGETING_VALUES_LIMIT_REACHED = 0, + /// The number of ad exclusion rules exceeds the max number allowed in the network. + /// + AD_EXCLUSION_RULES_LIMIT_REACHED = 1, + /// The number of first party audience segments exceeds the max number allowed in + /// the network. + /// + FIRST_PARTY_AUDIENCE_SEGMENTS_LIMIT_REACHED = 2, + /// The number of active placements exceeds the max number allowed in the network. + /// + PLACEMENTS_LIMIT_REACHED = 3, + /// The number of line items excceeds the max number allowed in the network. + /// + LINE_ITEMS_LIMIT_REACHED = 4, + /// The number of active line items exceeds the max number allowed in the network. + /// + ACTIVE_LINE_ITEMS_LIMIT_REACHED = 6, + /// The number of not-archived encoding profiles exceeds the max number allowed in + /// the network. + /// + DAI_ENCODING_PROFILES_LIMIT_REACHED = 9, + /// The number of traffic forecast segments exceeds the max number allowed in the + /// network. + /// + TRAFFIC_FORECAST_SEGMENTS_LIMIT_REACHED = 7, + /// The number of forecast adjustments exceeds the max number allowed in the + /// network. + /// + FORECAST_ADJUSTMENTS_LIMIT_REACHED = 8, + /// The number of active experiments exceeds the max number allowed in the network. + /// + ACTIVE_EXPERIMENTS_LIMIT_REACHED = 10, + /// The number of sites exceeds the max number allowed in the network. + /// + SITES_LIMIT_REACHED = 11, + /// The number of teams on the user exceeds the max number allowed. + /// + USER_TEAMS_LIMIT_REACHED = 12, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 5, + } - private string descriptionField; - private bool isRequiredField; + /// Lists errors relating to having too many children on an entity. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class EntityChildrenLimitReachedError : ApiError { + private EntityChildrenLimitReachedErrorReason reasonField; - private bool isRequiredFieldSpecified; + private bool reasonFieldSpecified; - /// Label that is displayed to users when creating TemplateCreative from the CreativeTemplate. This attribute is required and has - /// a maximum length of 127 characters. - /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public string label { + public EntityChildrenLimitReachedErrorReason reason { get { - return this.labelField; + return this.reasonField; } set { - this.labelField = value; + this.reasonField = value; + this.reasonSpecified = true; } } - /// Unique name used to identify the variable. This attribute is read-only and is - /// assigned by Google, by deriving from label, when a creative template variable is - /// created. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public string uniqueName { + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool reasonSpecified { get { - return this.uniqueNameField; + return this.reasonFieldSpecified; } set { - this.uniqueNameField = value; + this.reasonFieldSpecified = value; } } + } - /// A descriptive help text that is displayed to users along with the label. This - /// attribute is required and has a maximum length of 255 characters. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public string description { - get { - return this.descriptionField; - } - set { - this.descriptionField = value; - } - } - /// true if this variable is required to be filled in by users when - /// creating TemplateCreative from the CreativeTemplate. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public bool isRequired { - get { - return this.isRequiredField; - } - set { - this.isRequiredField = value; - this.isRequiredSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool isRequiredSpecified { - get { - return this.isRequiredFieldSpecified; - } - set { - this.isRequiredFieldSpecified = value; - } - } - } - - - /// Represents a url variable defined in a creative template.

Use UrlCreativeTemplateVariableValue to - /// specify the value for this variable when creating TemplateCreative from the TemplateCreative

+ /// The reasons for the entity children limit reached error. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class UrlCreativeTemplateVariable : CreativeTemplateVariable { - private string defaultValueField; - - private bool isTrackingUrlField; - - private bool isTrackingUrlFieldSpecified; - - /// Default value to be filled in when creating creatives from the creative - /// template. + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "EntityChildrenLimitReachedError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum EntityChildrenLimitReachedErrorReason { + /// The number of line items on the order exceeds the max number of line items + /// allowed per order in the network. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public string defaultValue { - get { - return this.defaultValueField; - } - set { - this.defaultValueField = value; - } - } - - /// When true, if the URL is identified as from a known vendor, cache-busting macros - /// will automatically be inserted upon save. + LINE_ITEM_LIMIT_FOR_ORDER_REACHED = 0, + /// The number of creatives associated with the line item exceeds the max number of + /// creatives allowed to be associated with a line item in the network. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public bool isTrackingUrl { - get { - return this.isTrackingUrlField; - } - set { - this.isTrackingUrlField = value; - this.isTrackingUrlSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool isTrackingUrlSpecified { - get { - return this.isTrackingUrlFieldSpecified; - } - set { - this.isTrackingUrlFieldSpecified = value; - } - } - } - - - /// Represents a string variable defined in a creative template.

Use StringCreativeTemplateVariableValue - /// to specify the value for this variable when creating TemplateCreative from the TemplateCreative.

- ///
- [System.Xml.Serialization.XmlIncludeAttribute(typeof(ListStringCreativeTemplateVariable))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class StringCreativeTemplateVariable : CreativeTemplateVariable { - private string defaultValueField; - - /// Default value to be filled in when creating creatives from the creative - /// template. + CREATIVE_ASSOCIATION_LIMIT_FOR_LINE_ITEM_REACHED = 1, + /// The number of ad units on the placement exceeds the max number of ad units + /// allowed per placement in the network. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public string defaultValue { - get { - return this.defaultValueField; - } - set { - this.defaultValueField = value; - } - } + AD_UNIT_LIMIT_FOR_PLACEMENT_REACHED = 2, + /// The number of targeting expressions on the line item exceeds the max number of + /// targeting expressions allowed per line item in the network. + /// + TARGETING_EXPRESSION_LIMIT_FOR_LINE_ITEM_REACHED = 3, + /// The size of a single targeting expression tree exceeds the max size allowed by + /// the network. + /// + TARGETING_EXPRESSION_SIZE_LIMIT_REACHED = 17, + /// The number of custom targeting values for the free-form or predefined custom + /// targeting key exceeds the max number allowed. + /// + CUSTOM_TARGETING_VALUES_FOR_KEY_LIMIT_REACHED = 13, + /// The total number of targeting expressions on the creatives for the line item + /// exceeds the max number allowed per line item in the network. + /// + TARGETING_EXPRESSION_LIMIT_FOR_CREATIVES_ON_LINE_ITEM_REACHED = 14, + /// The number of attachments added to the proposal exceeds the max number allowed + /// per proposal in the network. + /// + ATTACHMENT_LIMIT_FOR_PROPOSAL_REACHED = 5, + /// The number of proposal line items on the proposal exceeds the max number allowed + /// per proposal in the network. + /// + PROPOSAL_LINE_ITEM_LIMIT_FOR_PROPOSAL_REACHED = 6, + /// The number of product package items on the product package exceeds the max + /// number allowed per product package in the network. + /// + PRODUCT_LIMIT_FOR_PRODUCT_PACKAGE_REACHED = 7, + /// The number of product template and product base rates on the rate card + /// (including excluded product base rates) exceeds the max number allowed per rate + /// card in the network. + /// + PRODUCT_TEMPLATE_AND_PRODUCT_BASE_RATE_LIMIT_FOR_RATE_CARD_REACHED = 8, + /// The number of product package item base rates on the rate card exceeds the max + /// number allowed per rate card in the network. + /// + PRODUCT_PACKAGE_ITEM_BASE_RATE_LIMIT_FOR_RATE_CARD_REACHED = 9, + /// The number of premiums of the rate card exceeds the max number allowed per rate + /// card in the network. + /// + PREMIUM_LIMIT_FOR_RATE_CARD_REACHED = 10, + /// The number of ad units on AdExclusionRule#inventoryTargeting + /// exceeds the max number of ad units allowed per ad exclusion rule inventory + /// targeting in the network. + /// + AD_UNIT_LIMIT_FOR_AD_EXCLUSION_RULE_TARGETING_REACHED = 11, + /// The number of native styles under the native creative template exceeds the max + /// number of native styles allowed per native creative template in the network. + /// + NATIVE_STYLE_LIMIT_FOR_NATIVE_AD_FORMAT_REACHED = 15, + /// The number of targeting expressions on the native style exceeds the max number + /// of targeting expressions allowed per native style in the network. + /// + TARGETING_EXPRESSION_LIMIT_FOR_PRESENTATION_ASSIGNMENT_REACHED = 16, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 12, } - /// Represents a list variable defined in a creative template. This is similar to StringCreativeTemplateVariable, except - /// that there are possible choices to choose from.

Use StringCreativeTemplateVariableValue - /// to specify the value for this variable when creating a TemplateCreative from a CreativeTemplate.

- ///
- [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ListStringCreativeTemplateVariable : StringCreativeTemplateVariable { - private ListStringCreativeTemplateVariableVariableChoice[] choicesField; + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", ConfigurationName = "Google.Api.Ads.AdManager.v202411.CustomTargetingServiceInterface")] + public interface CustomTargetingServiceInterface + { + // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Wrappers.CustomTargetingService.createCustomTargetingKeysResponse createCustomTargetingKeys(Wrappers.CustomTargetingService.createCustomTargetingKeysRequest request); - private bool allowOtherChoiceField; + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + System.Threading.Tasks.Task createCustomTargetingKeysAsync(Wrappers.CustomTargetingService.createCustomTargetingKeysRequest request); - private bool allowOtherChoiceFieldSpecified; + // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Wrappers.CustomTargetingService.createCustomTargetingValuesResponse createCustomTargetingValues(Wrappers.CustomTargetingService.createCustomTargetingValuesRequest request); - /// The values within the list users need to select from. - /// - [System.Xml.Serialization.XmlElementAttribute("choices", Order = 0)] - public ListStringCreativeTemplateVariableVariableChoice[] choices { - get { - return this.choicesField; - } - set { - this.choicesField = value; - } - } + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + System.Threading.Tasks.Task createCustomTargetingValuesAsync(Wrappers.CustomTargetingService.createCustomTargetingValuesRequest request); - /// true if a user can specifiy an 'other' value. For example, if a - /// variable called backgroundColor is defined as a list with values: red, green, - /// blue, this boolean can be set to allow a user to enter a value not on the list - /// such as purple. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public bool allowOtherChoice { - get { - return this.allowOtherChoiceField; - } - set { - this.allowOtherChoiceField = value; - this.allowOtherChoiceSpecified = true; - } - } + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v202411.CustomTargetingKeyPage getCustomTargetingKeysByStatement(Google.Api.Ads.AdManager.v202411.Statement filterStatement); - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool allowOtherChoiceSpecified { - get { - return this.allowOtherChoiceFieldSpecified; - } - set { - this.allowOtherChoiceFieldSpecified = value; - } - } - } + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task getCustomTargetingKeysByStatementAsync(Google.Api.Ads.AdManager.v202411.Statement filterStatement); + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v202411.CustomTargetingValuePage getCustomTargetingValuesByStatement(Google.Api.Ads.AdManager.v202411.Statement filterStatement); - /// Represents a long variable defined in a creative template. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class LongCreativeTemplateVariable : CreativeTemplateVariable { - private long defaultValueField; + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task getCustomTargetingValuesByStatementAsync(Google.Api.Ads.AdManager.v202411.Statement filterStatement); - private bool defaultValueFieldSpecified; + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v202411.UpdateResult performCustomTargetingKeyAction(Google.Api.Ads.AdManager.v202411.CustomTargetingKeyAction customTargetingKeyAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement); - /// Default value to be filled in when creating creatives from the creative - /// template. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public long defaultValue { - get { - return this.defaultValueField; - } - set { - this.defaultValueField = value; - this.defaultValueSpecified = true; - } - } + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task performCustomTargetingKeyActionAsync(Google.Api.Ads.AdManager.v202411.CustomTargetingKeyAction customTargetingKeyAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement); - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool defaultValueSpecified { - get { - return this.defaultValueFieldSpecified; - } - set { - this.defaultValueFieldSpecified = value; - } - } - } + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v202411.UpdateResult performCustomTargetingValueAction(Google.Api.Ads.AdManager.v202411.CustomTargetingValueAction customTargetingValueAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement); + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task performCustomTargetingValueActionAsync(Google.Api.Ads.AdManager.v202411.CustomTargetingValueAction customTargetingValueAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement); - /// Represents a file asset variable defined in a creative template.

Use AssetCreativeTemplateVariableValue - /// to specify the value for this variable when creating TemplateCreative from the TemplateCreative.

- ///
- [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class AssetCreativeTemplateVariable : CreativeTemplateVariable { - private AssetCreativeTemplateVariableMimeType[] mimeTypesField; + // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Wrappers.CustomTargetingService.updateCustomTargetingKeysResponse updateCustomTargetingKeys(Wrappers.CustomTargetingService.updateCustomTargetingKeysRequest request); - /// A set of supported mime types. This set can be empty or null if there's no - /// constraint, meaning files of any mime types are allowed. - /// - [System.Xml.Serialization.XmlElementAttribute("mimeTypes", Order = 0)] - public AssetCreativeTemplateVariableMimeType[] mimeTypes { - get { - return this.mimeTypesField; - } - set { - this.mimeTypesField = value; - } - } - } + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + System.Threading.Tasks.Task updateCustomTargetingKeysAsync(Wrappers.CustomTargetingService.updateCustomTargetingKeysRequest request); + // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Wrappers.CustomTargetingService.updateCustomTargetingValuesResponse updateCustomTargetingValues(Wrappers.CustomTargetingService.updateCustomTargetingValuesRequest request); - /// Different mime type that the asset variable supports. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AssetCreativeTemplateVariable.MimeType", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum AssetCreativeTemplateVariableMimeType { - JPG = 0, - PNG = 1, - GIF = 2, - SWF = 3, + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + System.Threading.Tasks.Task updateCustomTargetingValuesAsync(Wrappers.CustomTargetingService.updateCustomTargetingValuesRequest request); } - /// A template upon which a creative can be created. + /// CustomTargetingValue represents a value used for custom targeting. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class CreativeTemplate { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class CustomTargetingValue { + private long customTargetingKeyIdField; + + private bool customTargetingKeyIdFieldSpecified; + private long idField; private bool idFieldSpecified; private string nameField; - private string descriptionField; + private string displayNameField; - private CreativeTemplateVariable[] variablesField; + private CustomTargetingValueMatchType matchTypeField; - private string snippetField; + private bool matchTypeFieldSpecified; - private CreativeTemplateStatus statusField; + private CustomTargetingValueStatus statusField; private bool statusFieldSpecified; - private CreativeTemplateType typeField; - - private bool typeFieldSpecified; - - private bool isInterstitialField; - - private bool isInterstitialFieldSpecified; - - private bool isNativeEligibleField; - - private bool isNativeEligibleFieldSpecified; - - private bool isSafeFrameCompatibleField; + /// The ID of the CustomTargetingKey for which this is the value. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public long customTargetingKeyId { + get { + return this.customTargetingKeyIdField; + } + set { + this.customTargetingKeyIdField = value; + this.customTargetingKeyIdSpecified = true; + } + } - private bool isSafeFrameCompatibleFieldSpecified; + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool customTargetingKeyIdSpecified { + get { + return this.customTargetingKeyIdFieldSpecified; + } + set { + this.customTargetingKeyIdFieldSpecified = value; + } + } - /// Uniquely identifies the CreativeTemplate. This attribute is - /// read-only and is assigned by Google when a creative template is created. + /// The ID of the CustomTargetingValue. This value is readonly and is + /// populated by Google. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] public long id { get { return this.idField; @@ -11250,10 +11510,13 @@ public bool idSpecified { } } - /// The name of the creative template. This attribute is required and has a maximum - /// length of 255 characters. + /// Name of the value. Values can contain up to 40 characters each. You can use + /// alphanumeric characters and symbols other than the following: ", ', =, !, +, #, + /// *, ~, ;, ^, (, ), <, >, [, ]. Values are not data-specific; all values are + /// treated as string. For example, instead of using "age>=18 AND <=34", try + /// "18-34" /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] public string name { get { return this.nameField; @@ -11263,48 +11526,52 @@ public string name { } } - /// The description of the creative template. This attribute is optional. + /// Descriptive name for the value. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public string description { + [System.Xml.Serialization.XmlElementAttribute(Order = 3)] + public string displayName { get { - return this.descriptionField; + return this.displayNameField; } set { - this.descriptionField = value; + this.displayNameField = value; } } - /// The list of creative template variables. This attribute is required. + /// The way in which the CustomTargetingValue#name strings will be + /// matched. /// - [System.Xml.Serialization.XmlElementAttribute("variables", Order = 3)] - public CreativeTemplateVariable[] variables { + [System.Xml.Serialization.XmlElementAttribute(Order = 4)] + public CustomTargetingValueMatchType matchType { get { - return this.variablesField; + return this.matchTypeField; } set { - this.variablesField = value; + this.matchTypeField = value; + this.matchTypeSpecified = true; } } - /// The snippet of the creative template, with placeholders for the associated - /// variables. This attribute is required. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public string snippet { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool matchTypeSpecified { get { - return this.snippetField; + return this.matchTypeFieldSpecified; } set { - this.snippetField = value; + this.matchTypeFieldSpecified = value; } } - /// The status of the CreativeTemplate. This attribute is read-only and - /// is assigned by Google. + /// Status of the CustomTargetingValue. This field is read-only. A + /// value can be activated and deactivated by calling CustomTargetingService#performCustomTargetingValueAction. /// [System.Xml.Serialization.XmlElementAttribute(Order = 5)] - public CreativeTemplateStatus status { + public CustomTargetingValueStatus status { get { return this.statusField; } @@ -11326,162 +11593,177 @@ public bool statusSpecified { this.statusFieldSpecified = value; } } + } - /// The type of the CreativeTemplate. Publisher can only create - /// user-defined template - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 6)] - public CreativeTemplateType type { - get { - return this.typeField; - } - set { - this.typeField = value; - this.typeSpecified = true; - } - } - - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool typeSpecified { - get { - return this.typeFieldSpecified; - } - set { - this.typeFieldSpecified = value; - } - } - /// true if this creative template produces interstitial creatives. + /// Represents the ways in which CustomTargetingValue#name strings will be + /// matched with ad requests. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CustomTargetingValue.MatchType", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum CustomTargetingValueMatchType { + /// Used for exact matching. For example, the targeting value will + /// only match to the ad request car=honda. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 7)] - public bool isInterstitial { - get { - return this.isInterstitialField; - } - set { - this.isInterstitialField = value; - this.isInterstitialSpecified = true; - } - } + EXACT = 0, + /// Used for lenient matching when at least one of the words in the ad request + /// matches the targeted value. The targeting value will match to ad + /// requests containing the word . So ad requests + /// car=honda or car=honda civic or car=buy + /// honda or car=how much does a honda cost will all have the + /// line item delivered.

This match type can not be used within an audience + /// segment rule.

+ ///
+ BROAD = 1, + /// Used for 'starts with' matching when the first few characters in the ad request + /// match all of the characters in the targeted value. The targeting value + /// car=honda will match to ad requests car=honda or + /// car=hondas for sale but not to want a honda. + /// + PREFIX = 2, + /// This is a combination of MatchType#BROAD and + /// matching. The targeting value car=honda will match to ad requests + /// that contain words that start with the characters in the targeted value, for + /// example with car=civic hondas.

This match type can not be used + /// within an audience segment rule.

+ ///
+ BROAD_PREFIX = 3, + /// Used for 'ends with' matching when the last characters in the ad request match + /// all of the characters in the targeted value. The targeting value + /// car=honda will match with ad requests car=honda or + /// car=I want a honda but not to for sale.

This match + /// type can not be used within line item targeting.

+ ///
+ SUFFIX = 4, + /// Used for 'within' matching when the string in the ad request contains the string + /// in the targeted value. The targeting value car=honda will match + /// with ad requests car=honda, car=I want a honda, and + /// also with car=hondas for sale, but not with car=misspelled + /// hond a.

This match type can not be used within line item + /// targeting.

+ ///
+ CONTAINS = 5, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 6, + } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool isInterstitialSpecified { - get { - return this.isInterstitialFieldSpecified; - } - set { - this.isInterstitialFieldSpecified = value; - } - } - /// true if this creative template produces native-eligible creatives. + /// Describes the statuses for CustomTargetingValue objects. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CustomTargetingValue.Status", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum CustomTargetingValueStatus { + /// The object is active. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 8)] - public bool isNativeEligible { + ACTIVE = 0, + /// The object is no longer active. + /// + INACTIVE = 1, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 2, + } + + + /// Captures a page of CustomTargetingKey objects. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class CustomTargetingKeyPage { + private int totalResultSetSizeField; + + private bool totalResultSetSizeFieldSpecified; + + private int startIndexField; + + private bool startIndexFieldSpecified; + + private CustomTargetingKey[] resultsField; + + /// The size of the total result set to which this page belongs. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public int totalResultSetSize { get { - return this.isNativeEligibleField; + return this.totalResultSetSizeField; } set { - this.isNativeEligibleField = value; - this.isNativeEligibleSpecified = true; + this.totalResultSetSizeField = value; + this.totalResultSetSizeSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="totalResultSetSize" />, false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool isNativeEligibleSpecified { + public bool totalResultSetSizeSpecified { get { - return this.isNativeEligibleFieldSpecified; + return this.totalResultSetSizeFieldSpecified; } set { - this.isNativeEligibleFieldSpecified = value; + this.totalResultSetSizeFieldSpecified = value; } } - /// Whether the Creative produced is compatible for SafeFrame - /// rendering.

This attribute is optional and defaults to true.

+ /// The absolute index in the total result set on which this page begins. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 9)] - public bool isSafeFrameCompatible { + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public int startIndex { get { - return this.isSafeFrameCompatibleField; + return this.startIndexField; } set { - this.isSafeFrameCompatibleField = value; - this.isSafeFrameCompatibleSpecified = true; + this.startIndexField = value; + this.startIndexSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool isSafeFrameCompatibleSpecified { + public bool startIndexSpecified { get { - return this.isSafeFrameCompatibleFieldSpecified; + return this.startIndexFieldSpecified; } set { - this.isSafeFrameCompatibleFieldSpecified = value; + this.startIndexFieldSpecified = value; } } - } - - - /// Describes status of the creative template - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum CreativeTemplateStatus { - /// The CreativeTemplate is active - /// - ACTIVE = 0, - /// The CreativeTemplate is inactive. Users cannot - /// create new creatives from this template, but existing ones can be edited and - /// continue to serve - /// - INACTIVE = 1, - /// The CreativeTemplate is deleted. Creatives - /// created from this CreativeTemplate can no longer - /// serve. - /// - DELETED = 2, - } - - /// Describes type of the creative template. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum CreativeTemplateType { - /// Creative templates that Google defines for users to use. - /// - SYSTEM_DEFINED = 0, - /// Arbitrary creative templates that users can define as they see fit. Such - /// templates are bound to a specific network and can only be used with creatives - /// being created under the network. + /// The collection of custom targeting keys contained within this page. /// - USER_DEFINED = 1, + [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] + public CustomTargetingKey[] results { + get { + return this.resultsField; + } + set { + this.resultsField = value; + } + } } - /// Captures a page of CreativeTemplate objects. + /// Captures a page of CustomTargetingValue + /// objects. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class CreativeTemplatePage { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class CustomTargetingValuePage { private int totalResultSetSizeField; private bool totalResultSetSizeFieldSpecified; @@ -11490,7 +11772,7 @@ public partial class CreativeTemplatePage { private bool startIndexFieldSpecified; - private CreativeTemplate[] resultsField; + private CustomTargetingValue[] resultsField; /// The size of the total result set to which this page belongs. /// @@ -11544,10 +11826,10 @@ public bool startIndexSpecified { } } - /// The collection of creative templates contained within this page. + /// The collection of custom targeting keys contained within this page. /// [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] - public CreativeTemplate[] results { + public CustomTargetingValue[] results { get { return this.resultsField; } @@ -11558,105 +11840,333 @@ public CreativeTemplate[] results { } - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", ConfigurationName = "Google.Api.Ads.AdManager.v202311.CreativeTemplateServiceInterface")] - public interface CreativeTemplateServiceInterface - { - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v202311.CreativeTemplatePage getCreativeTemplatesByStatement(Google.Api.Ads.AdManager.v202311.Statement filterStatement); + /// Represents the actions that can be performed on CustomTargetingKey objects. + /// + [System.Xml.Serialization.XmlIncludeAttribute(typeof(DeleteCustomTargetingKeys))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ActivateCustomTargetingKeys))] + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public abstract partial class CustomTargetingKeyAction { + } - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getCreativeTemplatesByStatementAsync(Google.Api.Ads.AdManager.v202311.Statement filterStatement); + + /// Represents the delete action that can be performed on CustomTargetingKey objects. Deleting a key will + /// not delete the CustomTargetingValue objects + /// associated with it. Also, if a custom targeting key that has been deleted is + /// recreated, any previous custom targeting values associated with it that were not + /// deleted will continue to exist. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class DeleteCustomTargetingKeys : CustomTargetingKeyAction { + } + + + /// The action used for activating inactive (i.e. deleted) CustomTargetingKey objects. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ActivateCustomTargetingKeys : CustomTargetingKeyAction { + } + + + /// Represents the actions that can be performed on CustomTargetingValue objects. + /// + [System.Xml.Serialization.XmlIncludeAttribute(typeof(DeleteCustomTargetingValues))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ActivateCustomTargetingValues))] + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public abstract partial class CustomTargetingValueAction { + } + + + /// Represents the delete action that can be performed on CustomTargetingValue objects. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class DeleteCustomTargetingValues : CustomTargetingValueAction { + } + + + /// The action used for activating inactive (i.e. deleted) CustomTargetingValue objects. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ActivateCustomTargetingValues : CustomTargetingValueAction { } [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public interface CreativeTemplateServiceInterfaceChannel : Google.Api.Ads.AdManager.v202311.CreativeTemplateServiceInterface, System.ServiceModel.IClientChannel + public interface CustomTargetingServiceInterfaceChannel : Google.Api.Ads.AdManager.v202411.CustomTargetingServiceInterface, System.ServiceModel.IClientChannel { } - /// Provides methods for retrieving CreativeTemplate - /// objects. + /// Provides operations for creating, updating and retrieving CustomTargetingKey and CustomTargetingValue objects. /// [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public partial class CreativeTemplateService : AdManagerSoapClient, ICreativeTemplateService { - /// Creates a new instance of the + public partial class CustomTargetingService : AdManagerSoapClient, ICustomTargetingService { + /// Creates a new instance of the /// class. - public CreativeTemplateService() { + public CustomTargetingService() { } - /// Creates a new instance of the + /// Creates a new instance of the /// class. - public CreativeTemplateService(string endpointConfigurationName) + public CustomTargetingService(string endpointConfigurationName) : base(endpointConfigurationName) { } - /// Creates a new instance of the + /// Creates a new instance of the /// class. - public CreativeTemplateService(string endpointConfigurationName, string remoteAddress) + public CustomTargetingService(string endpointConfigurationName, string remoteAddress) : base(endpointConfigurationName, remoteAddress) { } - /// Creates a new instance of the + /// Creates a new instance of the /// class. - public CreativeTemplateService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) + public CustomTargetingService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) : base(endpointConfigurationName, remoteAddress) { } - /// Creates a new instance of the + /// Creates a new instance of the /// class. - public CreativeTemplateService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) + public CustomTargetingService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) : base(binding, remoteAddress) { } - /// Gets a CreativeTemplatePage of CreativeTemplate objects that satisfy the given Statement#query. The following fields are supported - /// for filtering: + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + Wrappers.CustomTargetingService.createCustomTargetingKeysResponse Google.Api.Ads.AdManager.v202411.CustomTargetingServiceInterface.createCustomTargetingKeys(Wrappers.CustomTargetingService.createCustomTargetingKeysRequest request) { + return base.Channel.createCustomTargetingKeys(request); + } + + /// Creates new CustomTargetingKey objects.

The + /// following fields are required:

+ ///
+ public virtual Google.Api.Ads.AdManager.v202411.CustomTargetingKey[] createCustomTargetingKeys(Google.Api.Ads.AdManager.v202411.CustomTargetingKey[] keys) { + Wrappers.CustomTargetingService.createCustomTargetingKeysRequest inValue = new Wrappers.CustomTargetingService.createCustomTargetingKeysRequest(); + inValue.keys = keys; + Wrappers.CustomTargetingService.createCustomTargetingKeysResponse retVal = ((Google.Api.Ads.AdManager.v202411.CustomTargetingServiceInterface)(this)).createCustomTargetingKeys(inValue); + return retVal.rval; + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202411.CustomTargetingServiceInterface.createCustomTargetingKeysAsync(Wrappers.CustomTargetingService.createCustomTargetingKeysRequest request) { + return base.Channel.createCustomTargetingKeysAsync(request); + } + + public virtual System.Threading.Tasks.Task createCustomTargetingKeysAsync(Google.Api.Ads.AdManager.v202411.CustomTargetingKey[] keys) { + Wrappers.CustomTargetingService.createCustomTargetingKeysRequest inValue = new Wrappers.CustomTargetingService.createCustomTargetingKeysRequest(); + inValue.keys = keys; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202411.CustomTargetingServiceInterface)(this)).createCustomTargetingKeysAsync(inValue)).Result.rval); + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + Wrappers.CustomTargetingService.createCustomTargetingValuesResponse Google.Api.Ads.AdManager.v202411.CustomTargetingServiceInterface.createCustomTargetingValues(Wrappers.CustomTargetingService.createCustomTargetingValuesRequest request) { + return base.Channel.createCustomTargetingValues(request); + } + + /// Creates new CustomTargetingValue objects. + ///

The following fields are required:

+ ///
+ public virtual Google.Api.Ads.AdManager.v202411.CustomTargetingValue[] createCustomTargetingValues(Google.Api.Ads.AdManager.v202411.CustomTargetingValue[] values) { + Wrappers.CustomTargetingService.createCustomTargetingValuesRequest inValue = new Wrappers.CustomTargetingService.createCustomTargetingValuesRequest(); + inValue.values = values; + Wrappers.CustomTargetingService.createCustomTargetingValuesResponse retVal = ((Google.Api.Ads.AdManager.v202411.CustomTargetingServiceInterface)(this)).createCustomTargetingValues(inValue); + return retVal.rval; + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202411.CustomTargetingServiceInterface.createCustomTargetingValuesAsync(Wrappers.CustomTargetingService.createCustomTargetingValuesRequest request) { + return base.Channel.createCustomTargetingValuesAsync(request); + } + + public virtual System.Threading.Tasks.Task createCustomTargetingValuesAsync(Google.Api.Ads.AdManager.v202411.CustomTargetingValue[] values) { + Wrappers.CustomTargetingService.createCustomTargetingValuesRequest inValue = new Wrappers.CustomTargetingService.createCustomTargetingValuesRequest(); + inValue.values = values; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202411.CustomTargetingServiceInterface)(this)).createCustomTargetingValuesAsync(inValue)).Result.rval); + } + + /// Gets a CustomTargetingKeyPage of CustomTargetingKey objects that satisfy the given + /// Statement#query. The following fields are + /// supported for filtering:
PQL Property Object Property
id CreativeTemplate#id
+ /// /// - /// - ///
PQL Property Object Property
id CustomTargetingKey#id
name CreativeTemplate#name
type CreativeTemplate#type
status CreativeTemplate#status
+ /// href='CustomTargetingKey#name'>CustomTargetingKey#name + /// displayName CustomTargetingKey#displayName + /// type CustomTargetingKey#type ///
- public virtual Google.Api.Ads.AdManager.v202311.CreativeTemplatePage getCreativeTemplatesByStatement(Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.getCreativeTemplatesByStatement(filterStatement); + public virtual Google.Api.Ads.AdManager.v202411.CustomTargetingKeyPage getCustomTargetingKeysByStatement(Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.getCustomTargetingKeysByStatement(filterStatement); } - public virtual System.Threading.Tasks.Task getCreativeTemplatesByStatementAsync(Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.getCreativeTemplatesByStatementAsync(filterStatement); + public virtual System.Threading.Tasks.Task getCustomTargetingKeysByStatementAsync(Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.getCustomTargetingKeysByStatementAsync(filterStatement); + } + + /// Gets a CustomTargetingValuePage of CustomTargetingValue objects that satisfy the + /// given Statement#query.

The WHERE + /// clause in the Statement#query must always contain + /// CustomTargetingValue#customTargetingKeyId as one of its columns + /// in a way that it is AND'ed with the rest of the query. So, if you want to + /// retrieve values for a known set of key ids, valid Statement#query would look like:

  1. "WHERE + /// customTargetingKeyId IN ('17','18','19')" retrieves all values that are + /// associated with keys having ids 17, 18, 19.
  2. "WHERE customTargetingKeyId + /// = '17' AND name = 'red'" retrieves values that are associated with keys having + /// id 17 and value name is 'red'.

The following fields are supported + /// for filtering:

+ /// + /// + /// + /// + ///
PQL Property Object Property
id CustomTargetingValue#id
customTargetingKeyId CustomTargetingValue#customTargetingKeyId
name CustomTargetingValue#name
displayName CustomTargetingValue#displayName
matchType CustomTargetingValue#matchType
+ ///
+ public virtual Google.Api.Ads.AdManager.v202411.CustomTargetingValuePage getCustomTargetingValuesByStatement(Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.getCustomTargetingValuesByStatement(filterStatement); + } + + public virtual System.Threading.Tasks.Task getCustomTargetingValuesByStatementAsync(Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.getCustomTargetingValuesByStatementAsync(filterStatement); + } + + /// Performs actions on CustomTargetingKey objects + /// that match the given Statement#query. + /// + public virtual Google.Api.Ads.AdManager.v202411.UpdateResult performCustomTargetingKeyAction(Google.Api.Ads.AdManager.v202411.CustomTargetingKeyAction customTargetingKeyAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.performCustomTargetingKeyAction(customTargetingKeyAction, filterStatement); + } + + public virtual System.Threading.Tasks.Task performCustomTargetingKeyActionAsync(Google.Api.Ads.AdManager.v202411.CustomTargetingKeyAction customTargetingKeyAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.performCustomTargetingKeyActionAsync(customTargetingKeyAction, filterStatement); + } + + /// Performs actions on CustomTargetingValue + /// objects that match the given Statement#query. + /// + public virtual Google.Api.Ads.AdManager.v202411.UpdateResult performCustomTargetingValueAction(Google.Api.Ads.AdManager.v202411.CustomTargetingValueAction customTargetingValueAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.performCustomTargetingValueAction(customTargetingValueAction, filterStatement); + } + + public virtual System.Threading.Tasks.Task performCustomTargetingValueActionAsync(Google.Api.Ads.AdManager.v202411.CustomTargetingValueAction customTargetingValueAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.performCustomTargetingValueActionAsync(customTargetingValueAction, filterStatement); + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + Wrappers.CustomTargetingService.updateCustomTargetingKeysResponse Google.Api.Ads.AdManager.v202411.CustomTargetingServiceInterface.updateCustomTargetingKeys(Wrappers.CustomTargetingService.updateCustomTargetingKeysRequest request) { + return base.Channel.updateCustomTargetingKeys(request); + } + + /// Updates the specified CustomTargetingKey + /// objects. + /// + public virtual Google.Api.Ads.AdManager.v202411.CustomTargetingKey[] updateCustomTargetingKeys(Google.Api.Ads.AdManager.v202411.CustomTargetingKey[] keys) { + Wrappers.CustomTargetingService.updateCustomTargetingKeysRequest inValue = new Wrappers.CustomTargetingService.updateCustomTargetingKeysRequest(); + inValue.keys = keys; + Wrappers.CustomTargetingService.updateCustomTargetingKeysResponse retVal = ((Google.Api.Ads.AdManager.v202411.CustomTargetingServiceInterface)(this)).updateCustomTargetingKeys(inValue); + return retVal.rval; + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202411.CustomTargetingServiceInterface.updateCustomTargetingKeysAsync(Wrappers.CustomTargetingService.updateCustomTargetingKeysRequest request) { + return base.Channel.updateCustomTargetingKeysAsync(request); + } + + public virtual System.Threading.Tasks.Task updateCustomTargetingKeysAsync(Google.Api.Ads.AdManager.v202411.CustomTargetingKey[] keys) { + Wrappers.CustomTargetingService.updateCustomTargetingKeysRequest inValue = new Wrappers.CustomTargetingService.updateCustomTargetingKeysRequest(); + inValue.keys = keys; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202411.CustomTargetingServiceInterface)(this)).updateCustomTargetingKeysAsync(inValue)).Result.rval); + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + Wrappers.CustomTargetingService.updateCustomTargetingValuesResponse Google.Api.Ads.AdManager.v202411.CustomTargetingServiceInterface.updateCustomTargetingValues(Wrappers.CustomTargetingService.updateCustomTargetingValuesRequest request) { + return base.Channel.updateCustomTargetingValues(request); + } + + /// Updates the specified CustomTargetingValue + /// objects. + /// + public virtual Google.Api.Ads.AdManager.v202411.CustomTargetingValue[] updateCustomTargetingValues(Google.Api.Ads.AdManager.v202411.CustomTargetingValue[] values) { + Wrappers.CustomTargetingService.updateCustomTargetingValuesRequest inValue = new Wrappers.CustomTargetingService.updateCustomTargetingValuesRequest(); + inValue.values = values; + Wrappers.CustomTargetingService.updateCustomTargetingValuesResponse retVal = ((Google.Api.Ads.AdManager.v202411.CustomTargetingServiceInterface)(this)).updateCustomTargetingValues(inValue); + return retVal.rval; + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202411.CustomTargetingServiceInterface.updateCustomTargetingValuesAsync(Wrappers.CustomTargetingService.updateCustomTargetingValuesRequest request) { + return base.Channel.updateCustomTargetingValuesAsync(request); + } + + public virtual System.Threading.Tasks.Task updateCustomTargetingValuesAsync(Google.Api.Ads.AdManager.v202411.CustomTargetingValue[] values) { + Wrappers.CustomTargetingService.updateCustomTargetingValuesRequest inValue = new Wrappers.CustomTargetingService.updateCustomTargetingValuesRequest(); + inValue.values = values; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202411.CustomTargetingServiceInterface)(this)).updateCustomTargetingValuesAsync(inValue)).Result.rval); } } - namespace Wrappers.CreativeWrapperService + namespace Wrappers.CustomFieldService { [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "createCreativeWrappers", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class createCreativeWrappersRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("creativeWrappers")] - public Google.Api.Ads.AdManager.v202311.CreativeWrapper[] creativeWrappers; + [System.ServiceModel.MessageContractAttribute(WrapperName = "createCustomFieldOptions", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class createCustomFieldOptionsRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("customFieldOptions")] + public Google.Api.Ads.AdManager.v202411.CustomFieldOption[] customFieldOptions; /// Creates a new instance of the class. - public createCreativeWrappersRequest() { + /// cref="createCustomFieldOptionsRequest"/> class.
+ public createCustomFieldOptionsRequest() { } /// Creates a new instance of the class. - public createCreativeWrappersRequest(Google.Api.Ads.AdManager.v202311.CreativeWrapper[] creativeWrappers) { - this.creativeWrappers = creativeWrappers; + /// cref="createCustomFieldOptionsRequest"/> class.
+ public createCustomFieldOptionsRequest(Google.Api.Ads.AdManager.v202411.CustomFieldOption[] customFieldOptions) { + this.customFieldOptions = customFieldOptions; } } @@ -11664,20 +12174,20 @@ public createCreativeWrappersRequest(Google.Api.Ads.AdManager.v202311.CreativeWr [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "createCreativeWrappersResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class createCreativeWrappersResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "createCustomFieldOptionsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class createCustomFieldOptionsResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v202311.CreativeWrapper[] rval; + public Google.Api.Ads.AdManager.v202411.CustomFieldOption[] rval; /// Creates a new instance of the class. - public createCreativeWrappersResponse() { + /// cref="createCustomFieldOptionsResponse"/> class.
+ public createCustomFieldOptionsResponse() { } /// Creates a new instance of the class. - public createCreativeWrappersResponse(Google.Api.Ads.AdManager.v202311.CreativeWrapper[] rval) { + /// cref="createCustomFieldOptionsResponse"/> class.
+ public createCustomFieldOptionsResponse(Google.Api.Ads.AdManager.v202411.CustomFieldOption[] rval) { this.rval = rval; } } @@ -11686,21 +12196,21 @@ public createCreativeWrappersResponse(Google.Api.Ads.AdManager.v202311.CreativeW [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "updateCreativeWrappers", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class updateCreativeWrappersRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("creativeWrappers")] - public Google.Api.Ads.AdManager.v202311.CreativeWrapper[] creativeWrappers; + [System.ServiceModel.MessageContractAttribute(WrapperName = "createCustomFields", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class createCustomFieldsRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("customFields")] + public Google.Api.Ads.AdManager.v202411.CustomField[] customFields; - /// Creates a new instance of the class. - public updateCreativeWrappersRequest() { + /// Creates a new instance of the + /// class. + public createCustomFieldsRequest() { } - /// Creates a new instance of the class. - public updateCreativeWrappersRequest(Google.Api.Ads.AdManager.v202311.CreativeWrapper[] creativeWrappers) { - this.creativeWrappers = creativeWrappers; + /// Creates a new instance of the + /// class. + public createCustomFieldsRequest(Google.Api.Ads.AdManager.v202411.CustomField[] customFields) { + this.customFields = customFields; } } @@ -11708,71 +12218,133 @@ public updateCreativeWrappersRequest(Google.Api.Ads.AdManager.v202311.CreativeWr [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "updateCreativeWrappersResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class updateCreativeWrappersResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "createCustomFieldsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class createCustomFieldsResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v202311.CreativeWrapper[] rval; + public Google.Api.Ads.AdManager.v202411.CustomField[] rval; - /// Creates a new instance of the class. - public updateCreativeWrappersResponse() { + /// Creates a new instance of the + /// class. + public createCustomFieldsResponse() { } - /// Creates a new instance of the class. - public updateCreativeWrappersResponse(Google.Api.Ads.AdManager.v202311.CreativeWrapper[] rval) { + /// Creates a new instance of the + /// class. + public createCustomFieldsResponse(Google.Api.Ads.AdManager.v202411.CustomField[] rval) { this.rval = rval; } } - } - /// A CreativeWrapper allows the wrapping of HTML snippets to be served - /// along with Creative objects.

Creative wrappers must be - /// associated with a LabelType#CREATIVE_WRAPPER label and - /// applied to ad units by AdUnit#appliedLabels.

- ///
- [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class CreativeWrapper { - private long idField; - private bool idFieldSpecified; - private long labelIdField; + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "updateCustomFieldOptions", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class updateCustomFieldOptionsRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("customFieldOptions")] + public Google.Api.Ads.AdManager.v202411.CustomFieldOption[] customFieldOptions; - private bool labelIdFieldSpecified; + /// Creates a new instance of the class. + public updateCustomFieldOptionsRequest() { + } - private CreativeWrapperType creativeWrapperTypeField; + /// Creates a new instance of the class. + public updateCustomFieldOptionsRequest(Google.Api.Ads.AdManager.v202411.CustomFieldOption[] customFieldOptions) { + this.customFieldOptions = customFieldOptions; + } + } - private bool creativeWrapperTypeFieldSpecified; - private string htmlHeaderField; + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "updateCustomFieldOptionsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class updateCustomFieldOptionsResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("rval")] + public Google.Api.Ads.AdManager.v202411.CustomFieldOption[] rval; - private string htmlFooterField; + /// Creates a new instance of the class. + public updateCustomFieldOptionsResponse() { + } - private string ampHeadField; + /// Creates a new instance of the class. + public updateCustomFieldOptionsResponse(Google.Api.Ads.AdManager.v202411.CustomFieldOption[] rval) { + this.rval = rval; + } + } - private string ampBodyField; - private ConversionEvent_TrackingUrlsMapEntry[] videoTrackingUrlsField; + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "updateCustomFields", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class updateCustomFieldsRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("customFields")] + public Google.Api.Ads.AdManager.v202411.CustomField[] customFields; - private ThirdPartyDataDeclaration thirdPartyDataDeclarationField; + /// Creates a new instance of the + /// class. + public updateCustomFieldsRequest() { + } - private CreativeWrapperOrdering orderingField; + /// Creates a new instance of the + /// class. + public updateCustomFieldsRequest(Google.Api.Ads.AdManager.v202411.CustomField[] customFields) { + this.customFields = customFields; + } + } - private bool orderingFieldSpecified; - private CreativeWrapperStatus statusField; + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "updateCustomFieldsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class updateCustomFieldsResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("rval")] + public Google.Api.Ads.AdManager.v202411.CustomField[] rval; - private bool statusFieldSpecified; + /// Creates a new instance of the + /// class. + public updateCustomFieldsResponse() { + } - /// The unique ID of the CreativeWrapper. This value is readonly and is - /// assigned by Google. + /// Creates a new instance of the + /// class. + public updateCustomFieldsResponse(Google.Api.Ads.AdManager.v202411.CustomField[] rval) { + this.rval = rval; + } + } + } + /// An option represents a permitted value for a custom field that has a CustomField#dataType of CustomFieldDataType#DROP_DOWN. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class CustomFieldOption { + private long idField; + + private bool idFieldSpecified; + + private long customFieldIdField; + + private bool customFieldIdFieldSpecified; + + private string displayNameField; + + /// Unique ID of this option. This value is readonly and is assigned by Google. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] public long id { @@ -11798,470 +12370,492 @@ public bool idSpecified { } } - /// The ID of the Label which will be used to label ad units. - /// The labelId on a creative wrapper cannot be changed once it is - /// created. + /// The id of the custom field this option belongs to. /// [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public long labelId { + public long customFieldId { get { - return this.labelIdField; + return this.customFieldIdField; } set { - this.labelIdField = value; - this.labelIdSpecified = true; + this.customFieldIdField = value; + this.customFieldIdSpecified = true; } } - /// true, if a value is specified for , - /// false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool labelIdSpecified { + public bool customFieldIdSpecified { get { - return this.labelIdFieldSpecified; + return this.customFieldIdFieldSpecified; } set { - this.labelIdFieldSpecified = value; + this.customFieldIdFieldSpecified = value; } } - /// The creative wrapper type. If the creative wrapper type is CreativeWrapperType#VIDEO_TRACKING_URL, the field must - /// be set. If the creative wrapper type is CreativeWrapperType#HTML, either the - /// header or footer field must be set. This field is - /// required. + /// The display name of this option. /// [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public CreativeWrapperType creativeWrapperType { + public string displayName { get { - return this.creativeWrapperTypeField; + return this.displayNameField; } set { - this.creativeWrapperTypeField = value; - this.creativeWrapperTypeSpecified = true; + this.displayNameField = value; } } + } - /// true, if a value is specified for , false otherwise. + + /// Errors specific to editing custom fields + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class CustomFieldError : ApiError { + private CustomFieldErrorReason reasonField; + + private bool reasonFieldSpecified; + + /// The error reason represented by an enum. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public CustomFieldErrorReason reason { + get { + return this.reasonField; + } + set { + this.reasonField = value; + this.reasonSpecified = true; + } + } + + /// true, if a value is specified for , + /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool creativeWrapperTypeSpecified { + public bool reasonSpecified { get { - return this.creativeWrapperTypeFieldSpecified; + return this.reasonFieldSpecified; } set { - this.creativeWrapperTypeFieldSpecified = value; + this.reasonFieldSpecified = value; } } + } - /// The header HTML snippet that this creative wrapper delivers. + + /// The reasons for the target error. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CustomFieldError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum CustomFieldErrorReason { + /// An attempt was made to create a CustomFieldOption for a CustomField that does not have CustomFieldDataType#DROPDOWN. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public string htmlHeader { + INVALID_CUSTOM_FIELD_FOR_OPTION = 0, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 1, + } + + + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", ConfigurationName = "Google.Api.Ads.AdManager.v202411.CustomFieldServiceInterface")] + public interface CustomFieldServiceInterface + { + // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Wrappers.CustomFieldService.createCustomFieldOptionsResponse createCustomFieldOptions(Wrappers.CustomFieldService.createCustomFieldOptionsRequest request); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + System.Threading.Tasks.Task createCustomFieldOptionsAsync(Wrappers.CustomFieldService.createCustomFieldOptionsRequest request); + + // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Wrappers.CustomFieldService.createCustomFieldsResponse createCustomFields(Wrappers.CustomFieldService.createCustomFieldsRequest request); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + System.Threading.Tasks.Task createCustomFieldsAsync(Wrappers.CustomFieldService.createCustomFieldsRequest request); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v202411.CustomFieldOption getCustomFieldOption(long customFieldOptionId); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task getCustomFieldOptionAsync(long customFieldOptionId); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v202411.CustomFieldPage getCustomFieldsByStatement(Google.Api.Ads.AdManager.v202411.Statement filterStatement); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task getCustomFieldsByStatementAsync(Google.Api.Ads.AdManager.v202411.Statement filterStatement); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v202411.UpdateResult performCustomFieldAction(Google.Api.Ads.AdManager.v202411.CustomFieldAction customFieldAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task performCustomFieldActionAsync(Google.Api.Ads.AdManager.v202411.CustomFieldAction customFieldAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement); + + // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Wrappers.CustomFieldService.updateCustomFieldOptionsResponse updateCustomFieldOptions(Wrappers.CustomFieldService.updateCustomFieldOptionsRequest request); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + System.Threading.Tasks.Task updateCustomFieldOptionsAsync(Wrappers.CustomFieldService.updateCustomFieldOptionsRequest request); + + // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Wrappers.CustomFieldService.updateCustomFieldsResponse updateCustomFields(Wrappers.CustomFieldService.updateCustomFieldsRequest request); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + System.Threading.Tasks.Task updateCustomFieldsAsync(Wrappers.CustomFieldService.updateCustomFieldsRequest request); + } + + + /// An additional, user-created field on an entity. + /// + [System.Xml.Serialization.XmlIncludeAttribute(typeof(DropDownCustomField))] + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class CustomField { + private long idField; + + private bool idFieldSpecified; + + private string nameField; + + private string descriptionField; + + private bool isActiveField; + + private bool isActiveFieldSpecified; + + private CustomFieldEntityType entityTypeField; + + private bool entityTypeFieldSpecified; + + private CustomFieldDataType dataTypeField; + + private bool dataTypeFieldSpecified; + + private CustomFieldVisibility visibilityField; + + private bool visibilityFieldSpecified; + + /// Unique ID of the CustomField. This value is readonly and is + /// assigned by Google. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public long id { get { - return this.htmlHeaderField; + return this.idField; } set { - this.htmlHeaderField = value; + this.idField = value; + this.idSpecified = true; } } - /// The footer HTML snippet that this creative wrapper delivers. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public string htmlFooter { + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool idSpecified { get { - return this.htmlFooterField; + return this.idFieldSpecified; } set { - this.htmlFooterField = value; + this.idFieldSpecified = value; } } - /// The header AMP snippet that this creative wrapper delivers. + /// Name of the CustomField. This is value is required to create a + /// custom field. The max length is 127 characters. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 5)] - public string ampHead { + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public string name { get { - return this.ampHeadField; + return this.nameField; } set { - this.ampHeadField = value; + this.nameField = value; } } - /// The footer AMP snippet that this creative wrapper delivers. + /// A description of the custom field. This value is optional. The maximum length is + /// 511 characters /// - [System.Xml.Serialization.XmlElementAttribute(Order = 6)] - public string ampBody { + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public string description { get { - return this.ampBodyField; + return this.descriptionField; } set { - this.ampBodyField = value; + this.descriptionField = value; } } - /// The video tracking URLs that this creative wrapper delivers. This field is - /// required if the creativeWrapperType is CreativeWrapperType#VIDEO_TRACKING_URL - /// and ignored otherwise. + /// Specifies whether or not the custom fields is active. This attribute is + /// read-only. /// - [System.Xml.Serialization.XmlElementAttribute("videoTrackingUrls", Order = 7)] - public ConversionEvent_TrackingUrlsMapEntry[] videoTrackingUrls { + [System.Xml.Serialization.XmlElementAttribute(Order = 3)] + public bool isActive { get { - return this.videoTrackingUrlsField; + return this.isActiveField; } set { - this.videoTrackingUrlsField = value; + this.isActiveField = value; + this.isActiveSpecified = true; } } - /// The ThirdPartyDataDeclaration for this creative wrapper.

It is - /// copied to one of the underlying creatives. If the header creative is active then - /// it is persisted there. Otherwise it is stored on the footer creative.

+ /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool isActiveSpecified { + get { + return this.isActiveFieldSpecified; + } + set { + this.isActiveFieldSpecified = value; + } + } + + /// The type of entity that this custom field is associated with. This attribute is + /// read-only if there exists a CustomFieldValue for + /// this field. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 8)] - public ThirdPartyDataDeclaration thirdPartyDataDeclaration { + [System.Xml.Serialization.XmlElementAttribute(Order = 4)] + public CustomFieldEntityType entityType { get { - return this.thirdPartyDataDeclarationField; + return this.entityTypeField; } set { - this.thirdPartyDataDeclarationField = value; + this.entityTypeField = value; + this.entityTypeSpecified = true; } } - /// If there are multiple wrappers for a creative, then defines the - /// order in which the HTML snippets are rendered. + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool entityTypeSpecified { + get { + return this.entityTypeFieldSpecified; + } + set { + this.entityTypeFieldSpecified = value; + } + } + + /// The type of data this custom field contains. This attribute is read-only if + /// there exists a CustomFieldValue for this field. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 9)] - public CreativeWrapperOrdering ordering { + [System.Xml.Serialization.XmlElementAttribute(Order = 5)] + public CustomFieldDataType dataType { get { - return this.orderingField; + return this.dataTypeField; } set { - this.orderingField = value; - this.orderingSpecified = true; + this.dataTypeField = value; + this.dataTypeSpecified = true; } } - /// true, if a value is specified for true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool orderingSpecified { + public bool dataTypeSpecified { get { - return this.orderingFieldSpecified; + return this.dataTypeFieldSpecified; } set { - this.orderingFieldSpecified = value; + this.dataTypeFieldSpecified = value; } } - /// The status of the CreativeWrapper. This attribute is readonly. + /// How visible/accessible this field is in the UI. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 10)] - public CreativeWrapperStatus status { + [System.Xml.Serialization.XmlElementAttribute(Order = 6)] + public CustomFieldVisibility visibility { get { - return this.statusField; + return this.visibilityField; } set { - this.statusField = value; - this.statusSpecified = true; + this.visibilityField = value; + this.visibilitySpecified = true; } } - /// true, if a value is specified for , - /// false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool statusSpecified { + public bool visibilitySpecified { get { - return this.statusFieldSpecified; + return this.visibilityFieldSpecified; } set { - this.statusFieldSpecified = value; + this.visibilityFieldSpecified = value; } } } - /// The type of a creative wrapper which is specified on the CreativeWrapper. + /// Entity types recognized by custom fields /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum CreativeWrapperType { - /// HTML creative wrappers that include header/footer HTML snippets. + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum CustomFieldEntityType { + /// Represents the LineItem type. /// - HTML = 0, - /// Video Tracking URL creative wrappers that include tracking URIs. + LINE_ITEM = 0, + /// Represents the Order type. /// - VIDEO_TRACKING_URL = 1, + ORDER = 1, + /// Represents the Creative type. + /// + CREATIVE = 2, + /// Represents the Proposal type. + /// + PROPOSAL = 5, + /// Represents the ProposalLineItem type. + /// + PROPOSAL_LINE_ITEM = 6, /// The value returned if the actual value is not exposed by the requested API /// version. /// - UNKNOWN = 2, + UNKNOWN = 8, } - /// Defines the order in which the header and footer HTML snippets will be wrapped - /// around the served creative. INNER snippets will be wrapped first, - /// followed by NO_PREFERENCE and finally OUTER. If the - /// creative needs to be wrapped with more than one snippet with the same CreativeWrapperOrdering, then the order is - /// unspecified. + /// The data types allowed for CustomField objects. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum CreativeWrapperOrdering { - /// Wrapping occurs after #INNER but before #OUTER + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum CustomFieldDataType { + /// A string field. The max length is 255 characters. /// - NO_PREFERENCE = 0, - /// Wrapping occurs as early as possible. + STRING = 0, + /// A number field. /// - INNER = 1, - /// Wrapping occurs after both #NO_PREFERENCE and #INNER + NUMBER = 1, + /// A boolean field. Values may be "true", "false", or empty. /// - OUTER = 2, - } - - - /// Indicates whether the CreativeWrapper is active. HTML snippets are - /// served to creatives only when the creative wrapper is active. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum CreativeWrapperStatus { - ACTIVE = 0, - INACTIVE = 1, + TOGGLE = 2, + /// A drop-down field. Values may only be the ids of CustomFieldOption objects. + /// + DROP_DOWN = 3, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 4, } - /// Errors specific to labels. + /// The visibility levels of a custom field. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class LabelError : ApiError { - private LabelErrorReason reasonField; - - private bool reasonFieldSpecified; - - /// The error reason represented by an enum. + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum CustomFieldVisibility { + /// The value returned if the actual value is not exposed by the requested API + /// version. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public LabelErrorReason reason { - get { - return this.reasonField; - } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { - return this.reasonFieldSpecified; - } - set { - this.reasonFieldSpecified = value; - } - } - } - - - /// The reasons for the target error. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "LabelError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum LabelErrorReason { - /// A user created label cannot begin with the Google internal system label prefix. + UNKNOWN = 3, + /// Only visible through the API. /// - INVALID_PREFIX = 0, - /// Label#name contains unsupported or reserved characters. + API_ONLY = 0, + /// Visible in the UI, but only editable through the API /// - NAME_INVALID_CHARS = 1, - /// The value returned if the actual value is not exposed by the requested API - /// version. + READ_ONLY = 1, + /// Visible and editable both in the API and the UI. /// - UNKNOWN = 2, + FULL = 2, } - /// Errors specific to creative wrappers. + /// A custom field that has the drop-down data type. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class CreativeWrapperError : ApiError { - private CreativeWrapperErrorReason reasonField; - - private bool reasonFieldSpecified; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class DropDownCustomField : CustomField { + private CustomFieldOption[] optionsField; - /// The error reason represented by an enum. + /// The options allowed for this custom field. This is read only. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public CreativeWrapperErrorReason reason { - get { - return this.reasonField; - } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { + [System.Xml.Serialization.XmlElementAttribute("options", Order = 0)] + public CustomFieldOption[] options { get { - return this.reasonFieldSpecified; + return this.optionsField; } set { - this.reasonFieldSpecified = value; + this.optionsField = value; } } } - /// The reasons for the creative wrapper error. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CreativeWrapperError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum CreativeWrapperErrorReason { - /// The label is already associated with a CreativeWrapper. - /// - LABEL_ALREADY_ASSOCIATED_WITH_CREATIVE_WRAPPER = 0, - /// The label type of a creative wrapper must be LabelType#CREATIVE_WRAPPER. - /// - INVALID_LABEL_TYPE = 1, - /// A macro used inside the snippet is not recognized. - /// - UNRECOGNIZED_MACRO = 2, - /// When creating a new creative wrapper, either header or footer should exist. - /// - NEITHER_HEADER_NOR_FOOTER_SPECIFIED = 3, - /// Creative wrapper must have either header and/or footer, or video tracking URLs. - /// - NEITHER_HEADER_NOR_FOOTER_NOR_VIDEO_TRACKING_URLS_SPECIFIED = 9, - /// The network has not been enabled for creating labels of type LabelType#CREATIVE_WRAPPER. - /// - CANNOT_USE_CREATIVE_WRAPPER_TYPE = 4, - /// Cannot update CreativeWrapper#labelId. - /// - CANNOT_UPDATE_LABEL_ID = 5, - /// Cannot apply LabelType#CREATIVE_WRAPPER - /// labels to an ad unit if it has no descendants with AdUnit#adUnitSizes of as EnvironmentType#BROWSER. - /// - CANNOT_APPLY_TO_AD_UNIT_WITH_VIDEO_SIZES = 6, - /// Cannot apply LabelType#CREATIVE_WRAPPER - /// labels with a CreativeWrapper#VIDEO_TRACKING_URL type to an ad - /// unit if it has no descendants with AdUnit#adUnitSizes of - /// AdUnitSize#environmentType as EnvironmentType#VIDEO_PLAYER. - /// - CANNOT_APPLY_TO_AD_UNIT_WITHOUT_VIDEO_SIZES = 10, - /// Cannot apply LabelType#CREATIVE_WRAPPER - /// labels to an ad unit if the label is not associated with a creative wrapper. - /// - CANNOT_APPLY_TO_AD_UNIT_WITHOUT_LABEL_ASSOCIATION = 11, - /// Cannot apply LabelType#CREATIVE_WRAPPER - /// labels to an ad unit if AdUnit#targetPlatform is of type - /// - CANNOT_APPLY_TO_MOBILE_AD_UNIT = 7, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 8, - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", ConfigurationName = "Google.Api.Ads.AdManager.v202311.CreativeWrapperServiceInterface")] - public interface CreativeWrapperServiceInterface - { - // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Wrappers.CreativeWrapperService.createCreativeWrappersResponse createCreativeWrappers(Wrappers.CreativeWrapperService.createCreativeWrappersRequest request); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task createCreativeWrappersAsync(Wrappers.CreativeWrapperService.createCreativeWrappersRequest request); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v202311.CreativeWrapperPage getCreativeWrappersByStatement(Google.Api.Ads.AdManager.v202311.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getCreativeWrappersByStatementAsync(Google.Api.Ads.AdManager.v202311.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v202311.UpdateResult performCreativeWrapperAction(Google.Api.Ads.AdManager.v202311.CreativeWrapperAction creativeWrapperAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task performCreativeWrapperActionAsync(Google.Api.Ads.AdManager.v202311.CreativeWrapperAction creativeWrapperAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement); - - // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Wrappers.CreativeWrapperService.updateCreativeWrappersResponse updateCreativeWrappers(Wrappers.CreativeWrapperService.updateCreativeWrappersRequest request); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task updateCreativeWrappersAsync(Wrappers.CreativeWrapperService.updateCreativeWrappersRequest request); - } - - - /// Captures a page of CreativeWrapper objects. + /// Captures a page of CustomField objects. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class CreativeWrapperPage { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class CustomFieldPage { private int totalResultSetSizeField; private bool totalResultSetSizeFieldSpecified; @@ -12270,7 +12864,7 @@ public partial class CreativeWrapperPage { private bool startIndexFieldSpecified; - private CreativeWrapper[] resultsField; + private CustomField[] resultsField; /// The size of the total result set to which this page belongs. /// @@ -12324,10 +12918,10 @@ public bool startIndexSpecified { } } - /// The collection of creative wrappers contained within this page. + /// The collection of custom fields contained within this page. /// [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] - public CreativeWrapper[] results { + public CustomField[] results { get { return this.resultsField; } @@ -12339,283 +12933,261 @@ public CreativeWrapper[] results { /// Represents the actions that can be performed on CreativeWrapper objects. + /// href='CustomField'>CustomField objects. /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(DeactivateCreativeWrappers))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ActivateCreativeWrappers))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(DeactivateCustomFields))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ActivateCustomFields))] [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public abstract partial class CreativeWrapperAction { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class CustomFieldAction { } - /// The action used for deactivating CreativeWrapper - /// objects. + /// The action used for deactivating CustomField objects. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class DeactivateCreativeWrappers : CreativeWrapperAction { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class DeactivateCustomFields : CustomFieldAction { } - /// The action used for activating CreativeWrapper - /// objects. + /// The action used for activating CustomField objects. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ActivateCreativeWrappers : CreativeWrapperAction { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ActivateCustomFields : CustomFieldAction { } [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public interface CreativeWrapperServiceInterfaceChannel : Google.Api.Ads.AdManager.v202311.CreativeWrapperServiceInterface, System.ServiceModel.IClientChannel + public interface CustomFieldServiceInterfaceChannel : Google.Api.Ads.AdManager.v202411.CustomFieldServiceInterface, System.ServiceModel.IClientChannel { } - /// Provides methods for the creation and management of creative wrappers. CreativeWrappers allow HTML snippets to be served - /// along with creatives.

Creative wrappers must be associated with a LabelType#CREATIVE_WRAPPER label and - /// applied to ad units by AdUnit#appliedLabels.

+ /// Provides methods for the creation and management of CustomField objects. /// [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public partial class CreativeWrapperService : AdManagerSoapClient, ICreativeWrapperService { - /// Creates a new instance of the - /// class. - public CreativeWrapperService() { + public partial class CustomFieldService : AdManagerSoapClient, ICustomFieldService { + /// Creates a new instance of the class. + /// + public CustomFieldService() { } - /// Creates a new instance of the - /// class. - public CreativeWrapperService(string endpointConfigurationName) + /// Creates a new instance of the class. + /// + public CustomFieldService(string endpointConfigurationName) : base(endpointConfigurationName) { } - /// Creates a new instance of the - /// class. - public CreativeWrapperService(string endpointConfigurationName, string remoteAddress) + /// Creates a new instance of the class. + /// + public CustomFieldService(string endpointConfigurationName, string remoteAddress) : base(endpointConfigurationName, remoteAddress) { } - /// Creates a new instance of the - /// class. - public CreativeWrapperService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) + /// Creates a new instance of the class. + /// + public CustomFieldService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) : base(endpointConfigurationName, remoteAddress) { } - /// Creates a new instance of the - /// class. - public CreativeWrapperService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) + /// Creates a new instance of the class. + /// + public CustomFieldService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) : base(binding, remoteAddress) { } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.CreativeWrapperService.createCreativeWrappersResponse Google.Api.Ads.AdManager.v202311.CreativeWrapperServiceInterface.createCreativeWrappers(Wrappers.CreativeWrapperService.createCreativeWrappersRequest request) { - return base.Channel.createCreativeWrappers(request); + Wrappers.CustomFieldService.createCustomFieldOptionsResponse Google.Api.Ads.AdManager.v202411.CustomFieldServiceInterface.createCustomFieldOptions(Wrappers.CustomFieldService.createCustomFieldOptionsRequest request) { + return base.Channel.createCustomFieldOptions(request); } - /// Creates a new CreativeWrapper objects.

The following fields are - /// required:

+ /// Creates new CustomFieldOption objects.

The + /// following fields are required:

///
- public virtual Google.Api.Ads.AdManager.v202311.CreativeWrapper[] createCreativeWrappers(Google.Api.Ads.AdManager.v202311.CreativeWrapper[] creativeWrappers) { - Wrappers.CreativeWrapperService.createCreativeWrappersRequest inValue = new Wrappers.CreativeWrapperService.createCreativeWrappersRequest(); - inValue.creativeWrappers = creativeWrappers; - Wrappers.CreativeWrapperService.createCreativeWrappersResponse retVal = ((Google.Api.Ads.AdManager.v202311.CreativeWrapperServiceInterface)(this)).createCreativeWrappers(inValue); + public virtual Google.Api.Ads.AdManager.v202411.CustomFieldOption[] createCustomFieldOptions(Google.Api.Ads.AdManager.v202411.CustomFieldOption[] customFieldOptions) { + Wrappers.CustomFieldService.createCustomFieldOptionsRequest inValue = new Wrappers.CustomFieldService.createCustomFieldOptionsRequest(); + inValue.customFieldOptions = customFieldOptions; + Wrappers.CustomFieldService.createCustomFieldOptionsResponse retVal = ((Google.Api.Ads.AdManager.v202411.CustomFieldServiceInterface)(this)).createCustomFieldOptions(inValue); return retVal.rval; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202311.CreativeWrapperServiceInterface.createCreativeWrappersAsync(Wrappers.CreativeWrapperService.createCreativeWrappersRequest request) { - return base.Channel.createCreativeWrappersAsync(request); - } - - public virtual System.Threading.Tasks.Task createCreativeWrappersAsync(Google.Api.Ads.AdManager.v202311.CreativeWrapper[] creativeWrappers) { - Wrappers.CreativeWrapperService.createCreativeWrappersRequest inValue = new Wrappers.CreativeWrapperService.createCreativeWrappersRequest(); - inValue.creativeWrappers = creativeWrappers; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202311.CreativeWrapperServiceInterface)(this)).createCreativeWrappersAsync(inValue)).Result.rval); + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202411.CustomFieldServiceInterface.createCustomFieldOptionsAsync(Wrappers.CustomFieldService.createCustomFieldOptionsRequest request) { + return base.Channel.createCustomFieldOptionsAsync(request); } - /// Gets a CreativeWrapperPage of CreativeWrapper objects that satisfy the given Statement#query. The following fields are supported - /// for filtering: - /// - /// - ///
PQL Property Object Property
id CreativeWrapper#id
labelId CreativeWrapper#labelId
status CreativeWrapper#status
ordering CreativeWrapper#ordering
- ///
- public virtual Google.Api.Ads.AdManager.v202311.CreativeWrapperPage getCreativeWrappersByStatement(Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.getCreativeWrappersByStatement(filterStatement); + public virtual System.Threading.Tasks.Task createCustomFieldOptionsAsync(Google.Api.Ads.AdManager.v202411.CustomFieldOption[] customFieldOptions) { + Wrappers.CustomFieldService.createCustomFieldOptionsRequest inValue = new Wrappers.CustomFieldService.createCustomFieldOptionsRequest(); + inValue.customFieldOptions = customFieldOptions; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202411.CustomFieldServiceInterface)(this)).createCustomFieldOptionsAsync(inValue)).Result.rval); } - public virtual System.Threading.Tasks.Task getCreativeWrappersByStatementAsync(Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.getCreativeWrappersByStatementAsync(filterStatement); + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + Wrappers.CustomFieldService.createCustomFieldsResponse Google.Api.Ads.AdManager.v202411.CustomFieldServiceInterface.createCustomFields(Wrappers.CustomFieldService.createCustomFieldsRequest request) { + return base.Channel.createCustomFields(request); } - /// Performs actions on CreativeWrapper objects that - /// match the given Statement#query. + /// Creates new CustomField objects.

The following + /// fields are required:

///
- public virtual Google.Api.Ads.AdManager.v202311.UpdateResult performCreativeWrapperAction(Google.Api.Ads.AdManager.v202311.CreativeWrapperAction creativeWrapperAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.performCreativeWrapperAction(creativeWrapperAction, filterStatement); + public virtual Google.Api.Ads.AdManager.v202411.CustomField[] createCustomFields(Google.Api.Ads.AdManager.v202411.CustomField[] customFields) { + Wrappers.CustomFieldService.createCustomFieldsRequest inValue = new Wrappers.CustomFieldService.createCustomFieldsRequest(); + inValue.customFields = customFields; + Wrappers.CustomFieldService.createCustomFieldsResponse retVal = ((Google.Api.Ads.AdManager.v202411.CustomFieldServiceInterface)(this)).createCustomFields(inValue); + return retVal.rval; } - public virtual System.Threading.Tasks.Task performCreativeWrapperActionAsync(Google.Api.Ads.AdManager.v202311.CreativeWrapperAction creativeWrapperAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.performCreativeWrapperActionAsync(creativeWrapperAction, filterStatement); + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202411.CustomFieldServiceInterface.createCustomFieldsAsync(Wrappers.CustomFieldService.createCustomFieldsRequest request) { + return base.Channel.createCustomFieldsAsync(request); } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.CreativeWrapperService.updateCreativeWrappersResponse Google.Api.Ads.AdManager.v202311.CreativeWrapperServiceInterface.updateCreativeWrappers(Wrappers.CreativeWrapperService.updateCreativeWrappersRequest request) { - return base.Channel.updateCreativeWrappers(request); + public virtual System.Threading.Tasks.Task createCustomFieldsAsync(Google.Api.Ads.AdManager.v202411.CustomField[] customFields) { + Wrappers.CustomFieldService.createCustomFieldsRequest inValue = new Wrappers.CustomFieldService.createCustomFieldsRequest(); + inValue.customFields = customFields; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202411.CustomFieldServiceInterface)(this)).createCustomFieldsAsync(inValue)).Result.rval); } - /// Updates the specified CreativeWrapper objects. + /// Returns the CustomFieldOption uniquely + /// identified by the given ID. /// - public virtual Google.Api.Ads.AdManager.v202311.CreativeWrapper[] updateCreativeWrappers(Google.Api.Ads.AdManager.v202311.CreativeWrapper[] creativeWrappers) { - Wrappers.CreativeWrapperService.updateCreativeWrappersRequest inValue = new Wrappers.CreativeWrapperService.updateCreativeWrappersRequest(); - inValue.creativeWrappers = creativeWrappers; - Wrappers.CreativeWrapperService.updateCreativeWrappersResponse retVal = ((Google.Api.Ads.AdManager.v202311.CreativeWrapperServiceInterface)(this)).updateCreativeWrappers(inValue); - return retVal.rval; + public virtual Google.Api.Ads.AdManager.v202411.CustomFieldOption getCustomFieldOption(long customFieldOptionId) { + return base.Channel.getCustomFieldOption(customFieldOptionId); } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202311.CreativeWrapperServiceInterface.updateCreativeWrappersAsync(Wrappers.CreativeWrapperService.updateCreativeWrappersRequest request) { - return base.Channel.updateCreativeWrappersAsync(request); + public virtual System.Threading.Tasks.Task getCustomFieldOptionAsync(long customFieldOptionId) { + return base.Channel.getCustomFieldOptionAsync(customFieldOptionId); } - public virtual System.Threading.Tasks.Task updateCreativeWrappersAsync(Google.Api.Ads.AdManager.v202311.CreativeWrapper[] creativeWrappers) { - Wrappers.CreativeWrapperService.updateCreativeWrappersRequest inValue = new Wrappers.CreativeWrapperService.updateCreativeWrappersRequest(); - inValue.creativeWrappers = creativeWrappers; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202311.CreativeWrapperServiceInterface)(this)).updateCreativeWrappersAsync(inValue)).Result.rval); + /// Gets a CustomFieldPage of CustomField objects that satisfy the given Statement#query. The following fields are supported for filtering: + /// + /// + /// + /// + ///
PQL Property Object + /// Property
id CustomField#id
entityType CustomField#entityType
name CustomField#name
isActive CustomField#isActive
visibility CustomField#visibility
+ ///
+ public virtual Google.Api.Ads.AdManager.v202411.CustomFieldPage getCustomFieldsByStatement(Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.getCustomFieldsByStatement(filterStatement); } - } - namespace Wrappers.CustomTargetingService - { - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "createCustomTargetingKeys", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class createCustomTargetingKeysRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("keys")] - public Google.Api.Ads.AdManager.v202311.CustomTargetingKey[] keys; - /// Creates a new instance of the class. - public createCustomTargetingKeysRequest() { - } + public virtual System.Threading.Tasks.Task getCustomFieldsByStatementAsync(Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.getCustomFieldsByStatementAsync(filterStatement); + } - /// Creates a new instance of the class. - public createCustomTargetingKeysRequest(Google.Api.Ads.AdManager.v202311.CustomTargetingKey[] keys) { - this.keys = keys; - } + /// Performs actions on CustomField objects that match the + /// given Statement#query. + /// + public virtual Google.Api.Ads.AdManager.v202411.UpdateResult performCustomFieldAction(Google.Api.Ads.AdManager.v202411.CustomFieldAction customFieldAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.performCustomFieldAction(customFieldAction, filterStatement); } + public virtual System.Threading.Tasks.Task performCustomFieldActionAsync(Google.Api.Ads.AdManager.v202411.CustomFieldAction customFieldAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.performCustomFieldActionAsync(customFieldAction, filterStatement); + } - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "createCustomTargetingKeysResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class createCustomTargetingKeysResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v202311.CustomTargetingKey[] rval; - - /// Creates a new instance of the class. - public createCustomTargetingKeysResponse() { - } - - /// Creates a new instance of the class. - public createCustomTargetingKeysResponse(Google.Api.Ads.AdManager.v202311.CustomTargetingKey[] rval) { - this.rval = rval; - } + Wrappers.CustomFieldService.updateCustomFieldOptionsResponse Google.Api.Ads.AdManager.v202411.CustomFieldServiceInterface.updateCustomFieldOptions(Wrappers.CustomFieldService.updateCustomFieldOptionsRequest request) { + return base.Channel.updateCustomFieldOptions(request); } + /// Updates the specified CustomFieldOption objects. + /// + public virtual Google.Api.Ads.AdManager.v202411.CustomFieldOption[] updateCustomFieldOptions(Google.Api.Ads.AdManager.v202411.CustomFieldOption[] customFieldOptions) { + Wrappers.CustomFieldService.updateCustomFieldOptionsRequest inValue = new Wrappers.CustomFieldService.updateCustomFieldOptionsRequest(); + inValue.customFieldOptions = customFieldOptions; + Wrappers.CustomFieldService.updateCustomFieldOptionsResponse retVal = ((Google.Api.Ads.AdManager.v202411.CustomFieldServiceInterface)(this)).updateCustomFieldOptions(inValue); + return retVal.rval; + } - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "createCustomTargetingValues", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class createCustomTargetingValuesRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("values")] - public Google.Api.Ads.AdManager.v202311.CustomTargetingValue[] values; - - /// Creates a new instance of the class. - public createCustomTargetingValuesRequest() { - } - - /// Creates a new instance of the class. - public createCustomTargetingValuesRequest(Google.Api.Ads.AdManager.v202311.CustomTargetingValue[] values) { - this.values = values; - } + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202411.CustomFieldServiceInterface.updateCustomFieldOptionsAsync(Wrappers.CustomFieldService.updateCustomFieldOptionsRequest request) { + return base.Channel.updateCustomFieldOptionsAsync(request); } + public virtual System.Threading.Tasks.Task updateCustomFieldOptionsAsync(Google.Api.Ads.AdManager.v202411.CustomFieldOption[] customFieldOptions) { + Wrappers.CustomFieldService.updateCustomFieldOptionsRequest inValue = new Wrappers.CustomFieldService.updateCustomFieldOptionsRequest(); + inValue.customFieldOptions = customFieldOptions; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202411.CustomFieldServiceInterface)(this)).updateCustomFieldOptionsAsync(inValue)).Result.rval); + } - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "createCustomTargetingValuesResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class createCustomTargetingValuesResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v202311.CustomTargetingValue[] rval; - - /// Creates a new instance of the class. - public createCustomTargetingValuesResponse() { - } + Wrappers.CustomFieldService.updateCustomFieldsResponse Google.Api.Ads.AdManager.v202411.CustomFieldServiceInterface.updateCustomFields(Wrappers.CustomFieldService.updateCustomFieldsRequest request) { + return base.Channel.updateCustomFields(request); + } - /// Creates a new instance of the class. - public createCustomTargetingValuesResponse(Google.Api.Ads.AdManager.v202311.CustomTargetingValue[] rval) { - this.rval = rval; - } + /// Updates the specified CustomField objects. + /// + public virtual Google.Api.Ads.AdManager.v202411.CustomField[] updateCustomFields(Google.Api.Ads.AdManager.v202411.CustomField[] customFields) { + Wrappers.CustomFieldService.updateCustomFieldsRequest inValue = new Wrappers.CustomFieldService.updateCustomFieldsRequest(); + inValue.customFields = customFields; + Wrappers.CustomFieldService.updateCustomFieldsResponse retVal = ((Google.Api.Ads.AdManager.v202411.CustomFieldServiceInterface)(this)).updateCustomFields(inValue); + return retVal.rval; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202411.CustomFieldServiceInterface.updateCustomFieldsAsync(Wrappers.CustomFieldService.updateCustomFieldsRequest request) { + return base.Channel.updateCustomFieldsAsync(request); + } + public virtual System.Threading.Tasks.Task updateCustomFieldsAsync(Google.Api.Ads.AdManager.v202411.CustomField[] customFields) { + Wrappers.CustomFieldService.updateCustomFieldsRequest inValue = new Wrappers.CustomFieldService.updateCustomFieldsRequest(); + inValue.customFields = customFields; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202411.CustomFieldServiceInterface)(this)).updateCustomFieldsAsync(inValue)).Result.rval); + } + } + namespace Wrappers.ForecastService + { [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "updateCustomTargetingKeys", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class updateCustomTargetingKeysRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("keys")] - public Google.Api.Ads.AdManager.v202311.CustomTargetingKey[] keys; + [System.ServiceModel.MessageContractAttribute(WrapperName = "getDeliveryForecast", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class getDeliveryForecastRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("lineItems")] + public Google.Api.Ads.AdManager.v202411.ProspectiveLineItem[] lineItems; - /// Creates a new instance of the class. - public updateCustomTargetingKeysRequest() { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 1)] + public Google.Api.Ads.AdManager.v202411.DeliveryForecastOptions forecastOptions; + + /// Creates a new instance of the + /// class. + public getDeliveryForecastRequest() { } - /// Creates a new instance of the class. - public updateCustomTargetingKeysRequest(Google.Api.Ads.AdManager.v202311.CustomTargetingKey[] keys) { - this.keys = keys; + /// Creates a new instance of the + /// class. + public getDeliveryForecastRequest(Google.Api.Ads.AdManager.v202411.ProspectiveLineItem[] lineItems, Google.Api.Ads.AdManager.v202411.DeliveryForecastOptions forecastOptions) { + this.lineItems = lineItems; + this.forecastOptions = forecastOptions; } } @@ -12623,20 +13195,19 @@ public updateCustomTargetingKeysRequest(Google.Api.Ads.AdManager.v202311.CustomT [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "updateCustomTargetingKeysResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class updateCustomTargetingKeysResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v202311.CustomTargetingKey[] rval; + [System.ServiceModel.MessageContractAttribute(WrapperName = "getDeliveryForecastResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class getDeliveryForecastResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + public Google.Api.Ads.AdManager.v202411.DeliveryForecast rval; /// Creates a new instance of the class. - public updateCustomTargetingKeysResponse() { + /// cref="getDeliveryForecastResponse"/> class.
+ public getDeliveryForecastResponse() { } /// Creates a new instance of the class. - public updateCustomTargetingKeysResponse(Google.Api.Ads.AdManager.v202311.CustomTargetingKey[] rval) { + /// cref="getDeliveryForecastResponse"/> class.
+ public getDeliveryForecastResponse(Google.Api.Ads.AdManager.v202411.DeliveryForecast rval) { this.rval = rval; } } @@ -12645,21 +13216,25 @@ public updateCustomTargetingKeysResponse(Google.Api.Ads.AdManager.v202311.Custom [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "updateCustomTargetingValues", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class updateCustomTargetingValuesRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("values")] - public Google.Api.Ads.AdManager.v202311.CustomTargetingValue[] values; + [System.ServiceModel.MessageContractAttribute(WrapperName = "getDeliveryForecastByIds", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class getDeliveryForecastByIdsRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("lineItemIds")] + public long[] lineItemIds; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 1)] + public Google.Api.Ads.AdManager.v202411.DeliveryForecastOptions forecastOptions; /// Creates a new instance of the class. - public updateCustomTargetingValuesRequest() { + /// cref="getDeliveryForecastByIdsRequest"/> class.
+ public getDeliveryForecastByIdsRequest() { } /// Creates a new instance of the class. - public updateCustomTargetingValuesRequest(Google.Api.Ads.AdManager.v202311.CustomTargetingValue[] values) { - this.values = values; + /// cref="getDeliveryForecastByIdsRequest"/> class.
+ public getDeliveryForecastByIdsRequest(long[] lineItemIds, Google.Api.Ads.AdManager.v202411.DeliveryForecastOptions forecastOptions) { + this.lineItemIds = lineItemIds; + this.forecastOptions = forecastOptions; } } @@ -12667,1832 +13242,1778 @@ public updateCustomTargetingValuesRequest(Google.Api.Ads.AdManager.v202311.Custo [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "updateCustomTargetingValuesResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class updateCustomTargetingValuesResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v202311.CustomTargetingValue[] rval; + [System.ServiceModel.MessageContractAttribute(WrapperName = "getDeliveryForecastByIdsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class getDeliveryForecastByIdsResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + public Google.Api.Ads.AdManager.v202411.DeliveryForecast rval; /// Creates a new instance of the class. - public updateCustomTargetingValuesResponse() { + /// cref="getDeliveryForecastByIdsResponse"/> class.
+ public getDeliveryForecastByIdsResponse() { } /// Creates a new instance of the class. - public updateCustomTargetingValuesResponse(Google.Api.Ads.AdManager.v202311.CustomTargetingValue[] rval) { + /// cref="getDeliveryForecastByIdsResponse"/> class.
+ public getDeliveryForecastByIdsResponse(Google.Api.Ads.AdManager.v202411.DeliveryForecast rval) { this.rval = rval; } } } - /// CustomTargetingKey represents a key used for custom targeting. + /// A view of the forecast in terms of an alternative unit type.

For example, a + /// forecast for an impressions goal may include this to express the matched, + /// available, and possible viewable impressions.

///
[System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class CustomTargetingKey { - private long idField; - - private bool idFieldSpecified; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class AlternativeUnitTypeForecast { + private UnitType unitTypeField; - private string nameField; + private bool unitTypeFieldSpecified; - private string displayNameField; + private long matchedUnitsField; - private CustomTargetingKeyType typeField; + private bool matchedUnitsFieldSpecified; - private bool typeFieldSpecified; + private long availableUnitsField; - private CustomTargetingKeyStatus statusField; + private bool availableUnitsFieldSpecified; - private bool statusFieldSpecified; + private long possibleUnitsField; - private ReportableType reportableTypeField; + private bool possibleUnitsFieldSpecified; - private bool reportableTypeFieldSpecified; - - /// The ID of the CustomTargetingKey. This value is readonly and is - /// populated by Google. + /// The alternative unit type being presented. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public long id { + public UnitType unitType { get { - return this.idField; + return this.unitTypeField; } set { - this.idField = value; - this.idSpecified = true; + this.unitTypeField = value; + this.unitTypeSpecified = true; } } - /// true, if a value is specified for , - /// false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool idSpecified { + public bool unitTypeSpecified { get { - return this.idFieldSpecified; + return this.unitTypeFieldSpecified; } set { - this.idFieldSpecified = value; + this.unitTypeFieldSpecified = value; } } - /// Name of the key. This can be used for encoding . If you don't want users to be - /// able to see potentially sensitive targeting information in the ad tags of your - /// site, you can encode your key/values. For example, you can create key/value - /// g1=abc to represent gender=female. Keys can contain up to 10 characters each. - /// You can use alphanumeric characters and symbols other than the following: ", ', - /// =, !, +, #, *, ~, ;, ^, (, ), <, >, [, ], the white space character. + /// The number of units, defined by #unitType, that match + /// the specified targeting and delivery settings. /// [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public string name { - get { - return this.nameField; - } - set { - this.nameField = value; - } - } - - /// Descriptive name for the key. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public string displayName { - get { - return this.displayNameField; - } - set { - this.displayNameField = value; - } - } - - /// Indicates whether users will select from predefined values or create new - /// targeting values, while specifying targeting criteria for a line item. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public CustomTargetingKeyType type { + public long matchedUnits { get { - return this.typeField; + return this.matchedUnitsField; } set { - this.typeField = value; - this.typeSpecified = true; + this.matchedUnitsField = value; + this.matchedUnitsSpecified = true; } } - /// true, if a value is specified for , - /// false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool typeSpecified { + public bool matchedUnitsSpecified { get { - return this.typeFieldSpecified; + return this.matchedUnitsFieldSpecified; } set { - this.typeFieldSpecified = value; + this.matchedUnitsFieldSpecified = value; } } - /// Status of the CustomTargetingKey. This field is read-only. A key - /// can be activated and deactivated by calling CustomTargetingService#performCustomTargetingKeyAction. + /// The number of units, defined by #unitType, that can be + /// booked without affecting the delivery of any reserved line items. Exceeding this + /// value will not cause an overbook, but lower-priority line items may not run. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public CustomTargetingKeyStatus status { + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public long availableUnits { get { - return this.statusField; + return this.availableUnitsField; } set { - this.statusField = value; - this.statusSpecified = true; + this.availableUnitsField = value; + this.availableUnitsSpecified = true; } } - /// true, if a value is specified for , - /// false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool statusSpecified { + public bool availableUnitsSpecified { get { - return this.statusFieldSpecified; + return this.availableUnitsFieldSpecified; } set { - this.statusFieldSpecified = value; + this.availableUnitsFieldSpecified = value; } } - /// Reportable state of a {@CustomTargetingKey} as defined in ReportableType. + /// The maximum number of units, defined by #unitType, that + /// could be booked by taking inventory away from lower-priority line items. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 5)] - public ReportableType reportableType { + [System.Xml.Serialization.XmlElementAttribute(Order = 3)] + public long possibleUnits { get { - return this.reportableTypeField; + return this.possibleUnitsField; } set { - this.reportableTypeField = value; - this.reportableTypeSpecified = true; + this.possibleUnitsField = value; + this.possibleUnitsSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="possibleUnits" />, false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool reportableTypeSpecified { + public bool possibleUnitsSpecified { get { - return this.reportableTypeFieldSpecified; + return this.possibleUnitsFieldSpecified; } set { - this.reportableTypeFieldSpecified = value; + this.possibleUnitsFieldSpecified = value; } } } - /// Specifies the types for CustomTargetingKey objects. + /// Indicates the type of unit used for defining a reservation. The CostType can differ from the UnitType + /// - an ad can have an impression goal, but be billed by its click. Usually CostType and UnitType will refer to + /// the same unit. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CustomTargetingKey.Type", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum CustomTargetingKeyType { - /// Target audiences by criteria values that are defined in advance. + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum UnitType { + /// The number of impressions served by creatives associated with the line item. + /// Line items of all LineItemType support this + /// UnitType. /// - PREDEFINED = 0, - /// Target audiences by adding criteria values when creating line items. + IMPRESSIONS = 0, + /// The number of clicks reported by creatives associated with the line item. The LineItem#lineItemType must be LineItemType#STANDARD, LineItemType#BULK or LineItemType#PRICE_PRIORITY. /// - FREEFORM = 1, - } - - - /// Describes the statuses for CustomTargetingKey objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CustomTargetingKey.Status", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum CustomTargetingKeyStatus { - /// The object is active. + CLICKS = 1, + /// The number of click-through Cost-Per-Action (CPA) conversions from creatives + /// associated with the line item. This is only supported as secondary goal and the + /// LineItem#costType must be CostType#CPA. /// - ACTIVE = 0, - /// The object is no longer active. + CLICK_THROUGH_CPA_CONVERSIONS = 2, + /// The number of view-through Cost-Per-Action (CPA) conversions from creatives + /// associated with the line item. This is only supported as secondary goal and the + /// LineItem#costType must be CostType#CPA. /// - INACTIVE = 1, + VIEW_THROUGH_CPA_CONVERSIONS = 3, + /// The number of total Cost-Per-Action (CPA) conversions from creatives associated + /// with the line item. This is only supported as secondary goal and the LineItem#costType must be CostType#CPA. + /// + TOTAL_CPA_CONVERSIONS = 4, + /// The number of viewable impressions reported by creatives associated with the + /// line item. The LineItem#lineItemType must be + /// LineItemType#STANDARD. + /// + VIEWABLE_IMPRESSIONS = 6, + /// The number of in-target impressions reported by third party measurements. The LineItem#lineItemType must be LineItemType#STANDARD. + /// + IN_TARGET_IMPRESSIONS = 7, /// The value returned if the actual value is not exposed by the requested API /// version. /// - UNKNOWN = 2, + UNKNOWN = 5, } - /// Represents the reportable state of a custom key. + /// Describes contending line items for a Forecast. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum ReportableType { - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 0, - /// Available for reporting in the Ad Manager query tool. - /// - ON = 1, - /// Not available for reporting in the Ad Manager query tool. + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ContendingLineItem { + private long lineItemIdField; + + private bool lineItemIdFieldSpecified; + + private long contendingImpressionsField; + + private bool contendingImpressionsFieldSpecified; + + /// The Id of the contending line item. /// - OFF = 2, - /// Custom dimension available for reporting in the AdManager query tool. + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public long lineItemId { + get { + return this.lineItemIdField; + } + set { + this.lineItemIdField = value; + this.lineItemIdSpecified = true; + } + } + + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool lineItemIdSpecified { + get { + return this.lineItemIdFieldSpecified; + } + set { + this.lineItemIdFieldSpecified = value; + } + } + + /// Number of impressions contended for by both the forecasted line item and this + /// line item, but served to this line item in the forecast simulation. /// - CUSTOM_DIMENSION = 3, + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public long contendingImpressions { + get { + return this.contendingImpressionsField; + } + set { + this.contendingImpressionsField = value; + this.contendingImpressionsSpecified = true; + } + } + + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool contendingImpressionsSpecified { + get { + return this.contendingImpressionsFieldSpecified; + } + set { + this.contendingImpressionsFieldSpecified = value; + } + } } - /// Lists errors relating to having too many children on an entity. + /// A single targeting criteria breakdown result. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class EntityChildrenLimitReachedError : ApiError { - private EntityChildrenLimitReachedErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class TargetingCriteriaBreakdown { + private TargetingDimension targetingDimensionField; - private bool reasonFieldSpecified; + private bool targetingDimensionFieldSpecified; + + private long targetingCriteriaIdField; + + private bool targetingCriteriaIdFieldSpecified; + + private string targetingCriteriaNameField; + + private bool excludedField; + + private bool excludedFieldSpecified; + + private long availableUnitsField; + private bool availableUnitsFieldSpecified; + + private long matchedUnitsField; + + private bool matchedUnitsFieldSpecified; + + /// The dimension of this breakdown + /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public EntityChildrenLimitReachedErrorReason reason { + public TargetingDimension targetingDimension { get { - return this.reasonField; + return this.targetingDimensionField; } set { - this.reasonField = value; - this.reasonSpecified = true; + this.targetingDimensionField = value; + this.targetingDimensionSpecified = true; } } - /// true, if a value is specified for , - /// false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { + public bool targetingDimensionSpecified { get { - return this.reasonFieldSpecified; + return this.targetingDimensionFieldSpecified; } set { - this.reasonFieldSpecified = value; + this.targetingDimensionFieldSpecified = value; } } - } - - /// The reasons for the entity children limit reached error. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "EntityChildrenLimitReachedError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum EntityChildrenLimitReachedErrorReason { - /// The number of line items on the order exceeds the max number of line items - /// allowed per order in the network. - /// - LINE_ITEM_LIMIT_FOR_ORDER_REACHED = 0, - /// The number of creatives associated with the line item exceeds the max number of - /// creatives allowed to be associated with a line item in the network. - /// - CREATIVE_ASSOCIATION_LIMIT_FOR_LINE_ITEM_REACHED = 1, - /// The number of ad units on the placement exceeds the max number of ad units - /// allowed per placement in the network. - /// - AD_UNIT_LIMIT_FOR_PLACEMENT_REACHED = 2, - /// The number of targeting expressions on the line item exceeds the max number of - /// targeting expressions allowed per line item in the network. - /// - TARGETING_EXPRESSION_LIMIT_FOR_LINE_ITEM_REACHED = 3, - /// The size of a single targeting expression tree exceeds the max size allowed by - /// the network. - /// - TARGETING_EXPRESSION_SIZE_LIMIT_REACHED = 17, - /// The number of custom targeting values for the free-form or predefined custom - /// targeting key exceeds the max number allowed. - /// - CUSTOM_TARGETING_VALUES_FOR_KEY_LIMIT_REACHED = 13, - /// The total number of targeting expressions on the creatives for the line item - /// exceeds the max number allowed per line item in the network. - /// - TARGETING_EXPRESSION_LIMIT_FOR_CREATIVES_ON_LINE_ITEM_REACHED = 14, - /// The number of attachments added to the proposal exceeds the max number allowed - /// per proposal in the network. - /// - ATTACHMENT_LIMIT_FOR_PROPOSAL_REACHED = 5, - /// The number of proposal line items on the proposal exceeds the max number allowed - /// per proposal in the network. - /// - PROPOSAL_LINE_ITEM_LIMIT_FOR_PROPOSAL_REACHED = 6, - /// The number of product package items on the product package exceeds the max - /// number allowed per product package in the network. - /// - PRODUCT_LIMIT_FOR_PRODUCT_PACKAGE_REACHED = 7, - /// The number of product template and product base rates on the rate card - /// (including excluded product base rates) exceeds the max number allowed per rate - /// card in the network. - /// - PRODUCT_TEMPLATE_AND_PRODUCT_BASE_RATE_LIMIT_FOR_RATE_CARD_REACHED = 8, - /// The number of product package item base rates on the rate card exceeds the max - /// number allowed per rate card in the network. - /// - PRODUCT_PACKAGE_ITEM_BASE_RATE_LIMIT_FOR_RATE_CARD_REACHED = 9, - /// The number of premiums of the rate card exceeds the max number allowed per rate - /// card in the network. - /// - PREMIUM_LIMIT_FOR_RATE_CARD_REACHED = 10, - /// The number of ad units on AdExclusionRule#inventoryTargeting - /// exceeds the max number of ad units allowed per ad exclusion rule inventory - /// targeting in the network. - /// - AD_UNIT_LIMIT_FOR_AD_EXCLUSION_RULE_TARGETING_REACHED = 11, - /// The number of native styles under the native creative template exceeds the max - /// number of native styles allowed per native creative template in the network. + /// The unique ID of the targeting criteria. /// - NATIVE_STYLE_LIMIT_FOR_NATIVE_AD_FORMAT_REACHED = 15, - /// The number of targeting expressions on the native style exceeds the max number - /// of targeting expressions allowed per native style in the network. + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public long targetingCriteriaId { + get { + return this.targetingCriteriaIdField; + } + set { + this.targetingCriteriaIdField = value; + this.targetingCriteriaIdSpecified = true; + } + } + + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool targetingCriteriaIdSpecified { + get { + return this.targetingCriteriaIdFieldSpecified; + } + set { + this.targetingCriteriaIdFieldSpecified = value; + } + } + + /// The name of the targeting criteria. /// - TARGETING_EXPRESSION_LIMIT_FOR_PRESENTATION_ASSIGNMENT_REACHED = 16, - /// The value returned if the actual value is not exposed by the requested API - /// version. + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public string targetingCriteriaName { + get { + return this.targetingCriteriaNameField; + } + set { + this.targetingCriteriaNameField = value; + } + } + + /// When true, the breakdown is negative. /// - UNKNOWN = 12, - } + [System.Xml.Serialization.XmlElementAttribute(Order = 3)] + public bool excluded { + get { + return this.excludedField; + } + set { + this.excludedField = value; + this.excludedSpecified = true; + } + } + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool excludedSpecified { + get { + return this.excludedFieldSpecified; + } + set { + this.excludedFieldSpecified = value; + } + } - /// Lists all errors related to CustomTargetingKey - /// and CustomTargetingValue objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class CustomTargetingError : ApiError { - private CustomTargetingErrorReason reasonField; + /// The available units for this breakdown. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 4)] + public long availableUnits { + get { + return this.availableUnitsField; + } + set { + this.availableUnitsField = value; + this.availableUnitsSpecified = true; + } + } - private bool reasonFieldSpecified; + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool availableUnitsSpecified { + get { + return this.availableUnitsFieldSpecified; + } + set { + this.availableUnitsFieldSpecified = value; + } + } - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public CustomTargetingErrorReason reason { + /// The matched units for this breakdown. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 5)] + public long matchedUnits { get { - return this.reasonField; + return this.matchedUnitsField; } set { - this.reasonField = value; - this.reasonSpecified = true; + this.matchedUnitsField = value; + this.matchedUnitsSpecified = true; } } - /// true, if a value is specified for , - /// false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { + public bool matchedUnitsSpecified { get { - return this.reasonFieldSpecified; + return this.matchedUnitsFieldSpecified; } set { - this.reasonFieldSpecified = value; + this.matchedUnitsFieldSpecified = value; } } } - /// The reasons for the target error. + /// Targeting dimension of targeting breakdowns. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CustomTargetingError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum CustomTargetingErrorReason { - /// Requested CustomTargetingKey is not found. - /// - KEY_NOT_FOUND = 0, - /// Number of CustomTargetingKey objects created - /// exceeds the limit allowed for the network. - /// - KEY_COUNT_TOO_LARGE = 1, - /// CustomTargetingKey with the same CustomTargetingKey#name already exists. - /// - KEY_NAME_DUPLICATE = 2, - /// CustomTargetingKey#name is empty. - /// - KEY_NAME_EMPTY = 3, - /// CustomTargetingKey#name is too long. - /// - KEY_NAME_INVALID_LENGTH = 4, - /// CustomTargetingKey#name contains - /// unsupported or reserved characters. - /// - KEY_NAME_INVALID_CHARS = 5, - /// CustomTargetingKey#name matches one of the - /// reserved custom targeting key names. - /// - KEY_NAME_RESERVED = 6, - /// CustomTargetingKey#displayName is - /// too long. - /// - KEY_DISPLAY_NAME_INVALID_LENGTH = 7, - /// Key is not active. - /// - KEY_STATUS_NOT_ACTIVE = 37, - /// Requested CustomTargetingValue is not found. - /// - VALUE_NOT_FOUND = 8, - /// The WHERE clause in the Statement#query must always contain CustomTargetingValue#customTargetingKeyId - /// as one of its columns in a way that it is AND'ed with the rest of the query. - /// - GET_VALUES_BY_STATEMENT_MUST_CONTAIN_KEY_ID = 9, - /// The number of CustomTargetingValue objects - /// associated with a CustomTargetingKey exceeds - /// the network limit. This is only applicable for keys of type . - /// - VALUE_COUNT_FOR_KEY_TOO_LARGE = 10, - /// CustomTargetingValue with the same CustomTargetingValue#name already exists. - /// - VALUE_NAME_DUPLICATE = 11, - /// CustomTargetingValue#name is empty. - /// - VALUE_NAME_EMPTY = 12, - /// CustomTargetingValue#name is too long. - /// - VALUE_NAME_INVALID_LENGTH = 13, - /// CustomTargetingValue#name contains - /// unsupported or reserved characters. - /// - VALUE_NAME_INVALID_CHARS = 14, - /// CustomTargetingValue#displayName - /// is too long. - /// - VALUE_DISPLAY_NAME_INVALID_LENGTH = 15, - /// Only Ad Manager 360 networks can have CustomTargetingValue#matchType other - /// than CustomTargetingValue.MatchType#EXACT. - /// - VALUE_MATCH_TYPE_NOT_ALLOWED = 16, - /// You can only create CustomTargetingValue - /// objects with match type CustomTargetingValue.MatchType#EXACT - /// when associating with CustomTargetingKey - /// objects of type CustomTargetingKey.Type#PREDEFINED - /// - VALUE_MATCH_TYPE_NOT_EXACT_FOR_PREDEFINED_KEY = 17, - /// CustomTargetingValue object cannot have match - /// type of CustomTargetingValue.MatchType#SUFFIX - /// when adding a CustomTargetingValue to a line - /// item. - /// - SUFFIX_MATCH_TYPE_NOT_ALLOWED = 18, - /// CustomTargetingValue object cannot have match - /// type of CustomTargetingValue.MatchType#CONTAINS - /// when adding a CustomTargetingValue to - /// targeting expression of a line item. - /// - CONTAINS_MATCH_TYPE_NOT_ALLOWED = 19, - /// Value is not active. - /// - VALUE_STATUS_NOT_ACTIVE = 38, - /// The CustomTargetingKey does not have any CustomTargetingValue associated with it. - /// - KEY_WITH_MISSING_VALUES = 20, - /// The CustomTargetingKey has a CustomTargetingValue specified for which the - /// value is not a valid child. - /// - INVALID_VALUE_FOR_KEY = 35, - /// CustomCriteriaSet.LogicalOperator#OR - /// operation cannot be applied to values with different keys. - /// - CANNOT_OR_DIFFERENT_KEYS = 21, - /// Targeting expression is invalid. This can happen if the sequence of operators is - /// wrong, or a node contains invalid number of children. - /// - INVALID_TARGETING_EXPRESSION = 22, - /// The key has been deleted. CustomCriteria cannot - /// have deleted keys. - /// - DELETED_KEY_CANNOT_BE_USED_FOR_TARGETING = 23, - /// The value has been deleted. CustomCriteria cannot - /// have deleted values. - /// - DELETED_VALUE_CANNOT_BE_USED_FOR_TARGETING = 24, - /// The key is set as the video browse-by key, which cannot be used for custom - /// targeting. - /// - VIDEO_BROWSE_BY_KEY_CANNOT_BE_USED_FOR_CUSTOM_TARGETING = 25, - /// Only active custom-criteria keys are supported in content metadata mapping. - /// - CANNOT_DELETE_CUSTOM_KEY_USED_IN_CONTENT_METADATA_MAPPING = 31, - /// Only active custom-criteria values are supported in content metadata mapping. - /// - CANNOT_DELETE_CUSTOM_VALUE_USED_IN_CONTENT_METADATA_MAPPING = 32, - /// Cannot delete a custom criteria key that is targeted by an active partner - /// assignment. - /// - CANNOT_DELETE_CUSTOM_KEY_USED_IN_PARTNER_ASSIGNMENT_TARGETING = 33, - /// Cannot delete a custom criteria value that is targeted by an active partner - /// assignment. - /// - CANNOT_DELETE_CUSTOM_VALUE_USED_IN_PARTNER_ASSIGNMENT_TARGETING = 34, - /// AudienceSegment object cannot be targeted. - /// - CANNOT_TARGET_AUDIENCE_SEGMENT = 26, - /// Third party AudienceSegment cannot be targeted. - /// - CANNOT_TARGET_THIRD_PARTY_AUDIENCE_SEGMENT = 39, - /// Inactive AudienceSegment object cannot be - /// targeted. - /// - CANNOT_TARGET_INACTIVE_AUDIENCE_SEGMENT = 27, - /// Targeted AudienceSegment object is not valid. - /// - INVALID_AUDIENCE_SEGMENTS = 28, - /// Mapped metadata key-values are deprecated and cannot be targeted. - /// - CANNOT_TARGET_MAPPED_METADATA = 36, - /// Targeted AudienceSegment objects have not been - /// approved. - /// - ONLY_APPROVED_AUDIENCE_SEGMENTS_CAN_BE_TARGETED = 29, + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum TargetingDimension { + CUSTOM_CRITERIA = 0, + GEOGRAPHY = 1, + BROWSER = 2, + BROWSER_LANGUAGE = 3, + BANDWIDTH_GROUP = 4, + OPERATING_SYSTEM = 5, + USER_DOMAIN = 6, + CONTENT = 7, + VIDEO_POSITION = 8, + AD_SIZE = 9, + AD_UNIT = 10, + PLACEMENT = 11, + MOBILE_CARRIER = 12, + DEVICE_CAPABILITY = 13, + DEVICE_CATEGORY = 14, + DEVICE_MANUFACTURER = 15, + MOBILE_APPLICATION = 17, + FORECASTED_CREATIVE_RESTRICTION = 18, + VERTICAL = 19, + CONTENT_LABEL = 20, /// The value returned if the actual value is not exposed by the requested API /// version. /// - UNKNOWN = 30, - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", ConfigurationName = "Google.Api.Ads.AdManager.v202311.CustomTargetingServiceInterface")] - public interface CustomTargetingServiceInterface - { - // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Wrappers.CustomTargetingService.createCustomTargetingKeysResponse createCustomTargetingKeys(Wrappers.CustomTargetingService.createCustomTargetingKeysRequest request); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task createCustomTargetingKeysAsync(Wrappers.CustomTargetingService.createCustomTargetingKeysRequest request); - - // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Wrappers.CustomTargetingService.createCustomTargetingValuesResponse createCustomTargetingValues(Wrappers.CustomTargetingService.createCustomTargetingValuesRequest request); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task createCustomTargetingValuesAsync(Wrappers.CustomTargetingService.createCustomTargetingValuesRequest request); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v202311.CustomTargetingKeyPage getCustomTargetingKeysByStatement(Google.Api.Ads.AdManager.v202311.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getCustomTargetingKeysByStatementAsync(Google.Api.Ads.AdManager.v202311.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v202311.CustomTargetingValuePage getCustomTargetingValuesByStatement(Google.Api.Ads.AdManager.v202311.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getCustomTargetingValuesByStatementAsync(Google.Api.Ads.AdManager.v202311.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v202311.UpdateResult performCustomTargetingKeyAction(Google.Api.Ads.AdManager.v202311.CustomTargetingKeyAction customTargetingKeyAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task performCustomTargetingKeyActionAsync(Google.Api.Ads.AdManager.v202311.CustomTargetingKeyAction customTargetingKeyAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v202311.UpdateResult performCustomTargetingValueAction(Google.Api.Ads.AdManager.v202311.CustomTargetingValueAction customTargetingValueAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task performCustomTargetingValueActionAsync(Google.Api.Ads.AdManager.v202311.CustomTargetingValueAction customTargetingValueAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement); - - // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Wrappers.CustomTargetingService.updateCustomTargetingKeysResponse updateCustomTargetingKeys(Wrappers.CustomTargetingService.updateCustomTargetingKeysRequest request); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task updateCustomTargetingKeysAsync(Wrappers.CustomTargetingService.updateCustomTargetingKeysRequest request); - - // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Wrappers.CustomTargetingService.updateCustomTargetingValuesResponse updateCustomTargetingValues(Wrappers.CustomTargetingService.updateCustomTargetingValuesRequest request); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task updateCustomTargetingValuesAsync(Wrappers.CustomTargetingService.updateCustomTargetingValuesRequest request); + UNKNOWN = 16, } - /// CustomTargetingValue represents a value used for custom targeting. + /// Represents a single delivery data point, with both available and forecast + /// number. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class CustomTargetingValue { - private long customTargetingKeyIdField; - - private bool customTargetingKeyIdFieldSpecified; - - private long idField; - - private bool idFieldSpecified; - - private string nameField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class BreakdownForecast { + private long matchedField; - private string displayNameField; + private bool matchedFieldSpecified; - private CustomTargetingValueMatchType matchTypeField; + private long availableField; - private bool matchTypeFieldSpecified; + private bool availableFieldSpecified; - private CustomTargetingValueStatus statusField; + private long possibleField; - private bool statusFieldSpecified; + private bool possibleFieldSpecified; - /// The ID of the CustomTargetingKey for which this is the value. - /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public long customTargetingKeyId { + public long matched { get { - return this.customTargetingKeyIdField; + return this.matchedField; } set { - this.customTargetingKeyIdField = value; - this.customTargetingKeyIdSpecified = true; + this.matchedField = value; + this.matchedSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , + /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool customTargetingKeyIdSpecified { + public bool matchedSpecified { get { - return this.customTargetingKeyIdFieldSpecified; + return this.matchedFieldSpecified; } set { - this.customTargetingKeyIdFieldSpecified = value; + this.matchedFieldSpecified = value; } } - /// The ID of the CustomTargetingValue. This value is readonly and is - /// populated by Google. - /// [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public long id { + public long available { get { - return this.idField; + return this.availableField; } set { - this.idField = value; - this.idSpecified = true; + this.availableField = value; + this.availableSpecified = true; } } - /// true, if a value is specified for , - /// false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool idSpecified { + public bool availableSpecified { get { - return this.idFieldSpecified; + return this.availableFieldSpecified; } set { - this.idFieldSpecified = value; + this.availableFieldSpecified = value; } } - /// Name of the value. This can be used for encoding . If you don't want users to be - /// able to see potentially sensitive targeting information in the ad tags of your - /// site, you can encode your key/values. For example, you can create key/value - /// g1=abc to represent gender=female. Values can contain up to 40 characters each. - /// You can use alphanumeric characters and symbols other than the following: ", ', - /// =, !, +, #, *, ~, ;, ^, (, ), <, >, [, ]. Values are not data-specific; - /// all values are treated as string. For example, instead of using "age>=18 AND - /// <=34", try "18-34" - /// [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public string name { - get { - return this.nameField; - } - set { - this.nameField = value; - } - } - - /// Descriptive name for the value. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public string displayName { - get { - return this.displayNameField; - } - set { - this.displayNameField = value; - } - } - - /// The way in which the CustomTargetingValue#name strings will be - /// matched. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public CustomTargetingValueMatchType matchType { + public long possible { get { - return this.matchTypeField; + return this.possibleField; } set { - this.matchTypeField = value; - this.matchTypeSpecified = true; + this.possibleField = value; + this.possibleSpecified = true; } } - /// true, if a value is specified for true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool matchTypeSpecified { + public bool possibleSpecified { get { - return this.matchTypeFieldSpecified; + return this.possibleFieldSpecified; } set { - this.matchTypeFieldSpecified = value; + this.possibleFieldSpecified = value; } } + } - /// Status of the CustomTargetingValue. This field is read-only. A - /// value can be activated and deactivated by calling CustomTargetingService#performCustomTargetingValueAction. + + /// A single forecast breakdown entry. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ForecastBreakdownEntry { + private string nameField; + + private BreakdownForecast forecastField; + + /// The optional name of this entry, as specified in the corresponding ForecastBreakdownTarget#name field. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 5)] - public CustomTargetingValueStatus status { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public string name { get { - return this.statusField; + return this.nameField; } set { - this.statusField = value; - this.statusSpecified = true; + this.nameField = value; } } - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool statusSpecified { + /// The forecast of this entry. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public BreakdownForecast forecast { get { - return this.statusFieldSpecified; + return this.forecastField; } set { - this.statusFieldSpecified = value; + this.forecastField = value; } } } - /// Represents the ways in which CustomTargetingValue#name strings will be - /// matched with ad requests. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CustomTargetingValue.MatchType", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum CustomTargetingValueMatchType { - /// Used for exact matching. For example, the targeting value will - /// only match to the ad request car=honda. - /// - EXACT = 0, - /// Used for lenient matching when at least one of the words in the ad request - /// matches the targeted value. The targeting value will match to ad - /// requests containing the word . So ad requests - /// car=honda or car=honda civic or car=buy - /// honda or car=how much does a honda cost will all have the - /// line item delivered.

This match type can not be used within an audience - /// segment rule.

- ///
- BROAD = 1, - /// Used for 'starts with' matching when the first few characters in the ad request - /// match all of the characters in the targeted value. The targeting value - /// car=honda will match to ad requests car=honda or - /// car=hondas for sale but not to want a honda. - /// - PREFIX = 2, - /// This is a combination of MatchType#BROAD and - /// matching. The targeting value car=honda will match to ad requests - /// that contain words that start with the characters in the targeted value, for - /// example with car=civic hondas.

This match type can not be used - /// within an audience segment rule.

- ///
- BROAD_PREFIX = 3, - /// Used for 'ends with' matching when the last characters in the ad request match - /// all of the characters in the targeted value. The targeting value - /// car=honda will match with ad requests car=honda or - /// car=I want a honda but not to for sale.

This match - /// type can not be used within line item targeting.

- ///
- SUFFIX = 4, - /// Used for 'within' matching when the string in the ad request contains the string - /// in the targeted value. The targeting value car=honda will match - /// with ad requests car=honda, car=I want a honda, and - /// also with car=hondas for sale, but not with car=misspelled - /// hond a.

This match type can not be used within line item - /// targeting.

- ///
- CONTAINS = 5, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 6, - } - - - /// Describes the statuses for CustomTargetingValue objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CustomTargetingValue.Status", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum CustomTargetingValueStatus { - /// The object is active. - /// - ACTIVE = 0, - /// The object is no longer active. - /// - INACTIVE = 1, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 2, - } - - - /// Captures a page of CustomTargetingKey objects. + /// Represents the breakdown entries for a list of targetings and/or creatives. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class CustomTargetingKeyPage { - private int totalResultSetSizeField; - - private bool totalResultSetSizeFieldSpecified; - - private int startIndexField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ForecastBreakdown { + private DateTime startTimeField; - private bool startIndexFieldSpecified; + private DateTime endTimeField; - private CustomTargetingKey[] resultsField; + private ForecastBreakdownEntry[] breakdownEntriesField; - /// The size of the total result set to which this page belongs. + /// The starting time of the represented breakdown. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public int totalResultSetSize { + public DateTime startTime { get { - return this.totalResultSetSizeField; + return this.startTimeField; } set { - this.totalResultSetSizeField = value; - this.totalResultSetSizeSpecified = true; + this.startTimeField = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool totalResultSetSizeSpecified { + /// The end time of the represented breakdown. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public DateTime endTime { get { - return this.totalResultSetSizeFieldSpecified; + return this.endTimeField; } set { - this.totalResultSetSizeFieldSpecified = value; + this.endTimeField = value; } } - /// The absolute index in the total result set on which this page begins. + /// The forecast breakdown entries in the same order as in the ForecastBreakdownOptions#targets field. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public int startIndex { + [System.Xml.Serialization.XmlElementAttribute("breakdownEntries", Order = 2)] + public ForecastBreakdownEntry[] breakdownEntries { get { - return this.startIndexField; + return this.breakdownEntriesField; } set { - this.startIndexField = value; - this.startIndexSpecified = true; + this.breakdownEntriesField = value; } } + } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool startIndexSpecified { - get { - return this.startIndexFieldSpecified; - } + + /// Describes predicted inventory availability for a ProspectiveLineItem.

Inventory has three + /// threshold values along a line of possible inventory. From least to most, these + /// are:

  • Available units -- How many units can be booked without + /// affecting any other line items. Booking more than this number can cause lower + /// and same priority line items to underdeliver.
  • Possible units -- How + /// many units can be booked without affecting any higher priority line items. + /// Booking more than this number can cause the line item to underdeliver.
  • + ///
  • Matched (forecast) units -- How many units satisfy all specified + /// criteria.

Underdelivery is caused by overbooking. However, if more + /// impressions are served than are predicted, the extra available inventory might + /// enable all inventory guarantees to be met without overbooking.

+ ///
+ [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class AvailabilityForecast { + private long lineItemIdField; + + private bool lineItemIdFieldSpecified; + + private long orderIdField; + + private bool orderIdFieldSpecified; + + private UnitType unitTypeField; + + private bool unitTypeFieldSpecified; + + private long availableUnitsField; + + private bool availableUnitsFieldSpecified; + + private long deliveredUnitsField; + + private bool deliveredUnitsFieldSpecified; + + private long matchedUnitsField; + + private bool matchedUnitsFieldSpecified; + + private long possibleUnitsField; + + private bool possibleUnitsFieldSpecified; + + private long reservedUnitsField; + + private bool reservedUnitsFieldSpecified; + + private ForecastBreakdown[] breakdownsField; + + private TargetingCriteriaBreakdown[] targetingCriteriaBreakdownsField; + + private ContendingLineItem[] contendingLineItemsField; + + private AlternativeUnitTypeForecast[] alternativeUnitTypeForecastsField; + + /// Uniquely identifies this availability forecast. This value is read-only and is + /// assigned by Google when the forecast is created. The attribute will be either + /// the ID of the LineItem object it represents, or null + /// if the forecast represents a prospective line item. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public long lineItemId { + get { + return this.lineItemIdField; + } set { - this.startIndexFieldSpecified = value; + this.lineItemIdField = value; + this.lineItemIdSpecified = true; } } - /// The collection of custom targeting keys contained within this page. + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool lineItemIdSpecified { + get { + return this.lineItemIdFieldSpecified; + } + set { + this.lineItemIdFieldSpecified = value; + } + } + + /// The unique ID for the Order object that this line item + /// belongs to, or null if the forecast represents a prospective line + /// item without an LineItem#orderId set. /// - [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] - public CustomTargetingKey[] results { + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public long orderId { get { - return this.resultsField; + return this.orderIdField; } set { - this.resultsField = value; + this.orderIdField = value; + this.orderIdSpecified = true; } } - } + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool orderIdSpecified { + get { + return this.orderIdFieldSpecified; + } + set { + this.orderIdFieldSpecified = value; + } + } - /// Captures a page of CustomTargetingValue - /// objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class CustomTargetingValuePage { - private int totalResultSetSizeField; + /// The unit with which the goal or cap of the LineItem is + /// defined. Will be the same value as Goal#unitType for + /// both a set line item or a prospective one. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public UnitType unitType { + get { + return this.unitTypeField; + } + set { + this.unitTypeField = value; + this.unitTypeSpecified = true; + } + } - private bool totalResultSetSizeFieldSpecified; + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool unitTypeSpecified { + get { + return this.unitTypeFieldSpecified; + } + set { + this.unitTypeFieldSpecified = value; + } + } - private int startIndexField; + /// The number of units, defined by Goal#unitType, that + /// can be booked without affecting the delivery of any reserved line items. + /// Exceeding this value will not cause an overbook, but lower priority line items + /// may not run. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 3)] + public long availableUnits { + get { + return this.availableUnitsField; + } + set { + this.availableUnitsField = value; + this.availableUnitsSpecified = true; + } + } - private bool startIndexFieldSpecified; + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool availableUnitsSpecified { + get { + return this.availableUnitsFieldSpecified; + } + set { + this.availableUnitsFieldSpecified = value; + } + } - private CustomTargetingValue[] resultsField; + /// The number of units, defined by Goal#unitType, that + /// have already been served if the reservation is already running. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 4)] + public long deliveredUnits { + get { + return this.deliveredUnitsField; + } + set { + this.deliveredUnitsField = value; + this.deliveredUnitsSpecified = true; + } + } - /// The size of the total result set to which this page belongs. + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool deliveredUnitsSpecified { + get { + return this.deliveredUnitsFieldSpecified; + } + set { + this.deliveredUnitsFieldSpecified = value; + } + } + + /// The number of units, defined by Goal#unitType, that + /// match the specified targeting and delivery settings. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public int totalResultSetSize { + [System.Xml.Serialization.XmlElementAttribute(Order = 5)] + public long matchedUnits { get { - return this.totalResultSetSizeField; + return this.matchedUnitsField; } set { - this.totalResultSetSizeField = value; - this.totalResultSetSizeSpecified = true; + this.matchedUnitsField = value; + this.matchedUnitsSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="matchedUnits" />, false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool totalResultSetSizeSpecified { + public bool matchedUnitsSpecified { get { - return this.totalResultSetSizeFieldSpecified; + return this.matchedUnitsFieldSpecified; } set { - this.totalResultSetSizeFieldSpecified = value; + this.matchedUnitsFieldSpecified = value; } } - /// The absolute index in the total result set on which this page begins. + /// The maximum number of units, defined by Goal#unitType, that could be booked by taking inventory + /// away from lower priority line items and some same priority line items.

Please + /// note: booking this number may cause lower priority line items and some same + /// priority line items to underdeliver.

///
- [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public int startIndex { + [System.Xml.Serialization.XmlElementAttribute(Order = 6)] + public long possibleUnits { get { - return this.startIndexField; + return this.possibleUnitsField; } set { - this.startIndexField = value; - this.startIndexSpecified = true; + this.possibleUnitsField = value; + this.possibleUnitsSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool startIndexSpecified { + public bool possibleUnitsSpecified { get { - return this.startIndexFieldSpecified; + return this.possibleUnitsFieldSpecified; } set { - this.startIndexFieldSpecified = value; + this.possibleUnitsFieldSpecified = value; } } - /// The collection of custom targeting keys contained within this page. + /// The number of reserved units, defined by Goal#unitType, requested. This can be an absolute or + /// percentage value. /// - [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] - public CustomTargetingValue[] results { + [System.Xml.Serialization.XmlElementAttribute(Order = 7)] + public long reservedUnits { get { - return this.resultsField; + return this.reservedUnitsField; } set { - this.resultsField = value; + this.reservedUnitsField = value; + this.reservedUnitsSpecified = true; } } - } + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool reservedUnitsSpecified { + get { + return this.reservedUnitsFieldSpecified; + } + set { + this.reservedUnitsFieldSpecified = value; + } + } - /// Represents the actions that can be performed on CustomTargetingKey objects. - /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(DeleteCustomTargetingKeys))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ActivateCustomTargetingKeys))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public abstract partial class CustomTargetingKeyAction { - } + /// The breakdowns for each time window defined in ForecastBreakdownOptions#timeWindows. + ///

If no breakdown was requested through AvailabilityForecastOptions#breakdown, + /// this field will be empty. If targeting breakdown was requested by ForecastBreakdownOptions#targets + /// with no time breakdown, this list will contain a single ForecastBreakdown corresponding to the time window + /// of the forecasted LineItem. Otherwise, each time window + /// defined by ForecastBreakdownOptions#timeWindows + /// will correspond to one ForecastBreakdown in the + /// same order. Targeting breakdowns for every time window are returned in ForecastBreakdown#breakdownEntries. + /// Some examples: For a targeting breakdown in the form of {IU=B, + /// creative=1x1]}}, the #breakdowns field may look + /// like: [ForecastBreakdown{breakdownEntries=[availableUnits=10, + /// availableUnits=20]]} where the entries correspond to } and + /// {IU=B, creative=1x1} respectively. For a time breakdown in the form + /// of 2am, 3am]}, the field may look like:

+		///  [ ForecastBreakdown{startTime=1am, endTime=2am,
+		/// breakdownEntries=[availableUnits=10], ForecastBreakdown{startTime=2am,
+		/// endTime=3am, breakdownEntries=[availableUnits=20]} ] } 
where the two #ForecastBreakdown correspond to the [1am, 2am) + /// and [2am, 3am) time windows respecively. For a two-dimensional breakdown in the + /// form of 2am, 3am], targets=[IU=A, IU=B], the + /// breakdowns field may look like:
  [
+		/// ForecastBreakdown{startTime=1am, endTime=2am,
+		/// breakdownEntries=[availableUnits=10, availableUnits=100],
+		/// ForecastBreakdown{startTime=2am, endTime=3am,
+		/// breakdownEntries=[availableUnits=20, availableUnits=200]} ] } 
where the + /// first ForecastBreakdown respresents the [1am, 2am) time window with two entries + /// for the IU A and IU B respectively; and the second ForecastBreakdown represents + /// the [2am, 3am) time window also with two entries corresponding to the two IUs. + ///
+ [System.Xml.Serialization.XmlElementAttribute("breakdowns", Order = 8)] + public ForecastBreakdown[] breakdowns { + get { + return this.breakdownsField; + } + set { + this.breakdownsField = value; + } + } + /// The forecast result broken down by the targeting of the forecasted line item. + /// + [System.Xml.Serialization.XmlElementAttribute("targetingCriteriaBreakdowns", Order = 9)] + public TargetingCriteriaBreakdown[] targetingCriteriaBreakdowns { + get { + return this.targetingCriteriaBreakdownsField; + } + set { + this.targetingCriteriaBreakdownsField = value; + } + } - /// Represents the delete action that can be performed on CustomTargetingKey objects. Deleting a key will - /// not delete the CustomTargetingValue objects - /// associated with it. Also, if a custom targeting key that has been deleted is - /// recreated, any previous custom targeting values associated with it that were not - /// deleted will continue to exist. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class DeleteCustomTargetingKeys : CustomTargetingKeyAction { + /// List of contending line items for this + /// forecast. + /// + [System.Xml.Serialization.XmlElementAttribute("contendingLineItems", Order = 10)] + public ContendingLineItem[] contendingLineItems { + get { + return this.contendingLineItemsField; + } + set { + this.contendingLineItemsField = value; + } + } + + /// Views of this forecast, with alternative unit types. + /// + [System.Xml.Serialization.XmlElementAttribute("alternativeUnitTypeForecasts", Order = 11)] + public AlternativeUnitTypeForecast[] alternativeUnitTypeForecasts { + get { + return this.alternativeUnitTypeForecastsField; + } + set { + this.alternativeUnitTypeForecastsField = value; + } + } } - /// The action used for activating inactive (i.e. deleted) CustomTargetingKey objects. + /// Specifies inventory targeted by a breakdown entry. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ActivateCustomTargetingKeys : CustomTargetingKeyAction { - } + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ForecastBreakdownTarget { + private string nameField; + private Targeting targetingField; - /// Represents the actions that can be performed on CustomTargetingValue objects. - /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(DeleteCustomTargetingValues))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ActivateCustomTargetingValues))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public abstract partial class CustomTargetingValueAction { - } + private CreativePlaceholder creativeField; + /// An optional name for this breakdown target, to be populated in the corresponding + /// ForecastBreakdownEntry#name field. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public string name { + get { + return this.nameField; + } + set { + this.nameField = value; + } + } - /// Represents the delete action that can be performed on CustomTargetingValue objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class DeleteCustomTargetingValues : CustomTargetingValueAction { + /// If specified, the targeting for this breakdown. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public Targeting targeting { + get { + return this.targetingField; + } + set { + this.targetingField = value; + } + } + + /// If specified, restrict the breakdown to only inventory matching this creative. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public CreativePlaceholder creative { + get { + return this.creativeField; + } + set { + this.creativeField = value; + } + } } - /// The action used for activating inactive (i.e. deleted) CustomTargetingValue objects. + /// A CreativePlaceholder describes a slot that a creative is expected + /// to fill. This is used primarily to help in forecasting, and also to validate + /// that the correct creatives are associated with the line item. A + /// CreativePlaceholder must contain a size, and it can optionally + /// contain companions. Companions are only valid if the line item's environment + /// type is EnvironmentType#VIDEO_PLAYER. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ActivateCustomTargetingValues : CustomTargetingValueAction { - } + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class CreativePlaceholder { + private Size sizeField; + private long creativeTemplateIdField; - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public interface CustomTargetingServiceInterfaceChannel : Google.Api.Ads.AdManager.v202311.CustomTargetingServiceInterface, System.ServiceModel.IClientChannel - { - } + private bool creativeTemplateIdFieldSpecified; + private CreativePlaceholder[] companionsField; - /// Provides operations for creating, updating and retrieving CustomTargetingKey and CustomTargetingValue objects. - /// - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public partial class CustomTargetingService : AdManagerSoapClient, ICustomTargetingService { - /// Creates a new instance of the - /// class. - public CustomTargetingService() { - } + private AppliedLabel[] appliedLabelsField; - /// Creates a new instance of the - /// class. - public CustomTargetingService(string endpointConfigurationName) - : base(endpointConfigurationName) { - } + private AppliedLabel[] effectiveAppliedLabelsField; - /// Creates a new instance of the - /// class. - public CustomTargetingService(string endpointConfigurationName, string remoteAddress) - : base(endpointConfigurationName, remoteAddress) { - } + private int expectedCreativeCountField; - /// Creates a new instance of the - /// class. - public CustomTargetingService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) - : base(endpointConfigurationName, remoteAddress) { - } + private bool expectedCreativeCountFieldSpecified; - /// Creates a new instance of the - /// class. - public CustomTargetingService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) - : base(binding, remoteAddress) { - } + private CreativeSizeType creativeSizeTypeField; - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.CustomTargetingService.createCustomTargetingKeysResponse Google.Api.Ads.AdManager.v202311.CustomTargetingServiceInterface.createCustomTargetingKeys(Wrappers.CustomTargetingService.createCustomTargetingKeysRequest request) { - return base.Channel.createCustomTargetingKeys(request); - } + private bool creativeSizeTypeFieldSpecified; - /// Creates new CustomTargetingKey objects.

The - /// following fields are required:

- ///
- public virtual Google.Api.Ads.AdManager.v202311.CustomTargetingKey[] createCustomTargetingKeys(Google.Api.Ads.AdManager.v202311.CustomTargetingKey[] keys) { - Wrappers.CustomTargetingService.createCustomTargetingKeysRequest inValue = new Wrappers.CustomTargetingService.createCustomTargetingKeysRequest(); - inValue.keys = keys; - Wrappers.CustomTargetingService.createCustomTargetingKeysResponse retVal = ((Google.Api.Ads.AdManager.v202311.CustomTargetingServiceInterface)(this)).createCustomTargetingKeys(inValue); - return retVal.rval; - } + private string targetingNameField; - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202311.CustomTargetingServiceInterface.createCustomTargetingKeysAsync(Wrappers.CustomTargetingService.createCustomTargetingKeysRequest request) { - return base.Channel.createCustomTargetingKeysAsync(request); - } - - public virtual System.Threading.Tasks.Task createCustomTargetingKeysAsync(Google.Api.Ads.AdManager.v202311.CustomTargetingKey[] keys) { - Wrappers.CustomTargetingService.createCustomTargetingKeysRequest inValue = new Wrappers.CustomTargetingService.createCustomTargetingKeysRequest(); - inValue.keys = keys; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202311.CustomTargetingServiceInterface)(this)).createCustomTargetingKeysAsync(inValue)).Result.rval); - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.CustomTargetingService.createCustomTargetingValuesResponse Google.Api.Ads.AdManager.v202311.CustomTargetingServiceInterface.createCustomTargetingValues(Wrappers.CustomTargetingService.createCustomTargetingValuesRequest request) { - return base.Channel.createCustomTargetingValues(request); - } - - /// Creates new CustomTargetingValue objects. - ///

The following fields are required:

- ///
- public virtual Google.Api.Ads.AdManager.v202311.CustomTargetingValue[] createCustomTargetingValues(Google.Api.Ads.AdManager.v202311.CustomTargetingValue[] values) { - Wrappers.CustomTargetingService.createCustomTargetingValuesRequest inValue = new Wrappers.CustomTargetingService.createCustomTargetingValuesRequest(); - inValue.values = values; - Wrappers.CustomTargetingService.createCustomTargetingValuesResponse retVal = ((Google.Api.Ads.AdManager.v202311.CustomTargetingServiceInterface)(this)).createCustomTargetingValues(inValue); - return retVal.rval; - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202311.CustomTargetingServiceInterface.createCustomTargetingValuesAsync(Wrappers.CustomTargetingService.createCustomTargetingValuesRequest request) { - return base.Channel.createCustomTargetingValuesAsync(request); - } - - public virtual System.Threading.Tasks.Task createCustomTargetingValuesAsync(Google.Api.Ads.AdManager.v202311.CustomTargetingValue[] values) { - Wrappers.CustomTargetingService.createCustomTargetingValuesRequest inValue = new Wrappers.CustomTargetingService.createCustomTargetingValuesRequest(); - inValue.values = values; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202311.CustomTargetingServiceInterface)(this)).createCustomTargetingValuesAsync(inValue)).Result.rval); - } - - /// Gets a CustomTargetingKeyPage of CustomTargetingKey objects that satisfy the given - /// Statement#query. The following fields are - /// supported for filtering: - /// - /// - /// - ///
PQL Property Object Property
id CustomTargetingKey#id
name CustomTargetingKey#name
displayName CustomTargetingKey#displayName
type CustomTargetingKey#type
- ///
- public virtual Google.Api.Ads.AdManager.v202311.CustomTargetingKeyPage getCustomTargetingKeysByStatement(Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.getCustomTargetingKeysByStatement(filterStatement); - } + private bool isAmpOnlyField; - public virtual System.Threading.Tasks.Task getCustomTargetingKeysByStatementAsync(Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.getCustomTargetingKeysByStatementAsync(filterStatement); - } + private bool isAmpOnlyFieldSpecified; - /// Gets a CustomTargetingValuePage of CustomTargetingValue objects that satisfy the - /// given Statement#query.

The WHERE - /// clause in the Statement#query must always contain - /// CustomTargetingValue#customTargetingKeyId as one of its columns - /// in a way that it is AND'ed with the rest of the query. So, if you want to - /// retrieve values for a known set of key ids, valid Statement#query would look like:

  1. "WHERE - /// customTargetingKeyId IN ('17','18','19')" retrieves all values that are - /// associated with keys having ids 17, 18, 19.
  2. "WHERE customTargetingKeyId - /// = '17' AND name = 'red'" retrieves values that are associated with keys having - /// id 17 and value name is 'red'.

The following fields are supported - /// for filtering:

- /// - /// - /// - /// - ///
PQL Property Object Property
id CustomTargetingValue#id
customTargetingKeyId CustomTargetingValue#customTargetingKeyId
name CustomTargetingValue#name
displayName CustomTargetingValue#displayName
matchType CustomTargetingValue#matchType
+ /// The dimensions that the creative is expected to have. This attribute is + /// required. /// - public virtual Google.Api.Ads.AdManager.v202311.CustomTargetingValuePage getCustomTargetingValuesByStatement(Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.getCustomTargetingValuesByStatement(filterStatement); - } - - public virtual System.Threading.Tasks.Task getCustomTargetingValuesByStatementAsync(Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.getCustomTargetingValuesByStatementAsync(filterStatement); + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public Size size { + get { + return this.sizeField; + } + set { + this.sizeField = value; + } } - /// Performs actions on CustomTargetingKey objects - /// that match the given Statement#query. + /// The native creative template ID.

This value is only required if #creativeSizeType is CreativeSizeType#NATIVE.

///
- public virtual Google.Api.Ads.AdManager.v202311.UpdateResult performCustomTargetingKeyAction(Google.Api.Ads.AdManager.v202311.CustomTargetingKeyAction customTargetingKeyAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.performCustomTargetingKeyAction(customTargetingKeyAction, filterStatement); + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public long creativeTemplateId { + get { + return this.creativeTemplateIdField; + } + set { + this.creativeTemplateIdField = value; + this.creativeTemplateIdSpecified = true; + } } - public virtual System.Threading.Tasks.Task performCustomTargetingKeyActionAsync(Google.Api.Ads.AdManager.v202311.CustomTargetingKeyAction customTargetingKeyAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.performCustomTargetingKeyActionAsync(customTargetingKeyAction, filterStatement); + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool creativeTemplateIdSpecified { + get { + return this.creativeTemplateIdFieldSpecified; + } + set { + this.creativeTemplateIdFieldSpecified = value; + } } - /// Performs actions on CustomTargetingValue - /// objects that match the given Statement#query. + /// The companions that the creative is expected to have. This attribute can only be + /// set if the line item it belongs to has a LineItem#environmentType of EnvironmentType#VIDEO_PLAYER or LineItem#roadblockingType of RoadblockingType#CREATIVE_SET. /// - public virtual Google.Api.Ads.AdManager.v202311.UpdateResult performCustomTargetingValueAction(Google.Api.Ads.AdManager.v202311.CustomTargetingValueAction customTargetingValueAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.performCustomTargetingValueAction(customTargetingValueAction, filterStatement); - } - - public virtual System.Threading.Tasks.Task performCustomTargetingValueActionAsync(Google.Api.Ads.AdManager.v202311.CustomTargetingValueAction customTargetingValueAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.performCustomTargetingValueActionAsync(customTargetingValueAction, filterStatement); - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.CustomTargetingService.updateCustomTargetingKeysResponse Google.Api.Ads.AdManager.v202311.CustomTargetingServiceInterface.updateCustomTargetingKeys(Wrappers.CustomTargetingService.updateCustomTargetingKeysRequest request) { - return base.Channel.updateCustomTargetingKeys(request); + [System.Xml.Serialization.XmlElementAttribute("companions", Order = 2)] + public CreativePlaceholder[] companions { + get { + return this.companionsField; + } + set { + this.companionsField = value; + } } - /// Updates the specified CustomTargetingKey - /// objects. + /// The set of label frequency caps applied directly to this creative placeholder. /// - public virtual Google.Api.Ads.AdManager.v202311.CustomTargetingKey[] updateCustomTargetingKeys(Google.Api.Ads.AdManager.v202311.CustomTargetingKey[] keys) { - Wrappers.CustomTargetingService.updateCustomTargetingKeysRequest inValue = new Wrappers.CustomTargetingService.updateCustomTargetingKeysRequest(); - inValue.keys = keys; - Wrappers.CustomTargetingService.updateCustomTargetingKeysResponse retVal = ((Google.Api.Ads.AdManager.v202311.CustomTargetingServiceInterface)(this)).updateCustomTargetingKeys(inValue); - return retVal.rval; - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202311.CustomTargetingServiceInterface.updateCustomTargetingKeysAsync(Wrappers.CustomTargetingService.updateCustomTargetingKeysRequest request) { - return base.Channel.updateCustomTargetingKeysAsync(request); - } - - public virtual System.Threading.Tasks.Task updateCustomTargetingKeysAsync(Google.Api.Ads.AdManager.v202311.CustomTargetingKey[] keys) { - Wrappers.CustomTargetingService.updateCustomTargetingKeysRequest inValue = new Wrappers.CustomTargetingService.updateCustomTargetingKeysRequest(); - inValue.keys = keys; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202311.CustomTargetingServiceInterface)(this)).updateCustomTargetingKeysAsync(inValue)).Result.rval); - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.CustomTargetingService.updateCustomTargetingValuesResponse Google.Api.Ads.AdManager.v202311.CustomTargetingServiceInterface.updateCustomTargetingValues(Wrappers.CustomTargetingService.updateCustomTargetingValuesRequest request) { - return base.Channel.updateCustomTargetingValues(request); + [System.Xml.Serialization.XmlElementAttribute("appliedLabels", Order = 3)] + public AppliedLabel[] appliedLabels { + get { + return this.appliedLabelsField; + } + set { + this.appliedLabelsField = value; + } } - /// Updates the specified CustomTargetingValue - /// objects. + /// Contains the set of labels applied directly to this creative placeholder as well + /// as those inherited from the creative template from which this creative + /// placeholder was instantiated. This field is readonly and is assigned by Google. /// - public virtual Google.Api.Ads.AdManager.v202311.CustomTargetingValue[] updateCustomTargetingValues(Google.Api.Ads.AdManager.v202311.CustomTargetingValue[] values) { - Wrappers.CustomTargetingService.updateCustomTargetingValuesRequest inValue = new Wrappers.CustomTargetingService.updateCustomTargetingValuesRequest(); - inValue.values = values; - Wrappers.CustomTargetingService.updateCustomTargetingValuesResponse retVal = ((Google.Api.Ads.AdManager.v202311.CustomTargetingServiceInterface)(this)).updateCustomTargetingValues(inValue); - return retVal.rval; - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202311.CustomTargetingServiceInterface.updateCustomTargetingValuesAsync(Wrappers.CustomTargetingService.updateCustomTargetingValuesRequest request) { - return base.Channel.updateCustomTargetingValuesAsync(request); - } - - public virtual System.Threading.Tasks.Task updateCustomTargetingValuesAsync(Google.Api.Ads.AdManager.v202311.CustomTargetingValue[] values) { - Wrappers.CustomTargetingService.updateCustomTargetingValuesRequest inValue = new Wrappers.CustomTargetingService.updateCustomTargetingValuesRequest(); - inValue.values = values; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202311.CustomTargetingServiceInterface)(this)).updateCustomTargetingValuesAsync(inValue)).Result.rval); - } - } - namespace Wrappers.CustomFieldService - { - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "createCustomFieldOptions", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class createCustomFieldOptionsRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("customFieldOptions")] - public Google.Api.Ads.AdManager.v202311.CustomFieldOption[] customFieldOptions; - - /// Creates a new instance of the class. - public createCustomFieldOptionsRequest() { + [System.Xml.Serialization.XmlElementAttribute("effectiveAppliedLabels", Order = 4)] + public AppliedLabel[] effectiveAppliedLabels { + get { + return this.effectiveAppliedLabelsField; } - - /// Creates a new instance of the class. - public createCustomFieldOptionsRequest(Google.Api.Ads.AdManager.v202311.CustomFieldOption[] customFieldOptions) { - this.customFieldOptions = customFieldOptions; + set { + this.effectiveAppliedLabelsField = value; } } - - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "createCustomFieldOptionsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class createCustomFieldOptionsResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v202311.CustomFieldOption[] rval; - - /// Creates a new instance of the class. - public createCustomFieldOptionsResponse() { + /// Expected number of creatives that will be uploaded corresponding to this + /// creative placeholder. This estimate is used to improve the accuracy of + /// forecasting; for example, if label frequency capping limits the number of times + /// a creative may be served. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 5)] + public int expectedCreativeCount { + get { + return this.expectedCreativeCountField; } - - /// Creates a new instance of the class. - public createCustomFieldOptionsResponse(Google.Api.Ads.AdManager.v202311.CustomFieldOption[] rval) { - this.rval = rval; + set { + this.expectedCreativeCountField = value; + this.expectedCreativeCountSpecified = true; } } - - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "createCustomFields", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class createCustomFieldsRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("customFields")] - public Google.Api.Ads.AdManager.v202311.CustomField[] customFields; - - /// Creates a new instance of the - /// class. - public createCustomFieldsRequest() { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool expectedCreativeCountSpecified { + get { + return this.expectedCreativeCountFieldSpecified; } - - /// Creates a new instance of the - /// class. - public createCustomFieldsRequest(Google.Api.Ads.AdManager.v202311.CustomField[] customFields) { - this.customFields = customFields; + set { + this.expectedCreativeCountFieldSpecified = value; } } - - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "createCustomFieldsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class createCustomFieldsResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v202311.CustomField[] rval; - - /// Creates a new instance of the - /// class. - public createCustomFieldsResponse() { + /// Describes the types of sizes a creative can be. By default, the creative's size + /// is CreativeSizeType#PIXEL, which is a dimension based size + /// (width-height pair). + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 6)] + public CreativeSizeType creativeSizeType { + get { + return this.creativeSizeTypeField; } - - /// Creates a new instance of the - /// class. - public createCustomFieldsResponse(Google.Api.Ads.AdManager.v202311.CustomField[] rval) { - this.rval = rval; + set { + this.creativeSizeTypeField = value; + this.creativeSizeTypeSpecified = true; } } - - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "updateCustomFieldOptions", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class updateCustomFieldOptionsRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("customFieldOptions")] - public Google.Api.Ads.AdManager.v202311.CustomFieldOption[] customFieldOptions; - - /// Creates a new instance of the class. - public updateCustomFieldOptionsRequest() { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool creativeSizeTypeSpecified { + get { + return this.creativeSizeTypeFieldSpecified; } - - /// Creates a new instance of the class. - public updateCustomFieldOptionsRequest(Google.Api.Ads.AdManager.v202311.CustomFieldOption[] customFieldOptions) { - this.customFieldOptions = customFieldOptions; + set { + this.creativeSizeTypeFieldSpecified = value; } } - - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "updateCustomFieldOptionsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class updateCustomFieldOptionsResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v202311.CustomFieldOption[] rval; - - /// Creates a new instance of the class. - public updateCustomFieldOptionsResponse() { + /// The name of the CreativeTargeting for creatives + /// this placeholder represents.

This attribute is optional. Specifying creative + /// targeting here is for forecasting purposes only and has no effect on serving. + /// The same creative targeting should be specified on a LineItemCreativeAssociation when associating a Creative with the LineItem.

+ ///
+ [System.Xml.Serialization.XmlElementAttribute(Order = 7)] + public string targetingName { + get { + return this.targetingNameField; } - - /// Creates a new instance of the class. - public updateCustomFieldOptionsResponse(Google.Api.Ads.AdManager.v202311.CustomFieldOption[] rval) { - this.rval = rval; + set { + this.targetingNameField = value; } } - - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "updateCustomFields", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class updateCustomFieldsRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("customFields")] - public Google.Api.Ads.AdManager.v202311.CustomField[] customFields; - - /// Creates a new instance of the - /// class. - public updateCustomFieldsRequest() { + /// Indicate if the expected creative of this placeholder has an AMP only variant. + ///

This attribute is optional. It is for forecasting purposes only and has no + /// effect on serving.

+ ///
+ [System.Xml.Serialization.XmlElementAttribute(Order = 8)] + public bool isAmpOnly { + get { + return this.isAmpOnlyField; } - - /// Creates a new instance of the - /// class. - public updateCustomFieldsRequest(Google.Api.Ads.AdManager.v202311.CustomField[] customFields) { - this.customFields = customFields; + set { + this.isAmpOnlyField = value; + this.isAmpOnlySpecified = true; } } - - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "updateCustomFieldsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class updateCustomFieldsResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v202311.CustomField[] rval; - - /// Creates a new instance of the - /// class. - public updateCustomFieldsResponse() { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool isAmpOnlySpecified { + get { + return this.isAmpOnlyFieldSpecified; } - - /// Creates a new instance of the - /// class. - public updateCustomFieldsResponse(Google.Api.Ads.AdManager.v202311.CustomField[] rval) { - this.rval = rval; + set { + this.isAmpOnlyFieldSpecified = value; } } } - /// An option represents a permitted value for a custom field that has a CustomField#dataType of CustomFieldDataType#DROP_DOWN. + + + /// Represents a Label that can be applied to an entity. To + /// negate an inherited label, create an with labelId as + /// the inherited label's ID and isNegated set to true. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class CustomFieldOption { - private long idField; - - private bool idFieldSpecified; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class AppliedLabel { + private long labelIdField; - private long customFieldIdField; + private bool labelIdFieldSpecified; - private bool customFieldIdFieldSpecified; + private bool isNegatedField; - private string displayNameField; + private bool isNegatedFieldSpecified; - /// Unique ID of this option. This value is readonly and is assigned by Google. + /// The ID of a created Label. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public long id { + public long labelId { get { - return this.idField; + return this.labelIdField; } set { - this.idField = value; - this.idSpecified = true; + this.labelIdField = value; + this.labelIdSpecified = true; } } - /// true, if a value is specified for , + /// true, if a value is specified for , /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool idSpecified { + public bool labelIdSpecified { get { - return this.idFieldSpecified; + return this.labelIdFieldSpecified; } set { - this.idFieldSpecified = value; + this.labelIdFieldSpecified = value; } } - /// The id of the custom field this option belongs to. + /// isNegated should be set to true to negate the effects + /// of labelId. /// [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public long customFieldId { + public bool isNegated { get { - return this.customFieldIdField; + return this.isNegatedField; } set { - this.customFieldIdField = value; - this.customFieldIdSpecified = true; + this.isNegatedField = value; + this.isNegatedSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool customFieldIdSpecified { + public bool isNegatedSpecified { get { - return this.customFieldIdFieldSpecified; + return this.isNegatedFieldSpecified; } set { - this.customFieldIdFieldSpecified = value; + this.isNegatedFieldSpecified = value; } } + } - /// The display name of this option. + + /// Descriptions of the types of sizes a creative can be. Not all creatives can be + /// described by a height-width pair, this provides additional context. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum CreativeSizeType { + /// Dimension based size, an actual height and width. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public string displayName { - get { - return this.displayNameField; - } - set { - this.displayNameField = value; - } - } + PIXEL = 0, + /// Mobile size, that is expressed as a ratio of say 4 by 1, that could be met by a + /// 100 x 25 sized image. + /// + ASPECT_RATIO = 1, + /// Out-of-page size, that is not related to the slot it is served. But rather is a + /// function of the snippet, and the values set. This must be used with 1x1 size. + /// + INTERSTITIAL = 2, + /// Size has no meaning

1. For Click Tracking entities, where size doesn't matter + /// 2. For entities that allow all requested sizes, where the size represents all + /// sizes.

+ ///
+ IGNORED = 5, + /// Native size, which is a function of the how the client renders the creative. + /// This must be used with 1x1 size. + /// + NATIVE = 3, + /// Audio size. Used with audio ads. This must be used with 1x1 size. + /// + AUDIO = 4, } - /// Errors specific to editing custom fields + /// Configuration of forecast breakdown. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class CustomFieldError : ApiError { - private CustomFieldErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ForecastBreakdownOptions { + private DateTime[] timeWindowsField; - private bool reasonFieldSpecified; + private ForecastBreakdownTarget[] targetsField; - /// The error reason represented by an enum. + /// The boundaries of time windows to configure time breakdown.

By default, the + /// time window of the forecasted LineItem is assumed if none + /// are explicitly specified in this field. But if set, at least two DateTimes are needed to define the boundaries of minimally + /// one time window.

Also, the time boundaries are required to be in the same + /// time zone, in strictly ascending order.

///
- [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public CustomFieldErrorReason reason { + [System.Xml.Serialization.XmlElementAttribute("timeWindows", Order = 0)] + public DateTime[] timeWindows { get { - return this.reasonField; + return this.timeWindowsField; } set { - this.reasonField = value; - this.reasonSpecified = true; + this.timeWindowsField = value; } } - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { + /// For each time window, these are the breakdown targets. If none specified, the + /// targeting of the forecasted LineItem is assumed. + /// + [System.Xml.Serialization.XmlElementAttribute("targets", Order = 1)] + public ForecastBreakdownTarget[] targets { get { - return this.reasonFieldSpecified; + return this.targetsField; } set { - this.reasonFieldSpecified = value; + this.targetsField = value; } } } - /// The reasons for the target error. + /// Forecasting options for line item availability forecasts. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CustomFieldError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum CustomFieldErrorReason { - /// An attempt was made to create a CustomFieldOption for a CustomField that does not have CustomFieldDataType#DROPDOWN. - /// - INVALID_CUSTOM_FIELD_FOR_OPTION = 0, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 1, - } + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class AvailabilityForecastOptions { + private bool includeTargetingCriteriaBreakdownField; + private bool includeTargetingCriteriaBreakdownFieldSpecified; - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", ConfigurationName = "Google.Api.Ads.AdManager.v202311.CustomFieldServiceInterface")] - public interface CustomFieldServiceInterface - { - // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Wrappers.CustomFieldService.createCustomFieldOptionsResponse createCustomFieldOptions(Wrappers.CustomFieldService.createCustomFieldOptionsRequest request); + private bool includeContendingLineItemsField; - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task createCustomFieldOptionsAsync(Wrappers.CustomFieldService.createCustomFieldOptionsRequest request); + private bool includeContendingLineItemsFieldSpecified; - // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Wrappers.CustomFieldService.createCustomFieldsResponse createCustomFields(Wrappers.CustomFieldService.createCustomFieldsRequest request); + private ForecastBreakdownOptions breakdownField; - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task createCustomFieldsAsync(Wrappers.CustomFieldService.createCustomFieldsRequest request); + /// When specified, forecast result for the availability line item will also include + /// breakdowns by its targeting in AvailabilityForecast#targetingCriteriaBreakdowns. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public bool includeTargetingCriteriaBreakdown { + get { + return this.includeTargetingCriteriaBreakdownField; + } + set { + this.includeTargetingCriteriaBreakdownField = value; + this.includeTargetingCriteriaBreakdownSpecified = true; + } + } - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v202311.CustomFieldOption getCustomFieldOption(long customFieldOptionId); + /// true, if a value is specified for , false otherwise. + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool includeTargetingCriteriaBreakdownSpecified { + get { + return this.includeTargetingCriteriaBreakdownFieldSpecified; + } + set { + this.includeTargetingCriteriaBreakdownFieldSpecified = value; + } + } - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getCustomFieldOptionAsync(long customFieldOptionId); + /// When specified, the forecast result for the availability line item will also + /// include contending line items in AvailabilityForecast#contendingLineItems. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public bool includeContendingLineItems { + get { + return this.includeContendingLineItemsField; + } + set { + this.includeContendingLineItemsField = value; + this.includeContendingLineItemsSpecified = true; + } + } - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v202311.CustomFieldPage getCustomFieldsByStatement(Google.Api.Ads.AdManager.v202311.Statement filterStatement); + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool includeContendingLineItemsSpecified { + get { + return this.includeContendingLineItemsFieldSpecified; + } + set { + this.includeContendingLineItemsFieldSpecified = value; + } + } - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getCustomFieldsByStatementAsync(Google.Api.Ads.AdManager.v202311.Statement filterStatement); + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public ForecastBreakdownOptions breakdown { + get { + return this.breakdownField; + } + set { + this.breakdownField = value; + } + } + } - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v202311.UpdateResult performCustomFieldAction(Google.Api.Ads.AdManager.v202311.CustomFieldAction customFieldAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement); - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task performCustomFieldActionAsync(Google.Api.Ads.AdManager.v202311.CustomFieldAction customFieldAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement); + /// Makegood info for a ProposalLineItemDto. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ProposalLineItemMakegoodInfo { + private long originalProposalLineItemIdField; - // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Wrappers.CustomFieldService.updateCustomFieldOptionsResponse updateCustomFieldOptions(Wrappers.CustomFieldService.updateCustomFieldOptionsRequest request); + private bool originalProposalLineItemIdFieldSpecified; - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task updateCustomFieldOptionsAsync(Wrappers.CustomFieldService.updateCustomFieldOptionsRequest request); + private string reasonField; - // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Wrappers.CustomFieldService.updateCustomFieldsResponse updateCustomFields(Wrappers.CustomFieldService.updateCustomFieldsRequest request); + /// The ID of the original proposal line item on which this makegood is based. This + /// attribute is read-only. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public long originalProposalLineItemId { + get { + return this.originalProposalLineItemIdField; + } + set { + this.originalProposalLineItemIdField = value; + this.originalProposalLineItemIdSpecified = true; + } + } - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task updateCustomFieldsAsync(Wrappers.CustomFieldService.updateCustomFieldsRequest request); + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool originalProposalLineItemIdSpecified { + get { + return this.originalProposalLineItemIdFieldSpecified; + } + set { + this.originalProposalLineItemIdFieldSpecified = value; + } + } + + /// The publisher-provided reason why this makegood was initiated. This is free form + /// text.

The following predefined values can be used to render predefined + /// options in the UI.

UNDERDELIVERY: 'Impression underdelivery', + /// SECONDARY_DELIVERY_TERMS: 'Did not meet secondary delivery terms ', PERFORMANCE: + /// 'Performance issues',

+ ///
+ [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public string reason { + get { + return this.reasonField; + } + set { + this.reasonField = value; + } + } } - /// An additional, user-created field on an entity. + /// A ProposalLineItem is added to a programmatic Proposal and is similar to a delivery LineItem. It contains delivery details including information + /// like impression goal or quantity, start and end times, and targeting. /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(DropDownCustomField))] [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class CustomField { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ProposalLineItem { private long idField; private bool idFieldSpecified; + private long proposalIdField; + + private bool proposalIdFieldSpecified; + private string nameField; - private string descriptionField; + private DateTime startDateTimeField; - private bool isActiveField; + private DateTime endDateTimeField; - private bool isActiveFieldSpecified; + private string internalNotesField; - private CustomFieldEntityType entityTypeField; + private bool isArchivedField; - private bool entityTypeFieldSpecified; + private bool isArchivedFieldSpecified; - private CustomFieldDataType dataTypeField; + private Goal goalField; - private bool dataTypeFieldSpecified; + private Goal[] secondaryGoalsField; - private CustomFieldVisibility visibilityField; + private long contractedUnitsBoughtField; - private bool visibilityFieldSpecified; + private bool contractedUnitsBoughtFieldSpecified; - /// Unique ID of the CustomField. This value is readonly and is - /// assigned by Google. + private DeliveryRateType deliveryRateTypeField; + + private bool deliveryRateTypeFieldSpecified; + + private RoadblockingType roadblockingTypeField; + + private bool roadblockingTypeFieldSpecified; + + private CompanionDeliveryOption companionDeliveryOptionField; + + private bool companionDeliveryOptionFieldSpecified; + + private long videoMaxDurationField; + + private bool videoMaxDurationFieldSpecified; + + private SkippableAdType videoCreativeSkippableAdTypeField; + + private bool videoCreativeSkippableAdTypeFieldSpecified; + + private FrequencyCap[] frequencyCapsField; + + private long dfpLineItemIdField; + + private bool dfpLineItemIdFieldSpecified; + + private LineItemType lineItemTypeField; + + private bool lineItemTypeFieldSpecified; + + private int lineItemPriorityField; + + private bool lineItemPriorityFieldSpecified; + + private RateType rateTypeField; + + private bool rateTypeFieldSpecified; + + private CreativePlaceholder[] creativePlaceholdersField; + + private Targeting targetingField; + + private BaseCustomFieldValue[] customFieldValuesField; + + private AppliedLabel[] appliedLabelsField; + + private AppliedLabel[] effectiveAppliedLabelsField; + + private bool disableSameAdvertiserCompetitiveExclusionField; + + private bool disableSameAdvertiserCompetitiveExclusionFieldSpecified; + + private bool isSoldField; + + private bool isSoldFieldSpecified; + + private Money netRateField; + + private Money netCostField; + + private DeliveryIndicator deliveryIndicatorField; + + private long[] deliveryDataField; + + private ComputedStatus computedStatusField; + + private bool computedStatusFieldSpecified; + + private DateTime lastModifiedDateTimeField; + + private ReservationStatus reservationStatusField; + + private bool reservationStatusFieldSpecified; + + private DateTime lastReservationDateTimeField; + + private EnvironmentType environmentTypeField; + + private bool environmentTypeFieldSpecified; + + private AllowedFormats[] allowedFormatsField; + + private string additionalTermsField; + + private ProgrammaticCreativeSource programmaticCreativeSourceField; + + private bool programmaticCreativeSourceFieldSpecified; + + private GrpSettings grpSettingsField; + + private long estimatedMinimumImpressionsField; + + private bool estimatedMinimumImpressionsFieldSpecified; + + private ThirdPartyMeasurementSettings thirdPartyMeasurementSettingsField; + + private ProposalLineItemMakegoodInfo makegoodInfoField; + + private bool hasMakegoodField; + + private bool hasMakegoodFieldSpecified; + + private bool canCreateMakegoodField; + + private bool canCreateMakegoodFieldSpecified; + + private NegotiationRole pauseRoleField; + + private bool pauseRoleFieldSpecified; + + private string pauseReasonField; + + /// The unique ID of the ProposalLineItem. This attribute is read-only. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] public long id { @@ -14518,10 +15039,43 @@ public bool idSpecified { } } - /// Name of the CustomField. This is value is required to create a - /// custom field. The max length is 127 characters. + /// The unique ID of the Proposal, to which the + /// ProposalLineItem belongs. This attribute is required for creation + /// and then is readonly. This attribute is + /// required. /// [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public long proposalId { + get { + return this.proposalIdField; + } + set { + this.proposalIdField = value; + this.proposalIdSpecified = true; + } + } + + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool proposalIdSpecified { + get { + return this.proposalIdFieldSpecified; + } + set { + this.proposalIdFieldSpecified = value; + } + } + + /// The name of the ProposalLineItem which should be unique under the + /// same Proposal. This attribute has a maximum length of 255 + /// characters. This attribute can be configured as editable after the proposal has + /// been submitted. Please check with your network administrator for editable fields + /// configuration. This attribute is + /// required. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] public string name { get { return this.nameField; @@ -14531,7155 +15085,6920 @@ public string name { } } - /// A description of the custom field. This value is optional. The maximum length is - /// 511 characters + /// The date and time at which the line item associated with the is + /// enabled to begin serving. This attribute is optional during creation, but + /// required and must be in the future when it turns into a line item. The DateTime#timeZoneID is required if start date + /// time is not null. This attribute becomes readonly once the + /// ProposalLineItem has started delivering. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public string description { + [System.Xml.Serialization.XmlElementAttribute(Order = 3)] + public DateTime startDateTime { get { - return this.descriptionField; + return this.startDateTimeField; } set { - this.descriptionField = value; + this.startDateTimeField = value; } } - /// Specifies whether or not the custom fields is active. This attribute is - /// read-only. + /// The date and time at which the line item associated with the stops + /// beening served. This attribute is optional during creation, but required and + /// must be after the #startDateTime. The DateTime#timeZoneID is required if end date time + /// is not null. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public bool isActive { + [System.Xml.Serialization.XmlElementAttribute(Order = 4)] + public DateTime endDateTime { get { - return this.isActiveField; + return this.endDateTimeField; } set { - this.isActiveField = value; - this.isActiveSpecified = true; + this.endDateTimeField = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool isActiveSpecified { + /// Provides any additional notes that may annotate the . This + /// attribute is optional and has a maximum length of 65,535 characters. This + /// attribute can be configured as editable after the proposal has been submitted. + /// Please check with your network administrator for editable fields configuration. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 5)] + public string internalNotes { get { - return this.isActiveFieldSpecified; + return this.internalNotesField; } set { - this.isActiveFieldSpecified = value; + this.internalNotesField = value; } } - /// The type of entity that this custom field is associated with. This attribute is - /// read-only if there exists a CustomFieldValue for - /// this field. + /// The archival status of the ProposalLineItem. This attribute is + /// read-only. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public CustomFieldEntityType entityType { + [System.Xml.Serialization.XmlElementAttribute(Order = 6)] + public bool isArchived { get { - return this.entityTypeField; + return this.isArchivedField; } set { - this.entityTypeField = value; - this.entityTypeSpecified = true; + this.isArchivedField = value; + this.isArchivedSpecified = true; } } - /// true, if a value is specified for true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool entityTypeSpecified { + public bool isArchivedSpecified { get { - return this.entityTypeFieldSpecified; + return this.isArchivedFieldSpecified; } set { - this.entityTypeFieldSpecified = value; + this.isArchivedFieldSpecified = value; } } - /// The type of data this custom field contains. This attribute is read-only if - /// there exists a CustomFieldValue for this field. + /// The goal(i.e. contracted quantity, quantity or limit) that this + /// ProposalLineItem is associated with, which is used in its pacing + /// and budgeting. Goal#units must be greater than 0 when + /// the proposal line item turns into a line item, Goal#goalType and Goal#unitType are + /// readonly. For a Preferred deal , the goal type can only be GoalType#NONE. This + /// attribute is required. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 5)] - public CustomFieldDataType dataType { + [System.Xml.Serialization.XmlElementAttribute(Order = 7)] + public Goal goal { get { - return this.dataTypeField; + return this.goalField; } set { - this.dataTypeField = value; - this.dataTypeSpecified = true; + this.goalField = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool dataTypeSpecified { + /// The secondary goals that this ProposalLineItem is associated with. + /// For a programmatic line item with the properties RateType#CPM and LineItemType#SPONSORSHIP, this field will + /// have one goal which describes the impressions cap. For other cases, this field + /// is an empty list. + /// + [System.Xml.Serialization.XmlElementAttribute("secondaryGoals", Order = 8)] + public Goal[] secondaryGoals { get { - return this.dataTypeFieldSpecified; + return this.secondaryGoalsField; } set { - this.dataTypeFieldSpecified = value; + this.secondaryGoalsField = value; } } - /// How visible/accessible this field is in the UI. + /// The contracted number of daily minimum impressions used for LineItemType#SPONSORSHIP deals + /// with a rate type of RateType#CPD.

This attribute + /// is required for percentage-based-goal proposal line + /// items. It does not impact ad-serving and is for reporting purposes only.

///
- [System.Xml.Serialization.XmlElementAttribute(Order = 6)] - public CustomFieldVisibility visibility { + [System.Xml.Serialization.XmlElementAttribute(Order = 9)] + public long contractedUnitsBought { get { - return this.visibilityField; + return this.contractedUnitsBoughtField; } set { - this.visibilityField = value; - this.visibilitySpecified = true; + this.contractedUnitsBoughtField = value; + this.contractedUnitsBoughtSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool visibilitySpecified { + public bool contractedUnitsBoughtSpecified { get { - return this.visibilityFieldSpecified; + return this.contractedUnitsBoughtFieldSpecified; } set { - this.visibilityFieldSpecified = value; + this.contractedUnitsBoughtFieldSpecified = value; } } - } - - /// Entity types recognized by custom fields - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum CustomFieldEntityType { - /// Represents the LineItem type. - /// - LINE_ITEM = 0, - /// Represents the Order type. - /// - ORDER = 1, - /// Represents the Creative type. - /// - CREATIVE = 2, - /// Represents the ProductTemplate type. - /// - PRODUCT_TEMPLATE = 3, - /// Represents the Product type. - /// - PRODUCT = 4, - /// Represents the Proposal type. - /// - PROPOSAL = 5, - /// Represents the ProposalLineItem type. - /// - PROPOSAL_LINE_ITEM = 6, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 8, - } - - - /// The data types allowed for CustomField objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum CustomFieldDataType { - /// A string field. The max length is 255 characters. - /// - STRING = 0, - /// A number field. - /// - NUMBER = 1, - /// A boolean field. Values may be "true", "false", or empty. - /// - TOGGLE = 2, - /// A drop-down field. Values may only be the ids of CustomFieldOption objects. - /// - DROP_DOWN = 3, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 4, - } - - - /// The visibility levels of a custom field. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum CustomFieldVisibility { - /// Only visible through the API. - /// - API_ONLY = 0, - /// Visible in the UI, but only editable through the API - /// - READ_ONLY = 1, - /// Visible and editable both in the API and the UI. - /// - FULL = 2, - } - - - /// A custom field that has the drop-down data type. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class DropDownCustomField : CustomField { - private CustomFieldOption[] optionsField; - - /// The options allowed for this custom field. This is read only. + /// The strategy for delivering ads over the course of the 's duration. + /// This attribute is required. For a Preferred deal ProposalLineItem, + /// the value can only be DeliveryRateType#FRONTLOADED. /// - [System.Xml.Serialization.XmlElementAttribute("options", Order = 0)] - public CustomFieldOption[] options { + [System.Xml.Serialization.XmlElementAttribute(Order = 10)] + public DeliveryRateType deliveryRateType { get { - return this.optionsField; + return this.deliveryRateTypeField; } set { - this.optionsField = value; + this.deliveryRateTypeField = value; + this.deliveryRateTypeSpecified = true; } } - } - - - /// Captures a page of CustomField objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class CustomFieldPage { - private int totalResultSetSizeField; - - private bool totalResultSetSizeFieldSpecified; - - private int startIndexField; - - private bool startIndexFieldSpecified; - private CustomField[] resultsField; + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool deliveryRateTypeSpecified { + get { + return this.deliveryRateTypeFieldSpecified; + } + set { + this.deliveryRateTypeFieldSpecified = value; + } + } - /// The size of the total result set to which this page belongs. + /// The strategy for serving roadblocked creatives, i.e. instances where multiple + /// creatives must be served together on a single web page. This attribute is + /// optional during creation and defaults to the product's roadblocking type, or RoadblockingType#ONE_OR_MORE if not specified by the product. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public int totalResultSetSize { + [System.Xml.Serialization.XmlElementAttribute(Order = 11)] + public RoadblockingType roadblockingType { get { - return this.totalResultSetSizeField; + return this.roadblockingTypeField; } set { - this.totalResultSetSizeField = value; - this.totalResultSetSizeSpecified = true; + this.roadblockingTypeField = value; + this.roadblockingTypeSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="roadblockingType" />, false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool totalResultSetSizeSpecified { + public bool roadblockingTypeSpecified { get { - return this.totalResultSetSizeFieldSpecified; + return this.roadblockingTypeFieldSpecified; } set { - this.totalResultSetSizeFieldSpecified = value; + this.roadblockingTypeFieldSpecified = value; } } - /// The absolute index in the total result set on which this page begins. + /// The delivery option for companions. This is only valid if the roadblocking type + /// is RoadblockingType#CREATIVE_SET. The default value for + /// roadblocking creatives is CompanionDeliveryOption#OPTIONAL. The + /// default value in other cases is CompanionDeliveryOption#UNKNOWN. + /// Providing something other than CompanionDeliveryOption#UNKNOWN + /// will cause an error. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public int startIndex { + [System.Xml.Serialization.XmlElementAttribute(Order = 12)] + public CompanionDeliveryOption companionDeliveryOption { get { - return this.startIndexField; + return this.companionDeliveryOptionField; } set { - this.startIndexField = value; - this.startIndexSpecified = true; + this.companionDeliveryOptionField = value; + this.companionDeliveryOptionSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool startIndexSpecified { + public bool companionDeliveryOptionSpecified { get { - return this.startIndexFieldSpecified; + return this.companionDeliveryOptionFieldSpecified; } set { - this.startIndexFieldSpecified = value; + this.companionDeliveryOptionFieldSpecified = value; } } - /// The collection of custom fields contained within this page. + /// The max duration of a video creative associated with this in + /// milliseconds. This attribute is optional, defaults to the Product#videoMaxDuration on the Product it was created with, and only meaningful if this is a + /// video proposal line item. /// - [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] - public CustomField[] results { + [System.Xml.Serialization.XmlElementAttribute(Order = 13)] + public long videoMaxDuration { get { - return this.resultsField; + return this.videoMaxDurationField; } set { - this.resultsField = value; + this.videoMaxDurationField = value; + this.videoMaxDurationSpecified = true; } } - } - - - /// Represents the actions that can be performed on CustomField objects. - /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(DeactivateCustomFields))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ActivateCustomFields))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class CustomFieldAction { - } - - - /// The action used for deactivating CustomField objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class DeactivateCustomFields : CustomFieldAction { - } - - - /// The action used for activating CustomField objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ActivateCustomFields : CustomFieldAction { - } - - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public interface CustomFieldServiceInterfaceChannel : Google.Api.Ads.AdManager.v202311.CustomFieldServiceInterface, System.ServiceModel.IClientChannel - { - } - - - /// Provides methods for the creation and management of CustomField objects. - /// - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public partial class CustomFieldService : AdManagerSoapClient, ICustomFieldService { - /// Creates a new instance of the class. - /// - public CustomFieldService() { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool videoMaxDurationSpecified { + get { + return this.videoMaxDurationFieldSpecified; + } + set { + this.videoMaxDurationFieldSpecified = value; + } } - /// Creates a new instance of the class. + /// The proposal line item's creatives' skippability. This attribute is optional, + /// only applicable for video proposal line items, and defaults to SkippableAdType#NOT_SKIPPABLE. /// - public CustomFieldService(string endpointConfigurationName) - : base(endpointConfigurationName) { + [System.Xml.Serialization.XmlElementAttribute(Order = 14)] + public SkippableAdType videoCreativeSkippableAdType { + get { + return this.videoCreativeSkippableAdTypeField; + } + set { + this.videoCreativeSkippableAdTypeField = value; + this.videoCreativeSkippableAdTypeSpecified = true; + } } - /// Creates a new instance of the class. - /// - public CustomFieldService(string endpointConfigurationName, string remoteAddress) - : base(endpointConfigurationName, remoteAddress) { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool videoCreativeSkippableAdTypeSpecified { + get { + return this.videoCreativeSkippableAdTypeFieldSpecified; + } + set { + this.videoCreativeSkippableAdTypeFieldSpecified = value; + } } - /// Creates a new instance of the class. + /// The set of frequency capping units for this . This attribute is + /// optional during creation and defaults to the product's frequency caps if Product#allowFrequencyCapsCustomization + /// is false. /// - public CustomFieldService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) - : base(endpointConfigurationName, remoteAddress) { + [System.Xml.Serialization.XmlElementAttribute("frequencyCaps", Order = 15)] + public FrequencyCap[] frequencyCaps { + get { + return this.frequencyCapsField; + } + set { + this.frequencyCapsField = value; + } } - /// Creates a new instance of the class. + /// The unique ID of corresponding LineItem. This will be + /// null if the Proposal has not been pushed to Ad + /// Manager. This attribute is read-only. /// - public CustomFieldService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) - : base(binding, remoteAddress) { + [System.Xml.Serialization.XmlElementAttribute(Order = 16)] + public long dfpLineItemId { + get { + return this.dfpLineItemIdField; + } + set { + this.dfpLineItemIdField = value; + this.dfpLineItemIdSpecified = true; + } } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.CustomFieldService.createCustomFieldOptionsResponse Google.Api.Ads.AdManager.v202311.CustomFieldServiceInterface.createCustomFieldOptions(Wrappers.CustomFieldService.createCustomFieldOptionsRequest request) { - return base.Channel.createCustomFieldOptions(request); + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool dfpLineItemIdSpecified { + get { + return this.dfpLineItemIdFieldSpecified; + } + set { + this.dfpLineItemIdFieldSpecified = value; + } } - /// Creates new CustomFieldOption objects.

The - /// following fields are required:

+ /// The corresponding LineItemType of the + /// ProposalLineItem. For a programmatic , the value can + /// only be one of: + /// This attribute is required. /// - public virtual Google.Api.Ads.AdManager.v202311.CustomFieldOption[] createCustomFieldOptions(Google.Api.Ads.AdManager.v202311.CustomFieldOption[] customFieldOptions) { - Wrappers.CustomFieldService.createCustomFieldOptionsRequest inValue = new Wrappers.CustomFieldService.createCustomFieldOptionsRequest(); - inValue.customFieldOptions = customFieldOptions; - Wrappers.CustomFieldService.createCustomFieldOptionsResponse retVal = ((Google.Api.Ads.AdManager.v202311.CustomFieldServiceInterface)(this)).createCustomFieldOptions(inValue); - return retVal.rval; + [System.Xml.Serialization.XmlElementAttribute(Order = 17)] + public LineItemType lineItemType { + get { + return this.lineItemTypeField; + } + set { + this.lineItemTypeField = value; + this.lineItemTypeSpecified = true; + } } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202311.CustomFieldServiceInterface.createCustomFieldOptionsAsync(Wrappers.CustomFieldService.createCustomFieldOptionsRequest request) { - return base.Channel.createCustomFieldOptionsAsync(request); + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool lineItemTypeSpecified { + get { + return this.lineItemTypeFieldSpecified; + } + set { + this.lineItemTypeFieldSpecified = value; + } } - public virtual System.Threading.Tasks.Task createCustomFieldOptionsAsync(Google.Api.Ads.AdManager.v202311.CustomFieldOption[] customFieldOptions) { - Wrappers.CustomFieldService.createCustomFieldOptionsRequest inValue = new Wrappers.CustomFieldService.createCustomFieldOptionsRequest(); - inValue.customFieldOptions = customFieldOptions; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202311.CustomFieldServiceInterface)(this)).createCustomFieldOptionsAsync(inValue)).Result.rval); + /// The priority for the corresponding LineItem of the + /// ProposalLineItem. This attribute is optional during creation and + /// defaults to the default priority of the #lineItemType. For + /// forecasting, this attribute is optional and has a default value assigned by + /// Google. See LineItem#priority for more + /// information. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 18)] + public int lineItemPriority { + get { + return this.lineItemPriorityField; + } + set { + this.lineItemPriorityField = value; + this.lineItemPrioritySpecified = true; + } } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.CustomFieldService.createCustomFieldsResponse Google.Api.Ads.AdManager.v202311.CustomFieldServiceInterface.createCustomFields(Wrappers.CustomFieldService.createCustomFieldsRequest request) { - return base.Channel.createCustomFields(request); + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool lineItemPrioritySpecified { + get { + return this.lineItemPriorityFieldSpecified; + } + set { + this.lineItemPriorityFieldSpecified = value; + } } - /// Creates new CustomField objects.

The following - /// fields are required:

+ /// The method used for billing the ProposalLineItem. This attribute is + /// read-only. This attribute is required. /// - public virtual Google.Api.Ads.AdManager.v202311.CustomField[] createCustomFields(Google.Api.Ads.AdManager.v202311.CustomField[] customFields) { - Wrappers.CustomFieldService.createCustomFieldsRequest inValue = new Wrappers.CustomFieldService.createCustomFieldsRequest(); - inValue.customFields = customFields; - Wrappers.CustomFieldService.createCustomFieldsResponse retVal = ((Google.Api.Ads.AdManager.v202311.CustomFieldServiceInterface)(this)).createCustomFields(inValue); - return retVal.rval; + [System.Xml.Serialization.XmlElementAttribute(Order = 19)] + public RateType rateType { + get { + return this.rateTypeField; + } + set { + this.rateTypeField = value; + this.rateTypeSpecified = true; + } } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202311.CustomFieldServiceInterface.createCustomFieldsAsync(Wrappers.CustomFieldService.createCustomFieldsRequest request) { - return base.Channel.createCustomFieldsAsync(request); + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool rateTypeSpecified { + get { + return this.rateTypeFieldSpecified; + } + set { + this.rateTypeFieldSpecified = value; + } } - public virtual System.Threading.Tasks.Task createCustomFieldsAsync(Google.Api.Ads.AdManager.v202311.CustomField[] customFields) { - Wrappers.CustomFieldService.createCustomFieldsRequest inValue = new Wrappers.CustomFieldService.createCustomFieldsRequest(); - inValue.customFields = customFields; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202311.CustomFieldServiceInterface)(this)).createCustomFieldsAsync(inValue)).Result.rval); + /// Details about the creatives that are expected to serve through the + /// ProposalLineItem. This attribute is optional during creation and + /// defaults to the Product#creativePlaceholders product's creative + /// placeholders. This attribute is + /// required. + /// + [System.Xml.Serialization.XmlElementAttribute("creativePlaceholders", Order = 20)] + public CreativePlaceholder[] creativePlaceholders { + get { + return this.creativePlaceholdersField; + } + set { + this.creativePlaceholdersField = value; + } } - /// Returns the CustomFieldOption uniquely - /// identified by the given ID. + /// Contains the targeting criteria for the ProposalLineItem. This attribute is required. /// - public virtual Google.Api.Ads.AdManager.v202311.CustomFieldOption getCustomFieldOption(long customFieldOptionId) { - return base.Channel.getCustomFieldOption(customFieldOptionId); + [System.Xml.Serialization.XmlElementAttribute(Order = 21)] + public Targeting targeting { + get { + return this.targetingField; + } + set { + this.targetingField = value; + } } - public virtual System.Threading.Tasks.Task getCustomFieldOptionAsync(long customFieldOptionId) { - return base.Channel.getCustomFieldOptionAsync(customFieldOptionId); + /// The values of the custom fields associated with the . This + /// attribute is optional. This attribute can be configured as editable after the + /// proposal has been submitted. Please check with your network administrator for + /// editable fields configuration. + /// + [System.Xml.Serialization.XmlElementAttribute("customFieldValues", Order = 22)] + public BaseCustomFieldValue[] customFieldValues { + get { + return this.customFieldValuesField; + } + set { + this.customFieldValuesField = value; + } } - /// Gets a CustomFieldPage of CustomField objects that satisfy the given Statement#query. The following fields are supported for filtering: - /// - /// - /// - /// - ///
PQL Property Object - /// Property
id CustomField#id
entityType CustomField#entityType
name CustomField#name
isActive CustomField#isActive
visibility CustomField#visibility
+ /// The set of labels applied directly to the ProposalLineItem. This + /// attribute is optional. /// - public virtual Google.Api.Ads.AdManager.v202311.CustomFieldPage getCustomFieldsByStatement(Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.getCustomFieldsByStatement(filterStatement); + [System.Xml.Serialization.XmlElementAttribute("appliedLabels", Order = 23)] + public AppliedLabel[] appliedLabels { + get { + return this.appliedLabelsField; + } + set { + this.appliedLabelsField = value; + } } - public virtual System.Threading.Tasks.Task getCustomFieldsByStatementAsync(Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.getCustomFieldsByStatementAsync(filterStatement); + /// Contains the set of labels applied directly to the proposal as well as those + /// inherited ones. If a label has been negated, only the negated label is returned. + /// This attribute is read-only. + /// + [System.Xml.Serialization.XmlElementAttribute("effectiveAppliedLabels", Order = 24)] + public AppliedLabel[] effectiveAppliedLabels { + get { + return this.effectiveAppliedLabelsField; + } + set { + this.effectiveAppliedLabelsField = value; + } } - /// Performs actions on CustomField objects that match the - /// given Statement#query. + /// If a line item has a series of competitive exclusions on it, it could be blocked + /// from serving with line items from the same advertiser. Setting this to + /// true will allow line items from the same advertiser to serve + /// regardless of the other competitive exclusion labels being applied.

This + /// attribute is optional and defaults to false.

///
- public virtual Google.Api.Ads.AdManager.v202311.UpdateResult performCustomFieldAction(Google.Api.Ads.AdManager.v202311.CustomFieldAction customFieldAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.performCustomFieldAction(customFieldAction, filterStatement); + [System.Xml.Serialization.XmlElementAttribute(Order = 25)] + public bool disableSameAdvertiserCompetitiveExclusion { + get { + return this.disableSameAdvertiserCompetitiveExclusionField; + } + set { + this.disableSameAdvertiserCompetitiveExclusionField = value; + this.disableSameAdvertiserCompetitiveExclusionSpecified = true; + } } - public virtual System.Threading.Tasks.Task performCustomFieldActionAsync(Google.Api.Ads.AdManager.v202311.CustomFieldAction customFieldAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.performCustomFieldActionAsync(customFieldAction, filterStatement); - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.CustomFieldService.updateCustomFieldOptionsResponse Google.Api.Ads.AdManager.v202311.CustomFieldServiceInterface.updateCustomFieldOptions(Wrappers.CustomFieldService.updateCustomFieldOptionsRequest request) { - return base.Channel.updateCustomFieldOptions(request); - } - - /// Updates the specified CustomFieldOption objects. - /// - public virtual Google.Api.Ads.AdManager.v202311.CustomFieldOption[] updateCustomFieldOptions(Google.Api.Ads.AdManager.v202311.CustomFieldOption[] customFieldOptions) { - Wrappers.CustomFieldService.updateCustomFieldOptionsRequest inValue = new Wrappers.CustomFieldService.updateCustomFieldOptionsRequest(); - inValue.customFieldOptions = customFieldOptions; - Wrappers.CustomFieldService.updateCustomFieldOptionsResponse retVal = ((Google.Api.Ads.AdManager.v202311.CustomFieldServiceInterface)(this)).updateCustomFieldOptions(inValue); - return retVal.rval; - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202311.CustomFieldServiceInterface.updateCustomFieldOptionsAsync(Wrappers.CustomFieldService.updateCustomFieldOptionsRequest request) { - return base.Channel.updateCustomFieldOptionsAsync(request); - } - - public virtual System.Threading.Tasks.Task updateCustomFieldOptionsAsync(Google.Api.Ads.AdManager.v202311.CustomFieldOption[] customFieldOptions) { - Wrappers.CustomFieldService.updateCustomFieldOptionsRequest inValue = new Wrappers.CustomFieldService.updateCustomFieldOptionsRequest(); - inValue.customFieldOptions = customFieldOptions; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202311.CustomFieldServiceInterface)(this)).updateCustomFieldOptionsAsync(inValue)).Result.rval); - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.CustomFieldService.updateCustomFieldsResponse Google.Api.Ads.AdManager.v202311.CustomFieldServiceInterface.updateCustomFields(Wrappers.CustomFieldService.updateCustomFieldsRequest request) { - return base.Channel.updateCustomFields(request); - } - - /// Updates the specified CustomField objects. - /// - public virtual Google.Api.Ads.AdManager.v202311.CustomField[] updateCustomFields(Google.Api.Ads.AdManager.v202311.CustomField[] customFields) { - Wrappers.CustomFieldService.updateCustomFieldsRequest inValue = new Wrappers.CustomFieldService.updateCustomFieldsRequest(); - inValue.customFields = customFields; - Wrappers.CustomFieldService.updateCustomFieldsResponse retVal = ((Google.Api.Ads.AdManager.v202311.CustomFieldServiceInterface)(this)).updateCustomFields(inValue); - return retVal.rval; - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202311.CustomFieldServiceInterface.updateCustomFieldsAsync(Wrappers.CustomFieldService.updateCustomFieldsRequest request) { - return base.Channel.updateCustomFieldsAsync(request); - } - - public virtual System.Threading.Tasks.Task updateCustomFieldsAsync(Google.Api.Ads.AdManager.v202311.CustomField[] customFields) { - Wrappers.CustomFieldService.updateCustomFieldsRequest inValue = new Wrappers.CustomFieldService.updateCustomFieldsRequest(); - inValue.customFields = customFields; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202311.CustomFieldServiceInterface)(this)).updateCustomFieldsAsync(inValue)).Result.rval); - } - } - namespace Wrappers.ForecastService - { - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "getDeliveryForecast", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class getDeliveryForecastRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("lineItems")] - public Google.Api.Ads.AdManager.v202311.ProspectiveLineItem[] lineItems; - - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 1)] - public Google.Api.Ads.AdManager.v202311.DeliveryForecastOptions forecastOptions; - - /// Creates a new instance of the - /// class. - public getDeliveryForecastRequest() { - } - - /// Creates a new instance of the - /// class. - public getDeliveryForecastRequest(Google.Api.Ads.AdManager.v202311.ProspectiveLineItem[] lineItems, Google.Api.Ads.AdManager.v202311.DeliveryForecastOptions forecastOptions) { - this.lineItems = lineItems; - this.forecastOptions = forecastOptions; - } - } - - - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "getDeliveryForecastResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class getDeliveryForecastResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - public Google.Api.Ads.AdManager.v202311.DeliveryForecast rval; - - /// Creates a new instance of the class. - public getDeliveryForecastResponse() { + /// true, if a value is specified for , false + /// otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool disableSameAdvertiserCompetitiveExclusionSpecified { + get { + return this.disableSameAdvertiserCompetitiveExclusionFieldSpecified; } - - /// Creates a new instance of the class. - public getDeliveryForecastResponse(Google.Api.Ads.AdManager.v202311.DeliveryForecast rval) { - this.rval = rval; + set { + this.disableSameAdvertiserCompetitiveExclusionFieldSpecified = value; } } - - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "getDeliveryForecastByIds", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class getDeliveryForecastByIdsRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("lineItemIds")] - public long[] lineItemIds; - - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 1)] - public Google.Api.Ads.AdManager.v202311.DeliveryForecastOptions forecastOptions; - - /// Creates a new instance of the class. - public getDeliveryForecastByIdsRequest() { + /// Indicates whether this ProposalLineItem has been sold. This + /// attribute is read-only. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 26)] + public bool isSold { + get { + return this.isSoldField; } - - /// Creates a new instance of the class. - public getDeliveryForecastByIdsRequest(long[] lineItemIds, Google.Api.Ads.AdManager.v202311.DeliveryForecastOptions forecastOptions) { - this.lineItemIds = lineItemIds; - this.forecastOptions = forecastOptions; + set { + this.isSoldField = value; + this.isSoldSpecified = true; } } - - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "getDeliveryForecastByIdsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class getDeliveryForecastByIdsResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - public Google.Api.Ads.AdManager.v202311.DeliveryForecast rval; - - /// Creates a new instance of the class. - public getDeliveryForecastByIdsResponse() { + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool isSoldSpecified { + get { + return this.isSoldFieldSpecified; } - - /// Creates a new instance of the class. - public getDeliveryForecastByIdsResponse(Google.Api.Ads.AdManager.v202311.DeliveryForecast rval) { - this.rval = rval; + set { + this.isSoldFieldSpecified = value; } } - } - /// A view of the forecast in terms of an alternative unit type.

For example, a - /// forecast for an impressions goal may include this to express the matched, - /// available, and possible viewable impressions.

- ///
- [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class AlternativeUnitTypeForecast { - private UnitType unitTypeField; - private bool unitTypeFieldSpecified; - - private long matchedUnitsField; - - private bool matchedUnitsFieldSpecified; - - private long availableUnitsField; - - private bool availableUnitsFieldSpecified; - - private long possibleUnitsField; - - private bool possibleUnitsFieldSpecified; - - /// The alternative unit type being presented. + /// The amount of money to spend per impression or click in proposal currency. It + /// supports precision of 4 decimal places in terms of the fundamental currency + /// unit, so the Money#getAmountInMicros must be multiples of 100. It + /// doesn't include agency commission.

For example, if Proposal#currencyCode is 'USD', then $123.4567 + /// could be represented as 123456700, but further precision is not supported.

+ ///

The field ProposalLineItem#netRate is + /// required, and used to calculate ProposalLineItem#netCost if + /// unspecified.

///
- [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public UnitType unitType { + [System.Xml.Serialization.XmlElementAttribute(Order = 27)] + public Money netRate { get { - return this.unitTypeField; + return this.netRateField; } set { - this.unitTypeField = value; - this.unitTypeSpecified = true; + this.netRateField = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool unitTypeSpecified { + /// The cost of the ProposalLineItem in proposal currency. It supports + /// precision of 2 decimal places in terms of the fundamental currency unit, so the + /// Money#getAmountInMicros must be multiples of 10000. It doesn't + /// include agency commission.

For example, if Proposal#currencyCode is 'USD', then $123.45 + /// could be represented as 123450000, but further precision is not supported.

+ ///

The field ProposalLineItem#netRate is + /// required, and used to calculate ProposalLineItem#netCost if + /// unspecified.

+ ///
+ [System.Xml.Serialization.XmlElementAttribute(Order = 28)] + public Money netCost { get { - return this.unitTypeFieldSpecified; + return this.netCostField; } set { - this.unitTypeFieldSpecified = value; + this.netCostField = value; } } - /// The number of units, defined by #unitType, that match - /// the specified targeting and delivery settings. + /// Indicates how well the line item generated from this proposal line item has been + /// performing. This will be null if the delivery indicator information + /// is not available due to one of the following reasons:
  1. The proposal line + /// item has not pushed to Ad Manager.
  2. The line item is not + /// delivering.
  3. The line item has an unlimited goal or cap.
  4. The + /// line item has a percentage based goal or cap.
This attribute is + /// read-only. ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public long matchedUnits { + [System.Xml.Serialization.XmlElementAttribute(Order = 29)] + public DeliveryIndicator deliveryIndicator { get { - return this.matchedUnitsField; + return this.deliveryIndicatorField; } set { - this.matchedUnitsField = value; - this.matchedUnitsSpecified = true; + this.deliveryIndicatorField = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool matchedUnitsSpecified { + /// Delivery data provides the number of clicks or impressions delivered for the LineItem generated from this proposal line item in the last + /// 7 days. This will be if the delivery data cannot be computed due + /// to one of the following reasons:
  1. The proposal line item has not pushed + /// to Ad Manager.
  2. The line item is not deliverable.
  3. The line item + /// has completed delivering more than 7 days ago.
  4. The line item has an + /// absolute-based goal. ProposalLineItem#deliveryIndicator + /// should be used to track its progress in this case. This attribute is + /// read-only.
+ ///
+ [System.Xml.Serialization.XmlArrayAttribute(Order = 30)] + [System.Xml.Serialization.XmlArrayItemAttribute("units", IsNullable = false)] + public long[] deliveryData { get { - return this.matchedUnitsFieldSpecified; + return this.deliveryDataField; } set { - this.matchedUnitsFieldSpecified = value; + this.deliveryDataField = value; } } - /// The number of units, defined by #unitType, that can be - /// booked without affecting the delivery of any reserved line items. Exceeding this - /// value will not cause an overbook, but lower-priority line items may not run. + /// The status of the LineItem generated from this proposal + /// line item. This will be null if the proposal line item has not + /// pushed to Ad Manager. This attribute is read-only. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public long availableUnits { + [System.Xml.Serialization.XmlElementAttribute(Order = 31)] + public ComputedStatus computedStatus { get { - return this.availableUnitsField; + return this.computedStatusField; } set { - this.availableUnitsField = value; - this.availableUnitsSpecified = true; + this.computedStatusField = value; + this.computedStatusSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="computedStatus" />, false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool availableUnitsSpecified { + public bool computedStatusSpecified { get { - return this.availableUnitsFieldSpecified; + return this.computedStatusFieldSpecified; } set { - this.availableUnitsFieldSpecified = value; + this.computedStatusFieldSpecified = value; } } - /// The maximum number of units, defined by #unitType, that - /// could be booked by taking inventory away from lower-priority line items. + /// The date and time this ProposalLineItem was last modified.

This + /// attribute is assigned by Google when a is updated. This attribute + /// is read-only.

///
- [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public long possibleUnits { + [System.Xml.Serialization.XmlElementAttribute(Order = 32)] + public DateTime lastModifiedDateTime { get { - return this.possibleUnitsField; + return this.lastModifiedDateTimeField; } set { - this.possibleUnitsField = value; - this.possibleUnitsSpecified = true; + this.lastModifiedDateTimeField = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool possibleUnitsSpecified { + /// The reservation status of the ProposalLineItem. + /// This attribute is read-only. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 33)] + public ReservationStatus reservationStatus { get { - return this.possibleUnitsFieldSpecified; + return this.reservationStatusField; } set { - this.possibleUnitsFieldSpecified = value; + this.reservationStatusField = value; + this.reservationStatusSpecified = true; } } - } - - - /// Indicates the type of unit used for defining a reservation. The CostType can differ from the UnitType - /// - an ad can have an impression goal, but be billed by its click. Usually CostType and UnitType will refer to - /// the same unit. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum UnitType { - /// The number of impressions served by creatives associated with the line item. - /// Line items of all LineItemType support this - /// UnitType. - /// - IMPRESSIONS = 0, - /// The number of clicks reported by creatives associated with the line item. The LineItem#lineItemType must be LineItemType#STANDARD, LineItemType#BULK or LineItemType#PRICE_PRIORITY. - /// - CLICKS = 1, - /// The number of click-through Cost-Per-Action (CPA) conversions from creatives - /// associated with the line item. This is only supported as secondary goal and the - /// LineItem#costType must be CostType#CPA. - /// - CLICK_THROUGH_CPA_CONVERSIONS = 2, - /// The number of view-through Cost-Per-Action (CPA) conversions from creatives - /// associated with the line item. This is only supported as secondary goal and the - /// LineItem#costType must be CostType#CPA. - /// - VIEW_THROUGH_CPA_CONVERSIONS = 3, - /// The number of total Cost-Per-Action (CPA) conversions from creatives associated - /// with the line item. This is only supported as secondary goal and the LineItem#costType must be CostType#CPA. - /// - TOTAL_CPA_CONVERSIONS = 4, - /// The number of viewable impressions reported by creatives associated with the - /// line item. The LineItem#lineItemType must be - /// LineItemType#STANDARD. - /// - VIEWABLE_IMPRESSIONS = 6, - /// The number of in-target impressions reported by third party measurements. The LineItem#lineItemType must be LineItemType#STANDARD. - /// - IN_TARGET_IMPRESSIONS = 7, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 5, - } - - - /// Describes contending line items for a Forecast. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ContendingLineItem { - private long lineItemIdField; - private bool lineItemIdFieldSpecified; - - private long contendingImpressionsField; - - private bool contendingImpressionsFieldSpecified; - - /// The Id of the contending line item. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public long lineItemId { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool reservationStatusSpecified { get { - return this.lineItemIdField; + return this.reservationStatusFieldSpecified; } set { - this.lineItemIdField = value; - this.lineItemIdSpecified = true; + this.reservationStatusFieldSpecified = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool lineItemIdSpecified { + /// The last DateTime when the ProposalLineItem reserved inventory. This attribute + /// is read-only. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 34)] + public DateTime lastReservationDateTime { get { - return this.lineItemIdFieldSpecified; + return this.lastReservationDateTimeField; } set { - this.lineItemIdFieldSpecified = value; + this.lastReservationDateTimeField = value; } } - /// Number of impressions contended for by both the forecasted line item and this - /// line item, but served to this line item in the forecast simulation. + /// The environment that the ProposalLineItem is targeting. The default + /// value is EnvironmentType#BROWSER. If this value is EnvironmentType#VIDEO_PLAYER, then this + /// ProposalLineItem can only target ad units that + /// have sizes whose AdUnitSize#environmentType is also EnvironmentType#VIDEO_PLAYER.

This + /// field is read-only and set to Product#environmentType of the product this + /// proposal line item was created from.

///
- [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public long contendingImpressions { + [System.Xml.Serialization.XmlElementAttribute(Order = 35)] + public EnvironmentType environmentType { get { - return this.contendingImpressionsField; + return this.environmentTypeField; } set { - this.contendingImpressionsField = value; - this.contendingImpressionsSpecified = true; + this.environmentTypeField = value; + this.environmentTypeSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="environmentType" />, false otherwise.
[System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool contendingImpressionsSpecified { + public bool environmentTypeSpecified { get { - return this.contendingImpressionsFieldSpecified; + return this.environmentTypeFieldSpecified; } set { - this.contendingImpressionsFieldSpecified = value; + this.environmentTypeFieldSpecified = value; } } - } - - - /// A single targeting criteria breakdown result. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class TargetingCriteriaBreakdown { - private TargetingDimension targetingDimensionField; - - private bool targetingDimensionFieldSpecified; - - private long targetingCriteriaIdField; - - private bool targetingCriteriaIdFieldSpecified; - - private string targetingCriteriaNameField; - - private bool excludedField; - - private bool excludedFieldSpecified; - - private long availableUnitsField; - - private bool availableUnitsFieldSpecified; - - private long matchedUnitsField; - - private bool matchedUnitsFieldSpecified; - /// The dimension of this breakdown + /// The set of AllowedFormats that this proposal line + /// item can have. If the set is empty, this proposal line item allows all formats. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public TargetingDimension targetingDimension { + [System.Xml.Serialization.XmlElementAttribute("allowedFormats", Order = 36)] + public AllowedFormats[] allowedFormats { get { - return this.targetingDimensionField; + return this.allowedFormatsField; } set { - this.targetingDimensionField = value; - this.targetingDimensionSpecified = true; + this.allowedFormatsField = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool targetingDimensionSpecified { + /// Additional terms shown to the buyer in Marketplace. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 37)] + public string additionalTerms { get { - return this.targetingDimensionFieldSpecified; + return this.additionalTermsField; } set { - this.targetingDimensionFieldSpecified = value; + this.additionalTermsField = value; } } - /// The unique ID of the targeting criteria. + /// Indicates the ProgrammaticCreativeSource of the + /// programmatic line item. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public long targetingCriteriaId { + [System.Xml.Serialization.XmlElementAttribute(Order = 38)] + public ProgrammaticCreativeSource programmaticCreativeSource { get { - return this.targetingCriteriaIdField; + return this.programmaticCreativeSourceField; } set { - this.targetingCriteriaIdField = value; - this.targetingCriteriaIdSpecified = true; + this.programmaticCreativeSourceField = value; + this.programmaticCreativeSourceSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="programmaticCreativeSource" />, false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool targetingCriteriaIdSpecified { + public bool programmaticCreativeSourceSpecified { get { - return this.targetingCriteriaIdFieldSpecified; + return this.programmaticCreativeSourceFieldSpecified; } set { - this.targetingCriteriaIdFieldSpecified = value; + this.programmaticCreativeSourceFieldSpecified = value; } } - /// The name of the targeting criteria. + /// Contains the information for a proposal line item which has a target GRP + /// demographic. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public string targetingCriteriaName { + [System.Xml.Serialization.XmlElementAttribute(Order = 39)] + public GrpSettings grpSettings { get { - return this.targetingCriteriaNameField; + return this.grpSettingsField; } set { - this.targetingCriteriaNameField = value; + this.grpSettingsField = value; } } - /// When true, the breakdown is negative. + /// The estimated minimum impressions that should be delivered for a proposal line + /// item. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public bool excluded { + [System.Xml.Serialization.XmlElementAttribute(Order = 40)] + public long estimatedMinimumImpressions { get { - return this.excludedField; + return this.estimatedMinimumImpressionsField; } set { - this.excludedField = value; - this.excludedSpecified = true; + this.estimatedMinimumImpressionsField = value; + this.estimatedMinimumImpressionsSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool excludedSpecified { + public bool estimatedMinimumImpressionsSpecified { get { - return this.excludedFieldSpecified; + return this.estimatedMinimumImpressionsFieldSpecified; } set { - this.excludedFieldSpecified = value; + this.estimatedMinimumImpressionsFieldSpecified = value; } } - /// The available units for this breakdown. + /// Contains third party measurement settings for cross-sell Partners /// - [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public long availableUnits { + [System.Xml.Serialization.XmlElementAttribute(Order = 41)] + public ThirdPartyMeasurementSettings thirdPartyMeasurementSettings { get { - return this.availableUnitsField; + return this.thirdPartyMeasurementSettingsField; } set { - this.availableUnitsField = value; - this.availableUnitsSpecified = true; + this.thirdPartyMeasurementSettingsField = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool availableUnitsSpecified { + /// Makegood info for this proposal line item. Immutable once created.

Null if + /// this proposal line item is not a makegood.

+ ///
+ [System.Xml.Serialization.XmlElementAttribute(Order = 42)] + public ProposalLineItemMakegoodInfo makegoodInfo { get { - return this.availableUnitsFieldSpecified; + return this.makegoodInfoField; } set { - this.availableUnitsFieldSpecified = value; + this.makegoodInfoField = value; } } - /// The matched units for this breakdown. + /// Whether this proposal line item has an associated makegood. This attribute is + /// read-only. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 5)] - public long matchedUnits { + [System.Xml.Serialization.XmlElementAttribute(Order = 43)] + public bool hasMakegood { get { - return this.matchedUnitsField; + return this.hasMakegoodField; } set { - this.matchedUnitsField = value; - this.matchedUnitsSpecified = true; + this.hasMakegoodField = value; + this.hasMakegoodSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool matchedUnitsSpecified { + public bool hasMakegoodSpecified { get { - return this.matchedUnitsFieldSpecified; + return this.hasMakegoodFieldSpecified; } set { - this.matchedUnitsFieldSpecified = value; + this.hasMakegoodFieldSpecified = value; } } - } - - /// Targeting dimension of targeting breakdowns. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum TargetingDimension { - CUSTOM_CRITERIA = 0, - GEOGRAPHY = 1, - BROWSER = 2, - BROWSER_LANGUAGE = 3, - BANDWIDTH_GROUP = 4, - OPERATING_SYSTEM = 5, - USER_DOMAIN = 6, - CONTENT = 7, - VIDEO_POSITION = 8, - AD_SIZE = 9, - AD_UNIT = 10, - PLACEMENT = 11, - MOBILE_CARRIER = 12, - DEVICE_CAPABILITY = 13, - DEVICE_CATEGORY = 14, - DEVICE_MANUFACTURER = 15, - MOBILE_APPLICATION = 17, - FORECASTED_CREATIVE_RESTRICTION = 18, - /// The value returned if the actual value is not exposed by the requested API - /// version. + /// Whether a new makegood associated with this line item can be created. This + /// attribute is read-only. /// - UNKNOWN = 16, - } - - - /// Represents a single delivery data point, with both available and forecast - /// number. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class BreakdownForecast { - private long matchedField; - - private bool matchedFieldSpecified; - - private long availableField; - - private bool availableFieldSpecified; - - private long possibleField; - - private bool possibleFieldSpecified; - - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public long matched { + [System.Xml.Serialization.XmlElementAttribute(Order = 44)] + public bool canCreateMakegood { get { - return this.matchedField; + return this.canCreateMakegoodField; } set { - this.matchedField = value; - this.matchedSpecified = true; + this.canCreateMakegoodField = value; + this.canCreateMakegoodSpecified = true; } } - /// true, if a value is specified for , - /// false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool matchedSpecified { + public bool canCreateMakegoodSpecified { get { - return this.matchedFieldSpecified; + return this.canCreateMakegoodFieldSpecified; } set { - this.matchedFieldSpecified = value; + this.canCreateMakegoodFieldSpecified = value; } } - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public long available { + /// The NegotiationRole that paused the proposal line + /// item, i.e. NegotiationRole#seller or NegotiationRole#buyer, or null + /// when the proposal is not paused. This attribute is read-only. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 45)] + public NegotiationRole pauseRole { get { - return this.availableField; + return this.pauseRoleField; } set { - this.availableField = value; - this.availableSpecified = true; + this.pauseRoleField = value; + this.pauseRoleSpecified = true; } } - /// true, if a value is specified for true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool availableSpecified { - get { - return this.availableFieldSpecified; - } - set { - this.availableFieldSpecified = value; - } - } - - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public long possible { + public bool pauseRoleSpecified { get { - return this.possibleField; + return this.pauseRoleFieldSpecified; } set { - this.possibleField = value; - this.possibleSpecified = true; + this.pauseRoleFieldSpecified = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool possibleSpecified { + /// The reason for pausing the ProposalLineItem, + /// provided by the pauseRole. It is null when + /// the ProposalLineItem is not paused. This + /// attribute is read-only. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 46)] + public string pauseReason { get { - return this.possibleFieldSpecified; + return this.pauseReasonField; } set { - this.possibleFieldSpecified = value; + this.pauseReasonField = value; } } } - /// A single forecast breakdown entry. + /// Defines the criteria a LineItem needs to satisfy to meet + /// its delivery goal. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ForecastBreakdownEntry { - private string nameField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class Goal { + private GoalType goalTypeField; - private BreakdownForecast forecastField; + private bool goalTypeFieldSpecified; - /// The optional name of this entry, as specified in the corresponding ForecastBreakdownTarget#name field. + private UnitType unitTypeField; + + private bool unitTypeFieldSpecified; + + private long unitsField; + + private bool unitsFieldSpecified; + + /// The type of the goal for the LineItem. It defines the period over + /// which the goal for LineItem should be reached. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public string name { + public GoalType goalType { get { - return this.nameField; + return this.goalTypeField; } set { - this.nameField = value; + this.goalTypeField = value; + this.goalTypeSpecified = true; } } - /// The forecast of this entry. + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool goalTypeSpecified { + get { + return this.goalTypeFieldSpecified; + } + set { + this.goalTypeFieldSpecified = value; + } + } + + /// The type of the goal unit for the LineItem. /// [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public BreakdownForecast forecast { + public UnitType unitType { get { - return this.forecastField; + return this.unitTypeField; } set { - this.forecastField = value; + this.unitTypeField = value; + this.unitTypeSpecified = true; } } - } - - - /// Represents the breakdown entries for a list of targetings and/or creatives. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ForecastBreakdown { - private DateTime startTimeField; - private DateTime endTimeField; - - private ForecastBreakdownEntry[] breakdownEntriesField; - - /// The starting time of the represented breakdown. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public DateTime startTime { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool unitTypeSpecified { get { - return this.startTimeField; + return this.unitTypeFieldSpecified; } set { - this.startTimeField = value; + this.unitTypeFieldSpecified = value; } } - /// The end time of the represented breakdown. + /// If this is a primary goal, it represents the number or percentage of impressions + /// or clicks that will be reserved for the . If the line item is of + /// type LineItemType#SPONSORSHIP, it represents the percentage of + /// available impressions reserved. If the line item is of type LineItemType#BULK or LineItemType#PRICE_PRIORITY, it + /// represents the number of remaining impressions reserved. If the line item is of + /// type LineItemType#NETWORK or LineItemType#HOUSE, it represents the percentage + /// of remaining impressions reserved.

If this is a secondary goal, it represents + /// the number of impressions or conversions that the line item will stop serving at + /// if reached. For valid line item types, see LineItem#secondaryGoals.

///
- [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public DateTime endTime { + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public long units { get { - return this.endTimeField; + return this.unitsField; } set { - this.endTimeField = value; + this.unitsField = value; + this.unitsSpecified = true; } } - /// The forecast breakdown entries in the same order as in the ForecastBreakdownOptions#targets field. - /// - [System.Xml.Serialization.XmlElementAttribute("breakdownEntries", Order = 2)] - public ForecastBreakdownEntry[] breakdownEntries { + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool unitsSpecified { get { - return this.breakdownEntriesField; + return this.unitsFieldSpecified; } set { - this.breakdownEntriesField = value; + this.unitsFieldSpecified = value; } } } - /// Describes predicted inventory availability for a ProspectiveLineItem.

Inventory has three - /// threshold values along a line of possible inventory. From least to most, these - /// are:

  • Available units -- How many units can be booked without - /// affecting any other line items. Booking more than this number can cause lower - /// and same priority line items to underdeliver.
  • Possible units -- How - /// many units can be booked without affecting any higher priority line items. - /// Booking more than this number can cause the line item to underdeliver.
  • - ///
  • Matched (forecast) units -- How many units satisfy all specified - /// criteria.

Underdelivery is caused by overbooking. However, if more - /// impressions are served than are predicted, the extra available inventory might - /// enable all inventory guarantees to be met without overbooking.

+ /// Specifies the type of the goal for a LineItem. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class AvailabilityForecast { - private long lineItemIdField; - - private bool lineItemIdFieldSpecified; - - private long orderIdField; - - private bool orderIdFieldSpecified; - - private UnitType unitTypeField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum GoalType { + /// No goal is specified for the number of ads delivered. The LineItem#lineItemType must be one of: + /// + NONE = 0, + /// There is a goal on the number of ads delivered for this line item during its + /// entire lifetime. The LineItem#lineItemType + /// must be one of: + /// + LIFETIME = 1, + /// There is a daily goal on the number of ads delivered for this line item. The LineItem#lineItemType must be one of: + /// + DAILY = 2, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 3, + } - private bool unitTypeFieldSpecified; - private long availableUnitsField; + /// Possible delivery rates for a LineItem, which dictate the + /// manner in which they are served. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum DeliveryRateType { + /// Line items are served as evenly as possible across the number of days specified + /// in a line item's LineItem#duration. + /// + EVENLY = 0, + /// Line items are served more aggressively in the beginning of the flight date. + /// + FRONTLOADED = 1, + /// The booked impressions for a line item may be delivered well before the LineItem#endDateTime. Other lower-priority or + /// lower-value line items will be stopped from delivering until this line item + /// meets the number of impressions or clicks it is booked for. + /// + AS_FAST_AS_POSSIBLE = 2, + } - private bool availableUnitsFieldSpecified; - private long deliveredUnitsField; + /// Describes the roadblocking types. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum RoadblockingType { + /// Only one creative from a line item can serve at a time. + /// + ONLY_ONE = 0, + /// Any number of creatives from a line item can serve together at a time. + /// + ONE_OR_MORE = 1, + /// As many creatives from a line item as can fit on a page will serve. This could + /// mean anywhere from one to all of a line item's creatives given the size + /// constraints of ad slots on a page. + /// + AS_MANY_AS_POSSIBLE = 2, + /// All or none of the creatives from a line item will serve. This option will only + /// work if served to a GPT tag using SRA (single request architecture mode). + /// + ALL_ROADBLOCK = 3, + /// A master/companion CreativeSet roadblocking type. A LineItem#creativePlaceholders must be + /// set accordingly. + /// + CREATIVE_SET = 4, + } - private bool deliveredUnitsFieldSpecified; - private long matchedUnitsField; + /// The delivery option for companions. Used for line items whose environmentType is + /// EnvironmentType#VIDEO_PLAYER. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum CompanionDeliveryOption { + /// Companions are not required to serve a creative set. The creative set can serve + /// to inventory that has zero or more matching companions. + /// + OPTIONAL = 0, + /// At least one companion must be served in order for the creative set to be used. + /// + AT_LEAST_ONE = 1, + /// All companions in the set must be served in order for the creative set to be + /// used. This can still serve to inventory that has more companions than can be + /// filled. + /// + ALL = 2, + /// The delivery type is unknown. + /// + UNKNOWN = 3, + } - private bool matchedUnitsFieldSpecified; - private long possibleUnitsField; + /// The different types of skippable ads. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum SkippableAdType { + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 0, + /// Skippable ad type is disabled. + /// + DISABLED = 1, + /// Skippable ad type is enabled. + /// + ENABLED = 2, + /// Skippable in-stream ad type. + /// + INSTREAM_SELECT = 3, + /// Any skippable or not skippable. This is only for programmatic case when the + /// creative skippability is decided by the buyside. + /// + ANY = 4, + } - private bool possibleUnitsFieldSpecified; - private long reservedUnitsField; + /// Represents a limit on the number of times a single viewer can be exposed to the + /// same LineItem in a specified time period. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class FrequencyCap { + private int maxImpressionsField; - private bool reservedUnitsFieldSpecified; + private bool maxImpressionsFieldSpecified; - private ForecastBreakdown[] breakdownsField; + private int numTimeUnitsField; - private TargetingCriteriaBreakdown[] targetingCriteriaBreakdownsField; + private bool numTimeUnitsFieldSpecified; - private ContendingLineItem[] contendingLineItemsField; + private TimeUnit timeUnitField; - private AlternativeUnitTypeForecast[] alternativeUnitTypeForecastsField; + private bool timeUnitFieldSpecified; - /// Uniquely identifies this availability forecast. This value is read-only and is - /// assigned by Google when the forecast is created. The attribute will be either - /// the ID of the LineItem object it represents, or null - /// if the forecast represents a prospective line item. + /// The maximum number of impressions than can be served to a user within a + /// specified time period. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public long lineItemId { + public int maxImpressions { get { - return this.lineItemIdField; + return this.maxImpressionsField; } set { - this.lineItemIdField = value; - this.lineItemIdSpecified = true; + this.maxImpressionsField = value; + this.maxImpressionsSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool lineItemIdSpecified { + public bool maxImpressionsSpecified { get { - return this.lineItemIdFieldSpecified; + return this.maxImpressionsFieldSpecified; } set { - this.lineItemIdFieldSpecified = value; + this.maxImpressionsFieldSpecified = value; } } - /// The unique ID for the Order object that this line item - /// belongs to, or null if the forecast represents a prospective line - /// item without an LineItem#orderId set. - /// + /// The number of FrequencyCap#timeUnit to represent the total time + /// period. + /// [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public long orderId { + public int numTimeUnits { get { - return this.orderIdField; + return this.numTimeUnitsField; } set { - this.orderIdField = value; - this.orderIdSpecified = true; + this.numTimeUnitsField = value; + this.numTimeUnitsSpecified = true; } } - /// true, if a value is specified for , - /// false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool orderIdSpecified { + public bool numTimeUnitsSpecified { get { - return this.orderIdFieldSpecified; + return this.numTimeUnitsFieldSpecified; } set { - this.orderIdFieldSpecified = value; + this.numTimeUnitsFieldSpecified = value; } } - /// The unit with which the goal or cap of the LineItem is - /// defined. Will be the same value as Goal#unitType for - /// both a set line item or a prospective one. + /// The unit of time for specifying the time period. /// [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public UnitType unitType { + public TimeUnit timeUnit { get { - return this.unitTypeField; + return this.timeUnitField; } set { - this.unitTypeField = value; - this.unitTypeSpecified = true; + this.timeUnitField = value; + this.timeUnitSpecified = true; } } - /// true, if a value is specified for true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool unitTypeSpecified { + public bool timeUnitSpecified { get { - return this.unitTypeFieldSpecified; + return this.timeUnitFieldSpecified; } set { - this.unitTypeFieldSpecified = value; + this.timeUnitFieldSpecified = value; } } + } - /// The number of units, defined by Goal#unitType, that - /// can be booked without affecting the delivery of any reserved line items. - /// Exceeding this value will not cause an overbook, but lower priority line items - /// may not run. + + /// Represent the possible time units for frequency capping. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum TimeUnit { + MINUTE = 0, + HOUR = 1, + DAY = 2, + WEEK = 3, + MONTH = 4, + LIFETIME = 5, + /// Per pod of ads in a video stream. Only valid for entities in a EnvironmentType#VIDEO_PLAYER + /// environment. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public long availableUnits { - get { - return this.availableUnitsField; - } - set { - this.availableUnitsField = value; - this.availableUnitsSpecified = true; - } - } + POD = 6, + /// Per video stream. Only valid for entities in a EnvironmentType#VIDEO_PLAYER + /// environment. + /// + STREAM = 7, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 8, + } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool availableUnitsSpecified { - get { - return this.availableUnitsFieldSpecified; - } - set { - this.availableUnitsFieldSpecified = value; - } - } - /// The number of units, defined by Goal#unitType, that - /// have already been served if the reservation is already running. + /// Describes the type of event the advertiser is paying for. The values here + /// correspond to the values for the LineItem#costType field. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum RateType { + /// The rate applies to cost per mille (CPM) revenue. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public long deliveredUnits { - get { - return this.deliveredUnitsField; - } - set { - this.deliveredUnitsField = value; - this.deliveredUnitsSpecified = true; - } - } + CPM = 0, + /// The rate applies to cost per day (CPD) revenue. + /// + CPD = 2, + /// The rate applies to Active View viewable cost per mille (vCPM) revenue. + /// + VCPM = 6, + /// The rate applies to cost per mille in-target (CPM In-Target). + /// + CPM_IN_TARGET = 7, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 5, + } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool deliveredUnitsSpecified { - get { - return this.deliveredUnitsFieldSpecified; - } - set { - this.deliveredUnitsFieldSpecified = value; - } - } - /// The number of units, defined by Goal#unitType, that - /// match the specified targeting and delivery settings. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 5)] - public long matchedUnits { - get { - return this.matchedUnitsField; - } - set { - this.matchedUnitsField = value; - this.matchedUnitsSpecified = true; - } - } + /// The value of a CustomField for a particular entity. + /// + [System.Xml.Serialization.XmlIncludeAttribute(typeof(DropDownCustomFieldValue))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(CustomFieldValue))] + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public abstract partial class BaseCustomFieldValue { + private long customFieldIdField; - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool matchedUnitsSpecified { - get { - return this.matchedUnitsFieldSpecified; - } - set { - this.matchedUnitsFieldSpecified = value; - } - } + private bool customFieldIdFieldSpecified; - /// The maximum number of units, defined by Goal#unitType, that could be booked by taking inventory - /// away from lower priority line items and some same priority line items.

Please - /// note: booking this number may cause lower priority line items and some same - /// priority line items to underdeliver.

+ /// Id of the CustomField to which this value belongs. This attribute + /// is required. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 6)] - public long possibleUnits { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public long customFieldId { get { - return this.possibleUnitsField; + return this.customFieldIdField; } set { - this.possibleUnitsField = value; - this.possibleUnitsSpecified = true; + this.customFieldIdField = value; + this.customFieldIdSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="customFieldId" />, false otherwise.
[System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool possibleUnitsSpecified { + public bool customFieldIdSpecified { get { - return this.possibleUnitsFieldSpecified; + return this.customFieldIdFieldSpecified; } set { - this.possibleUnitsFieldSpecified = value; + this.customFieldIdFieldSpecified = value; } } + } - /// The number of reserved units, defined by Goal#unitType, requested. This can be an absolute or - /// percentage value. + + /// A CustomFieldValue for a CustomField that has a CustomField#dataType of CustomFieldDataType#DROP_DOWN + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class DropDownCustomFieldValue : BaseCustomFieldValue { + private long customFieldOptionIdField; + + private bool customFieldOptionIdFieldSpecified; + + /// The ID of the CustomFieldOption for this value. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 7)] - public long reservedUnits { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public long customFieldOptionId { get { - return this.reservedUnitsField; + return this.customFieldOptionIdField; } set { - this.reservedUnitsField = value; - this.reservedUnitsSpecified = true; + this.customFieldOptionIdField = value; + this.customFieldOptionIdSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="customFieldOptionId" />, false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool reservedUnitsSpecified { - get { - return this.reservedUnitsFieldSpecified; - } - set { - this.reservedUnitsFieldSpecified = value; - } - } - - /// The breakdowns for each time window defined in ForecastBreakdownOptions#timeWindows. - ///

If no breakdown was requested through AvailabilityForecastOptions#breakdown, - /// this field will be empty. If targeting breakdown was requested by ForecastBreakdownOptions#targets - /// with no time breakdown, this list will contain a single ForecastBreakdown corresponding to the time window - /// of the forecasted LineItem. Otherwise, each time window - /// defined by ForecastBreakdownOptions#timeWindows - /// will correspond to one ForecastBreakdown in the - /// same order. Targeting breakdowns for every time window are returned in ForecastBreakdown#breakdownEntries. - /// Some examples: For a targeting breakdown in the form of {IU=B, - /// creative=1x1]}}, the #breakdowns field may look - /// like: [ForecastBreakdown{breakdownEntries=[availableUnits=10, - /// availableUnits=20]]} where the entries correspond to } and - /// {IU=B, creative=1x1} respectively. For a time breakdown in the form - /// of 2am, 3am]}, the field may look like:

-		///  [ ForecastBreakdown{startTime=1am, endTime=2am,
-		/// breakdownEntries=[availableUnits=10], ForecastBreakdown{startTime=2am,
-		/// endTime=3am, breakdownEntries=[availableUnits=20]} ] } 
where the two #ForecastBreakdown correspond to the [1am, 2am) - /// and [2am, 3am) time windows respecively. For a two-dimensional breakdown in the - /// form of 2am, 3am], targets=[IU=A, IU=B], the - /// breakdowns field may look like:
  [
-		/// ForecastBreakdown{startTime=1am, endTime=2am,
-		/// breakdownEntries=[availableUnits=10, availableUnits=100],
-		/// ForecastBreakdown{startTime=2am, endTime=3am,
-		/// breakdownEntries=[availableUnits=20, availableUnits=200]} ] } 
where the - /// first ForecastBreakdown respresents the [1am, 2am) time window with two entries - /// for the IU A and IU B respectively; and the second ForecastBreakdown represents - /// the [2am, 3am) time window also with two entries corresponding to the two IUs. - ///
- [System.Xml.Serialization.XmlElementAttribute("breakdowns", Order = 8)] - public ForecastBreakdown[] breakdowns { + public bool customFieldOptionIdSpecified { get { - return this.breakdownsField; + return this.customFieldOptionIdFieldSpecified; } set { - this.breakdownsField = value; + this.customFieldOptionIdFieldSpecified = value; } } + } - /// The forecast result broken down by the targeting of the forecasted line item. - /// - [System.Xml.Serialization.XmlElementAttribute("targetingCriteriaBreakdowns", Order = 9)] - public TargetingCriteriaBreakdown[] targetingCriteriaBreakdowns { - get { - return this.targetingCriteriaBreakdownsField; - } - set { - this.targetingCriteriaBreakdownsField = value; - } - } - /// List of contending line items for this - /// forecast. - /// - [System.Xml.Serialization.XmlElementAttribute("contendingLineItems", Order = 10)] - public ContendingLineItem[] contendingLineItems { - get { - return this.contendingLineItemsField; - } - set { - this.contendingLineItemsField = value; - } - } + /// The value of a CustomField that does not have a CustomField#dataType of CustomFieldDataType#DROP_DOWN. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class CustomFieldValue : BaseCustomFieldValue { + private Value valueField; - /// Views of this forecast, with alternative unit types. + /// The value for this field. The appropriate type of Value is + /// determined by the CustomField#dataType of the that + /// this conforms to.
CustomFieldDataType Value type
STRING TextValue
NUMBER NumberValue
TOGGLE BooleanValue
///
- [System.Xml.Serialization.XmlElementAttribute("alternativeUnitTypeForecasts", Order = 11)] - public AlternativeUnitTypeForecast[] alternativeUnitTypeForecasts { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public Value value { get { - return this.alternativeUnitTypeForecastsField; + return this.valueField; } set { - this.alternativeUnitTypeForecastsField = value; + this.valueField = value; } } } - /// Specifies inventory targeted by a breakdown entry. + /// Represents a money amount. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ForecastBreakdownTarget { - private string nameField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class Money { + private string currencyCodeField; - private Targeting targetingField; + private long microAmountField; - private CreativePlaceholder creativeField; + private bool microAmountFieldSpecified; - /// An optional name for this breakdown target, to be populated in the corresponding - /// ForecastBreakdownEntry#name field. + /// Three letter currency code in string format. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public string name { + public string currencyCode { get { - return this.nameField; + return this.currencyCodeField; } set { - this.nameField = value; + this.currencyCodeField = value; } } - /// If specified, the targeting for this breakdown. + /// Money values are always specified in terms of micros which are a millionth of + /// the fundamental currency unit. For US dollars, $1 is 1,000,000 micros. /// [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public Targeting targeting { + public long microAmount { get { - return this.targetingField; + return this.microAmountField; } set { - this.targetingField = value; + this.microAmountField = value; + this.microAmountSpecified = true; } } - /// If specified, restrict the breakdown to only inventory matching this creative. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public CreativePlaceholder creative { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool microAmountSpecified { get { - return this.creativeField; + return this.microAmountFieldSpecified; } set { - this.creativeField = value; + this.microAmountFieldSpecified = value; } } } - /// Contains targeting criteria for LineItem objects. See LineItem#targeting. + /// Indicates the delivery performance of the LineItem. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class Targeting { - private GeoTargeting geoTargetingField; - - private InventoryTargeting inventoryTargetingField; - - private DayPartTargeting dayPartTargetingField; - - private DateTimeRange[] dateTimeRangeTargetingField; - - private TechnologyTargeting technologyTargetingField; - - private CustomCriteriaSet customTargetingField; - - private UserDomainTargeting userDomainTargetingField; - - private ContentTargeting contentTargetingField; - - private VideoPositionTargeting videoPositionTargetingField; - - private MobileApplicationTargeting mobileApplicationTargetingField; - - private BuyerUserListTargeting buyerUserListTargetingField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class DeliveryIndicator { + private double expectedDeliveryPercentageField; - private InventoryUrlTargeting inventoryUrlTargetingField; + private bool expectedDeliveryPercentageFieldSpecified; - private RequestPlatformTargeting requestPlatformTargetingField; + private double actualDeliveryPercentageField; - private InventorySizeTargeting inventorySizeTargetingField; + private bool actualDeliveryPercentageFieldSpecified; - /// Specifies what geographical locations are targeted by the LineItem. This attribute is optional. + /// How much the LineItem was expected to deliver as a percentage of LineItem#primaryGoal. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public GeoTargeting geoTargeting { + public double expectedDeliveryPercentage { get { - return this.geoTargetingField; + return this.expectedDeliveryPercentageField; } set { - this.geoTargetingField = value; + this.expectedDeliveryPercentageField = value; + this.expectedDeliveryPercentageSpecified = true; } } - /// Specifies what inventory is targeted by the LineItem. - /// This attribute is required. The line item must target at least one ad unit or - /// placement. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public InventoryTargeting inventoryTargeting { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool expectedDeliveryPercentageSpecified { get { - return this.inventoryTargetingField; + return this.expectedDeliveryPercentageFieldSpecified; } set { - this.inventoryTargetingField = value; + this.expectedDeliveryPercentageFieldSpecified = value; } } - /// Specifies the days of the week and times that are targeted by the LineItem. This attribute is optional. + /// How much the line item actually delivered as a percentage of LineItem#primaryGoal. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public DayPartTargeting dayPartTargeting { + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public double actualDeliveryPercentage { get { - return this.dayPartTargetingField; + return this.actualDeliveryPercentageField; } set { - this.dayPartTargetingField = value; + this.actualDeliveryPercentageField = value; + this.actualDeliveryPercentageSpecified = true; } } - /// Specifies the dates and time ranges that are targeted by the LineItem. This attribute is optional. - /// - [System.Xml.Serialization.XmlArrayAttribute(Order = 3)] - [System.Xml.Serialization.XmlArrayItemAttribute("targetedDateTimeRanges", IsNullable = false)] - public DateTimeRange[] dateTimeRangeTargeting { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool actualDeliveryPercentageSpecified { get { - return this.dateTimeRangeTargetingField; + return this.actualDeliveryPercentageFieldSpecified; } set { - this.dateTimeRangeTargetingField = value; + this.actualDeliveryPercentageFieldSpecified = value; } } + } - /// Specifies the browsing technologies that are targeted by the LineItem. This attribute is optional. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public TechnologyTargeting technologyTargeting { - get { - return this.technologyTargetingField; - } - set { - this.technologyTargetingField = value; - } - } - /// Specifies the collection of custom criteria that is targeted by the LineItem.

Once the LineItem is - /// updated or modified with custom targeting, the server may return a normalized, - /// but equivalent representation of the custom targeting expression.

- ///

customTargeting will have up to three levels of expressions - /// including itself.

The top level CustomCriteriaSet i.e. the - /// object can only contain a CustomCriteriaSet.LogicalOperator#OR - /// of all its children.

The second level of CustomCriteriaSet - /// objects can only contain CustomCriteriaSet.LogicalOperator#AND of - /// all their children. If a CustomCriteria is placed - /// on this level, the server will wrap it in a CustomCriteriaSet.

The third level can only - /// comprise of CustomCriteria objects.

The - /// resulting custom targeting tree would be of the form:

+ /// Describes the computed LineItem status that is derived + /// from the current state of the line item. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum ComputedStatus { + /// The LineItem has past its LineItem#endDateTime with an auto extension, but + /// hasn't met its goal. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 5)] - public CustomCriteriaSet customTargeting { - get { - return this.customTargetingField; - } - set { - this.customTargetingField = value; - } - } - - /// Specifies the domains or subdomains that are targeted or excluded by the LineItem. Users visiting from an IP address associated with - /// those domains will be targeted or excluded. This attribute is optional. + DELIVERY_EXTENDED = 0, + /// The LineItem has begun serving. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 6)] - public UserDomainTargeting userDomainTargeting { - get { - return this.userDomainTargetingField; - } - set { - this.userDomainTargetingField = value; - } - } - - /// Specifies the video categories and individual videos targeted by the LineItem. + DELIVERING = 1, + /// The LineItem has been activated and is ready to serve. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 7)] - public ContentTargeting contentTargeting { - get { - return this.contentTargetingField; - } - set { - this.contentTargetingField = value; - } - } - - /// Specifies targeting against video position types. + READY = 2, + /// The LineItem has been paused from serving. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 8)] - public VideoPositionTargeting videoPositionTargeting { - get { - return this.videoPositionTargetingField; - } - set { - this.videoPositionTargetingField = value; - } - } - - /// Specifies targeting against mobile applications. + PAUSED = 3, + /// The LineItem is inactive. It is either caused by missing + /// creatives or the network disabling auto-activation. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 9)] - public MobileApplicationTargeting mobileApplicationTargeting { - get { - return this.mobileApplicationTargetingField; - } - set { - this.mobileApplicationTargetingField = value; - } - } - - /// Specifies whether buyer user lists are targeted on a programmatic LineItem or ProposalLineItem. This attribute - /// is readonly and is populated by Google. + INACTIVE = 4, + /// The LineItem has been paused and its reserved inventory + /// has been released. The LineItem will not serve. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 10)] - public BuyerUserListTargeting buyerUserListTargeting { - get { - return this.buyerUserListTargetingField; - } - set { - this.buyerUserListTargetingField = value; - } - } - - /// Specifies the URLs that are targeted by the entity. This is currently only - /// supported by YieldGroup. + PAUSED_INVENTORY_RELEASED = 5, + /// The LineItem has been submitted for approval. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 11)] - public InventoryUrlTargeting inventoryUrlTargeting { - get { - return this.inventoryUrlTargetingField; - } - set { - this.inventoryUrlTargetingField = value; - } - } - - /// Specifies the request platforms that are targeted by the LineItem. This attribute is required for video line items - /// and for ProposalLineItem.

This value is - /// modifiable for video line items, but read-only for non-video line items.

- ///

This value is read-only for video line items generated from proposal line - /// items.

+ PENDING_APPROVAL = 6, + /// The LineItem has completed its run. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 12)] - public RequestPlatformTargeting requestPlatformTargeting { - get { - return this.requestPlatformTargetingField; - } - set { - this.requestPlatformTargetingField = value; - } - } + COMPLETED = 7, + /// The LineItem has been disapproved and is not eligible to + /// serve. + /// + DISAPPROVED = 8, + /// The LineItem is still being drafted. + /// + DRAFT = 9, + /// The LineItem has been canceled and is no longer eligible + /// to serve. This is a legacy status imported from Google Ad Manager orders. + /// + CANCELED = 10, + } - /// Specifies the sizes that are targeted by the entity. This is currently only - /// supported on YieldGroup and TrafficDataRequest. + + /// Represents the inventory reservation status for ProposalLineItem objects. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum ReservationStatus { + /// The inventory is reserved. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 13)] - public InventorySizeTargeting inventorySizeTargeting { - get { - return this.inventorySizeTargetingField; - } - set { - this.inventorySizeTargetingField = value; - } - } + RESERVED = 0, + /// The proposal line item's inventory is never reserved. + /// + NOT_RESERVED = 1, + /// The inventory is once reserved and now released. + /// + RELEASED = 2, + /// The reservation status of the corresponding LineItem + /// should be used for this ProposalLineItem. + /// + CHECK_LINE_ITEM_RESERVATION_STATUS = 5, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 4, } - /// Provides line items the ability to target geographical locations. By default, - /// line items target all countries and their subdivisions. With geographical - /// targeting, you can target line items to specific countries, regions, metro - /// areas, and cities. You can also exclude the same.

The following rules apply - /// for geographical targeting:

  • You cannot target and exclude the same - /// location.
  • You cannot target a child whose parent has been excluded. For - /// example, if the state of Illinois has been excluded, then you cannot target - /// Chicago.
  • You must not target a location if you are also targeting its - /// parent. For example, if you are targeting New York City, you must not have the - /// state of New York as one of the targeted locations.
  • You cannot - /// explicitly define inclusions or exclusions that are already implicit. For - /// example, if you explicitly include California, you implicitly exclude all other - /// states. You therefore cannot explicitly exclude Florida, because it is already - /// implicitly excluded. Conversely if you explicitly exclude Florida, you cannot - /// explicitly include California.
+ /// Enum for the valid environments in which ads can be shown. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class GeoTargeting { - private Location[] targetedLocationsField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum EnvironmentType { + /// A regular web browser. + /// + BROWSER = 0, + /// Video players. + /// + VIDEO_PLAYER = 1, + } - private Location[] excludedLocationsField; - /// The geographical locations being targeted by the LineItem. + /// The formats that a publisher allows on their programmatic LineItem or ProposalLineItem. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum AllowedFormats { + /// Audio format. This is only relevant for programmatic video line items. /// - [System.Xml.Serialization.XmlElementAttribute("targetedLocations", Order = 0)] - public Location[] targetedLocations { - get { - return this.targetedLocationsField; - } - set { - this.targetedLocationsField = value; - } - } + AUDIO = 0, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 1, + } - /// The geographical locations being excluded by the LineItem. + + /// Types of programmatic creative sources. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum ProgrammaticCreativeSource { + /// Indicates that the programmatic line item is associated with creatives provided + /// by the publisher. /// - [System.Xml.Serialization.XmlElementAttribute("excludedLocations", Order = 1)] - public Location[] excludedLocations { - get { - return this.excludedLocationsField; - } - set { - this.excludedLocationsField = value; - } - } + PUBLISHER = 0, + /// Indicates that the programmatic line item is associated with creatives provided + /// by the advertiser. + /// + ADVERTISER = 1, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 2, } - /// A Location represents a geographical entity that can be - /// targeted. If a location type is not available because of the API version you are - /// using, the location will be represented as just the base class, otherwise it - /// will be sub-classed correctly. + /// GrpSettings contains information for a line item that will have a + /// target demographic when serving. This information will be used to set up + /// tracking and enable reporting on the demographic information. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class Location { - private long idField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class GrpSettings { + private long minTargetAgeField; - private bool idFieldSpecified; + private bool minTargetAgeFieldSpecified; - private string typeField; + private long maxTargetAgeField; - private int canonicalParentIdField; + private bool maxTargetAgeFieldSpecified; - private bool canonicalParentIdFieldSpecified; + private GrpTargetGender targetGenderField; - private string displayNameField; + private bool targetGenderFieldSpecified; - /// Uniquely identifies each Location. + private GrpProvider providerField; + + private bool providerFieldSpecified; + + private long inTargetRatioEstimateMilliPercentField; + + private bool inTargetRatioEstimateMilliPercentFieldSpecified; + + private NielsenCtvPacingType nielsenCtvPacingTypeField; + + private bool nielsenCtvPacingTypeFieldSpecified; + + private PacingDeviceCategorizationType pacingDeviceCategorizationTypeField; + + private bool pacingDeviceCategorizationTypeFieldSpecified; + + private bool applyTrueCoviewField; + + private bool applyTrueCoviewFieldSpecified; + + /// Specifies the minimum target age (in years) of the LineItem. This field is only applicable if #provider is not null. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public long id { + public long minTargetAge { get { - return this.idField; + return this.minTargetAgeField; } set { - this.idField = value; - this.idSpecified = true; + this.minTargetAgeField = value; + this.minTargetAgeSpecified = true; } } - /// true, if a value is specified for , - /// false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool idSpecified { + public bool minTargetAgeSpecified { get { - return this.idFieldSpecified; + return this.minTargetAgeFieldSpecified; } set { - this.idFieldSpecified = value; + this.minTargetAgeFieldSpecified = value; } } - /// The location type for this geographical entity (ex. "COUNTRY", "CITY", "STATE", - /// "COUNTY", etc.) + /// Specifies the maximum target age (in years) of the LineItem. This field is only applicable if #provider is not null. /// [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public string type { + public long maxTargetAge { get { - return this.typeField; + return this.maxTargetAgeField; } set { - this.typeField = value; + this.maxTargetAgeField = value; + this.maxTargetAgeSpecified = true; } } - /// The nearest location parent's ID for this geographical entity. + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool maxTargetAgeSpecified { + get { + return this.maxTargetAgeFieldSpecified; + } + set { + this.maxTargetAgeFieldSpecified = value; + } + } + + /// Specifies the target gender of the LineItem. This field + /// is only applicable if #provider is not null. /// [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public int canonicalParentId { + public GrpTargetGender targetGender { get { - return this.canonicalParentIdField; + return this.targetGenderField; } set { - this.canonicalParentIdField = value; - this.canonicalParentIdSpecified = true; + this.targetGenderField = value; + this.targetGenderSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="targetGender" />, false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool canonicalParentIdSpecified { + public bool targetGenderSpecified { get { - return this.canonicalParentIdFieldSpecified; + return this.targetGenderFieldSpecified; } set { - this.canonicalParentIdFieldSpecified = value; + this.targetGenderFieldSpecified = value; } } - /// The localized name of the geographical entity. + /// Specifies the GRP provider of the LineItem. /// [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public string displayName { + public GrpProvider provider { get { - return this.displayNameField; + return this.providerField; } set { - this.displayNameField = value; + this.providerField = value; + this.providerSpecified = true; } } - } - - - /// A collection of targeted and excluded ad units and placements. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class InventoryTargeting { - private AdUnitTargeting[] targetedAdUnitsField; - private AdUnitTargeting[] excludedAdUnitsField; - - private long[] targetedPlacementIdsField; + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool providerSpecified { + get { + return this.providerFieldSpecified; + } + set { + this.providerFieldSpecified = value; + } + } - /// A list of targeted AdUnitTargeting. + /// Estimate for the in-target ratio given the line item's audience targeting. This + /// field is only applicable if #provider is Nielsen, LineItem#primaryGoal#unitType is + /// in-target impressions, and LineItem#CostType is + /// in-target CPM. This field determines the in-target ratio to use for pacing + /// Nielsen line items before Nielsen reporting data is available. Represented as a + /// milli percent, so 55.7% becomes 55700. /// - [System.Xml.Serialization.XmlElementAttribute("targetedAdUnits", Order = 0)] - public AdUnitTargeting[] targetedAdUnits { + [System.Xml.Serialization.XmlElementAttribute(Order = 4)] + public long inTargetRatioEstimateMilliPercent { get { - return this.targetedAdUnitsField; + return this.inTargetRatioEstimateMilliPercentField; } set { - this.targetedAdUnitsField = value; + this.inTargetRatioEstimateMilliPercentField = value; + this.inTargetRatioEstimateMilliPercentSpecified = true; } } - /// A list of excluded AdUnitTargeting. + /// true, if a value is specified for , false otherwise. /// - [System.Xml.Serialization.XmlElementAttribute("excludedAdUnits", Order = 1)] - public AdUnitTargeting[] excludedAdUnits { + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool inTargetRatioEstimateMilliPercentSpecified { get { - return this.excludedAdUnitsField; + return this.inTargetRatioEstimateMilliPercentFieldSpecified; } set { - this.excludedAdUnitsField = value; + this.inTargetRatioEstimateMilliPercentFieldSpecified = value; } } - /// A list of targeted Placement ids. + /// Specifies which pacing computation to apply in pacing to impressions from + /// connected devices. This field is required if + /// enableNielsenCoViewingSupport is true. /// - [System.Xml.Serialization.XmlElementAttribute("targetedPlacementIds", Order = 2)] - public long[] targetedPlacementIds { + [System.Xml.Serialization.XmlElementAttribute(Order = 5)] + public NielsenCtvPacingType nielsenCtvPacingType { get { - return this.targetedPlacementIdsField; + return this.nielsenCtvPacingTypeField; } set { - this.targetedPlacementIdsField = value; + this.nielsenCtvPacingTypeField = value; + this.nielsenCtvPacingTypeSpecified = true; } } - } - - - /// Represents targeted or excluded ad units. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class AdUnitTargeting { - private string adUnitIdField; - private bool includeDescendantsField; - - private bool includeDescendantsFieldSpecified; + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool nielsenCtvPacingTypeSpecified { + get { + return this.nielsenCtvPacingTypeFieldSpecified; + } + set { + this.nielsenCtvPacingTypeFieldSpecified = value; + } + } - /// Included or excluded ad unit id. + /// Specifies whether to use Google or Nielsen device breakdown in Nielsen Line Item + /// auto pacing. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public string adUnitId { + [System.Xml.Serialization.XmlElementAttribute(Order = 6)] + public PacingDeviceCategorizationType pacingDeviceCategorizationType { get { - return this.adUnitIdField; + return this.pacingDeviceCategorizationTypeField; } set { - this.adUnitIdField = value; + this.pacingDeviceCategorizationTypeField = value; + this.pacingDeviceCategorizationTypeSpecified = true; } } - /// Whether or not all descendants are included (or excluded) as part of including - /// (or excluding) this ad unit. By default, the value is true which - /// means targeting this ad unit will target all of its descendants. + /// true, if a value is specified for , false otherwise. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public bool includeDescendants { + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool pacingDeviceCategorizationTypeSpecified { get { - return this.includeDescendantsField; + return this.pacingDeviceCategorizationTypeFieldSpecified; } set { - this.includeDescendantsField = value; - this.includeDescendantsSpecified = true; + this.pacingDeviceCategorizationTypeFieldSpecified = value; + } + } + + [System.Xml.Serialization.XmlElementAttribute(Order = 7)] + public bool applyTrueCoview { + get { + return this.applyTrueCoviewField; + } + set { + this.applyTrueCoviewField = value; + this.applyTrueCoviewSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="applyTrueCoview" />, false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool includeDescendantsSpecified { + public bool applyTrueCoviewSpecified { get { - return this.includeDescendantsFieldSpecified; + return this.applyTrueCoviewFieldSpecified; } set { - this.includeDescendantsFieldSpecified = value; + this.applyTrueCoviewFieldSpecified = value; } } } - /// Modify the delivery times of line items for particular days of the week. By - /// default, line items are served at all days and times. + /// Represents the target gender for a GRP demographic targeted line item. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class DayPartTargeting { - private DayPart[] dayPartsField; - - private DeliveryTimeZone timeZoneField; - - private bool timeZoneFieldSpecified; - - /// Specifies days of the week and times at which a LineItem will be - /// delivered.

If targeting all days and times, this value will be ignored.

+ [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum GrpTargetGender { + /// The value returned if the actual value is not exposed by the requested API + /// version. /// - [System.Xml.Serialization.XmlElementAttribute("dayParts", Order = 0)] - public DayPart[] dayParts { - get { - return this.dayPartsField; - } - set { - this.dayPartsField = value; - } - } + UNKNOWN = 0, + /// Indicates that the GRP target gender is Male. + /// + MALE = 1, + /// Indicates that the GRP target gender is Female. + /// + FEMALE = 2, + /// Indicates that the GRP target gender is both male and female. + /// + BOTH = 3, + } - /// Specifies the time zone to be used for delivering LineItem objects. This attribute is optional and defaults to - /// DeliveryTimeZone#BROWSER.

Setting this - /// has no effect if targeting all days and times.

+ + /// Represents available GRP providers that a line item will have its target + /// demographic measured by. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum GrpProvider { + /// The value returned if the actual value is not exposed by the requested API + /// version. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public DeliveryTimeZone timeZone { - get { - return this.timeZoneField; - } - set { - this.timeZoneField = value; - this.timeZoneSpecified = true; - } - } + UNKNOWN = 0, + NIELSEN = 1, + } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool timeZoneSpecified { - get { - return this.timeZoneFieldSpecified; - } - set { - this.timeZoneFieldSpecified = value; - } - } + + /// Represents the pacing computation method for impressions on connected devices + /// for a Nielsen measured line item. This only applies when Nielsen measurement is + /// enabled for connected devices. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum NielsenCtvPacingType { + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 0, + /// The value returned if Nielsen measurement is disabled for connected devices. + /// + NONE = 1, + /// Indicates that Nielsen impressions on connected devices are included, and we + /// apply coviewing in pacing. + /// + COVIEW = 2, + /// Indicates that Nielsen impressions on connected devices are included, and we + /// apply strict coviewing in pacing. + /// + STRICT_COVIEW = 3, } - /// DayPart represents a time-period within a day of the week which is - /// targeted by a LineItem. + /// Represents whose device categorization to use on Nielsen measured line item with + /// auto-pacing enabled. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum PacingDeviceCategorizationType { + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 0, + /// Use Google's device categorization in auto-pacing. + /// + GOOGLE = 1, + /// Use Nielsen device categorization in auto-pacing + /// + NIELSEN = 2, + } + + + /// Contains third party auto-pixeling settings for cross-sell Partners. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class DayPart { - private DayOfWeek dayOfWeekField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ThirdPartyMeasurementSettings { + private ThirdPartyViewabilityIntegrationPartner viewabilityPartnerField; - private bool dayOfWeekFieldSpecified; + private bool viewabilityPartnerFieldSpecified; - private TimeOfDay startTimeField; + private string viewabilityClientIdField; - private TimeOfDay endTimeField; + private string viewabilityReportingIdField; - /// Day of the week the target applies to. This field is required. + private ThirdPartyViewabilityIntegrationPartner publisherViewabilityPartnerField; + + private bool publisherViewabilityPartnerFieldSpecified; + + private string publisherViewabilityClientIdField; + + private string publisherViewabilityReportingIdField; + + private ThirdPartyBrandLiftIntegrationPartner brandLiftPartnerField; + + private bool brandLiftPartnerFieldSpecified; + + private string brandLiftClientIdField; + + private string brandLiftReportingIdField; + + private ThirdPartyReachIntegrationPartner reachPartnerField; + + private bool reachPartnerFieldSpecified; + + private string reachClientIdField; + + private string reachReportingIdField; + + private ThirdPartyReachIntegrationPartner publisherReachPartnerField; + + private bool publisherReachPartnerFieldSpecified; + + private string publisherReachClientIdField; + + private string publisherReachReportingIdField; + + /// A field to determine the type of ThirdPartyViewabilityIntegrationPartner. This + /// field default is NONE. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public DayOfWeek dayOfWeek { + public ThirdPartyViewabilityIntegrationPartner viewabilityPartner { get { - return this.dayOfWeekField; + return this.viewabilityPartnerField; } set { - this.dayOfWeekField = value; - this.dayOfWeekSpecified = true; + this.viewabilityPartnerField = value; + this.viewabilityPartnerSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool dayOfWeekSpecified { + public bool viewabilityPartnerSpecified { get { - return this.dayOfWeekFieldSpecified; + return this.viewabilityPartnerFieldSpecified; } set { - this.dayOfWeekFieldSpecified = value; + this.viewabilityPartnerFieldSpecified = value; } } - /// Represents the start time of the targeted period (inclusive). + /// The third party partner id for YouTube viewability verification. /// [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public TimeOfDay startTime { + public string viewabilityClientId { get { - return this.startTimeField; + return this.viewabilityClientIdField; } set { - this.startTimeField = value; + this.viewabilityClientIdField = value; } } - /// Represents the end time of the targeted period (exclusive). + /// The reporting id that maps viewability partner data with a campaign (or a group + /// of related campaigns) specific data. /// [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public TimeOfDay endTime { + public string viewabilityReportingId { get { - return this.endTimeField; + return this.viewabilityReportingIdField; } set { - this.endTimeField = value; + this.viewabilityReportingIdField = value; } } - } - - - /// Days of the week. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum DayOfWeek { - /// The day of week named Monday. - /// - MONDAY = 0, - /// The day of week named Tuesday. - /// - TUESDAY = 1, - /// The day of week named Wednesday. - /// - WEDNESDAY = 2, - /// The day of week named Thursday. - /// - THURSDAY = 3, - /// The day of week named Friday. - /// - FRIDAY = 4, - /// The day of week named Saturday. - /// - SATURDAY = 5, - /// The day of week named Sunday. - /// - SUNDAY = 6, - } - - - /// Represents a specific time in a day. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class TimeOfDay { - private int hourField; - - private bool hourFieldSpecified; - - private MinuteOfHour minuteField; - - private bool minuteFieldSpecified; - /// Hour in 24 hour time (0..24). This field must be between 0 and 24, inclusive. - /// This field is required. + /// A field to determine the type of publisher's viewability partner. This field + /// default is NONE. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public int hour { + [System.Xml.Serialization.XmlElementAttribute(Order = 3)] + public ThirdPartyViewabilityIntegrationPartner publisherViewabilityPartner { get { - return this.hourField; + return this.publisherViewabilityPartnerField; } set { - this.hourField = value; - this.hourSpecified = true; + this.publisherViewabilityPartnerField = value; + this.publisherViewabilityPartnerSpecified = true; } } - /// true, if a value is specified for , - /// false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool hourSpecified { + public bool publisherViewabilityPartnerSpecified { get { - return this.hourFieldSpecified; + return this.publisherViewabilityPartnerFieldSpecified; } set { - this.hourFieldSpecified = value; + this.publisherViewabilityPartnerFieldSpecified = value; } } - /// Minutes in an hour. Currently, only 0, 15, 30, and 45 are supported. This field - /// is required. + /// The third party partner id for YouTube viewability verification for publisher. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public MinuteOfHour minute { + [System.Xml.Serialization.XmlElementAttribute(Order = 4)] + public string publisherViewabilityClientId { get { - return this.minuteField; + return this.publisherViewabilityClientIdField; } set { - this.minuteField = value; - this.minuteSpecified = true; + this.publisherViewabilityClientIdField = value; } } - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool minuteSpecified { + /// The reporting id that maps viewability partner data with a campaign (or a group + /// of related campaigns) specific data for publisher. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 5)] + public string publisherViewabilityReportingId { get { - return this.minuteFieldSpecified; + return this.publisherViewabilityReportingIdField; } set { - this.minuteFieldSpecified = value; + this.publisherViewabilityReportingIdField = value; } } - } - - - /// Minutes in an hour. Currently, only 0, 15, 30, and 45 are supported. This field - /// is required. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum MinuteOfHour { - /// Zero minutes past hour. - /// - ZERO = 0, - /// Fifteen minutes past hour. - /// - FIFTEEN = 1, - /// Thirty minutes past hour. - /// - THIRTY = 2, - /// Forty-five minutes past hour. - /// - FORTY_FIVE = 3, - } - - - /// Represents the time zone to be used for DayPartTargeting. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum DeliveryTimeZone { - /// Use the time zone of the publisher. - /// - PUBLISHER = 0, - /// Use the time zone of the browser. - /// - BROWSER = 1, - } - - - /// Represents a range of dates (combined with time of day) that has an upper and/or - /// lower bound. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class DateTimeRange { - private DateTime startDateTimeField; - - private DateTime endDateTimeField; - /// The start date time of this range. This field is optional and if it is not set - /// then there is no lower bound on the date time range. If this field is not set - /// then endDateTime must be specified. + /// A field to determine the type of ThirdPartyBrandLiftIntegrationPartner. This + /// field default is NONE. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public DateTime startDateTime { + [System.Xml.Serialization.XmlElementAttribute(Order = 6)] + public ThirdPartyBrandLiftIntegrationPartner brandLiftPartner { get { - return this.startDateTimeField; + return this.brandLiftPartnerField; } set { - this.startDateTimeField = value; + this.brandLiftPartnerField = value; + this.brandLiftPartnerSpecified = true; } } - /// The end date time of this range. This field is optional and if it is not set - /// then there is no upper bound on the date time range. If this field is not set - /// then startDateTime must be specified. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public DateTime endDateTime { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool brandLiftPartnerSpecified { get { - return this.endDateTimeField; + return this.brandLiftPartnerFieldSpecified; } set { - this.endDateTimeField = value; + this.brandLiftPartnerFieldSpecified = value; } } - } - - - /// Provides LineItem objects the ability to target or - /// exclude technologies. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class TechnologyTargeting { - private BandwidthGroupTargeting bandwidthGroupTargetingField; - - private BrowserTargeting browserTargetingField; - - private BrowserLanguageTargeting browserLanguageTargetingField; - - private DeviceCapabilityTargeting deviceCapabilityTargetingField; - - private DeviceCategoryTargeting deviceCategoryTargetingField; - - private DeviceManufacturerTargeting deviceManufacturerTargetingField; - - private MobileCarrierTargeting mobileCarrierTargetingField; - - private MobileDeviceTargeting mobileDeviceTargetingField; - - private MobileDeviceSubmodelTargeting mobileDeviceSubmodelTargetingField; - private OperatingSystemTargeting operatingSystemTargetingField; - - private OperatingSystemVersionTargeting operatingSystemVersionTargetingField; - - /// The bandwidth groups being targeted by the LineItem. + /// The third party partner id for YouTube brand lift verification. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public BandwidthGroupTargeting bandwidthGroupTargeting { + [System.Xml.Serialization.XmlElementAttribute(Order = 7)] + public string brandLiftClientId { get { - return this.bandwidthGroupTargetingField; + return this.brandLiftClientIdField; } set { - this.bandwidthGroupTargetingField = value; + this.brandLiftClientIdField = value; } } - /// The browsers being targeted by the LineItem. + /// The reporting id that maps brand lift partner data with a campaign (or a group + /// of related campaigns) specific data. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public BrowserTargeting browserTargeting { + [System.Xml.Serialization.XmlElementAttribute(Order = 8)] + public string brandLiftReportingId { get { - return this.browserTargetingField; + return this.brandLiftReportingIdField; } set { - this.browserTargetingField = value; + this.brandLiftReportingIdField = value; } } - /// The languages of browsers being targeted by the LineItem. + /// A field to determine the type of advertiser's ThirdPartyReachIntegrationPartner. + /// This field default is UNKNOWN. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public BrowserLanguageTargeting browserLanguageTargeting { + [System.Xml.Serialization.XmlElementAttribute(Order = 9)] + public ThirdPartyReachIntegrationPartner reachPartner { get { - return this.browserLanguageTargetingField; + return this.reachPartnerField; } set { - this.browserLanguageTargetingField = value; + this.reachPartnerField = value; + this.reachPartnerSpecified = true; } } - /// The device capabilities being targeted by the LineItem. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public DeviceCapabilityTargeting deviceCapabilityTargeting { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool reachPartnerSpecified { get { - return this.deviceCapabilityTargetingField; + return this.reachPartnerFieldSpecified; } set { - this.deviceCapabilityTargetingField = value; + this.reachPartnerFieldSpecified = value; } } - /// The device categories being targeted by the LineItem. + /// The third party partner id for YouTube reach verification for advertiser. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public DeviceCategoryTargeting deviceCategoryTargeting { + [System.Xml.Serialization.XmlElementAttribute(Order = 10)] + public string reachClientId { get { - return this.deviceCategoryTargetingField; + return this.reachClientIdField; } set { - this.deviceCategoryTargetingField = value; + this.reachClientIdField = value; } } - /// The device manufacturers being targeted by the LineItem. + /// The reporting id that maps reach partner data with a campaign (or a group of + /// related campaigns) specific data for advertiser. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 5)] - public DeviceManufacturerTargeting deviceManufacturerTargeting { + [System.Xml.Serialization.XmlElementAttribute(Order = 11)] + public string reachReportingId { get { - return this.deviceManufacturerTargetingField; + return this.reachReportingIdField; } set { - this.deviceManufacturerTargetingField = value; + this.reachReportingIdField = value; } } - /// The mobile carriers being targeted by the LineItem. + /// A field to determine the type of publisher's ThirdPartyReachIntegrationPartner. + /// This field default is UNKNOWN. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 6)] - public MobileCarrierTargeting mobileCarrierTargeting { + [System.Xml.Serialization.XmlElementAttribute(Order = 12)] + public ThirdPartyReachIntegrationPartner publisherReachPartner { get { - return this.mobileCarrierTargetingField; + return this.publisherReachPartnerField; } set { - this.mobileCarrierTargetingField = value; + this.publisherReachPartnerField = value; + this.publisherReachPartnerSpecified = true; } } - /// The mobile devices being targeted by the LineItem. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 7)] - public MobileDeviceTargeting mobileDeviceTargeting { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool publisherReachPartnerSpecified { get { - return this.mobileDeviceTargetingField; + return this.publisherReachPartnerFieldSpecified; } set { - this.mobileDeviceTargetingField = value; + this.publisherReachPartnerFieldSpecified = value; } } - /// The mobile device submodels being targeted by the LineItem. + /// The third party partner id for YouTube reach verification for publisher. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 8)] - public MobileDeviceSubmodelTargeting mobileDeviceSubmodelTargeting { + [System.Xml.Serialization.XmlElementAttribute(Order = 13)] + public string publisherReachClientId { get { - return this.mobileDeviceSubmodelTargetingField; + return this.publisherReachClientIdField; } set { - this.mobileDeviceSubmodelTargetingField = value; + this.publisherReachClientIdField = value; } } - /// The operating systems being targeted by the LineItem. + /// The reporting id that maps reach partner data with a campaign (or a group of + /// related campaigns) specific data for publisher. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 9)] - public OperatingSystemTargeting operatingSystemTargeting { + [System.Xml.Serialization.XmlElementAttribute(Order = 14)] + public string publisherReachReportingId { get { - return this.operatingSystemTargetingField; + return this.publisherReachReportingIdField; } set { - this.operatingSystemTargetingField = value; + this.publisherReachReportingIdField = value; } } + } - /// The operating system versions being targeted by the LineItem. + + /// Possible options for third-party viewabitility integration. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum ThirdPartyViewabilityIntegrationPartner { + /// Indicates there's no third-party viewability integration partner. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 10)] - public OperatingSystemVersionTargeting operatingSystemVersionTargeting { - get { - return this.operatingSystemVersionTargetingField; - } - set { - this.operatingSystemVersionTargetingField = value; - } - } + NONE = 0, + /// Indicates third-party viewability integration partner Oracle Moat. + /// + MOAT = 1, + /// Indicates third-party viewability integration partner Double Verify. + /// + DOUBLE_VERIFY = 2, + /// Indicates third-party viewability integration partner Integral Ad Science. + /// + INTEGRAL_AD_SCIENCE = 3, + /// Indicates third-party viewability integration partner Comscore. + /// + COMSCORE = 5, + /// Indicates third-party viewability integration partner Telemetry. + /// + TELEMETRY = 6, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 4, } - /// Represents bandwidth groups that are being targeted or excluded by the Possible options for third-party brand lift integration. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum ThirdPartyBrandLiftIntegrationPartner { + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 0, + /// Indicates there's no third-party brand lift integration partner. + /// + NONE = 1, + /// Indicates third-party brand lift integration partner Kantar. + /// + KANTAR_MILLWARD_BROWN = 3, + /// Indicates third-party brand lift integration partner Dynata. + /// + DYNATA = 4, + /// Indicates third-party brand lift integration partner Intage. + /// + INTAGE = 5, + /// Indicates third-party brand lift integration partner Macromill. + /// + MACROMILL = 6, + } + + + /// Possible options for third-party reach integration. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum ThirdPartyReachIntegrationPartner { + /// Indicates there's no third-party reach integration partner. + /// + NONE = 0, + /// Indicates third-party reach integration partner Comscore. + /// + COMSCORE = 1, + /// Indicates third-party reach integration partner Nielsen. + /// + NIELSEN = 2, + /// Indicates third-party reach integration partner Kantar. + /// + KANTAR_MILLWARD_BROWN = 4, + /// Indicates third-party reach integration partner Video Research. + /// + VIDEO_RESEARCH = 5, + /// Indicates third-party reach integration partner Gemius. + /// + GEMIUS = 6, + /// Indicates third-party reach integration partner VideoAmp + /// + VIDEO_AMP = 7, + /// Indicates third-party reach integration partner iSpot.TV + /// + ISPOT_TV = 8, + /// Indicates third-party reach integration partner Audience Project + /// + AUDIENCE_PROJECT = 9, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 3, + } + + + /// The role (buyer or seller) that performed an action in the negotiation of a + /// Proposal. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum NegotiationRole { + BUYER = 0, + SELLER = 1, + UNKNOWN = 2, + } + + + /// Represents the creative targeting criteria for a LineItem. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class BandwidthGroupTargeting { - private bool isTargetedField; - - private bool isTargetedFieldSpecified; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class CreativeTargeting { + private string nameField; - private Technology[] bandwidthGroupsField; + private Targeting targetingField; - /// Indicates whether bandwidth groups should be targeted or excluded. This - /// attribute is optional and defaults to true. + /// The name of this creative targeting. This attribute is required. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public bool isTargeted { - get { - return this.isTargetedField; - } - set { - this.isTargetedField = value; - this.isTargetedSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool isTargetedSpecified { + public string name { get { - return this.isTargetedFieldSpecified; + return this.nameField; } set { - this.isTargetedFieldSpecified = value; + this.nameField = value; } } - /// The bandwidth groups that are being targeted or excluded by the LineItem. + /// The Targeting criteria of this creative targeting. This + /// attribute is required. /// - [System.Xml.Serialization.XmlElementAttribute("bandwidthGroups", Order = 1)] - public Technology[] bandwidthGroups { + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public Targeting targeting { get { - return this.bandwidthGroupsField; + return this.targetingField; } set { - this.bandwidthGroupsField = value; + this.targetingField = value; } } } - /// Represents a technology entity that can be targeted. + /// Data transfer object for the exchange deal info of a line item. /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(OperatingSystemVersion))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(OperatingSystem))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(MobileDeviceSubmodel))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(MobileDevice))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(MobileCarrier))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(DeviceManufacturer))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(DeviceCategory))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(DeviceCapability))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(BrowserLanguage))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(Browser))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(BandwidthGroup))] [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class Technology { - private long idField; - - private bool idFieldSpecified; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class LineItemDealInfoDto { + private long externalDealIdField; - private string nameField; + private bool externalDealIdFieldSpecified; - /// The unique ID of the Technology. This value is required for all - /// forms of TechnologyTargeting. + /// The external deal ID shared between seller and buyer. This field is only present + /// if the deal has been finalized. This attribute is read-only and is assigned by + /// Google. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public long id { + public long externalDealId { get { - return this.idField; + return this.externalDealIdField; } set { - this.idField = value; - this.idSpecified = true; + this.externalDealIdField = value; + this.externalDealIdSpecified = true; } } - /// true, if a value is specified for , - /// false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool idSpecified { - get { - return this.idFieldSpecified; - } - set { - this.idFieldSpecified = value; - } - } - - /// The name of the technology being targeting. This value is read-only and is - /// assigned by Google. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public string name { + public bool externalDealIdSpecified { get { - return this.nameField; + return this.externalDealIdFieldSpecified; } set { - this.nameField = value; + this.externalDealIdFieldSpecified = value; } } } - /// Represents a specific version of an operating system. + /// Stats contains trafficking statistics for LineItem and LineItemCreativeAssociation + /// objects /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class OperatingSystemVersion : Technology { - private int majorVersionField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class Stats { + private long impressionsDeliveredField; - private bool majorVersionFieldSpecified; + private bool impressionsDeliveredFieldSpecified; - private int minorVersionField; + private long clicksDeliveredField; - private bool minorVersionFieldSpecified; + private bool clicksDeliveredFieldSpecified; - private int microVersionField; + private long videoCompletionsDeliveredField; - private bool microVersionFieldSpecified; + private bool videoCompletionsDeliveredFieldSpecified; - /// The operating system major version. + private long videoStartsDeliveredField; + + private bool videoStartsDeliveredFieldSpecified; + + private long viewableImpressionsDeliveredField; + + private bool viewableImpressionsDeliveredFieldSpecified; + + /// The number of impressions delivered. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public int majorVersion { + public long impressionsDelivered { get { - return this.majorVersionField; + return this.impressionsDeliveredField; } set { - this.majorVersionField = value; - this.majorVersionSpecified = true; + this.impressionsDeliveredField = value; + this.impressionsDeliveredSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="impressionsDelivered" />, false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool majorVersionSpecified { + public bool impressionsDeliveredSpecified { get { - return this.majorVersionFieldSpecified; + return this.impressionsDeliveredFieldSpecified; } set { - this.majorVersionFieldSpecified = value; + this.impressionsDeliveredFieldSpecified = value; } } - /// The operating system minor version. + /// The number of clicks delivered. /// [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public int minorVersion { + public long clicksDelivered { get { - return this.minorVersionField; + return this.clicksDeliveredField; } set { - this.minorVersionField = value; - this.minorVersionSpecified = true; + this.clicksDeliveredField = value; + this.clicksDeliveredSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="clicksDelivered" />, false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool minorVersionSpecified { + public bool clicksDeliveredSpecified { get { - return this.minorVersionFieldSpecified; + return this.clicksDeliveredFieldSpecified; } set { - this.minorVersionFieldSpecified = value; + this.clicksDeliveredFieldSpecified = value; } } - /// The operating system micro version. + /// The number of video completions delivered. /// [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public int microVersion { + public long videoCompletionsDelivered { get { - return this.microVersionField; + return this.videoCompletionsDeliveredField; } set { - this.microVersionField = value; - this.microVersionSpecified = true; + this.videoCompletionsDeliveredField = value; + this.videoCompletionsDeliveredSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="videoCompletionsDelivered" />, false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool microVersionSpecified { + public bool videoCompletionsDeliveredSpecified { get { - return this.microVersionFieldSpecified; + return this.videoCompletionsDeliveredFieldSpecified; } set { - this.microVersionFieldSpecified = value; + this.videoCompletionsDeliveredFieldSpecified = value; } } - } - - - /// Represents an Operating System, such as Linux, Mac OS or Windows. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class OperatingSystem : Technology { - } - - - /// Represents a mobile device submodel. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class MobileDeviceSubmodel : Technology { - private long mobileDeviceCriterionIdField; - - private bool mobileDeviceCriterionIdFieldSpecified; - private long deviceManufacturerCriterionIdField; - - private bool deviceManufacturerCriterionIdFieldSpecified; - - /// The mobile device id. + /// The number of video starts delivered. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public long mobileDeviceCriterionId { + [System.Xml.Serialization.XmlElementAttribute(Order = 3)] + public long videoStartsDelivered { get { - return this.mobileDeviceCriterionIdField; + return this.videoStartsDeliveredField; } set { - this.mobileDeviceCriterionIdField = value; - this.mobileDeviceCriterionIdSpecified = true; + this.videoStartsDeliveredField = value; + this.videoStartsDeliveredSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="videoStartsDelivered" />, false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool mobileDeviceCriterionIdSpecified { + public bool videoStartsDeliveredSpecified { get { - return this.mobileDeviceCriterionIdFieldSpecified; + return this.videoStartsDeliveredFieldSpecified; } set { - this.mobileDeviceCriterionIdFieldSpecified = value; + this.videoStartsDeliveredFieldSpecified = value; } } - /// The device manufacturer id. + /// The number of viewable impressions delivered. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public long deviceManufacturerCriterionId { + [System.Xml.Serialization.XmlElementAttribute(Order = 4)] + public long viewableImpressionsDelivered { get { - return this.deviceManufacturerCriterionIdField; + return this.viewableImpressionsDeliveredField; } set { - this.deviceManufacturerCriterionIdField = value; - this.deviceManufacturerCriterionIdSpecified = true; + this.viewableImpressionsDeliveredField = value; + this.viewableImpressionsDeliveredSpecified = true; } } /// true, if a value is specified for , false otherwise. - /// + /// cref="viewableImpressionsDelivered" />, false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool deviceManufacturerCriterionIdSpecified { + public bool viewableImpressionsDeliveredSpecified { get { - return this.deviceManufacturerCriterionIdFieldSpecified; + return this.viewableImpressionsDeliveredFieldSpecified; } set { - this.deviceManufacturerCriterionIdFieldSpecified = value; + this.viewableImpressionsDeliveredFieldSpecified = value; } } } - /// Represents a Mobile Device. + /// A LineItemActivityAssociation associates a LineItem with an Activity so that the + /// conversions of the Activity can be counted against the LineItem. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class MobileDevice : Technology { - private long manufacturerCriterionIdField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class LineItemActivityAssociation { + private int activityIdField; - private bool manufacturerCriterionIdFieldSpecified; + private bool activityIdFieldSpecified; - /// Manufacturer Id. + private Money clickThroughConversionCostField; + + private Money viewThroughConversionCostField; + + /// The ID of the Activity to which the LineItem should be associated. This attribute is required. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public long manufacturerCriterionId { + public int activityId { get { - return this.manufacturerCriterionIdField; + return this.activityIdField; } set { - this.manufacturerCriterionIdField = value; - this.manufacturerCriterionIdSpecified = true; + this.activityIdField = value; + this.activityIdSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool manufacturerCriterionIdSpecified { + public bool activityIdSpecified { get { - return this.manufacturerCriterionIdFieldSpecified; + return this.activityIdFieldSpecified; } set { - this.manufacturerCriterionIdFieldSpecified = value; + this.activityIdFieldSpecified = value; } } - } - - - /// Represents a mobile carrier. Carrier targeting is only available to Ad Manager - /// mobile publishers. For a list of current mobile carriers, you can use PublisherQueryLanguageService#mobile_carrier. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class MobileCarrier : Technology { - } - - - /// Represents a mobile device's manufacturer. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class DeviceManufacturer : Technology { - } + /// The amount of money to attribute per click through conversion. This attribute is + /// required for creating a . The currency code is readonly and should + /// match the LineItem. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public Money clickThroughConversionCost { + get { + return this.clickThroughConversionCostField; + } + set { + this.clickThroughConversionCostField = value; + } + } - /// Represents the category of a device. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class DeviceCategory : Technology { + /// The amount of money to attribute per view through conversion. This attribute is + /// required for creating a . The currency code is readonly and should + /// match the LineItem. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public Money viewThroughConversionCost { + get { + return this.viewThroughConversionCostField; + } + set { + this.viewThroughConversionCostField = value; + } + } } - /// Represents a capability of a physical device. + /// An interval of a CustomPacingCurve. A custom + /// pacing goal contains a start time and an amount. The goal will apply until + /// either the next custom pacing goal's or the line item's end time + /// if it is the last goal. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class DeviceCapability : Technology { - } - + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class CustomPacingGoal { + private DateTime startDateTimeField; - /// Represents a Browser's language. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class BrowserLanguage : Technology { - } + private bool useLineItemStartDateTimeField; + private bool useLineItemStartDateTimeFieldSpecified; - /// Represents an internet browser. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class Browser : Technology { - private string majorVersionField; + private long amountField; - private string minorVersionField; + private bool amountFieldSpecified; - /// Browser major version. + /// The start date and time of the goal. This field is required unless + /// useLineItemStartDateTime is true. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public string majorVersion { + public DateTime startDateTime { get { - return this.majorVersionField; + return this.startDateTimeField; } set { - this.majorVersionField = value; + this.startDateTimeField = value; } } - /// Browser minor version. + /// Whether the LineItem#startDateTime should + /// be used for the start date and time of this goal. This field is not persisted + /// and if it is set to true, the startDateTime field will be populated + /// by the line item's start time. /// [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public string minorVersion { + public bool useLineItemStartDateTime { get { - return this.minorVersionField; + return this.useLineItemStartDateTimeField; } set { - this.minorVersionField = value; + this.useLineItemStartDateTimeField = value; + this.useLineItemStartDateTimeSpecified = true; } } - } - - /// Represents a group of bandwidths that are logically organized by some well known - /// generic names such as 'Cable' or 'DSL'. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class BandwidthGroup : Technology { - } - - - /// Represents browsers that are being targeted or excluded by the LineItem. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class BrowserTargeting { - private bool isTargetedField; - - private bool isTargetedFieldSpecified; - - private Technology[] browsersField; - - /// Indicates whether browsers should be targeted or excluded. This attribute is - /// optional and defaults to true. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public bool isTargeted { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool useLineItemStartDateTimeSpecified { get { - return this.isTargetedField; + return this.useLineItemStartDateTimeFieldSpecified; } set { - this.isTargetedField = value; - this.isTargetedSpecified = true; + this.useLineItemStartDateTimeFieldSpecified = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool isTargetedSpecified { + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public long amount { get { - return this.isTargetedFieldSpecified; + return this.amountField; } set { - this.isTargetedFieldSpecified = value; + this.amountField = value; + this.amountSpecified = true; } } - /// Browsers that are being targeted or excluded by the LineItem. - /// - [System.Xml.Serialization.XmlElementAttribute("browsers", Order = 1)] - public Technology[] browsers { + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool amountSpecified { get { - return this.browsersField; + return this.amountFieldSpecified; } set { - this.browsersField = value; + this.amountFieldSpecified = value; } } } - /// Represents browser languages that are being targeted or excluded by the LineItem. + /// A curve consisting of CustomPacingGoal objects + /// that is used to pace line item delivery. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class BrowserLanguageTargeting { - private bool isTargetedField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class CustomPacingCurve { + private CustomPacingGoalUnit customPacingGoalUnitField; - private bool isTargetedFieldSpecified; + private bool customPacingGoalUnitFieldSpecified; - private Technology[] browserLanguagesField; + private CustomPacingGoal[] customPacingGoalsField; - /// Indicates whether browsers languages should be targeted or excluded. This - /// attribute is optional and defaults to true. + /// The unit of the CustomPacingGoalDto#amount values. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public bool isTargeted { + public CustomPacingGoalUnit customPacingGoalUnit { get { - return this.isTargetedField; + return this.customPacingGoalUnitField; } set { - this.isTargetedField = value; - this.isTargetedSpecified = true; + this.customPacingGoalUnitField = value; + this.customPacingGoalUnitSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool isTargetedSpecified { + public bool customPacingGoalUnitSpecified { get { - return this.isTargetedFieldSpecified; + return this.customPacingGoalUnitFieldSpecified; } set { - this.isTargetedFieldSpecified = value; + this.customPacingGoalUnitFieldSpecified = value; } } - /// Browser languages that are being targeted or excluded by the LineItem. + /// The list of goals that make up the custom pacing curve. /// - [System.Xml.Serialization.XmlElementAttribute("browserLanguages", Order = 1)] - public Technology[] browserLanguages { + [System.Xml.Serialization.XmlElementAttribute("customPacingGoals", Order = 1)] + public CustomPacingGoal[] customPacingGoals { get { - return this.browserLanguagesField; + return this.customPacingGoalsField; } set { - this.browserLanguagesField = value; + this.customPacingGoalsField = value; } } } - /// Represents device capabilities that are being targeted or excluded by the LineItem. + /// Options for the unit of the custom pacing goal amounts. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class DeviceCapabilityTargeting { - private Technology[] targetedDeviceCapabilitiesField; - - private Technology[] excludedDeviceCapabilitiesField; - - /// Device capabilities that are being targeted by the LineItem. + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum CustomPacingGoalUnit { + /// The custom pacing goal amounts represent absolute numbers corresponding to the + /// line item's Goal#unitType. /// - [System.Xml.Serialization.XmlElementAttribute("targetedDeviceCapabilities", Order = 0)] - public Technology[] targetedDeviceCapabilities { - get { - return this.targetedDeviceCapabilitiesField; - } - set { - this.targetedDeviceCapabilitiesField = value; - } - } - - /// Device capabilities that are being excluded by the LineItem. + ABSOLUTE = 0, + /// The custom pacing goal amounts represent a millipercent. For example, 15000 + /// millipercent equals 15%. /// - [System.Xml.Serialization.XmlElementAttribute("excludedDeviceCapabilities", Order = 1)] - public Technology[] excludedDeviceCapabilities { - get { - return this.excludedDeviceCapabilitiesField; - } - set { - this.excludedDeviceCapabilitiesField = value; - } - } + MILLI_PERCENT = 1, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 2, } - /// Represents device categories that are being targeted or excluded by the LineItem. + /// The LineItemSummary represents the base class from which a + /// LineItem is derived. /// + [System.Xml.Serialization.XmlIncludeAttribute(typeof(LineItem))] [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class DeviceCategoryTargeting { - private Technology[] targetedDeviceCategoriesField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class LineItemSummary { + private long orderIdField; - private Technology[] excludedDeviceCategoriesField; + private bool orderIdFieldSpecified; - /// Device categories that are being targeted by the LineItem. - /// - [System.Xml.Serialization.XmlElementAttribute("targetedDeviceCategories", Order = 0)] - public Technology[] targetedDeviceCategories { - get { - return this.targetedDeviceCategoriesField; - } - set { - this.targetedDeviceCategoriesField = value; - } - } + private long idField; - /// Device categories that are being excluded by the LineItem. - /// - [System.Xml.Serialization.XmlElementAttribute("excludedDeviceCategories", Order = 1)] - public Technology[] excludedDeviceCategories { - get { - return this.excludedDeviceCategoriesField; - } - set { - this.excludedDeviceCategoriesField = value; - } - } - } + private bool idFieldSpecified; + private string nameField; - /// Represents device manufacturer that are being targeted or excluded by the LineItem. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class DeviceManufacturerTargeting { - private bool isTargetedField; + private string externalIdField; - private bool isTargetedFieldSpecified; + private string orderNameField; - private Technology[] deviceManufacturersField; + private DateTime startDateTimeField; - /// Indicates whether device manufacturers should be targeted or excluded. This - /// attribute is optional and defaults to true. + private StartDateTimeType startDateTimeTypeField; + + private bool startDateTimeTypeFieldSpecified; + + private DateTime endDateTimeField; + + private int autoExtensionDaysField; + + private bool autoExtensionDaysFieldSpecified; + + private bool unlimitedEndDateTimeField; + + private bool unlimitedEndDateTimeFieldSpecified; + + private CreativeRotationType creativeRotationTypeField; + + private bool creativeRotationTypeFieldSpecified; + + private DeliveryRateType deliveryRateTypeField; + + private bool deliveryRateTypeFieldSpecified; + + private DeliveryForecastSource deliveryForecastSourceField; + + private bool deliveryForecastSourceFieldSpecified; + + private CustomPacingCurve customPacingCurveField; + + private RoadblockingType roadblockingTypeField; + + private bool roadblockingTypeFieldSpecified; + + private SkippableAdType skippableAdTypeField; + + private bool skippableAdTypeFieldSpecified; + + private FrequencyCap[] frequencyCapsField; + + private LineItemType lineItemTypeField; + + private bool lineItemTypeFieldSpecified; + + private int priorityField; + + private bool priorityFieldSpecified; + + private Money costPerUnitField; + + private Money valueCostPerUnitField; + + private CostType costTypeField; + + private bool costTypeFieldSpecified; + + private LineItemDiscountType discountTypeField; + + private bool discountTypeFieldSpecified; + + private double discountField; + + private bool discountFieldSpecified; + + private long contractedUnitsBoughtField; + + private bool contractedUnitsBoughtFieldSpecified; + + private CreativePlaceholder[] creativePlaceholdersField; + + private LineItemActivityAssociation[] activityAssociationsField; + + private EnvironmentType environmentTypeField; + + private bool environmentTypeFieldSpecified; + + private AllowedFormats[] allowedFormatsField; + + private CompanionDeliveryOption companionDeliveryOptionField; + + private bool companionDeliveryOptionFieldSpecified; + + private bool allowOverbookField; + + private bool allowOverbookFieldSpecified; + + private bool skipInventoryCheckField; + + private bool skipInventoryCheckFieldSpecified; + + private bool skipCrossSellingRuleWarningChecksField; + + private bool skipCrossSellingRuleWarningChecksFieldSpecified; + + private bool reserveAtCreationField; + + private bool reserveAtCreationFieldSpecified; + + private Stats statsField; + + private DeliveryIndicator deliveryIndicatorField; + + private long[] deliveryDataField; + + private Money budgetField; + + private ComputedStatus statusField; + + private bool statusFieldSpecified; + + private LineItemSummaryReservationStatus reservationStatusField; + + private bool reservationStatusFieldSpecified; + + private bool isArchivedField; + + private bool isArchivedFieldSpecified; + + private string webPropertyCodeField; + + private AppliedLabel[] appliedLabelsField; + + private AppliedLabel[] effectiveAppliedLabelsField; + + private bool disableSameAdvertiserCompetitiveExclusionField; + + private bool disableSameAdvertiserCompetitiveExclusionFieldSpecified; + + private string lastModifiedByAppField; + + private string notesField; + + private CompetitiveConstraintScope competitiveConstraintScopeField; + + private bool competitiveConstraintScopeFieldSpecified; + + private DateTime lastModifiedDateTimeField; + + private DateTime creationDateTimeField; + + private BaseCustomFieldValue[] customFieldValuesField; + + private bool isMissingCreativesField; + + private bool isMissingCreativesFieldSpecified; + + private ProgrammaticCreativeSource programmaticCreativeSourceField; + + private bool programmaticCreativeSourceFieldSpecified; + + private ThirdPartyMeasurementSettings thirdPartyMeasurementSettingsField; + + private bool youtubeKidsRestrictedField; + + private bool youtubeKidsRestrictedFieldSpecified; + + private long videoMaxDurationField; + + private bool videoMaxDurationFieldSpecified; + + private Goal primaryGoalField; + + private Goal[] secondaryGoalsField; + + private GrpSettings grpSettingsField; + + private LineItemDealInfoDto dealInfoField; + + private long[] viewabilityProviderCompanyIdsField; + + private ChildContentEligibility childContentEligibilityField; + + private bool childContentEligibilityFieldSpecified; + + private string customVastExtensionField; + + /// The ID of the Order to which the belongs. This + /// attribute is required. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public bool isTargeted { + public long orderId { get { - return this.isTargetedField; + return this.orderIdField; } set { - this.isTargetedField = value; - this.isTargetedSpecified = true; + this.orderIdField = value; + this.orderIdSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , + /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool isTargetedSpecified { + public bool orderIdSpecified { get { - return this.isTargetedFieldSpecified; + return this.orderIdFieldSpecified; } set { - this.isTargetedFieldSpecified = value; + this.orderIdFieldSpecified = value; } } - /// Device manufacturers that are being targeted or excluded by the LineItem. + /// Uniquely identifies the LineItem. This attribute is read-only and + /// is assigned by Google when a line item is created. /// - [System.Xml.Serialization.XmlElementAttribute("deviceManufacturers", Order = 1)] - public Technology[] deviceManufacturers { + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public long id { get { - return this.deviceManufacturersField; + return this.idField; } set { - this.deviceManufacturersField = value; + this.idField = value; + this.idSpecified = true; } } - } - - - /// Represents mobile carriers that are being targeted or excluded by the LineItem. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class MobileCarrierTargeting { - private bool isTargetedField; - private bool isTargetedFieldSpecified; - - private Technology[] mobileCarriersField; + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool idSpecified { + get { + return this.idFieldSpecified; + } + set { + this.idFieldSpecified = value; + } + } - /// Indicates whether mobile carriers should be targeted or excluded. This attribute - /// is optional and defaults to true. + /// The name of the line item. This attribute is required and has a maximum length + /// of 255 characters. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public bool isTargeted { + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public string name { get { - return this.isTargetedField; + return this.nameField; } set { - this.isTargetedField = value; - this.isTargetedSpecified = true; + this.nameField = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool isTargetedSpecified { + /// An identifier for the LineItem that is meaningful to the publisher. + /// This attribute is optional and has a maximum length of 255 characters. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 3)] + public string externalId { get { - return this.isTargetedFieldSpecified; + return this.externalIdField; } set { - this.isTargetedFieldSpecified = value; + this.externalIdField = value; } } - /// Mobile carriers that are being targeted or excluded by the LineItem. + /// The name of the Order. This value is read-only. /// - [System.Xml.Serialization.XmlElementAttribute("mobileCarriers", Order = 1)] - public Technology[] mobileCarriers { + [System.Xml.Serialization.XmlElementAttribute(Order = 4)] + public string orderName { get { - return this.mobileCarriersField; + return this.orderNameField; } set { - this.mobileCarriersField = value; + this.orderNameField = value; } } - } - - - /// Represents mobile devices that are being targeted or excluded by the LineItem. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class MobileDeviceTargeting { - private Technology[] targetedMobileDevicesField; - - private Technology[] excludedMobileDevicesField; - /// Mobile devices that are being targeted by the LineItem. + /// The date and time on which the LineItem is enabled to begin + /// serving. This attribute is required and must be in the future. /// - [System.Xml.Serialization.XmlElementAttribute("targetedMobileDevices", Order = 0)] - public Technology[] targetedMobileDevices { + [System.Xml.Serialization.XmlElementAttribute(Order = 5)] + public DateTime startDateTime { get { - return this.targetedMobileDevicesField; + return this.startDateTimeField; } set { - this.targetedMobileDevicesField = value; + this.startDateTimeField = value; } } - /// Mobile devices that are being excluded by the LineItem. + /// Specifies whether to start serving to the LineItem right away, in + /// an hour, etc. This attribute is optional and defaults to StartDateTimeType#USE_START_DATE_TIME. /// - [System.Xml.Serialization.XmlElementAttribute("excludedMobileDevices", Order = 1)] - public Technology[] excludedMobileDevices { + [System.Xml.Serialization.XmlElementAttribute(Order = 6)] + public StartDateTimeType startDateTimeType { get { - return this.excludedMobileDevicesField; + return this.startDateTimeTypeField; } set { - this.excludedMobileDevicesField = value; + this.startDateTimeTypeField = value; + this.startDateTimeTypeSpecified = true; } } - } - - /// Represents mobile devices that are being targeted or excluded by the LineItem. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class MobileDeviceSubmodelTargeting { - private Technology[] targetedMobileDeviceSubmodelsField; - - private Technology[] excludedMobileDeviceSubmodelsField; - - /// Mobile device submodels that are being targeted by the LineItem. - /// - [System.Xml.Serialization.XmlElementAttribute("targetedMobileDeviceSubmodels", Order = 0)] - public Technology[] targetedMobileDeviceSubmodels { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool startDateTimeTypeSpecified { get { - return this.targetedMobileDeviceSubmodelsField; + return this.startDateTimeTypeFieldSpecified; } set { - this.targetedMobileDeviceSubmodelsField = value; + this.startDateTimeTypeFieldSpecified = value; } } - /// Mobile device submodels that are being excluded by the LineItem. + /// The date and time on which the LineItem will stop serving. This + /// attribute is required unless LineItem#unlimitedEndDateTime is set to + /// true. If specified, it must be after the LineItem#startDateTime. This end date and time + /// does not include auto extension days. /// - [System.Xml.Serialization.XmlElementAttribute("excludedMobileDeviceSubmodels", Order = 1)] - public Technology[] excludedMobileDeviceSubmodels { + [System.Xml.Serialization.XmlElementAttribute(Order = 7)] + public DateTime endDateTime { get { - return this.excludedMobileDeviceSubmodelsField; + return this.endDateTimeField; } set { - this.excludedMobileDeviceSubmodelsField = value; + this.endDateTimeField = value; } } - } - - - /// Represents operating systems that are being targeted or excluded by the LineItem. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class OperatingSystemTargeting { - private bool isTargetedField; - - private bool isTargetedFieldSpecified; - - private Technology[] operatingSystemsField; - /// Indicates whether operating systems should be targeted or excluded. This - /// attribute is optional and defaults to true. + /// The number of days to allow a line item to deliver past its #endDateTime. A maximum of 7 days is allowed. This is + /// feature is only available for Ad Manager 360 accounts. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public bool isTargeted { + [System.Xml.Serialization.XmlElementAttribute(Order = 8)] + public int autoExtensionDays { get { - return this.isTargetedField; + return this.autoExtensionDaysField; } set { - this.isTargetedField = value; - this.isTargetedSpecified = true; + this.autoExtensionDaysField = value; + this.autoExtensionDaysSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool isTargetedSpecified { + public bool autoExtensionDaysSpecified { get { - return this.isTargetedFieldSpecified; + return this.autoExtensionDaysFieldSpecified; } set { - this.isTargetedFieldSpecified = value; + this.autoExtensionDaysFieldSpecified = value; } } - /// Operating systems that are being targeted or excluded by the LineItem. + /// Specifies whether or not the LineItem has an end time. This + /// attribute is optional and defaults to false. It can be be set to + /// true for only line items of type LineItemType#SPONSORSHIP, LineItemType#NETWORK, LineItemType#PRICE_PRIORITY and LineItemType#HOUSE. /// - [System.Xml.Serialization.XmlElementAttribute("operatingSystems", Order = 1)] - public Technology[] operatingSystems { + [System.Xml.Serialization.XmlElementAttribute(Order = 9)] + public bool unlimitedEndDateTime { get { - return this.operatingSystemsField; + return this.unlimitedEndDateTimeField; } set { - this.operatingSystemsField = value; + this.unlimitedEndDateTimeField = value; + this.unlimitedEndDateTimeSpecified = true; } } - } - - - /// Represents operating system versions that are being targeted or excluded by the - /// LineItem. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class OperatingSystemVersionTargeting { - private Technology[] targetedOperatingSystemVersionsField; - - private Technology[] excludedOperatingSystemVersionsField; - /// Operating system versions that are being targeted by the LineItem. - /// - [System.Xml.Serialization.XmlElementAttribute("targetedOperatingSystemVersions", Order = 0)] - public Technology[] targetedOperatingSystemVersions { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool unlimitedEndDateTimeSpecified { get { - return this.targetedOperatingSystemVersionsField; + return this.unlimitedEndDateTimeFieldSpecified; } set { - this.targetedOperatingSystemVersionsField = value; + this.unlimitedEndDateTimeFieldSpecified = value; } } - /// Operating system versions that are being excluded by the LineItem. + /// The strategy used for displaying multiple Creative + /// objects that are associated with the . This attribute is required. /// - [System.Xml.Serialization.XmlElementAttribute("excludedOperatingSystemVersions", Order = 1)] - public Technology[] excludedOperatingSystemVersions { + [System.Xml.Serialization.XmlElementAttribute(Order = 10)] + public CreativeRotationType creativeRotationType { get { - return this.excludedOperatingSystemVersionsField; + return this.creativeRotationTypeField; } set { - this.excludedOperatingSystemVersionsField = value; + this.creativeRotationTypeField = value; + this.creativeRotationTypeSpecified = true; } } - } - - - /// A CustomCriteriaSet comprises of a set of CustomCriteriaNode objects combined by the CustomCriteriaSet.LogicalOperator#logicalOperator. - /// The custom criteria targeting tree is subject to the rules defined on Targeting#customTargeting. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class CustomCriteriaSet : CustomCriteriaNode { - private CustomCriteriaSetLogicalOperator logicalOperatorField; - - private bool logicalOperatorFieldSpecified; - private CustomCriteriaNode[] childrenField; - - /// The logical operator to be applied to CustomCriteriaSet#children. This attribute - /// is required. This attribute is - /// required. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public CustomCriteriaSetLogicalOperator logicalOperator { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool creativeRotationTypeSpecified { get { - return this.logicalOperatorField; + return this.creativeRotationTypeFieldSpecified; } set { - this.logicalOperatorField = value; - this.logicalOperatorSpecified = true; + this.creativeRotationTypeFieldSpecified = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool logicalOperatorSpecified { + /// The strategy for delivering ads over the course of the line item's duration. + /// This attribute is optional and defaults to DeliveryRateType#EVENLY or DeliveryRateType#FRONTLOADED depending on the network's + /// configuration. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 11)] + public DeliveryRateType deliveryRateType { get { - return this.logicalOperatorFieldSpecified; + return this.deliveryRateTypeField; } set { - this.logicalOperatorFieldSpecified = value; + this.deliveryRateTypeField = value; + this.deliveryRateTypeSpecified = true; } } - /// The custom criteria. This attribute is required. - /// - [System.Xml.Serialization.XmlElementAttribute("children", Order = 1)] - public CustomCriteriaNode[] children { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool deliveryRateTypeSpecified { get { - return this.childrenField; + return this.deliveryRateTypeFieldSpecified; } set { - this.childrenField = value; + this.deliveryRateTypeFieldSpecified = value; } } - } - - - /// Specifies the available logical operators. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CustomCriteriaSet.LogicalOperator", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum CustomCriteriaSetLogicalOperator { - AND = 0, - OR = 1, - } - - - /// A CustomCriteriaNode is a node in the custom - /// targeting tree. A custom criteria node can either be a CustomCriteriaSet (a non-leaf node) or a CustomCriteria (a leaf node). The custom criteria - /// targeting tree is subject to the rules defined on Targeting#customTargeting. - /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(CustomCriteriaLeaf))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(AudienceSegmentCriteria))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(CmsMetadataCriteria))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(CustomCriteria))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(CustomCriteriaSet))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public abstract partial class CustomCriteriaNode { - } - - - /// A CustomCriteriaLeaf object represents a - /// generic leaf of CustomCriteria tree structure. - /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(AudienceSegmentCriteria))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(CmsMetadataCriteria))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(CustomCriteria))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public abstract partial class CustomCriteriaLeaf : CustomCriteriaNode { - } - - /// An AudienceSegmentCriteria object is used - /// to target AudienceSegment objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class AudienceSegmentCriteria : CustomCriteriaLeaf { - private AudienceSegmentCriteriaComparisonOperator operatorField; - - private bool operatorFieldSpecified; - - private long[] audienceSegmentIdsField; - - /// The comparison operator. This attribute is required. + /// Strategy for choosing forecasted traffic shapes to pace line items. This field + /// is optional and defaults to DeliveryForecastSource#HISTORICAL. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public AudienceSegmentCriteriaComparisonOperator @operator { + [System.Xml.Serialization.XmlElementAttribute(Order = 12)] + public DeliveryForecastSource deliveryForecastSource { get { - return this.operatorField; + return this.deliveryForecastSourceField; } set { - this.operatorField = value; - this.operatorSpecified = true; + this.deliveryForecastSourceField = value; + this.deliveryForecastSourceSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool operatorSpecified { + public bool deliveryForecastSourceSpecified { get { - return this.operatorFieldSpecified; + return this.deliveryForecastSourceFieldSpecified; } set { - this.operatorFieldSpecified = value; + this.deliveryForecastSourceFieldSpecified = value; } } - /// The ids of AudienceSegment objects used to target - /// audience segments. This attribute is required. + /// The curve that is used to pace the line item's delivery. This field is required + /// if and only if the delivery forecast source is DeliveryForecastSource#CUSTOM_PACING_CURVE. /// - [System.Xml.Serialization.XmlElementAttribute("audienceSegmentIds", Order = 1)] - public long[] audienceSegmentIds { + [System.Xml.Serialization.XmlElementAttribute(Order = 13)] + public CustomPacingCurve customPacingCurve { get { - return this.audienceSegmentIdsField; + return this.customPacingCurveField; } set { - this.audienceSegmentIdsField = value; + this.customPacingCurveField = value; } } - } - - - /// Specifies the available comparison operators. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AudienceSegmentCriteria.ComparisonOperator", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum AudienceSegmentCriteriaComparisonOperator { - IS = 0, - IS_NOT = 1, - } - - - /// A CmsMetadataCriteria object is used to target - /// objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class CmsMetadataCriteria : CustomCriteriaLeaf { - private CmsMetadataCriteriaComparisonOperator operatorField; - - private bool operatorFieldSpecified; - - private long[] cmsMetadataValueIdsField; - /// The comparison operator. This attribute is required. + /// The strategy for serving roadblocked creatives, i.e. instances where multiple + /// creatives must be served together on a single web page. This attribute is + /// optional and defaults to RoadblockingType#ONE_OR_MORE. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public CmsMetadataCriteriaComparisonOperator @operator { + [System.Xml.Serialization.XmlElementAttribute(Order = 14)] + public RoadblockingType roadblockingType { get { - return this.operatorField; + return this.roadblockingTypeField; } set { - this.operatorField = value; - this.operatorSpecified = true; + this.roadblockingTypeField = value; + this.roadblockingTypeSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool operatorSpecified { + public bool roadblockingTypeSpecified { get { - return this.operatorFieldSpecified; + return this.roadblockingTypeFieldSpecified; } set { - this.operatorFieldSpecified = value; + this.roadblockingTypeFieldSpecified = value; } } - /// The ids of CmsMetadataValue objects used to - /// target CMS metadata. This attribute is required. + /// The nature of the line item's creatives' skippability. This attribute is + /// optional, only applicable for video line items, and defaults to SkippableAdType#NOT_SKIPPABLE. /// - [System.Xml.Serialization.XmlElementAttribute("cmsMetadataValueIds", Order = 1)] - public long[] cmsMetadataValueIds { + [System.Xml.Serialization.XmlElementAttribute(Order = 15)] + public SkippableAdType skippableAdType { get { - return this.cmsMetadataValueIdsField; + return this.skippableAdTypeField; } set { - this.cmsMetadataValueIdsField = value; + this.skippableAdTypeField = value; + this.skippableAdTypeSpecified = true; } } - } - - - /// Specifies the available comparison operators. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CmsMetadataCriteria.ComparisonOperator", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum CmsMetadataCriteriaComparisonOperator { - EQUALS = 0, - NOT_EQUALS = 1, - } - - - /// A CustomCriteria object is used to perform custom - /// criteria targeting on custom targeting keys of type CustomTargetingKey.Type#PREDEFINED - /// or CustomTargetingKey.Type#FREEFORM. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class CustomCriteria : CustomCriteriaLeaf { - private long keyIdField; - - private bool keyIdFieldSpecified; - - private long[] valueIdsField; - - private CustomCriteriaComparisonOperator operatorField; - private bool operatorFieldSpecified; + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool skippableAdTypeSpecified { + get { + return this.skippableAdTypeFieldSpecified; + } + set { + this.skippableAdTypeFieldSpecified = value; + } + } - /// The CustomTargetingKey#id of the CustomTargetingKey object that was created using - /// CustomTargetingService. This attribute is - /// required. + /// The set of frequency capping units for this LineItem. This + /// attribute is optional. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public long keyId { + [System.Xml.Serialization.XmlElementAttribute("frequencyCaps", Order = 16)] + public FrequencyCap[] frequencyCaps { get { - return this.keyIdField; + return this.frequencyCapsField; } set { - this.keyIdField = value; - this.keyIdSpecified = true; + this.frequencyCapsField = value; } } - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool keyIdSpecified { + /// Indicates the line item type of a LineItem. This attribute is + /// required.

The line item type determines the default priority of the line + /// item. More information can be found on the Ad Manager Help + /// Center.

+ ///
+ [System.Xml.Serialization.XmlElementAttribute(Order = 17)] + public LineItemType lineItemType { get { - return this.keyIdFieldSpecified; + return this.lineItemTypeField; } set { - this.keyIdFieldSpecified = value; + this.lineItemTypeField = value; + this.lineItemTypeSpecified = true; } } - /// The ids of CustomTargetingValue objects to - /// target the custom targeting key with id CustomCriteria#keyId. This attribute is - /// required. - /// - [System.Xml.Serialization.XmlElementAttribute("valueIds", Order = 1)] - public long[] valueIds { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool lineItemTypeSpecified { get { - return this.valueIdsField; + return this.lineItemTypeFieldSpecified; } set { - this.valueIdsField = value; + this.lineItemTypeFieldSpecified = value; } } - /// The comparison operator. This attribute is required. + /// The priority for the line item. Valid values range from 1 to 16. This field is + /// optional and defaults to the default priority of the LineItemType.

The following table shows the default, + /// minimum, and maximum priority values are for each line item type:

+ /// + /// + /// + /// + /// + ///
LineItemType - default priority (minimum + /// priority, maximum priority)
LineItemType#SPONSORSHIP 4 (2, + /// 5)
LineItemType#STANDARD 8 (6, 10)
LineItemType#NETWORK12 (11, 14)
LineItemType#BULK 12 (11, 14)
LineItemType#PRICE_PRIORITY 12 + /// (11, 14)
LineItemType#HOUSE 16 (15, 16)
LineItemType#CLICK_TRACKING 16 + /// (1, 16)
LineItemType#AD_EXCHANGE 12 (1, + /// 16)
LineItemType#ADSENSE 12 (1, 16)
LineItemType#BUMPER 16 + /// (15, 16)

This field can only be edited by certain + /// networks, otherwise a PermissionError will + /// occur.

///
- [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public CustomCriteriaComparisonOperator @operator { + [System.Xml.Serialization.XmlElementAttribute(Order = 18)] + public int priority { get { - return this.operatorField; + return this.priorityField; } set { - this.operatorField = value; - this.operatorSpecified = true; + this.priorityField = value; + this.prioritySpecified = true; } } - /// true, if a value is specified for true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool operatorSpecified { + public bool prioritySpecified { get { - return this.operatorFieldSpecified; + return this.priorityFieldSpecified; } set { - this.operatorFieldSpecified = value; + this.priorityFieldSpecified = value; } } - } - - /// Specifies the available comparison operators. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CustomCriteria.ComparisonOperator", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum CustomCriteriaComparisonOperator { - IS = 0, - IS_NOT = 1, - } - - - /// Provides line items the ability to target or exclude users visiting their - /// websites from a list of domains or subdomains. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class UserDomainTargeting { - private string[] domainsField; - - private bool targetedField; - - private bool targetedFieldSpecified; + /// The amount of money to spend per impression or click. This attribute is required + /// for creating a LineItem. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 19)] + public Money costPerUnit { + get { + return this.costPerUnitField; + } + set { + this.costPerUnitField = value; + } + } - /// The domains or subdomains that are being targeted or excluded by the LineItem. This attribute is required and the maximum length - /// of each domain is 67 characters. + /// An amount to help the adserver rank inventory. LineItem#valueCostPerUnit artificially + /// raises the value of inventory over the LineItem#costPerUnit but avoids raising the + /// actual LineItem#costPerUnit. This attribute + /// is optional and defaults to a Money object in the local + /// currency with Money#microAmount 0. /// - [System.Xml.Serialization.XmlElementAttribute("domains", Order = 0)] - public string[] domains { + [System.Xml.Serialization.XmlElementAttribute(Order = 20)] + public Money valueCostPerUnit { get { - return this.domainsField; + return this.valueCostPerUnitField; } set { - this.domainsField = value; + this.valueCostPerUnitField = value; } } - /// Indicates whether domains should be targeted or excluded. This attribute is - /// optional and defaults to true. + /// The method used for billing this LineItem. This attribute is + /// required. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public bool targeted { + [System.Xml.Serialization.XmlElementAttribute(Order = 21)] + public CostType costType { get { - return this.targetedField; + return this.costTypeField; } set { - this.targetedField = value; - this.targetedSpecified = true; + this.costTypeField = value; + this.costTypeSpecified = true; } } - /// true, if a value is specified for true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool targetedSpecified { + public bool costTypeSpecified { get { - return this.targetedFieldSpecified; + return this.costTypeFieldSpecified; } set { - this.targetedFieldSpecified = value; + this.costTypeFieldSpecified = value; } } - } - - - /// Used to target LineItems to specific videos on a - /// publisher's site. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ContentTargeting { - private long[] targetedContentIdsField; - - private long[] excludedContentIdsField; - - private long[] targetedVideoContentBundleIdsField; - - private long[] excludedVideoContentBundleIdsField; - /// The IDs of content being targeted by the LineItem. + /// The type of discount being applied to a LineItem, either percentage + /// based or absolute. This attribute is optional and defaults to LineItemDiscountType#PERCENTAGE. /// - [System.Xml.Serialization.XmlElementAttribute("targetedContentIds", Order = 0)] - public long[] targetedContentIds { + [System.Xml.Serialization.XmlElementAttribute(Order = 22)] + public LineItemDiscountType discountType { get { - return this.targetedContentIdsField; + return this.discountTypeField; } set { - this.targetedContentIdsField = value; + this.discountTypeField = value; + this.discountTypeSpecified = true; } } - /// The IDs of content being excluded by the LineItem. - /// - [System.Xml.Serialization.XmlElementAttribute("excludedContentIds", Order = 1)] - public long[] excludedContentIds { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool discountTypeSpecified { get { - return this.excludedContentIdsField; + return this.discountTypeFieldSpecified; } set { - this.excludedContentIdsField = value; + this.discountTypeFieldSpecified = value; } } - /// A list of video content bundles, represented by ContentBundle IDs, that are being targeted by the - /// LineItem. + /// The number here is either a percentage or an absolute value depending on the + /// LineItemDiscountType. If the is LineItemDiscountType#PERCENTAGE, then only non-fractional values are + /// supported. /// - [System.Xml.Serialization.XmlElementAttribute("targetedVideoContentBundleIds", Order = 2)] - public long[] targetedVideoContentBundleIds { + [System.Xml.Serialization.XmlElementAttribute(Order = 23)] + public double discount { get { - return this.targetedVideoContentBundleIdsField; + return this.discountField; } set { - this.targetedVideoContentBundleIdsField = value; + this.discountField = value; + this.discountSpecified = true; } } - /// A list of video content bundles, represented by ContentBundle IDs, that are being excluded by the - /// LineItem. - /// - [System.Xml.Serialization.XmlElementAttribute("excludedVideoContentBundleIds", Order = 3)] - public long[] excludedVideoContentBundleIds { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool discountSpecified { get { - return this.excludedVideoContentBundleIdsField; + return this.discountFieldSpecified; } set { - this.excludedVideoContentBundleIdsField = value; + this.discountFieldSpecified = value; } } - } - - - /// Represents positions within and around a video where ads can be targeted to. - ///

Example positions could be pre-roll (before the video plays), - /// post-roll (after a video has completed playback) and - /// mid-roll (during video playback).

Empty video position - /// targeting means that all video positions are allowed. If a bumper line item has - /// empty video position targeting it will be updated to target all bumper - /// positions.

- ///
- [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class VideoPositionTargeting { - private VideoPositionTarget[] targetedPositionsField; - /// The VideoTargetingPosition objects being - /// targeted by the video LineItem. + /// This attribute is only applicable for certain line item + /// types and acts as an "FYI" or note, which does not impact adserving or other + /// backend systems.

For LineItemType#SPONSORSHIP line items, this + /// represents the minimum quantity, which is a lifetime impression volume goal for + /// reporting purposes only.

For LineItemType#STANDARD line items, this + /// represent the contracted quantity, which is the number of units specified in the + /// contract the advertiser has bought for this LineItem. This field is + /// just a "FYI" for traffickers to manually intervene with the + /// LineItem when needed. This attribute is only available for LineItemType#STANDARD line items if you have + /// this feature enabled on your network.

///
- [System.Xml.Serialization.XmlElementAttribute("targetedPositions", Order = 0)] - public VideoPositionTarget[] targetedPositions { + [System.Xml.Serialization.XmlElementAttribute(Order = 24)] + public long contractedUnitsBought { get { - return this.targetedPositionsField; + return this.contractedUnitsBoughtField; } set { - this.targetedPositionsField = value; + this.contractedUnitsBoughtField = value; + this.contractedUnitsBoughtSpecified = true; } } - } - - - /// Represents the options for targetable positions within a video. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class VideoPositionTarget { - private VideoPosition videoPositionField; - private VideoBumperType videoBumperTypeField; - - private bool videoBumperTypeFieldSpecified; - - private VideoPositionWithinPod videoPositionWithinPodField; - - private long adSpotIdField; + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool contractedUnitsBoughtSpecified { + get { + return this.contractedUnitsBoughtFieldSpecified; + } + set { + this.contractedUnitsBoughtFieldSpecified = value; + } + } - private bool adSpotIdFieldSpecified; + /// Details about the creatives that are expected to serve through this + /// LineItem. This attribute is required and replaces the + /// creativeSizes attribute. + /// + [System.Xml.Serialization.XmlElementAttribute("creativePlaceholders", Order = 25)] + public CreativePlaceholder[] creativePlaceholders { + get { + return this.creativePlaceholdersField; + } + set { + this.creativePlaceholdersField = value; + } + } - /// The video position to target. This attribute is required. + /// This attribute is required and meaningful only if the LineItem#costType is CostType.CPA. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public VideoPosition videoPosition { + [System.Xml.Serialization.XmlElementAttribute("activityAssociations", Order = 26)] + public LineItemActivityAssociation[] activityAssociations { get { - return this.videoPositionField; + return this.activityAssociationsField; } set { - this.videoPositionField = value; + this.activityAssociationsField = value; } } - /// The video bumper type to target. To target a video position or a pod position, - /// this value must be null. To target a bumper position this value must be - /// populated and the line item must have a bumper type. To target a custom ad spot, - /// this value must be null. + /// The environment that the LineItem is targeting. The default value + /// is EnvironmentType#BROWSER. If this value is EnvironmentType#VIDEO_PLAYER, then this + /// line item can only target AdUnits that have + /// AdUnitSizes whose environmentType is also + /// . /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public VideoBumperType videoBumperType { + [System.Xml.Serialization.XmlElementAttribute(Order = 27)] + public EnvironmentType environmentType { get { - return this.videoBumperTypeField; + return this.environmentTypeField; } set { - this.videoBumperTypeField = value; - this.videoBumperTypeSpecified = true; + this.environmentTypeField = value; + this.environmentTypeSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="environmentType" />, false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool videoBumperTypeSpecified { + public bool environmentTypeSpecified { get { - return this.videoBumperTypeFieldSpecified; + return this.environmentTypeFieldSpecified; } set { - this.videoBumperTypeFieldSpecified = value; + this.environmentTypeFieldSpecified = value; } } - /// The video position within a pod to target. To target a video position or a - /// bumper position, this value must be null. To target a position within a pod this - /// value must be populated. To target a custom ad spot, this value must be null. + /// The set of allowedFormats that this programmatic + /// line item can have. If the set is empty, this line item allows all formats. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public VideoPositionWithinPod videoPositionWithinPod { + [System.Xml.Serialization.XmlElementAttribute("allowedFormats", Order = 28)] + public AllowedFormats[] allowedFormats { get { - return this.videoPositionWithinPodField; + return this.allowedFormatsField; } set { - this.videoPositionWithinPodField = value; + this.allowedFormatsField = value; } } - /// A custom spot AdSpot to target. To target a video position, - /// a bumper type or a video position within a pod this value must be null. + /// The delivery option for companions. Setting this field is only meaningful if the + /// following conditions are met:
  1. The Guaranteed roadblocks feature + /// is enabled on your network.
  2. One of the following is true (both cannot + /// be true, these are mutually exclusive).

This field is optional and defaults to CompanionDeliveryOption#OPTIONAL if + /// the above conditions are met. In all other cases it defaults to CompanionDeliveryOption#UNKNOWN and + /// is not meaningful.

///
- [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public long adSpotId { + [System.Xml.Serialization.XmlElementAttribute(Order = 29)] + public CompanionDeliveryOption companionDeliveryOption { get { - return this.adSpotIdField; + return this.companionDeliveryOptionField; } set { - this.adSpotIdField = value; - this.adSpotIdSpecified = true; + this.companionDeliveryOptionField = value; + this.companionDeliveryOptionSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool adSpotIdSpecified { + public bool companionDeliveryOptionSpecified { get { - return this.adSpotIdFieldSpecified; + return this.companionDeliveryOptionFieldSpecified; } set { - this.adSpotIdFieldSpecified = value; + this.companionDeliveryOptionFieldSpecified = value; } } - } - - - /// Represents a targetable position within a video. A video ad can be targeted to a - /// position (pre-roll, all mid-rolls, or post-roll), or to a specific mid-roll - /// index. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class VideoPosition { - private VideoPositionType positionTypeField; - - private bool positionTypeFieldSpecified; - - private int midrollIndexField; - - private bool midrollIndexFieldSpecified; - /// The type of video position (pre-roll, mid-roll, or post-roll). + /// The flag indicates whether overbooking should be allowed when creating or + /// updating reservations of line item types LineItemType#SPONSORSHIP and LineItemType#STANDARD. When true, operations on + /// this line item will never trigger a ForecastError, + /// which corresponds to an overbook warning in the UI. The default value is false. + ///

Note: this field will not persist on the line item itself, and the value will + /// only affect the current request.

///
- [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public VideoPositionType positionType { + [System.Xml.Serialization.XmlElementAttribute(Order = 30)] + public bool allowOverbook { get { - return this.positionTypeField; + return this.allowOverbookField; } set { - this.positionTypeField = value; - this.positionTypeSpecified = true; + this.allowOverbookField = value; + this.allowOverbookSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="allowOverbook" />, false otherwise.
[System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool positionTypeSpecified { + public bool allowOverbookSpecified { get { - return this.positionTypeFieldSpecified; + return this.allowOverbookFieldSpecified; } set { - this.positionTypeFieldSpecified = value; + this.allowOverbookFieldSpecified = value; } } - /// The index of the mid-roll to target. Only valid if the positionType is VideoPositionType#MIDROLL, otherwise this - /// field will be ignored. + /// The flag indicates whether the inventory check should be skipped when creating + /// or updating a line item. The default value is false.

Note: this field will + /// not persist on the line item itself, and the value will only affect the current + /// request.

///
- [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public int midrollIndex { + [System.Xml.Serialization.XmlElementAttribute(Order = 31)] + public bool skipInventoryCheck { get { - return this.midrollIndexField; + return this.skipInventoryCheckField; } set { - this.midrollIndexField = value; - this.midrollIndexSpecified = true; + this.skipInventoryCheckField = value; + this.skipInventoryCheckSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="skipInventoryCheck" />, false otherwise.
[System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool midrollIndexSpecified { + public bool skipInventoryCheckSpecified { get { - return this.midrollIndexFieldSpecified; + return this.skipInventoryCheckFieldSpecified; } set { - this.midrollIndexFieldSpecified = value; + this.skipInventoryCheckFieldSpecified = value; } } - } - - - /// Represents a targetable position within a video. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "VideoPosition.Type", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum VideoPositionType { - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 3, - /// This position targets all of the above video positions. - /// - ALL = 4, - /// The position defined as showing before the video starts playing. - /// - PREROLL = 0, - /// The position defined as showing within the middle of the playing video. - /// - MIDROLL = 1, - /// The position defined as showing after the video is completed. - /// - POSTROLL = 2, - } - - - /// Represents the options for targetable bumper positions, surrounding an ad pod, - /// within a video stream. This includes before and after the supported ad pod - /// positions, VideoPositionType#PREROLL, VideoPositionType#MIDROLL, and VideoPositionType#POSTROLL. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum VideoBumperType { - /// Represents the bumper position before the ad pod. - /// - BEFORE = 0, - /// Represents the bumper position after the ad pod. - /// - AFTER = 1, - } - - - /// Represents a targetable position within a pod within a video stream. A video ad - /// can be targeted to any position in the pod (first, second, third ... last). If - /// there is only 1 ad in a pod, either first or last will target that position. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class VideoPositionWithinPod { - private int indexField; - - private bool indexFieldSpecified; - /// The specific index of the pod. The index is defined as:
  • 1 = first
  • - ///
  • 2 = second
  • 3 = third
  • ....
  • 100 = last
- /// 100 will always be the last position. For example, for a pod with 5 positions, - /// 100 would target position 5. Multiple targets against the index 100 can - /// exist.
Positions over 100 are not supported. + /// True to skip checks for warnings from rules applied to line items targeting + /// inventory shared by a distributor partner for cross selling when performing an + /// action on this line item. The default is false. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public int index { + [System.Xml.Serialization.XmlElementAttribute(Order = 32)] + public bool skipCrossSellingRuleWarningChecks { get { - return this.indexField; + return this.skipCrossSellingRuleWarningChecksField; } set { - this.indexField = value; - this.indexSpecified = true; + this.skipCrossSellingRuleWarningChecksField = value; + this.skipCrossSellingRuleWarningChecksSpecified = true; } } - /// true, if a value is specified for , - /// false otherwise. + /// true, if a value is specified for , false otherwise. + /// [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool indexSpecified { + public bool skipCrossSellingRuleWarningChecksSpecified { get { - return this.indexFieldSpecified; + return this.skipCrossSellingRuleWarningChecksFieldSpecified; } set { - this.indexFieldSpecified = value; + this.skipCrossSellingRuleWarningChecksFieldSpecified = value; } } - } - - /// Provides line items the ability to target or exclude users' mobile applications. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class MobileApplicationTargeting { - private long[] mobileApplicationIdsField; - - private bool isTargetedField; - - private bool isTargetedFieldSpecified; - - /// The IDs that are being targeted or - /// excluded by the LineItem. + /// The flag indicates whether inventory should be reserved when creating a line + /// item of types LineItemType#SPONSORSHIP + /// and LineItemType#STANDARD in an unapproved + /// Order. The default value is false. /// - [System.Xml.Serialization.XmlElementAttribute("mobileApplicationIds", Order = 0)] - public long[] mobileApplicationIds { + [System.Xml.Serialization.XmlElementAttribute(Order = 33)] + public bool reserveAtCreation { get { - return this.mobileApplicationIdsField; + return this.reserveAtCreationField; } set { - this.mobileApplicationIdsField = value; + this.reserveAtCreationField = value; + this.reserveAtCreationSpecified = true; } } - /// Indicates whether mobile apps should be targeted or excluded. This attribute is - /// optional and defaults to true. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public bool isTargeted { - get { - return this.isTargetedField; - } - set { - this.isTargetedField = value; - this.isTargetedSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool isTargetedSpecified { + public bool reserveAtCreationSpecified { get { - return this.isTargetedFieldSpecified; + return this.reserveAtCreationFieldSpecified; } set { - this.isTargetedFieldSpecified = value; + this.reserveAtCreationFieldSpecified = value; } } - } - - - /// The BuyerUserListTargeting associated with a programmatic LineItem or ProposalLineItem object. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class BuyerUserListTargeting { - private bool hasBuyerUserListTargetingField; - private bool hasBuyerUserListTargetingFieldSpecified; - - /// Whether the programmatic LineItem or object has buyer - /// user list targeting. + /// Contains trafficking statistics for the line item. This attribute is readonly + /// and is populated by Google. This will be null in case there are no + /// statistics for a line item yet. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public bool hasBuyerUserListTargeting { + [System.Xml.Serialization.XmlElementAttribute(Order = 34)] + public Stats stats { get { - return this.hasBuyerUserListTargetingField; + return this.statsField; } set { - this.hasBuyerUserListTargetingField = value; - this.hasBuyerUserListTargetingSpecified = true; + this.statsField = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool hasBuyerUserListTargetingSpecified { + /// Indicates how well the line item has been performing. This attribute is readonly + /// and is populated by Google. This will be null if the delivery + /// indicator information is not available due to one of the following reasons:
    + ///
  1. The line item is not delivering.
  2. The line item has an unlimited + /// goal or cap.
  3. The line item has a percentage based goal or cap.
  4. + ///
+ ///
+ [System.Xml.Serialization.XmlElementAttribute(Order = 35)] + public DeliveryIndicator deliveryIndicator { get { - return this.hasBuyerUserListTargetingFieldSpecified; + return this.deliveryIndicatorField; } set { - this.hasBuyerUserListTargetingFieldSpecified = value; + this.deliveryIndicatorField = value; } } - } - - - /// A collection of targeted inventory urls. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class InventoryUrlTargeting { - private InventoryUrl[] targetedUrlsField; - - private InventoryUrl[] excludedUrlsField; - [System.Xml.Serialization.XmlElementAttribute("targetedUrls", Order = 0)] - public InventoryUrl[] targetedUrls { + /// Delivery data provides the number of clicks or impressions delivered for a LineItem in the last 7 days. This attribute is readonly and + /// is populated by Google. This will be null if the delivery data + /// cannot be computed due to one of the following reasons:
  1. The line item + /// is not deliverable.
  2. The line item has completed delivering more than 7 + /// days ago.
  3. The line item has an absolute-based goal. LineItem#deliveryIndicator should be used + /// to track its progress in this case.
+ ///
+ [System.Xml.Serialization.XmlArrayAttribute(Order = 36)] + [System.Xml.Serialization.XmlArrayItemAttribute("units", IsNullable = false)] + public long[] deliveryData { get { - return this.targetedUrlsField; + return this.deliveryDataField; } set { - this.targetedUrlsField = value; + this.deliveryDataField = value; } } - [System.Xml.Serialization.XmlElementAttribute("excludedUrls", Order = 1)] - public InventoryUrl[] excludedUrls { + /// The amount of money allocated to the LineItem. This attribute is + /// readonly and is populated by Google. The currency code is readonly. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 37)] + public Money budget { get { - return this.excludedUrlsField; + return this.budgetField; } set { - this.excludedUrlsField = value; + this.budgetField = value; } } - } - - - /// The representation of an inventory Url that is used in targeting. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class InventoryUrl { - private long idField; - - private bool idFieldSpecified; - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public long id { + /// The status of the LineItem. This attribute is readonly. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 38)] + public ComputedStatus status { get { - return this.idField; + return this.statusField; } set { - this.idField = value; - this.idSpecified = true; + this.statusField = value; + this.statusSpecified = true; } } - /// true, if a value is specified for , + /// true, if a value is specified for , /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool idSpecified { + public bool statusSpecified { get { - return this.idFieldSpecified; + return this.statusFieldSpecified; } set { - this.idFieldSpecified = value; + this.statusFieldSpecified = value; } } - } - - - /// Provides line items the ability to target the platform that requests and renders - /// the ad.

The following rules apply for RequestPlatformTargeting

- ///
- [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class RequestPlatformTargeting { - private RequestPlatform[] targetedRequestPlatformsField; - [System.Xml.Serialization.XmlElementAttribute("targetedRequestPlatforms", Order = 0)] - public RequestPlatform[] targetedRequestPlatforms { + /// Describes whether or not inventory has been reserved for the . This + /// attribute is readonly and is assigned by Google. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 39)] + public LineItemSummaryReservationStatus reservationStatus { get { - return this.targetedRequestPlatformsField; + return this.reservationStatusField; } set { - this.targetedRequestPlatformsField = value; + this.reservationStatusField = value; + this.reservationStatusSpecified = true; } } - } - - - /// Represents the platform which requests and renders the ad. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum RequestPlatform { - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 0, - /// Represents a request made from a web browser. This includes both desktop and - /// mobile web. - /// - BROWSER = 1, - /// Represents a request made from a mobile application. This includes mobile app - /// interstitial and rewarded video requests. - /// - MOBILE_APP = 2, - /// Represents a request made from a video player that is playing publisher content. - /// This includes video players embedded in web pages and mobile applications, and - /// connected TV screens. - /// - VIDEO_PLAYER = 3, - } - - - /// Represents a collection of targeted and excluded inventory sizes. This is - /// currently only available on YieldGroup and TrafficDataRequest. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class InventorySizeTargeting { - private bool isTargetedField; - - private bool isTargetedFieldSpecified; - private TargetedSize[] targetedSizesField; + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool reservationStatusSpecified { + get { + return this.reservationStatusFieldSpecified; + } + set { + this.reservationStatusFieldSpecified = value; + } + } - /// Whether the inventory sizes should be targeted or excluded. + /// The archival status of the LineItem. This attribute is readonly. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public bool isTargeted { + [System.Xml.Serialization.XmlElementAttribute(Order = 40)] + public bool isArchived { get { - return this.isTargetedField; + return this.isArchivedField; } set { - this.isTargetedField = value; - this.isTargetedSpecified = true; + this.isArchivedField = value; + this.isArchivedSpecified = true; } } - /// true, if a value is specified for true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool isTargetedSpecified { + public bool isArchivedSpecified { get { - return this.isTargetedFieldSpecified; + return this.isArchivedFieldSpecified; } set { - this.isTargetedFieldSpecified = value; + this.isArchivedFieldSpecified = value; } } - /// A list of TargetedSizeDtos. + /// The web property code used for dynamic allocation line items. This web property + /// is only required with line item types LineItemType#AD_EXCHANGE and LineItemType#ADSENSE. /// - [System.Xml.Serialization.XmlElementAttribute("targetedSizes", Order = 1)] - public TargetedSize[] targetedSizes { + [System.Xml.Serialization.XmlElementAttribute(Order = 41)] + public string webPropertyCode { get { - return this.targetedSizesField; + return this.webPropertyCodeField; } set { - this.targetedSizesField = value; + this.webPropertyCodeField = value; } } - } - - - /// A size that is targeted on a request. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class TargetedSize { - private Size sizeField; - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public Size size { + /// The set of labels applied directly to this line item. + /// + [System.Xml.Serialization.XmlElementAttribute("appliedLabels", Order = 42)] + public AppliedLabel[] appliedLabels { get { - return this.sizeField; + return this.appliedLabelsField; } set { - this.sizeField = value; + this.appliedLabelsField = value; } } - } - - - /// A CreativePlaceholder describes a slot that a creative is expected - /// to fill. This is used primarily to help in forecasting, and also to validate - /// that the correct creatives are associated with the line item. A - /// CreativePlaceholder must contain a size, and it can optionally - /// contain companions. Companions are only valid if the line item's environment - /// type is EnvironmentType#VIDEO_PLAYER. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class CreativePlaceholder { - private Size sizeField; - - private long creativeTemplateIdField; - - private bool creativeTemplateIdFieldSpecified; - - private CreativePlaceholder[] companionsField; - - private AppliedLabel[] appliedLabelsField; - - private AppliedLabel[] effectiveAppliedLabelsField; - - private int expectedCreativeCountField; - - private bool expectedCreativeCountFieldSpecified; - - private CreativeSizeType creativeSizeTypeField; - - private bool creativeSizeTypeFieldSpecified; - - private string targetingNameField; - - private bool isAmpOnlyField; - - private bool isAmpOnlyFieldSpecified; - /// The dimensions that the creative is expected to have. This attribute is - /// required. + /// Contains the set of labels inherited from the order that contains this line item + /// and the advertiser that owns the order. If a label has been negated, only the + /// negated label is returned. This field is readonly and is assigned by Google. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public Size size { + [System.Xml.Serialization.XmlElementAttribute("effectiveAppliedLabels", Order = 43)] + public AppliedLabel[] effectiveAppliedLabels { get { - return this.sizeField; + return this.effectiveAppliedLabelsField; } set { - this.sizeField = value; + this.effectiveAppliedLabelsField = value; } } - /// The native creative template ID.

This value is only required if #creativeSizeType is CreativeSizeType#NATIVE.

+ /// If a line item has a series of competitive exclusions on it, it could be blocked + /// from serving with line items from the same advertiser. Setting this to + /// true will allow line items from the same advertiser to serve + /// regardless of the other competitive exclusion labels being applied. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public long creativeTemplateId { + [System.Xml.Serialization.XmlElementAttribute(Order = 44)] + public bool disableSameAdvertiserCompetitiveExclusion { get { - return this.creativeTemplateIdField; + return this.disableSameAdvertiserCompetitiveExclusionField; } set { - this.creativeTemplateIdField = value; - this.creativeTemplateIdSpecified = true; + this.disableSameAdvertiserCompetitiveExclusionField = value; + this.disableSameAdvertiserCompetitiveExclusionSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="disableSameAdvertiserCompetitiveExclusion" />, false + /// otherwise.
[System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool creativeTemplateIdSpecified { - get { - return this.creativeTemplateIdFieldSpecified; - } - set { - this.creativeTemplateIdFieldSpecified = value; - } - } - - /// The companions that the creative is expected to have. This attribute can only be - /// set if the line item it belongs to has a LineItem#environmentType of EnvironmentType#VIDEO_PLAYER or LineItem#roadblockingType of RoadblockingType#CREATIVE_SET. - /// - [System.Xml.Serialization.XmlElementAttribute("companions", Order = 2)] - public CreativePlaceholder[] companions { + public bool disableSameAdvertiserCompetitiveExclusionSpecified { get { - return this.companionsField; + return this.disableSameAdvertiserCompetitiveExclusionFieldSpecified; } set { - this.companionsField = value; + this.disableSameAdvertiserCompetitiveExclusionFieldSpecified = value; } } - /// The set of label frequency caps applied directly to this creative placeholder. + /// The application that last modified this line item. This attribute is read only + /// and is assigned by Google. /// - [System.Xml.Serialization.XmlElementAttribute("appliedLabels", Order = 3)] - public AppliedLabel[] appliedLabels { + [System.Xml.Serialization.XmlElementAttribute(Order = 45)] + public string lastModifiedByApp { get { - return this.appliedLabelsField; + return this.lastModifiedByAppField; } set { - this.appliedLabelsField = value; + this.lastModifiedByAppField = value; } } - /// Contains the set of labels applied directly to this creative placeholder as well - /// as those inherited from the creative template from which this creative - /// placeholder was instantiated. This field is readonly and is assigned by Google. + /// Provides any additional notes that may annotate the . This + /// attribute is optional and has a maximum length of 65,535 characters. /// - [System.Xml.Serialization.XmlElementAttribute("effectiveAppliedLabels", Order = 4)] - public AppliedLabel[] effectiveAppliedLabels { + [System.Xml.Serialization.XmlElementAttribute(Order = 46)] + public string notes { get { - return this.effectiveAppliedLabelsField; + return this.notesField; } set { - this.effectiveAppliedLabelsField = value; + this.notesField = value; } } - /// Expected number of creatives that will be uploaded corresponding to this - /// creative placeholder. This estimate is used to improve the accuracy of - /// forecasting; for example, if label frequency capping limits the number of times - /// a creative may be served. + /// The CompetitiveConstraintScope for the competitive exclusion labels + /// assigned to this line item. This field is optional, defaults to CompetitiveConstraintScope#POD, and + /// only applies to video line items. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 5)] - public int expectedCreativeCount { + [System.Xml.Serialization.XmlElementAttribute(Order = 47)] + public CompetitiveConstraintScope competitiveConstraintScope { get { - return this.expectedCreativeCountField; + return this.competitiveConstraintScopeField; } set { - this.expectedCreativeCountField = value; - this.expectedCreativeCountSpecified = true; + this.competitiveConstraintScopeField = value; + this.competitiveConstraintScopeSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="competitiveConstraintScope" />, false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool expectedCreativeCountSpecified { + public bool competitiveConstraintScopeSpecified { get { - return this.expectedCreativeCountFieldSpecified; + return this.competitiveConstraintScopeFieldSpecified; } set { - this.expectedCreativeCountFieldSpecified = value; + this.competitiveConstraintScopeFieldSpecified = value; } } - /// Describes the types of sizes a creative can be. By default, the creative's size - /// is CreativeSizeType#PIXEL, which is a dimension based size - /// (width-height pair). + /// The date and time this line item was last modified. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 6)] - public CreativeSizeType creativeSizeType { + [System.Xml.Serialization.XmlElementAttribute(Order = 48)] + public DateTime lastModifiedDateTime { get { - return this.creativeSizeTypeField; + return this.lastModifiedDateTimeField; } set { - this.creativeSizeTypeField = value; - this.creativeSizeTypeSpecified = true; + this.lastModifiedDateTimeField = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool creativeSizeTypeSpecified { + /// This attribute may be null for line items created before this + /// feature was introduced. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 49)] + public DateTime creationDateTime { get { - return this.creativeSizeTypeFieldSpecified; + return this.creationDateTimeField; } set { - this.creativeSizeTypeFieldSpecified = value; + this.creationDateTimeField = value; } } - /// The name of the CreativeTargeting for creatives - /// this placeholder represents.

This attribute is optional. Specifying creative - /// targeting here is for forecasting purposes only and has no effect on serving. - /// The same creative targeting should be specified on a LineItemCreativeAssociation when associating a Creative with the LineItem.

+ /// The values of the custom fields associated with this line item. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 7)] - public string targetingName { + [System.Xml.Serialization.XmlElementAttribute("customFieldValues", Order = 50)] + public BaseCustomFieldValue[] customFieldValues { get { - return this.targetingNameField; + return this.customFieldValuesField; } set { - this.targetingNameField = value; + this.customFieldValuesField = value; } } - /// Indicate if the expected creative of this placeholder has an AMP only variant. - ///

This attribute is optional. It is for forecasting purposes only and has no - /// effect on serving.

+ /// Indicates if a LineItem is missing any creatives for the creativePlaceholders + /// specified.

Creatives can be considered missing for + /// several reasons including:

  • Not enough creatives of a certain size have been uploaded, as + /// determined by CreativePlaceholder#expectedCreativeCount. + /// For example a LineItem specifies 750x350, 400x200 but only a + /// 750x350 was uploaded. Or LineItem specifies 750x350 with an + /// expected count of 2, but only one was uploaded.
  • The Creative#appliedLabels of an associated + /// Creative do not match the CreativePlaceholder#effectiveAppliedLabels + /// of the LineItem. For example LineItem specifies + /// 750x350 with a Foo AppliedLabel but a 750x350 creative without a + /// AppliedLabel was uploaded.
///
- [System.Xml.Serialization.XmlElementAttribute(Order = 8)] - public bool isAmpOnly { + [System.Xml.Serialization.XmlElementAttribute(Order = 51)] + public bool isMissingCreatives { get { - return this.isAmpOnlyField; + return this.isMissingCreativesField; } set { - this.isAmpOnlyField = value; - this.isAmpOnlySpecified = true; + this.isMissingCreativesField = value; + this.isMissingCreativesSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool isAmpOnlySpecified { + public bool isMissingCreativesSpecified { get { - return this.isAmpOnlyFieldSpecified; + return this.isMissingCreativesFieldSpecified; } set { - this.isAmpOnlyFieldSpecified = value; + this.isMissingCreativesFieldSpecified = value; } } - } - - /// Descriptions of the types of sizes a creative can be. Not all creatives can be - /// described by a height-width pair, this provides additional context. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum CreativeSizeType { - /// Dimension based size, an actual height and width. - /// - PIXEL = 0, - /// Mobile size, that is expressed as a ratio of say 4 by 1, that could be met by a - /// 100 x 25 sized image. - /// - ASPECT_RATIO = 1, - /// Out-of-page size, that is not related to the slot it is served. But rather is a - /// function of the snippet, and the values set. This must be used with 1x1 size. - /// - INTERSTITIAL = 2, - /// Size has no meaning

1. For Click Tracking entities, where size doesn't matter - /// 2. For entities that allow all requested sizes, where the size represents all - /// sizes.

- ///
- IGNORED = 5, - /// Native size, which is a function of the how the client renders the creative. - /// This must be used with 1x1 size. - /// - NATIVE = 3, - /// Audio size. Used with audio ads. This must be used with 1x1 size. - /// - AUDIO = 4, - } - - - /// Configuration of forecast breakdown. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ForecastBreakdownOptions { - private DateTime[] timeWindowsField; - - private ForecastBreakdownTarget[] targetsField; - - /// The boundaries of time windows to configure time breakdown.

By default, the - /// time window of the forecasted LineItem is assumed if none - /// are explicitly specified in this field. But if set, at least two DateTimes are needed to define the boundaries of minimally - /// one time window.

Also, the time boundaries are required to be in the same - /// time zone, in strictly ascending order.

+ /// Indicates the ProgrammaticCreativeSource of the + /// programmatic line item. This is a read-only field. Any changes must be made on + /// the ProposalLineItem. /// - [System.Xml.Serialization.XmlElementAttribute("timeWindows", Order = 0)] - public DateTime[] timeWindows { + [System.Xml.Serialization.XmlElementAttribute(Order = 52)] + public ProgrammaticCreativeSource programmaticCreativeSource { get { - return this.timeWindowsField; + return this.programmaticCreativeSourceField; } set { - this.timeWindowsField = value; + this.programmaticCreativeSourceField = value; + this.programmaticCreativeSourceSpecified = true; } } - /// For each time window, these are the breakdown targets. If none specified, the - /// targeting of the forecasted LineItem is assumed. - /// - [System.Xml.Serialization.XmlElementAttribute("targets", Order = 1)] - public ForecastBreakdownTarget[] targets { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool programmaticCreativeSourceSpecified { get { - return this.targetsField; + return this.programmaticCreativeSourceFieldSpecified; } set { - this.targetsField = value; + this.programmaticCreativeSourceFieldSpecified = value; } } - } - - - /// Forecasting options for line item availability forecasts. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class AvailabilityForecastOptions { - private bool includeTargetingCriteriaBreakdownField; - - private bool includeTargetingCriteriaBreakdownFieldSpecified; - - private bool includeContendingLineItemsField; - - private bool includeContendingLineItemsFieldSpecified; - private ForecastBreakdownOptions breakdownField; + [System.Xml.Serialization.XmlElementAttribute(Order = 53)] + public ThirdPartyMeasurementSettings thirdPartyMeasurementSettings { + get { + return this.thirdPartyMeasurementSettingsField; + } + set { + this.thirdPartyMeasurementSettingsField = value; + } + } - /// When specified, forecast result for the availability line item will also include - /// breakdowns by its targeting in AvailabilityForecast#targetingCriteriaBreakdowns. + /// Designates this line item as intended for YT Kids app. If true, all creatives + /// associated with this line item must be reviewed and approved. See the Ad Manager + /// Help Center for more information. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public bool includeTargetingCriteriaBreakdown { + [System.Xml.Serialization.XmlElementAttribute(Order = 54)] + public bool youtubeKidsRestricted { get { - return this.includeTargetingCriteriaBreakdownField; + return this.youtubeKidsRestrictedField; } set { - this.includeTargetingCriteriaBreakdownField = value; - this.includeTargetingCriteriaBreakdownSpecified = true; + this.youtubeKidsRestrictedField = value; + this.youtubeKidsRestrictedSpecified = true; } } /// true, if a value is specified for , false otherwise. - /// + /// cref="youtubeKidsRestricted" />, false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool includeTargetingCriteriaBreakdownSpecified { + public bool youtubeKidsRestrictedSpecified { get { - return this.includeTargetingCriteriaBreakdownFieldSpecified; + return this.youtubeKidsRestrictedFieldSpecified; } set { - this.includeTargetingCriteriaBreakdownFieldSpecified = value; + this.youtubeKidsRestrictedFieldSpecified = value; } } - /// When specified, the forecast result for the availability line item will also - /// include contending line items in AvailabilityForecast#contendingLineItems. + /// The max duration of a video creative associated with this in + /// milliseconds.

This attribute is only meaningful for video line items. For + /// version v202011 and earlier, this attribute is optional and defaults to 0. For + /// version v202102 and later, this attribute is required for video line items and + /// must be greater than 0.

///
- [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public bool includeContendingLineItems { + [System.Xml.Serialization.XmlElementAttribute(Order = 55)] + public long videoMaxDuration { get { - return this.includeContendingLineItemsField; + return this.videoMaxDurationField; } set { - this.includeContendingLineItemsField = value; - this.includeContendingLineItemsSpecified = true; + this.videoMaxDurationField = value; + this.videoMaxDurationSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="videoMaxDuration" />, false otherwise.
[System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool includeContendingLineItemsSpecified { + public bool videoMaxDurationSpecified { get { - return this.includeContendingLineItemsFieldSpecified; + return this.videoMaxDurationFieldSpecified; } set { - this.includeContendingLineItemsFieldSpecified = value; + this.videoMaxDurationFieldSpecified = value; } } - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public ForecastBreakdownOptions breakdown { + /// The primary goal that this LineItem is associated with, which is + /// used in its pacing and budgeting. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 56)] + public Goal primaryGoal { get { - return this.breakdownField; + return this.primaryGoalField; } set { - this.breakdownField = value; + this.primaryGoalField = value; } } - } + /// The secondary goals that this LineItem is associated with. It is + /// required and meaningful only if the LineItem#costType is CostType.CPA or if the LineItem#lineItemType is LineItemType#SPONSORSHIP and LineItem#costType is CostType.CPM. + /// + [System.Xml.Serialization.XmlElementAttribute("secondaryGoals", Order = 57)] + public Goal[] secondaryGoals { + get { + return this.secondaryGoalsField; + } + set { + this.secondaryGoalsField = value; + } + } - /// Makegood info for a ProposalLineItemDto. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ProposalLineItemMakegoodInfo { - private long originalProposalLineItemIdField; + /// Contains the information for a line item which has a target GRP demographic. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 58)] + public GrpSettings grpSettings { + get { + return this.grpSettingsField; + } + set { + this.grpSettingsField = value; + } + } - private bool originalProposalLineItemIdFieldSpecified; + /// The deal information associated with this line item, if it is programmatic. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 59)] + public LineItemDealInfoDto dealInfo { + get { + return this.dealInfoField; + } + set { + this.dealInfoField = value; + } + } - private string reasonField; + /// Optional IDs of the Company that provide ad verification + /// for this line item. Company.Type#VIEWABILITY_PROVIDER. + /// + [System.Xml.Serialization.XmlElementAttribute("viewabilityProviderCompanyIds", Order = 60)] + public long[] viewabilityProviderCompanyIds { + get { + return this.viewabilityProviderCompanyIdsField; + } + set { + this.viewabilityProviderCompanyIdsField = value; + } + } - /// The ID of the original proposal line item on which this makegood is based. This - /// attribute is read-only. + /// Child content eligibility designation for this line item.

This field is + /// optional and defaults to ChildContentEligibility#DISALLOWED.

///
- [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public long originalProposalLineItemId { + [System.Xml.Serialization.XmlElementAttribute(Order = 61)] + public ChildContentEligibility childContentEligibility { get { - return this.originalProposalLineItemIdField; + return this.childContentEligibilityField; } set { - this.originalProposalLineItemIdField = value; - this.originalProposalLineItemIdSpecified = true; + this.childContentEligibilityField = value; + this.childContentEligibilitySpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="childContentEligibility" />, false otherwise.
[System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool originalProposalLineItemIdSpecified { + public bool childContentEligibilitySpecified { get { - return this.originalProposalLineItemIdFieldSpecified; + return this.childContentEligibilityFieldSpecified; } set { - this.originalProposalLineItemIdFieldSpecified = value; + this.childContentEligibilityFieldSpecified = value; } } - /// The publisher-provided reason why this makegood was initiated. This is free form - /// text.

The following predefined values can be used to render predefined - /// options in the UI.

UNDERDELIVERY: 'Impression underdelivery', - /// SECONDARY_DELIVERY_TERMS: 'Did not meet secondary delivery terms ', PERFORMANCE: - /// 'Performance issues',

+ /// Custom XML to be rendered in a custom VAST response at serving time. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public string reason { + [System.Xml.Serialization.XmlElementAttribute(Order = 62)] + public string customVastExtension { get { - return this.reasonField; + return this.customVastExtensionField; } set { - this.reasonField = value; + this.customVastExtensionField = value; } } } - /// A ProposalLineItem is added to a programmatic Proposal and is similar to a delivery LineItem. It contains delivery details including information - /// like impression goal or quantity, start and end times, and targeting. + /// The strategy to use for displaying multiple Creative + /// objects that are associated with a LineItem. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ProposalLineItem { - private long idField; - - private bool idFieldSpecified; - - private long proposalIdField; - - private bool proposalIdFieldSpecified; - - private string nameField; - - private DateTime startDateTimeField; - - private DateTime endDateTimeField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum CreativeRotationType { + /// Creatives are displayed roughly the same number of times over the duration of + /// the line item. + /// + EVEN = 0, + /// Creatives are served roughly proportionally to their performance. + /// + OPTIMIZED = 1, + /// Creatives are served roughly proportionally to their weights, set on the LineItemCreativeAssociation. + /// + MANUAL = 2, + /// Creatives are served exactly in sequential order, aka Storyboarding. Set on the + /// LineItemCreativeAssociation. + /// + SEQUENTIAL = 3, + } - private string timeZoneIdField; - private string internalNotesField; + /// Strategies for choosing forecasted traffic shapes to pace line items. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum DeliveryForecastSource { + /// The line item's historical traffic shape will be used to pace line item + /// delivery. + /// + HISTORICAL = 0, + /// The line item's projected future traffic will be used to pace line item + /// delivery. + /// + FORECASTING = 1, + /// A user specified custom pacing curve will be used to pace line item delivery. + /// + CUSTOM_PACING_CURVE = 3, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 2, + } - private bool isArchivedField; - private bool isArchivedFieldSpecified; + /// Describes the LineItem actions that are billable. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum CostType { + /// Starting February 22, 2024 the CPA CostType will be read + /// only as part of Spotlight deprecation, learn + /// more.

Cost per action. The LineItem#lineItemType must be one of:

+ ///
+ CPA = 0, + /// Cost per click. The LineItem#lineItemType + /// must be one of: + /// + CPC = 1, + /// Cost per day. The LineItem#lineItemType must + /// be one of: + /// + CPD = 2, + /// Cost per mille (cost per thousand impressions). The LineItem#lineItemType must be one of: + /// + CPM = 3, + /// Cost per thousand Active View viewable impressions. The LineItem#lineItemType must be LineItemType#STANDARD. + /// + VCPM = 5, + /// Cost per thousand in-target impressions. The LineItem#lineItemType must be LineItemType#STANDARD. + /// + CPM_IN_TARGET = 6, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 4, + } - private Goal goalField; - private Goal[] secondaryGoalsField; + /// Describes the possible discount types on the cost of booking a LineItem. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum LineItemDiscountType { + /// An absolute value will be discounted from the line item's cost. + /// + ABSOLUTE_VALUE = 0, + /// A percentage of the cost will be applied as discount for booking the line item. + /// + PERCENTAGE = 1, + } - private long contractedUnitsBoughtField; - private bool contractedUnitsBoughtFieldSpecified; + /// Specifies the reservation status of the LineItem. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "LineItemSummary.ReservationStatus", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum LineItemSummaryReservationStatus { + /// Indicates that inventory has been reserved for the line item. + /// + RESERVED = 0, + /// Indicates that inventory has not been reserved for the line item. + /// + UNRESERVED = 1, + } - private DeliveryRateType deliveryRateTypeField; - private bool deliveryRateTypeFieldSpecified; + /// The scope to which the assignment of any competitive exclusion labels for a + /// video line item is limited. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum CompetitiveConstraintScope { + /// The competitive exclusion label applies to all line items within a single pod + /// (or group). + /// + POD = 0, + /// The competitive exclusion label applies to all line items within the entire + /// stream of content. + /// + STREAM = 1, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 2, + } - private RoadblockingType roadblockingTypeField; - private bool roadblockingTypeFieldSpecified; + /// Child content eligibility designation.

This field is optional and defaults to + /// ChildContentEligibility#DISALLOWED. + /// This field has no effect on serving enforcement unless you opt to "Child content + /// enforcement" in the network's Child Content settings.

+ ///
+ [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum ChildContentEligibility { + UNKNOWN = 0, + /// This line item is not eligible to serve on any requests that are child-directed. + /// + DISALLOWED = 1, + /// This line item is eligible to serve on requests that are child-directed. + /// + ALLOWED = 2, + } - private CompanionDeliveryOption companionDeliveryOptionField; - private bool companionDeliveryOptionFieldSpecified; + /// LineItem is an advertiser's commitment to purchase a + /// specific number of ad impressions, clicks, or time. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class LineItem : LineItemSummary { + private Targeting targetingField; - private long videoMaxDurationField; + private CreativeTargeting[] creativeTargetingsField; - private bool videoMaxDurationFieldSpecified; + /// Contains the targeting criteria for the ad campaign. This attribute is required. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public Targeting targeting { + get { + return this.targetingField; + } + set { + this.targetingField = value; + } + } - private SkippableAdType videoCreativeSkippableAdTypeField; + /// A list of CreativeTargeting objects that can be + /// used to specify creative level targeting for this line item. Creative level + /// targeting is specified in a creative placeholder's CreativePlaceholder#targetingName + /// field by referencing the creative targeting's CreativeTargeting#name + /// name. It also needs to be re-specified in the LineItemCreativeAssociation#targetingName field when associating a + /// line item with a creative that fits into that placeholder. + /// + [System.Xml.Serialization.XmlElementAttribute("creativeTargetings", Order = 1)] + public CreativeTargeting[] creativeTargetings { + get { + return this.creativeTargetingsField; + } + set { + this.creativeTargetingsField = value; + } + } + } - private bool videoCreativeSkippableAdTypeFieldSpecified; - private FrequencyCap[] frequencyCapsField; + /// Represents a prospective line item to be forecasted. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ProspectiveLineItem { + private LineItem lineItemField; - private long dfpLineItemIdField; + private ProposalLineItem proposalLineItemField; - private bool dfpLineItemIdFieldSpecified; + private long advertiserIdField; - private LineItemType lineItemTypeField; + private bool advertiserIdFieldSpecified; - private bool lineItemTypeFieldSpecified; - - private int lineItemPriorityField; - - private bool lineItemPriorityFieldSpecified; - - private RateType rateTypeField; - - private bool rateTypeFieldSpecified; - - private CreativePlaceholder[] creativePlaceholdersField; - - private Targeting targetingField; - - private BaseCustomFieldValue[] customFieldValuesField; - - private AppliedLabel[] appliedLabelsField; - - private AppliedLabel[] effectiveAppliedLabelsField; - - private bool disableSameAdvertiserCompetitiveExclusionField; - - private bool disableSameAdvertiserCompetitiveExclusionFieldSpecified; - - private bool isSoldField; - - private bool isSoldFieldSpecified; - - private Money netRateField; - - private Money netCostField; - - private DeliveryIndicator deliveryIndicatorField; - - private long[] deliveryDataField; - - private ComputedStatus computedStatusField; - - private bool computedStatusFieldSpecified; - - private DateTime lastModifiedDateTimeField; - - private ReservationStatus reservationStatusField; - - private bool reservationStatusFieldSpecified; - - private DateTime lastReservationDateTimeField; - - private EnvironmentType environmentTypeField; - - private bool environmentTypeFieldSpecified; - - private AllowedFormats[] allowedFormatsField; - - private bool isProgrammaticField; - - private bool isProgrammaticFieldSpecified; - - private string additionalTermsField; - - private ProgrammaticCreativeSource programmaticCreativeSourceField; - - private bool programmaticCreativeSourceFieldSpecified; - - private GrpSettings grpSettingsField; - - private long estimatedMinimumImpressionsField; - - private bool estimatedMinimumImpressionsFieldSpecified; - - private ThirdPartyMeasurementSettings thirdPartyMeasurementSettingsField; - - private ProposalLineItemMakegoodInfo makegoodInfoField; - - private bool hasMakegoodField; - - private bool hasMakegoodFieldSpecified; - - private bool canCreateMakegoodField; - - private bool canCreateMakegoodFieldSpecified; - - private NegotiationRole pauseRoleField; - - private bool pauseRoleFieldSpecified; - - private string pauseReasonField; - - /// The unique ID of the ProposalLineItem. This attribute is read-only. + /// The target of the forecast. If LineItem#id is null or + /// no line item exists with that ID, then a forecast is computed for the subject, + /// predicting what would happen if it were added to the network. If a line item + /// already exists with LineItem#id, the forecast is + /// computed for the subject, predicting what would happen if the existing line + /// item's settings were modified to match the subject. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public long id { + public LineItem lineItem { get { - return this.idField; + return this.lineItemField; } set { - this.idField = value; - this.idSpecified = true; + this.lineItemField = value; } } - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool idSpecified { + /// The target of the forecast if this prospective line item is a proposal line + /// item.

If ProposalLineItem#id is null or no + /// proposal line item exists with that ID, then a forecast is computed for the + /// subject, predicting what would happen if it were added to the network. If a + /// proposal line item already exists with ProposalLineItem#id, the forecast is computed for + /// the subject, predicting what would happen if the existing proposal line item's + /// settings were modified to match the subject.

A proposal line item can + /// optionally correspond to an order LineItem, in which + /// case, by forecasting a proposal line item, the corresponding line item is + /// implicitly ignored in the forecasting.

Either #lineItem or #proposalLineItem should be specified but not + /// both.

+ ///
+ [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public ProposalLineItem proposalLineItem { get { - return this.idFieldSpecified; + return this.proposalLineItemField; } set { - this.idFieldSpecified = value; + this.proposalLineItemField = value; } } - /// The unique ID of the Proposal, to which the - /// ProposalLineItem belongs. This attribute is required for creation - /// and then is readonly. This attribute is - /// required. + /// When set, the line item is assumed to be from this advertiser, and unified + /// blocking rules will apply accordingly. If absent, line items without an existing + /// order won't be subject to unified blocking rules. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public long proposalId { + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public long advertiserId { get { - return this.proposalIdField; + return this.advertiserIdField; } set { - this.proposalIdField = value; - this.proposalIdSpecified = true; + this.advertiserIdField = value; + this.advertiserIdSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool proposalIdSpecified { + public bool advertiserIdSpecified { get { - return this.proposalIdFieldSpecified; + return this.advertiserIdFieldSpecified; } set { - this.proposalIdFieldSpecified = value; + this.advertiserIdFieldSpecified = value; } } + } - /// The name of the ProposalLineItem which should be unique under the - /// same Proposal. This attribute has a maximum length of 255 - /// characters. This attribute can be configured as editable after the proposal has - /// been submitted. Please check with your network administrator for editable fields - /// configuration. This attribute is - /// required. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public string name { - get { - return this.nameField; - } - set { - this.nameField = value; - } - } - /// The date and time at which the line item associated with the is - /// enabled to begin serving. This attribute is optional during creation, but - /// required and must be in the future when it turns into a line item. The DateTime#timeZoneID is required if start date - /// time is not null. This attribute becomes readonly once the - /// ProposalLineItem has started delivering. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public DateTime startDateTime { + /// Lists all errors related to VideoPositionTargeting. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class VideoPositionTargetingError : ApiError { + private VideoPositionTargetingErrorReason reasonField; + + private bool reasonFieldSpecified; + + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public VideoPositionTargetingErrorReason reason { get { - return this.startDateTimeField; + return this.reasonField; } set { - this.startDateTimeField = value; + this.reasonField = value; + this.reasonSpecified = true; } } - /// The date and time at which the line item associated with the stops - /// beening served. This attribute is optional during creation, but required and - /// must be after the #startDateTime. The DateTime#timeZoneID is required if end date time - /// is not null. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public DateTime endDateTime { + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool reasonSpecified { get { - return this.endDateTimeField; + return this.reasonFieldSpecified; } set { - this.endDateTimeField = value; + this.reasonFieldSpecified = value; } } + } - /// The time zone ID in tz database format (e.g. "America/Los_Angeles") for this - /// ProposalLineItem. The number of serving days is calculated in this - /// time zone. So if #rateType is RateType#CPD, it will affect the cost calculation. The - /// #startDateTime and #endDateTime will - /// be returned in this time zone. This attribute is optional and defaults to the - /// network's time zone. This attribute is read-only. + + /// The reasons for the video position targeting error. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "VideoPositionTargetingError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum VideoPositionTargetingErrorReason { + /// Video position targeting cannot contain both bumper and non-bumper targeting + /// values. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 5)] - public string timeZoneId { + CANNOT_MIX_BUMPER_AND_NON_BUMPER_TARGETING = 0, + /// The bumper video position targeting is invalid. + /// + INVALID_BUMPER_TARGETING = 1, + /// Only custom spot AdSpot objects can be targeted. + /// + CAN_ONLY_TARGET_CUSTOM_AD_SPOTS = 3, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 2, + } + + + /// Lists all errors related to user domain targeting for a line item. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class UserDomainTargetingError : ApiError { + private UserDomainTargetingErrorReason reasonField; + + private bool reasonFieldSpecified; + + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public UserDomainTargetingErrorReason reason { get { - return this.timeZoneIdField; + return this.reasonField; } set { - this.timeZoneIdField = value; + this.reasonField = value; + this.reasonSpecified = true; } } - /// Provides any additional notes that may annotate the . This - /// attribute is optional and has a maximum length of 65,535 characters. This - /// attribute can be configured as editable after the proposal has been submitted. - /// Please check with your network administrator for editable fields configuration. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 6)] - public string internalNotes { + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool reasonSpecified { get { - return this.internalNotesField; + return this.reasonFieldSpecified; } set { - this.internalNotesField = value; + this.reasonFieldSpecified = value; } } + } - /// The archival status of the ProposalLineItem. This attribute is - /// read-only. + + /// ApiErrorReason enum for user domain targeting + /// error. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "UserDomainTargetingError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum UserDomainTargetingErrorReason { + /// Invalid domain names. Domain names must be at most 67 characters long. And must + /// contain only alphanumeric characters and hyphens. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 7)] - public bool isArchived { + INVALID_DOMAIN_NAMES = 0, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 1, + } + + + /// Errors associated with the video and audio transcoding flow. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class TranscodingError : ApiError { + private TranscodingErrorReason reasonField; + + private bool reasonFieldSpecified; + + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public TranscodingErrorReason reason { get { - return this.isArchivedField; + return this.reasonField; } set { - this.isArchivedField = value; - this.isArchivedSpecified = true; + this.reasonField = value; + this.reasonSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , + /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool isArchivedSpecified { + public bool reasonSpecified { get { - return this.isArchivedFieldSpecified; + return this.reasonFieldSpecified; } set { - this.isArchivedFieldSpecified = value; + this.reasonFieldSpecified = value; } } + } - /// The goal(i.e. contracted quantity, quantity or limit) that this - /// ProposalLineItem is associated with, which is used in its pacing - /// and budgeting. Goal#units must be greater than 0 when - /// the proposal line item turns into a line item, Goal#goalType and Goal#unitType are - /// readonly. For a Preferred deal , the goal type can only be GoalType#NONE. This - /// attribute is required. + + /// The type of transcode request rejection. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "TranscodingError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum TranscodingErrorReason { + /// The request to copy the creative(s) was rejected because the source is not + /// transcoded. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 8)] - public Goal goal { + CANNOT_COPY_CREATIVE_PENDING_TRANSCODE = 0, + /// The request to copy the creative(s) was rejected because the source is invalid. + /// + CANNOT_COPY_INVALID_CREATIVE = 1, + /// The creative is still being transcoded or processed. Please try again later. + /// + TRANSCODING_IS_IN_PROGRESS = 2, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 3, + } + + + /// Errors related to timezones. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class TimeZoneError : ApiError { + private TimeZoneErrorReason reasonField; + + private bool reasonFieldSpecified; + + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public TimeZoneErrorReason reason { get { - return this.goalField; + return this.reasonField; } set { - this.goalField = value; + this.reasonField = value; + this.reasonSpecified = true; } } - /// The secondary goals that this ProposalLineItem is associated with. - /// For a programmatic line item with the properties RateType#CPM and LineItemType#SPONSORSHIP, this field will - /// have one goal which describes the impressions cap. For other cases, this field - /// is an empty list. - /// - [System.Xml.Serialization.XmlElementAttribute("secondaryGoals", Order = 9)] - public Goal[] secondaryGoals { + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool reasonSpecified { get { - return this.secondaryGoalsField; + return this.reasonFieldSpecified; } set { - this.secondaryGoalsField = value; + this.reasonFieldSpecified = value; } } + } - /// The contracted number of daily minimum impressions used for LineItemType#SPONSORSHIP deals - /// with a rate type of RateType#CPD.

This attribute - /// is required for percentage-based-goal proposal line - /// items. It does not impact ad-serving and is for reporting purposes only.

+ + /// Describes reasons for invalid timezone. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "TimeZoneError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum TimeZoneErrorReason { + /// Indicates that the timezone ID provided is not supported. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 10)] - public long contractedUnitsBought { + INVALID_TIMEZONE_ID = 0, + /// Indicates that the timezone ID provided is in the wrong format. The timezone ID + /// must be in tz database format (e.g. "America/Los_Angeles"). + /// + TIMEZONE_ID_IN_WRONG_FORMAT = 1, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 2, + } + + + /// Technology targeting validation errors. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class TechnologyTargetingError : ApiError { + private TechnologyTargetingErrorReason reasonField; + + private bool reasonFieldSpecified; + + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public TechnologyTargetingErrorReason reason { get { - return this.contractedUnitsBoughtField; + return this.reasonField; } set { - this.contractedUnitsBoughtField = value; - this.contractedUnitsBoughtSpecified = true; + this.reasonField = value; + this.reasonSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , + /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool contractedUnitsBoughtSpecified { + public bool reasonSpecified { get { - return this.contractedUnitsBoughtFieldSpecified; + return this.reasonFieldSpecified; } set { - this.contractedUnitsBoughtFieldSpecified = value; + this.reasonFieldSpecified = value; } } + } - /// The strategy for delivering ads over the course of the 's duration. - /// This attribute is required. For a Preferred deal ProposalLineItem, - /// the value can only be DeliveryRateType#FRONTLOADED. + + /// The reasons for the target error. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "TechnologyTargetingError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum TechnologyTargetingErrorReason { + /// Mobile line item cannot target web-only targeting criteria. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 11)] - public DeliveryRateType deliveryRateType { + MOBILE_LINE_ITEM_CONTAINS_WEB_TECH_CRITERIA = 0, + /// Web line item cannot target mobile-only targeting criteria. + /// + WEB_LINE_ITEM_CONTAINS_MOBILE_TECH_CRITERIA = 1, + /// The mobile carrier targeting feature is not enabled. + /// + MOBILE_CARRIER_TARGETING_FEATURE_NOT_ENABLED = 2, + /// The device capability targeting feature is not enabled. + /// + DEVICE_CAPABILITY_TARGETING_FEATURE_NOT_ENABLED = 3, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 5, + } + + + /// Errors related to a Team. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class TeamError : ApiError { + private TeamErrorReason reasonField; + + private bool reasonFieldSpecified; + + /// The error reason represented by an enum. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public TeamErrorReason reason { get { - return this.deliveryRateTypeField; + return this.reasonField; } set { - this.deliveryRateTypeField = value; - this.deliveryRateTypeSpecified = true; + this.reasonField = value; + this.reasonSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , + /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool deliveryRateTypeSpecified { + public bool reasonSpecified { get { - return this.deliveryRateTypeFieldSpecified; + return this.reasonFieldSpecified; } set { - this.deliveryRateTypeFieldSpecified = value; + this.reasonFieldSpecified = value; } } + } - /// The strategy for serving roadblocked creatives, i.e. instances where multiple - /// creatives must be served together on a single web page. This attribute is - /// optional during creation and defaults to the product's roadblocking type, or RoadblockingType#ONE_OR_MORE if not specified by the product. + + /// The reasons for the target error. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "TeamError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum TeamErrorReason { + /// User cannot use this entity because it is not on any of the user's teams. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 12)] - public RoadblockingType roadblockingType { + ENTITY_NOT_ON_USERS_TEAMS = 0, + /// The targeted or excluded ad unit must be on the order's teams. + /// + AD_UNITS_NOT_ON_ORDER_TEAMS = 1, + /// The targeted placement must be on the order's teams. + /// + PLACEMENTS_NOT_ON_ORDER_TEAMS = 2, + /// Entity cannot be created because it is not on any of the user's teams. + /// + MISSING_USERS_TEAM = 3, + /// A team that gives access to all entities of a given type cannot be associated + /// with an entity of that type. + /// + ALL_TEAM_ASSOCIATION_NOT_ALLOWED = 4, + /// The assignment of team to entities is invalid. + /// + INVALID_TEAM_ASSIGNMENT = 7, + /// Cannot modify or create a team with an inactive status. + /// + CANNOT_UPDATE_INACTIVE_TEAM = 8, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 6, + } + + + /// Errors associated with set-top box line items. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class SetTopBoxLineItemError : ApiError { + private SetTopBoxLineItemErrorReason reasonField; + + private bool reasonFieldSpecified; + + /// The error reason represented by an enum. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public SetTopBoxLineItemErrorReason reason { get { - return this.roadblockingTypeField; + return this.reasonField; } set { - this.roadblockingTypeField = value; - this.roadblockingTypeSpecified = true; + this.reasonField = value; + this.reasonSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , + /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool roadblockingTypeSpecified { + public bool reasonSpecified { get { - return this.roadblockingTypeFieldSpecified; + return this.reasonFieldSpecified; } set { - this.roadblockingTypeFieldSpecified = value; + this.reasonFieldSpecified = value; } } + } - /// The delivery option for companions. This is only valid if the roadblocking type - /// is RoadblockingType#CREATIVE_SET. The default value for - /// roadblocking creatives is CompanionDeliveryOption#OPTIONAL. The - /// default value in other cases is CompanionDeliveryOption#UNKNOWN. - /// Providing something other than CompanionDeliveryOption#UNKNOWN - /// will cause an error. + + /// Reason for set-top box error. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "SetTopBoxLineItemError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum SetTopBoxLineItemErrorReason { + /// The set-top box line item cannot target an ad unit that doesn't have an external + /// set-top box channel ID. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 13)] - public CompanionDeliveryOption companionDeliveryOption { + NON_SET_TOP_BOX_AD_UNIT_TARGETED = 0, + /// The set-top box line item must target at least one ad unit. + /// + AT_LEAST_ONE_AD_UNIT_MUST_BE_TARGETED = 1, + /// The set-top box line item cannot exclude ad units. + /// + CANNOT_EXCLUDE_AD_UNITS = 2, + /// The set-top box line item can only target pod positions 1 - 15. + /// + POD_POSITION_OUT_OF_RANGE = 3, + /// The set-top box line item can only target midroll positions 4 - 100. + /// + MIDROLL_POSITION_OUT_OF_RANGE = 4, + /// The set-top box feature is not enabled. + /// + FEATURE_NOT_ENABLED = 5, + /// Only EnvironmentType#VIDEO_PLAYER is + /// supported for set-top box line items. + /// + INVALID_ENVIRONMENT_TYPE = 6, + /// Companions are not supported for set-top box line items. + /// + COMPANIONS_NOT_SUPPORTED = 7, + /// Set-top box line items only support sizes supported by Canoe. + /// + INVALID_CREATIVE_SIZE = 8, + /// Set-top box line items only support LineItemType#STANDARD, LineItemType#HOUSE, and LineItemType#SPONSORSHIP line item types. + /// + INVALID_LINE_ITEM_TYPE = 9, + /// orders containing LineItemType#STANDARD set-top box line items + /// cannot contain set-top box line items of type LineItemType#HOUSE or LineItemType#SPONSORSHIP. + /// + ORDERS_WITH_STANDARD_LINE_ITEMS_CANNOT_CONTAIN_HOUSE_OR_SPONSORSHIP_LINE_ITEMS = 10, + /// Set-top box line items only support CostType#CPM. + /// + INVALID_COST_TYPE = 11, + /// Set-top box line items do not support a cost per unit. + /// + COST_PER_UNIT_NOT_ALLOWED = 12, + /// Set-top box line items do not support discounts. + /// + DISCOUNT_NOT_ALLOWED = 13, + /// Set-top box line items do not support DeliveryRateType#FRONTLOADED. + /// + FRONTLOADED_DELIVERY_RATE_NOT_SUPPORTED = 14, + /// Set-top box line items cannot go from a state that is ready to be synced to a + /// state that is not ready to be synced. + /// + INVALID_LINE_ITEM_STATUS_CHANGE = 15, + /// Set-top box line items can only have certain priorities for different reservation types: + /// + INVALID_LINE_ITEM_PRIORITY = 16, + /// When a set-top box line item is pushed to Canoe, a revision number is used to + /// keep track of the last version of the line item that Ad Manager synced with + /// Canoe. The only change allowed on revisions within Ad Manager is increasing the + /// revision number. + /// + SYNC_REVISION_NOT_INCREASING = 17, + /// When a set-top box line item is pushed to Canoe, a revision number is used to + /// keep track of the last version of the line item that Ad Manager synced with + /// Canoe. Sync revisions begin at one and can only increase in value. + /// + SYNC_REVISION_MUST_BE_GREATER_THAN_ZERO = 18, + /// Set Top box line items cannot be unarchived. + /// + CANNOT_UNARCHIVE_SET_TOP_BOX_LINE_ITEMS = 19, + /// Set-top box enabled line items cannot be copied for V0 of the video Canoe + /// campaign push. + /// + COPY_SET_TOP_BOX_ENABLED_LINE_ITEM_NOT_ALLOWED = 20, + /// Standard set-top box line items cannot be updated to be LineItemType#House or LineItemType#Sponsorship line items and vice + /// versa. + /// + INVALID_LINE_ITEM_TYPE_CHANGE = 21, + /// Set-top box line items can only have a creative rotation type of CreativeRotationType.EVEN or CreativeRotationType#MANUAL. + /// + CREATIVE_ROTATION_TYPE_MUST_BE_EVENLY_OR_WEIGHTED = 22, + /// Set-top box line items can only have frequency capping with time units of TimeUnit#DAY, TimeUnit#HOUR, + /// TimeUnit#POD, or TimeUnit#STREAM. + /// + INVALID_FREQUENCY_CAP_TIME_UNIT = 23, + /// Set-top box line items can only have specific time ranges for certain time + /// units: + /// + INVALID_FREQUENCY_CAP_TIME_RANGE = 24, + /// Set-top box line items can only have a unit type of UnitType#IMPRESSIONS. + /// + INVALID_PRIMARY_GOAL_UNIT_TYPE = 25, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 26, + } + + + /// Errors that could occur on audience segment related requests. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class AudienceSegmentError : ApiError { + private AudienceSegmentErrorReason reasonField; + + private bool reasonFieldSpecified; + + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public AudienceSegmentErrorReason reason { get { - return this.companionDeliveryOptionField; + return this.reasonField; } set { - this.companionDeliveryOptionField = value; - this.companionDeliveryOptionSpecified = true; + this.reasonField = value; + this.reasonSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , + /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool companionDeliveryOptionSpecified { + public bool reasonSpecified { get { - return this.companionDeliveryOptionFieldSpecified; + return this.reasonFieldSpecified; } set { - this.companionDeliveryOptionFieldSpecified = value; + this.reasonFieldSpecified = value; } } + } - /// The max duration of a video creative associated with this in - /// milliseconds. This attribute is optional, defaults to the Product#videoMaxDuration on the Product it was created with, and only meaningful if this is a - /// video proposal line item. + + /// Reason of the given AudienceSegmentError. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AudienceSegmentError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum AudienceSegmentErrorReason { + /// First party audience segment is not supported. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 14)] - public long videoMaxDuration { + FIRST_PARTY_AUDIENCE_SEGMENT_NOT_SUPPORTED = 0, + /// Only rule-based first-party audience segments can be created. + /// + ONLY_RULE_BASED_FIRST_PARTY_AUDIENCE_SEGMENTS_CAN_BE_CREATED = 1, + /// Audience segment for the given id is not found. + /// + AUDIENCE_SEGMENT_ID_NOT_FOUND = 2, + /// Audience segment rule is invalid. + /// + INVALID_AUDIENCE_SEGMENT_RULE = 3, + /// Audience segment rule contains too many ad units and/or custom criteria. + /// + AUDIENCE_SEGMENT_RULE_TOO_LONG = 4, + /// Audience segment name is invalid. + /// + INVALID_AUDIENCE_SEGMENT_NAME = 5, + /// Audience segment with this name already exists. + /// + DUPLICATE_AUDIENCE_SEGMENT_NAME = 6, + /// Audience segment description is invalid. + /// + INVALID_AUDIENCE_SEGMENT_DESCRIPTION = 7, + /// Audience segment pageviews value is invalid. It must be between 1 and 12. + /// + INVALID_AUDIENCE_SEGMENT_PAGEVIEWS = 8, + /// Audience segment recency value is invalid. It must be between 1 and 90 if + /// pageviews > 1. + /// + INVALID_AUDIENCE_SEGMENT_RECENCY = 9, + /// Audience segment membership expiration value is invalid. It must be between 1 + /// and 180. + /// + INVALID_AUDIENCE_SEGMENT_MEMBERSHIP_EXPIRATION = 10, + /// The given custom key cannot be part of audience segment rule due to unsupported + /// characters. + /// + INVALID_AUDIENCE_SEGMENT_CUSTOM_KEY_NAME = 11, + /// The given custom value cannot be part of audience segment rule due to + /// unsupported characters. + /// + INVALID_AUDIENCE_SEGMENT_CUSTOM_VALUE_NAME = 12, + /// Broad-match custom value cannot be part of audience segment rule. + /// + INVALID_AUDIENCE_SEGMENT_CUSTOM_VALUE_MATCH_TYPE = 13, + /// Audience segment rule cannot contain itself. + /// + INVALID_NESTED_FIRST_PARTY_AUDIENCE_SEGMENT = 14, + /// Audience segment rule cannot contain shared selling inventory unit. + /// + SHARED_SELLING_PARTNER_ROOT_CANNOT_BE_INCLUDED = 20, + /// Audience segment rule cannot contain a nested third-party segment. + /// + INVALID_NESTED_THIRD_PARTY_AUDIENCE_SEGMENT = 15, + /// Audience segment rule cannot contain a nested inactive segment. + /// + INACTIVE_NESTED_AUDIENCE_SEGMENT = 16, + /// An error occurred when purchasing global licenses. + /// + AUDIENCE_SEGMENT_GLOBAL_LICENSE_ERROR = 17, + /// Segment cannot be activated as it violates Google's Platform Policy. + /// + SEGMENT_VIOLATED_POLICY = 19, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 18, + } + + + /// Lists all errors associated with LineItem's reservation details. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ReservationDetailsError : ApiError { + private ReservationDetailsErrorReason reasonField; + + private bool reasonFieldSpecified; + + /// The error reason represented by an enum. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public ReservationDetailsErrorReason reason { get { - return this.videoMaxDurationField; + return this.reasonField; } set { - this.videoMaxDurationField = value; - this.videoMaxDurationSpecified = true; + this.reasonField = value; + this.reasonSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , + /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool videoMaxDurationSpecified { + public bool reasonSpecified { get { - return this.videoMaxDurationFieldSpecified; + return this.reasonFieldSpecified; } set { - this.videoMaxDurationFieldSpecified = value; + this.reasonFieldSpecified = value; } } + } - /// The proposal line item's creatives' skippability. This attribute is optional, - /// only applicable for video proposal line items, and defaults to SkippableAdType#NOT_SKIPPABLE. + + /// The reasons for the target error. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ReservationDetailsError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum ReservationDetailsErrorReason { + /// There is no limit on the number of ads delivered for a line item when you set LineItem#duration to be LineItemSummary.Duration#NONE. This can + /// only be set for line items of type LineItemType#PRICE_PRIORITY. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 15)] - public SkippableAdType videoCreativeSkippableAdType { + UNLIMITED_UNITS_BOUGHT_NOT_ALLOWED = 0, + /// LineItem#unlimitedEndDateTime can be + /// set to true for only line items of type LineItemType#SPONSORSHIP, LineItemType#NETWORK, LineItemType#PRICE_PRIORITY and LineItemType#HOUSE. + /// + UNLIMITED_END_DATE_TIME_NOT_ALLOWED = 1, + /// When LineItem#lineItemType is LineItemType#SPONSORSHIP, then LineItem#unitsBought represents the percentage + /// of available impressions reserved. That value cannot exceed 100. + /// + PERCENTAGE_UNITS_BOUGHT_TOO_HIGH = 2, + /// The line item type does not support the specified duration. See LineItemSummary.Duration for allowed values. + /// + DURATION_NOT_ALLOWED = 3, + /// The LineItem#unitType is not allowed for the + /// given LineItem#lineItemType. See UnitType for allowed values. + /// + UNIT_TYPE_NOT_ALLOWED = 4, + /// The LineItem#costType is not allowed for the LineItem#lineItemType. See CostType for allowed values. + /// + COST_TYPE_NOT_ALLOWED = 5, + /// When LineItem#costType is CostType#CPM, LineItem#unitType must be UnitType#IMPRESSIONS and when LineItem#costType is CostType#CPC, LineItem#unitType must be UnitType#CLICKS. + /// + COST_TYPE_UNIT_TYPE_MISMATCH_NOT_ALLOWED = 6, + /// Inventory cannot be reserved for line items which are not of type LineItemType#SPONSORSHIP or LineItemType#STANDARD. + /// + LINE_ITEM_TYPE_NOT_ALLOWED = 7, + /// Network remnant line items cannot be changed to other line item types once + /// delivery begins. This restriction does not apply to any new line items created + /// in Ad Manager. + /// + NETWORK_REMNANT_ORDER_CANNOT_UPDATE_LINEITEM_TYPE = 8, + /// A dynamic allocation web property can only be set on a line item of type AdSense + /// or Ad Exchange. + /// + BACKFILL_WEBPROPERTY_CODE_NOT_ALLOWED = 9, + /// CPA LineItems can't have end dates older than February + /// 22, 2024. + /// + CPA_DEPRECATED = 11, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 10, + } + + + /// A list of all errors to be used for validating Size. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class RequiredSizeError : ApiError { + private RequiredSizeErrorReason reasonField; + + private bool reasonFieldSpecified; + + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public RequiredSizeErrorReason reason { get { - return this.videoCreativeSkippableAdTypeField; + return this.reasonField; } set { - this.videoCreativeSkippableAdTypeField = value; - this.videoCreativeSkippableAdTypeSpecified = true; + this.reasonField = value; + this.reasonSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , + /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool videoCreativeSkippableAdTypeSpecified { + public bool reasonSpecified { get { - return this.videoCreativeSkippableAdTypeFieldSpecified; + return this.reasonFieldSpecified; } set { - this.videoCreativeSkippableAdTypeFieldSpecified = value; + this.reasonFieldSpecified = value; } } + } - /// The set of frequency capping units for this . This attribute is - /// optional during creation and defaults to the product's frequency caps if Product#allowFrequencyCapsCustomization - /// is false. + + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "RequiredSizeError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum RequiredSizeErrorReason { + /// Creative#size or LineItem#creativePlaceholders size is + /// missing. /// - [System.Xml.Serialization.XmlElementAttribute("frequencyCaps", Order = 16)] - public FrequencyCap[] frequencyCaps { + REQUIRED = 0, + /// LineItemCreativeAssociation#sizes + /// must be a subset of LineItem#creativePlaceholders sizes. + /// + NOT_ALLOWED = 1, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 2, + } + + + /// Errors related to request platform targeting. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class RequestPlatformTargetingError : ApiError { + private RequestPlatformTargetingErrorReason reasonField; + + private bool reasonFieldSpecified; + + /// The error reason represented by an enum. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public RequestPlatformTargetingErrorReason reason { get { - return this.frequencyCapsField; + return this.reasonField; } set { - this.frequencyCapsField = value; + this.reasonField = value; + this.reasonSpecified = true; } } - /// The unique ID of corresponding LineItem. This will be - /// null if the Proposal has not been pushed to Ad - /// Manager. This attribute is read-only. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 17)] - public long dfpLineItemId { - get { - return this.dfpLineItemIdField; - } - set { - this.dfpLineItemIdField = value; - this.dfpLineItemIdSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , + /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool dfpLineItemIdSpecified { + public bool reasonSpecified { get { - return this.dfpLineItemIdFieldSpecified; + return this.reasonFieldSpecified; } set { - this.dfpLineItemIdFieldSpecified = value; + this.reasonFieldSpecified = value; } } + } - /// The corresponding LineItemType of the - /// ProposalLineItem. For a programmatic , the value can - /// only be one of: - /// This attribute is required. + + /// ApiErrorReason enum for the request platform + /// targeting error. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "RequestPlatformTargetingError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum RequestPlatformTargetingErrorReason { + /// The line item type does not support the targeted request platform type. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 18)] - public LineItemType lineItemType { + REQUEST_PLATFORM_TYPE_NOT_SUPPORTED_BY_LINE_ITEM_TYPE = 0, + /// The line item environment type does not support the targeted request platform + /// type. + /// + REQUEST_PLATFORM_TYPE_NOT_SUPPORTED_BY_ENVIRONMENT_TYPE = 2, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 1, + } + + + /// Caused by supplying a value for an object attribute that does not conform to a + /// documented valid regular expression. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class RegExError : ApiError { + private RegExErrorReason reasonField; + + private bool reasonFieldSpecified; + + /// The error reason represented by an enum. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public RegExErrorReason reason { get { - return this.lineItemTypeField; + return this.reasonField; } set { - this.lineItemTypeField = value; - this.lineItemTypeSpecified = true; + this.reasonField = value; + this.reasonSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , + /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool lineItemTypeSpecified { + public bool reasonSpecified { get { - return this.lineItemTypeFieldSpecified; + return this.reasonFieldSpecified; } set { - this.lineItemTypeFieldSpecified = value; + this.reasonFieldSpecified = value; } } + } - /// The priority for the corresponding LineItem of the - /// ProposalLineItem. This attribute is optional during creation and - /// defaults to the default priority of the #lineItemType. For - /// forecasting, this attribute is optional and has a default value assigned by - /// Google. See LineItem#priority for more - /// information. + + /// The reasons for the target error. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "RegExError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum RegExErrorReason { + /// Invalid value found. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 19)] - public int lineItemPriority { + INVALID = 0, + /// Null value found. + /// + NULL = 1, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 2, + } + + + /// Errors associated with programmatic line items. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ProgrammaticError : ApiError { + private ProgrammaticErrorReason reasonField; + + private bool reasonFieldSpecified; + + /// The error reason represented by an enum. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public ProgrammaticErrorReason reason { get { - return this.lineItemPriorityField; + return this.reasonField; } set { - this.lineItemPriorityField = value; - this.lineItemPrioritySpecified = true; + this.reasonField = value; + this.reasonSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , + /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool lineItemPrioritySpecified { + public bool reasonSpecified { get { - return this.lineItemPriorityFieldSpecified; + return this.reasonFieldSpecified; } set { - this.lineItemPriorityFieldSpecified = value; + this.reasonFieldSpecified = value; } } + } - /// The method used for billing the ProposalLineItem. This attribute is - /// read-only. This attribute is required. + + /// Possible error reasons for a programmatic error. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ProgrammaticError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum ProgrammaticErrorReason { + /// Audience extension is not supported by programmatic line items. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 20)] - public RateType rateType { + AUDIENCE_EXTENSION_NOT_SUPPORTED = 0, + /// Auto extension days is not supported by programmatic line items. + /// + AUTO_EXTENSION_DAYS_NOT_SUPPORTED = 1, + /// Video is currently not supported. + /// + VIDEO_NOT_SUPPORTED = 2, + /// Roadblocking is not supported by programmatic line items. + /// + ROADBLOCKING_NOT_SUPPORTED = 3, + /// Programmatic line items do not support CreativeRotationType#SEQUENTIAL. + /// + INVALID_CREATIVE_ROTATION = 4, + /// Programmatic line items only support LineItemType#STANDARD and LineItemType#SPONSORSHIP if the relevant + /// feature is on. + /// + INVALID_LINE_ITEM_TYPE = 5, + /// Programmatic line items only support CostType#CPM. + /// + INVALID_COST_TYPE = 6, + /// Programmatic line items only support a creative size that is supported by AdX. + /// The list of supported sizes is maintained based on the list published in the + /// help docs: https://support.google.com/adxseller/answer/1100453 + /// + SIZE_NOT_SUPPORTED = 7, + /// Zero cost per unit is not supported by programmatic line items. + /// + ZERO_COST_PER_UNIT_NOT_SUPPORTED = 8, + /// Some fields cannot be updated on approved line items. + /// + CANNOT_UPDATE_FIELD_FOR_APPROVED_LINE_ITEMS = 9, + /// Creating a new line item in an approved order is not allowed. + /// + CANNOT_CREATE_LINE_ITEM_FOR_APPROVED_ORDER = 10, + /// Cannot change backfill web property for a programmatic line item whose order has + /// been approved. + /// + CANNOT_UPDATE_BACKFILL_WEB_PROPERTY_FOR_APPROVED_LINE_ITEMS = 11, + /// Cost per unit is too low. It has to be at least 0.005 USD. + /// + COST_PER_UNIT_TOO_LOW = 13, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 12, + } + + + /// List all errors associated with number precisions. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class PrecisionError : ApiError { + private PrecisionErrorReason reasonField; + + private bool reasonFieldSpecified; + + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public PrecisionErrorReason reason { get { - return this.rateTypeField; + return this.reasonField; } set { - this.rateTypeField = value; - this.rateTypeSpecified = true; + this.reasonField = value; + this.reasonSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , + /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool rateTypeSpecified { + public bool reasonSpecified { get { - return this.rateTypeFieldSpecified; + return this.reasonFieldSpecified; } set { - this.rateTypeFieldSpecified = value; + this.reasonFieldSpecified = value; } } + } - /// Details about the creatives that are expected to serve through the - /// ProposalLineItem. This attribute is optional during creation and - /// defaults to the Product#creativePlaceholders product's creative - /// placeholders. This attribute is - /// required. + + /// Describes reasons for precision errors. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "PrecisionError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum PrecisionErrorReason { + /// The lowest N digits of the number must be zero. /// - [System.Xml.Serialization.XmlElementAttribute("creativePlaceholders", Order = 21)] - public CreativePlaceholder[] creativePlaceholders { - get { - return this.creativePlaceholdersField; - } - set { - this.creativePlaceholdersField = value; - } - } + WRONG_PRECISION = 0, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 1, + } - /// Contains the targeting criteria for the ProposalLineItem. This attribute is required. + + /// Lists all errors associated with orders. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class OrderError : ApiError { + private OrderErrorReason reasonField; + + private bool reasonFieldSpecified; + + /// The error reason represented by an enum. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 22)] - public Targeting targeting { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public OrderErrorReason reason { get { - return this.targetingField; + return this.reasonField; } set { - this.targetingField = value; + this.reasonField = value; + this.reasonSpecified = true; } } - /// The values of the custom fields associated with the . This - /// attribute is optional. This attribute can be configured as editable after the - /// proposal has been submitted. Please check with your network administrator for - /// editable fields configuration. - /// - [System.Xml.Serialization.XmlElementAttribute("customFieldValues", Order = 23)] - public BaseCustomFieldValue[] customFieldValues { + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool reasonSpecified { get { - return this.customFieldValuesField; + return this.reasonFieldSpecified; } set { - this.customFieldValuesField = value; + this.reasonFieldSpecified = value; } } + } - /// The set of labels applied directly to the ProposalLineItem. This - /// attribute is optional. + + /// The reasons for the target error. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "OrderError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum OrderErrorReason { + /// Updating a canceled order is not allowed. /// - [System.Xml.Serialization.XmlElementAttribute("appliedLabels", Order = 24)] - public AppliedLabel[] appliedLabels { + UPDATE_CANCELED_ORDER_NOT_ALLOWED = 0, + /// Updating an order that has its approval pending is not allowed. + /// + UPDATE_PENDING_APPROVAL_ORDER_NOT_ALLOWED = 1, + /// Updating an archived order is not allowed. + /// + UPDATE_ARCHIVED_ORDER_NOT_ALLOWED = 2, + /// DSM can set the proposal ID only at the time of creation of order. Setting or + /// changing proposal ID at the time of order update is not allowed. + /// + CANNOT_MODIFY_PROPOSAL_ID = 3, + /// Cannot have secondary user without a primary user. + /// + PRIMARY_USER_REQUIRED = 4, + /// Primary user cannot be added as a secondary user too. + /// + PRIMARY_USER_CANNOT_BE_SECONDARY = 5, + /// A team associated with the order must also be associated with the advertiser. + /// + ORDER_TEAM_NOT_ASSOCIATED_WITH_ADVERTISER = 6, + /// The user assigned to the order, like salesperson or trafficker, must be on one + /// of the order's teams. + /// + USER_NOT_ON_ORDERS_TEAMS = 7, + /// The agency assigned to the order must belong to one of the order's teams. + /// + AGENCY_NOT_ON_ORDERS_TEAMS = 8, + /// Programmatic info fields should not be set for a non-programmatic order. + /// + INVALID_FIELDS_SET_FOR_NON_PROGRAMMATIC_ORDER = 9, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 10, + } + + + /// Lists all errors associated with performing actions on Order + /// objects. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class OrderActionError : ApiError { + private OrderActionErrorReason reasonField; + + private bool reasonFieldSpecified; + + /// The error reason represented by an enum. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public OrderActionErrorReason reason { get { - return this.appliedLabelsField; + return this.reasonField; } set { - this.appliedLabelsField = value; + this.reasonField = value; + this.reasonSpecified = true; } } - /// Contains the set of labels applied directly to the proposal as well as those - /// inherited ones. If a label has been negated, only the negated label is returned. - /// This attribute is read-only. - /// - [System.Xml.Serialization.XmlElementAttribute("effectiveAppliedLabels", Order = 25)] - public AppliedLabel[] effectiveAppliedLabels { + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool reasonSpecified { get { - return this.effectiveAppliedLabelsField; + return this.reasonFieldSpecified; } set { - this.effectiveAppliedLabelsField = value; + this.reasonFieldSpecified = value; } } + } - /// If a line item has a series of competitive exclusions on it, it could be blocked - /// from serving with line items from the same advertiser. Setting this to - /// true will allow line items from the same advertiser to serve - /// regardless of the other competitive exclusion labels being applied.

This - /// attribute is optional and defaults to false.

+ + /// The reasons for the target error. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "OrderActionError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum OrderActionErrorReason { + /// The operation is not allowed due to lack of permissions. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 26)] - public bool disableSameAdvertiserCompetitiveExclusion { + PERMISSION_DENIED = 0, + /// The operation is not applicable for the current state of the Order. + /// + NOT_APPLICABLE = 1, + /// The Order is archived, an OrderAction cannot be applied to an archived order. + /// + IS_ARCHIVED = 2, + /// The Order is past its end date, An OrderAction cannot be applied to a order that has ended. + /// + HAS_ENDED = 3, + /// A Order cannot be approved if it contains reservable LineItems that are unreserved. + /// + CANNOT_APPROVE_WITH_UNRESERVED_LINE_ITEMS = 4, + /// Deleting an Order with delivered line items is not allowed + /// + CANNOT_DELETE_ORDER_WITH_DELIVERED_LINEITEMS = 5, + /// Cannot approve because company credit status is not active. + /// + CANNOT_APPROVE_COMPANY_CREDIT_STATUS_NOT_ACTIVE = 6, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 7, + } + + + /// Lists all errors related to mobile application targeting for a line item. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class MobileApplicationTargetingError : ApiError { + private MobileApplicationTargetingErrorReason reasonField; + + private bool reasonFieldSpecified; + + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public MobileApplicationTargetingErrorReason reason { get { - return this.disableSameAdvertiserCompetitiveExclusionField; + return this.reasonField; } set { - this.disableSameAdvertiserCompetitiveExclusionField = value; - this.disableSameAdvertiserCompetitiveExclusionSpecified = true; + this.reasonField = value; + this.reasonSpecified = true; } } - /// true, if a value is specified for , false - /// otherwise. + /// true, if a value is specified for , + /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool disableSameAdvertiserCompetitiveExclusionSpecified { + public bool reasonSpecified { get { - return this.disableSameAdvertiserCompetitiveExclusionFieldSpecified; + return this.reasonFieldSpecified; } set { - this.disableSameAdvertiserCompetitiveExclusionFieldSpecified = value; + this.reasonFieldSpecified = value; } } + } - /// Indicates whether this ProposalLineItem has been sold. This - /// attribute is read-only. + + /// ApiErrorReason enum for user domain targeting + /// error. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "MobileApplicationTargetingError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum MobileApplicationTargetingErrorReason { + /// Only applications that are linked to a store entry may be targeted. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 27)] - public bool isSold { + CANNOT_TARGET_UNLINKED_APPLICATION = 0, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 1, + } + + + /// Lists all errors for executing operations on line items + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class LineItemOperationError : ApiError { + private LineItemOperationErrorReason reasonField; + + private bool reasonFieldSpecified; + + /// The error reason represented by an enum. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public LineItemOperationErrorReason reason { get { - return this.isSoldField; + return this.reasonField; } set { - this.isSoldField = value; - this.isSoldSpecified = true; + this.reasonField = value; + this.reasonSpecified = true; } } - /// true, if a value is specified for , + /// true, if a value is specified for , /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool isSoldSpecified { + public bool reasonSpecified { get { - return this.isSoldFieldSpecified; + return this.reasonFieldSpecified; } set { - this.isSoldFieldSpecified = value; + this.reasonFieldSpecified = value; } } + } - /// The amount of money to spend per impression or click in proposal currency. It - /// supports precision of 4 decimal places in terms of the fundamental currency - /// unit, so the Money#getAmountInMicros must be multiples of 100. It - /// doesn't include agency commission.

For example, if Proposal#currencyCode is 'USD', then $123.4567 - /// could be represented as 123456700, but further precision is not supported.

- ///

At least one of the two fields ProposalLineItem#netRate,and ProposalLineItem#netCost is required.

- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 28)] - public Money netRate { - get { - return this.netRateField; - } - set { - this.netRateField = value; - } - } - - /// The cost of the ProposalLineItem in proposal currency. It supports - /// precision of 2 decimal places in terms of the fundamental currency unit, so the - /// Money#getAmountInMicros must be multiples of 10000. It doesn't - /// include agency commission.

For example, if Proposal#currencyCode is 'USD', then $123.45 - /// could be represented as 123450000, but further precision is not supported.

- ///

At least one of the two fields ProposalLineItem#netRate and ProposalLineItem#netCost is required.

- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 29)] - public Money netCost { - get { - return this.netCostField; - } - set { - this.netCostField = value; - } - } - - /// Indicates how well the line item generated from this proposal line item has been - /// performing. This will be null if the delivery indicator information - /// is not available due to one of the following reasons:
  1. The proposal line - /// item has not pushed to Ad Manager.
  2. The line item is not - /// delivering.
  3. The line item has an unlimited goal or cap.
  4. The - /// line item has a percentage based goal or cap.
This attribute is - /// read-only. - ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 30)] - public DeliveryIndicator deliveryIndicator { - get { - return this.deliveryIndicatorField; - } - set { - this.deliveryIndicatorField = value; - } - } - - /// Delivery data provides the number of clicks or impressions delivered for the LineItem generated from this proposal line item in the last - /// 7 days. This will be if the delivery data cannot be computed due - /// to one of the following reasons:
  1. The proposal line item has not pushed - /// to Ad Manager.
  2. The line item is not deliverable.
  3. The line item - /// has completed delivering more than 7 days ago.
  4. The line item has an - /// absolute-based goal. ProposalLineItem#deliveryIndicator - /// should be used to track its progress in this case. This attribute is - /// read-only.
- ///
- [System.Xml.Serialization.XmlArrayAttribute(Order = 31)] - [System.Xml.Serialization.XmlArrayItemAttribute("units", IsNullable = false)] - public long[] deliveryData { - get { - return this.deliveryDataField; - } - set { - this.deliveryDataField = value; - } - } - - /// The status of the LineItem generated from this proposal - /// line item. This will be null if the proposal line item has not - /// pushed to Ad Manager. This attribute is read-only. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 32)] - public ComputedStatus computedStatus { - get { - return this.computedStatusField; - } - set { - this.computedStatusField = value; - this.computedStatusSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool computedStatusSpecified { - get { - return this.computedStatusFieldSpecified; - } - set { - this.computedStatusFieldSpecified = value; - } - } - - /// The date and time this ProposalLineItem was last modified.

This - /// attribute is assigned by Google when a is updated. This attribute - /// is read-only.

- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 33)] - public DateTime lastModifiedDateTime { - get { - return this.lastModifiedDateTimeField; - } - set { - this.lastModifiedDateTimeField = value; - } - } - /// The reservation status of the ProposalLineItem. - /// This attribute is read-only. + /// The reasons for the target error. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "LineItemOperationError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum LineItemOperationErrorReason { + /// The operation is not allowed due to lack of permissions. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 34)] - public ReservationStatus reservationStatus { - get { - return this.reservationStatusField; - } - set { - this.reservationStatusField = value; - this.reservationStatusSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reservationStatusSpecified { - get { - return this.reservationStatusFieldSpecified; - } - set { - this.reservationStatusFieldSpecified = value; - } - } - - /// The last DateTime when the ProposalLineItem reserved inventory. This attribute - /// is read-only. + NOT_ALLOWED = 0, + /// The operation is not applicable for the current state of the LineItem. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 35)] - public DateTime lastReservationDateTime { - get { - return this.lastReservationDateTimeField; - } - set { - this.lastReservationDateTimeField = value; - } - } - - /// The environment that the ProposalLineItem is targeting. The default - /// value is EnvironmentType#BROWSER. If this value is EnvironmentType#VIDEO_PLAYER, then this - /// ProposalLineItem can only target ad units that - /// have sizes whose AdUnitSize#environmentType is also EnvironmentType#VIDEO_PLAYER.

This - /// field is read-only and set to Product#environmentType of the product this - /// proposal line item was created from.

+ NOT_APPLICABLE = 1, + /// The LineItem is completed. A LineItemAction cannot be applied to a line item that + /// is completed. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 36)] - public EnvironmentType environmentType { - get { - return this.environmentTypeField; - } - set { - this.environmentTypeField = value; - this.environmentTypeSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool environmentTypeSpecified { - get { - return this.environmentTypeFieldSpecified; - } - set { - this.environmentTypeFieldSpecified = value; - } - } - - /// The set of AllowedFormats that this proposal line - /// item can have. If the set is empty, this proposal line item allows all formats. + HAS_COMPLETED = 2, + /// The LineItem has no active creatives. A line item cannot + /// be activated with no active creatives. /// - [System.Xml.Serialization.XmlElementAttribute("allowedFormats", Order = 37)] - public AllowedFormats[] allowedFormats { - get { - return this.allowedFormatsField; - } - set { - this.allowedFormatsField = value; - } - } - - /// Whether or not the Proposal for this is a - /// programmatic deal. This attribute is populated from Proposal#isProgrammatic. This attribute is - /// read-only. + HAS_NO_ACTIVE_CREATIVES = 3, + /// A LineItem of type LineItemType#LEGACY_DFP cannot be Activated. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 38)] - public bool isProgrammatic { - get { - return this.isProgrammaticField; - } - set { - this.isProgrammaticField = value; - this.isProgrammaticSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool isProgrammaticSpecified { - get { - return this.isProgrammaticFieldSpecified; - } - set { - this.isProgrammaticFieldSpecified = value; - } - } - - /// Additional terms shown to the buyer in Marketplace. + CANNOT_ACTIVATE_LEGACY_DFP_LINE_ITEM = 4, + /// A LineItem with publisher creative source cannot be + /// activated if the corresponding deal is not yet configured by the buyer. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 39)] - public string additionalTerms { - get { - return this.additionalTermsField; - } - set { - this.additionalTermsField = value; - } - } - - /// Indicates the ProgrammaticCreativeSource of the - /// programmatic line item. + CANNOT_ACTIVATE_UNCONFIGURED_LINE_ITEM = 9, + /// Deleting an LineItem that has delivered is not allowed /// - [System.Xml.Serialization.XmlElementAttribute(Order = 40)] - public ProgrammaticCreativeSource programmaticCreativeSource { - get { - return this.programmaticCreativeSourceField; - } - set { - this.programmaticCreativeSourceField = value; - this.programmaticCreativeSourceSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool programmaticCreativeSourceSpecified { - get { - return this.programmaticCreativeSourceFieldSpecified; - } - set { - this.programmaticCreativeSourceFieldSpecified = value; - } - } - - /// Contains the information for a proposal line item which has a target GRP - /// demographic. + CANNOT_DELETE_DELIVERED_LINE_ITEM = 5, + /// Reservation cannot be made for line item because the LineItem#advertiserId it is associated with has + /// Company#creditStatus that is not + /// ACTIVE or ON_HOLD. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 41)] - public GrpSettings grpSettings { - get { - return this.grpSettingsField; - } - set { - this.grpSettingsField = value; - } - } - - /// The estimated minimum impressions that should be delivered for a proposal line - /// item. + CANNOT_RESERVE_COMPANY_CREDIT_STATUS_NOT_ACTIVE = 6, + /// Cannot activate line item because the LineItem#advertiserId it is associated with has + /// Company#creditStatus that is not + /// ACTIVE, INACTIVE, or ON_HOLD. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 42)] - public long estimatedMinimumImpressions { - get { - return this.estimatedMinimumImpressionsField; - } - set { - this.estimatedMinimumImpressionsField = value; - this.estimatedMinimumImpressionsSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool estimatedMinimumImpressionsSpecified { - get { - return this.estimatedMinimumImpressionsFieldSpecified; - } - set { - this.estimatedMinimumImpressionsFieldSpecified = value; - } - } - - /// Contains third party measurement settings for cross-sell Partners + CANNOT_ACTIVATE_INVALID_COMPANY_CREDIT_STATUS = 7, + /// The value returned if the actual value is not exposed by the requested API + /// version. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 43)] - public ThirdPartyMeasurementSettings thirdPartyMeasurementSettings { - get { - return this.thirdPartyMeasurementSettingsField; - } - set { - this.thirdPartyMeasurementSettingsField = value; - } - } + UNKNOWN = 8, + } - /// Makegood info for this proposal line item. Immutable once created.

Null if - /// this proposal line item is not a makegood.

- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 44)] - public ProposalLineItemMakegoodInfo makegoodInfo { - get { - return this.makegoodInfoField; - } - set { - this.makegoodInfoField = value; - } - } - /// Whether this proposal line item has an associated makegood. This attribute is - /// read-only. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 45)] - public bool hasMakegood { - get { - return this.hasMakegoodField; - } - set { - this.hasMakegoodField = value; - this.hasMakegoodSpecified = true; - } - } + /// Lists all errors associated with LineItem start and end dates. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class LineItemFlightDateError : ApiError { + private LineItemFlightDateErrorReason reasonField; - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool hasMakegoodSpecified { - get { - return this.hasMakegoodFieldSpecified; - } - set { - this.hasMakegoodFieldSpecified = value; - } - } + private bool reasonFieldSpecified; - /// Whether a new makegood associated with this line item can be created. This - /// attribute is read-only. + /// The error reason represented by an enum. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 46)] - public bool canCreateMakegood { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public LineItemFlightDateErrorReason reason { get { - return this.canCreateMakegoodField; + return this.reasonField; } set { - this.canCreateMakegoodField = value; - this.canCreateMakegoodSpecified = true; + this.reasonField = value; + this.reasonSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , + /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool canCreateMakegoodSpecified { - get { - return this.canCreateMakegoodFieldSpecified; - } - set { - this.canCreateMakegoodFieldSpecified = value; - } - } - - /// The NegotiationRole that paused the proposal line - /// item, i.e. NegotiationRole#seller or NegotiationRole#buyer, or null - /// when the proposal is not paused. This attribute is read-only. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 47)] - public NegotiationRole pauseRole { + public bool reasonSpecified { get { - return this.pauseRoleField; + return this.reasonFieldSpecified; } set { - this.pauseRoleField = value; - this.pauseRoleSpecified = true; + this.reasonFieldSpecified = value; } } + } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool pauseRoleSpecified { - get { - return this.pauseRoleFieldSpecified; - } - set { - this.pauseRoleFieldSpecified = value; - } - } - /// The reason for pausing the ProposalLineItem, - /// provided by the pauseRole. It is null when - /// the ProposalLineItem is not paused. This - /// attribute is read-only. + /// The reasons for the target error. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "LineItemFlightDateError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum LineItemFlightDateErrorReason { + START_DATE_TIME_IS_IN_PAST = 0, + END_DATE_TIME_IS_IN_PAST = 1, + END_DATE_TIME_NOT_AFTER_START_TIME = 2, + END_DATE_TIME_TOO_LATE = 3, + /// The value returned if the actual value is not exposed by the requested API + /// version. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 48)] - public string pauseReason { - get { - return this.pauseReasonField; - } - set { - this.pauseReasonField = value; - } - } + UNKNOWN = 4, } - /// Defines the criteria a LineItem needs to satisfy to meet - /// its delivery goal. + /// A catch-all error that lists all generic errors associated with LineItem. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class Goal { - private GoalType goalTypeField; - - private bool goalTypeFieldSpecified; - - private UnitType unitTypeField; - - private bool unitTypeFieldSpecified; - - private long unitsField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class LineItemError : ApiError { + private LineItemErrorReason reasonField; - private bool unitsFieldSpecified; + private bool reasonFieldSpecified; - /// The type of the goal for the LineItem. It defines the period over - /// which the goal for LineItem should be reached. + /// The error reason represented by an enum. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public GoalType goalType { + public LineItemErrorReason reason { get { - return this.goalTypeField; + return this.reasonField; } set { - this.goalTypeField = value; - this.goalTypeSpecified = true; + this.reasonField = value; + this.reasonSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , + /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool goalTypeSpecified { + public bool reasonSpecified { get { - return this.goalTypeFieldSpecified; + return this.reasonFieldSpecified; } set { - this.goalTypeFieldSpecified = value; + this.reasonFieldSpecified = value; } } - - /// The type of the goal unit for the LineItem. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public UnitType unitType { - get { - return this.unitTypeField; - } - set { - this.unitTypeField = value; - this.unitTypeSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool unitTypeSpecified { - get { - return this.unitTypeFieldSpecified; - } - set { - this.unitTypeFieldSpecified = value; - } - } - - /// If this is a primary goal, it represents the number or percentage of impressions - /// or clicks that will be reserved for the . If the line item is of - /// type LineItemType#SPONSORSHIP, it represents the percentage of - /// available impressions reserved. If the line item is of type LineItemType#BULK or LineItemType#PRICE_PRIORITY, it - /// represents the number of remaining impressions reserved. If the line item is of - /// type LineItemType#NETWORK or LineItemType#HOUSE, it represents the percentage - /// of remaining impressions reserved.

If this is a secondary goal, it represents - /// the number of impressions or conversions that the line item will stop serving at - /// if reached. For valid line item types, see LineItem#secondaryGoals.

- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public long units { - get { - return this.unitsField; - } - set { - this.unitsField = value; - this.unitsSpecified = true; - } - } - - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool unitsSpecified { - get { - return this.unitsFieldSpecified; - } - set { - this.unitsFieldSpecified = value; - } - } - } + } - /// Specifies the type of the goal for a LineItem. + /// The reasons for the target error. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum GoalType { - /// No goal is specified for the number of ads delivered. The LineItem#lineItemType must be one of: + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "LineItemError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum LineItemErrorReason { + /// Some changes may not be allowed because a line item has already started. /// - NONE = 0, - /// There is a goal on the number of ads delivered for this line item during its - /// entire lifetime. The LineItem#lineItemType - /// must be one of: + ALREADY_STARTED = 0, + /// Update reservation is not allowed because a line item has already started, users + /// must pause the line item first. /// - LIFETIME = 1, - /// There is a daily goal on the number of ads delivered for this line item. The LineItem#lineItemType must be one of: + UPDATE_RESERVATION_NOT_ALLOWED = 1, + /// Roadblocking to display all creatives is not allowed. /// - DAILY = 2, - /// The value returned if the actual value is not exposed by the requested API - /// version. + ALL_ROADBLOCK_NOT_ALLOWED = 2, + /// Companion delivery to display all creatives is not allowed. /// - UNKNOWN = 3, - } - - - /// Possible delivery rates for a LineItem, which dictate the - /// manner in which they are served. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum DeliveryRateType { - /// Line items are served as evenly as possible across the number of days specified - /// in a line item's LineItem#duration. + ALL_COMPANION_DELIVERY_NOT_ALLOWED = 80, + /// Roadblocking to display all master and companion creative set is not allowed. /// - EVENLY = 0, - /// Line items are served more aggressively in the beginning of the flight date. + CREATIVE_SET_ROADBLOCK_NOT_ALLOWED = 3, + /// Fractional percentage is not allowed. /// - FRONTLOADED = 1, - /// The booked impressions for a line item may be delivered well before the LineItem#endDateTime. Other lower-priority or - /// lower-value line items will be stopped from delivering until this line item - /// meets the number of impressions or clicks it is booked for. + FRACTIONAL_PERCENTAGE_NOT_ALLOWED = 4, + /// For certain LineItem configurations discounts are not allowed. /// - AS_FAST_AS_POSSIBLE = 2, - } - - - /// Describes the roadblocking types. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum RoadblockingType { - /// Only one creative from a line item can serve at a time. + DISCOUNT_NOT_ALLOWED = 5, + /// Updating a canceled line item is not allowed. /// - ONLY_ONE = 0, - /// Any number of creatives from a line item can serve together at a time. + UPDATE_CANCELED_LINE_ITEM_NOT_ALLOWED = 6, + /// Updating a pending approval line item is not allowed. /// - ONE_OR_MORE = 1, - /// As many creatives from a line item as can fit on a page will serve. This could - /// mean anywhere from one to all of a line item's creatives given the size - /// constraints of ad slots on a page. + UPDATE_PENDING_APPROVAL_LINE_ITEM_NOT_ALLOWED = 7, + /// Updating an archived line item is not allowed. /// - AS_MANY_AS_POSSIBLE = 2, - /// All or none of the creatives from a line item will serve. This option will only - /// work if served to a GPT tag using SRA (single request architecture mode). + UPDATE_ARCHIVED_LINE_ITEM_NOT_ALLOWED = 8, + /// Create or update legacy dfp line item type is not allowed. /// - ALL_ROADBLOCK = 3, - /// A master/companion CreativeSet roadblocking type. A LineItem#creativePlaceholders must be - /// set accordingly. + CREATE_OR_UPDATE_LEGACY_DFP_LINE_ITEM_TYPE_NOT_ALLOWED = 9, + /// Copying line item from different company (advertiser) to the same order is not + /// allowed. /// - CREATIVE_SET = 4, - } - - - /// The delivery option for companions. Used for line items whose environmentType is - /// EnvironmentType#VIDEO_PLAYER. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum CompanionDeliveryOption { - /// Companions are not required to serve a creative set. The creative set can serve - /// to inventory that has zero or more matching companions. + COPY_LINE_ITEM_FROM_DIFFERENT_COMPANY_NOT_ALLOWED = 10, + /// The size is invalid for the specified platform. /// - OPTIONAL = 0, - /// At least one companion must be served in order for the creative set to be used. + INVALID_SIZE_FOR_PLATFORM = 11, + /// The line item type is invalid for the specified platform. /// - AT_LEAST_ONE = 1, - /// All companions in the set must be served in order for the creative set to be - /// used. This can still serve to inventory that has more companions than can be - /// filled. + INVALID_LINE_ITEM_TYPE_FOR_PLATFORM = 12, + /// The web property cannot be served on the specified platform. /// - ALL = 2, - /// The delivery type is unknown. + INVALID_WEB_PROPERTY_FOR_PLATFORM = 13, + /// The web property cannot be served on the specified environment. /// - UNKNOWN = 3, - } - - - /// Represents a limit on the number of times a single viewer can be exposed to the - /// same LineItem in a specified time period. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class FrequencyCap { - private int maxImpressionsField; - - private bool maxImpressionsFieldSpecified; - - private int numTimeUnitsField; - - private bool numTimeUnitsFieldSpecified; - - private TimeUnit timeUnitField; - - private bool timeUnitFieldSpecified; - - /// The maximum number of impressions than can be served to a user within a - /// specified time period. + INVALID_WEB_PROPERTY_FOR_ENVIRONMENT = 14, + /// AFMA backfill not supported. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public int maxImpressions { - get { - return this.maxImpressionsField; - } - set { - this.maxImpressionsField = value; - this.maxImpressionsSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool maxImpressionsSpecified { - get { - return this.maxImpressionsFieldSpecified; - } - set { - this.maxImpressionsFieldSpecified = value; - } - } - - /// The number of FrequencyCap#timeUnit to represent the total time - /// period. + AFMA_BACKFILL_NOT_ALLOWED = 15, + /// Environment type cannot change once saved. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public int numTimeUnits { - get { - return this.numTimeUnitsField; - } - set { - this.numTimeUnitsField = value; - this.numTimeUnitsSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool numTimeUnitsSpecified { - get { - return this.numTimeUnitsFieldSpecified; - } - set { - this.numTimeUnitsFieldSpecified = value; - } - } - - /// The unit of time for specifying the time period. + UPDATE_ENVIRONMENT_TYPE_NOT_ALLOWED = 16, + /// The placeholders are invalid because they contain companions, but the line item + /// does not support companions. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public TimeUnit timeUnit { - get { - return this.timeUnitField; - } - set { - this.timeUnitField = value; - this.timeUnitSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool timeUnitSpecified { - get { - return this.timeUnitFieldSpecified; - } - set { - this.timeUnitFieldSpecified = value; - } - } - } - - - /// Represent the possible time units for frequency capping. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum TimeUnit { - MINUTE = 0, - HOUR = 1, - DAY = 2, - WEEK = 3, - MONTH = 4, - LIFETIME = 5, - /// Per pod of ads in a video stream. Only valid for entities in a EnvironmentType#VIDEO_PLAYER - /// environment. + COMPANIONS_NOT_ALLOWED = 17, + /// The placeholders are invalid because some of them are roadblocks, and some are + /// not. Either all roadblock placeholders must contain companions, or no + /// placeholders may contain companions. This does not apply to video creative sets. /// - POD = 6, - /// Per video stream. Only valid for entities in a EnvironmentType#VIDEO_PLAYER - /// environment. + ROADBLOCKS_WITH_NONROADBLOCKS_NOT_ALLOWED = 18, + /// A line item cannot be updated from having RoadblockingType#CREATIVE_SET to having + /// a different RoadblockingType, or vice versa. /// - STREAM = 7, - /// The value returned if the actual value is not exposed by the requested API - /// version. + CANNOT_UPDATE_TO_OR_FROM_CREATIVE_SET_ROADBLOCK = 19, + /// Can not change from a backfill line item type once creatives have been assigned. /// - UNKNOWN = 8, - } - - - /// LineItemType indicates the priority of a LineItem, determined by the way in which impressions are - /// reserved to be served for it. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum LineItemType { - /// The type of LineItem for which a percentage of all the - /// impressions that are being sold are reserved. + UPDATE_FROM_BACKFILL_LINE_ITEM_TYPE_NOT_ALLOWED = 20, + /// Can not change to a backfill line item type once creatives have been assigned. /// - SPONSORSHIP = 0, - /// The type of LineItem for which a fixed quantity of - /// impressions or clicks are reserved. + UPDATE_TO_BACKFILL_LINE_ITEM_TYPE_NOT_ALLOWED = 21, + /// Can not change to backfill web property once creatives have been assigned. /// - STANDARD = 1, - /// The type of LineItem most commonly used to fill a site's - /// unsold inventory if not contractually obligated to deliver a requested number of - /// impressions. Users specify the daily percentage of unsold impressions or clicks - /// when creating this line item. + UPDATE_BACKFILL_WEB_PROPERTY_NOT_ALLOWED = 22, + /// The companion delivery option is not valid for your environment type. /// - NETWORK = 2, - /// The type of LineItem for which a fixed quantity of - /// impressions or clicks will be delivered at a priority lower than the LineItemType#STANDARD type. + INVALID_COMPANION_DELIVERY_OPTION_FOR_ENVIRONMENT_TYPE = 23, + /// Companion backfill is enabled but environment type not video. /// - BULK = 3, - /// The type of LineItem most commonly used to fill a site's - /// unsold inventory if not contractually obligated to deliver a requested number of - /// impressions. Users specify the fixed quantity of unsold impressions or clicks - /// when creating this line item. + COMPANION_BACKFILL_REQUIRES_VIDEO = 24, + /// Companion delivery options require Ad Manager 360 networks. /// - PRICE_PRIORITY = 4, - /// The type of LineItem typically used for ads that promote - /// products and services chosen by the publisher. These usually do not generate - /// revenue and have the lowest delivery priority. + COMPANION_DELIVERY_OPTION_REQUIRE_PREMIUM = 25, + /// The master size of placeholders have duplicates. /// - HOUSE = 5, - /// Represents a legacy LineItem that has been migrated from - /// the DFP system. Such line items cannot be created any more. Also, these line - /// items cannot be activated or resumed. + DUPLICATE_MASTER_SIZES = 26, + /// The line item priority is invalid if for dynamic allocation line items it is + /// different than the default for free publishers. When allowed, Ad Manager 360 + /// users can change the priority to any value. /// - LEGACY_DFP = 6, - /// The type of LineItem used for ads that track ads being - /// served externally of Ad Manager, for example an email newsletter. The click - /// through would reference this ad, and the click would be tracked via this ad. + INVALID_PRIORITY_FOR_LINE_ITEM_TYPE = 27, + /// The environment type is not valid. /// - CLICK_TRACKING = 7, - /// A LineItem using dynamic allocation backed by AdSense. + INVALID_ENVIRONMENT_TYPE = 28, + /// The environment type is not valid for the target platform. /// - ADSENSE = 8, - /// A LineItem using dynamic allocation backed by the Google - /// Ad Exchange. + INVALID_ENVIRONMENT_TYPE_FOR_PLATFORM = 29, + /// Only LineItemType#STANDARD line items can be + /// auto extended. /// - AD_EXCHANGE = 9, - /// Represents a non-monetizable video LineItem that targets - /// one or more bumper positions, which are short house video messages used by - /// publishers to separate content from ad breaks. + INVALID_TYPE_FOR_AUTO_EXTENSION = 30, + /// Video line items cannot change the roadblocking type. /// - BUMPER = 10, - /// A LineItem using dynamic allocation backed by AdMob. + VIDEO_INVALID_ROADBLOCKING = 31, + /// The backfill feature is not enabled according to your features. /// - ADMOB = 11, - /// The type of LineItem for which there are no impressions - /// reserved, and will serve for a second price bid. All LineItems of type LineItemType#PREFERRED_DEAL should be - /// created via a ProposalLineItem with a matching - /// type. When creating a LineItem of type LineItemType#PREFERRED_DEAL, the ProposalLineItem#estimatedMinimumImpressions - /// field is required. + BACKFILL_TYPE_NOT_ALLOWED = 32, + /// The web property is invalid. A line item must have an appropriate web property + /// selected. /// - PREFERRED_DEAL = 13, - /// The value returned if the actual value is not exposed by the requested API - /// version. + INVALID_BACKFILL_LINK_TYPE = 33, + /// All line items in a programmatic order must have web property codes from the + /// same account. /// - UNKNOWN = 12, - } - - - /// Describes the type of event the advertiser is paying for. The values here - /// correspond to the values for the LineItem#costType field. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum RateType { - /// The rate applies to cost per mille (CPM) revenue. + DIFFERENT_BACKFILL_ACCOUNT = 51, + /// Companion delivery options are not allowed with dynamic allocation line items. /// - CPM = 0, - /// The rate applies to cost per click (CPC) revenue. + COMPANION_DELIVERY_OPTIONS_NOT_ALLOWED_WITH_BACKFILL = 35, + /// Dynamic allocation using the AdExchange should always use an AFC web property. /// - CPC = 1, - /// The rate applies to cost per day (CPD) revenue. + INVALID_WEB_PROPERTY_FOR_ADX_BACKFILL = 36, + /// CPM for backfill inventory must be 0. /// - CPD = 2, - /// The rate applies to cost per unit (CPU) revenue. + INVALID_COST_PER_UNIT_FOR_BACKFILL = 75, + /// Aspect ratio sizes cannot be used with video line items. /// - CPU = 3, - /// The rate applies to flat fee revenue. + INVALID_SIZE_FOR_ENVIRONMENT = 37, + /// The specified target platform is not allowed. /// - FLAT_FEE = 4, - /// The rate applies to Active View viewable cost per mille (vCPM) revenue. + TARGET_PLATOFRM_NOT_ALLOWED = 38, + /// Currency on a line item must be one of the specified network currencies. /// - VCPM = 6, - /// The rate applies to cost per mille in-target (CPM In-Target). + INVALID_LINE_ITEM_CURRENCY = 39, + /// All money fields on a line item must specify the same currency. /// - CPM_IN_TARGET = 7, - /// The value returned if the actual value is not exposed by the requested API - /// version. + LINE_ITEM_CANNOT_HAVE_MULTIPLE_CURRENCIES = 40, + /// Once a line item has moved into a a delivering state the currency cannot be + /// changed. /// - UNKNOWN = 5, - } - - - /// Represents a money amount. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class Money { - private string currencyCodeField; - - private long microAmountField; - - private bool microAmountFieldSpecified; - - /// Three letter currency code in string format. + CANNOT_CHANGE_CURRENCY = 41, + /// A DateTime associated with the line item is not valid. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public string currencyCode { - get { - return this.currencyCodeField; - } - set { - this.currencyCodeField = value; - } - } - - /// Money values are always specified in terms of micros which are a millionth of - /// the fundamental currency unit. For US dollars, $1 is 1,000,000 micros. + INVALID_LINE_ITEM_DATE_TIME = 43, + /// CPA line items must specify a zero cost for the LineItem#costPerUnit. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public long microAmount { - get { - return this.microAmountField; - } - set { - this.microAmountField = value; - this.microAmountSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool microAmountSpecified { - get { - return this.microAmountFieldSpecified; - } - set { - this.microAmountFieldSpecified = value; - } - } + INVALID_COST_PER_UNIT_FOR_CPA = 44, + /// Once a LineItem is activated its LineItem#costPerUnit cannot be updated to/from + /// CPA. + /// + UPDATE_CPA_COST_TYPE_NOT_ALLOWED = 45, + /// Once a LineItem is activated its LineItem#costPerUnit cannot be updated to/from + /// Viewable CPM. + /// + UPDATE_VCPM_COST_TYPE_NOT_ALLOWED = 59, + /// A LineItem with master/companion creative placeholders + /// cannot have Viewable CPM as its LineItem#costPerUnit. + /// + MASTER_COMPANION_LINE_ITEM_CANNOT_HAVE_VCPM_COST_TYPE = 60, + /// There cannot be goals with duplicated unit type among the secondary goals for a + /// line items. + /// + DUPLICATED_UNIT_TYPE = 46, + /// The secondary goals of a line items must have the same + /// goal type. + /// + MULTIPLE_GOAL_TYPE_NOT_ALLOWED = 47, + /// For a CPA line item, the possible combinations for + /// secondary goals must be either click-through conversion only, click-through + /// conversion with view-through conversion or total conversion only. For a Viewable + /// CPM line item or a CPM based Sponsorship line item, its secondary goal has to be impression-based. + /// + INVALID_UNIT_TYPE_COMBINATION_FOR_SECONDARY_GOALS = 48, + /// One or more of the targeting names specified by a creative placeholder or line + /// item creative association were not found on the line item. + /// + INVALID_CREATIVE_TARGETING_NAME = 52, + /// Creative targeting expressions on the line item can only have custom criteria + /// targeting with CustomTargetingValue.MatchType#EXACT. + /// + INVALID_CREATIVE_CUSTOM_TARGETING_MATCH_TYPE = 53, + /// Line item with creative targeting expressions cannot have creative rotation type + /// set to CreativeRotationType#SEQUENTIAL. + /// + INVALID_CREATIVE_ROTATION_TYPE_WITH_CREATIVE_TARGETING = 54, + /// Line items cannot overbook inventory when applying creative-level targeting if + /// the originating proposal line item did not overbook inventory. Remove + /// creative-level targeting and try again. + /// + CANNOT_OVERBOOK_WITH_CREATIVE_TARGETING = 58, + /// For a managed line item, inventory sizes must match sizes that are set on the + /// originating proposal line item. In the case that a size is broken out by + /// creative-level targeting, the sum of the creative counts for each size must + /// equal the expected creative count that is set for that size on the originating + /// proposal line item. + /// + PLACEHOLDERS_DO_NOT_MATCH_PROPOSAL = 61, + /// The line item type is not supported for this API version. + /// + UNSUPPORTED_LINE_ITEM_TYPE_FOR_THIS_API_VERSION = 49, + /// Placeholders can only have native creative templates. + /// + NATIVE_CREATIVE_TEMPLATE_REQUIRED = 55, + /// Non-native placeholders cannot have creative templates. + /// + CANNOT_HAVE_CREATIVE_TEMPLATE = 56, + /// Cannot include native creative templates in the placeholders for Ad Exchange + /// line items. + /// + CANNOT_INCLUDE_NATIVE_CREATIVE_TEMPLATE = 63, + /// Cannot include native placeholders without native creative templates for + /// direct-sold line items. + /// + CANNOT_INCLUDE_NATIVE_PLACEHOLDER_WITHOUT_TEMPLATE_ID = 64, + /// For forecasting only, error when line item has duration, but no creative sizes + /// specified. + /// + NO_SIZE_WITH_DURATION = 62, + /// Used when the company pointed to by the viewabilityProviderCompanyId is not of + /// type VIEWABILITY_PROVIDER. + /// + INVALID_VIEWABILITY_PROVIDER_COMPANY = 65, + /// An error occurred while accessing the custom pacing curve Google Cloud Storage + /// bucket. + /// + CANNOT_ACCESS_CUSTOM_PACING_CURVE_CLOUD_STORAGE_BUCKET = 66, + /// CMS Metadata targeting is only supported for video line items. + /// + CMS_METADATA_LINE_ITEM_ENVIRONMENT_TYPE_NOT_SUPPORTED = 76, + /// The SkippableAdType is not allowed. + /// + SKIPPABLE_AD_TYPE_NOT_ALLOWED = 67, + /// Custom pacing curve start time must match the line item's start time. + /// + CUSTOM_PACING_CURVE_START_TIME_MUST_MATCH_LINE_ITEM_START_TIME = 68, + /// Custom pacing curve goal start time must be before line item end time. + /// + CUSTOM_PACING_CURVE_START_TIME_PAST_LINE_ITEM_END_TIME = 69, + /// The line item type is invalid for the specified delivery forecast source. + /// + INVALID_LINE_ITEM_TYPE_FOR_DELIVERY_FORECAST_SOURCE = 70, + /// The sum of the custom pacing goal amounts is invalid. + /// + INVALID_TOTAL_CUSTOM_PACING_GOAL_AMOUNTS = 71, + /// Copying line items with custom pacing curves that are totally in the past is not + /// allowed. + /// + COPY_LINE_ITEM_WITH_CUSTOM_PACING_CURVE_FULLY_IN_PAST_NOT_ALLOWED = 72, + /// The last custom pacing goal cannot be zero. + /// + LAST_CUSTOM_PACING_GOAL_AMOUNT_CANNOT_BE_ZERO = 73, + /// GRP paced line items cannot have absolute custom pacing curve goals. + /// + GRP_PACED_LINE_ITEM_CANNOT_HAVE_ABSOLUTE_CUSTOM_PACING_CURVE_GOALS = 74, + /// line item has invalid video creative duration. + /// + INVALID_MAX_VIDEO_CREATIVE_DURATION = 77, + /// Native size types must by 1x1. + /// + INVALID_NATIVE_SIZE = 78, + /// For AdExchange Line Items, the targeted request platform must match the + /// syndication type of the web property code. + /// + INVALID_TARGETED_REQUEST_PLATFORM_FOR_WEB_PROPERTY_CODE = 79, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 50, } - /// Indicates the delivery performance of the LineItem. + /// Lists all errors associated with line item-to-creative association dates. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class DeliveryIndicator { - private double expectedDeliveryPercentageField; - - private bool expectedDeliveryPercentageFieldSpecified; - - private double actualDeliveryPercentageField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class LineItemCreativeAssociationError : ApiError { + private LineItemCreativeAssociationErrorReason reasonField; - private bool actualDeliveryPercentageFieldSpecified; + private bool reasonFieldSpecified; - /// How much the LineItem was expected to deliver as a percentage of LineItem#primaryGoal. + /// The error reason represented by an enum. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public double expectedDeliveryPercentage { - get { - return this.expectedDeliveryPercentageField; - } - set { - this.expectedDeliveryPercentageField = value; - this.expectedDeliveryPercentageSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool expectedDeliveryPercentageSpecified { - get { - return this.expectedDeliveryPercentageFieldSpecified; - } - set { - this.expectedDeliveryPercentageFieldSpecified = value; - } - } - - /// How much the line item actually delivered as a percentage of LineItem#primaryGoal. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public double actualDeliveryPercentage { + public LineItemCreativeAssociationErrorReason reason { get { - return this.actualDeliveryPercentageField; + return this.reasonField; } set { - this.actualDeliveryPercentageField = value; - this.actualDeliveryPercentageSpecified = true; + this.reasonField = value; + this.reasonSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , + /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool actualDeliveryPercentageSpecified { + public bool reasonSpecified { get { - return this.actualDeliveryPercentageFieldSpecified; + return this.reasonFieldSpecified; } set { - this.actualDeliveryPercentageFieldSpecified = value; + this.reasonFieldSpecified = value; } } } - /// Describes the computed LineItem status that is derived - /// from the current state of the line item. + /// The reasons for the target error. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum ComputedStatus { - /// The LineItem has past its LineItem#endDateTime with an auto extension, but - /// hasn't met its goal. + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "LineItemCreativeAssociationError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum LineItemCreativeAssociationErrorReason { + /// Cannot associate a creative to the wrong advertiser /// - DELIVERY_EXTENDED = 0, - /// The LineItem has begun serving. + CREATIVE_IN_WRONG_ADVERTISERS_LIBRARY = 0, + /// The creative type being associated is a invalid for the line item type. /// - DELIVERING = 1, - /// The LineItem has been activated and is ready to serve. + INVALID_LINEITEM_CREATIVE_PAIRING = 1, + /// Association start date cannot be before line item start date /// - READY = 2, - /// The LineItem has been paused from serving. + STARTDATE_BEFORE_LINEITEM_STARTDATE = 2, + /// Association start date cannot be same as or after line item end date /// - PAUSED = 3, - /// The LineItem is inactive. It is either caused by missing - /// creatives or the network disabling auto-activation. + STARTDATE_NOT_BEFORE_LINEITEM_ENDDATE = 3, + /// Association end date cannot be after line item end date /// - INACTIVE = 4, - /// The LineItem has been paused and its reserved inventory - /// has been released. The LineItem will not serve. + ENDDATE_AFTER_LINEITEM_ENDDATE = 4, + /// Association end date cannot be same as or before line item start date /// - PAUSED_INVENTORY_RELEASED = 5, - /// The LineItem has been submitted for approval. + ENDDATE_NOT_AFTER_LINEITEM_STARTDATE = 5, + /// Association end date cannot be same as or before its start date /// - PENDING_APPROVAL = 6, - /// The LineItem has completed its run. + ENDDATE_NOT_AFTER_STARTDATE = 6, + /// Association end date cannot be in the past. /// - COMPLETED = 7, - /// The LineItem has been disapproved and is not eligible to - /// serve. + ENDDATE_IN_THE_PAST = 7, + /// Cannot copy an association to the same line item without creating new creative /// - DISAPPROVED = 8, - /// The LineItem is still being drafted. + CANNOT_COPY_WITHIN_SAME_LINE_ITEM = 8, + /// Programmatic only supports the "Video" redirect type. /// - DRAFT = 9, - /// The LineItem has been canceled and is no longer eligible - /// to serve. This is a legacy status imported from Google Ad Manager orders. + UNSUPPORTED_CREATIVE_VAST_REDIRECT_TYPE = 21, + /// Programmatic does not support YouTube hosted creatives. /// - CANCELED = 10, - } - - - /// Represents the inventory reservation status for ProposalLineItem objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum ReservationStatus { - /// The inventory is reserved. + UNSUPPORTED_YOUTUBE_HOSTED_CREATIVE = 18, + /// Programmatic creatives can only be assigned to one line item. /// - RESERVED = 0, - /// The proposal line item's inventory is never reserved. + PROGRAMMATIC_CREATIVES_CAN_ONLY_BE_ASSIGNED_TO_ONE_LINE_ITEM = 9, + /// Cannot activate a line item creative association if the associated creative is + /// inactive. /// - NOT_RESERVED = 1, - /// The inventory is once reserved and now released. + CANNOT_ACTIVATE_ASSOCIATION_WITH_INACTIVE_CREATIVE = 22, + /// Cannot create programmatic creatives. /// - RELEASED = 2, - /// The reservation status of the corresponding LineItem - /// should be used for this ProposalLineItem. + CANNOT_CREATE_PROGRAMMATIC_CREATIVES = 10, + /// Cannot update programmatic creatives. /// - CHECK_LINE_ITEM_RESERVATION_STATUS = 5, + CANNOT_UPDATE_PROGRAMMATIC_CREATIVES = 11, + /// Cannot associate a creative with a line item if only one of them is set-top box + /// enabled. + /// + CREATIVE_AND_LINE_ITEM_MUST_BOTH_BE_SET_TOP_BOX_ENABLED = 12, + /// Cannot delete associations between set-top box enabled line items and set-top + /// box enabled creatives. + /// + CANNOT_DELETE_SET_TOP_BOX_ENABLED_ASSOCIATIONS = 13, + /// Creative rotation weights must be integers. + /// + SET_TOP_BOX_CREATIVE_ROTATION_WEIGHT_MUST_BE_INTEGER = 14, + /// Creative rotation weights are only valid when creative rotation type is set to + /// CreativeRotationType#MANUAL. + /// + INVALID_CREATIVE_ROTATION_TYPE_FOR_MANUAL_WEIGHT = 15, + /// The code snippet of a creative must contain a click macro (%%CLICK_URL_ESC%% or + /// %%CLICK_URL_UNESC%%). + /// + CLICK_MACROS_REQUIRED = 19, + /// The code snippet of a creative must not contain a view macro (%%VIEW_URL_ESC%% + /// or %%VIEW_URL_UNESC%%). + /// + VIEW_MACROS_NOT_ALLOWED = 20, /// The value returned if the actual value is not exposed by the requested API /// version. /// - UNKNOWN = 4, + UNKNOWN = 16, } - /// Enum for the valid environments in which ads can be shown. + /// Errors specific to associating activities to line items. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum EnvironmentType { - /// A regular web browser. - /// - BROWSER = 0, - /// Video players. - /// - VIDEO_PLAYER = 1, - } + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class LineItemActivityAssociationError : ApiError { + private LineItemActivityAssociationErrorReason reasonField; + private bool reasonFieldSpecified; - /// The formats that a publisher allows on their programmatic LineItem or ProposalLineItem. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum AllowedFormats { - /// Audio format. This is only relevant for programmatic video line items. - /// - AUDIO = 0, - /// The value returned if the actual value is not exposed by the requested API - /// version. + /// The error reason represented by an enum. /// - UNKNOWN = 1, + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public LineItemActivityAssociationErrorReason reason { + get { + return this.reasonField; + } + set { + this.reasonField = value; + this.reasonSpecified = true; + } + } + + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool reasonSpecified { + get { + return this.reasonFieldSpecified; + } + set { + this.reasonFieldSpecified = value; + } + } } - /// Types of programmatic creative sources. + /// The reasons for the target error. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum ProgrammaticCreativeSource { - /// Indicates that the programmatic line item is associated with creatives provided - /// by the publisher. + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "LineItemActivityAssociationError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum LineItemActivityAssociationErrorReason { + /// When associating an activity to a line item the activity must belong to the same + /// advertiser as the line item. /// - PUBLISHER = 0, - /// Indicates that the programmatic line item is associated with creatives provided - /// by the advertiser. + INVALID_ACTIVITY_FOR_ADVERTISER = 0, + /// Activities can only be associated with line items of CostType.CPA. /// - ADVERTISER = 1, + INVALID_COST_TYPE_FOR_ASSOCIATION = 1, /// The value returned if the actual value is not exposed by the requested API /// version. /// @@ -21687,4183 +22006,5745 @@ public enum ProgrammaticCreativeSource { } - /// GrpSettings contains information for a line item that will have a - /// target demographic when serving. This information will be used to set up - /// tracking and enable reporting on the demographic information. + /// Errors specific to creating label entity associations. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class GrpSettings { - private long minTargetAgeField; - - private bool minTargetAgeFieldSpecified; - - private long maxTargetAgeField; - - private bool maxTargetAgeFieldSpecified; - - private GrpTargetGender targetGenderField; - - private bool targetGenderFieldSpecified; - - private GrpProvider providerField; - - private bool providerFieldSpecified; - - private long targetImpressionGoalField; - - private bool targetImpressionGoalFieldSpecified; - - private long inTargetRatioEstimateMilliPercentField; - - private bool inTargetRatioEstimateMilliPercentFieldSpecified; - - private NielsenCtvPacingType nielsenCtvPacingTypeField; - - private bool nielsenCtvPacingTypeFieldSpecified; - - private PacingDeviceCategorizationType pacingDeviceCategorizationTypeField; - - private bool pacingDeviceCategorizationTypeFieldSpecified; - - private bool applyTrueCoviewField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class LabelEntityAssociationError : ApiError { + private LabelEntityAssociationErrorReason reasonField; - private bool applyTrueCoviewFieldSpecified; + private bool reasonFieldSpecified; - /// Specifies the minimum target age (in years) of the LineItem. This field is only applicable if #provider is not null. + /// The error reason represented by an enum. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public long minTargetAge { + public LabelEntityAssociationErrorReason reason { get { - return this.minTargetAgeField; + return this.reasonField; } set { - this.minTargetAgeField = value; - this.minTargetAgeSpecified = true; + this.reasonField = value; + this.reasonSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , + /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool minTargetAgeSpecified { + public bool reasonSpecified { get { - return this.minTargetAgeFieldSpecified; + return this.reasonFieldSpecified; } set { - this.minTargetAgeFieldSpecified = value; + this.reasonFieldSpecified = value; } } + } - /// Specifies the maximum target age (in years) of the LineItem. This field is only applicable if #provider is not null. + + /// The reasons for the target error. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "LabelEntityAssociationError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum LabelEntityAssociationErrorReason { + /// The label has already been attached to the entity. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public long maxTargetAge { + DUPLICATE_ASSOCIATION = 1, + /// A label is being applied to an entity that does not support that entity type. + /// + INVALID_ASSOCIATION = 2, + /// Label negation cannot be applied to the entity type. + /// + NEGATION_NOT_ALLOWED = 5, + /// The same label is being applied and negated to the same entity. + /// + DUPLICATE_ASSOCIATION_WITH_NEGATION = 3, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 4, + } + + + /// Lists the generic errors associated with AdUnit objects. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class InventoryUnitError : ApiError { + private InventoryUnitErrorReason reasonField; + + private bool reasonFieldSpecified; + + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public InventoryUnitErrorReason reason { get { - return this.maxTargetAgeField; + return this.reasonField; } set { - this.maxTargetAgeField = value; - this.maxTargetAgeSpecified = true; + this.reasonField = value; + this.reasonSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , + /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool maxTargetAgeSpecified { + public bool reasonSpecified { get { - return this.maxTargetAgeFieldSpecified; + return this.reasonFieldSpecified; } set { - this.maxTargetAgeFieldSpecified = value; + this.reasonFieldSpecified = value; } } + } - /// Specifies the target gender of the LineItem. This field - /// is only applicable if #provider is not null. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public GrpTargetGender targetGender { - get { - return this.targetGenderField; - } - set { - this.targetGenderField = value; - this.targetGenderSpecified = true; - } - } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool targetGenderSpecified { - get { - return this.targetGenderFieldSpecified; - } - set { - this.targetGenderFieldSpecified = value; - } - } + /// Possible reasons for the error. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "InventoryUnitError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum InventoryUnitErrorReason { + /// AdUnit#explicitlyTargeted can be set to + /// true only in an Ad Manager 360 account. + /// + EXPLICIT_TARGETING_NOT_ALLOWED = 0, + /// The specified target platform is not applicable for the inventory unit. + /// + TARGET_PLATFORM_NOT_APPLICABLE = 1, + /// AdSense cannot be enabled on this inventory unit if it is disabled for the + /// network. + /// + ADSENSE_CANNOT_BE_ENABLED = 2, + /// A root unit cannot be deactivated. + /// + ROOT_UNIT_CANNOT_BE_DEACTIVATED = 3, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 4, + } - /// Specifies the GRP provider of the LineItem. + + /// Lists all errors associated with images. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ImageError : ApiError { + private ImageErrorReason reasonField; + + private bool reasonFieldSpecified; + + /// The error reason represented by an enum. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public GrpProvider provider { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public ImageErrorReason reason { get { - return this.providerField; + return this.reasonField; } set { - this.providerField = value; - this.providerSpecified = true; + this.reasonField = value; + this.reasonSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , + /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool providerSpecified { + public bool reasonSpecified { get { - return this.providerFieldSpecified; + return this.reasonFieldSpecified; } set { - this.providerFieldSpecified = value; + this.reasonFieldSpecified = value; } } + } - /// Specifies the impression goal for the given target demographic. This field is - /// only applicable if #provider is not null and - /// demographics-based goal is selected by the user. If this field is set, LineItem#primaryGoal will have its Goal#units value set by Google to represent the estimated - /// total quantity. + + /// The reasons for the target error. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ImageError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum ImageErrorReason { + /// The file's format is invalid. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public long targetImpressionGoal { - get { - return this.targetImpressionGoalField; - } - set { - this.targetImpressionGoalField = value; - this.targetImpressionGoalSpecified = true; - } - } + INVALID_IMAGE = 0, + /// Size#width and Size#height + /// cannot be negative. + /// + INVALID_SIZE = 1, + /// The actual image size does not match the expected image size. + /// + UNEXPECTED_SIZE = 2, + /// The size of the asset is larger than that of the overlay creative. + /// + OVERLAY_SIZE_TOO_LARGE = 3, + /// Animated images are not allowed. + /// + ANIMATED_NOT_ALLOWED = 4, + /// Animation length exceeded the allowed policy limit. + /// + ANIMATION_TOO_LONG = 5, + /// Images in CMYK color formats are not allowed. + /// + CMYK_JPEG_NOT_ALLOWED = 6, + /// Flash files are not allowed. + /// + FLASH_NOT_ALLOWED = 7, + /// If FlashCreative#clickTagRequired + /// is true, then the flash file is required to have a click tag + /// embedded in it. + /// + FLASH_WITHOUT_CLICKTAG = 8, + /// Animated visual effect is not allowed. + /// + ANIMATED_VISUAL_EFFECT = 9, + /// An error was encountered in the flash file. + /// + FLASH_ERROR = 10, + /// Incorrect image layout. + /// + LAYOUT_PROBLEM = 11, + /// Flash files with network objects are not allowed. + /// + FLASH_HAS_NETWORK_OBJECTS = 12, + /// Flash files with network methods are not allowed. + /// + FLASH_HAS_NETWORK_METHODS = 13, + /// Flash files with hard-coded click thru URLs are not allowed. + /// + FLASH_HAS_URL = 14, + /// Flash files with mouse tracking are not allowed. + /// + FLASH_HAS_MOUSE_TRACKING = 15, + /// Flash files that generate or use random numbers are not allowed. + /// + FLASH_HAS_RANDOM_NUM = 16, + /// Flash files with self targets are not allowed. + /// + FLASH_SELF_TARGETS = 17, + /// Flash file contains a bad geturl target. + /// + FLASH_BAD_GETURL_TARGET = 18, + /// Flash or ActionScript version in the submitted file is not supported. + /// + FLASH_VERSION_NOT_SUPPORTED = 19, + /// The uploaded file is too large. + /// + FILE_TOO_LARGE = 20, + /// A system error occurred, please try again. + /// + SYSTEM_ERROR_IRS = 27, + /// A system error occurred, please try again. + /// + SYSTEM_ERROR_SCS = 28, + /// The image density for a primary asset was not one of the expected image + /// densities. + /// + UNEXPECTED_PRIMARY_ASSET_DENSITY = 22, + /// Two or more assets have the same image density. + /// + DUPLICATE_ASSET_DENSITY = 23, + /// The creative does not contain a primary asset. (For high-density creatives, the + /// primary asset must be a standard image file with 1x density.) + /// + MISSING_DEFAULT_ASSET = 24, + /// preverified_mime_type is not in the client spec's allowlist. + /// + PREVERIFIED_MIMETYPE_NOT_ALLOWED = 26, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 25, + } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool targetImpressionGoalSpecified { - get { - return this.targetImpressionGoalFieldSpecified; - } - set { - this.targetImpressionGoalFieldSpecified = value; - } - } - /// Estimate for the in-target ratio given the line item's audience targeting. This - /// field is only applicable if #provider is Nielsen, LineItem#primaryGoal#unitType is - /// in-target impressions, and LineItem#CostType is - /// in-target CPM. This field determines the in-target ratio to use for pacing - /// Nielsen line items before Nielsen reporting data is available. Represented as a - /// milli percent, so 55.7% becomes 55700. + /// Errors associated with line items with GRP settings. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class GrpSettingsError : ApiError { + private GrpSettingsErrorReason reasonField; + + private bool reasonFieldSpecified; + + /// The error reason represented by an enum. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 5)] - public long inTargetRatioEstimateMilliPercent { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public GrpSettingsErrorReason reason { get { - return this.inTargetRatioEstimateMilliPercentField; + return this.reasonField; } set { - this.inTargetRatioEstimateMilliPercentField = value; - this.inTargetRatioEstimateMilliPercentSpecified = true; + this.reasonField = value; + this.reasonSpecified = true; } } - /// true, if a value is specified for , false otherwise. - /// + /// true, if a value is specified for , + /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool inTargetRatioEstimateMilliPercentSpecified { + public bool reasonSpecified { get { - return this.inTargetRatioEstimateMilliPercentFieldSpecified; + return this.reasonFieldSpecified; } set { - this.inTargetRatioEstimateMilliPercentFieldSpecified = value; + this.reasonFieldSpecified = value; } } + } - /// Specifies which pacing computation to apply in pacing to impressions from - /// connected devices. This field is required if - /// enableNielsenCoViewingSupport is true. + + /// Reason for GRP settings error. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "GrpSettingsError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum GrpSettingsErrorReason { + /// Age range for GRP audience is not valid. Please see the Ad Manager Help + /// Center for more information. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 6)] - public NielsenCtvPacingType nielsenCtvPacingType { + INVALID_AGE_RANGE = 0, + /// Age range for GRP audience is not allowed to include ages under 18 unless + /// designating all ages in target(2-65+). + /// + UNDER_18_MIN_AGE_REQUIRES_ALL_AGES = 26, + /// GRP settings are only supported for video line items. + /// + LINE_ITEM_ENVIRONMENT_TYPE_NOT_SUPPORTED = 1, + /// For deals with Nielsen DAR enabled, there must be an instream video environment. + /// + NIELSEN_DAR_REQUIRES_INSTREAM_VIDEO = 23, + /// GRP settings are not supported for the given line item type. + /// + LINE_ITEM_TYPE_NOT_SUPPORTED = 2, + /// GRP audience gender cannot be specified for the selected age range. + /// + CANNOT_SPECIFY_GENDER_FOR_GIVEN_AGE_RANGE = 3, + /// Minimum age for GRP audience is not valid. + /// + INVALID_MIN_AGE = 4, + /// Maximum age for GRP audience is not valid. + /// + INVALID_MAX_AGE = 5, + /// GRP settings cannot be disabled. + /// + CANNOT_DISABLE_GRP_AFTER_ENABLING = 6, + /// GRP provider cannot be updated. + /// + CANNOT_CHANGE_GRP_PROVIDERS = 7, + /// GRP settings cannot be updated once the line item has started serving. + /// + CANNOT_CHANGE_GRP_SETTINGS = 15, + /// Impression goal based on GRP audience is not supported. + /// + GRP_AUDIENCE_GOAL_NOT_SUPPORTED = 16, + /// Impression goal based on GRP audience expected. + /// + DEMOG_GOAL_EXPECTED = 19, + /// Impression goal based on GRP audience cannot be set once the line item has + /// started serving. + /// + CANNOT_SET_GRP_AUDIENCE_GOAL = 17, + /// Impression goal based on GRP audience cannot be removed once the line item has + /// started serving. + /// + CANNOT_REMOVE_GRP_AUDIENCE_GOAL = 18, + /// Unsupported geographic location targeted for line item with GRP audience goal. + /// + UNSUPPORTED_GEO_TARGETING = 12, + /// GRP Settings specified are unsupported. + /// + UNSUPPORTED_GRP_SETTING = 20, + /// In-target line items should be set through the grpSettings target impression + /// goal. + /// + SHOULD_SET_IN_TARGET_GOAL_THROUGH_GRP_SETTINGS = 21, + /// In-target line items should be set through the primaryReservationUnit's + /// in-target Impressions unit type. + /// + SHOULD_SET_IN_TARGET_GOAL_THROUGH_PRIMARY_GOAL = 22, + /// Attempt to register with Nielsen failed. + /// + NIELSEN_REGISTRATION_FAILED = 24, + /// Attempted to register a placement on a legacy Nielsen campaign. + /// + LEGACY_NIELSEN_CAMPAIGN_REGISTRATION_ATTEMPT = 25, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 13, + } + + + /// Targeting validation errors that can be used by different targeting types. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class GenericTargetingError : ApiError { + private GenericTargetingErrorReason reasonField; + + private bool reasonFieldSpecified; + + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public GenericTargetingErrorReason reason { get { - return this.nielsenCtvPacingTypeField; + return this.reasonField; } set { - this.nielsenCtvPacingTypeField = value; - this.nielsenCtvPacingTypeSpecified = true; + this.reasonField = value; + this.reasonSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , + /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool nielsenCtvPacingTypeSpecified { + public bool reasonSpecified { get { - return this.nielsenCtvPacingTypeFieldSpecified; + return this.reasonFieldSpecified; } set { - this.nielsenCtvPacingTypeFieldSpecified = value; + this.reasonFieldSpecified = value; } } + } - /// Specifies whether to use Google or Nielsen device breakdown in Nielsen Line Item - /// auto pacing. + + /// The reasons for the target error. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "GenericTargetingError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum GenericTargetingErrorReason { + /// Both including and excluding sibling criteria is disallowed. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 7)] - public PacingDeviceCategorizationType pacingDeviceCategorizationType { + CONFLICTING_INCLUSION_OR_EXCLUSION_OF_SIBLINGS = 0, + /// Including descendants of excluded criteria is disallowed. + /// + INCLUDING_DESCENDANTS_OF_EXCLUDED_CRITERIA = 1, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 2, + } + + + /// Lists all errors associated with frequency caps. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class FrequencyCapError : ApiError { + private FrequencyCapErrorReason reasonField; + + private bool reasonFieldSpecified; + + /// The error reason represented by an enum. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public FrequencyCapErrorReason reason { get { - return this.pacingDeviceCategorizationTypeField; + return this.reasonField; } set { - this.pacingDeviceCategorizationTypeField = value; - this.pacingDeviceCategorizationTypeSpecified = true; + this.reasonField = value; + this.reasonSpecified = true; } } - /// true, if a value is specified for , false otherwise. - /// + /// true, if a value is specified for , + /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool pacingDeviceCategorizationTypeSpecified { + public bool reasonSpecified { get { - return this.pacingDeviceCategorizationTypeFieldSpecified; + return this.reasonFieldSpecified; } set { - this.pacingDeviceCategorizationTypeFieldSpecified = value; + this.reasonFieldSpecified = value; } } + } - [System.Xml.Serialization.XmlElementAttribute(Order = 8)] - public bool applyTrueCoview { + + /// The reasons for the frequency cap error. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "FrequencyCapError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum FrequencyCapErrorReason { + IMPRESSION_LIMIT_EXCEEDED = 0, + IMPRESSIONS_TOO_LOW = 1, + RANGE_LIMIT_EXCEEDED = 2, + RANGE_TOO_LOW = 3, + DUPLICATE_TIME_RANGE = 4, + DUPLICATE_TIME_UNIT = 7, + TOO_MANY_FREQUENCY_CAPS = 5, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 6, + } + + + /// Errors that can result from a forecast request. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ForecastError : ApiError { + private ForecastErrorReason reasonField; + + private bool reasonFieldSpecified; + + /// The reason for the forecast error. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public ForecastErrorReason reason { get { - return this.applyTrueCoviewField; + return this.reasonField; } set { - this.applyTrueCoviewField = value; - this.applyTrueCoviewSpecified = true; + this.reasonField = value; + this.reasonSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , + /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool applyTrueCoviewSpecified { + public bool reasonSpecified { get { - return this.applyTrueCoviewFieldSpecified; + return this.reasonFieldSpecified; } set { - this.applyTrueCoviewFieldSpecified = value; + this.reasonFieldSpecified = value; } } } - /// Represents the target gender for a GRP demographic targeted line item. + /// Reason why a forecast could not be retrieved. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum GrpTargetGender { - /// The value returned if the actual value is not exposed by the requested API - /// version. + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ForecastError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum ForecastErrorReason { + /// The forecast could not be retrieved due to a server side connection problem. + /// Please try again soon. /// - UNKNOWN = 0, - /// Indicates that the GRP target gender is Male. + SERVER_NOT_AVAILABLE = 0, + /// There was an unexpected internal error. /// - MALE = 1, - /// Indicates that the GRP target gender is Female. + INTERNAL_ERROR = 1, + /// The forecast could not be retrieved because there is not enough forecasting data + /// available yet. It may take up to one week before enough data is available. /// - FEMALE = 2, - /// Indicates that the GRP target gender is both male and female. + NO_FORECAST_YET = 2, + /// There's not enough inventory for the requested reservation. /// - BOTH = 3, - } - - - /// Represents available GRP providers that a line item will have its target - /// demographic measured by. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum GrpProvider { + NOT_ENOUGH_INVENTORY = 3, + /// No error from forecast. + /// + SUCCESS = 4, + /// The requested reservation is of zero length. No forecast is returned. + /// + ZERO_LENGTH_RESERVATION = 5, + /// The number of requests made per second is too high and has exceeded the + /// allowable limit. The recommended approach to handle this error is to wait about + /// 5 seconds and then retry the request. Note that this does not guarantee the + /// request will succeed. If it fails again, try increasing the wait time. + ///

Another way to mitigate this error is to limit requests to 2 per second. Once + /// again this does not guarantee that every request will succeed, but may help + /// reduce the number of times you receive this error.

+ ///
+ EXCEEDED_QUOTA = 6, + /// The request falls outside the date range of the available data. + /// + OUTSIDE_AVAILABLE_DATE_RANGE = 8, /// The value returned if the actual value is not exposed by the requested API /// version. /// - UNKNOWN = 0, - NIELSEN = 1, - /// Renamed to GOOGLE beginning in V201608. - /// - GOOGLE = 3, + UNKNOWN = 7, } - /// Represents the pacing computation method for impressions on connected devices - /// for a Nielsen measured line item. This only applies when Nielsen measurement is - /// enabled for connected devices. + /// Lists all errors associated with day-part targeting for a line item. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum NielsenCtvPacingType { - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 0, - /// The value returned if Nielsen measurement is disabled for connected devices. - /// - NONE = 1, - /// Indicates that Nielsen impressions on connected devices are included, and we - /// apply coviewing in pacing. - /// - COVIEW = 2, - /// Indicates that Nielsen impressions on connected devices are included, and we - /// apply strict coviewing in pacing. + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class DayPartTargetingError : ApiError { + private DayPartTargetingErrorReason reasonField; + + private bool reasonFieldSpecified; + + /// The error reason represented by an enum. /// - STRICT_COVIEW = 3, + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public DayPartTargetingErrorReason reason { + get { + return this.reasonField; + } + set { + this.reasonField = value; + this.reasonSpecified = true; + } + } + + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool reasonSpecified { + get { + return this.reasonFieldSpecified; + } + set { + this.reasonFieldSpecified = value; + } + } } - /// Represents whose device categorization to use on Nielsen measured line item with - /// auto-pacing enabled. + /// The reasons for the target error. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum PacingDeviceCategorizationType { - /// The value returned if the actual value is not exposed by the requested API - /// version. + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "DayPartTargetingError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum DayPartTargetingErrorReason { + /// Hour of day must be between 0 and 24, inclusive. /// - UNKNOWN = 0, - /// Use Google's device categorization in auto-pacing. + INVALID_HOUR = 0, + /// Minute of hour must be one of 0, 15,30, 45. /// - GOOGLE = 1, - /// Use Nielsen device categorization in auto-pacing + INVALID_MINUTE = 1, + /// The DayPart#endTime cannot be after DayPart#startTime. /// - NIELSEN = 2, + END_TIME_NOT_AFTER_START_TIME = 2, + /// Cannot create day-parts that overlap. + /// + TIME_PERIODS_OVERLAP = 3, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 4, } - /// Contains third party auto-pixeling settings for cross-sell Partners. + /// Lists all date time range errors caused by associating a line item with a + /// targeting expression. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ThirdPartyMeasurementSettings { - private ThirdPartyViewabilityIntegrationPartner viewabilityPartnerField; - - private bool viewabilityPartnerFieldSpecified; - - private string viewabilityClientIdField; - - private string viewabilityReportingIdField; - - private ThirdPartyViewabilityIntegrationPartner publisherViewabilityPartnerField; - - private bool publisherViewabilityPartnerFieldSpecified; - - private string publisherViewabilityClientIdField; - - private string publisherViewabilityReportingIdField; - - private ThirdPartyBrandLiftIntegrationPartner brandLiftPartnerField; - - private bool brandLiftPartnerFieldSpecified; - - private string brandLiftClientIdField; - - private string brandLiftReportingIdField; - - private ThirdPartyReachIntegrationPartner reachPartnerField; - - private bool reachPartnerFieldSpecified; - - private string reachClientIdField; - - private string reachReportingIdField; - - private ThirdPartyReachIntegrationPartner publisherReachPartnerField; - - private bool publisherReachPartnerFieldSpecified; - - private string publisherReachClientIdField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class DateTimeRangeTargetingError : ApiError { + private DateTimeRangeTargetingErrorReason reasonField; - private string publisherReachReportingIdField; + private bool reasonFieldSpecified; - /// A field to determine the type of ThirdPartyViewabilityIntegrationPartner. This - /// field default is NONE. + /// The error reason represented by an enum. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public ThirdPartyViewabilityIntegrationPartner viewabilityPartner { + public DateTimeRangeTargetingErrorReason reason { get { - return this.viewabilityPartnerField; + return this.reasonField; } set { - this.viewabilityPartnerField = value; - this.viewabilityPartnerSpecified = true; + this.reasonField = value; + this.reasonSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , + /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool viewabilityPartnerSpecified { + public bool reasonSpecified { get { - return this.viewabilityPartnerFieldSpecified; + return this.reasonFieldSpecified; } set { - this.viewabilityPartnerFieldSpecified = value; + this.reasonFieldSpecified = value; } } + } - /// The third party partner id for YouTube viewability verification. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public string viewabilityClientId { - get { - return this.viewabilityClientIdField; - } - set { - this.viewabilityClientIdField = value; - } - } - /// The reporting id that maps viewability partner data with a campaign (or a group - /// of related campaigns) specific data. + /// ApiErrorReason enum for date time range targeting + /// error. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "DateTimeRangeTargetingError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum DateTimeRangeTargetingErrorReason { + /// No targeted ranges exists. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public string viewabilityReportingId { - get { - return this.viewabilityReportingIdField; - } - set { - this.viewabilityReportingIdField = value; - } - } - - /// A field to determine the type of publisher's viewability partner. This field - /// default is NONE. + EMPTY_RANGES = 0, + /// Type of lineitem is not sponsorship. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public ThirdPartyViewabilityIntegrationPartner publisherViewabilityPartner { + NOT_SPONSORSHIP_LINEITEM = 1, + /// Type of lineitem is not sponsorship or standard. + /// + NOT_SPONSORSHIP_OR_STANDARD_LINEITEM = 14, + /// Line item must have a reservation type of sponsorship, standard or preferred + /// deal to use date time range targeting. + /// + UNSUPPORTED_LINEITEM_RESERVATION_TYPE = 15, + /// Past ranges are changed. + /// + PAST_RANGES_CHANGED = 2, + /// Targeted date time ranges overlap. + /// + RANGES_OVERLAP = 3, + /// First date time does not match line item's start time. + /// + FIRST_DATE_TIME_DOES_NOT_MATCH_START_TIME = 12, + /// Last date time does not match line item's end time. + /// + LAST_DATE_TIME_DOES_NOT_MATCH_END_TIME = 13, + /// Targeted date time ranges fall out the active period of lineitem. + /// + RANGES_OUT_OF_LINEITEM_ACTIVE_PERIOD = 4, + /// Start time of range (except the earliest range) is not at start of day. Start of + /// day is 00:00:00. + /// + START_TIME_IS_NOT_START_OF_DAY = 5, + /// End time of range (except the latest range) is not at end of day. End of day is + /// 23:59:59. + /// + END_TIME_IS_NOT_END_OF_DAY = 6, + /// Start date time of earliest targeted ranges is in past. + /// + START_DATE_TIME_IS_IN_PAST = 7, + /// Cannot modify the start date time for date time targeting to the past. + /// + MODIFY_START_DATE_TIME_TO_PAST = 16, + /// The end time of range is before the start time. Could happen when start type is + /// IMMEDIATE or ONE_HOUR_LATER. + /// + RANGE_END_TIME_BEFORE_START_TIME = 8, + /// End date time of latest targeted ranges is too late. + /// + END_DATE_TIME_IS_TOO_LATE = 9, + LIMITED_RANGES_IN_UNLIMITED_LINEITEM = 10, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 11, + } + + + /// A list of all errors associated with the dates. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class DateError : ApiError { + private DateErrorReason reasonField; + + private bool reasonFieldSpecified; + + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public DateErrorReason reason { get { - return this.publisherViewabilityPartnerField; + return this.reasonField; } set { - this.publisherViewabilityPartnerField = value; - this.publisherViewabilityPartnerSpecified = true; + this.reasonField = value; + this.reasonSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , + /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool publisherViewabilityPartnerSpecified { + public bool reasonSpecified { get { - return this.publisherViewabilityPartnerFieldSpecified; + return this.reasonFieldSpecified; } set { - this.publisherViewabilityPartnerFieldSpecified = value; + this.reasonFieldSpecified = value; } } + } - /// The third party partner id for YouTube viewability verification for publisher. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public string publisherViewabilityClientId { - get { - return this.publisherViewabilityClientIdField; - } - set { - this.publisherViewabilityClientIdField = value; - } - } - /// The reporting id that maps viewability partner data with a campaign (or a group - /// of related campaigns) specific data for publisher. + /// Enumerates all possible date specific errors. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "DateError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum DateErrorReason { + DATE_IN_PAST = 0, + START_DATE_AFTER_END_DATE = 1, + END_DATE_BEFORE_START_DATE = 2, + NOT_CERTAIN_DAY_OF_MONTH = 3, + INVALID_DATES = 4, + /// The value returned if the actual value is not exposed by the requested API + /// version. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 5)] - public string publisherViewabilityReportingId { - get { - return this.publisherViewabilityReportingIdField; - } - set { - this.publisherViewabilityReportingIdField = value; - } - } + UNKNOWN = 5, + } - /// A field to determine the type of ThirdPartyBrandLiftIntegrationPartner. This - /// field default is NONE. + + /// Errors specific to editing custom field values + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class CustomFieldValueError : ApiError { + private CustomFieldValueErrorReason reasonField; + + private bool reasonFieldSpecified; + + /// The error reason represented by an enum. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 6)] - public ThirdPartyBrandLiftIntegrationPartner brandLiftPartner { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public CustomFieldValueErrorReason reason { get { - return this.brandLiftPartnerField; + return this.reasonField; } set { - this.brandLiftPartnerField = value; - this.brandLiftPartnerSpecified = true; + this.reasonField = value; + this.reasonSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , + /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool brandLiftPartnerSpecified { + public bool reasonSpecified { get { - return this.brandLiftPartnerFieldSpecified; + return this.reasonFieldSpecified; } set { - this.brandLiftPartnerFieldSpecified = value; + this.reasonFieldSpecified = value; } } + } - /// The third party partner id for YouTube brand lift verification. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 7)] - public string brandLiftClientId { - get { - return this.brandLiftClientIdField; - } - set { - this.brandLiftClientIdField = value; - } - } - /// The reporting id that maps brand lift partner data with a campaign (or a group - /// of related campaigns) specific data. + /// The reasons for the target error. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CustomFieldValueError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum CustomFieldValueErrorReason { + /// An attempt was made to modify or create a CustomFieldValue for a CustomField that does not exist. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 8)] - public string brandLiftReportingId { - get { - return this.brandLiftReportingIdField; - } - set { - this.brandLiftReportingIdField = value; - } - } - - /// A field to determine the type of advertiser's ThirdPartyReachIntegrationPartner. - /// This field default is UNKNOWN. + CUSTOM_FIELD_NOT_FOUND = 0, + /// An attempt was made to create a new value for a custom field that is inactive. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 9)] - public ThirdPartyReachIntegrationPartner reachPartner { + CUSTOM_FIELD_INACTIVE = 1, + /// An attempt was made to modify or create a CustomFieldValue corresponding to a CustomFieldOption that could not be found. + /// + CUSTOM_FIELD_OPTION_NOT_FOUND = 2, + /// An attempt was made to modify or create a CustomFieldValue with an association to an entity of + /// the wrong type for its field. + /// + INVALID_ENTITY_TYPE = 4, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 3, + } + + + /// Errors related to currency codes. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class CurrencyCodeError : ApiError { + private CurrencyCodeErrorReason reasonField; + + private bool reasonFieldSpecified; + + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public CurrencyCodeErrorReason reason { get { - return this.reachPartnerField; + return this.reasonField; } set { - this.reachPartnerField = value; - this.reachPartnerSpecified = true; + this.reasonField = value; + this.reasonSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , + /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool reachPartnerSpecified { + public bool reasonSpecified { get { - return this.reachPartnerFieldSpecified; + return this.reasonFieldSpecified; } set { - this.reachPartnerFieldSpecified = value; + this.reasonFieldSpecified = value; } } + } - /// The third party partner id for YouTube reach verification for advertiser. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 10)] - public string reachClientId { - get { - return this.reachClientIdField; - } - set { - this.reachClientIdField = value; - } - } - /// The reporting id that maps reach partner data with a campaign (or a group of - /// related campaigns) specific data for advertiser. + /// The reason behind the currency code error. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CurrencyCodeError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum CurrencyCodeErrorReason { + /// The currency code is invalid and does not follow ISO 4217. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 11)] - public string reachReportingId { - get { - return this.reachReportingIdField; - } - set { - this.reachReportingIdField = value; - } - } - - /// A field to determine the type of publisher's ThirdPartyReachIntegrationPartner. - /// This field default is UNKNOWN. + INVALID = 0, + /// The currency code is valid, but is not supported. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 12)] - public ThirdPartyReachIntegrationPartner publisherReachPartner { - get { - return this.publisherReachPartnerField; - } - set { - this.publisherReachPartnerField = value; - this.publisherReachPartnerSpecified = true; - } - } + UNSUPPORTED = 1, + /// The currency has been used for entity creation after its deprecation + /// + DEPRECATED_CURRENCY_USED = 2, + } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool publisherReachPartnerSpecified { - get { - return this.publisherReachPartnerFieldSpecified; - } - set { - this.publisherReachPartnerFieldSpecified = value; - } - } - /// The third party partner id for YouTube reach verification for publisher. + /// Lists all errors associated with cross selling. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class CrossSellError : ApiError { + private CrossSellErrorReason reasonField; + + private bool reasonFieldSpecified; + + /// The error reason represented by an enum. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 13)] - public string publisherReachClientId { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public CrossSellErrorReason reason { get { - return this.publisherReachClientIdField; + return this.reasonField; } set { - this.publisherReachClientIdField = value; + this.reasonField = value; + this.reasonSpecified = true; } } - /// The reporting id that maps reach partner data with a campaign (or a group of - /// related campaigns) specific data for publisher. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 14)] - public string publisherReachReportingId { + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool reasonSpecified { get { - return this.publisherReachReportingIdField; + return this.reasonFieldSpecified; } set { - this.publisherReachReportingIdField = value; + this.reasonFieldSpecified = value; } } } - /// Possible options for third-party viewabitility integration. + /// The reason of the error. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum ThirdPartyViewabilityIntegrationPartner { - /// Indicates there's no third-party viewability integration partner. + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CrossSellError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum CrossSellErrorReason { + /// A company for cross-sell partner must be of type Company.Type#PARTNER. /// - NONE = 0, - /// Indicates third-party viewability integration partner Oracle Moat. + COMPANY_IS_NOT_DISTRIBUTION_PARTNER = 2, + /// The network code of a cross-sell partner cannot be changed. /// - MOAT = 1, - /// Indicates third-party viewability integration partner Double Verify. + CHANGING_PARTNER_NETWORK_IS_NOT_SUPPORTED = 3, + /// A cross-sell partner must have a partner name. /// - DOUBLE_VERIFY = 2, - /// Indicates third-party viewability integration partner Integral Ad Science. + MISSING_DISTRIBUTOR_PARTNER_NAME = 4, + /// The cross-sell distributor publisher feature must be enabled. /// - INTEGRAL_AD_SCIENCE = 3, - /// Indicates third-party viewability integration partner Comscore. + DISTRIBUTOR_NETWORK_MISSING_PUBLISHER_FEATURE = 5, + /// The cross-sell publisher features must be enabled on the partner's network. /// - COMSCORE = 5, - /// Indicates third-party viewability integration partner Telemetry. + CONTENT_PROVIDER_NETWORK_MISSING_PUBLISHER_FEATURE = 6, + /// The cross-sell partner name conflicts with an ad unit name on the partner's + /// network. /// - TELEMETRY = 6, + INVALID_DISTRIBUTOR_PARTNER_NAME = 7, + /// The network code of a cross-sell partner is invalid. + /// + INVALID_CONTENT_PROVIDER_NETWORK = 8, + /// The content provider network must be different than the distributor network. + /// + CONTENT_PROVIDER_NETWORK_CANNOT_BE_ACTIVE_NETWORK = 9, + /// The same network code was already enabled for cross-sell in a different company. + /// + CONTENT_PROVIDER_NETWORK_ALREADY_ENABLED_FOR_CROSS_SELLING = 10, + /// A rule defined by the cross selling distributor has been violated by a line item + /// targeting a shared ad unit. Violating this rule is an error. + /// + DISTRIBUTOR_RULE_VIOLATION_ERROR = 11, + /// A rule defined by the cross selling distributor has been violated by a line item + /// targeting a shared ad unit. Violating this rule is a warning.

By setting LineItem#skipCrossSellingRuleWarningChecks, + /// the content partner can suppress the warning (and create or save the line + /// item).

This flag is available beginning in V201411.

+ ///
+ DISTRIBUTOR_RULE_VIOLATION_WARNING = 12, /// The value returned if the actual value is not exposed by the requested API /// version. /// - UNKNOWN = 4, + UNKNOWN = 13, } - /// Possible options for third-party brand lift integration. + /// Lists all errors associated with creatives. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum ThirdPartyBrandLiftIntegrationPartner { - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 0, - /// Indicates there's no third-party brand lift integration partner. - /// - NONE = 1, - /// Indicates third-party brand lift integration partner Kantar. - /// - KANTAR_MILLWARD_BROWN = 3, - /// Indicates third-party brand lift integration partner Dynata. - /// - DYNATA = 4, - /// Indicates third-party brand lift integration partner Intage. - /// - INTAGE = 5, - /// Indicates third-party brand lift integration partner Macromill. + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class CreativeError : ApiError { + private CreativeErrorReason reasonField; + + private bool reasonFieldSpecified; + + /// The error reason represented by an enum. /// - MACROMILL = 6, + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public CreativeErrorReason reason { + get { + return this.reasonField; + } + set { + this.reasonField = value; + this.reasonSpecified = true; + } + } + + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool reasonSpecified { + get { + return this.reasonFieldSpecified; + } + set { + this.reasonFieldSpecified = value; + } + } } - /// Possible options for third-party reach integration. + /// The reasons for the target error. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum ThirdPartyReachIntegrationPartner { - /// Indicates there's no third-party reach integration partner. + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CreativeError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum CreativeErrorReason { + /// FlashRedirectCreative#flashUrl and + /// FlashRedirectCreative#fallbackUrl + /// are the same. The fallback URL is used when the flash URL does not work and must + /// be different from it. /// - NONE = 0, - /// Indicates third-party reach integration partner Comscore. + FLASH_AND_FALLBACK_URL_ARE_SAME = 0, + /// HasDestinationUrlCreative#destinationUrl + /// must be empty when its type is DestinationUrlType#NONE. /// - COMSCORE = 1, - /// Indicates third-party reach integration partner Nielsen. + DESTINATION_URL_NOT_EMPTY = 14, + /// The provided DestinationUrlType is not + /// supported for the creative type it is being used on. /// - NIELSEN = 2, - /// Indicates third-party reach integration partner Kantar. + DESTINATION_URL_TYPE_NOT_SUPPORTED = 15, + /// Cannot create or update legacy DART For Publishers creative. /// - KANTAR_MILLWARD_BROWN = 4, - /// Indicates third-party reach integration partner Video Research. + CANNOT_CREATE_OR_UPDATE_LEGACY_DFP_CREATIVE = 3, + /// Cannot create or update legacy mobile creative. /// - VIDEO_RESEARCH = 5, - /// Indicates third-party reach integration partner Gemius. + CANNOT_CREATE_OR_UPDATE_LEGACY_DFP_MOBILE_CREATIVE = 4, + /// Company type should be one of Advertisers, House Advertisers and Ad Networks. /// - GEMIUS = 6, - /// Indicates third-party reach integration partner VideoAmp + INVALID_COMPANY_TYPE = 6, + /// Invalid size for AdSense dynamic allocation creative. Only valid AFC sizes are + /// allowed. /// - VIDEO_AMP = 7, - /// Indicates third-party reach integration partner iSpot.TV + INVALID_ADSENSE_CREATIVE_SIZE = 7, + /// Invalid size for Ad Exchange dynamic allocation creative. Only valid Ad Exchange + /// sizes are allowed. /// - ISPOT_TV = 8, - /// Indicates third-party reach integration partner Audience Project + INVALID_AD_EXCHANGE_CREATIVE_SIZE = 8, + /// Assets associated with the same creative must be unique. /// - AUDIENCE_PROJECT = 9, + DUPLICATE_ASSET_IN_CREATIVE = 9, + /// A creative asset cannot contain an asset ID and a byte array. + /// + CREATIVE_ASSET_CANNOT_HAVE_ID_AND_BYTE_ARRAY = 10, + /// Cannot create or update unsupported creative. + /// + CANNOT_CREATE_OR_UPDATE_UNSUPPORTED_CREATIVE = 11, + /// Cannot create programmatic creatives. + /// + CANNOT_CREATE_PROGRAMMATIC_CREATIVES = 12, + /// A creative must have valid size to use the third-party impression tracker. + /// + INVALID_SIZE_FOR_THIRD_PARTY_IMPRESSION_TRACKER = 16, + /// Ineligible creatives can not be deactivated. + /// + CANNOT_DEACTIVATE_CREATIVES_IN_CREATIVE_SETS = 17, + /// Ad Manager hosted video creatives must contain a video asset. + /// + HOSTED_VIDEO_CREATIVE_REQUIRES_VIDEO_ASSET = 18, /// The value returned if the actual value is not exposed by the requested API /// version. /// - UNKNOWN = 3, - } - - - /// The role (buyer or seller) that performed an action in the negotiation of a - /// Proposal. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum NegotiationRole { - BUYER = 0, - SELLER = 1, - UNKNOWN = 2, + UNKNOWN = 13, } - /// Represents the creative targeting criteria for a LineItem. + /// Lists all errors due to Company#creditStatus. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class CreativeTargeting { - private string nameField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class CompanyCreditStatusError : ApiError { + private CompanyCreditStatusErrorReason reasonField; - private Targeting targetingField; + private bool reasonFieldSpecified; - /// The name of this creative targeting. This attribute is required. + /// The error reason represented by an enum. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public string name { + public CompanyCreditStatusErrorReason reason { get { - return this.nameField; + return this.reasonField; } set { - this.nameField = value; + this.reasonField = value; + this.reasonSpecified = true; } } - /// The Targeting criteria of this creative targeting. This - /// attribute is required. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public Targeting targeting { + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool reasonSpecified { get { - return this.targetingField; + return this.reasonFieldSpecified; } set { - this.targetingField = value; + this.reasonFieldSpecified = value; } } } - /// Data transfer object for the exchange deal info of a line item. + /// The reasons for the target error. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CompanyCreditStatusError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum CompanyCreditStatusErrorReason { + /// The user's role does not have permission to change Company#creditStatus from the default value. The + /// default value is Company.CreditStatus#ACTIVE for the Basic + /// credit status setting and Company.CreditStatus#ON_HOLD for the + /// Advanced credit status setting. + /// + COMPANY_CREDIT_STATUS_CHANGE_NOT_ALLOWED = 0, + /// The network has not been enabled for editing credit status settings for + /// companies. + /// + CANNOT_USE_CREDIT_STATUS_SETTING = 1, + /// The network has not been enabled for the Advanced credit status settings for + /// companies. Company#creditStatus must be + /// either ACTIVE or INACTIVE. + /// + CANNOT_USE_ADVANCED_CREDIT_STATUS_SETTING = 2, + /// An order cannot be created or updated because the Order#advertiserId or the Order#agencyId it is associated with has Company#creditStatus that is not + /// ACTIVE or ON_HOLD. + /// + UNACCEPTABLE_COMPANY_CREDIT_STATUS_FOR_ORDER = 3, + /// A line item cannot be created for the order because the Order#advertiserId or {Order#agencyId} it is + /// associated with has Company#creditStatus that + /// is not or ON_HOLD. + /// + UNACCEPTABLE_COMPANY_CREDIT_STATUS_FOR_LINE_ITEM = 4, + /// The company cannot be blocked because there are more than 200 approved orders of + /// the company. Archive some, so that there are less than 200 of them. + /// + CANNOT_BLOCK_COMPANY_TOO_MANY_APPROVED_ORDERS = 5, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 6, + } + + + /// Click tracking is a special line item type with a number of unique errors as + /// described below. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class LineItemDealInfoDto { - private long externalDealIdField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ClickTrackingLineItemError : ApiError { + private ClickTrackingLineItemErrorReason reasonField; - private bool externalDealIdFieldSpecified; + private bool reasonFieldSpecified; - /// The external deal ID shared between seller and buyer. This field is only present - /// if the deal has been finalized. This attribute is read-only and is assigned by - /// Google. + /// The error reason represented by an enum. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public long externalDealId { + public ClickTrackingLineItemErrorReason reason { get { - return this.externalDealIdField; + return this.reasonField; } set { - this.externalDealIdField = value; - this.externalDealIdSpecified = true; + this.reasonField = value; + this.reasonSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , + /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool externalDealIdSpecified { + public bool reasonSpecified { get { - return this.externalDealIdFieldSpecified; + return this.reasonFieldSpecified; } set { - this.externalDealIdFieldSpecified = value; + this.reasonFieldSpecified = value; } } } - /// Stats contains trafficking statistics for LineItem and LineItemCreativeAssociation - /// objects + /// The reasons for the target error. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class Stats { - private long impressionsDeliveredField; - - private bool impressionsDeliveredFieldSpecified; - - private long clicksDeliveredField; - - private bool clicksDeliveredFieldSpecified; - - private long videoCompletionsDeliveredField; - - private bool videoCompletionsDeliveredFieldSpecified; - - private long videoStartsDeliveredField; + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ClickTrackingLineItemError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum ClickTrackingLineItemErrorReason { + /// The line item type cannot be changed once created. + /// + TYPE_IMMUTABLE = 0, + /// Click tracking line items can only be targeted at ad unit inventory, all other + /// types are invalid, as well as placements. + /// + INVALID_TARGETING_TYPE = 1, + /// Click tracking line items do not allow us to control creative delivery so are by + /// nature one or more as entered by the third party. + /// + INVALID_ROADBLOCKING_TYPE = 2, + /// Click tracking line items do not support the CreativeRotationType#OPTIMIZED + /// creative rotation type. + /// + INVALID_CREATIVEROTATION_TYPE = 3, + /// Click tracking line items do not allow us to control line item delivery so we + /// can not control the rate at which they are served. + /// + INVALID_DELIVERY_RATE_TYPE = 4, + /// Not all fields are supported by the click tracking line items. + /// + UNSUPPORTED_FIELD = 5, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 6, + } - private bool videoStartsDeliveredFieldSpecified; - private long viewableImpressionsDeliveredField; + /// Errors associated with audience extension enabled line items + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class AudienceExtensionError : ApiError { + private AudienceExtensionErrorReason reasonField; - private bool viewableImpressionsDeliveredFieldSpecified; + private bool reasonFieldSpecified; - /// The number of impressions delivered. + /// The error reason represented by an enum. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public long impressionsDelivered { + public AudienceExtensionErrorReason reason { get { - return this.impressionsDeliveredField; + return this.reasonField; } set { - this.impressionsDeliveredField = value; - this.impressionsDeliveredSpecified = true; + this.reasonField = value; + this.reasonSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , + /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool impressionsDeliveredSpecified { + public bool reasonSpecified { get { - return this.impressionsDeliveredFieldSpecified; + return this.reasonFieldSpecified; } set { - this.impressionsDeliveredFieldSpecified = value; + this.reasonFieldSpecified = value; } } + } - /// The number of clicks delivered. + + /// Specific audience extension error reasons. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AudienceExtensionError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum AudienceExtensionErrorReason { + /// Frequency caps are not supported by audience extension line items /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public long clicksDelivered { - get { - return this.clicksDeliveredField; - } - set { - this.clicksDeliveredField = value; - this.clicksDeliveredSpecified = true; - } - } + FREQUENCY_CAPS_NOT_SUPPORTED = 0, + /// Audience extension line items can only target geography + /// + INVALID_TARGETING = 1, + /// Audience extension line items can only target audience extension inventory units + /// + INVENTORY_UNIT_TARGETING_INVALID = 2, + /// Audience extension line items do not support CreativeRotationType#SEQUENTIAL. + /// + INVALID_CREATIVE_ROTATION = 3, + /// The given ID of the external entity is not valid + /// + INVALID_EXTERNAL_ENTITY_ID = 4, + /// Audience extension line items only support LineItemType#STANDARD. + /// + INVALID_LINE_ITEM_TYPE = 5, + /// Audience extension max bid is invalid when it is greater then the max budget. + /// + INVALID_MAX_BID = 6, + /// Bulk update for audience extension line items is not allowed. + /// + AUDIENCE_EXTENSION_BULK_UPDATE_NOT_ALLOWED = 7, + /// An unexpected error occurred. + /// + UNEXPECTED_AUDIENCE_EXTENSION_ERROR = 8, + /// The value entered for the maximum daily budget on an audience extension line + /// item exceeds the maximum allowed. + /// + MAX_DAILY_BUDGET_AMOUNT_EXCEEDED = 9, + /// Creating a campaign for a line item that already has an associated campaign is + /// not allowed. + /// + EXTERNAL_CAMPAIGN_ALREADY_EXISTS = 10, + /// Audience extension was specified on a line item but the feature was not enabled. + /// + AUDIENCE_EXTENSION_WITHOUT_FEATURE = 11, + /// Audience extension was specified on a line item but no audience extension + /// account has been linked. + /// + AUDIENCE_EXTENSION_WITHOUT_LINKED_ACCOUNT = 12, + /// Assocation creative size overrides are not allowed with audience extension. + /// + CANNOT_OVERRIDE_CREATIVE_SIZE_WITH_AUDIENCE_EXTENSION = 13, + /// Some association overrides are not allowed with audience extension. + /// + CANNOT_OVERRIDE_FIELD_WITH_AUDIENCE_EXTENSION = 14, + /// Only one creative placeholder is allowed for an audience extension line item. + /// + ONLY_ONE_CREATIVE_PLACEHOLDER_ALLOWED = 15, + /// Only one audience extension line item can be associated with a given order. + /// + MULTIPLE_AUDIENCE_EXTENSION_LINE_ITEMS_ON_ORDER = 16, + /// Audience extension line items must be copied separately from their associated + /// creatives. + /// + CANNOT_COPY_AUDIENCE_EXTENSION_LINE_ITEMS_AND_CREATIVES_TOGETHER = 17, + /// Audience extension is no longer supported and cannot be used. + /// + FEATURE_DEPRECATED = 18, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 19, + } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool clicksDeliveredSpecified { - get { - return this.clicksDeliveredFieldSpecified; - } - set { - this.clicksDeliveredFieldSpecified = value; - } - } - /// The number of video completions delivered. + /// Lists all errors associated with assets. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class AssetError : ApiError { + private AssetErrorReason reasonField; + + private bool reasonFieldSpecified; + + /// The error reason represented by an enum. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public long videoCompletionsDelivered { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public AssetErrorReason reason { get { - return this.videoCompletionsDeliveredField; + return this.reasonField; } set { - this.videoCompletionsDeliveredField = value; - this.videoCompletionsDeliveredSpecified = true; + this.reasonField = value; + this.reasonSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , + /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool videoCompletionsDeliveredSpecified { + public bool reasonSpecified { get { - return this.videoCompletionsDeliveredFieldSpecified; + return this.reasonFieldSpecified; } set { - this.videoCompletionsDeliveredFieldSpecified = value; + this.reasonFieldSpecified = value; } } + } - /// The number of video starts delivered. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public long videoStartsDelivered { - get { - return this.videoStartsDeliveredField; - } - set { - this.videoStartsDeliveredField = value; - this.videoStartsDeliveredSpecified = true; - } - } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool videoStartsDeliveredSpecified { + /// The reasons for the target error. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AssetError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum AssetErrorReason { + /// An asset name must be unique across advertiser. + /// + NON_UNIQUE_NAME = 0, + /// The file name is too long. + /// + FILE_NAME_TOO_LONG = 1, + /// The file size is too large. + /// + FILE_SIZE_TOO_LARGE = 2, + /// Required client code is not present in the code snippet. + /// + MISSING_REQUIRED_DYNAMIC_ALLOCATION_CLIENT = 3, + /// Required height is not present in the code snippet. + /// + MISSING_REQUIRED_DYNAMIC_ALLOCATION_HEIGHT = 4, + /// Required width is not present in the code snippet. + /// + MISSING_REQUIRED_DYNAMIC_ALLOCATION_WIDTH = 5, + /// Required format is not present in the mobile code snippet. + /// + MISSING_REQUIRED_DYNAMIC_ALLOCATION_FORMAT = 6, + /// The parameter value in the code snippet is invalid. + /// + INVALID_CODE_SNIPPET_PARAMETER_VALUE = 7, + /// Invalid asset Id. + /// + INVALID_ASSET_ID = 8, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 9, + } + + + /// Lists the generic errors associated with AdUnit#adUnitCode. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class AdUnitCodeError : ApiError { + private AdUnitCodeErrorReason reasonField; + + private bool reasonFieldSpecified; + + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public AdUnitCodeErrorReason reason { get { - return this.videoStartsDeliveredFieldSpecified; + return this.reasonField; } set { - this.videoStartsDeliveredFieldSpecified = value; + this.reasonField = value; + this.reasonSpecified = true; } } - /// The number of viewable impressions delivered. + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool reasonSpecified { + get { + return this.reasonFieldSpecified; + } + set { + this.reasonFieldSpecified = value; + } + } + } + + + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AdUnitCodeError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum AdUnitCodeErrorReason { + /// For AdUnit#adUnitCode, only alpha-numeric + /// characters, underscores, hyphens, periods, asterisks, double quotes, back + /// slashes, forward slashes, exclamations, left angle brackets, colons and + /// parentheses are allowed. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public long viewableImpressionsDelivered { + INVALID_CHARACTERS = 0, + /// For AdUnit#adUnitCode, only letters, numbers, + /// underscores, hyphens, periods, asterisks, double quotes, back slashes, forward + /// slashes, exclamations, left angle brackets, colons and parentheses are allowed. + /// + INVALID_CHARACTERS_WHEN_UTF_CHARACTERS_ARE_ALLOWED = 1, + /// For AdUnit#adUnitCode representing slot codes, + /// only alphanumeric characters, underscores, hyphens, periods and colons are + /// allowed. + /// + INVALID_CHARACTERS_FOR_LEGACY_AD_EXCHANGE_TAG = 5, + /// For AdUnit#adUnitCode, forward slashes are not + /// allowed as the first character. + /// + LEADING_FORWARD_SLASH = 2, + /// Specific codes matching ca-*pub-*-tag are reserved for "Web Property IUs" + /// generated as part of the SlotCode migration. + /// + RESERVED_CODE = 4, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 3, + } + + + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", ConfigurationName = "Google.Api.Ads.AdManager.v202411.ForecastServiceInterface")] + public interface ForecastServiceInterface + { + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(LineItemSummary))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v202411.AvailabilityForecast getAvailabilityForecast(Google.Api.Ads.AdManager.v202411.ProspectiveLineItem lineItem, Google.Api.Ads.AdManager.v202411.AvailabilityForecastOptions forecastOptions); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task getAvailabilityForecastAsync(Google.Api.Ads.AdManager.v202411.ProspectiveLineItem lineItem, Google.Api.Ads.AdManager.v202411.AvailabilityForecastOptions forecastOptions); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(LineItemSummary))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v202411.AvailabilityForecast getAvailabilityForecastById(long lineItemId, Google.Api.Ads.AdManager.v202411.AvailabilityForecastOptions forecastOptions); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task getAvailabilityForecastByIdAsync(long lineItemId, Google.Api.Ads.AdManager.v202411.AvailabilityForecastOptions forecastOptions); + + // CODEGEN: Parameter 'lineItems' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(LineItemSummary))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Wrappers.ForecastService.getDeliveryForecastResponse getDeliveryForecast(Wrappers.ForecastService.getDeliveryForecastRequest request); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + System.Threading.Tasks.Task getDeliveryForecastAsync(Wrappers.ForecastService.getDeliveryForecastRequest request); + + // CODEGEN: Parameter 'lineItemIds' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(LineItemSummary))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Wrappers.ForecastService.getDeliveryForecastByIdsResponse getDeliveryForecastByIds(Wrappers.ForecastService.getDeliveryForecastByIdsRequest request); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + System.Threading.Tasks.Task getDeliveryForecastByIdsAsync(Wrappers.ForecastService.getDeliveryForecastByIdsRequest request); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(LineItemSummary))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v202411.TrafficDataResponse getTrafficData(Google.Api.Ads.AdManager.v202411.TrafficDataRequest trafficDataRequest); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task getTrafficDataAsync(Google.Api.Ads.AdManager.v202411.TrafficDataRequest trafficDataRequest); + } + + + /// Forecasting options for line item delivery forecasts. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class DeliveryForecastOptions { + private long[] ignoredLineItemIdsField; + + /// Line item IDs to be ignored while performing the delivery simulation. + /// + [System.Xml.Serialization.XmlElementAttribute("ignoredLineItemIds", Order = 0)] + public long[] ignoredLineItemIds { get { - return this.viewableImpressionsDeliveredField; + return this.ignoredLineItemIdsField; } set { - this.viewableImpressionsDeliveredField = value; - this.viewableImpressionsDeliveredSpecified = true; + this.ignoredLineItemIdsField = value; } } + } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool viewableImpressionsDeliveredSpecified { + + /// The forecast of delivery for a list of ProspectiveLineItem objects to be reserved at the + /// same time. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class DeliveryForecast { + private LineItemDeliveryForecast[] lineItemDeliveryForecastsField; + + /// The delivery forecasts of the forecasted line items. + /// + [System.Xml.Serialization.XmlElementAttribute("lineItemDeliveryForecasts", Order = 0)] + public LineItemDeliveryForecast[] lineItemDeliveryForecasts { get { - return this.viewableImpressionsDeliveredFieldSpecified; + return this.lineItemDeliveryForecastsField; } set { - this.viewableImpressionsDeliveredFieldSpecified = value; + this.lineItemDeliveryForecastsField = value; } } } - /// A LineItemActivityAssociation associates a LineItem with an Activity so that the - /// conversions of the Activity can be counted against the LineItem. + /// The forecasted delivery of a ProspectiveLineItem. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class LineItemActivityAssociation { - private int activityIdField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class LineItemDeliveryForecast { + private long lineItemIdField; - private bool activityIdFieldSpecified; + private bool lineItemIdFieldSpecified; - private Money clickThroughConversionCostField; + private long orderIdField; - private Money viewThroughConversionCostField; + private bool orderIdFieldSpecified; - /// The ID of the Activity to which the LineItem should be associated. This attribute is required. + private UnitType unitTypeField; + + private bool unitTypeFieldSpecified; + + private long predictedDeliveryUnitsField; + + private bool predictedDeliveryUnitsFieldSpecified; + + private long deliveredUnitsField; + + private bool deliveredUnitsFieldSpecified; + + private long matchedUnitsField; + + private bool matchedUnitsFieldSpecified; + + /// Uniquely identifies this line item delivery forecast. This value is read-only + /// and will be either the ID of the LineItem object it + /// represents, or null if the forecast represents a prospective line + /// item. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public int activityId { + public long lineItemId { get { - return this.activityIdField; + return this.lineItemIdField; } set { - this.activityIdField = value; - this.activityIdSpecified = true; + this.lineItemIdField = value; + this.lineItemIdSpecified = true; } } - /// true, if a value is specified for true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool activityIdSpecified { + public bool lineItemIdSpecified { get { - return this.activityIdFieldSpecified; + return this.lineItemIdFieldSpecified; } set { - this.activityIdFieldSpecified = value; + this.lineItemIdFieldSpecified = value; } } - /// The amount of money to attribute per click through conversion. This attribute is - /// required for creating a . The currency code is readonly and should - /// match the LineItem. + /// The unique ID for the Order object that this line item + /// belongs to, or null if the forecast represents a prospective line + /// item without an LineItem#orderId set. /// [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public Money clickThroughConversionCost { + public long orderId { get { - return this.clickThroughConversionCostField; + return this.orderIdField; } set { - this.clickThroughConversionCostField = value; + this.orderIdField = value; + this.orderIdSpecified = true; } } - /// The amount of money to attribute per view through conversion. This attribute is - /// required for creating a . The currency code is readonly and should - /// match the LineItem. + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool orderIdSpecified { + get { + return this.orderIdFieldSpecified; + } + set { + this.orderIdFieldSpecified = value; + } + } + + /// The unit with which the goal or cap of the LineItem is + /// defined. Will be the same value as Goal#unitType for + /// both a set line item or a prospective one. /// [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public Money viewThroughConversionCost { + public UnitType unitType { get { - return this.viewThroughConversionCostField; + return this.unitTypeField; } set { - this.viewThroughConversionCostField = value; + this.unitTypeField = value; + this.unitTypeSpecified = true; } } - } - - - /// An interval of a CustomPacingCurve. A custom - /// pacing goal contains a start time and an amount. The goal will apply until - /// either the next custom pacing goal's or the line item's end time - /// if it is the last goal. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class CustomPacingGoal { - private DateTime startDateTimeField; - - private bool useLineItemStartDateTimeField; - - private bool useLineItemStartDateTimeFieldSpecified; - - private long amountField; - private bool amountFieldSpecified; + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool unitTypeSpecified { + get { + return this.unitTypeFieldSpecified; + } + set { + this.unitTypeFieldSpecified = value; + } + } - /// The start date and time of the goal. This field is required unless - /// useLineItemStartDateTime is true. + /// The number of units, defined by Goal#unitType, that + /// will be delivered by the line item. Delivery of existing line items that are of + /// same or lower priorities may be impacted. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public DateTime startDateTime { + [System.Xml.Serialization.XmlElementAttribute(Order = 3)] + public long predictedDeliveryUnits { get { - return this.startDateTimeField; + return this.predictedDeliveryUnitsField; } set { - this.startDateTimeField = value; + this.predictedDeliveryUnitsField = value; + this.predictedDeliveryUnitsSpecified = true; } } - /// Whether the LineItem#startDateTime should - /// be used for the start date and time of this goal. This field is not persisted - /// and if it is set to true, the startDateTime field will be populated - /// by the line item's start time. + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool predictedDeliveryUnitsSpecified { + get { + return this.predictedDeliveryUnitsFieldSpecified; + } + set { + this.predictedDeliveryUnitsFieldSpecified = value; + } + } + + /// The number of units, defined by Goal#unitType, that + /// have already been served if the reservation is already running. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public bool useLineItemStartDateTime { + [System.Xml.Serialization.XmlElementAttribute(Order = 4)] + public long deliveredUnits { get { - return this.useLineItemStartDateTimeField; + return this.deliveredUnitsField; } set { - this.useLineItemStartDateTimeField = value; - this.useLineItemStartDateTimeSpecified = true; + this.deliveredUnitsField = value; + this.deliveredUnitsSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="deliveredUnits" />, false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool useLineItemStartDateTimeSpecified { + public bool deliveredUnitsSpecified { get { - return this.useLineItemStartDateTimeFieldSpecified; + return this.deliveredUnitsFieldSpecified; } set { - this.useLineItemStartDateTimeFieldSpecified = value; + this.deliveredUnitsFieldSpecified = value; } } - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public long amount { + /// The number of units, defined by Goal#unitType, that + /// match the specified LineItem#targeting and delivery settings. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 5)] + public long matchedUnits { get { - return this.amountField; + return this.matchedUnitsField; } set { - this.amountField = value; - this.amountSpecified = true; + this.matchedUnitsField = value; + this.matchedUnitsSpecified = true; } } - /// true, if a value is specified for , - /// false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool amountSpecified { + public bool matchedUnitsSpecified { get { - return this.amountFieldSpecified; + return this.matchedUnitsFieldSpecified; } set { - this.amountFieldSpecified = value; + this.matchedUnitsFieldSpecified = value; } } } - /// A curve consisting of CustomPacingGoal objects - /// that is used to pace line item delivery. + /// Defines a segment of traffic for which traffic data should be returned. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class CustomPacingCurve { - private CustomPacingGoalUnit customPacingGoalUnitField; - - private bool customPacingGoalUnitFieldSpecified; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class TrafficDataRequest { + private Targeting targetingField; - private CustomPacingGoal[] customPacingGoalsField; + private DateRange requestedDateRangeField; - /// The unit of the CustomPacingGoalDto#amount values. + /// The TargetingDto that defines a segment of traffic. + /// This attribute is required. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public CustomPacingGoalUnit customPacingGoalUnit { - get { - return this.customPacingGoalUnitField; - } - set { - this.customPacingGoalUnitField = value; - this.customPacingGoalUnitSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool customPacingGoalUnitSpecified { + public Targeting targeting { get { - return this.customPacingGoalUnitFieldSpecified; + return this.targetingField; } set { - this.customPacingGoalUnitFieldSpecified = value; + this.targetingField = value; } } - /// The list of goals that make up the custom pacing curve. + /// The date range for which traffic data are requested. This range may cover + /// historical dates, future dates, or both.

The data returned are not guaranteed + /// to cover the entire requested date range. If sufficient data are not available + /// to cover the entire requested date range, a response may be returned with a + /// later start date, earlier end date, or both. This attribute is required.

///
- [System.Xml.Serialization.XmlElementAttribute("customPacingGoals", Order = 1)] - public CustomPacingGoal[] customPacingGoals { + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public DateRange requestedDateRange { get { - return this.customPacingGoalsField; + return this.requestedDateRangeField; } set { - this.customPacingGoalsField = value; + this.requestedDateRangeField = value; } } } - /// Options for the unit of the custom pacing goal amounts. + /// Represents a range of dates that has an upper and a lower bound.

An open + /// ended date range can be described by only setting either one of the bounds, the + /// upper bound or the lower bound.

///
[System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum CustomPacingGoalUnit { - /// The custom pacing goal amounts represent absolute numbers corresponding to the - /// line item's Goal#unitType. - /// - ABSOLUTE = 0, - /// The custom pacing goal amounts represent a millipercent. For example, 15000 - /// millipercent equals 15%. + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class DateRange { + private Date startDateField; + + private Date endDateField; + + /// The start date of this range. This field is optional and if it is not set then + /// there is no lower bound on the date range. If this field is not set then + /// endDate must be specified. /// - MILLI_PERCENT = 1, - /// The value returned if the actual value is not exposed by the requested API - /// version. + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public Date startDate { + get { + return this.startDateField; + } + set { + this.startDateField = value; + } + } + + /// The end date of this range. This field is optional and if it is not set then + /// there is no upper bound on the date range. If this field is not set then + /// startDate must be specified. /// - UNKNOWN = 2, + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public Date endDate { + get { + return this.endDateField; + } + set { + this.endDateField = value; + } + } } - /// The LineItemSummary represents the base class from which a - /// LineItem is derived. + /// Contains forecasted and historical traffic volume data describing a segment of + /// traffic. /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(LineItem))] [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class LineItemSummary { - private long orderIdField; - - private bool orderIdFieldSpecified; - - private long idField; - - private bool idFieldSpecified; - - private string nameField; - - private string externalIdField; - - private string orderNameField; - - private DateTime startDateTimeField; - - private StartDateTimeType startDateTimeTypeField; - - private bool startDateTimeTypeFieldSpecified; - - private DateTime endDateTimeField; - - private int autoExtensionDaysField; - - private bool autoExtensionDaysFieldSpecified; - - private bool unlimitedEndDateTimeField; - - private bool unlimitedEndDateTimeFieldSpecified; - - private CreativeRotationType creativeRotationTypeField; - - private bool creativeRotationTypeFieldSpecified; - - private DeliveryRateType deliveryRateTypeField; - - private bool deliveryRateTypeFieldSpecified; - - private DeliveryForecastSource deliveryForecastSourceField; - - private bool deliveryForecastSourceFieldSpecified; - - private CustomPacingCurve customPacingCurveField; - - private RoadblockingType roadblockingTypeField; - - private bool roadblockingTypeFieldSpecified; - - private SkippableAdType skippableAdTypeField; - - private bool skippableAdTypeFieldSpecified; - - private FrequencyCap[] frequencyCapsField; - - private LineItemType lineItemTypeField; - - private bool lineItemTypeFieldSpecified; - - private int priorityField; - - private bool priorityFieldSpecified; - - private Money costPerUnitField; - - private Money valueCostPerUnitField; - - private CostType costTypeField; - - private bool costTypeFieldSpecified; - - private LineItemDiscountType discountTypeField; - - private bool discountTypeFieldSpecified; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class TrafficDataResponse { + private TimeSeries historicalTimeSeriesField; - private double discountField; + private TimeSeries forecastedTimeSeriesField; - private bool discountFieldSpecified; + private TimeSeries forecastedAssignedTimeSeriesField; - private long contractedUnitsBoughtField; + private DateRange overallDateRangeField; - private bool contractedUnitsBoughtFieldSpecified; + /// Time series of historical traffic ad opportunity counts.

This may be null if + /// the requested date range did not contain any historical dates, or if no + /// historical data are available for the requested traffic segment. This attribute + /// is read-only.

+ ///
+ [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public TimeSeries historicalTimeSeries { + get { + return this.historicalTimeSeriesField; + } + set { + this.historicalTimeSeriesField = value; + } + } - private CreativePlaceholder[] creativePlaceholdersField; + /// Time series of forecasted traffic ad opportunity counts.

This may be null if + /// the requested date range did not contain any future dates, or if no forecasted + /// data are available for the requested traffic segment. This attribute is + /// read-only.

+ ///
+ [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public TimeSeries forecastedTimeSeries { + get { + return this.forecastedTimeSeriesField; + } + set { + this.forecastedTimeSeriesField = value; + } + } - private LineItemActivityAssociation[] activityAssociationsField; + /// Time series of future traffic volumes forecasted to be sold.

This may be null + /// if the requested date range did not contain any future dates, or if no + /// sell-through data are available for the requested traffic segment. This + /// attribute is read-only.

+ ///
+ [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public TimeSeries forecastedAssignedTimeSeries { + get { + return this.forecastedAssignedTimeSeriesField; + } + set { + this.forecastedAssignedTimeSeriesField = value; + } + } - private EnvironmentType environmentTypeField; + /// The overall date range spanned by the union of all time series in the response. + ///

This is a summary field for convenience. The value will be set such that the + /// start date is equal to the earliest start date of all time series included, and + /// the end date is equal to the latest end date of all time series included.

+ ///

If all time series fields are null, this field will also be null. This + /// attribute is read-only.

+ ///
+ [System.Xml.Serialization.XmlElementAttribute(Order = 3)] + public DateRange overallDateRange { + get { + return this.overallDateRangeField; + } + set { + this.overallDateRangeField = value; + } + } + } - private bool environmentTypeFieldSpecified; - private AllowedFormats[] allowedFormatsField; + /// Represents a chronological sequence of daily values. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class TimeSeries { + private DateRange timeSeriesDateRangeField; - private CompanionDeliveryOption companionDeliveryOptionField; + private long[] valuesField; - private bool companionDeliveryOptionFieldSpecified; + /// The date range of the time series. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public DateRange timeSeriesDateRange { + get { + return this.timeSeriesDateRangeField; + } + set { + this.timeSeriesDateRangeField = value; + } + } - private bool allowOverbookField; + /// The daily values constituting the time series.

The number of time series + /// values must equal the number of days spanned by the time series date range, + /// inclusive. E.g.: of 2001-08-15 to 2001-08-17 should contain one + /// value for the 15th, one value for the 16th, and one value for the 17th.

+ ///
+ [System.Xml.Serialization.XmlElementAttribute("values", Order = 1)] + public long[] values { + get { + return this.valuesField; + } + set { + this.valuesField = value; + } + } + } - private bool allowOverbookFieldSpecified; - private bool skipInventoryCheckField; + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + public interface ForecastServiceInterfaceChannel : Google.Api.Ads.AdManager.v202411.ForecastServiceInterface, System.ServiceModel.IClientChannel + { + } - private bool skipInventoryCheckFieldSpecified; - private bool skipCrossSellingRuleWarningChecksField; + /// Provides methods for estimating traffic (clicks/impressions) for line items. + /// Forecasts can be provided for LineItem objects that exist + /// in the system or which have not had an ID set yet.

Test network + /// behavior

Test networks are unable to provide forecasts that would be + /// comparable to the production environment because forecasts require traffic + /// history. For test networks, a consistent behavior can be expected for forecast + /// requests, according to the following rules:

+ /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + ///
Inputs
(LineItem Fields)
Outputs
(Forecast Fields)
lineItemType unitsBought availableUnits forecastUnits (matchedUnits) deliveredUnits Exception
Sponsorship 13 #x2013;#x2013;#x2013;#x2013; #x2013;#x2013; NO_FORECAST_YET
Sponsorship 20 #x2013;#x2013; #x2013;#x2013;#x2013;#x2013; SERVER_NOT_AVAILABLE
Sponsorship 50 1,200,0006,000,000 600,000 #x2013;#x2013;
Sponsorship != 20 and
!= 50
1,200,0001,200,000 600,000 #x2013;#x2013;
Not + /// Sponsorship <= 500,000 3 * unitsBought / 2unitsBought * 6 600,000 #x2013;#x2013;
Not Sponsorship > 500,000 and <= 1,000,000unitsBought / 2 unitsBought * 6 600,000#x2013;#x2013;
Not Sponsorship > 1,000,000 + /// and <= 1,500,000 unitsBought / 2 3 * unitsBought / 2600,000 #x2013;#x2013;
Not Sponsorship> 1,500,000 unitsBought / 4 3 * unitsBought / 2600,000 #x2013;#x2013;
+ ///
+ [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + public partial class ForecastService : AdManagerSoapClient, IForecastService { + /// Creates a new instance of the class. + /// + public ForecastService() { + } - private bool skipCrossSellingRuleWarningChecksFieldSpecified; + /// Creates a new instance of the class. + /// + public ForecastService(string endpointConfigurationName) + : base(endpointConfigurationName) { + } - private bool reserveAtCreationField; + /// Creates a new instance of the class. + /// + public ForecastService(string endpointConfigurationName, string remoteAddress) + : base(endpointConfigurationName, remoteAddress) { + } - private bool reserveAtCreationFieldSpecified; + /// Creates a new instance of the class. + /// + public ForecastService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) + : base(endpointConfigurationName, remoteAddress) { + } - private Stats statsField; + /// Creates a new instance of the class. + /// + public ForecastService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) + : base(binding, remoteAddress) { + } - private DeliveryIndicator deliveryIndicatorField; + /// Gets the availability forecast for a ProspectiveLineItem. An availability forecast + /// reports the maximum number of available units that the line item can book, and + /// the total number of units matching the line item's targeting. + /// + public virtual Google.Api.Ads.AdManager.v202411.AvailabilityForecast getAvailabilityForecast(Google.Api.Ads.AdManager.v202411.ProspectiveLineItem lineItem, Google.Api.Ads.AdManager.v202411.AvailabilityForecastOptions forecastOptions) { + return base.Channel.getAvailabilityForecast(lineItem, forecastOptions); + } - private long[] deliveryDataField; + public virtual System.Threading.Tasks.Task getAvailabilityForecastAsync(Google.Api.Ads.AdManager.v202411.ProspectiveLineItem lineItem, Google.Api.Ads.AdManager.v202411.AvailabilityForecastOptions forecastOptions) { + return base.Channel.getAvailabilityForecastAsync(lineItem, forecastOptions); + } - private Money budgetField; + /// Gets an AvailabilityForecast for an existing + /// LineItem object. An availability forecast reports the + /// maximum number of available units that the line item can be booked with, and + /// also the total number of units matching the line item's targeting.

Only line + /// items having type LineItemType#SPONSORSHIP or LineItemType#STANDARD are valid. Other types will result in ReservationDetailsError.Reason#LINE_ITEM_TYPE_NOT_ALLOWED.

+ ///
+ public virtual Google.Api.Ads.AdManager.v202411.AvailabilityForecast getAvailabilityForecastById(long lineItemId, Google.Api.Ads.AdManager.v202411.AvailabilityForecastOptions forecastOptions) { + return base.Channel.getAvailabilityForecastById(lineItemId, forecastOptions); + } - private ComputedStatus statusField; + public virtual System.Threading.Tasks.Task getAvailabilityForecastByIdAsync(long lineItemId, Google.Api.Ads.AdManager.v202411.AvailabilityForecastOptions forecastOptions) { + return base.Channel.getAvailabilityForecastByIdAsync(lineItemId, forecastOptions); + } - private bool statusFieldSpecified; + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + Wrappers.ForecastService.getDeliveryForecastResponse Google.Api.Ads.AdManager.v202411.ForecastServiceInterface.getDeliveryForecast(Wrappers.ForecastService.getDeliveryForecastRequest request) { + return base.Channel.getDeliveryForecast(request); + } - private LineItemSummaryReservationStatus reservationStatusField; + /// Gets the delivery forecast for a list of ProspectiveLineItem objects in a single delivery + /// simulation with line items potentially contending with each other. A delivery + /// forecast reports the number of units that will be delivered to each line item + /// given the line item goals and contentions from other line items. + /// + public virtual Google.Api.Ads.AdManager.v202411.DeliveryForecast getDeliveryForecast(Google.Api.Ads.AdManager.v202411.ProspectiveLineItem[] lineItems, Google.Api.Ads.AdManager.v202411.DeliveryForecastOptions forecastOptions) { + Wrappers.ForecastService.getDeliveryForecastRequest inValue = new Wrappers.ForecastService.getDeliveryForecastRequest(); + inValue.lineItems = lineItems; + inValue.forecastOptions = forecastOptions; + Wrappers.ForecastService.getDeliveryForecastResponse retVal = ((Google.Api.Ads.AdManager.v202411.ForecastServiceInterface)(this)).getDeliveryForecast(inValue); + return retVal.rval; + } - private bool reservationStatusFieldSpecified; + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202411.ForecastServiceInterface.getDeliveryForecastAsync(Wrappers.ForecastService.getDeliveryForecastRequest request) { + return base.Channel.getDeliveryForecastAsync(request); + } - private bool isArchivedField; + public virtual System.Threading.Tasks.Task getDeliveryForecastAsync(Google.Api.Ads.AdManager.v202411.ProspectiveLineItem[] lineItems, Google.Api.Ads.AdManager.v202411.DeliveryForecastOptions forecastOptions) { + Wrappers.ForecastService.getDeliveryForecastRequest inValue = new Wrappers.ForecastService.getDeliveryForecastRequest(); + inValue.lineItems = lineItems; + inValue.forecastOptions = forecastOptions; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202411.ForecastServiceInterface)(this)).getDeliveryForecastAsync(inValue)).Result.rval); + } - private bool isArchivedFieldSpecified; + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + Wrappers.ForecastService.getDeliveryForecastByIdsResponse Google.Api.Ads.AdManager.v202411.ForecastServiceInterface.getDeliveryForecastByIds(Wrappers.ForecastService.getDeliveryForecastByIdsRequest request) { + return base.Channel.getDeliveryForecastByIds(request); + } - private string webPropertyCodeField; + /// Gets the delivery forecast for a list of existing LineItem objects in a single delivery simulation. A delivery + /// forecast reports the number of units that will be delivered to each line item + /// given the line item goals and contentions from other line items. + /// + public virtual Google.Api.Ads.AdManager.v202411.DeliveryForecast getDeliveryForecastByIds(long[] lineItemIds, Google.Api.Ads.AdManager.v202411.DeliveryForecastOptions forecastOptions) { + Wrappers.ForecastService.getDeliveryForecastByIdsRequest inValue = new Wrappers.ForecastService.getDeliveryForecastByIdsRequest(); + inValue.lineItemIds = lineItemIds; + inValue.forecastOptions = forecastOptions; + Wrappers.ForecastService.getDeliveryForecastByIdsResponse retVal = ((Google.Api.Ads.AdManager.v202411.ForecastServiceInterface)(this)).getDeliveryForecastByIds(inValue); + return retVal.rval; + } - private AppliedLabel[] appliedLabelsField; + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202411.ForecastServiceInterface.getDeliveryForecastByIdsAsync(Wrappers.ForecastService.getDeliveryForecastByIdsRequest request) { + return base.Channel.getDeliveryForecastByIdsAsync(request); + } - private AppliedLabel[] effectiveAppliedLabelsField; + public virtual System.Threading.Tasks.Task getDeliveryForecastByIdsAsync(long[] lineItemIds, Google.Api.Ads.AdManager.v202411.DeliveryForecastOptions forecastOptions) { + Wrappers.ForecastService.getDeliveryForecastByIdsRequest inValue = new Wrappers.ForecastService.getDeliveryForecastByIdsRequest(); + inValue.lineItemIds = lineItemIds; + inValue.forecastOptions = forecastOptions; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202411.ForecastServiceInterface)(this)).getDeliveryForecastByIdsAsync(inValue)).Result.rval); + } - private bool disableSameAdvertiserCompetitiveExclusionField; + /// Returns forecasted and historical traffic data for the segment of traffic + /// specified by the provided request.

Calling this endpoint programmatically is + /// only available for Ad Manager 360 networks.

+ ///
+ public virtual Google.Api.Ads.AdManager.v202411.TrafficDataResponse getTrafficData(Google.Api.Ads.AdManager.v202411.TrafficDataRequest trafficDataRequest) { + return base.Channel.getTrafficData(trafficDataRequest); + } - private bool disableSameAdvertiserCompetitiveExclusionFieldSpecified; + public virtual System.Threading.Tasks.Task getTrafficDataAsync(Google.Api.Ads.AdManager.v202411.TrafficDataRequest trafficDataRequest) { + return base.Channel.getTrafficDataAsync(trafficDataRequest); + } + } + namespace Wrappers.InventoryService + { + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "createAdUnits", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class createAdUnitsRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("adUnits")] + public Google.Api.Ads.AdManager.v202411.AdUnit[] adUnits; - private string lastModifiedByAppField; + /// Creates a new instance of the + /// class. + public createAdUnitsRequest() { + } - private string notesField; + /// Creates a new instance of the + /// class. + public createAdUnitsRequest(Google.Api.Ads.AdManager.v202411.AdUnit[] adUnits) { + this.adUnits = adUnits; + } + } - private CompetitiveConstraintScope competitiveConstraintScopeField; - private bool competitiveConstraintScopeFieldSpecified; + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "createAdUnitsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class createAdUnitsResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("rval")] + public Google.Api.Ads.AdManager.v202411.AdUnit[] rval; - private DateTime lastModifiedDateTimeField; + /// Creates a new instance of the + /// class. + public createAdUnitsResponse() { + } - private DateTime creationDateTimeField; + /// Creates a new instance of the + /// class. + public createAdUnitsResponse(Google.Api.Ads.AdManager.v202411.AdUnit[] rval) { + this.rval = rval; + } + } - private BaseCustomFieldValue[] customFieldValuesField; - private bool isMissingCreativesField; + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "getAdUnitSizesByStatement", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class getAdUnitSizesByStatementRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + public Google.Api.Ads.AdManager.v202411.Statement filterStatement; - private bool isMissingCreativesFieldSpecified; + /// Creates a new instance of the class. + public getAdUnitSizesByStatementRequest() { + } - private ProgrammaticCreativeSource programmaticCreativeSourceField; + /// Creates a new instance of the class. + public getAdUnitSizesByStatementRequest(Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + this.filterStatement = filterStatement; + } + } - private bool programmaticCreativeSourceFieldSpecified; - private ThirdPartyMeasurementSettings thirdPartyMeasurementSettingsField; + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "getAdUnitSizesByStatementResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class getAdUnitSizesByStatementResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("rval")] + public Google.Api.Ads.AdManager.v202411.AdUnitSize[] rval; - private bool youtubeKidsRestrictedField; + /// Creates a new instance of the class. + public getAdUnitSizesByStatementResponse() { + } - private bool youtubeKidsRestrictedFieldSpecified; + /// Creates a new instance of the class. + public getAdUnitSizesByStatementResponse(Google.Api.Ads.AdManager.v202411.AdUnitSize[] rval) { + this.rval = rval; + } + } - private long videoMaxDurationField; - private bool videoMaxDurationFieldSpecified; + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "updateAdUnits", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class updateAdUnitsRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("adUnits")] + public Google.Api.Ads.AdManager.v202411.AdUnit[] adUnits; - private Goal primaryGoalField; + /// Creates a new instance of the + /// class. + public updateAdUnitsRequest() { + } - private Goal[] secondaryGoalsField; + /// Creates a new instance of the + /// class. + public updateAdUnitsRequest(Google.Api.Ads.AdManager.v202411.AdUnit[] adUnits) { + this.adUnits = adUnits; + } + } - private GrpSettings grpSettingsField; - private LineItemDealInfoDto dealInfoField; + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "updateAdUnitsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class updateAdUnitsResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("rval")] + public Google.Api.Ads.AdManager.v202411.AdUnit[] rval; - private long[] viewabilityProviderCompanyIdsField; + /// Creates a new instance of the + /// class. + public updateAdUnitsResponse() { + } - private ChildContentEligibility childContentEligibilityField; + /// Creates a new instance of the + /// class. + public updateAdUnitsResponse(Google.Api.Ads.AdManager.v202411.AdUnit[] rval) { + this.rval = rval; + } + } + } + /// A LabelFrequencyCap assigns a frequency cap to a label. The + /// frequency cap will limit the cumulative number of impressions of any ad units + /// with this label that may be shown to a particular user over a time unit. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class LabelFrequencyCap { + private FrequencyCap frequencyCapField; - private bool childContentEligibilityFieldSpecified; + private long labelIdField; - private string customVastExtensionField; + private bool labelIdFieldSpecified; - /// The ID of the Order to which the belongs. This - /// attribute is required. + /// The frequency cap to be applied with this label. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public long orderId { - get { - return this.orderIdField; - } - set { - this.orderIdField = value; - this.orderIdSpecified = true; - } - } - - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool orderIdSpecified { + public FrequencyCap frequencyCap { get { - return this.orderIdFieldSpecified; + return this.frequencyCapField; } set { - this.orderIdFieldSpecified = value; + this.frequencyCapField = value; } } - /// Uniquely identifies the LineItem. This attribute is read-only and - /// is assigned by Google when a line item is created. + /// ID of the label being capped on the AdUnit. /// [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public long id { + public long labelId { get { - return this.idField; + return this.labelIdField; } set { - this.idField = value; - this.idSpecified = true; + this.labelIdField = value; + this.labelIdSpecified = true; } } - /// true, if a value is specified for , + /// true, if a value is specified for , /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool idSpecified { + public bool labelIdSpecified { get { - return this.idFieldSpecified; + return this.labelIdFieldSpecified; } set { - this.idFieldSpecified = value; + this.labelIdFieldSpecified = value; } } + } - /// The name of the line item. This attribute is required and has a maximum length - /// of 255 characters. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public string name { - get { - return this.nameField; - } + + /// Contains the AdSense configuration for an AdUnit. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class AdSenseSettings { + private bool adSenseEnabledField; + + private bool adSenseEnabledFieldSpecified; + + private string borderColorField; + + private string titleColorField; + + private string backgroundColorField; + + private string textColorField; + + private string urlColorField; + + private AdSenseSettingsAdType adTypeField; + + private bool adTypeFieldSpecified; + + private AdSenseSettingsBorderStyle borderStyleField; + + private bool borderStyleFieldSpecified; + + private AdSenseSettingsFontFamily fontFamilyField; + + private bool fontFamilyFieldSpecified; + + private AdSenseSettingsFontSize fontSizeField; + + private bool fontSizeFieldSpecified; + + /// Specifies whether or not the AdUnit is enabled for serving + /// ads from the AdSense content network. This attribute is optional and defaults to + /// the ad unit's parent or ancestor's setting if one has been set. If no ancestor + /// of the ad unit has set , the attribute is defaulted to + /// true. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public bool adSenseEnabled { + get { + return this.adSenseEnabledField; + } set { - this.nameField = value; + this.adSenseEnabledField = value; + this.adSenseEnabledSpecified = true; } } - /// An identifier for the LineItem that is meaningful to the publisher. - /// This attribute is optional and has a maximum length of 255 characters. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public string externalId { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool adSenseEnabledSpecified { get { - return this.externalIdField; + return this.adSenseEnabledFieldSpecified; } set { - this.externalIdField = value; + this.adSenseEnabledFieldSpecified = value; } } - /// The name of the Order. This value is read-only. + /// Specifies the Hexadecimal border color, from 000000 to + /// FFFFFF. This attribute is optional and defaults to the ad unit's + /// parent or ancestor's setting if one has been set. If no ancestor of the ad unit + /// has set borderColor, the attribute is defaulted to + /// FFFFFF. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public string orderName { + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public string borderColor { get { - return this.orderNameField; + return this.borderColorField; } set { - this.orderNameField = value; + this.borderColorField = value; } } - /// The date and time on which the LineItem is enabled to begin - /// serving. This attribute is required and must be in the future. + /// Specifies the Hexadecimal title color of an ad, from 000000 to + /// FFFFFF. This attribute is optional and defaults to the ad unit's + /// parent or ancestor's setting if one has been set. If no ancestor of the ad unit + /// has set titleColor, the attribute is defaulted to + /// 0000FF. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 5)] - public DateTime startDateTime { + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public string titleColor { get { - return this.startDateTimeField; + return this.titleColorField; } set { - this.startDateTimeField = value; + this.titleColorField = value; } } - /// Specifies whether to start serving to the LineItem right away, in - /// an hour, etc. This attribute is optional and defaults to StartDateTimeType#USE_START_DATE_TIME. + /// Specifies the Hexadecimal background color of an ad, from to + /// FFFFFF. This attribute is optional and defaults to the ad unit's + /// parent or ancestor's setting if one has been set. If no ancestor of the ad unit + /// has set backgroundColor, the attribute is defaulted to + /// FFFFFF. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 6)] - public StartDateTimeType startDateTimeType { + [System.Xml.Serialization.XmlElementAttribute(Order = 3)] + public string backgroundColor { get { - return this.startDateTimeTypeField; + return this.backgroundColorField; } set { - this.startDateTimeTypeField = value; - this.startDateTimeTypeSpecified = true; + this.backgroundColorField = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool startDateTimeTypeSpecified { + /// Specifies the Hexadecimal color of the text of an ad, from to + /// FFFFFF. This attribute is optional and defaults to the ad unit's + /// parent or ancestor's setting if one has been set. If no ancestor of the ad unit + /// has set textColor, the attribute is defaulted to + /// 000000. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 4)] + public string textColor { get { - return this.startDateTimeTypeFieldSpecified; + return this.textColorField; } set { - this.startDateTimeTypeFieldSpecified = value; + this.textColorField = value; } } - /// The date and time on which the LineItem will stop serving. This - /// attribute is required unless LineItem#unlimitedEndDateTime is set to - /// true. If specified, it must be after the LineItem#startDateTime. This end date and time - /// does not include auto extension days. + /// Specifies the Hexadecimal color of the URL of an ad, from to + /// FFFFFF. This attribute is optional and defaults to the ad unit's + /// parent or ancestor's setting if one has been set. If no ancestor of the ad unit + /// has set urlColor, the attribute is defaulted to 008000 + /// . /// - [System.Xml.Serialization.XmlElementAttribute(Order = 7)] - public DateTime endDateTime { + [System.Xml.Serialization.XmlElementAttribute(Order = 5)] + public string urlColor { get { - return this.endDateTimeField; + return this.urlColorField; } set { - this.endDateTimeField = value; + this.urlColorField = value; } } - /// The number of days to allow a line item to deliver past its #endDateTime. A maximum of 7 days is allowed. This is - /// feature is only available for Ad Manager 360 accounts. + /// Specifies what kind of ad can be served by this AdUnit from + /// the AdSense Content Network. This attribute is optional and defaults to the ad + /// unit's parent or ancestor's setting if one has been set. If no ancestor of the + /// ad unit has set adType, the attribute is defaulted to AdType#TEXT_AND_IMAGE. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 8)] - public int autoExtensionDays { + [System.Xml.Serialization.XmlElementAttribute(Order = 6)] + public AdSenseSettingsAdType adType { get { - return this.autoExtensionDaysField; + return this.adTypeField; } set { - this.autoExtensionDaysField = value; - this.autoExtensionDaysSpecified = true; + this.adTypeField = value; + this.adTypeSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , + /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool autoExtensionDaysSpecified { + public bool adTypeSpecified { get { - return this.autoExtensionDaysFieldSpecified; + return this.adTypeFieldSpecified; } set { - this.autoExtensionDaysFieldSpecified = value; + this.adTypeFieldSpecified = value; } } - /// Specifies whether or not the LineItem has an end time. This - /// attribute is optional and defaults to false. It can be be set to - /// true for only line items of type LineItemType#SPONSORSHIP, LineItemType#NETWORK, LineItemType#PRICE_PRIORITY and LineItemType#HOUSE. + /// Specifies the border-style of the AdUnit. This attribute is + /// optional and defaults to the ad unit's parent or ancestor's setting if one has + /// been set. If no ancestor of the ad unit has set borderStyle, the + /// attribute is defaulted to BorderStyle#DEFAULT. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 9)] - public bool unlimitedEndDateTime { + [System.Xml.Serialization.XmlElementAttribute(Order = 7)] + public AdSenseSettingsBorderStyle borderStyle { get { - return this.unlimitedEndDateTimeField; + return this.borderStyleField; } set { - this.unlimitedEndDateTimeField = value; - this.unlimitedEndDateTimeSpecified = true; + this.borderStyleField = value; + this.borderStyleSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool unlimitedEndDateTimeSpecified { + public bool borderStyleSpecified { get { - return this.unlimitedEndDateTimeFieldSpecified; + return this.borderStyleFieldSpecified; } set { - this.unlimitedEndDateTimeFieldSpecified = value; + this.borderStyleFieldSpecified = value; } } - /// The strategy used for displaying multiple Creative - /// objects that are associated with the . This attribute is required. + /// Specifies the font family of the AdUnit. This attribute is + /// optional and defaults to the ad unit's parent or ancestor's setting if one has + /// been set. If no ancestor of the ad unit has set fontFamily, the + /// attribute is defaulted to FontFamily#DEFAULT. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 10)] - public CreativeRotationType creativeRotationType { + [System.Xml.Serialization.XmlElementAttribute(Order = 8)] + public AdSenseSettingsFontFamily fontFamily { get { - return this.creativeRotationTypeField; + return this.fontFamilyField; } set { - this.creativeRotationTypeField = value; - this.creativeRotationTypeSpecified = true; + this.fontFamilyField = value; + this.fontFamilySpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool creativeRotationTypeSpecified { + public bool fontFamilySpecified { get { - return this.creativeRotationTypeFieldSpecified; + return this.fontFamilyFieldSpecified; } set { - this.creativeRotationTypeFieldSpecified = value; + this.fontFamilyFieldSpecified = value; } } - /// The strategy for delivering ads over the course of the line item's duration. - /// This attribute is optional and defaults to DeliveryRateType#EVENLY or DeliveryRateType#FRONTLOADED depending on the network's - /// configuration. + /// Specifies the font size of the AdUnit. This attribute is + /// optional and defaults to the ad unit's parent or ancestor's setting if one has + /// been set. If no ancestor of the ad unit has set fontSize, the + /// attribute is defaulted to FontSize#DEFAULT. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 11)] - public DeliveryRateType deliveryRateType { + [System.Xml.Serialization.XmlElementAttribute(Order = 9)] + public AdSenseSettingsFontSize fontSize { get { - return this.deliveryRateTypeField; + return this.fontSizeField; } set { - this.deliveryRateTypeField = value; - this.deliveryRateTypeSpecified = true; + this.fontSizeField = value; + this.fontSizeSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool deliveryRateTypeSpecified { + public bool fontSizeSpecified { get { - return this.deliveryRateTypeFieldSpecified; + return this.fontSizeFieldSpecified; } set { - this.deliveryRateTypeFieldSpecified = value; + this.fontSizeFieldSpecified = value; } } + } - /// Strategy for choosing forecasted traffic shapes to pace line items. This field - /// is optional and defaults to DeliveryForecastSource#HISTORICAL. + + /// Specifies the type of ads that can be served through this AdUnit. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AdSenseSettings.AdType", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum AdSenseSettingsAdType { + /// Allows text-only ads. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 12)] - public DeliveryForecastSource deliveryForecastSource { + TEXT = 0, + /// Allows image-only ads. + /// + IMAGE = 1, + /// Allows both text and image ads. + /// + TEXT_AND_IMAGE = 2, + } + + + /// Describes the border of the HTML elements used to surround an ad displayed by + /// the AdUnit. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AdSenseSettings.BorderStyle", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum AdSenseSettingsBorderStyle { + /// Uses the default border-style of the browser. + /// + DEFAULT = 0, + /// Uses a cornered border-style. + /// + NOT_ROUNDED = 1, + /// Uses a slightly rounded border-style. + /// + SLIGHTLY_ROUNDED = 2, + /// Uses a rounded border-style. + /// + VERY_ROUNDED = 3, + } + + + /// List of all possible font families. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AdSenseSettings.FontFamily", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum AdSenseSettingsFontFamily { + DEFAULT = 0, + ARIAL = 1, + TAHOMA = 2, + GEORGIA = 3, + TIMES = 4, + VERDANA = 5, + } + + + /// List of all possible font sizes the user can choose. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AdSenseSettings.FontSize", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum AdSenseSettingsFontSize { + DEFAULT = 0, + SMALL = 1, + MEDIUM = 2, + LARGE = 3, + } + + + /// An AdUnitSize represents the size of an ad in an ad unit. This also + /// represents the environment and companions of a particular ad in an ad unit. In + /// most cases, it is a simple size with just a width and a height (sometimes + /// representing an aspect ratio). + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class AdUnitSize { + private Size sizeField; + + private EnvironmentType environmentTypeField; + + private bool environmentTypeFieldSpecified; + + private AdUnitSize[] companionsField; + + private string fullDisplayStringField; + + private bool isAudioField; + + private bool isAudioFieldSpecified; + + /// The permissible creative size that can be served inside this ad unit. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public Size size { get { - return this.deliveryForecastSourceField; + return this.sizeField; } set { - this.deliveryForecastSourceField = value; - this.deliveryForecastSourceSpecified = true; + this.sizeField = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool deliveryForecastSourceSpecified { + /// The environment type of the ad unit size. The default value is EnvironmentType#BROWSER. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public EnvironmentType environmentType { get { - return this.deliveryForecastSourceFieldSpecified; + return this.environmentTypeField; } set { - this.deliveryForecastSourceFieldSpecified = value; + this.environmentTypeField = value; + this.environmentTypeSpecified = true; } } - /// The curve that is used to pace the line item's delivery. This field is required - /// if and only if the delivery forecast source is DeliveryForecastSource#CUSTOM_PACING_CURVE. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 13)] - public CustomPacingCurve customPacingCurve { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool environmentTypeSpecified { get { - return this.customPacingCurveField; + return this.environmentTypeFieldSpecified; } set { - this.customPacingCurveField = value; + this.environmentTypeFieldSpecified = value; } } - /// The strategy for serving roadblocked creatives, i.e. instances where multiple - /// creatives must be served together on a single web page. This attribute is - /// optional and defaults to RoadblockingType#ONE_OR_MORE. + /// The companions for this ad unit size. Companions are only valid if the + /// environment is EnvironmentType#VIDEO_PLAYER. If the environment + /// is EnvironmentType#BROWSER including + /// companions results in an error. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 14)] - public RoadblockingType roadblockingType { + [System.Xml.Serialization.XmlElementAttribute("companions", Order = 2)] + public AdUnitSize[] companions { get { - return this.roadblockingTypeField; + return this.companionsField; } set { - this.roadblockingTypeField = value; - this.roadblockingTypeSpecified = true; + this.companionsField = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool roadblockingTypeSpecified { + /// The full (including companion sizes, if applicable) display string of the size, + /// e.g. "300x250" or "300x250v (180x150)" + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 3)] + public string fullDisplayString { get { - return this.roadblockingTypeFieldSpecified; + return this.fullDisplayStringField; } set { - this.roadblockingTypeFieldSpecified = value; + this.fullDisplayStringField = value; } } - /// The nature of the line item's creatives' skippability. This attribute is - /// optional, only applicable for video line items, and defaults to SkippableAdType#NOT_SKIPPABLE. + /// Whether the inventory size is audio. If set to true, Size will be + /// set to "1x1" and EnvironmentType will be set to EnvironmentType#VIDEO_PLAYER regardless + /// of user input. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 15)] - public SkippableAdType skippableAdType { + [System.Xml.Serialization.XmlElementAttribute(Order = 4)] + public bool isAudio { get { - return this.skippableAdTypeField; + return this.isAudioField; } set { - this.skippableAdTypeField = value; - this.skippableAdTypeSpecified = true; + this.isAudioField = value; + this.isAudioSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , + /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool skippableAdTypeSpecified { + public bool isAudioSpecified { get { - return this.skippableAdTypeFieldSpecified; + return this.isAudioFieldSpecified; } set { - this.skippableAdTypeFieldSpecified = value; + this.isAudioFieldSpecified = value; } } + } - /// The set of frequency capping units for this LineItem. This - /// attribute is optional. + + /// The summary of a parent AdUnit. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class AdUnitParent { + private string idField; + + private string nameField; + + private string adUnitCodeField; + + /// The ID of the parent AdUnit. This value is readonly and is + /// populated by Google. /// - [System.Xml.Serialization.XmlElementAttribute("frequencyCaps", Order = 16)] - public FrequencyCap[] frequencyCaps { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public string id { get { - return this.frequencyCapsField; + return this.idField; } set { - this.frequencyCapsField = value; + this.idField = value; } } - /// Indicates the line item type of a LineItem. This attribute is - /// required.

The line item type determines the default priority of the line - /// item. More information can be found on the Ad Manager Help - /// Center.

+ /// The name of the parent AdUnit. This value is readonly and is + /// populated by Google. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 17)] - public LineItemType lineItemType { + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public string name { get { - return this.lineItemTypeField; + return this.nameField; } set { - this.lineItemTypeField = value; - this.lineItemTypeSpecified = true; + this.nameField = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool lineItemTypeSpecified { + /// A string used to uniquely identify the ad unit for the purposes of serving the + /// ad. This attribute is read-only and is assigned by Google when an ad unit is + /// created. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public string adUnitCode { get { - return this.lineItemTypeFieldSpecified; + return this.adUnitCodeField; } set { - this.lineItemTypeFieldSpecified = value; + this.adUnitCodeField = value; } } + } - /// The priority for the line item. Valid values range from 1 to 16. This field is - /// optional and defaults to the default priority of the LineItemType.

The following table shows the default, - /// minimum, and maximum priority values are for each line item type:

- /// - /// - /// - /// - /// - ///
LineItemType - default priority (minimum - /// priority, maximum priority)
LineItemType#SPONSORSHIP 4 (2, - /// 5)
LineItemType#STANDARD 8 (6, 10)
LineItemType#NETWORK12 (11, 14)
LineItemType#BULK 12 (11, 14)
LineItemType#PRICE_PRIORITY 12 - /// (11, 14)
LineItemType#HOUSE 16 (15, 16)
LineItemType#CLICK_TRACKING 16 - /// (1, 16)
LineItemType#AD_EXCHANGE 12 (1, - /// 16)
LineItemType#ADSENSE 12 (1, 16)
LineItemType#BUMPER 16 - /// (15, 16)

This field can only be edited by certain - /// networks, otherwise a PermissionError will - /// occur.

- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 18)] - public int priority { - get { - return this.priorityField; - } - set { - this.priorityField = value; - this.prioritySpecified = true; - } - } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool prioritySpecified { + /// An AdUnit represents a chunk of identified inventory for the + /// publisher. It contains all the settings that need to be associated with + /// inventory in order to serve ads to it. An can also be the parent + /// of other ad units in the inventory hierarchy. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class AdUnit { + private string idField; + + private string parentIdField; + + private bool hasChildrenField; + + private bool hasChildrenFieldSpecified; + + private AdUnitParent[] parentPathField; + + private string nameField; + + private string descriptionField; + + private AdUnitTargetWindow targetWindowField; + + private bool targetWindowFieldSpecified; + + private InventoryStatus statusField; + + private bool statusFieldSpecified; + + private string adUnitCodeField; + + private AdUnitSize[] adUnitSizesField; + + private bool isInterstitialField; + + private bool isInterstitialFieldSpecified; + + private bool isNativeField; + + private bool isNativeFieldSpecified; + + private bool isFluidField; + + private bool isFluidFieldSpecified; + + private bool explicitlyTargetedField; + + private bool explicitlyTargetedFieldSpecified; + + private AdSenseSettings adSenseSettingsField; + + private ValueSourceType adSenseSettingsSourceField; + + private bool adSenseSettingsSourceFieldSpecified; + + private LabelFrequencyCap[] appliedLabelFrequencyCapsField; + + private LabelFrequencyCap[] effectiveLabelFrequencyCapsField; + + private AppliedLabel[] appliedLabelsField; + + private AppliedLabel[] effectiveAppliedLabelsField; + + private long[] effectiveTeamIdsField; + + private long[] appliedTeamIdsField; + + private DateTime lastModifiedDateTimeField; + + private SmartSizeMode smartSizeModeField; + + private bool smartSizeModeFieldSpecified; + + private int refreshRateField; + + private bool refreshRateFieldSpecified; + + private string externalSetTopBoxChannelIdField; + + private bool isSetTopBoxEnabledField; + + private bool isSetTopBoxEnabledFieldSpecified; + + private long applicationIdField; + + private bool applicationIdFieldSpecified; + + /// Uniquely identifies the AdUnit. This value is read-only and is + /// assigned by Google when an ad unit is created. This attribute is required for + /// updates. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public string id { get { - return this.priorityFieldSpecified; + return this.idField; } set { - this.priorityFieldSpecified = value; + this.idField = value; } } - /// The amount of money to spend per impression or click. This attribute is required - /// for creating a LineItem. + /// The ID of the ad unit's parent. Every ad unit has a parent except for the root + /// ad unit, which is created by Google. This attribute is required when creating + /// the ad unit. Once the ad unit is created this value will be read-only. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 19)] - public Money costPerUnit { + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public string parentId { get { - return this.costPerUnitField; + return this.parentIdField; } set { - this.costPerUnitField = value; + this.parentIdField = value; } } - /// An amount to help the adserver rank inventory. LineItem#valueCostPerUnit artificially - /// raises the value of inventory over the LineItem#costPerUnit but avoids raising the - /// actual LineItem#costPerUnit. This attribute - /// is optional and defaults to a Money object in the local - /// currency with Money#microAmount 0. + /// This field is set to true if the ad unit has any children. This + /// attribute is read-only and is populated by Google. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 20)] - public Money valueCostPerUnit { + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public bool hasChildren { get { - return this.valueCostPerUnitField; + return this.hasChildrenField; } set { - this.valueCostPerUnitField = value; + this.hasChildrenField = value; + this.hasChildrenSpecified = true; } } - /// The method used for billing this LineItem. This attribute is - /// required. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 21)] - public CostType costType { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool hasChildrenSpecified { get { - return this.costTypeField; + return this.hasChildrenFieldSpecified; } set { - this.costTypeField = value; - this.costTypeSpecified = true; + this.hasChildrenFieldSpecified = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool costTypeSpecified { + /// The path to this ad unit in the ad unit hierarchy represented as a list from the + /// root to this ad unit's parent. For root ad units, this list is empty. This + /// attribute is read-only and is populated by Google. + /// + [System.Xml.Serialization.XmlElementAttribute("parentPath", Order = 3)] + public AdUnitParent[] parentPath { get { - return this.costTypeFieldSpecified; + return this.parentPathField; } set { - this.costTypeFieldSpecified = value; + this.parentPathField = value; } } - /// The type of discount being applied to a LineItem, either percentage - /// based or absolute. This attribute is optional and defaults to LineItemDiscountType#PERCENTAGE. + /// The name of the ad unit. This attribute is required and its maximum length is + /// 255 characters. This attribute must also be case-insensitive unique. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 22)] - public LineItemDiscountType discountType { + [System.Xml.Serialization.XmlElementAttribute(Order = 4)] + public string name { get { - return this.discountTypeField; + return this.nameField; } set { - this.discountTypeField = value; - this.discountTypeSpecified = true; + this.nameField = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool discountTypeSpecified { + /// A description of the ad unit. This value is optional and its maximum length is + /// 65,535 characters. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 5)] + public string description { get { - return this.discountTypeFieldSpecified; + return this.descriptionField; } set { - this.discountTypeFieldSpecified = value; + this.descriptionField = value; } } - /// The number here is either a percentage or an absolute value depending on the - /// LineItemDiscountType. If the is LineItemDiscountType#PERCENTAGE, then only non-fractional values are - /// supported. + /// The value to use for the HTML link's target attribute. This value + /// is optional and will be interpreted as TargetWindow#TOP if left blank. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 23)] - public double discount { + [System.Xml.Serialization.XmlElementAttribute(Order = 6)] + public AdUnitTargetWindow targetWindow { get { - return this.discountField; + return this.targetWindowField; } set { - this.discountField = value; - this.discountSpecified = true; + this.targetWindowField = value; + this.targetWindowSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool discountSpecified { + public bool targetWindowSpecified { get { - return this.discountFieldSpecified; + return this.targetWindowFieldSpecified; } set { - this.discountFieldSpecified = value; + this.targetWindowFieldSpecified = value; } } - /// This attribute is only applicable for certain line item - /// types and acts as an "FYI" or note, which does not impact adserving or other - /// backend systems.

For LineItemType#SPONSORSHIP line items, this - /// represents the minimum quantity, which is a lifetime impression volume goal for - /// reporting purposes only.

For LineItemType#STANDARD line items, this - /// represent the contracted quantity, which is the number of units specified in the - /// contract the advertiser has bought for this LineItem. This field is - /// just a "FYI" for traffickers to manually intervene with the - /// LineItem when needed. This attribute is only available for LineItemType#STANDARD line items if you have - /// this feature enabled on your network.

+ /// The status of this ad unit. It defaults to InventoryStatus#ACTIVE. This value cannot be + /// updated directly using InventoryService#updateAdUnit. It can + /// only be modified by performing actions via InventoryService#performAdUnitAction. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 24)] - public long contractedUnitsBought { + [System.Xml.Serialization.XmlElementAttribute(Order = 7)] + public InventoryStatus status { get { - return this.contractedUnitsBoughtField; + return this.statusField; } set { - this.contractedUnitsBoughtField = value; - this.contractedUnitsBoughtSpecified = true; + this.statusField = value; + this.statusSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , + /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool contractedUnitsBoughtSpecified { + public bool statusSpecified { get { - return this.contractedUnitsBoughtFieldSpecified; + return this.statusFieldSpecified; } set { - this.contractedUnitsBoughtFieldSpecified = value; + this.statusFieldSpecified = value; } } - /// Details about the creatives that are expected to serve through this - /// LineItem. This attribute is required and replaces the - /// creativeSizes attribute. + /// A string used to uniquely identify the ad unit for the purposes of serving the + /// ad. This attribute is optional and can be set during ad unit creation. If it is + /// not provided, it will be assigned by Google based off of the inventory unit ID. + /// Once an ad unit is created, its adUnitCode cannot be changed. /// - [System.Xml.Serialization.XmlElementAttribute("creativePlaceholders", Order = 25)] - public CreativePlaceholder[] creativePlaceholders { + [System.Xml.Serialization.XmlElementAttribute(Order = 8)] + public string adUnitCode { get { - return this.creativePlaceholdersField; + return this.adUnitCodeField; } set { - this.creativePlaceholdersField = value; + this.adUnitCodeField = value; } } - /// This attribute is required and meaningful only if the LineItem#costType is CostType.CPA. + /// The permissible creative sizes that can be served inside this ad unit. This + /// attribute is optional. This attribute replaces the sizes attribute. /// - [System.Xml.Serialization.XmlElementAttribute("activityAssociations", Order = 26)] - public LineItemActivityAssociation[] activityAssociations { + [System.Xml.Serialization.XmlElementAttribute("adUnitSizes", Order = 9)] + public AdUnitSize[] adUnitSizes { get { - return this.activityAssociationsField; + return this.adUnitSizesField; } set { - this.activityAssociationsField = value; + this.adUnitSizesField = value; } } - /// The environment that the LineItem is targeting. The default value - /// is EnvironmentType#BROWSER. If this value is EnvironmentType#VIDEO_PLAYER, then this - /// line item can only target AdUnits that have - /// AdUnitSizes whose environmentType is also - /// . + /// Whether this is an interstitial ad unit. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 27)] - public EnvironmentType environmentType { + [System.Xml.Serialization.XmlElementAttribute(Order = 10)] + public bool isInterstitial { get { - return this.environmentTypeField; + return this.isInterstitialField; } set { - this.environmentTypeField = value; - this.environmentTypeSpecified = true; + this.isInterstitialField = value; + this.isInterstitialSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="isInterstitial" />, false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool environmentTypeSpecified { - get { - return this.environmentTypeFieldSpecified; - } - set { - this.environmentTypeFieldSpecified = value; - } - } - - /// The set of allowedFormats that this programmatic - /// line item can have. If the set is empty, this line item allows all formats. - /// - [System.Xml.Serialization.XmlElementAttribute("allowedFormats", Order = 28)] - public AllowedFormats[] allowedFormats { + public bool isInterstitialSpecified { get { - return this.allowedFormatsField; + return this.isInterstitialFieldSpecified; } set { - this.allowedFormatsField = value; + this.isInterstitialFieldSpecified = value; } } - /// The delivery option for companions. Setting this field is only meaningful if the - /// following conditions are met:
  1. The Guaranteed roadblocks feature - /// is enabled on your network.
  2. One of the following is true (both cannot - /// be true, these are mutually exclusive).

This field is optional and defaults to CompanionDeliveryOption#OPTIONAL if - /// the above conditions are met. In all other cases it defaults to CompanionDeliveryOption#UNKNOWN and - /// is not meaningful.

+ /// Whether this is a native ad unit. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 29)] - public CompanionDeliveryOption companionDeliveryOption { + [System.Xml.Serialization.XmlElementAttribute(Order = 11)] + public bool isNative { get { - return this.companionDeliveryOptionField; + return this.isNativeField; } set { - this.companionDeliveryOptionField = value; - this.companionDeliveryOptionSpecified = true; + this.isNativeField = value; + this.isNativeSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool companionDeliveryOptionSpecified { + public bool isNativeSpecified { get { - return this.companionDeliveryOptionFieldSpecified; + return this.isNativeFieldSpecified; } set { - this.companionDeliveryOptionFieldSpecified = value; + this.isNativeFieldSpecified = value; } } - /// The flag indicates whether overbooking should be allowed when creating or - /// updating reservations of line item types LineItemType#SPONSORSHIP and LineItemType#STANDARD. When true, operations on - /// this line item will never trigger a ForecastError, - /// which corresponds to an overbook warning in the UI. The default value is false. - ///

Note: this field will not persist on the line item itself, and the value will - /// only affect the current request.

+ /// Whether this is a fluid ad unit. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 30)] - public bool allowOverbook { + [System.Xml.Serialization.XmlElementAttribute(Order = 12)] + public bool isFluid { get { - return this.allowOverbookField; + return this.isFluidField; } set { - this.allowOverbookField = value; - this.allowOverbookSpecified = true; + this.isFluidField = value; + this.isFluidSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , + /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool allowOverbookSpecified { + public bool isFluidSpecified { get { - return this.allowOverbookFieldSpecified; + return this.isFluidFieldSpecified; } set { - this.allowOverbookFieldSpecified = value; + this.isFluidFieldSpecified = value; } } - /// The flag indicates whether the inventory check should be skipped when creating - /// or updating a line item. The default value is false.

Note: this field will - /// not persist on the line item itself, and the value will only affect the current - /// request.

+ /// If this field is set to true, then the AdUnit will not + /// be implicitly targeted when its parent is. Traffickers must explicitly target + /// such an ad unit or else no line items will serve to it. This feature is only + /// available for Ad Manager 360 accounts. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 31)] - public bool skipInventoryCheck { + [System.Xml.Serialization.XmlElementAttribute(Order = 13)] + public bool explicitlyTargeted { get { - return this.skipInventoryCheckField; + return this.explicitlyTargetedField; } set { - this.skipInventoryCheckField = value; - this.skipInventoryCheckSpecified = true; + this.explicitlyTargetedField = value; + this.explicitlyTargetedSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="explicitlyTargeted" />, false otherwise.
[System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool skipInventoryCheckSpecified { - get { - return this.skipInventoryCheckFieldSpecified; - } - set { - this.skipInventoryCheckFieldSpecified = value; - } - } - - /// True to skip checks for warnings from rules applied to line items targeting - /// inventory shared by a distributor partner for cross selling when performing an - /// action on this line item. The default is false. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 32)] - public bool skipCrossSellingRuleWarningChecks { + public bool explicitlyTargetedSpecified { get { - return this.skipCrossSellingRuleWarningChecksField; + return this.explicitlyTargetedFieldSpecified; } set { - this.skipCrossSellingRuleWarningChecksField = value; - this.skipCrossSellingRuleWarningChecksSpecified = true; + this.explicitlyTargetedFieldSpecified = value; } } - /// true, if a value is specified for , false otherwise. + /// AdSense specific settings. To overwrite this, set the #adSenseSettingsSource to PropertySourceType#DIRECTLY_SPECIFIED when setting the value of this + /// field. /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool skipCrossSellingRuleWarningChecksSpecified { + [System.Xml.Serialization.XmlElementAttribute(Order = 14)] + public AdSenseSettings adSenseSettings { get { - return this.skipCrossSellingRuleWarningChecksFieldSpecified; + return this.adSenseSettingsField; } set { - this.skipCrossSellingRuleWarningChecksFieldSpecified = value; + this.adSenseSettingsField = value; } } - /// The flag indicates whether inventory should be reserved when creating a line - /// item of types LineItemType#SPONSORSHIP - /// and LineItemType#STANDARD in an unapproved - /// Order. The default value is false. + /// Specifies the source of #adSenseSettings value. + /// To revert an overridden value to its default, set this field to PropertySourceType#PARENT. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 33)] - public bool reserveAtCreation { + [System.Xml.Serialization.XmlElementAttribute(Order = 15)] + public ValueSourceType adSenseSettingsSource { get { - return this.reserveAtCreationField; + return this.adSenseSettingsSourceField; } set { - this.reserveAtCreationField = value; - this.reserveAtCreationSpecified = true; + this.adSenseSettingsSourceField = value; + this.adSenseSettingsSourceSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="adSenseSettingsSource" />, false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool reserveAtCreationSpecified { + public bool adSenseSettingsSourceSpecified { get { - return this.reserveAtCreationFieldSpecified; + return this.adSenseSettingsSourceFieldSpecified; } set { - this.reserveAtCreationFieldSpecified = value; + this.adSenseSettingsSourceFieldSpecified = value; } } - /// Contains trafficking statistics for the line item. This attribute is readonly - /// and is populated by Google. This will be null in case there are no - /// statistics for a line item yet. + /// The set of label frequency caps applied directly to this ad unit. There is a + /// limit of 10 label frequency caps per ad unit. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 34)] - public Stats stats { + [System.Xml.Serialization.XmlElementAttribute("appliedLabelFrequencyCaps", Order = 16)] + public LabelFrequencyCap[] appliedLabelFrequencyCaps { get { - return this.statsField; + return this.appliedLabelFrequencyCapsField; } set { - this.statsField = value; + this.appliedLabelFrequencyCapsField = value; } } - /// Indicates how well the line item has been performing. This attribute is readonly - /// and is populated by Google. This will be null if the delivery - /// indicator information is not available due to one of the following reasons:
    - ///
  1. The line item is not delivering.
  2. The line item has an unlimited - /// goal or cap.
  3. The line item has a percentage based goal or cap.
  4. - ///
+ /// Contains the set of labels applied directly to the ad unit as well as those + /// inherited from parent ad units. This field is readonly and is assigned by + /// Google. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 35)] - public DeliveryIndicator deliveryIndicator { + [System.Xml.Serialization.XmlElementAttribute("effectiveLabelFrequencyCaps", Order = 17)] + public LabelFrequencyCap[] effectiveLabelFrequencyCaps { get { - return this.deliveryIndicatorField; + return this.effectiveLabelFrequencyCapsField; } set { - this.deliveryIndicatorField = value; + this.effectiveLabelFrequencyCapsField = value; } } - /// Delivery data provides the number of clicks or impressions delivered for a LineItem in the last 7 days. This attribute is readonly and - /// is populated by Google. This will be null if the delivery data - /// cannot be computed due to one of the following reasons:
  1. The line item - /// is not deliverable.
  2. The line item has completed delivering more than 7 - /// days ago.
  3. The line item has an absolute-based goal. LineItem#deliveryIndicator should be used - /// to track its progress in this case.
+ /// The set of labels applied directly to this ad unit. /// - [System.Xml.Serialization.XmlArrayAttribute(Order = 36)] - [System.Xml.Serialization.XmlArrayItemAttribute("units", IsNullable = false)] - public long[] deliveryData { + [System.Xml.Serialization.XmlElementAttribute("appliedLabels", Order = 18)] + public AppliedLabel[] appliedLabels { get { - return this.deliveryDataField; + return this.appliedLabelsField; } set { - this.deliveryDataField = value; + this.appliedLabelsField = value; } } - /// The amount of money allocated to the LineItem. This attribute is - /// readonly and is populated by Google. The currency code is readonly. + /// Contains the set of labels applied directly to the ad unit as well as those + /// inherited from the parent ad units. If a label has been negated, only the + /// negated label is returned. This field is readonly and is assigned by Google. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 37)] - public Money budget { + [System.Xml.Serialization.XmlElementAttribute("effectiveAppliedLabels", Order = 19)] + public AppliedLabel[] effectiveAppliedLabels { get { - return this.budgetField; + return this.effectiveAppliedLabelsField; } set { - this.budgetField = value; + this.effectiveAppliedLabelsField = value; } } - /// The status of the LineItem. This attribute is readonly. + /// The IDs of all teams that this ad unit is on as well as those inherited from + /// parent ad units. This value is read-only and is set by Google. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 38)] - public ComputedStatus status { + [System.Xml.Serialization.XmlElementAttribute("effectiveTeamIds", Order = 20)] + public long[] effectiveTeamIds { get { - return this.statusField; + return this.effectiveTeamIdsField; } set { - this.statusField = value; - this.statusSpecified = true; + this.effectiveTeamIdsField = value; } } - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool statusSpecified { + /// The IDs of all teams that this ad unit is on directly. + /// + [System.Xml.Serialization.XmlElementAttribute("appliedTeamIds", Order = 21)] + public long[] appliedTeamIds { get { - return this.statusFieldSpecified; + return this.appliedTeamIdsField; } set { - this.statusFieldSpecified = value; + this.appliedTeamIdsField = value; } } - /// Describes whether or not inventory has been reserved for the . This - /// attribute is readonly and is assigned by Google. + /// The date and time this ad unit was last modified. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 39)] - public LineItemSummaryReservationStatus reservationStatus { + [System.Xml.Serialization.XmlElementAttribute(Order = 22)] + public DateTime lastModifiedDateTime { get { - return this.reservationStatusField; + return this.lastModifiedDateTimeField; } set { - this.reservationStatusField = value; - this.reservationStatusSpecified = true; + this.lastModifiedDateTimeField = value; + } + } + + /// The smart size mode for this ad unit. This attribute is optional and defaults to + /// SmartSizeMode#NONE for fixed sizes. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 23)] + public SmartSizeMode smartSizeMode { + get { + return this.smartSizeModeField; + } + set { + this.smartSizeModeField = value; + this.smartSizeModeSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="smartSizeMode" />, false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool reservationStatusSpecified { + public bool smartSizeModeSpecified { get { - return this.reservationStatusFieldSpecified; + return this.smartSizeModeFieldSpecified; } set { - this.reservationStatusFieldSpecified = value; + this.smartSizeModeFieldSpecified = value; } } - /// The archival status of the LineItem. This attribute is readonly. + /// The interval in seconds which ad units in mobile apps automatically refresh. + /// Valid values are between 30 and 120 seconds. This attribute is optional and only + /// applies to ad units in mobile apps. If this value is not set, then the mobile + /// app ad will not refresh. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 40)] - public bool isArchived { + [System.Xml.Serialization.XmlElementAttribute(Order = 24)] + public int refreshRate { get { - return this.isArchivedField; + return this.refreshRateField; } set { - this.isArchivedField = value; - this.isArchivedSpecified = true; + this.refreshRateField = value; + this.refreshRateSpecified = true; } } - /// true, if a value is specified for true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool isArchivedSpecified { + public bool refreshRateSpecified { get { - return this.isArchivedFieldSpecified; + return this.refreshRateFieldSpecified; } set { - this.isArchivedFieldSpecified = value; + this.refreshRateFieldSpecified = value; } } - /// The web property code used for dynamic allocation line items. This web property - /// is only required with line item types LineItemType#AD_EXCHANGE and LineItemType#ADSENSE. + /// Specifies an ID for a channel in an external set-top box campaign management + /// system. This attribute is only meaningful if #isSetTopBoxEnabled is true. This + /// attribute is read-only. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 41)] - public string webPropertyCode { + [System.Xml.Serialization.XmlElementAttribute(Order = 25)] + public string externalSetTopBoxChannelId { get { - return this.webPropertyCodeField; + return this.externalSetTopBoxChannelIdField; } set { - this.webPropertyCodeField = value; + this.externalSetTopBoxChannelIdField = value; } } - /// The set of labels applied directly to this line item. + /// Flag that specifies whether this ad unit represents an external set-top box + /// channel. This attribute is read-only. /// - [System.Xml.Serialization.XmlElementAttribute("appliedLabels", Order = 42)] - public AppliedLabel[] appliedLabels { + [System.Xml.Serialization.XmlElementAttribute(Order = 26)] + public bool isSetTopBoxEnabled { get { - return this.appliedLabelsField; + return this.isSetTopBoxEnabledField; } set { - this.appliedLabelsField = value; + this.isSetTopBoxEnabledField = value; + this.isSetTopBoxEnabledSpecified = true; } } - /// Contains the set of labels inherited from the order that contains this line item - /// and the advertiser that owns the order. If a label has been negated, only the - /// negated label is returned. This field is readonly and is assigned by Google. - /// - [System.Xml.Serialization.XmlElementAttribute("effectiveAppliedLabels", Order = 43)] - public AppliedLabel[] effectiveAppliedLabels { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool isSetTopBoxEnabledSpecified { get { - return this.effectiveAppliedLabelsField; + return this.isSetTopBoxEnabledFieldSpecified; } set { - this.effectiveAppliedLabelsField = value; + this.isSetTopBoxEnabledFieldSpecified = value; } } - /// If a line item has a series of competitive exclusions on it, it could be blocked - /// from serving with line items from the same advertiser. Setting this to - /// true will allow line items from the same advertiser to serve - /// regardless of the other competitive exclusion labels being applied. + /// The MobileApplication#applicationId for + /// the CTV application that this ad unit is within. This attribute is optional. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 44)] - public bool disableSameAdvertiserCompetitiveExclusion { + [System.Xml.Serialization.XmlElementAttribute(Order = 27)] + public long applicationId { get { - return this.disableSameAdvertiserCompetitiveExclusionField; + return this.applicationIdField; } set { - this.disableSameAdvertiserCompetitiveExclusionField = value; - this.disableSameAdvertiserCompetitiveExclusionSpecified = true; + this.applicationIdField = value; + this.applicationIdSpecified = true; } } /// true, if a value is specified for , false - /// otherwise. + /// cref="applicationId" />, false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool disableSameAdvertiserCompetitiveExclusionSpecified { + public bool applicationIdSpecified { get { - return this.disableSameAdvertiserCompetitiveExclusionFieldSpecified; + return this.applicationIdFieldSpecified; } set { - this.disableSameAdvertiserCompetitiveExclusionFieldSpecified = value; + this.applicationIdFieldSpecified = value; } } + } - /// The application that last modified this line item. This attribute is read only - /// and is assigned by Google. + + /// Corresponds to an HTML link's target attribute. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AdUnit.TargetWindow", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum AdUnitTargetWindow { + /// Specifies that the link should open in the full body of the page. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 45)] - public string lastModifiedByApp { + TOP = 0, + /// Specifies that the link should open in a new window. + /// + BLANK = 1, + } + + + /// Represents the status of objects that represent inventory - ad units and + /// placements. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum InventoryStatus { + /// The object is active. + /// + ACTIVE = 0, + /// The object is no longer active. + /// + INACTIVE = 1, + /// The object has been archived. + /// + ARCHIVED = 2, + } + + + /// Identifies the source of a field's value. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum ValueSourceType { + /// The field's value is inherited from the parent object. + /// + PARENT = 0, + /// The field's value is user specified and not inherited. + /// + DIRECTLY_SPECIFIED = 1, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 2, + } + + + /// Represents smart size modes. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum SmartSizeMode { + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 0, + /// Fixed size mode (default). + /// + NONE = 1, + /// The height is fixed for the request, the width is a range. + /// + SMART_BANNER = 2, + /// Height and width are ranges. + /// + DYNAMIC_SIZE = 3, + } + + + /// An error specifically for InventoryUnitSizes. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class InventoryUnitSizesError : ApiError { + private InventoryUnitSizesErrorReason reasonField; + + private bool reasonFieldSpecified; + + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public InventoryUnitSizesErrorReason reason { get { - return this.lastModifiedByAppField; + return this.reasonField; } set { - this.lastModifiedByAppField = value; + this.reasonField = value; + this.reasonSpecified = true; } } - /// Provides any additional notes that may annotate the . This - /// attribute is optional and has a maximum length of 65,535 characters. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 46)] - public string notes { + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool reasonSpecified { get { - return this.notesField; + return this.reasonFieldSpecified; } set { - this.notesField = value; + this.reasonFieldSpecified = value; } } + } - /// The CompetitiveConstraintScope for the competitive exclusion labels - /// assigned to this line item. This field is optional, defaults to CompetitiveConstraintScope#POD, and - /// only applies to video line items. + + /// All possible reasons the error can be thrown. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "InventoryUnitSizesError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum InventoryUnitSizesErrorReason { + /// A size in the ad unit is too large or too small. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 47)] - public CompetitiveConstraintScope competitiveConstraintScope { + INVALID_SIZES = 0, + /// A size is an aspect ratio, but the ad unit is not a mobile ad unit. + /// + INVALID_SIZE_FOR_PLATFORM = 1, + /// A size is video, but the video feature is not enabled. + /// + VIDEO_FEATURE_MISSING = 2, + /// A size is video in a mobile ad unit, but the mobile video feature is not + /// enabled. + /// + VIDEO_MOBILE_LINE_ITEM_FEATURE_MISSING = 3, + /// A size that has companions must have an environment of VIDEO_PLAYER. + /// + INVALID_SIZE_FOR_MASTER = 4, + /// A size that is a companion must have an environment of BROWSER. + /// + INVALID_SIZE_FOR_COMPANION = 5, + /// Duplicate video master sizes are not allowed. + /// + DUPLICATE_MASTER_SIZES = 6, + /// A size is an aspect ratio, but aspect ratio sizes are not enabled. + /// + ASPECT_RATIO_NOT_SUPPORTED = 7, + /// A video size has companions, but companions are not allowed for the network + /// + VIDEO_COMPANIONS_NOT_SUPPORTED = 8, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 9, + } + + + /// Lists errors relating to AdUnit#refreshRate. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class InventoryUnitRefreshRateError : ApiError { + private InventoryUnitRefreshRateErrorReason reasonField; + + private bool reasonFieldSpecified; + + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public InventoryUnitRefreshRateErrorReason reason { get { - return this.competitiveConstraintScopeField; + return this.reasonField; } set { - this.competitiveConstraintScopeField = value; - this.competitiveConstraintScopeSpecified = true; + this.reasonField = value; + this.reasonSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , + /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool competitiveConstraintScopeSpecified { + public bool reasonSpecified { get { - return this.competitiveConstraintScopeFieldSpecified; + return this.reasonFieldSpecified; } set { - this.competitiveConstraintScopeFieldSpecified = value; + this.reasonFieldSpecified = value; } } + } - /// The date and time this line item was last modified. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 48)] - public DateTime lastModifiedDateTime { - get { - return this.lastModifiedDateTimeField; - } - set { - this.lastModifiedDateTimeField = value; - } - } - /// This attribute may be null for line items created before this - /// feature was introduced. + /// Reasons for the error. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "InventoryUnitRefreshRateError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum InventoryUnitRefreshRateErrorReason { + /// The refresh rate must be between 30 and 120 seconds. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 49)] - public DateTime creationDateTime { + INVALID_RANGE = 0, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 1, + } + + + /// A list of all errors associated with a color attribute. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class InvalidColorError : ApiError { + private InvalidColorErrorReason reasonField; + + private bool reasonFieldSpecified; + + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public InvalidColorErrorReason reason { get { - return this.creationDateTimeField; + return this.reasonField; } set { - this.creationDateTimeField = value; + this.reasonField = value; + this.reasonSpecified = true; } } - /// The values of the custom fields associated with this line item. - /// - [System.Xml.Serialization.XmlElementAttribute("customFieldValues", Order = 50)] - public BaseCustomFieldValue[] customFieldValues { + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool reasonSpecified { get { - return this.customFieldValuesField; + return this.reasonFieldSpecified; } set { - this.customFieldValuesField = value; + this.reasonFieldSpecified = value; } } + } - /// Indicates if a LineItem is missing any creatives for the creativePlaceholders - /// specified.

Creatives can be considered missing for - /// several reasons including:

  • Not enough creatives of a certain size have been uploaded, as - /// determined by CreativePlaceholder#expectedCreativeCount. - /// For example a LineItem specifies 750x350, 400x200 but only a - /// 750x350 was uploaded. Or LineItem specifies 750x350 with an - /// expected count of 2, but only one was uploaded.
  • The Creative#appliedLabels of an associated - /// Creative do not match the CreativePlaceholder#effectiveAppliedLabels - /// of the LineItem. For example LineItem specifies - /// 750x350 with a Foo AppliedLabel but a 750x350 creative without a - /// AppliedLabel was uploaded.
+ + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "InvalidColorError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum InvalidColorErrorReason { + /// The provided value is not a valid hexadecimal color. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 51)] - public bool isMissingCreatives { + INVALID_FORMAT = 0, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 1, + } + + + /// A list of all errors associated with companies. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class CompanyError : ApiError { + private CompanyErrorReason reasonField; + + private bool reasonFieldSpecified; + + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public CompanyErrorReason reason { get { - return this.isMissingCreativesField; + return this.reasonField; } set { - this.isMissingCreativesField = value; - this.isMissingCreativesSpecified = true; + this.reasonField = value; + this.reasonSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , + /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool isMissingCreativesSpecified { + public bool reasonSpecified { get { - return this.isMissingCreativesFieldSpecified; + return this.reasonFieldSpecified; } set { - this.isMissingCreativesFieldSpecified = value; + this.reasonFieldSpecified = value; } } + } - /// Indicates the ProgrammaticCreativeSource of the - /// programmatic line item. This is a read-only field. Any changes must be made on - /// the ProposalLineItem. + + /// Enumerates all possible company specific errors. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CompanyError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum CompanyErrorReason { + /// Indicates that an attempt was made to set a third party company for a company + /// whose type is not the same as the third party company. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 52)] - public ProgrammaticCreativeSource programmaticCreativeSource { - get { - return this.programmaticCreativeSourceField; - } - set { - this.programmaticCreativeSourceField = value; - this.programmaticCreativeSourceSpecified = true; - } - } + CANNOT_SET_THIRD_PARTY_COMPANY_DUE_TO_TYPE = 0, + /// Indicates that an invalid attempt was made to change a company's type. + /// + CANNOT_UPDATE_COMPANY_TYPE = 1, + /// Indicates that this type of company is not supported. + /// + INVALID_COMPANY_TYPE = 2, + /// Indicates that an attempt was made to assign a primary contact who does not + /// belong to the specified company. + /// + PRIMARY_CONTACT_DOES_NOT_BELONG_TO_THIS_COMPANY = 3, + /// Indicates that the user specified as the third party stats provider is of the + /// wrong role type. The user must have the third party stats provider role. + /// + THIRD_PARTY_STATS_PROVIDER_IS_WRONG_ROLE_TYPE = 4, + /// Labels can only be applied to Company.Type#ADVERTISER, Company.Type#HOUSE_ADVERTISER, and Company.Type#AD_NETWORK company types. + /// + INVALID_LABEL_ASSOCIATION = 6, + /// Indicates that the Company.Type does not support + /// default billing settings. + /// + INVALID_COMPANY_TYPE_FOR_DEFAULT_BILLING_SETTING = 7, + /// Indicates that the format of the default billing setting is wrong. + /// + INVALID_DEFAULT_BILLING_SETTING = 8, + /// Cannot remove the cross selling config from a company that has active share + /// assignments. + /// + COMPANY_HAS_ACTIVE_SHARE_ASSIGNMENTS = 9, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 5, + } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool programmaticCreativeSourceSpecified { - get { - return this.programmaticCreativeSourceFieldSpecified; - } - set { - this.programmaticCreativeSourceFieldSpecified = value; - } - } - [System.Xml.Serialization.XmlElementAttribute(Order = 53)] - public ThirdPartyMeasurementSettings thirdPartyMeasurementSettings { - get { - return this.thirdPartyMeasurementSettingsField; - } - set { - this.thirdPartyMeasurementSettingsField = value; - } - } + /// Caused by creating an AdUnit object with an invalid + /// hierarchy. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class AdUnitHierarchyError : ApiError { + private AdUnitHierarchyErrorReason reasonField; - /// Designates this line item as intended for YT Kids app. If true, all creatives - /// associated with this line item must be reviewed and approved. See the Ad Manager - /// Help Center for more information. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 54)] - public bool youtubeKidsRestricted { + private bool reasonFieldSpecified; + + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public AdUnitHierarchyErrorReason reason { get { - return this.youtubeKidsRestrictedField; + return this.reasonField; } set { - this.youtubeKidsRestrictedField = value; - this.youtubeKidsRestrictedSpecified = true; + this.reasonField = value; + this.reasonSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , + /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool youtubeKidsRestrictedSpecified { + public bool reasonSpecified { get { - return this.youtubeKidsRestrictedFieldSpecified; + return this.reasonFieldSpecified; } set { - this.youtubeKidsRestrictedFieldSpecified = value; + this.reasonFieldSpecified = value; } } + } - /// The max duration of a video creative associated with this in - /// milliseconds.

This attribute is only meaningful for video line items. For - /// version v202011 and earlier, this attribute is optional and defaults to 0. For - /// version v202102 and later, this attribute is required for video line items and - /// must be greater than 0.

+ + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AdUnitHierarchyError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum AdUnitHierarchyErrorReason { + /// The depth of the AdUnit in the inventory hierarchy is + /// greater than is allowed. The maximum allowed depth is two below the effective + /// root ad unit for Ad Manager 360 accounts and is one level below the effective + /// root ad unit for Ad Manager accounts. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 55)] - public long videoMaxDuration { + INVALID_DEPTH = 0, + /// The only valid AdUnit#parentId for an Ad Manager + /// account is the Network#effectiveRootAdUnitId, Ad + /// Manager 360 accounts can specify an ad unit hierarchy with more than two levels. + /// + INVALID_PARENT = 1, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 2, + } + + + /// Error for AdSense related API calls. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class AdSenseAccountError : ApiError { + private AdSenseAccountErrorReason reasonField; + + private bool reasonFieldSpecified; + + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public AdSenseAccountErrorReason reason { get { - return this.videoMaxDurationField; + return this.reasonField; } set { - this.videoMaxDurationField = value; - this.videoMaxDurationSpecified = true; + this.reasonField = value; + this.reasonSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , + /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool videoMaxDurationSpecified { + public bool reasonSpecified { get { - return this.videoMaxDurationFieldSpecified; + return this.reasonFieldSpecified; } set { - this.videoMaxDurationFieldSpecified = value; + this.reasonFieldSpecified = value; } } + } - /// The primary goal that this LineItem is associated with, which is - /// used in its pacing and budgeting. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 56)] - public Goal primaryGoal { - get { - return this.primaryGoalField; - } - set { - this.primaryGoalField = value; - } - } - /// The secondary goals that this LineItem is associated with. It is - /// required and meaningful only if the LineItem#costType is CostType.CPA or if the LineItem#lineItemType is LineItemType#SPONSORSHIP and LineItem#costType is CostType.CPM. + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AdSenseAccountError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum AdSenseAccountErrorReason { + /// An error occurred while trying to associate an AdSense account with Ad Manager. + /// Unable to create an association with AdSense or Ad Exchange account. /// - [System.Xml.Serialization.XmlElementAttribute("secondaryGoals", Order = 57)] - public Goal[] secondaryGoals { - get { - return this.secondaryGoalsField; - } - set { - this.secondaryGoalsField = value; - } - } - - /// Contains the information for a line item which has a target GRP demographic. + ASSOCIATE_ACCOUNT_API_ERROR = 0, + /// An error occurred while a user without a valid AdSense account trying to access + /// an Ads frontend. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 58)] - public GrpSettings grpSettings { - get { - return this.grpSettingsField; - } - set { - this.grpSettingsField = value; - } - } + CANNOT_ACCESS_INVALID_ACCOUNT = 7, + /// An error occurred while AdSense denied access. + /// + ACCOUNT_ACCESS_DENIED = 8, + /// An error occurred while trying to get an associated web property's ad slots. + /// Unable to retrieve ad slot information from AdSense or Ad Exchange account. + /// + GET_AD_SLOT_API_ERROR = 1, + /// An error occurred while trying to get an associated web property's ad channels. + /// + GET_CHANNEL_API_ERROR = 2, + /// An error occurred while trying to retrieve account statues from AdSense API. + /// Unable to retrieve account status information. Please try again later. + /// + GET_BULK_ACCOUNT_STATUSES_API_ERROR = 3, + /// An error occurred while trying to resend the account association verification + /// email. Error resending verification email. Please try again. + /// + RESEND_VERIFICATION_EMAIL_ERROR = 4, + /// An error occurred while trying to retrieve a response from the AdSense API. + /// There was a problem processing your request. Please try again later. + /// + UNEXPECTED_API_RESPONSE_ERROR = 5, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 6, + } - /// The deal information associated with this line item, if it is programmatic. + + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", ConfigurationName = "Google.Api.Ads.AdManager.v202411.InventoryServiceInterface")] + public interface InventoryServiceInterface + { + // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Wrappers.InventoryService.createAdUnitsResponse createAdUnits(Wrappers.InventoryService.createAdUnitsRequest request); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + System.Threading.Tasks.Task createAdUnitsAsync(Wrappers.InventoryService.createAdUnitsRequest request); + + // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Wrappers.InventoryService.getAdUnitSizesByStatementResponse getAdUnitSizesByStatement(Wrappers.InventoryService.getAdUnitSizesByStatementRequest request); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + System.Threading.Tasks.Task getAdUnitSizesByStatementAsync(Wrappers.InventoryService.getAdUnitSizesByStatementRequest request); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v202411.AdUnitPage getAdUnitsByStatement(Google.Api.Ads.AdManager.v202411.Statement filterStatement); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task getAdUnitsByStatementAsync(Google.Api.Ads.AdManager.v202411.Statement filterStatement); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v202411.UpdateResult performAdUnitAction(Google.Api.Ads.AdManager.v202411.AdUnitAction adUnitAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task performAdUnitActionAsync(Google.Api.Ads.AdManager.v202411.AdUnitAction adUnitAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement); + + // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Wrappers.InventoryService.updateAdUnitsResponse updateAdUnits(Wrappers.InventoryService.updateAdUnitsRequest request); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + System.Threading.Tasks.Task updateAdUnitsAsync(Wrappers.InventoryService.updateAdUnitsRequest request); + } + + + /// Captures a page of AdUnit objects. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class AdUnitPage { + private int totalResultSetSizeField; + + private bool totalResultSetSizeFieldSpecified; + + private int startIndexField; + + private bool startIndexFieldSpecified; + + private AdUnit[] resultsField; + + /// The size of the total result set to which this page belongs. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 59)] - public LineItemDealInfoDto dealInfo { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public int totalResultSetSize { get { - return this.dealInfoField; + return this.totalResultSetSizeField; } set { - this.dealInfoField = value; + this.totalResultSetSizeField = value; + this.totalResultSetSizeSpecified = true; } } - /// Optional IDs of the Company that provide ad verification - /// for this line item. Company.Type#VIEWABILITY_PROVIDER. - /// - [System.Xml.Serialization.XmlElementAttribute("viewabilityProviderCompanyIds", Order = 60)] - public long[] viewabilityProviderCompanyIds { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool totalResultSetSizeSpecified { get { - return this.viewabilityProviderCompanyIdsField; + return this.totalResultSetSizeFieldSpecified; } set { - this.viewabilityProviderCompanyIdsField = value; + this.totalResultSetSizeFieldSpecified = value; } } - /// Child content eligibility designation for this line item.

This field is - /// optional and defaults to ChildContentEligibility#DISALLOWED.

+ /// The absolute index in the total result set on which this page begins. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 61)] - public ChildContentEligibility childContentEligibility { + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public int startIndex { get { - return this.childContentEligibilityField; + return this.startIndexField; } set { - this.childContentEligibilityField = value; - this.childContentEligibilitySpecified = true; + this.startIndexField = value; + this.startIndexSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool childContentEligibilitySpecified { + public bool startIndexSpecified { get { - return this.childContentEligibilityFieldSpecified; + return this.startIndexFieldSpecified; } set { - this.childContentEligibilityFieldSpecified = value; + this.startIndexFieldSpecified = value; } } - /// Custom XML to be rendered in a custom VAST response at serving time. + /// The collection of ad units contained within this page. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 62)] - public string customVastExtension { + [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] + public AdUnit[] results { get { - return this.customVastExtensionField; + return this.resultsField; } set { - this.customVastExtensionField = value; + this.resultsField = value; } } } - /// Specifies the start type to use for an entity with a start date time field. For - /// example, a LineItem or LineItemCreativeAssociation. + /// Represents the actions that can be performed on AdUnit + /// objects. /// + [System.Xml.Serialization.XmlIncludeAttribute(typeof(DeactivateAdUnits))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ArchiveAdUnits))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ActivateAdUnits))] [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum StartDateTimeType { - /// Use the value in #startDateTime. - /// - USE_START_DATE_TIME = 0, - /// The entity will start serving immediately. #startDateTime in the request is ignored and will be - /// set to the current time. Additionally, #startDateTimeType will be set to StartDateTimeType#USE_START_DATE_TIME. - /// - IMMEDIATELY = 1, - /// The entity will start serving one hour from now. #startDateTime in the request is ignored and will be - /// set to one hour from the current time. Additionally, #startDateTimeType will be set to StartDateTimeType#USE_START_DATE_TIME. - /// - ONE_HOUR_FROM_NOW = 2, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 3, + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public abstract partial class AdUnitAction { } - /// The strategy to use for displaying multiple Creative - /// objects that are associated with a LineItem. + /// The action used for deactivating AdUnit objects. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum CreativeRotationType { - /// Creatives are displayed roughly the same number of times over the duration of - /// the line item. - /// - EVEN = 0, - /// Creatives are served roughly proportionally to their performance. - /// - OPTIMIZED = 1, - /// Creatives are served roughly proportionally to their weights, set on the LineItemCreativeAssociation. - /// - MANUAL = 2, - /// Creatives are served exactly in sequential order, aka Storyboarding. Set on the - /// LineItemCreativeAssociation. - /// - SEQUENTIAL = 3, + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class DeactivateAdUnits : AdUnitAction { } - /// Strategies for choosing forecasted traffic shapes to pace line items. + /// The action used for archiving AdUnit objects. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum DeliveryForecastSource { - /// The line item's historical traffic shape will be used to pace line item - /// delivery. - /// - HISTORICAL = 0, - /// The line item's projected future traffic will be used to pace line item - /// delivery. - /// - FORECASTING = 1, - /// A user specified custom pacing curve will be used to pace line item delivery. - /// - CUSTOM_PACING_CURVE = 3, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 2, + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ArchiveAdUnits : AdUnitAction { } - /// Describes the LineItem actions that are billable. + /// The action used for activating AdUnit objects. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum CostType { - /// Cost per action. The LineItem#lineItemType - /// must be one of: - /// - CPA = 0, - /// Cost per click. The LineItem#lineItemType - /// must be one of: - /// - CPC = 1, - /// Cost per day. The LineItem#lineItemType must - /// be one of: - /// - CPD = 2, - /// Cost per mille (cost per thousand impressions). The LineItem#lineItemType must be one of: - /// - CPM = 3, - /// Cost per thousand Active View viewable impressions. The LineItem#lineItemType must be LineItemType#STANDARD. - /// - VCPM = 5, - /// Cost per thousand in-target impressions. The LineItem#lineItemType must be LineItemType#STANDARD. - /// - CPM_IN_TARGET = 6, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 4, + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ActivateAdUnits : AdUnitAction { } - /// Describes the possible discount types on the cost of booking a LineItem. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum LineItemDiscountType { - /// An absolute value will be discounted from the line item's cost. - /// - ABSOLUTE_VALUE = 0, - /// A percentage of the cost will be applied as discount for booking the line item. - /// - PERCENTAGE = 1, + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + public interface InventoryServiceInterfaceChannel : Google.Api.Ads.AdManager.v202411.InventoryServiceInterface, System.ServiceModel.IClientChannel + { } - /// Specifies the reservation status of the LineItem. + /// Provides operations for creating, updating and retrieving AdUnit objects.

Line items connect a creative with its + /// associated ad unit through targeting.

An ad unit represents a piece of + /// inventory within a publisher. It contains all the settings that need to be + /// associated with the inventory in order to serve ads. For example, the ad unit + /// contains creative size restrictions and AdSense settings.

///
- [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "LineItemSummary.ReservationStatus", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum LineItemSummaryReservationStatus { - /// Indicates that inventory has been reserved for the line item. + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + public partial class InventoryService : AdManagerSoapClient, IInventoryService { + /// Creates a new instance of the class. /// - RESERVED = 0, - /// Indicates that inventory has not been reserved for the line item. + public InventoryService() { + } + + /// Creates a new instance of the class. /// - UNRESERVED = 1, - } + public InventoryService(string endpointConfigurationName) + : base(endpointConfigurationName) { + } + /// Creates a new instance of the class. + /// + public InventoryService(string endpointConfigurationName, string remoteAddress) + : base(endpointConfigurationName, remoteAddress) { + } - /// The scope to which the assignment of any competitive exclusion labels for a - /// video line item is limited. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum CompetitiveConstraintScope { - /// The competitive exclusion label applies to all line items within a single pod - /// (or group). + /// Creates a new instance of the class. /// - POD = 0, - /// The competitive exclusion label applies to all line items within the entire - /// stream of content. + public InventoryService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) + : base(endpointConfigurationName, remoteAddress) { + } + + /// Creates a new instance of the class. /// - STREAM = 1, - /// The value returned if the actual value is not exposed by the requested API - /// version. + public InventoryService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) + : base(binding, remoteAddress) { + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + Wrappers.InventoryService.createAdUnitsResponse Google.Api.Ads.AdManager.v202411.InventoryServiceInterface.createAdUnits(Wrappers.InventoryService.createAdUnitsRequest request) { + return base.Channel.createAdUnits(request); + } + + /// Creates new AdUnit objects. /// - UNKNOWN = 2, - } + public virtual Google.Api.Ads.AdManager.v202411.AdUnit[] createAdUnits(Google.Api.Ads.AdManager.v202411.AdUnit[] adUnits) { + Wrappers.InventoryService.createAdUnitsRequest inValue = new Wrappers.InventoryService.createAdUnitsRequest(); + inValue.adUnits = adUnits; + Wrappers.InventoryService.createAdUnitsResponse retVal = ((Google.Api.Ads.AdManager.v202411.InventoryServiceInterface)(this)).createAdUnits(inValue); + return retVal.rval; + } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202411.InventoryServiceInterface.createAdUnitsAsync(Wrappers.InventoryService.createAdUnitsRequest request) { + return base.Channel.createAdUnitsAsync(request); + } - /// Child content eligibility designation.

This field is optional and defaults to - /// ChildContentEligibility#DISALLOWED. - /// This field has no effect on serving enforcement unless you opt to "Child content - /// enforcement" in the network's Child Content settings.

- ///
- [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum ChildContentEligibility { - UNKNOWN = 0, - /// This line item is not eligible to serve on any requests that are child-directed. + public virtual System.Threading.Tasks.Task createAdUnitsAsync(Google.Api.Ads.AdManager.v202411.AdUnit[] adUnits) { + Wrappers.InventoryService.createAdUnitsRequest inValue = new Wrappers.InventoryService.createAdUnitsRequest(); + inValue.adUnits = adUnits; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202411.InventoryServiceInterface)(this)).createAdUnitsAsync(inValue)).Result.rval); + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + Wrappers.InventoryService.getAdUnitSizesByStatementResponse Google.Api.Ads.AdManager.v202411.InventoryServiceInterface.getAdUnitSizesByStatement(Wrappers.InventoryService.getAdUnitSizesByStatementRequest request) { + return base.Channel.getAdUnitSizesByStatement(request); + } + + /// Returns a set of all relevant AdUnitSize objects. + ///

The given Statement is currently ignored but may be + /// honored in future versions.

///
- DISALLOWED = 1, - /// This line item is eligible to serve on requests that are child-directed. + public virtual Google.Api.Ads.AdManager.v202411.AdUnitSize[] getAdUnitSizesByStatement(Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + Wrappers.InventoryService.getAdUnitSizesByStatementRequest inValue = new Wrappers.InventoryService.getAdUnitSizesByStatementRequest(); + inValue.filterStatement = filterStatement; + Wrappers.InventoryService.getAdUnitSizesByStatementResponse retVal = ((Google.Api.Ads.AdManager.v202411.InventoryServiceInterface)(this)).getAdUnitSizesByStatement(inValue); + return retVal.rval; + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202411.InventoryServiceInterface.getAdUnitSizesByStatementAsync(Wrappers.InventoryService.getAdUnitSizesByStatementRequest request) { + return base.Channel.getAdUnitSizesByStatementAsync(request); + } + + public virtual System.Threading.Tasks.Task getAdUnitSizesByStatementAsync(Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + Wrappers.InventoryService.getAdUnitSizesByStatementRequest inValue = new Wrappers.InventoryService.getAdUnitSizesByStatementRequest(); + inValue.filterStatement = filterStatement; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202411.InventoryServiceInterface)(this)).getAdUnitSizesByStatementAsync(inValue)).Result.rval); + } + + /// Gets a AdUnitPage of AdUnit + /// objects that satisfy the given Statement#query. The following + /// fields are supported for filtering: + /// + /// + /// + /// + /// + /// + ///
PQL + /// Property Object Property
adUnitCode AdUnit#adUnitCode
id AdUnit#id
name AdUnit#name
parentId AdUnit#parentId
status AdUnit#status
lastModifiedDateTime AdUnit#lastModifiedDateTime
///
- ALLOWED = 2, - } + public virtual Google.Api.Ads.AdManager.v202411.AdUnitPage getAdUnitsByStatement(Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.getAdUnitsByStatement(filterStatement); + } + + public virtual System.Threading.Tasks.Task getAdUnitsByStatementAsync(Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.getAdUnitsByStatementAsync(filterStatement); + } + /// Performs actions on AdUnit objects that match the given Statement#query. + /// + public virtual Google.Api.Ads.AdManager.v202411.UpdateResult performAdUnitAction(Google.Api.Ads.AdManager.v202411.AdUnitAction adUnitAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.performAdUnitAction(adUnitAction, filterStatement); + } - /// LineItem is an advertiser's commitment to purchase a - /// specific number of ad impressions, clicks, or time. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class LineItem : LineItemSummary { - private Targeting targetingField; + public virtual System.Threading.Tasks.Task performAdUnitActionAsync(Google.Api.Ads.AdManager.v202411.AdUnitAction adUnitAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.performAdUnitActionAsync(adUnitAction, filterStatement); + } - private CreativeTargeting[] creativeTargetingsField; + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + Wrappers.InventoryService.updateAdUnitsResponse Google.Api.Ads.AdManager.v202411.InventoryServiceInterface.updateAdUnits(Wrappers.InventoryService.updateAdUnitsRequest request) { + return base.Channel.updateAdUnits(request); + } - /// Contains the targeting criteria for the ad campaign. This attribute is required. + /// Updates the specified AdUnit objects. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public Targeting targeting { - get { - return this.targetingField; + public virtual Google.Api.Ads.AdManager.v202411.AdUnit[] updateAdUnits(Google.Api.Ads.AdManager.v202411.AdUnit[] adUnits) { + Wrappers.InventoryService.updateAdUnitsRequest inValue = new Wrappers.InventoryService.updateAdUnitsRequest(); + inValue.adUnits = adUnits; + Wrappers.InventoryService.updateAdUnitsResponse retVal = ((Google.Api.Ads.AdManager.v202411.InventoryServiceInterface)(this)).updateAdUnits(inValue); + return retVal.rval; + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202411.InventoryServiceInterface.updateAdUnitsAsync(Wrappers.InventoryService.updateAdUnitsRequest request) { + return base.Channel.updateAdUnitsAsync(request); + } + + public virtual System.Threading.Tasks.Task updateAdUnitsAsync(Google.Api.Ads.AdManager.v202411.AdUnit[] adUnits) { + Wrappers.InventoryService.updateAdUnitsRequest inValue = new Wrappers.InventoryService.updateAdUnitsRequest(); + inValue.adUnits = adUnits; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202411.InventoryServiceInterface)(this)).updateAdUnitsAsync(inValue)).Result.rval); + } + } + namespace Wrappers.LabelService + { + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "createLabels", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class createLabelsRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("labels")] + public Google.Api.Ads.AdManager.v202411.Label[] labels; + + /// Creates a new instance of the class. + /// + public createLabelsRequest() { } - set { - this.targetingField = value; + + /// Creates a new instance of the class. + /// + public createLabelsRequest(Google.Api.Ads.AdManager.v202411.Label[] labels) { + this.labels = labels; } } - /// A list of CreativeTargeting objects that can be - /// used to specify creative level targeting for this line item. Creative level - /// targeting is specified in a creative placeholder's CreativePlaceholder#targetingName - /// field by referencing the creative targeting's CreativeTargeting#name - /// name. It also needs to be re-specified in the LineItemCreativeAssociation#targetingName field when associating a - /// line item with a creative that fits into that placeholder. - /// - [System.Xml.Serialization.XmlElementAttribute("creativeTargetings", Order = 1)] - public CreativeTargeting[] creativeTargetings { - get { - return this.creativeTargetingsField; + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "createLabelsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class createLabelsResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("rval")] + public Google.Api.Ads.AdManager.v202411.Label[] rval; + + /// Creates a new instance of the + /// class. + public createLabelsResponse() { } - set { - this.creativeTargetingsField = value; + + /// Creates a new instance of the + /// class. + public createLabelsResponse(Google.Api.Ads.AdManager.v202411.Label[] rval) { + this.rval = rval; } } - } - /// Represents a prospective line item to be forecasted. + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "updateLabels", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class updateLabelsRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("labels")] + public Google.Api.Ads.AdManager.v202411.Label[] labels; + + /// Creates a new instance of the class. + /// + public updateLabelsRequest() { + } + + /// Creates a new instance of the class. + /// + public updateLabelsRequest(Google.Api.Ads.AdManager.v202411.Label[] labels) { + this.labels = labels; + } + } + + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "updateLabelsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class updateLabelsResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("rval")] + public Google.Api.Ads.AdManager.v202411.Label[] rval; + + /// Creates a new instance of the + /// class. + public updateLabelsResponse() { + } + + /// Creates a new instance of the + /// class. + public updateLabelsResponse(Google.Api.Ads.AdManager.v202411.Label[] rval) { + this.rval = rval; + } + } + } + /// A canonical ad category. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ProspectiveLineItem { - private LineItem lineItemField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class AdCategoryDto { + private long idField; - private ProposalLineItem proposalLineItemField; + private bool idFieldSpecified; - private long advertiserIdField; + private string displayNameField; - private bool advertiserIdFieldSpecified; + private long parentIdField; - /// The target of the forecast. If LineItem#id is null or - /// no line item exists with that ID, then a forecast is computed for the subject, - /// predicting what would happen if it were added to the network. If a line item - /// already exists with LineItem#id, the forecast is - /// computed for the subject, predicting what would happen if the existing line - /// item's settings were modified to match the subject. + private bool parentIdFieldSpecified; + + /// Canonical ID of the ad category. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public LineItem lineItem { + public long id { get { - return this.lineItemField; + return this.idField; } set { - this.lineItemField = value; + this.idField = value; + this.idSpecified = true; } } - /// The target of the forecast if this prospective line item is a proposal line - /// item.

If ProposalLineItem#id is null or no - /// proposal line item exists with that ID, then a forecast is computed for the - /// subject, predicting what would happen if it were added to the network. If a - /// proposal line item already exists with ProposalLineItem#id, the forecast is computed for - /// the subject, predicting what would happen if the existing proposal line item's - /// settings were modified to match the subject.

A proposal line item can - /// optionally correspond to an order LineItem, in which - /// case, by forecasting a proposal line item, the corresponding line item is - /// implicitly ignored in the forecasting.

Either #lineItem or #proposalLineItem should be specified but not - /// both.

+ /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool idSpecified { + get { + return this.idFieldSpecified; + } + set { + this.idFieldSpecified = value; + } + } + + /// Localized name of the category. /// [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public ProposalLineItem proposalLineItem { + public string displayName { get { - return this.proposalLineItemField; + return this.displayNameField; } set { - this.proposalLineItemField = value; + this.displayNameField = value; } } - /// When set, the line item is assumed to be from this advertiser, and unified - /// blocking rules will apply accordingly. If absent, line items without an existing - /// order won't be subject to unified blocking rules. + /// ID of the category's parent, or 0 if it has no parent. /// [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public long advertiserId { + public long parentId { get { - return this.advertiserIdField; + return this.parentIdField; } set { - this.advertiserIdField = value; - this.advertiserIdSpecified = true; + this.parentIdField = value; + this.parentIdSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool advertiserIdSpecified { + public bool parentIdSpecified { get { - return this.advertiserIdFieldSpecified; + return this.parentIdFieldSpecified; } set { - this.advertiserIdFieldSpecified = value; + this.parentIdFieldSpecified = value; } } } - /// Lists all errors related to VideoPositionTargeting. + /// A Label is additional information that can be added to an entity. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class VideoPositionTargetingError : ApiError { - private VideoPositionTargetingErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class Label { + private long idField; - private bool reasonFieldSpecified; + private bool idFieldSpecified; + + private string nameField; + + private string descriptionField; + + private bool isActiveField; + + private bool isActiveFieldSpecified; + + private AdCategoryDto adCategoryField; + + private LabelType[] typesField; + /// Unique ID of the Label. This value is readonly and is assigned by + /// Google. + /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public VideoPositionTargetingErrorReason reason { + public long id { get { - return this.reasonField; + return this.idField; } set { - this.reasonField = value; - this.reasonSpecified = true; + this.idField = value; + this.idSpecified = true; } } - /// true, if a value is specified for , + /// true, if a value is specified for , /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { + public bool idSpecified { get { - return this.reasonFieldSpecified; + return this.idFieldSpecified; } set { - this.reasonFieldSpecified = value; + this.idFieldSpecified = value; } } - } - - /// The reasons for the video position targeting error. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "VideoPositionTargetingError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum VideoPositionTargetingErrorReason { - /// Video position targeting cannot contain both bumper and non-bumper targeting - /// values. - /// - CANNOT_MIX_BUMPER_AND_NON_BUMPER_TARGETING = 0, - /// The bumper video position targeting is invalid. - /// - INVALID_BUMPER_TARGETING = 1, - /// Only custom spot AdSpot objects can be targeted. - /// - CAN_ONLY_TARGET_CUSTOM_AD_SPOTS = 3, - /// The value returned if the actual value is not exposed by the requested API - /// version. + /// Name of the Label. This is value is required to create a label and + /// has a maximum length of 127 characters. /// - UNKNOWN = 2, - } - - - /// Lists all errors related to user domain targeting for a line item. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class UserDomainTargetingError : ApiError { - private UserDomainTargetingErrorReason reasonField; + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public string name { + get { + return this.nameField; + } + set { + this.nameField = value; + } + } - private bool reasonFieldSpecified; + /// A description of the label. This value is optional and its maximum length is 255 + /// characters. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public string description { + get { + return this.descriptionField; + } + set { + this.descriptionField = value; + } + } - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public UserDomainTargetingErrorReason reason { + /// Specifies whether or not the label is active. This attribute is read-only. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 3)] + public bool isActive { get { - return this.reasonField; + return this.isActiveField; } set { - this.reasonField = value; - this.reasonSpecified = true; + this.isActiveField = value; + this.isActiveSpecified = true; } } - /// true, if a value is specified for , - /// false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { + public bool isActiveSpecified { get { - return this.reasonFieldSpecified; + return this.isActiveFieldSpecified; } set { - this.reasonFieldSpecified = value; + this.isActiveFieldSpecified = value; } } - } - - /// ApiErrorReason enum for user domain targeting - /// error. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "UserDomainTargetingError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum UserDomainTargetingErrorReason { - /// Invalid domain names. Domain names must be at most 67 characters long. And must - /// contain only alphanumeric characters and hyphens. - /// - INVALID_DOMAIN_NAMES = 0, - /// The value returned if the actual value is not exposed by the requested API - /// version. + /// Indicates the Ad Category associated with the label. /// - UNKNOWN = 1, - } - - - /// Errors related to timezones. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class TimeZoneError : ApiError { - private TimeZoneErrorReason reasonField; - - private bool reasonFieldSpecified; - - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public TimeZoneErrorReason reason { + [System.Xml.Serialization.XmlElementAttribute(Order = 4)] + public AdCategoryDto adCategory { get { - return this.reasonField; + return this.adCategoryField; } set { - this.reasonField = value; - this.reasonSpecified = true; + this.adCategoryField = value; } } - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { + /// The types of the Label. + /// + [System.Xml.Serialization.XmlElementAttribute("types", Order = 5)] + public LabelType[] types { get { - return this.reasonFieldSpecified; + return this.typesField; } set { - this.reasonFieldSpecified = value; + this.typesField = value; } } } - /// Describes reasons for invalid timezone. + /// Represents the types of labels supported. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "TimeZoneError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum TimeZoneErrorReason { - /// Indicates that the timezone ID provided is not supported. + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum LabelType { + /// Allows for the creation of labels to exclude competing ads from showing on the + /// same page. /// - INVALID_TIMEZONE_ID = 0, - /// Indicates that the timezone ID provided is in the wrong format. The timezone ID - /// must be in tz database format (e.g. "America/Los_Angeles"). + COMPETITIVE_EXCLUSION = 0, + /// Allows for the creation of limits on the frequency that a user sees a particular + /// type of creative over a portion of the inventory. /// - TIMEZONE_ID_IN_WRONG_FORMAT = 1, + AD_UNIT_FREQUENCY_CAP = 1, + /// Allows for the creation of labels to exclude ads from showing against a tag that + /// specifies the label as an exclusion. + /// + AD_EXCLUSION = 2, + /// Allows for the creation of labels that can be used to force the wrapping of a + /// delivering creative with header/footer creatives. These labels are paired with a + /// CreativeWrapper. + /// + CREATIVE_WRAPPER = 3, + /// Allows for the creation of labels mapped to a Google canonical ad category, + /// which can be used for competitive exclusions and blocking across Google systems. + /// + CANONICAL_CATEGORY = 5, /// The value returned if the actual value is not exposed by the requested API /// version. /// - UNKNOWN = 2, + UNKNOWN = 4, } - /// Technology targeting validation errors. + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", ConfigurationName = "Google.Api.Ads.AdManager.v202411.LabelServiceInterface")] + public interface LabelServiceInterface + { + // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Wrappers.LabelService.createLabelsResponse createLabels(Wrappers.LabelService.createLabelsRequest request); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + System.Threading.Tasks.Task createLabelsAsync(Wrappers.LabelService.createLabelsRequest request); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v202411.LabelPage getLabelsByStatement(Google.Api.Ads.AdManager.v202411.Statement filterStatement); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task getLabelsByStatementAsync(Google.Api.Ads.AdManager.v202411.Statement filterStatement); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v202411.UpdateResult performLabelAction(Google.Api.Ads.AdManager.v202411.LabelAction labelAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task performLabelActionAsync(Google.Api.Ads.AdManager.v202411.LabelAction labelAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement); + + // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Wrappers.LabelService.updateLabelsResponse updateLabels(Wrappers.LabelService.updateLabelsRequest request); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + System.Threading.Tasks.Task updateLabelsAsync(Wrappers.LabelService.updateLabelsRequest request); + } + + + /// Captures a page of Label objects. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class TechnologyTargetingError : ApiError { - private TechnologyTargetingErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class LabelPage { + private int totalResultSetSizeField; - private bool reasonFieldSpecified; + private bool totalResultSetSizeFieldSpecified; + + private int startIndexField; + private bool startIndexFieldSpecified; + + private Label[] resultsField; + + /// The size of the total result set to which this page belongs. + /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public TechnologyTargetingErrorReason reason { + public int totalResultSetSize { get { - return this.reasonField; + return this.totalResultSetSizeField; } set { - this.reasonField = value; - this.reasonSpecified = true; + this.totalResultSetSizeField = value; + this.totalResultSetSizeSpecified = true; } } - /// true, if a value is specified for , - /// false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { + public bool totalResultSetSizeSpecified { get { - return this.reasonFieldSpecified; + return this.totalResultSetSizeFieldSpecified; } set { - this.reasonFieldSpecified = value; + this.totalResultSetSizeFieldSpecified = value; } } - } - - - /// The reasons for the target error. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "TechnologyTargetingError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum TechnologyTargetingErrorReason { - /// Mobile line item cannot target web-only targeting criteria. - /// - MOBILE_LINE_ITEM_CONTAINS_WEB_TECH_CRITERIA = 0, - /// Web line item cannot target mobile-only targeting criteria. - /// - WEB_LINE_ITEM_CONTAINS_MOBILE_TECH_CRITERIA = 1, - /// The mobile carrier targeting feature is not enabled. - /// - MOBILE_CARRIER_TARGETING_FEATURE_NOT_ENABLED = 2, - /// The device capability targeting feature is not enabled. - /// - DEVICE_CAPABILITY_TARGETING_FEATURE_NOT_ENABLED = 3, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 5, - } - - - /// Errors related to a Team. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class TeamError : ApiError { - private TeamErrorReason reasonField; - - private bool reasonFieldSpecified; - /// The error reason represented by an enum. + /// The absolute index in the total result set on which this page begins. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public TeamErrorReason reason { + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public int startIndex { get { - return this.reasonField; + return this.startIndexField; } set { - this.reasonField = value; - this.reasonSpecified = true; + this.startIndexField = value; + this.startIndexSpecified = true; } } - /// true, if a value is specified for , - /// false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { + public bool startIndexSpecified { get { - return this.reasonFieldSpecified; + return this.startIndexFieldSpecified; } set { - this.reasonFieldSpecified = value; + this.startIndexFieldSpecified = value; + } + } + + /// The collection of labels contained within this page. + /// + [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] + public Label[] results { + get { + return this.resultsField; + } + set { + this.resultsField = value; } } } - /// The reasons for the target error. + /// Represents the actions that can be performed on Label + /// objects. /// + [System.Xml.Serialization.XmlIncludeAttribute(typeof(DeactivateLabels))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ActivateLabels))] [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "TeamError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum TeamErrorReason { - /// User cannot use this entity because it is not on any of the user's teams. + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public abstract partial class LabelAction { + } + + + /// The action used for deactivating Label objects. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class DeactivateLabels : LabelAction { + } + + + /// The action used for activating Label objects. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ActivateLabels : LabelAction { + } + + + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + public interface LabelServiceInterfaceChannel : Google.Api.Ads.AdManager.v202411.LabelServiceInterface, System.ServiceModel.IClientChannel + { + } + + + /// Provides methods for the creation and management of Labels. + /// + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + public partial class LabelService : AdManagerSoapClient, ILabelService { + /// Creates a new instance of the class. /// - ENTITY_NOT_ON_USERS_TEAMS = 0, - /// The targeted or excluded ad unit must be on the order's teams. + public LabelService() { + } + + /// Creates a new instance of the class. /// - AD_UNITS_NOT_ON_ORDER_TEAMS = 1, - /// The targeted placement must be on the order's teams. + public LabelService(string endpointConfigurationName) + : base(endpointConfigurationName) { + } + + /// Creates a new instance of the class. /// - PLACEMENTS_NOT_ON_ORDER_TEAMS = 2, - /// Entity cannot be created because it is not on any of the user's teams. + public LabelService(string endpointConfigurationName, string remoteAddress) + : base(endpointConfigurationName, remoteAddress) { + } + + /// Creates a new instance of the class. /// - MISSING_USERS_TEAM = 3, - /// A team that gives access to all entities of a given type cannot be associated - /// with an entity of that type. + public LabelService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) + : base(endpointConfigurationName, remoteAddress) { + } + + /// Creates a new instance of the class. /// - ALL_TEAM_ASSOCIATION_NOT_ALLOWED = 4, - /// The assignment of team to entities is invalid. + public LabelService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) + : base(binding, remoteAddress) { + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + Wrappers.LabelService.createLabelsResponse Google.Api.Ads.AdManager.v202411.LabelServiceInterface.createLabels(Wrappers.LabelService.createLabelsRequest request) { + return base.Channel.createLabels(request); + } + + /// Creates new Label objects. /// - INVALID_TEAM_ASSIGNMENT = 7, - /// Cannot modify or create a team with an inactive status. + public virtual Google.Api.Ads.AdManager.v202411.Label[] createLabels(Google.Api.Ads.AdManager.v202411.Label[] labels) { + Wrappers.LabelService.createLabelsRequest inValue = new Wrappers.LabelService.createLabelsRequest(); + inValue.labels = labels; + Wrappers.LabelService.createLabelsResponse retVal = ((Google.Api.Ads.AdManager.v202411.LabelServiceInterface)(this)).createLabels(inValue); + return retVal.rval; + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202411.LabelServiceInterface.createLabelsAsync(Wrappers.LabelService.createLabelsRequest request) { + return base.Channel.createLabelsAsync(request); + } + + public virtual System.Threading.Tasks.Task createLabelsAsync(Google.Api.Ads.AdManager.v202411.Label[] labels) { + Wrappers.LabelService.createLabelsRequest inValue = new Wrappers.LabelService.createLabelsRequest(); + inValue.labels = labels; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202411.LabelServiceInterface)(this)).createLabelsAsync(inValue)).Result.rval); + } + + /// Gets a LabelPage of Label objects + /// that satisfy the given Statement#query. The following fields are + /// supported for filtering: + /// + /// + ///
PQL Property Object Property
id Label#id
type Label#type
nameLabel#name
description Label#description
isActive Label#isActive
///
- CANNOT_UPDATE_INACTIVE_TEAM = 8, - /// The value returned if the actual value is not exposed by the requested API - /// version. + public virtual Google.Api.Ads.AdManager.v202411.LabelPage getLabelsByStatement(Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.getLabelsByStatement(filterStatement); + } + + public virtual System.Threading.Tasks.Task getLabelsByStatementAsync(Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.getLabelsByStatementAsync(filterStatement); + } + + /// Performs actions on Label objects that match the given Statement#query. /// - UNKNOWN = 6, + public virtual Google.Api.Ads.AdManager.v202411.UpdateResult performLabelAction(Google.Api.Ads.AdManager.v202411.LabelAction labelAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.performLabelAction(labelAction, filterStatement); + } + + public virtual System.Threading.Tasks.Task performLabelActionAsync(Google.Api.Ads.AdManager.v202411.LabelAction labelAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.performLabelActionAsync(labelAction, filterStatement); + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + Wrappers.LabelService.updateLabelsResponse Google.Api.Ads.AdManager.v202411.LabelServiceInterface.updateLabels(Wrappers.LabelService.updateLabelsRequest request) { + return base.Channel.updateLabels(request); + } + + /// Updates the specified Label objects. + /// + public virtual Google.Api.Ads.AdManager.v202411.Label[] updateLabels(Google.Api.Ads.AdManager.v202411.Label[] labels) { + Wrappers.LabelService.updateLabelsRequest inValue = new Wrappers.LabelService.updateLabelsRequest(); + inValue.labels = labels; + Wrappers.LabelService.updateLabelsResponse retVal = ((Google.Api.Ads.AdManager.v202411.LabelServiceInterface)(this)).updateLabels(inValue); + return retVal.rval; + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202411.LabelServiceInterface.updateLabelsAsync(Wrappers.LabelService.updateLabelsRequest request) { + return base.Channel.updateLabelsAsync(request); + } + + public virtual System.Threading.Tasks.Task updateLabelsAsync(Google.Api.Ads.AdManager.v202411.Label[] labels) { + Wrappers.LabelService.updateLabelsRequest inValue = new Wrappers.LabelService.updateLabelsRequest(); + inValue.labels = labels; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202411.LabelServiceInterface)(this)).updateLabelsAsync(inValue)).Result.rval); + } } + namespace Wrappers.LineItemCreativeAssociationService + { + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "createLineItemCreativeAssociations", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class createLineItemCreativeAssociationsRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("lineItemCreativeAssociations")] + public Google.Api.Ads.AdManager.v202411.LineItemCreativeAssociation[] lineItemCreativeAssociations; + + /// Creates a new instance of the class. + public createLineItemCreativeAssociationsRequest() { + } + + /// Creates a new instance of the class. + public createLineItemCreativeAssociationsRequest(Google.Api.Ads.AdManager.v202411.LineItemCreativeAssociation[] lineItemCreativeAssociations) { + this.lineItemCreativeAssociations = lineItemCreativeAssociations; + } + } - /// Errors associated with set-top box line items. + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "createLineItemCreativeAssociationsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class createLineItemCreativeAssociationsResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("rval")] + public Google.Api.Ads.AdManager.v202411.LineItemCreativeAssociation[] rval; + + /// Creates a new instance of the class. + public createLineItemCreativeAssociationsResponse() { + } + + /// Creates a new instance of the class. + public createLineItemCreativeAssociationsResponse(Google.Api.Ads.AdManager.v202411.LineItemCreativeAssociation[] rval) { + this.rval = rval; + } + } + + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "getPreviewUrlsForNativeStyles", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class getPreviewUrlsForNativeStylesRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + public long lineItemId; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 1)] + public long creativeId; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 2)] + public string siteUrl; + + /// Creates a new instance of the class. + public getPreviewUrlsForNativeStylesRequest() { + } + + /// Creates a new instance of the class. + public getPreviewUrlsForNativeStylesRequest(long lineItemId, long creativeId, string siteUrl) { + this.lineItemId = lineItemId; + this.creativeId = creativeId; + this.siteUrl = siteUrl; + } + } + + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "getPreviewUrlsForNativeStylesResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class getPreviewUrlsForNativeStylesResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("rval")] + public Google.Api.Ads.AdManager.v202411.CreativeNativeStylePreview[] rval; + + /// Creates a new instance of the class. + public getPreviewUrlsForNativeStylesResponse() { + } + + /// Creates a new instance of the class. + public getPreviewUrlsForNativeStylesResponse(Google.Api.Ads.AdManager.v202411.CreativeNativeStylePreview[] rval) { + this.rval = rval; + } + } + + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "updateLineItemCreativeAssociations", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class updateLineItemCreativeAssociationsRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("lineItemCreativeAssociations")] + public Google.Api.Ads.AdManager.v202411.LineItemCreativeAssociation[] lineItemCreativeAssociations; + + /// Creates a new instance of the class. + public updateLineItemCreativeAssociationsRequest() { + } + + /// Creates a new instance of the class. + public updateLineItemCreativeAssociationsRequest(Google.Api.Ads.AdManager.v202411.LineItemCreativeAssociation[] lineItemCreativeAssociations) { + this.lineItemCreativeAssociations = lineItemCreativeAssociations; + } + } + + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "updateLineItemCreativeAssociationsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class updateLineItemCreativeAssociationsResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("rval")] + public Google.Api.Ads.AdManager.v202411.LineItemCreativeAssociation[] rval; + + /// Creates a new instance of the class. + public updateLineItemCreativeAssociationsResponse() { + } + + /// Creates a new instance of the class. + public updateLineItemCreativeAssociationsResponse(Google.Api.Ads.AdManager.v202411.LineItemCreativeAssociation[] rval) { + this.rval = rval; + } + } + } + /// This represents an entry in a map with a key of type Long and value of type + /// Stats. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class SetTopBoxLineItemError : ApiError { - private SetTopBoxLineItemErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class Long_StatsMapEntry { + private long keyField; - private bool reasonFieldSpecified; + private bool keyFieldSpecified; + + private Stats valueField; - /// The error reason represented by an enum. - /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public SetTopBoxLineItemErrorReason reason { + public long key { get { - return this.reasonField; + return this.keyField; } set { - this.reasonField = value; - this.reasonSpecified = true; + this.keyField = value; + this.keySpecified = true; } } - /// true, if a value is specified for , + /// true, if a value is specified for , /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { + public bool keySpecified { get { - return this.reasonFieldSpecified; + return this.keyFieldSpecified; } set { - this.reasonFieldSpecified = value; + this.keyFieldSpecified = value; + } + } + + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public Stats value { + get { + return this.valueField; + } + set { + this.valueField = value; } } } - /// Reason for set-top box error. + /// Contains statistics such as impressions, clicks delivered and cost for LineItemCreativeAssociation objects. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "SetTopBoxLineItemError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum SetTopBoxLineItemErrorReason { - /// The set-top box line item cannot target an ad unit that doesn't have an external - /// set-top box channel ID. + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class LineItemCreativeAssociationStats { + private Stats statsField; + + private Long_StatsMapEntry[] creativeSetStatsField; + + private Money costInOrderCurrencyField; + + /// A Stats object that holds delivered impressions and clicks + /// statistics. /// - NON_SET_TOP_BOX_AD_UNIT_TARGETED = 0, - /// The set-top box line item must target at least one ad unit. + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public Stats stats { + get { + return this.statsField; + } + set { + this.statsField = value; + } + } + + /// A map containing Stats objects for each creative belonging + /// to a creative set, null for non creative set associations. /// - AT_LEAST_ONE_AD_UNIT_MUST_BE_TARGETED = 1, - /// The set-top box line item cannot exclude ad units. + [System.Xml.Serialization.XmlElementAttribute("creativeSetStats", Order = 1)] + public Long_StatsMapEntry[] creativeSetStats { + get { + return this.creativeSetStatsField; + } + set { + this.creativeSetStatsField = value; + } + } + + /// The revenue generated thus far by the creative from its association with the + /// particular line item in the publisher's currency. /// - CANNOT_EXCLUDE_AD_UNITS = 2, - /// The set-top box line item can only target pod positions 1 - 15. - /// - POD_POSITION_OUT_OF_RANGE = 3, - /// The set-top box line item can only target midroll positions 4 - 100. - /// - MIDROLL_POSITION_OUT_OF_RANGE = 4, - /// The set-top box feature is not enabled. - /// - FEATURE_NOT_ENABLED = 5, - /// Only EnvironmentType#VIDEO_PLAYER is - /// supported for set-top box line items. - /// - INVALID_ENVIRONMENT_TYPE = 6, - /// Companions are not supported for set-top box line items. - /// - COMPANIONS_NOT_SUPPORTED = 7, - /// Set-top box line items only support sizes supported by Canoe. - /// - INVALID_CREATIVE_SIZE = 8, - /// Set-top box line items only support LineItemType#STANDARD, LineItemType#HOUSE, and LineItemType#SPONSORSHIP line item types. - /// - INVALID_LINE_ITEM_TYPE = 9, - /// orders containing LineItemType#STANDARD set-top box line items - /// cannot contain set-top box line items of type LineItemType#HOUSE or LineItemType#SPONSORSHIP. - /// - ORDERS_WITH_STANDARD_LINE_ITEMS_CANNOT_CONTAIN_HOUSE_OR_SPONSORSHIP_LINE_ITEMS = 10, - /// Set-top box line items only support CostType#CPM. - /// - INVALID_COST_TYPE = 11, - /// Set-top box line items do not support a cost per unit. - /// - COST_PER_UNIT_NOT_ALLOWED = 12, - /// Set-top box line items do not support discounts. - /// - DISCOUNT_NOT_ALLOWED = 13, - /// Set-top box line items do not support DeliveryRateType#FRONTLOADED. - /// - FRONTLOADED_DELIVERY_RATE_NOT_SUPPORTED = 14, - /// Set-top box line items cannot go from a state that is ready to be synced to a - /// state that is not ready to be synced. - /// - INVALID_LINE_ITEM_STATUS_CHANGE = 15, - /// Set-top box line items can only have certain priorities for different reservation types: - /// - INVALID_LINE_ITEM_PRIORITY = 16, - /// When a set-top box line item is pushed to Canoe, a revision number is used to - /// keep track of the last version of the line item that Ad Manager synced with - /// Canoe. The only change allowed on revisions within Ad Manager is increasing the - /// revision number. - /// - SYNC_REVISION_NOT_INCREASING = 17, - /// When a set-top box line item is pushed to Canoe, a revision number is used to - /// keep track of the last version of the line item that Ad Manager synced with - /// Canoe. Sync revisions begin at one and can only increase in value. - /// - SYNC_REVISION_MUST_BE_GREATER_THAN_ZERO = 18, - /// Set Top box line items cannot be unarchived. - /// - CANNOT_UNARCHIVE_SET_TOP_BOX_LINE_ITEMS = 19, - /// Set-top box enabled line items cannot be copied for V0 of the video Canoe - /// campaign push. - /// - COPY_SET_TOP_BOX_ENABLED_LINE_ITEM_NOT_ALLOWED = 20, - /// Standard set-top box line items cannot be updated to be LineItemType#House or LineItemType#Sponsorship line items and vice - /// versa. - /// - INVALID_LINE_ITEM_TYPE_CHANGE = 21, - /// Set-top box line items can only have a creative rotation type of CreativeRotationType.EVEN or CreativeRotationType#MANUAL. - /// - CREATIVE_ROTATION_TYPE_MUST_BE_EVENLY_OR_WEIGHTED = 22, - /// Set-top box line items can only have frequency capping with time units of TimeUnit#DAY, TimeUnit#HOUR, - /// TimeUnit#POD, or TimeUnit#STREAM. - /// - INVALID_FREQUENCY_CAP_TIME_UNIT = 23, - /// Set-top box line items can only have specific time ranges for certain time - /// units: - /// - INVALID_FREQUENCY_CAP_TIME_RANGE = 24, - /// Set-top box line items can only have a unit type of UnitType#IMPRESSIONS. - /// - INVALID_PRIMARY_GOAL_UNIT_TYPE = 25, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 26, + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public Money costInOrderCurrency { + get { + return this.costInOrderCurrencyField; + } + set { + this.costInOrderCurrencyField = value; + } + } } - /// Errors that could occur on audience segment related requests. + /// A LineItemCreativeAssociation associates a Creative or CreativeSet with a LineItem so that the creative can be served in ad units + /// targeted by the line item. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class AudienceSegmentError : ApiError { - private AudienceSegmentErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class LineItemCreativeAssociation { + private long lineItemIdField; - private bool reasonFieldSpecified; + private bool lineItemIdFieldSpecified; - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public AudienceSegmentErrorReason reason { - get { - return this.reasonField; - } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } + private long creativeIdField; - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { - return this.reasonFieldSpecified; - } - set { - this.reasonFieldSpecified = value; - } - } - } + private bool creativeIdFieldSpecified; + private long creativeSetIdField; - /// Reason of the given AudienceSegmentError. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AudienceSegmentError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum AudienceSegmentErrorReason { - /// First party audience segment is not supported. - /// - FIRST_PARTY_AUDIENCE_SEGMENT_NOT_SUPPORTED = 0, - /// Only rule-based first-party audience segments can be created. - /// - ONLY_RULE_BASED_FIRST_PARTY_AUDIENCE_SEGMENTS_CAN_BE_CREATED = 1, - /// Audience segment for the given id is not found. - /// - AUDIENCE_SEGMENT_ID_NOT_FOUND = 2, - /// Audience segment rule is invalid. - /// - INVALID_AUDIENCE_SEGMENT_RULE = 3, - /// Audience segment rule contains too many ad units and/or custom criteria. - /// - AUDIENCE_SEGMENT_RULE_TOO_LONG = 4, - /// Audience segment name is invalid. - /// - INVALID_AUDIENCE_SEGMENT_NAME = 5, - /// Audience segment with this name already exists. - /// - DUPLICATE_AUDIENCE_SEGMENT_NAME = 6, - /// Audience segment description is invalid. - /// - INVALID_AUDIENCE_SEGMENT_DESCRIPTION = 7, - /// Audience segment pageviews value is invalid. It must be between 1 and 12. - /// - INVALID_AUDIENCE_SEGMENT_PAGEVIEWS = 8, - /// Audience segment recency value is invalid. It must be between 1 and 90 if - /// pageviews > 1. - /// - INVALID_AUDIENCE_SEGMENT_RECENCY = 9, - /// Audience segment membership expiration value is invalid. It must be between 1 - /// and 180. - /// - INVALID_AUDIENCE_SEGMENT_MEMBERSHIP_EXPIRATION = 10, - /// The given custom key cannot be part of audience segment rule due to unsupported - /// characters. - /// - INVALID_AUDIENCE_SEGMENT_CUSTOM_KEY_NAME = 11, - /// The given custom value cannot be part of audience segment rule due to - /// unsupported characters. - /// - INVALID_AUDIENCE_SEGMENT_CUSTOM_VALUE_NAME = 12, - /// Broad-match custom value cannot be part of audience segment rule. - /// - INVALID_AUDIENCE_SEGMENT_CUSTOM_VALUE_MATCH_TYPE = 13, - /// Audience segment rule cannot contain itself. - /// - INVALID_NESTED_FIRST_PARTY_AUDIENCE_SEGMENT = 14, - /// Audience segment rule cannot contain shared selling inventory unit. - /// - SHARED_SELLING_PARTNER_ROOT_CANNOT_BE_INCLUDED = 20, - /// Audience segment rule cannot contain a nested third-party segment. - /// - INVALID_NESTED_THIRD_PARTY_AUDIENCE_SEGMENT = 15, - /// Audience segment rule cannot contain a nested inactive segment. - /// - INACTIVE_NESTED_AUDIENCE_SEGMENT = 16, - /// An error occurred when purchasing global licenses. - /// - AUDIENCE_SEGMENT_GLOBAL_LICENSE_ERROR = 17, - /// Segment cannot be activated as it violates Google's Platform Policy. - /// - SEGMENT_VIOLATED_POLICY = 19, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 18, - } + private bool creativeSetIdFieldSpecified; + private double manualCreativeRotationWeightField; - /// Lists all errors associated with LineItem's reservation details. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ReservationDetailsError : ApiError { - private ReservationDetailsErrorReason reasonField; + private bool manualCreativeRotationWeightFieldSpecified; - private bool reasonFieldSpecified; + private int sequentialCreativeRotationIndexField; - /// The error reason represented by an enum. + private bool sequentialCreativeRotationIndexFieldSpecified; + + private DateTime startDateTimeField; + + private StartDateTimeType startDateTimeTypeField; + + private bool startDateTimeTypeFieldSpecified; + + private DateTime endDateTimeField; + + private string destinationUrlField; + + private Size[] sizesField; + + private LineItemCreativeAssociationStatus statusField; + + private bool statusFieldSpecified; + + private LineItemCreativeAssociationStats statsField; + + private DateTime lastModifiedDateTimeField; + + private string targetingNameField; + + /// The ID of the LineItem to which the Creative should be associated. This attribute is required. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public ReservationDetailsErrorReason reason { + public long lineItemId { get { - return this.reasonField; + return this.lineItemIdField; } set { - this.reasonField = value; - this.reasonSpecified = true; + this.lineItemIdField = value; + this.lineItemIdSpecified = true; } } - /// true, if a value is specified for , - /// false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { + public bool lineItemIdSpecified { get { - return this.reasonFieldSpecified; + return this.lineItemIdFieldSpecified; } set { - this.reasonFieldSpecified = value; + this.lineItemIdFieldSpecified = value; } } - } - - - /// The reasons for the target error. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ReservationDetailsError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum ReservationDetailsErrorReason { - /// There is no limit on the number of ads delivered for a line item when you set LineItem#duration to be LineItemSummary.Duration#NONE. This can - /// only be set for line items of type LineItemType#PRICE_PRIORITY. - /// - UNLIMITED_UNITS_BOUGHT_NOT_ALLOWED = 0, - /// LineItem#unlimitedEndDateTime can be - /// set to true for only line items of type LineItemType#SPONSORSHIP, LineItemType#NETWORK, LineItemType#PRICE_PRIORITY and LineItemType#HOUSE. - /// - UNLIMITED_END_DATE_TIME_NOT_ALLOWED = 1, - /// When LineItem#lineItemType is LineItemType#SPONSORSHIP, then LineItem#unitsBought represents the percentage - /// of available impressions reserved. That value cannot exceed 100. - /// - PERCENTAGE_UNITS_BOUGHT_TOO_HIGH = 2, - /// The line item type does not support the specified duration. See LineItemSummary.Duration for allowed values. - /// - DURATION_NOT_ALLOWED = 3, - /// The LineItem#unitType is not allowed for the - /// given LineItem#lineItemType. See UnitType for allowed values. - /// - UNIT_TYPE_NOT_ALLOWED = 4, - /// The LineItem#costType is not allowed for the LineItem#lineItemType. See CostType for allowed values. - /// - COST_TYPE_NOT_ALLOWED = 5, - /// When LineItem#costType is CostType#CPM, LineItem#unitType must be UnitType#IMPRESSIONS and when LineItem#costType is CostType#CPC, LineItem#unitType must be UnitType#CLICKS. - /// - COST_TYPE_UNIT_TYPE_MISMATCH_NOT_ALLOWED = 6, - /// Inventory cannot be reserved for line items which are not of type LineItemType#SPONSORSHIP or LineItemType#STANDARD. - /// - LINE_ITEM_TYPE_NOT_ALLOWED = 7, - /// Network remnant line items cannot be changed to other line item types once - /// delivery begins. This restriction does not apply to any new line items created - /// in Ad Manager. - /// - NETWORK_REMNANT_ORDER_CANNOT_UPDATE_LINEITEM_TYPE = 8, - /// A dynamic allocation web property can only be set on a line item of type AdSense - /// or Ad Exchange. - /// - BACKFILL_WEBPROPERTY_CODE_NOT_ALLOWED = 9, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 10, - } - - - /// Errors related to request platform targeting. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class RequestPlatformTargetingError : ApiError { - private RequestPlatformTargetingErrorReason reasonField; - private bool reasonFieldSpecified; - - /// The error reason represented by an enum. + /// The ID of the Creative being associated with a LineItem.

This attribute is required if this is an + /// association between a line item and a creative.
This attribute is ignored + /// if this is an association between a line item and a creative set.

If this + /// is an association between a line item and a creative, when retrieving the line + /// item creative association, the #creativeId will be the + /// creative's ID.
If this is an association between a line item and a + /// creative set, when retrieving the line item creative association, the #creativeId will be the ID of the CreativeSet#masterCreativeId master creative.

///
- [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public RequestPlatformTargetingErrorReason reason { + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public long creativeId { get { - return this.reasonField; + return this.creativeIdField; } set { - this.reasonField = value; - this.reasonSpecified = true; + this.creativeIdField = value; + this.creativeIdSpecified = true; } } - /// true, if a value is specified for , - /// false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { + public bool creativeIdSpecified { get { - return this.reasonFieldSpecified; + return this.creativeIdFieldSpecified; } set { - this.reasonFieldSpecified = value; + this.creativeIdFieldSpecified = value; } } - } - - - /// ApiErrorReason enum for the request platform - /// targeting error. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "RequestPlatformTargetingError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum RequestPlatformTargetingErrorReason { - /// The line item type does not support the targeted request platform type. - /// - REQUEST_PLATFORM_TYPE_NOT_SUPPORTED_BY_LINE_ITEM_TYPE = 0, - /// The line item environment type does not support the targeted request platform - /// type. - /// - REQUEST_PLATFORM_TYPE_NOT_SUPPORTED_BY_ENVIRONMENT_TYPE = 2, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 1, - } - - - /// Caused by supplying a value for an object attribute that does not conform to a - /// documented valid regular expression. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class RegExError : ApiError { - private RegExErrorReason reasonField; - - private bool reasonFieldSpecified; - /// The error reason represented by an enum. + /// The ID of the CreativeSet being associated with a LineItem. This attribute is required if this is an + /// association between a line item and a creative set.

This field will be + /// null when retrieving associations between line items and creatives + /// not belonging to a set.

///
- [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public RegExErrorReason reason { + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public long creativeSetId { get { - return this.reasonField; + return this.creativeSetIdField; } set { - this.reasonField = value; - this.reasonSpecified = true; + this.creativeSetIdField = value; + this.creativeSetIdSpecified = true; } } - /// true, if a value is specified for , - /// false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { + public bool creativeSetIdSpecified { get { - return this.reasonFieldSpecified; + return this.creativeSetIdFieldSpecified; } set { - this.reasonFieldSpecified = value; + this.creativeSetIdFieldSpecified = value; } } - } - - - /// The reasons for the target error. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "RegExError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum RegExErrorReason { - /// Invalid value found. - /// - INVALID = 0, - /// Null value found. - /// - NULL = 1, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 2, - } - - - /// Errors associated with programmatic line items. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ProgrammaticError : ApiError { - private ProgrammaticErrorReason reasonField; - - private bool reasonFieldSpecified; - /// The error reason represented by an enum. + /// The weight of the Creative. This value is only used if + /// the line item's creativeRotationType is set to CreativeRotationType#MANUAL. This + /// attribute is optional and defaults to 10. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public ProgrammaticErrorReason reason { + [System.Xml.Serialization.XmlElementAttribute(Order = 3)] + public double manualCreativeRotationWeight { get { - return this.reasonField; + return this.manualCreativeRotationWeightField; } set { - this.reasonField = value; - this.reasonSpecified = true; + this.manualCreativeRotationWeightField = value; + this.manualCreativeRotationWeightSpecified = true; } } - /// true, if a value is specified for , - /// false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { + public bool manualCreativeRotationWeightSpecified { get { - return this.reasonFieldSpecified; + return this.manualCreativeRotationWeightFieldSpecified; } set { - this.reasonFieldSpecified = value; + this.manualCreativeRotationWeightFieldSpecified = value; } } - } - - /// Possible error reasons for a programmatic error. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ProgrammaticError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum ProgrammaticErrorReason { - /// Audience extension is not supported by programmatic line items. + /// The sequential rotation index of the Creative. This value + /// is used only if the associated line item's LineItem#creativeRotationType is set to + /// CreativeRotationType#SEQUENTIAL. This attribute is optional and + /// defaults to 1. /// - AUDIENCE_EXTENSION_NOT_SUPPORTED = 0, - /// Auto extension days is not supported by programmatic line items. + [System.Xml.Serialization.XmlElementAttribute(Order = 4)] + public int sequentialCreativeRotationIndex { + get { + return this.sequentialCreativeRotationIndexField; + } + set { + this.sequentialCreativeRotationIndexField = value; + this.sequentialCreativeRotationIndexSpecified = true; + } + } + + /// true, if a value is specified for , false otherwise. /// - AUTO_EXTENSION_DAYS_NOT_SUPPORTED = 1, - /// Video is currently not supported. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool sequentialCreativeRotationIndexSpecified { + get { + return this.sequentialCreativeRotationIndexFieldSpecified; + } + set { + this.sequentialCreativeRotationIndexFieldSpecified = value; + } + } + + /// Overrides the value set for LineItem#startDateTime. This value is optional + /// and is only valid for Ad Manager 360 networks. If unset, the LineItem#startDateTime will be used. /// - VIDEO_NOT_SUPPORTED = 2, - /// Roadblocking is not supported by programmatic line items. + [System.Xml.Serialization.XmlElementAttribute(Order = 5)] + public DateTime startDateTime { + get { + return this.startDateTimeField; + } + set { + this.startDateTimeField = value; + } + } + + /// Specifies whether to start serving to the right away, in an hour, + /// etc. This attribute is optional and defaults to StartDateTimeType#USE_START_DATE_TIME. /// - ROADBLOCKING_NOT_SUPPORTED = 3, - /// Programmatic line items do not support CreativeRotationType#SEQUENTIAL. + [System.Xml.Serialization.XmlElementAttribute(Order = 6)] + public StartDateTimeType startDateTimeType { + get { + return this.startDateTimeTypeField; + } + set { + this.startDateTimeTypeField = value; + this.startDateTimeTypeSpecified = true; + } + } + + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool startDateTimeTypeSpecified { + get { + return this.startDateTimeTypeFieldSpecified; + } + set { + this.startDateTimeTypeFieldSpecified = value; + } + } + + /// Overrides LineItem#endDateTime. This value is + /// optional and is only valid for Ad Manager 360 networks. If unset, the LineItem#endDateTime will be used. /// - INVALID_CREATIVE_ROTATION = 4, - /// Programmatic line items only support LineItemType#STANDARD and LineItemType#SPONSORSHIP if the relevant - /// feature is on. + [System.Xml.Serialization.XmlElementAttribute(Order = 7)] + public DateTime endDateTime { + get { + return this.endDateTimeField; + } + set { + this.endDateTimeField = value; + } + } + + /// Overrides the value set for HasDestinationUrlCreative#destinationUrl. + /// This value is optional and is only valid for Ad Manager 360 networks. /// - INVALID_LINE_ITEM_TYPE = 5, - /// Programmatic line items only support CostType#CPM. + [System.Xml.Serialization.XmlElementAttribute(Order = 8)] + public string destinationUrl { + get { + return this.destinationUrlField; + } + set { + this.destinationUrlField = value; + } + } + + /// Overrides the value set for Creative#size, which + /// allows the creative to be served to ad units that would otherwise not be + /// compatible for its actual size. This value is optional. /// - INVALID_COST_TYPE = 6, - /// Programmatic line items only support a creative size that is supported by AdX. - /// The list of supported sizes is maintained based on the list published in the - /// help docs: https://support.google.com/adxseller/answer/1100453 + [System.Xml.Serialization.XmlElementAttribute("sizes", Order = 9)] + public Size[] sizes { + get { + return this.sizesField; + } + set { + this.sizesField = value; + } + } + + /// The status of the association. This attribute is read-only. /// - SIZE_NOT_SUPPORTED = 7, - /// Zero cost per unit is not supported by programmatic line items. + [System.Xml.Serialization.XmlElementAttribute(Order = 10)] + public LineItemCreativeAssociationStatus status { + get { + return this.statusField; + } + set { + this.statusField = value; + this.statusSpecified = true; + } + } + + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool statusSpecified { + get { + return this.statusFieldSpecified; + } + set { + this.statusFieldSpecified = value; + } + } + + /// Contains trafficking statistics for the association. This attribute is readonly + /// and is populated by Google. This will be null in case there are no + /// statistics for the association yet. /// - ZERO_COST_PER_UNIT_NOT_SUPPORTED = 8, - /// Some fields cannot be updated on approved line items. + [System.Xml.Serialization.XmlElementAttribute(Order = 11)] + public LineItemCreativeAssociationStats stats { + get { + return this.statsField; + } + set { + this.statsField = value; + } + } + + /// The date and time this association was last modified. /// - CANNOT_UPDATE_FIELD_FOR_APPROVED_LINE_ITEMS = 9, - /// Creating a new line item in an approved order is not allowed. + [System.Xml.Serialization.XmlElementAttribute(Order = 12)] + public DateTime lastModifiedDateTime { + get { + return this.lastModifiedDateTimeField; + } + set { + this.lastModifiedDateTimeField = value; + } + } + + /// Specifies CreativeTargeting for this line item + /// creative association.

This attribute is optional. It should match the + /// creative targeting specified on the corresponding CreativePlaceholder in the LineItem that is being associated with the Creative.

///
- CANNOT_CREATE_LINE_ITEM_FOR_APPROVED_ORDER = 10, - /// Cannot change backfill web property for a programmatic line item whose order has - /// been approved. + [System.Xml.Serialization.XmlElementAttribute(Order = 13)] + public string targetingName { + get { + return this.targetingNameField; + } + set { + this.targetingNameField = value; + } + } + } + + + /// Describes the status of the association. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "LineItemCreativeAssociation.Status", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum LineItemCreativeAssociationStatus { + /// The association is active and the associated Creative can + /// be served. /// - CANNOT_UPDATE_BACKFILL_WEB_PROPERTY_FOR_APPROVED_LINE_ITEMS = 11, - /// Cost per unit is too low. It has to be at least 0.005 USD. + ACTIVE = 0, + /// The association is inactive and the associated Creative + /// is ineligible for being served. /// - COST_PER_UNIT_TOO_LOW = 13, + INACTIVE = 2, /// The value returned if the actual value is not exposed by the requested API /// version. /// - UNKNOWN = 12, + UNKNOWN = 4, } - /// List all errors associated with number precisions. + /// Lists all errors associated with template instantiated creatives. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class PrecisionError : ApiError { - private PrecisionErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class TemplateInstantiatedCreativeError : ApiError { + private TemplateInstantiatedCreativeErrorReason reasonField; private bool reasonFieldSpecified; + /// The error reason represented by an enum. + /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public PrecisionErrorReason reason { + public TemplateInstantiatedCreativeErrorReason reason { get { return this.reasonField; } @@ -25888,38 +27769,39 @@ public bool reasonSpecified { } - /// Describes reasons for precision errors. + /// The reason for the error /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "PrecisionError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum PrecisionErrorReason { - /// The lowest N digits of the number must be zero. + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "TemplateInstantiatedCreativeError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum TemplateInstantiatedCreativeErrorReason { + /// A new creative cannot be created from an inactive creative template. /// - WRONG_PRECISION = 0, + INACTIVE_CREATIVE_TEMPLATE = 0, + /// An uploaded file type is not allowed + /// + FILE_TYPE_NOT_ALLOWED = 1, /// The value returned if the actual value is not exposed by the requested API /// version. /// - UNKNOWN = 1, + UNKNOWN = 2, } - /// Lists all errors associated with orders. + /// Error for converting flash to swiffy asset. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class OrderError : ApiError { - private OrderErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class SwiffyConversionError : ApiError { + private SwiffyConversionErrorReason reasonField; private bool reasonFieldSpecified; - /// The error reason represented by an enum. - /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public OrderErrorReason reason { + public SwiffyConversionErrorReason reason { get { return this.reasonField; } @@ -25944,68 +27826,46 @@ public bool reasonSpecified { } - /// The reasons for the target error. + /// Error reason for SwiffyConversionError. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "OrderError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum OrderErrorReason { - /// Updating a canceled order is not allowed. - /// - UPDATE_CANCELED_ORDER_NOT_ALLOWED = 0, - /// Updating an order that has its approval pending is not allowed. - /// - UPDATE_PENDING_APPROVAL_ORDER_NOT_ALLOWED = 1, - /// Updating an archived order is not allowed. - /// - UPDATE_ARCHIVED_ORDER_NOT_ALLOWED = 2, - /// DSM can set the proposal ID only at the time of creation of order. Setting or - /// changing proposal ID at the time of order update is not allowed. - /// - CANNOT_MODIFY_PROPOSAL_ID = 3, - /// Cannot have secondary user without a primary user. - /// - PRIMARY_USER_REQUIRED = 4, - /// Primary user cannot be added as a secondary user too. - /// - PRIMARY_USER_CANNOT_BE_SECONDARY = 5, - /// A team associated with the order must also be associated with the advertiser. - /// - ORDER_TEAM_NOT_ASSOCIATED_WITH_ADVERTISER = 6, - /// The user assigned to the order, like salesperson or trafficker, must be on one - /// of the order's teams. + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "SwiffyConversionError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum SwiffyConversionErrorReason { + /// Indicates the Swiffy service has an internal error that prevents the flash asset + /// being converted. /// - USER_NOT_ON_ORDERS_TEAMS = 7, - /// The agency assigned to the order must belong to one of the order's teams. + SERVER_ERROR = 0, + /// Indicates the uploaded flash asset is not a valid flash file. /// - AGENCY_NOT_ON_ORDERS_TEAMS = 8, - /// Programmatic info fields should not be set for a non-programmatic order. + INVALID_FLASH_FILE = 1, + /// Indicates the Swiffy service currently does not support converting this flash + /// asset. /// - INVALID_FIELDS_SET_FOR_NON_PROGRAMMATIC_ORDER = 9, + UNSUPPORTED_FLASH = 2, /// The value returned if the actual value is not exposed by the requested API /// version. /// - UNKNOWN = 10, + UNKNOWN = 3, } - /// Lists all errors associated with performing actions on Order - /// objects. + /// Errors associated with set-top box creatives. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class OrderActionError : ApiError { - private OrderActionErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class SetTopBoxCreativeError : ApiError { + private SetTopBoxCreativeErrorReason reasonField; private bool reasonFieldSpecified; /// The error reason represented by an enum. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public OrderActionErrorReason reason { + public SetTopBoxCreativeErrorReason reason { get { return this.reasonField; } @@ -26030,58 +27890,44 @@ public bool reasonSpecified { } - /// The reasons for the target error. + /// Error reasons for set-top box creatives. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "OrderActionError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum OrderActionErrorReason { - /// The operation is not allowed due to lack of permissions. - /// - PERMISSION_DENIED = 0, - /// The operation is not applicable for the current state of the Order. - /// - NOT_APPLICABLE = 1, - /// The Order is archived, an OrderAction cannot be applied to an archived order. - /// - IS_ARCHIVED = 2, - /// The Order is past its end date, An OrderAction cannot be applied to a order that has ended. - /// - HAS_ENDED = 3, - /// A Order cannot be approved if it contains reservable LineItems that are unreserved. + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "SetTopBoxCreativeError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum SetTopBoxCreativeErrorReason { + /// Set-top box creative external asset IDs are immutable after creation. /// - CANNOT_APPROVE_WITH_UNRESERVED_LINE_ITEMS = 4, - /// Deleting an Order with delivered line items is not allowed + EXTERNAL_ASSET_ID_IMMUTABLE = 1, + /// Set-top box creatives require an external asset ID. /// - CANNOT_DELETE_ORDER_WITH_DELIVERED_LINEITEMS = 5, - /// Cannot approve because company credit status is not active. + EXTERNAL_ASSET_ID_REQUIRED = 2, + /// Set-top box creative provider IDs are immutable after creation. /// - CANNOT_APPROVE_COMPANY_CREDIT_STATUS_NOT_ACTIVE = 6, + PROVIDER_ID_IMMUTABLE = 3, /// The value returned if the actual value is not exposed by the requested API /// version. /// - UNKNOWN = 7, + UNKNOWN = 4, } - /// Lists all errors related to mobile application targeting for a line item. + /// Lists all errors associated with Studio creatives. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class MobileApplicationTargetingError : ApiError { - private MobileApplicationTargetingErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class RichMediaStudioCreativeError : ApiError { + private RichMediaStudioCreativeErrorReason reasonField; private bool reasonFieldSpecified; + /// The error reason represented by an enum. + /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public MobileApplicationTargetingErrorReason reason { + public RichMediaStudioCreativeErrorReason reason { get { return this.reasonField; } @@ -26106,39 +27952,63 @@ public bool reasonSpecified { } - /// ApiErrorReason enum for user domain targeting - /// error. + /// The reasons for the target error. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "MobileApplicationTargetingError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum MobileApplicationTargetingErrorReason { - /// Only applications that are linked to a store entry may be targeted. + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "RichMediaStudioCreativeError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum RichMediaStudioCreativeErrorReason { + /// Only Studio can create a RichMediaStudioCreative. /// - CANNOT_TARGET_UNLINKED_APPLICATION = 0, + CREATION_NOT_ALLOWED = 0, + /// Unknown error + /// + UKNOWN_ERROR = 1, + /// Invalid request indicating missing/invalid request parameters. + /// + INVALID_CODE_GENERATION_REQUEST = 2, + /// Invalid creative object. + /// + INVALID_CREATIVE_OBJECT = 3, + /// Unable to connect to Rich Media Studio to save the creative. Please try again + /// later. + /// + STUDIO_CONNECTION_ERROR = 4, + /// The push down duration is not allowed + /// + PUSHDOWN_DURATION_NOT_ALLOWED = 5, + /// The position is invalid + /// + INVALID_POSITION = 6, + /// The Z-index is invalid + /// + INVALID_Z_INDEX = 7, + /// The push-down duration is invalid + /// + INVALID_PUSHDOWN_DURATION = 8, /// The value returned if the actual value is not exposed by the requested API /// version. /// - UNKNOWN = 1, + UNKNOWN = 9, } - /// Lists all errors for executing operations on line items + /// Lists all errors for executing operations on line item-to-creative associations /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class LineItemOperationError : ApiError { - private LineItemOperationErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class LineItemCreativeAssociationOperationError : ApiError { + private LineItemCreativeAssociationOperationErrorReason reasonField; private bool reasonFieldSpecified; /// The error reason represented by an enum. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public LineItemOperationErrorReason reason { + public LineItemCreativeAssociationOperationErrorReason reason { get { return this.reasonField; } @@ -26167,70 +28037,38 @@ public bool reasonSpecified { /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "LineItemOperationError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum LineItemOperationErrorReason { - /// The operation is not allowed due to lack of permissions. + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "LineItemCreativeAssociationOperationError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum LineItemCreativeAssociationOperationErrorReason { + /// The operation is not allowed due to permissions /// NOT_ALLOWED = 0, - /// The operation is not applicable for the current state of the LineItem. + /// The operation is not applicable to the current state /// NOT_APPLICABLE = 1, - /// The LineItem is completed. A LineItemAction cannot be applied to a line item that - /// is completed. - /// - HAS_COMPLETED = 2, - /// The LineItem has no active creatives. A line item cannot - /// be activated with no active creatives. - /// - HAS_NO_ACTIVE_CREATIVES = 3, - /// A LineItem of type LineItemType#LEGACY_DFP cannot be Activated. - /// - CANNOT_ACTIVATE_LEGACY_DFP_LINE_ITEM = 4, - /// A LineItem with publisher creative source cannot be - /// activated if the corresponding deal is not yet configured by the buyer. - /// - CANNOT_ACTIVATE_UNCONFIGURED_LINE_ITEM = 9, - /// Deleting an LineItem that has delivered is not allowed - /// - CANNOT_DELETE_DELIVERED_LINE_ITEM = 5, - /// Reservation cannot be made for line item because the LineItem#advertiserId it is associated with has - /// Company#creditStatus that is not - /// ACTIVE or ON_HOLD. - /// - CANNOT_RESERVE_COMPANY_CREDIT_STATUS_NOT_ACTIVE = 6, - /// Cannot activate line item because the LineItem#advertiserId it is associated with has - /// Company#creditStatus that is not - /// ACTIVE, INACTIVE, or ON_HOLD. + /// Cannot activate an invalid creative /// - CANNOT_ACTIVATE_INVALID_COMPANY_CREDIT_STATUS = 7, + CANNOT_ACTIVATE_INVALID_CREATIVE = 2, /// The value returned if the actual value is not exposed by the requested API /// version. /// - UNKNOWN = 8, + UNKNOWN = 3, } - /// Lists all errors associated with LineItem start and end dates. + /// Lists all errors associated with phone numbers. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class LineItemFlightDateError : ApiError { - private LineItemFlightDateErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class InvalidPhoneNumberError : ApiError { + private InvalidPhoneNumberErrorReason reasonField; private bool reasonFieldSpecified; - /// The error reason represented by an enum. - /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public LineItemFlightDateErrorReason reason { + public InvalidPhoneNumberErrorReason reason { get { return this.reasonField; } @@ -26255,39 +28093,39 @@ public bool reasonSpecified { } - /// The reasons for the target error. - /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "LineItemFlightDateError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum LineItemFlightDateErrorReason { - START_DATE_TIME_IS_IN_PAST = 0, - END_DATE_TIME_IS_IN_PAST = 1, - END_DATE_TIME_NOT_AFTER_START_TIME = 2, - END_DATE_TIME_TOO_LATE = 3, + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "InvalidPhoneNumberError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum InvalidPhoneNumberErrorReason { + /// The phone number is invalid. + /// + INVALID_FORMAT = 0, + /// The phone number is too short. + /// + TOO_SHORT = 1, /// The value returned if the actual value is not exposed by the requested API /// version. /// - UNKNOWN = 4, + UNKNOWN = 2, } - /// A catch-all error that lists all generic errors associated with LineItem. + /// Lists all errors associated with html5 file processing. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class LineItemError : ApiError { - private LineItemErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class HtmlBundleProcessorError : ApiError { + private HtmlBundleProcessorErrorReason reasonField; private bool reasonFieldSpecified; /// The error reason represented by an enum. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public LineItemErrorReason reason { + public HtmlBundleProcessorErrorReason reason { get { return this.reasonField; } @@ -26312,310 +28150,85 @@ public bool reasonSpecified { } - /// The reasons for the target error. + /// Error reasons that may arise during HTML5 bundle processing. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "LineItemError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum LineItemErrorReason { - /// Some changes may not be allowed because a line item has already started. - /// - ALREADY_STARTED = 0, - /// Update reservation is not allowed because a line item has already started, users - /// must pause the line item first. + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "HtmlBundleProcessorError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum HtmlBundleProcessorErrorReason { + /// Cannot extract files from HTML5 bundle. /// - UPDATE_RESERVATION_NOT_ALLOWED = 1, - /// Roadblocking to display all creatives is not allowed. + CANNOT_EXTRACT_FILES_FROM_BUNDLE = 0, + /// Bundle cannot have hard-coded click tag url(s). /// - ALL_ROADBLOCK_NOT_ALLOWED = 2, - /// Companion delivery to display all creatives is not allowed. + CLICK_TAG_HARD_CODED = 1, + /// Bundles created using GWD (Google Web Designer) cannot have click tags. + /// GWD-published bundles should use exit events instead of defining var + /// clickTAG. /// - ALL_COMPANION_DELIVERY_NOT_ALLOWED = 80, - /// Roadblocking to display all master and companion creative set is not allowed. + CLICK_TAG_IN_GWD_UNUPPORTED = 2, + /// Click tag detected outside of primary HTML file. /// - CREATIVE_SET_ROADBLOCK_NOT_ALLOWED = 3, - /// Fractional percentage is not allowed. + CLICK_TAG_NOT_IN_PRIMARY_HTML = 3, + /// Click tag or exit function has invalid name or url. /// - FRACTIONAL_PERCENTAGE_NOT_ALLOWED = 4, - /// For certain LineItem configurations discounts are not allowed. + CLICK_TAG_INVALID = 4, + /// HTML5 bundle or total size of extracted files cannot be more than 1000 KB. /// - DISCOUNT_NOT_ALLOWED = 5, - /// Updating a canceled line item is not allowed. - /// - UPDATE_CANCELED_LINE_ITEM_NOT_ALLOWED = 6, - /// Updating a pending approval line item is not allowed. - /// - UPDATE_PENDING_APPROVAL_LINE_ITEM_NOT_ALLOWED = 7, - /// Updating an archived line item is not allowed. - /// - UPDATE_ARCHIVED_LINE_ITEM_NOT_ALLOWED = 8, - /// Create or update legacy dfp line item type is not allowed. - /// - CREATE_OR_UPDATE_LEGACY_DFP_LINE_ITEM_TYPE_NOT_ALLOWED = 9, - /// Copying line item from different company (advertiser) to the same order is not - /// allowed. - /// - COPY_LINE_ITEM_FROM_DIFFERENT_COMPANY_NOT_ALLOWED = 10, - /// The size is invalid for the specified platform. - /// - INVALID_SIZE_FOR_PLATFORM = 11, - /// The line item type is invalid for the specified platform. - /// - INVALID_LINE_ITEM_TYPE_FOR_PLATFORM = 12, - /// The web property cannot be served on the specified platform. - /// - INVALID_WEB_PROPERTY_FOR_PLATFORM = 13, - /// The web property cannot be served on the specified environment. - /// - INVALID_WEB_PROPERTY_FOR_ENVIRONMENT = 14, - /// AFMA backfill not supported. - /// - AFMA_BACKFILL_NOT_ALLOWED = 15, - /// Environment type cannot change once saved. - /// - UPDATE_ENVIRONMENT_TYPE_NOT_ALLOWED = 16, - /// The placeholders are invalid because they contain companions, but the line item - /// does not support companions. - /// - COMPANIONS_NOT_ALLOWED = 17, - /// The placeholders are invalid because some of them are roadblocks, and some are - /// not. Either all roadblock placeholders must contain companions, or no - /// placeholders may contain companions. This does not apply to video creative sets. - /// - ROADBLOCKS_WITH_NONROADBLOCKS_NOT_ALLOWED = 18, - /// A line item cannot be updated from having RoadblockingType#CREATIVE_SET to having - /// a different RoadblockingType, or vice versa. - /// - CANNOT_UPDATE_TO_OR_FROM_CREATIVE_SET_ROADBLOCK = 19, - /// Can not change from a backfill line item type once creatives have been assigned. - /// - UPDATE_FROM_BACKFILL_LINE_ITEM_TYPE_NOT_ALLOWED = 20, - /// Can not change to a backfill line item type once creatives have been assigned. - /// - UPDATE_TO_BACKFILL_LINE_ITEM_TYPE_NOT_ALLOWED = 21, - /// Can not change to backfill web property once creatives have been assigned. - /// - UPDATE_BACKFILL_WEB_PROPERTY_NOT_ALLOWED = 22, - /// The companion delivery option is not valid for your environment type. - /// - INVALID_COMPANION_DELIVERY_OPTION_FOR_ENVIRONMENT_TYPE = 23, - /// Companion backfill is enabled but environment type not video. - /// - COMPANION_BACKFILL_REQUIRES_VIDEO = 24, - /// Companion delivery options require Ad Manager 360 networks. - /// - COMPANION_DELIVERY_OPTION_REQUIRE_PREMIUM = 25, - /// The master size of placeholders have duplicates. - /// - DUPLICATE_MASTER_SIZES = 26, - /// The line item priority is invalid if for dynamic allocation line items it is - /// different than the default for free publishers. When allowed, Ad Manager 360 - /// users can change the priority to any value. - /// - INVALID_PRIORITY_FOR_LINE_ITEM_TYPE = 27, - /// The environment type is not valid. - /// - INVALID_ENVIRONMENT_TYPE = 28, - /// The environment type is not valid for the target platform. - /// - INVALID_ENVIRONMENT_TYPE_FOR_PLATFORM = 29, - /// Only LineItemType#STANDARD line items can be - /// auto extended. - /// - INVALID_TYPE_FOR_AUTO_EXTENSION = 30, - /// Video line items cannot change the roadblocking type. - /// - VIDEO_INVALID_ROADBLOCKING = 31, - /// The backfill feature is not enabled according to your features. - /// - BACKFILL_TYPE_NOT_ALLOWED = 32, - /// The web property is invalid. A line item must have an appropriate web property - /// selected. - /// - INVALID_BACKFILL_LINK_TYPE = 33, - /// All line items in a programmatic order must have web property codes from the - /// same account. - /// - DIFFERENT_BACKFILL_ACCOUNT = 51, - /// Companion delivery options are not allowed with dynamic allocation line items. - /// - COMPANION_DELIVERY_OPTIONS_NOT_ALLOWED_WITH_BACKFILL = 35, - /// Dynamic allocation using the AdExchange should always use an AFC web property. - /// - INVALID_WEB_PROPERTY_FOR_ADX_BACKFILL = 36, - /// CPM for backfill inventory must be 0. - /// - INVALID_COST_PER_UNIT_FOR_BACKFILL = 75, - /// Aspect ratio sizes cannot be used with video line items. - /// - INVALID_SIZE_FOR_ENVIRONMENT = 37, - /// The specified target platform is not allowed. - /// - TARGET_PLATOFRM_NOT_ALLOWED = 38, - /// Currency on a line item must be one of the specified network currencies. - /// - INVALID_LINE_ITEM_CURRENCY = 39, - /// All money fields on a line item must specify the same currency. - /// - LINE_ITEM_CANNOT_HAVE_MULTIPLE_CURRENCIES = 40, - /// Once a line item has moved into a a delivering state the currency cannot be - /// changed. - /// - CANNOT_CHANGE_CURRENCY = 41, - /// A DateTime associated with the line item is not valid. - /// - INVALID_LINE_ITEM_DATE_TIME = 43, - /// CPA line items must specify a zero cost for the LineItem#costPerUnit. - /// - INVALID_COST_PER_UNIT_FOR_CPA = 44, - /// Once a LineItem is activated its LineItem#costPerUnit cannot be updated to/from - /// CPA. - /// - UPDATE_CPA_COST_TYPE_NOT_ALLOWED = 45, - /// Once a LineItem is activated its LineItem#costPerUnit cannot be updated to/from - /// Viewable CPM. - /// - UPDATE_VCPM_COST_TYPE_NOT_ALLOWED = 59, - /// A LineItem with master/companion creative placeholders - /// cannot have Viewable CPM as its LineItem#costPerUnit. - /// - MASTER_COMPANION_LINE_ITEM_CANNOT_HAVE_VCPM_COST_TYPE = 60, - /// There cannot be goals with duplicated unit type among the secondary goals for a - /// line items. - /// - DUPLICATED_UNIT_TYPE = 46, - /// The secondary goals of a line items must have the same - /// goal type. - /// - MULTIPLE_GOAL_TYPE_NOT_ALLOWED = 47, - /// For a CPA line item, the possible combinations for - /// secondary goals must be either click-through conversion only, click-through - /// conversion with view-through conversion or total conversion only. For a Viewable - /// CPM line item or a CPM based Sponsorship line item, its secondary goal has to be impression-based. - /// - INVALID_UNIT_TYPE_COMBINATION_FOR_SECONDARY_GOALS = 48, - /// One or more of the targeting names specified by a creative placeholder or line - /// item creative association were not found on the line item. - /// - INVALID_CREATIVE_TARGETING_NAME = 52, - /// Creative targeting expressions on the line item can only have custom criteria - /// targeting with CustomTargetingValue.MatchType#EXACT. - /// - INVALID_CREATIVE_CUSTOM_TARGETING_MATCH_TYPE = 53, - /// Line item with creative targeting expressions cannot have creative rotation type - /// set to CreativeRotationType#SEQUENTIAL. - /// - INVALID_CREATIVE_ROTATION_TYPE_WITH_CREATIVE_TARGETING = 54, - /// Line items cannot overbook inventory when applying creative-level targeting if - /// the originating proposal line item did not overbook inventory. Remove - /// creative-level targeting and try again. - /// - CANNOT_OVERBOOK_WITH_CREATIVE_TARGETING = 58, - /// For a managed line item, inventory sizes must match sizes that are set on the - /// originating proposal line item. In the case that a size is broken out by - /// creative-level targeting, the sum of the creative counts for each size must - /// equal the expected creative count that is set for that size on the originating - /// proposal line item. - /// - PLACEHOLDERS_DO_NOT_MATCH_PROPOSAL = 61, - /// The line item type is not supported for this API version. - /// - UNSUPPORTED_LINE_ITEM_TYPE_FOR_THIS_API_VERSION = 49, - /// Placeholders can only have native creative templates. - /// - NATIVE_CREATIVE_TEMPLATE_REQUIRED = 55, - /// Non-native placeholders cannot have creative templates. - /// - CANNOT_HAVE_CREATIVE_TEMPLATE = 56, - /// Cannot include native creative templates in the placeholders for Ad Exchange - /// line items. - /// - CANNOT_INCLUDE_NATIVE_CREATIVE_TEMPLATE = 63, - /// Cannot include native placeholders without native creative templates for - /// direct-sold line items. - /// - CANNOT_INCLUDE_NATIVE_PLACEHOLDER_WITHOUT_TEMPLATE_ID = 64, - /// For forecasting only, error when line item has duration, but no creative sizes - /// specified. - /// - NO_SIZE_WITH_DURATION = 62, - /// Used when the company pointed to by the viewabilityProviderCompanyId is not of - /// type VIEWABILITY_PROVIDER. - /// - INVALID_VIEWABILITY_PROVIDER_COMPANY = 65, - /// An error occurred while accessing the custom pacing curve Google Cloud Storage - /// bucket. - /// - CANNOT_ACCESS_CUSTOM_PACING_CURVE_CLOUD_STORAGE_BUCKET = 66, - /// CMS Metadata targeting is only supported for video line items. - /// - CMS_METADATA_LINE_ITEM_ENVIRONMENT_TYPE_NOT_SUPPORTED = 76, - /// The SkippableAdType is not allowed. - /// - SKIPPABLE_AD_TYPE_NOT_ALLOWED = 67, - /// Custom pacing curve start time must match the line item's start time. + FILE_SIZE_TOO_LARGE = 5, + /// HTML5 bundle cannot have more than 50 files. /// - CUSTOM_PACING_CURVE_START_TIME_MUST_MATCH_LINE_ITEM_START_TIME = 68, - /// Custom pacing curve goal start time must be before line item end time. + FILES_TOO_MANY = 6, + /// Flash files in HTML5 bundles are not supported. Any file with a .swf or .flv + /// extension causes this error. /// - CUSTOM_PACING_CURVE_START_TIME_PAST_LINE_ITEM_END_TIME = 69, - /// The line item type is invalid for the specified delivery forecast source. + FLASH_UNSUPPORTED = 7, + /// The HTML5 bundle contains unsupported GWD component(s). /// - INVALID_LINE_ITEM_TYPE_FOR_DELIVERY_FORECAST_SOURCE = 70, - /// The sum of the custom pacing goal amounts is invalid. + GWD_COMPONENTS_UNSUPPORTED = 8, + /// The HTML5 bundle contains Unsupported GWD Enabler method(s). /// - INVALID_TOTAL_CUSTOM_PACING_GOAL_AMOUNTS = 71, - /// Copying line items with custom pacing curves that are totally in the past is not - /// allowed. + GWD_ENABLER_METHODS_UNSUPPORTED = 9, + /// GWD properties are invalid. /// - COPY_LINE_ITEM_WITH_CUSTOM_PACING_CURVE_FULLY_IN_PAST_NOT_ALLOWED = 72, - /// The last custom pacing goal cannot be zero. + GWD_PROPERTIES_INVALID = 10, + /// The HTML5 bundle contains broken relative file reference(s). /// - LAST_CUSTOM_PACING_GOAL_AMOUNT_CANNOT_BE_ZERO = 73, - /// GRP paced line items cannot have absolute custom pacing curve goals. + LINKED_FILES_NOT_FOUND = 11, + /// No primary HTML file detected. /// - GRP_PACED_LINE_ITEM_CANNOT_HAVE_ABSOLUTE_CUSTOM_PACING_CURVE_GOALS = 74, - /// line item has invalid video creative duration. + PRIMARY_HTML_MISSING = 12, + /// Multiple HTML files are detected. One of them should be named as + /// index.html /// - INVALID_MAX_VIDEO_CREATIVE_DURATION = 77, - /// Native size types must by 1x1. + PRIMARY_HTML_UNDETERMINED = 13, + /// An SVG block could not be parsed. /// - INVALID_NATIVE_SIZE = 78, - /// For AdExchange Line Items, the targeted request platform must match the - /// syndication type of the web property code. + SVG_BLOCK_INVALID = 14, + /// The HTML5 bundle cannot be decoded. /// - INVALID_TARGETED_REQUEST_PLATFORM_FOR_WEB_PROPERTY_CODE = 79, + CANNOT_DECODE_BUNDLE = 16, /// The value returned if the actual value is not exposed by the requested API /// version. /// - UNKNOWN = 50, + UNKNOWN = 15, } - /// Errors specific to associating activities to line items. + /// A list of all errors to be used for problems related to files. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class LineItemActivityAssociationError : ApiError { - private LineItemActivityAssociationErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class FileError : ApiError { + private FileErrorReason reasonField; private bool reasonFieldSpecified; - /// The error reason represented by an enum. - /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public LineItemActivityAssociationErrorReason reason { + public FileErrorReason reason { get { return this.reasonField; } @@ -26640,20 +28253,16 @@ public bool reasonSpecified { } - /// The reasons for the target error. - /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "LineItemActivityAssociationError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum LineItemActivityAssociationErrorReason { - /// When associating an activity to a line item the activity must belong to the same - /// advertiser as the line item. + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "FileError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum FileErrorReason { + /// The provided byte array is empty. /// - INVALID_ACTIVITY_FOR_ADVERTISER = 0, - /// Activities can only be associated with line items of CostType.CPA. + MISSING_CONTENTS = 0, + /// The provided file is larger than the maximum size defined for the network. /// - INVALID_COST_TYPE_FOR_ASSOCIATION = 1, + SIZE_TOO_LARGE = 1, /// The value returned if the actual value is not exposed by the requested API /// version. /// @@ -26661,20 +28270,22 @@ public enum LineItemActivityAssociationErrorReason { } - /// Lists the generic errors associated with AdUnit objects. + /// Lists all errors associated with custom creatives. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class InventoryUnitError : ApiError { - private InventoryUnitErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class CustomCreativeError : ApiError { + private CustomCreativeErrorReason reasonField; private bool reasonFieldSpecified; + /// The error reason represented by an enum. + /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public InventoryUnitErrorReason reason { + public CustomCreativeErrorReason reason { get { return this.reasonField; } @@ -26699,50 +28310,54 @@ public bool reasonSpecified { } - /// Possible reasons for the error. + /// The reasons for the target error. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "InventoryUnitError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum InventoryUnitErrorReason { - /// AdUnit#explicitlyTargeted can be set to - /// true only in an Ad Manager 360 account. + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CustomCreativeError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum CustomCreativeErrorReason { + /// Macros associated with a single custom creative must have unique names. /// - EXPLICIT_TARGETING_NOT_ALLOWED = 0, - /// The specified target platform is not applicable for the inventory unit. + DUPLICATE_MACRO_NAME_FOR_CREATIVE = 0, + /// The file macro referenced in the snippet does not exist. /// - TARGET_PLATFORM_NOT_APPLICABLE = 1, - /// AdSense cannot be enabled on this inventory unit if it is disabled for the - /// network. + SNIPPET_REFERENCES_MISSING_MACRO = 1, + /// The macro referenced in the snippet is not valid. /// - ADSENSE_CANNOT_BE_ENABLED = 2, - /// A root unit cannot be deactivated. + UNRECOGNIZED_MACRO = 2, + /// Custom creatives are not allowed in this context. /// - ROOT_UNIT_CANNOT_BE_DEACTIVATED = 3, + CUSTOM_CREATIVE_NOT_ALLOWED = 3, + /// The custom creative is an interstitial, but the snippet is missing an + /// interstitial macro. + /// + MISSING_INTERSTITIAL_MACRO = 4, + /// Macros associated with the same custom creative cannot share the same asset. + /// + DUPLICATE_ASSET_IN_MACROS = 5, /// The value returned if the actual value is not exposed by the requested API /// version. /// - UNKNOWN = 4, + UNKNOWN = 6, } - /// Lists all inventory errors caused by associating a line item with a targeting - /// expression. + /// Errors relating to creative sets & subclasses. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class InventoryTargetingError : ApiError { - private InventoryTargetingErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class CreativeSetError : ApiError { + private CreativeSetErrorReason reasonField; private bool reasonFieldSpecified; /// The error reason represented by an enum. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public InventoryTargetingErrorReason reason { + public CreativeSetErrorReason reason { get { return this.reasonField; } @@ -26771,66 +28386,54 @@ public bool reasonSpecified { /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "InventoryTargetingError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum InventoryTargetingErrorReason { - /// At least one placement or inventory unit is required - /// - AT_LEAST_ONE_PLACEMENT_OR_INVENTORY_UNIT_REQUIRED = 0, - /// The same inventory unit or placement cannot be targeted and excluded at the same - /// time - /// - INVENTORY_CANNOT_BE_TARGETED_AND_EXCLUDED = 1, - /// A child inventory unit cannot be targeted if its ancestor inventory unit is also - /// targeted. + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CreativeSetError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum CreativeSetErrorReason { + /// The 'video' feature is required but not enabled. /// - INVENTORY_UNIT_CANNOT_BE_TARGETED_IF_ANCESTOR_IS_TARGETED = 4, - /// A child inventory unit cannot be targeted if its ancestor inventory unit is - /// excluded. + VIDEO_FEATURE_REQUIRED = 0, + /// Video creatives (including overlays, VAST redirects, etc..) cannot be created or + /// updated through the API. /// - INVENTORY_UNIT_CANNOT_BE_TARGETED_IF_ANCESTOR_IS_EXCLUDED = 5, - /// A child inventory unit cannot be excluded if its ancestor inventory unit is also - /// excluded. + CANNOT_CREATE_OR_UPDATE_VIDEO_CREATIVES = 1, + /// The 'roadblock' feature is required but not enabled. /// - INVENTORY_UNIT_CANNOT_BE_EXCLUDED_IF_ANCESTOR_IS_EXCLUDED = 6, - /// An explicitly targeted inventory unit cannot be targeted. + ROADBLOCK_FEATURE_REQUIRED = 2, + /// A master creative cannot be a companion creative in the same creative set. /// - EXPLICITLY_TARGETED_INVENTORY_UNIT_CANNOT_BE_TARGETED = 7, - /// An explicitly targeted inventory unit cannot be excluded. + MASTER_CREATIVE_CANNOT_BE_COMPANION = 3, + /// Creatives in a creative set must be for the same advertiser. /// - EXPLICITLY_TARGETED_INVENTORY_UNIT_CANNOT_BE_EXCLUDED = 8, - /// A landing page-only ad unit cannot be targeted. + INVALID_ADVERTISER = 4, + /// Updating a master creative in a creative set is not allowed. /// - SELF_ONLY_INVENTORY_UNIT_NOT_ALLOWED = 9, - /// A landing page-only ad unit cannot be targeted if it doesn't have any children. + UPDATE_MASTER_CREATIVE_NOT_ALLOWED = 5, + /// A master creative must belong to only one video creative set. /// - SELF_ONLY_INVENTORY_UNIT_WITHOUT_DESCENDANTS = 10, - /// Audience segments shared from YouTube can only be targeted with inventory shared - /// from YouTube for cross selling. + MASTER_CREATIVE_CANNOT_BELONG_TO_MULTIPLE_VIDEO_CREATIVE_SETS = 7, + /// The {@Code SkippableAdType} is not allowed. /// - YOUTUBE_AUDIENCE_SEGMENTS_CAN_ONLY_BE_TARGETED_WITH_YOUTUBE_SHARED_INVENTORY = 11, + SKIPPABLE_AD_TYPE_NOT_ALLOWED = 8, /// The value returned if the actual value is not exposed by the requested API /// version. /// - UNKNOWN = 13, + UNKNOWN = 6, } - /// Errors associated with line items with GRP settings. + /// Errors associated with generation of creative preview URIs. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class GrpSettingsError : ApiError { - private GrpSettingsErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class CreativePreviewError : ApiError { + private CreativePreviewErrorReason reasonField; private bool reasonFieldSpecified; - /// The error reason represented by an enum. - /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public GrpSettingsErrorReason reason { + public CreativePreviewErrorReason reason { get { return this.reasonField; } @@ -26855,106 +28458,44 @@ public bool reasonSpecified { } - /// Reason for GRP settings error. - /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "GrpSettingsError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum GrpSettingsErrorReason { - /// Age range for GRP audience is not valid. Please see the Ad Manager Help - /// Center for more information. - /// - INVALID_AGE_RANGE = 0, - /// Age range for GRP audience is not allowed to include ages under 18 unless - /// designating all ages in target(2-65+). - /// - UNDER_18_MIN_AGE_REQUIRES_ALL_AGES = 26, - /// GRP settings are only supported for video line items. - /// - LINE_ITEM_ENVIRONMENT_TYPE_NOT_SUPPORTED = 1, - /// For deals with Nielsen DAR enabled, there must be an instream video environment. - /// - NIELSEN_DAR_REQUIRES_INSTREAM_VIDEO = 23, - /// GRP settings are not supported for the given line item type. - /// - LINE_ITEM_TYPE_NOT_SUPPORTED = 2, - /// GRP audience gender cannot be specified for the selected age range. - /// - CANNOT_SPECIFY_GENDER_FOR_GIVEN_AGE_RANGE = 3, - /// Minimum age for GRP audience is not valid. - /// - INVALID_MIN_AGE = 4, - /// Maximum age for GRP audience is not valid. - /// - INVALID_MAX_AGE = 5, - /// GRP settings cannot be disabled. - /// - CANNOT_DISABLE_GRP_AFTER_ENABLING = 6, - /// GRP provider cannot be updated. - /// - CANNOT_CHANGE_GRP_PROVIDERS = 7, - /// GRP settings cannot be updated once the line item has started serving. - /// - CANNOT_CHANGE_GRP_SETTINGS = 15, - /// Impression goal based on GRP audience is not supported. - /// - GRP_AUDIENCE_GOAL_NOT_SUPPORTED = 16, - /// Impression goal based on GRP audience expected. - /// - DEMOG_GOAL_EXPECTED = 19, - /// Impression goal based on GRP audience cannot be set once the line item has - /// started serving. - /// - CANNOT_SET_GRP_AUDIENCE_GOAL = 17, - /// Impression goal based on GRP audience cannot be removed once the line item has - /// started serving. - /// - CANNOT_REMOVE_GRP_AUDIENCE_GOAL = 18, - /// Unsupported geographic location targeted for line item with GRP audience goal. - /// - UNSUPPORTED_GEO_TARGETING = 12, - /// GRP Settings specified are unsupported. - /// - UNSUPPORTED_GRP_SETTING = 20, - /// In-target line items should be set through the grpSettings target impression - /// goal. - /// - SHOULD_SET_IN_TARGET_GOAL_THROUGH_GRP_SETTINGS = 21, - /// In-target line items should be set through the primaryReservationUnit's - /// in-target Impressions unit type. + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CreativePreviewError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum CreativePreviewErrorReason { + /// The creative cannot be previewed on this page. /// - SHOULD_SET_IN_TARGET_GOAL_THROUGH_PRIMARY_GOAL = 22, - /// Attempt to register with Nielsen failed. + CANNOT_GENERATE_PREVIEW_URL = 0, + /// Preview URLs for native creatives must be retrieved with LineItemCreativeAssociationService#getPreviewUrlsForNativeStyles. /// - NIELSEN_REGISTRATION_FAILED = 24, - /// Attempted to register a placement on a legacy Nielsen campaign. + CANNOT_GENERATE_PREVIEW_URL_FOR_NATIVE_CREATIVES = 2, + /// Third party creatives must have an html snippet set in order to obtain a preview + /// URL. /// - LEGACY_NIELSEN_CAMPAIGN_REGISTRATION_ATTEMPT = 25, + HTML_SNIPPET_REQUIRED_FOR_THIRD_PARTY_CREATIVE = 3, /// The value returned if the actual value is not exposed by the requested API /// version. /// - UNKNOWN = 13, + UNKNOWN = 1, } - /// Lists all errors associated with geographical targeting for a LineItem. + /// Lists all errors associated with creative asset macros. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class GeoTargetingError : ApiError { - private GeoTargetingErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class CreativeAssetMacroError : ApiError { + private CreativeAssetMacroErrorReason reasonField; private bool reasonFieldSpecified; /// The error reason represented by an enum. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public GeoTargetingErrorReason reason { + public CreativeAssetMacroErrorReason reason { get { return this.reasonField; } @@ -26983,1680 +28524,1505 @@ public bool reasonSpecified { /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "GeoTargetingError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum GeoTargetingErrorReason { - /// A location that is targeted cannot also be excluded. - /// - TARGETED_LOCATIONS_NOT_EXCLUDABLE = 0, - /// Excluded locations cannot have any of their children targeted. - /// - EXCLUDED_LOCATIONS_CANNOT_HAVE_CHILDREN_TARGETED = 1, - /// Postal codes cannot be excluded. - /// - POSTAL_CODES_CANNOT_BE_EXCLUDED = 2, - /// Indicates that location targeting is not allowed. + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CreativeAssetMacroError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum CreativeAssetMacroErrorReason { + /// Invalid macro name specified. Macro names must start with an alpha character and + /// consist only of alpha-numeric characters and underscores and be between 1 and 64 + /// characters. /// - UNTARGETABLE_LOCATION = 3, + INVALID_MACRO_NAME = 0, /// The value returned if the actual value is not exposed by the requested API /// version. /// - UNKNOWN = 4, + UNKNOWN = 1, } - /// Targeting validation errors that can be used by different targeting types. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class GenericTargetingError : ApiError { - private GenericTargetingErrorReason reasonField; - - private bool reasonFieldSpecified; + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", ConfigurationName = "Google.Api.Ads.AdManager.v202411.LineItemCreativeAssociationServiceInterface")] + public interface LineItemCreativeAssociationServiceInterface + { + // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Wrappers.LineItemCreativeAssociationService.createLineItemCreativeAssociationsResponse createLineItemCreativeAssociations(Wrappers.LineItemCreativeAssociationService.createLineItemCreativeAssociationsRequest request); - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public GenericTargetingErrorReason reason { - get { - return this.reasonField; - } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + System.Threading.Tasks.Task createLineItemCreativeAssociationsAsync(Wrappers.LineItemCreativeAssociationService.createLineItemCreativeAssociationsRequest request); - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { - return this.reasonFieldSpecified; - } - set { - this.reasonFieldSpecified = value; - } - } - } + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v202411.LineItemCreativeAssociationPage getLineItemCreativeAssociationsByStatement(Google.Api.Ads.AdManager.v202411.Statement filterStatement); + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task getLineItemCreativeAssociationsByStatementAsync(Google.Api.Ads.AdManager.v202411.Statement filterStatement); - /// The reasons for the target error. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "GenericTargetingError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum GenericTargetingErrorReason { - /// Both including and excluding sibling criteria is disallowed. - /// - CONFLICTING_INCLUSION_OR_EXCLUSION_OF_SIBLINGS = 0, - /// Including descendants of excluded criteria is disallowed. - /// - INCLUDING_DESCENDANTS_OF_EXCLUDED_CRITERIA = 1, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 2, - } + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + string getPreviewUrl(long lineItemId, long creativeId, string siteUrl); + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task getPreviewUrlAsync(long lineItemId, long creativeId, string siteUrl); - /// Lists all errors associated with frequency caps. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class FrequencyCapError : ApiError { - private FrequencyCapErrorReason reasonField; + // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Wrappers.LineItemCreativeAssociationService.getPreviewUrlsForNativeStylesResponse getPreviewUrlsForNativeStyles(Wrappers.LineItemCreativeAssociationService.getPreviewUrlsForNativeStylesRequest request); - private bool reasonFieldSpecified; + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + System.Threading.Tasks.Task getPreviewUrlsForNativeStylesAsync(Wrappers.LineItemCreativeAssociationService.getPreviewUrlsForNativeStylesRequest request); - /// The error reason represented by an enum. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public FrequencyCapErrorReason reason { - get { - return this.reasonField; - } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v202411.UpdateResult performLineItemCreativeAssociationAction(Google.Api.Ads.AdManager.v202411.LineItemCreativeAssociationAction lineItemCreativeAssociationAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement); - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { - return this.reasonFieldSpecified; - } - set { - this.reasonFieldSpecified = value; - } - } - } + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task performLineItemCreativeAssociationActionAsync(Google.Api.Ads.AdManager.v202411.LineItemCreativeAssociationAction lineItemCreativeAssociationAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement); + // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Wrappers.LineItemCreativeAssociationService.updateLineItemCreativeAssociationsResponse updateLineItemCreativeAssociations(Wrappers.LineItemCreativeAssociationService.updateLineItemCreativeAssociationsRequest request); - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "FrequencyCapError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum FrequencyCapErrorReason { - IMPRESSION_LIMIT_EXCEEDED = 0, - IMPRESSIONS_TOO_LOW = 1, - RANGE_LIMIT_EXCEEDED = 2, - RANGE_TOO_LOW = 3, - DUPLICATE_TIME_RANGE = 4, - TOO_MANY_FREQUENCY_CAPS = 5, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 6, + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + System.Threading.Tasks.Task updateLineItemCreativeAssociationsAsync(Wrappers.LineItemCreativeAssociationService.updateLineItemCreativeAssociationsRequest request); } - /// Errors that can result from a forecast request. + /// Captures a page of LineItemCreativeAssociation objects. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ForecastError : ApiError { - private ForecastErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class LineItemCreativeAssociationPage { + private int totalResultSetSizeField; - private bool reasonFieldSpecified; + private bool totalResultSetSizeFieldSpecified; - /// The reason for the forecast error. + private int startIndexField; + + private bool startIndexFieldSpecified; + + private LineItemCreativeAssociation[] resultsField; + + /// The size of the total result set to which this page belongs. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public ForecastErrorReason reason { + public int totalResultSetSize { get { - return this.reasonField; + return this.totalResultSetSizeField; } set { - this.reasonField = value; - this.reasonSpecified = true; + this.totalResultSetSizeField = value; + this.totalResultSetSizeSpecified = true; } } - /// true, if a value is specified for , - /// false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { + public bool totalResultSetSizeSpecified { get { - return this.reasonFieldSpecified; + return this.totalResultSetSizeFieldSpecified; } set { - this.reasonFieldSpecified = value; + this.totalResultSetSizeFieldSpecified = value; } } - } - - - /// Reason why a forecast could not be retrieved. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ForecastError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum ForecastErrorReason { - /// The forecast could not be retrieved due to a server side connection problem. - /// Please try again soon. - /// - SERVER_NOT_AVAILABLE = 0, - /// There was an unexpected internal error. - /// - INTERNAL_ERROR = 1, - /// The forecast could not be retrieved because there is not enough forecasting data - /// available yet. It may take up to one week before enough data is available. - /// - NO_FORECAST_YET = 2, - /// There's not enough inventory for the requested reservation. - /// - NOT_ENOUGH_INVENTORY = 3, - /// No error from forecast. - /// - SUCCESS = 4, - /// The requested reservation is of zero length. No forecast is returned. - /// - ZERO_LENGTH_RESERVATION = 5, - /// The number of requests made per second is too high and has exceeded the - /// allowable limit. The recommended approach to handle this error is to wait about - /// 5 seconds and then retry the request. Note that this does not guarantee the - /// request will succeed. If it fails again, try increasing the wait time. - ///

Another way to mitigate this error is to limit requests to 2 per second. Once - /// again this does not guarantee that every request will succeed, but may help - /// reduce the number of times you receive this error.

- ///
- EXCEEDED_QUOTA = 6, - /// The request falls outside the date range of the available data. - /// - OUTSIDE_AVAILABLE_DATE_RANGE = 8, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 7, - } - - - /// Lists all errors associated with day-part targeting for a line item. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class DayPartTargetingError : ApiError { - private DayPartTargetingErrorReason reasonField; - - private bool reasonFieldSpecified; - /// The error reason represented by an enum. + /// The absolute index in the total result set on which this page begins. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public DayPartTargetingErrorReason reason { + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public int startIndex { get { - return this.reasonField; + return this.startIndexField; } set { - this.reasonField = value; - this.reasonSpecified = true; + this.startIndexField = value; + this.startIndexSpecified = true; } } - /// true, if a value is specified for , - /// false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { + public bool startIndexSpecified { get { - return this.reasonFieldSpecified; + return this.startIndexFieldSpecified; } set { - this.reasonFieldSpecified = value; + this.startIndexFieldSpecified = value; } } - } - - /// The reasons for the target error. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "DayPartTargetingError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum DayPartTargetingErrorReason { - /// Hour of day must be between 0 and 24, inclusive. - /// - INVALID_HOUR = 0, - /// Minute of hour must be one of 0, 15,30, 45. - /// - INVALID_MINUTE = 1, - /// The DayPart#endTime cannot be after DayPart#startTime. - /// - END_TIME_NOT_AFTER_START_TIME = 2, - /// Cannot create day-parts that overlap. - /// - TIME_PERIODS_OVERLAP = 3, - /// The value returned if the actual value is not exposed by the requested API - /// version. + /// The collection of line item creative associations contained within this page. /// - UNKNOWN = 4, + [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] + public LineItemCreativeAssociation[] results { + get { + return this.resultsField; + } + set { + this.resultsField = value; + } + } } - /// Lists all date time range errors caused by associating a line item with a - /// targeting expression. + /// Represents the NativeStyle of a Creative and its corresponding preview URL. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class DateTimeRangeTargetingError : ApiError { - private DateTimeRangeTargetingErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class CreativeNativeStylePreview { + private long nativeStyleIdField; - private bool reasonFieldSpecified; + private bool nativeStyleIdFieldSpecified; - /// The error reason represented by an enum. + private string previewUrlField; + + /// The id of the NativeStyle. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public DateTimeRangeTargetingErrorReason reason { + public long nativeStyleId { get { - return this.reasonField; + return this.nativeStyleIdField; } set { - this.reasonField = value; - this.reasonSpecified = true; + this.nativeStyleIdField = value; + this.nativeStyleIdSpecified = true; } } - /// true, if a value is specified for , - /// false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { + public bool nativeStyleIdSpecified { get { - return this.reasonFieldSpecified; + return this.nativeStyleIdFieldSpecified; } set { - this.reasonFieldSpecified = value; + this.nativeStyleIdFieldSpecified = value; } } - } - - /// ApiErrorReason enum for date time range targeting - /// error. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "DateTimeRangeTargetingError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum DateTimeRangeTargetingErrorReason { - /// No targeted ranges exists. - /// - EMPTY_RANGES = 0, - /// Type of lineitem is not sponsorship. - /// - NOT_SPONSORSHIP_LINEITEM = 1, - /// Type of lineitem is not sponsorship or standard. - /// - NOT_SPONSORSHIP_OR_STANDARD_LINEITEM = 14, - /// Line item must have a reservation type of sponsorship, standard or preferred - /// deal to use date time range targeting. - /// - UNSUPPORTED_LINEITEM_RESERVATION_TYPE = 15, - /// Past ranges are changed. - /// - PAST_RANGES_CHANGED = 2, - /// Targeted date time ranges overlap. - /// - RANGES_OVERLAP = 3, - /// First date time does not match line item's start time. - /// - FIRST_DATE_TIME_DOES_NOT_MATCH_START_TIME = 12, - /// Last date time does not match line item's end time. - /// - LAST_DATE_TIME_DOES_NOT_MATCH_END_TIME = 13, - /// Targeted date time ranges fall out the active period of lineitem. - /// - RANGES_OUT_OF_LINEITEM_ACTIVE_PERIOD = 4, - /// Start time of range (except the earliest range) is not at start of day. Start of - /// day is 00:00:00. - /// - START_TIME_IS_NOT_START_OF_DAY = 5, - /// End time of range (except the latest range) is not at end of day. End of day is - /// 23:59:59. - /// - END_TIME_IS_NOT_END_OF_DAY = 6, - /// Start date time of earliest targeted ranges is in past. - /// - START_DATE_TIME_IS_IN_PAST = 7, - /// Cannot modify the start date time for date time targeting to the past. - /// - MODIFY_START_DATE_TIME_TO_PAST = 16, - /// The end time of range is before the start time. Could happen when start type is - /// IMMEDIATE or ONE_HOUR_LATER. - /// - RANGE_END_TIME_BEFORE_START_TIME = 8, - /// End date time of latest targeted ranges is too late. - /// - END_DATE_TIME_IS_TOO_LATE = 9, - LIMITED_RANGES_IN_UNLIMITED_LINEITEM = 10, - /// The value returned if the actual value is not exposed by the requested API - /// version. + /// The URL for previewing this creative using this particular NativeStyle /// - UNKNOWN = 11, - } - - - /// A list of all errors associated with the dates. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class DateError : ApiError { - private DateErrorReason reasonField; - - private bool reasonFieldSpecified; - - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public DateErrorReason reason { - get { - return this.reasonField; - } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public string previewUrl { get { - return this.reasonFieldSpecified; + return this.previewUrlField; } set { - this.reasonFieldSpecified = value; + this.previewUrlField = value; } } } - /// Enumerates all possible date specific errors. + /// Represents the actions that can be performed on LineItemCreativeAssociation objects. /// + [System.Xml.Serialization.XmlIncludeAttribute(typeof(DeleteLineItemCreativeAssociations))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(DeactivateLineItemCreativeAssociations))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ActivateLineItemCreativeAssociations))] [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "DateError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum DateErrorReason { - DATE_IN_PAST = 0, - START_DATE_AFTER_END_DATE = 1, - END_DATE_BEFORE_START_DATE = 2, - NOT_CERTAIN_DAY_OF_MONTH = 3, - INVALID_DATES = 4, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 5, + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public abstract partial class LineItemCreativeAssociationAction { } - /// Errors related to currency codes. + /// The action used for deleting LineItemCreativeAssociation objects. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class CurrencyCodeError : ApiError { - private CurrencyCodeErrorReason reasonField; - - private bool reasonFieldSpecified; - - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public CurrencyCodeErrorReason reason { - get { - return this.reasonField; - } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { - return this.reasonFieldSpecified; - } - set { - this.reasonFieldSpecified = value; - } - } + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class DeleteLineItemCreativeAssociations : LineItemCreativeAssociationAction { } - /// The reason behind the currency code error. + /// The action used for deactivating LineItemCreativeAssociation objects. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CurrencyCodeError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum CurrencyCodeErrorReason { - /// The currency code is invalid and does not follow ISO 4217. - /// - INVALID = 0, - /// The currency code is valid, but is not supported. - /// - UNSUPPORTED = 1, - /// The currency has been used for entity creation after its deprecation - /// - DEPRECATED_CURRENCY_USED = 2, + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class DeactivateLineItemCreativeAssociations : LineItemCreativeAssociationAction { } - /// Lists all errors associated with cross selling. + /// The action used for activating LineItemCreativeAssociation objects. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class CrossSellError : ApiError { - private CrossSellErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ActivateLineItemCreativeAssociations : LineItemCreativeAssociationAction { + } - private bool reasonFieldSpecified; - /// The error reason represented by an enum. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public CrossSellErrorReason reason { - get { - return this.reasonField; - } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + public interface LineItemCreativeAssociationServiceInterfaceChannel : Google.Api.Ads.AdManager.v202411.LineItemCreativeAssociationServiceInterface, System.ServiceModel.IClientChannel + { + } - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { - return this.reasonFieldSpecified; - } - set { - this.reasonFieldSpecified = value; - } + + /// Provides operations for creating, updating and retrieving LineItemCreativeAssociation objects.

A + /// line item creative association (LICA) associates a Creative with a LineItem. When a line + /// item is selected to serve, the LICAs specify which creatives can appear for the + /// ad units that are targeted by the line item. In order to be associated with a + /// line item, the creative must have a size that exists within the attribute LineItem#creativePlaceholders.

+ ///

Each LICA has a start and end date and time that defines when the creative + /// should be displayed.

To read more about associating creatives with line + /// items, see this Ad + /// Manager Help Center article.

+ ///
+ [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + public partial class LineItemCreativeAssociationService : AdManagerSoapClient, ILineItemCreativeAssociationService { + /// Creates a new instance of the class. + public LineItemCreativeAssociationService() { } - } + /// Creates a new instance of the class. + public LineItemCreativeAssociationService(string endpointConfigurationName) + : base(endpointConfigurationName) { + } - /// The reason of the error. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CrossSellError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum CrossSellErrorReason { - /// A company for cross-sell partner must be of type Company.Type#PARTNER. - /// - COMPANY_IS_NOT_DISTRIBUTION_PARTNER = 2, - /// The network code of a cross-sell partner cannot be changed. - /// - CHANGING_PARTNER_NETWORK_IS_NOT_SUPPORTED = 3, - /// A cross-sell partner must have a partner name. - /// - MISSING_DISTRIBUTOR_PARTNER_NAME = 4, - /// The cross-sell distributor publisher feature must be enabled. - /// - DISTRIBUTOR_NETWORK_MISSING_PUBLISHER_FEATURE = 5, - /// The cross-sell publisher features must be enabled on the partner's network. - /// - CONTENT_PROVIDER_NETWORK_MISSING_PUBLISHER_FEATURE = 6, - /// The cross-sell partner name conflicts with an ad unit name on the partner's - /// network. - /// - INVALID_DISTRIBUTOR_PARTNER_NAME = 7, - /// The network code of a cross-sell partner is invalid. + /// Creates a new instance of the class. + public LineItemCreativeAssociationService(string endpointConfigurationName, string remoteAddress) + : base(endpointConfigurationName, remoteAddress) { + } + + /// Creates a new instance of the class. + public LineItemCreativeAssociationService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) + : base(endpointConfigurationName, remoteAddress) { + } + + /// Creates a new instance of the class. + public LineItemCreativeAssociationService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) + : base(binding, remoteAddress) { + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + Wrappers.LineItemCreativeAssociationService.createLineItemCreativeAssociationsResponse Google.Api.Ads.AdManager.v202411.LineItemCreativeAssociationServiceInterface.createLineItemCreativeAssociations(Wrappers.LineItemCreativeAssociationService.createLineItemCreativeAssociationsRequest request) { + return base.Channel.createLineItemCreativeAssociations(request); + } + + /// Creates new LineItemCreativeAssociation objects /// - INVALID_CONTENT_PROVIDER_NETWORK = 8, - /// The content provider network must be different than the distributor network. + public virtual Google.Api.Ads.AdManager.v202411.LineItemCreativeAssociation[] createLineItemCreativeAssociations(Google.Api.Ads.AdManager.v202411.LineItemCreativeAssociation[] lineItemCreativeAssociations) { + Wrappers.LineItemCreativeAssociationService.createLineItemCreativeAssociationsRequest inValue = new Wrappers.LineItemCreativeAssociationService.createLineItemCreativeAssociationsRequest(); + inValue.lineItemCreativeAssociations = lineItemCreativeAssociations; + Wrappers.LineItemCreativeAssociationService.createLineItemCreativeAssociationsResponse retVal = ((Google.Api.Ads.AdManager.v202411.LineItemCreativeAssociationServiceInterface)(this)).createLineItemCreativeAssociations(inValue); + return retVal.rval; + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202411.LineItemCreativeAssociationServiceInterface.createLineItemCreativeAssociationsAsync(Wrappers.LineItemCreativeAssociationService.createLineItemCreativeAssociationsRequest request) { + return base.Channel.createLineItemCreativeAssociationsAsync(request); + } + + public virtual System.Threading.Tasks.Task createLineItemCreativeAssociationsAsync(Google.Api.Ads.AdManager.v202411.LineItemCreativeAssociation[] lineItemCreativeAssociations) { + Wrappers.LineItemCreativeAssociationService.createLineItemCreativeAssociationsRequest inValue = new Wrappers.LineItemCreativeAssociationService.createLineItemCreativeAssociationsRequest(); + inValue.lineItemCreativeAssociations = lineItemCreativeAssociations; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202411.LineItemCreativeAssociationServiceInterface)(this)).createLineItemCreativeAssociationsAsync(inValue)).Result.rval); + } + + /// Gets a LineItemCreativeAssociationPage of LineItemCreativeAssociation objects that + /// satisfy the given Statement#query. The following + /// fields are supported for filtering: + /// + /// + /// + /// + /// + /// + ///
PQL + /// Property Object Property
creativeId LineItemCreativeAssociation#creativeId
manualCreativeRotationWeight LineItemCreativeAssociation#manualCreativeRotationWeight
destinationUrl LineItemCreativeAssociation#destinationUrl
lineItemId LineItemCreativeAssociation#lineItemId
status LineItemCreativeAssociation#status
lastModifiedDateTime LineItemCreativeAssociation#lastModifiedDateTime
///
- CONTENT_PROVIDER_NETWORK_CANNOT_BE_ACTIVE_NETWORK = 9, - /// The same network code was already enabled for cross-sell in a different company. + public virtual Google.Api.Ads.AdManager.v202411.LineItemCreativeAssociationPage getLineItemCreativeAssociationsByStatement(Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.getLineItemCreativeAssociationsByStatement(filterStatement); + } + + public virtual System.Threading.Tasks.Task getLineItemCreativeAssociationsByStatementAsync(Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.getLineItemCreativeAssociationsByStatementAsync(filterStatement); + } + + /// Returns an insite preview URL that references the specified site URL with the + /// specified creative from the association served to it. For Creative Set + /// previewing you may specify the master creative Id. /// - CONTENT_PROVIDER_NETWORK_ALREADY_ENABLED_FOR_CROSS_SELLING = 10, - /// A rule defined by the cross selling distributor has been violated by a line item - /// targeting a shared ad unit. Violating this rule is an error. + public virtual string getPreviewUrl(long lineItemId, long creativeId, string siteUrl) { + return base.Channel.getPreviewUrl(lineItemId, creativeId, siteUrl); + } + + public virtual System.Threading.Tasks.Task getPreviewUrlAsync(long lineItemId, long creativeId, string siteUrl) { + return base.Channel.getPreviewUrlAsync(lineItemId, creativeId, siteUrl); + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + Wrappers.LineItemCreativeAssociationService.getPreviewUrlsForNativeStylesResponse Google.Api.Ads.AdManager.v202411.LineItemCreativeAssociationServiceInterface.getPreviewUrlsForNativeStyles(Wrappers.LineItemCreativeAssociationService.getPreviewUrlsForNativeStylesRequest request) { + return base.Channel.getPreviewUrlsForNativeStyles(request); + } + + /// Returns a list of URLs that reference the specified site URL with the specified + /// creative from the association served to it. For Creative Set previewing you may + /// specify the master creative Id. Each URL corresponds to one available native + /// style for previewing the specified creative. /// - DISTRIBUTOR_RULE_VIOLATION_ERROR = 11, - /// A rule defined by the cross selling distributor has been violated by a line item - /// targeting a shared ad unit. Violating this rule is a warning.

By setting LineItem#skipCrossSellingRuleWarningChecks, - /// the content partner can suppress the warning (and create or save the line - /// item).

This flag is available beginning in V201411.

+ public virtual Google.Api.Ads.AdManager.v202411.CreativeNativeStylePreview[] getPreviewUrlsForNativeStyles(long lineItemId, long creativeId, string siteUrl) { + Wrappers.LineItemCreativeAssociationService.getPreviewUrlsForNativeStylesRequest inValue = new Wrappers.LineItemCreativeAssociationService.getPreviewUrlsForNativeStylesRequest(); + inValue.lineItemId = lineItemId; + inValue.creativeId = creativeId; + inValue.siteUrl = siteUrl; + Wrappers.LineItemCreativeAssociationService.getPreviewUrlsForNativeStylesResponse retVal = ((Google.Api.Ads.AdManager.v202411.LineItemCreativeAssociationServiceInterface)(this)).getPreviewUrlsForNativeStyles(inValue); + return retVal.rval; + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202411.LineItemCreativeAssociationServiceInterface.getPreviewUrlsForNativeStylesAsync(Wrappers.LineItemCreativeAssociationService.getPreviewUrlsForNativeStylesRequest request) { + return base.Channel.getPreviewUrlsForNativeStylesAsync(request); + } + + public virtual System.Threading.Tasks.Task getPreviewUrlsForNativeStylesAsync(long lineItemId, long creativeId, string siteUrl) { + Wrappers.LineItemCreativeAssociationService.getPreviewUrlsForNativeStylesRequest inValue = new Wrappers.LineItemCreativeAssociationService.getPreviewUrlsForNativeStylesRequest(); + inValue.lineItemId = lineItemId; + inValue.creativeId = creativeId; + inValue.siteUrl = siteUrl; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202411.LineItemCreativeAssociationServiceInterface)(this)).getPreviewUrlsForNativeStylesAsync(inValue)).Result.rval); + } + + /// Performs actions on LineItemCreativeAssociation objects that + /// match the given Statement#query. /// - DISTRIBUTOR_RULE_VIOLATION_WARNING = 12, - /// The value returned if the actual value is not exposed by the requested API - /// version. + public virtual Google.Api.Ads.AdManager.v202411.UpdateResult performLineItemCreativeAssociationAction(Google.Api.Ads.AdManager.v202411.LineItemCreativeAssociationAction lineItemCreativeAssociationAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.performLineItemCreativeAssociationAction(lineItemCreativeAssociationAction, filterStatement); + } + + public virtual System.Threading.Tasks.Task performLineItemCreativeAssociationActionAsync(Google.Api.Ads.AdManager.v202411.LineItemCreativeAssociationAction lineItemCreativeAssociationAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.performLineItemCreativeAssociationActionAsync(lineItemCreativeAssociationAction, filterStatement); + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + Wrappers.LineItemCreativeAssociationService.updateLineItemCreativeAssociationsResponse Google.Api.Ads.AdManager.v202411.LineItemCreativeAssociationServiceInterface.updateLineItemCreativeAssociations(Wrappers.LineItemCreativeAssociationService.updateLineItemCreativeAssociationsRequest request) { + return base.Channel.updateLineItemCreativeAssociations(request); + } + + /// Updates the specified LineItemCreativeAssociation objects /// - UNKNOWN = 13, + public virtual Google.Api.Ads.AdManager.v202411.LineItemCreativeAssociation[] updateLineItemCreativeAssociations(Google.Api.Ads.AdManager.v202411.LineItemCreativeAssociation[] lineItemCreativeAssociations) { + Wrappers.LineItemCreativeAssociationService.updateLineItemCreativeAssociationsRequest inValue = new Wrappers.LineItemCreativeAssociationService.updateLineItemCreativeAssociationsRequest(); + inValue.lineItemCreativeAssociations = lineItemCreativeAssociations; + Wrappers.LineItemCreativeAssociationService.updateLineItemCreativeAssociationsResponse retVal = ((Google.Api.Ads.AdManager.v202411.LineItemCreativeAssociationServiceInterface)(this)).updateLineItemCreativeAssociations(inValue); + return retVal.rval; + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202411.LineItemCreativeAssociationServiceInterface.updateLineItemCreativeAssociationsAsync(Wrappers.LineItemCreativeAssociationService.updateLineItemCreativeAssociationsRequest request) { + return base.Channel.updateLineItemCreativeAssociationsAsync(request); + } + + public virtual System.Threading.Tasks.Task updateLineItemCreativeAssociationsAsync(Google.Api.Ads.AdManager.v202411.LineItemCreativeAssociation[] lineItemCreativeAssociations) { + Wrappers.LineItemCreativeAssociationService.updateLineItemCreativeAssociationsRequest inValue = new Wrappers.LineItemCreativeAssociationService.updateLineItemCreativeAssociationsRequest(); + inValue.lineItemCreativeAssociations = lineItemCreativeAssociations; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202411.LineItemCreativeAssociationServiceInterface)(this)).updateLineItemCreativeAssociationsAsync(inValue)).Result.rval); + } } + namespace Wrappers.LineItemService + { + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "createLineItems", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class createLineItemsRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("lineItems")] + public Google.Api.Ads.AdManager.v202411.LineItem[] lineItems; + /// Creates a new instance of the + /// class. + public createLineItemsRequest() { + } - /// Lists all errors due to Company#creditStatus. + /// Creates a new instance of the + /// class. + public createLineItemsRequest(Google.Api.Ads.AdManager.v202411.LineItem[] lineItems) { + this.lineItems = lineItems; + } + } + + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "createLineItemsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class createLineItemsResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("rval")] + public Google.Api.Ads.AdManager.v202411.LineItem[] rval; + + /// Creates a new instance of the + /// class. + public createLineItemsResponse() { + } + + /// Creates a new instance of the + /// class. + public createLineItemsResponse(Google.Api.Ads.AdManager.v202411.LineItem[] rval) { + this.rval = rval; + } + } + + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "updateLineItems", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class updateLineItemsRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("lineItems")] + public Google.Api.Ads.AdManager.v202411.LineItem[] lineItems; + + /// Creates a new instance of the + /// class. + public updateLineItemsRequest() { + } + + /// Creates a new instance of the + /// class. + public updateLineItemsRequest(Google.Api.Ads.AdManager.v202411.LineItem[] lineItems) { + this.lineItems = lineItems; + } + } + + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "updateLineItemsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class updateLineItemsResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("rval")] + public Google.Api.Ads.AdManager.v202411.LineItem[] rval; + + /// Creates a new instance of the + /// class. + public updateLineItemsResponse() { + } + + /// Creates a new instance of the + /// class. + public updateLineItemsResponse(Google.Api.Ads.AdManager.v202411.LineItem[] rval) { + this.rval = rval; + } + } + } + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", ConfigurationName = "Google.Api.Ads.AdManager.v202411.LineItemServiceInterface")] + public interface LineItemServiceInterface + { + // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(LineItemSummary))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Wrappers.LineItemService.createLineItemsResponse createLineItems(Wrappers.LineItemService.createLineItemsRequest request); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + System.Threading.Tasks.Task createLineItemsAsync(Wrappers.LineItemService.createLineItemsRequest request); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(LineItemSummary))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v202411.LineItemPage getLineItemsByStatement(Google.Api.Ads.AdManager.v202411.Statement filterStatement); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task getLineItemsByStatementAsync(Google.Api.Ads.AdManager.v202411.Statement filterStatement); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(LineItemSummary))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v202411.UpdateResult performLineItemAction(Google.Api.Ads.AdManager.v202411.LineItemAction lineItemAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task performLineItemActionAsync(Google.Api.Ads.AdManager.v202411.LineItemAction lineItemAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement); + + // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(LineItemSummary))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Wrappers.LineItemService.updateLineItemsResponse updateLineItems(Wrappers.LineItemService.updateLineItemsRequest request); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + System.Threading.Tasks.Task updateLineItemsAsync(Wrappers.LineItemService.updateLineItemsRequest request); + } + + + /// Captures a page of LineItem objects. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class CompanyCreditStatusError : ApiError { - private CompanyCreditStatusErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class LineItemPage { + private int totalResultSetSizeField; - private bool reasonFieldSpecified; + private bool totalResultSetSizeFieldSpecified; - /// The error reason represented by an enum. + private int startIndexField; + + private bool startIndexFieldSpecified; + + private LineItem[] resultsField; + + /// The size of the total result set to which this page belongs. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public CompanyCreditStatusErrorReason reason { + public int totalResultSetSize { get { - return this.reasonField; + return this.totalResultSetSizeField; } set { - this.reasonField = value; - this.reasonSpecified = true; + this.totalResultSetSizeField = value; + this.totalResultSetSizeSpecified = true; } } - /// true, if a value is specified for , - /// false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { + public bool totalResultSetSizeSpecified { get { - return this.reasonFieldSpecified; + return this.totalResultSetSizeFieldSpecified; } set { - this.reasonFieldSpecified = value; + this.totalResultSetSizeFieldSpecified = value; + } + } + + /// The absolute index in the total result set on which this page begins. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public int startIndex { + get { + return this.startIndexField; + } + set { + this.startIndexField = value; + this.startIndexSpecified = true; + } + } + + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool startIndexSpecified { + get { + return this.startIndexFieldSpecified; + } + set { + this.startIndexFieldSpecified = value; + } + } + + /// The collection of line items contained within this page. + /// + [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] + public LineItem[] results { + get { + return this.resultsField; + } + set { + this.resultsField = value; } } } - /// The reasons for the target error. + /// Represents the actions that can be performed on LineItem + /// objects. /// + [System.Xml.Serialization.XmlIncludeAttribute(typeof(UnarchiveLineItems))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ResumeLineItems))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ResumeAndOverbookLineItems))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ReserveLineItems))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ReserveAndOverbookLineItems))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ReleaseLineItems))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(PauseLineItems))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(DeleteLineItems))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ArchiveLineItems))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ActivateLineItems))] [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CompanyCreditStatusError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum CompanyCreditStatusErrorReason { - /// The user's role does not have permission to change Company#creditStatus from the default value. The - /// default value is Company.CreditStatus#ACTIVE for the Basic - /// credit status setting and Company.CreditStatus#ON_HOLD for the - /// Advanced credit status setting. - /// - COMPANY_CREDIT_STATUS_CHANGE_NOT_ALLOWED = 0, - /// The network has not been enabled for editing credit status settings for - /// companies. - /// - CANNOT_USE_CREDIT_STATUS_SETTING = 1, - /// The network has not been enabled for the Advanced credit status settings for - /// companies. Company#creditStatus must be - /// either ACTIVE or INACTIVE. - /// - CANNOT_USE_ADVANCED_CREDIT_STATUS_SETTING = 2, - /// An order cannot be created or updated because the Order#advertiserId or the Order#agencyId it is associated with has Company#creditStatus that is not - /// ACTIVE or ON_HOLD. - /// - UNACCEPTABLE_COMPANY_CREDIT_STATUS_FOR_ORDER = 3, - /// A line item cannot be created for the order because the Order#advertiserId or {Order#agencyId} it is - /// associated with has Company#creditStatus that - /// is not or ON_HOLD. - /// - UNACCEPTABLE_COMPANY_CREDIT_STATUS_FOR_LINE_ITEM = 4, - /// The company cannot be blocked because there are more than 200 approved orders of - /// the company. Archive some, so that there are less than 200 of them. - /// - CANNOT_BLOCK_COMPANY_TOO_MANY_APPROVED_ORDERS = 5, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 6, + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public abstract partial class LineItemAction { } - /// Click tracking is a special line item type with a number of unique errors as - /// described below. + /// The action used for unarchiving LineItem objects. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ClickTrackingLineItemError : ApiError { - private ClickTrackingLineItemErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class UnarchiveLineItems : LineItemAction { + } - private bool reasonFieldSpecified; - /// The error reason represented by an enum. + /// The action used for resuming LineItem objects. + /// + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ResumeAndOverbookLineItems))] + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ResumeLineItems : LineItemAction { + private bool skipInventoryCheckField; + + private bool skipInventoryCheckFieldSpecified; + + /// Indicates whether the inventory check should be skipped when performing this + /// action. The default value is false. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public ClickTrackingLineItemErrorReason reason { + public bool skipInventoryCheck { get { - return this.reasonField; + return this.skipInventoryCheckField; } set { - this.reasonField = value; - this.reasonSpecified = true; + this.skipInventoryCheckField = value; + this.skipInventoryCheckSpecified = true; } } - /// true, if a value is specified for , - /// false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { + public bool skipInventoryCheckSpecified { get { - return this.reasonFieldSpecified; + return this.skipInventoryCheckFieldSpecified; } set { - this.reasonFieldSpecified = value; + this.skipInventoryCheckFieldSpecified = value; } } } - /// The reasons for the target error. + /// The action used for resuming and overbooking LineItem + /// objects. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ClickTrackingLineItemError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum ClickTrackingLineItemErrorReason { - /// The line item type cannot be changed once created. - /// - TYPE_IMMUTABLE = 0, - /// Click tracking line items can only be targeted at ad unit inventory, all other - /// types are invalid, as well as placements. - /// - INVALID_TARGETING_TYPE = 1, - /// Click tracking line items do not allow us to control creative delivery so are by - /// nature one or more as entered by the third party. - /// - INVALID_ROADBLOCKING_TYPE = 2, - /// Click tracking line items do not support the CreativeRotationType#OPTIMIZED - /// creative rotation type. - /// - INVALID_CREATIVEROTATION_TYPE = 3, - /// Click tracking line items do not allow us to control line item delivery so we - /// can not control the rate at which they are served. - /// - INVALID_DELIVERY_RATE_TYPE = 4, - /// Not all fields are supported by the click tracking line items. - /// - UNSUPPORTED_FIELD = 5, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 6, - } - - - /// Errors associated with audience extension enabled line items - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class AudienceExtensionError : ApiError { - private AudienceExtensionErrorReason reasonField; - - private bool reasonFieldSpecified; - - /// The error reason represented by an enum. + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ResumeAndOverbookLineItems : ResumeLineItems { + } + + + /// The action used for reserving LineItem objects. + /// + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ReserveAndOverbookLineItems))] + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ReserveLineItems : LineItemAction { + private bool skipInventoryCheckField; + + private bool skipInventoryCheckFieldSpecified; + + /// Indicates whether the inventory check should be skipped when performing this + /// action. The default value is false. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public AudienceExtensionErrorReason reason { + public bool skipInventoryCheck { get { - return this.reasonField; + return this.skipInventoryCheckField; } set { - this.reasonField = value; - this.reasonSpecified = true; + this.skipInventoryCheckField = value; + this.skipInventoryCheckSpecified = true; } } - /// true, if a value is specified for , - /// false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { + public bool skipInventoryCheckSpecified { get { - return this.reasonFieldSpecified; + return this.skipInventoryCheckFieldSpecified; } set { - this.reasonFieldSpecified = value; + this.skipInventoryCheckFieldSpecified = value; } } } - /// Specific audience extension error reasons. + /// The action used for reserving and overbooking LineItem + /// objects. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AudienceExtensionError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum AudienceExtensionErrorReason { - /// Frequency caps are not supported by audience extension line items - /// - FREQUENCY_CAPS_NOT_SUPPORTED = 0, - /// Audience extension line items can only target geography - /// - INVALID_TARGETING = 1, - /// Audience extension line items can only target audience extension inventory units - /// - INVENTORY_UNIT_TARGETING_INVALID = 2, - /// Audience extension line items do not support CreativeRotationType#SEQUENTIAL. - /// - INVALID_CREATIVE_ROTATION = 3, - /// The given ID of the external entity is not valid - /// - INVALID_EXTERNAL_ENTITY_ID = 4, - /// Audience extension line items only support LineItemType#STANDARD. - /// - INVALID_LINE_ITEM_TYPE = 5, - /// Audience extension max bid is invalid when it is greater then the max budget. - /// - INVALID_MAX_BID = 6, - /// Bulk update for audience extension line items is not allowed. - /// - AUDIENCE_EXTENSION_BULK_UPDATE_NOT_ALLOWED = 7, - /// An unexpected error occurred. - /// - UNEXPECTED_AUDIENCE_EXTENSION_ERROR = 8, - /// The value entered for the maximum daily budget on an audience extension line - /// item exceeds the maximum allowed. - /// - MAX_DAILY_BUDGET_AMOUNT_EXCEEDED = 9, - /// Creating a campaign for a line item that already has an associated campaign is - /// not allowed. - /// - EXTERNAL_CAMPAIGN_ALREADY_EXISTS = 10, - /// Audience extension was specified on a line item but the feature was not enabled. - /// - AUDIENCE_EXTENSION_WITHOUT_FEATURE = 11, - /// Audience extension was specified on a line item but no audience extension - /// account has been linked. - /// - AUDIENCE_EXTENSION_WITHOUT_LINKED_ACCOUNT = 12, - /// Assocation creative size overrides are not allowed with audience extension. - /// - CANNOT_OVERRIDE_CREATIVE_SIZE_WITH_AUDIENCE_EXTENSION = 13, - /// Some association overrides are not allowed with audience extension. - /// - CANNOT_OVERRIDE_FIELD_WITH_AUDIENCE_EXTENSION = 14, - /// Only one creative placeholder is allowed for an audience extension line item. - /// - ONLY_ONE_CREATIVE_PLACEHOLDER_ALLOWED = 15, - /// Only one audience extension line item can be associated with a given order. - /// - MULTIPLE_AUDIENCE_EXTENSION_LINE_ITEMS_ON_ORDER = 16, - /// Audience extension line items must be copied separately from their associated - /// creatives. - /// - CANNOT_COPY_AUDIENCE_EXTENSION_LINE_ITEMS_AND_CREATIVES_TOGETHER = 17, - /// Audience extension is no longer supported and cannot be used. - /// - FEATURE_DEPRECATED = 18, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 19, + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ReserveAndOverbookLineItems : ReserveLineItems { } - /// Lists the generic errors associated with AdUnit#adUnitCode. + /// The action used for releasing LineItem objects. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class AdUnitCodeError : ApiError { - private AdUnitCodeErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ReleaseLineItems : LineItemAction { + } - private bool reasonFieldSpecified; - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public AdUnitCodeErrorReason reason { - get { - return this.reasonField; - } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } + /// The action used for pausing LineItem objects. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class PauseLineItems : LineItemAction { + } - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { - return this.reasonFieldSpecified; - } - set { - this.reasonFieldSpecified = value; - } - } + + /// The action used for deleting LineItem objects. A line + /// item can be deleted if it has never been eligible to serve. Note: deleted line + /// items will still count against your network limits. For more information, see + /// the Help + /// Center. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class DeleteLineItems : LineItemAction { } + /// The action used for archiving LineItem objects. + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AdUnitCodeError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum AdUnitCodeErrorReason { - /// For AdUnit#adUnitCode, only alpha-numeric - /// characters, underscores, hyphens, periods, asterisks, double quotes, back - /// slashes, forward slashes, exclamations, left angle brackets, colons and - /// parentheses are allowed. - /// - INVALID_CHARACTERS = 0, - /// For AdUnit#adUnitCode, only letters, numbers, - /// underscores, hyphens, periods, asterisks, double quotes, back slashes, forward - /// slashes, exclamations, left angle brackets, colons and parentheses are allowed. - /// - INVALID_CHARACTERS_WHEN_UTF_CHARACTERS_ARE_ALLOWED = 1, - /// For AdUnit#adUnitCode representing slot codes, - /// only alphanumeric characters, underscores, hyphens, periods and colons are - /// allowed. - /// - INVALID_CHARACTERS_FOR_LEGACY_AD_EXCHANGE_TAG = 5, - /// For AdUnit#adUnitCode, forward slashes are not - /// allowed as the first character. - /// - LEADING_FORWARD_SLASH = 2, - /// Specific codes matching ca-*pub-*-tag are reserved for "Web Property IUs" - /// generated as part of the SlotCode migration. - /// - RESERVED_CODE = 4, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 3, + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ArchiveLineItems : LineItemAction { + } + + + /// The action used for activating LineItem objects. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ActivateLineItems : LineItemAction { } [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", ConfigurationName = "Google.Api.Ads.AdManager.v202311.ForecastServiceInterface")] - public interface ForecastServiceInterface + public interface LineItemServiceInterfaceChannel : Google.Api.Ads.AdManager.v202411.LineItemServiceInterface, System.ServiceModel.IClientChannel { - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(LineItemSummary))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v202311.AvailabilityForecast getAvailabilityForecast(Google.Api.Ads.AdManager.v202311.ProspectiveLineItem lineItem, Google.Api.Ads.AdManager.v202311.AvailabilityForecastOptions forecastOptions); + } - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getAvailabilityForecastAsync(Google.Api.Ads.AdManager.v202311.ProspectiveLineItem lineItem, Google.Api.Ads.AdManager.v202311.AvailabilityForecastOptions forecastOptions); - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(LineItemSummary))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v202311.AvailabilityForecast getAvailabilityForecastById(long lineItemId, Google.Api.Ads.AdManager.v202311.AvailabilityForecastOptions forecastOptions); + /// Provides methods for creating, updating and retrieving LineItem objects.

Line items define the campaign. For + /// example, line items define:

  • a budget
  • a span of time to + /// run
  • ad unit targeting

In short, line items connect all of + /// the elements of an ad campaign.

Line items and creatives can be + /// associated with each other through LineItemCreativeAssociation + /// objects. An ad unit will host a creative through both this association and the + /// LineItem#targeting to it. The delivery of a + /// line item depends on its priority. More information on line item priorities can + /// be found on the Ad + /// Manager Help Center.

+ ///
+ [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + public partial class LineItemService : AdManagerSoapClient, ILineItemService { + /// Creates a new instance of the class. + /// + public LineItemService() { + } - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getAvailabilityForecastByIdAsync(long lineItemId, Google.Api.Ads.AdManager.v202311.AvailabilityForecastOptions forecastOptions); + /// Creates a new instance of the class. + /// + public LineItemService(string endpointConfigurationName) + : base(endpointConfigurationName) { + } - // CODEGEN: Parameter 'lineItems' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(LineItemSummary))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Wrappers.ForecastService.getDeliveryForecastResponse getDeliveryForecast(Wrappers.ForecastService.getDeliveryForecastRequest request); + /// Creates a new instance of the class. + /// + public LineItemService(string endpointConfigurationName, string remoteAddress) + : base(endpointConfigurationName, remoteAddress) { + } - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task getDeliveryForecastAsync(Wrappers.ForecastService.getDeliveryForecastRequest request); + /// Creates a new instance of the class. + /// + public LineItemService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) + : base(endpointConfigurationName, remoteAddress) { + } - // CODEGEN: Parameter 'lineItemIds' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(LineItemSummary))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Wrappers.ForecastService.getDeliveryForecastByIdsResponse getDeliveryForecastByIds(Wrappers.ForecastService.getDeliveryForecastByIdsRequest request); + /// Creates a new instance of the class. + /// + public LineItemService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) + : base(binding, remoteAddress) { + } - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task getDeliveryForecastByIdsAsync(Wrappers.ForecastService.getDeliveryForecastByIdsRequest request); + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + Wrappers.LineItemService.createLineItemsResponse Google.Api.Ads.AdManager.v202411.LineItemServiceInterface.createLineItems(Wrappers.LineItemService.createLineItemsRequest request) { + return base.Channel.createLineItems(request); + } - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(LineItemSummary))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v202311.TrafficDataResponse getTrafficData(Google.Api.Ads.AdManager.v202311.TrafficDataRequest trafficDataRequest); + /// Creates new LineItem objects. + /// + public virtual Google.Api.Ads.AdManager.v202411.LineItem[] createLineItems(Google.Api.Ads.AdManager.v202411.LineItem[] lineItems) { + Wrappers.LineItemService.createLineItemsRequest inValue = new Wrappers.LineItemService.createLineItemsRequest(); + inValue.lineItems = lineItems; + Wrappers.LineItemService.createLineItemsResponse retVal = ((Google.Api.Ads.AdManager.v202411.LineItemServiceInterface)(this)).createLineItems(inValue); + return retVal.rval; + } - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getTrafficDataAsync(Google.Api.Ads.AdManager.v202311.TrafficDataRequest trafficDataRequest); - } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202411.LineItemServiceInterface.createLineItemsAsync(Wrappers.LineItemService.createLineItemsRequest request) { + return base.Channel.createLineItemsAsync(request); + } + public virtual System.Threading.Tasks.Task createLineItemsAsync(Google.Api.Ads.AdManager.v202411.LineItem[] lineItems) { + Wrappers.LineItemService.createLineItemsRequest inValue = new Wrappers.LineItemService.createLineItemsRequest(); + inValue.lineItems = lineItems; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202411.LineItemServiceInterface)(this)).createLineItemsAsync(inValue)).Result.rval); + } - /// Forecasting options for line item delivery forecasts. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class DeliveryForecastOptions { - private long[] ignoredLineItemIdsField; + /// Gets a LineItemPage of LineItem objects that satisfy the given Statement#query. The following fields are supported for filtering: + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + ///
PQL property Entity property
CostType LineItem#costType
CreationDateTime LineItem#creationDateTime
DeliveryRateType LineItem#deliveryRateType
EndDateTime LineItem#endDateTime
ExternalId LineItem#externalId
Id LineItem#id
IsMissingCreatives LineItem#isMissingCreatives
IsSetTopBoxEnabled LineItem#isSetTopBoxEnabled
LastModifiedDateTime LineItem#lastModifiedDateTime
LineItemType LineItem#lineItemType
Name LineItem#name
OrderId LineItem#orderId
StartDateTime LineItem#startDateTime
Status LineItem#status + ///
UnitsBought LineItem#unitsBought
+ ///
+ public virtual Google.Api.Ads.AdManager.v202411.LineItemPage getLineItemsByStatement(Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.getLineItemsByStatement(filterStatement); + } - /// Line item IDs to be ignored while performing the delivery simulation. + public virtual System.Threading.Tasks.Task getLineItemsByStatementAsync(Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.getLineItemsByStatementAsync(filterStatement); + } + + /// Performs actions on LineItem objects that match the given + /// Statement#query. /// - [System.Xml.Serialization.XmlElementAttribute("ignoredLineItemIds", Order = 0)] - public long[] ignoredLineItemIds { - get { - return this.ignoredLineItemIdsField; - } - set { - this.ignoredLineItemIdsField = value; - } + public virtual Google.Api.Ads.AdManager.v202411.UpdateResult performLineItemAction(Google.Api.Ads.AdManager.v202411.LineItemAction lineItemAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.performLineItemAction(lineItemAction, filterStatement); } - } + public virtual System.Threading.Tasks.Task performLineItemActionAsync(Google.Api.Ads.AdManager.v202411.LineItemAction lineItemAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.performLineItemActionAsync(lineItemAction, filterStatement); + } - /// The forecast of delivery for a list of ProspectiveLineItem objects to be reserved at the - /// same time. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class DeliveryForecast { - private LineItemDeliveryForecast[] lineItemDeliveryForecastsField; + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + Wrappers.LineItemService.updateLineItemsResponse Google.Api.Ads.AdManager.v202411.LineItemServiceInterface.updateLineItems(Wrappers.LineItemService.updateLineItemsRequest request) { + return base.Channel.updateLineItems(request); + } - /// The delivery forecasts of the forecasted line items. + /// Updates the specified LineItem objects. /// - [System.Xml.Serialization.XmlElementAttribute("lineItemDeliveryForecasts", Order = 0)] - public LineItemDeliveryForecast[] lineItemDeliveryForecasts { - get { - return this.lineItemDeliveryForecastsField; - } - set { - this.lineItemDeliveryForecastsField = value; - } + public virtual Google.Api.Ads.AdManager.v202411.LineItem[] updateLineItems(Google.Api.Ads.AdManager.v202411.LineItem[] lineItems) { + Wrappers.LineItemService.updateLineItemsRequest inValue = new Wrappers.LineItemService.updateLineItemsRequest(); + inValue.lineItems = lineItems; + Wrappers.LineItemService.updateLineItemsResponse retVal = ((Google.Api.Ads.AdManager.v202411.LineItemServiceInterface)(this)).updateLineItems(inValue); + return retVal.rval; } - } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202411.LineItemServiceInterface.updateLineItemsAsync(Wrappers.LineItemService.updateLineItemsRequest request) { + return base.Channel.updateLineItemsAsync(request); + } - /// The forecasted delivery of a ProspectiveLineItem. + public virtual System.Threading.Tasks.Task updateLineItemsAsync(Google.Api.Ads.AdManager.v202411.LineItem[] lineItems) { + Wrappers.LineItemService.updateLineItemsRequest inValue = new Wrappers.LineItemService.updateLineItemsRequest(); + inValue.lineItems = lineItems; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202411.LineItemServiceInterface)(this)).updateLineItemsAsync(inValue)).Result.rval); + } + } + namespace Wrappers.LineItemTemplateService + { + } + /// Represents the template that populates the fields of a new line item being + /// created. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class LineItemDeliveryForecast { - private long lineItemIdField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class LineItemTemplate { + private long idField; - private bool lineItemIdFieldSpecified; + private bool idFieldSpecified; - private long orderIdField; + private string nameField; - private bool orderIdFieldSpecified; + private bool isDefaultField; - private UnitType unitTypeField; + private bool isDefaultFieldSpecified; - private bool unitTypeFieldSpecified; + private string lineItemNameField; - private long predictedDeliveryUnitsField; + private bool enabledForSameAdvertiserExceptionField; - private bool predictedDeliveryUnitsFieldSpecified; + private bool enabledForSameAdvertiserExceptionFieldSpecified; - private long deliveredUnitsField; + private string notesField; - private bool deliveredUnitsFieldSpecified; + private LineItemType lineItemTypeField; - private long matchedUnitsField; + private bool lineItemTypeFieldSpecified; - private bool matchedUnitsFieldSpecified; + private DeliveryRateType deliveryRateTypeField; - /// Uniquely identifies this line item delivery forecast. This value is read-only - /// and will be either the ID of the LineItem object it - /// represents, or null if the forecast represents a prospective line - /// item. + private bool deliveryRateTypeFieldSpecified; + + private RoadblockingType roadblockingTypeField; + + private bool roadblockingTypeFieldSpecified; + + private CreativeRotationType creativeRotationTypeField; + + private bool creativeRotationTypeFieldSpecified; + + /// Uniquely identifies the LineItemTemplate. This attribute is + /// read-only and is assigned by Google when a template is created. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public long lineItemId { + public long id { get { - return this.lineItemIdField; + return this.idField; } set { - this.lineItemIdField = value; - this.lineItemIdSpecified = true; + this.idField = value; + this.idSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , + /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool lineItemIdSpecified { + public bool idSpecified { get { - return this.lineItemIdFieldSpecified; + return this.idFieldSpecified; } set { - this.lineItemIdFieldSpecified = value; + this.idFieldSpecified = value; } } - /// The unique ID for the Order object that this line item - /// belongs to, or null if the forecast represents a prospective line - /// item without an LineItem#orderId set. + /// The name of the LineItemTemplate. This attribute is required. /// [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public long orderId { + public string name { get { - return this.orderIdField; + return this.nameField; } set { - this.orderIdField = value; - this.orderIdSpecified = true; + this.nameField = value; } } - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool orderIdSpecified { + /// Whether or not the LineItemTemplate represents the default choices + /// for creating a LineItem. Only one default is allowed + /// per Network. This attribute is readonly. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public bool isDefault { get { - return this.orderIdFieldSpecified; + return this.isDefaultField; } set { - this.orderIdFieldSpecified = value; + this.isDefaultField = value; + this.isDefaultSpecified = true; } } - /// The unit with which the goal or cap of the LineItem is - /// defined. Will be the same value as Goal#unitType for - /// both a set line item or a prospective one. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public UnitType unitType { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool isDefaultSpecified { get { - return this.unitTypeField; + return this.isDefaultFieldSpecified; } set { - this.unitTypeField = value; - this.unitTypeSpecified = true; + this.isDefaultFieldSpecified = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool unitTypeSpecified { + /// The default name of a new . This + /// attribute is optional and has a maximum length of 127 characters. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 3)] + public string lineItemName { get { - return this.unitTypeFieldSpecified; + return this.lineItemNameField; } set { - this.unitTypeFieldSpecified = value; + this.lineItemNameField = value; } } - /// The number of units, defined by Goal#unitType, that - /// will be delivered by the line item. Delivery of existing line items that are of - /// same or lower priorities may be impacted. + /// The default value for the LineItem#enabledForSameAdvertiserException + /// field of a new LineItem. This attribute is required. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public long predictedDeliveryUnits { + [System.Xml.Serialization.XmlElementAttribute(Order = 4)] + public bool enabledForSameAdvertiserException { get { - return this.predictedDeliveryUnitsField; + return this.enabledForSameAdvertiserExceptionField; } set { - this.predictedDeliveryUnitsField = value; - this.predictedDeliveryUnitsSpecified = true; + this.enabledForSameAdvertiserExceptionField = value; + this.enabledForSameAdvertiserExceptionSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="enabledForSameAdvertiserException" />, false otherwise. + /// [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool predictedDeliveryUnitsSpecified { + public bool enabledForSameAdvertiserExceptionSpecified { get { - return this.predictedDeliveryUnitsFieldSpecified; + return this.enabledForSameAdvertiserExceptionFieldSpecified; } set { - this.predictedDeliveryUnitsFieldSpecified = value; + this.enabledForSameAdvertiserExceptionFieldSpecified = value; } } - /// The number of units, defined by Goal#unitType, that - /// have already been served if the reservation is already running. + /// The default notes for a new . This + /// attribute is optional and has a maximum length of 65,535 characters. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public long deliveredUnits { + [System.Xml.Serialization.XmlElementAttribute(Order = 5)] + public string notes { get { - return this.deliveredUnitsField; + return this.notesField; } set { - this.deliveredUnitsField = value; - this.deliveredUnitsSpecified = true; + this.notesField = value; + } + } + + /// The default type of a new + /// LineItem. This attribute is required. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 6)] + public LineItemType lineItemType { + get { + return this.lineItemTypeField; + } + set { + this.lineItemTypeField = value; + this.lineItemTypeSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="lineItemType" />, false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool deliveredUnitsSpecified { + public bool lineItemTypeSpecified { get { - return this.deliveredUnitsFieldSpecified; + return this.lineItemTypeFieldSpecified; } set { - this.deliveredUnitsFieldSpecified = value; + this.lineItemTypeFieldSpecified = value; } } - /// The number of units, defined by Goal#unitType, that - /// match the specified LineItem#targeting and delivery settings. + /// The default delivery strategy for a new + /// LineItem. This attribute is required. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 5)] - public long matchedUnits { + [System.Xml.Serialization.XmlElementAttribute(Order = 7)] + public DeliveryRateType deliveryRateType { get { - return this.matchedUnitsField; + return this.deliveryRateTypeField; } set { - this.matchedUnitsField = value; - this.matchedUnitsSpecified = true; + this.deliveryRateTypeField = value; + this.deliveryRateTypeSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="deliveryRateType" />, false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool matchedUnitsSpecified { + public bool deliveryRateTypeSpecified { get { - return this.matchedUnitsFieldSpecified; + return this.deliveryRateTypeFieldSpecified; } set { - this.matchedUnitsFieldSpecified = value; + this.deliveryRateTypeFieldSpecified = value; } } - } - - - /// Defines a segment of traffic for which traffic data should be returned. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class TrafficDataRequest { - private Targeting targetingField; - - private DateRange requestedDateRangeField; - /// The TargetingDto that defines a segment of traffic. - /// This attribute is required. + /// The default roadblocking strategy for a + /// new LineItem. This attribute is required. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public Targeting targeting { + [System.Xml.Serialization.XmlElementAttribute(Order = 8)] + public RoadblockingType roadblockingType { get { - return this.targetingField; + return this.roadblockingTypeField; } set { - this.targetingField = value; + this.roadblockingTypeField = value; + this.roadblockingTypeSpecified = true; } } - /// The date range for which traffic data are requested. This range may cover - /// historical dates, future dates, or both.

The data returned are not guaranteed - /// to cover the entire requested date range. If sufficient data are not available - /// to cover the entire requested date range, a response may be returned with a - /// later start date, earlier end date, or both. This attribute is required.

- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public DateRange requestedDateRange { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool roadblockingTypeSpecified { get { - return this.requestedDateRangeField; + return this.roadblockingTypeFieldSpecified; } set { - this.requestedDateRangeField = value; + this.roadblockingTypeFieldSpecified = value; } } - } - - - /// Represents a range of dates that has an upper and a lower bound.

An open - /// ended date range can be described by only setting either one of the bounds, the - /// upper bound or the lower bound.

- ///
- [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class DateRange { - private Date startDateField; - - private Date endDateField; - /// The start date of this range. This field is optional and if it is not set then - /// there is no lower bound on the date range. If this field is not set then - /// endDate must be specified. + /// The default creative rotation + /// strategy for a new LineItem. This attribute is required. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public Date startDate { + [System.Xml.Serialization.XmlElementAttribute(Order = 9)] + public CreativeRotationType creativeRotationType { get { - return this.startDateField; + return this.creativeRotationTypeField; } set { - this.startDateField = value; + this.creativeRotationTypeField = value; + this.creativeRotationTypeSpecified = true; } } - /// The end date of this range. This field is optional and if it is not set then - /// there is no upper bound on the date range. If this field is not set then - /// startDate must be specified. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public Date endDate { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool creativeRotationTypeSpecified { get { - return this.endDateField; + return this.creativeRotationTypeFieldSpecified; } set { - this.endDateField = value; + this.creativeRotationTypeFieldSpecified = value; } } } - /// Contains forecasted and historical traffic volume data describing a segment of - /// traffic. + /// Captures a page of LineItemTemplate objects. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class TrafficDataResponse { - private TimeSeries historicalTimeSeriesField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class LineItemTemplatePage { + private int totalResultSetSizeField; - private TimeSeries forecastedTimeSeriesField; + private bool totalResultSetSizeFieldSpecified; - private TimeSeries forecastedAssignedTimeSeriesField; + private int startIndexField; - private DateRange overallDateRangeField; + private bool startIndexFieldSpecified; - /// Time series of historical traffic ad opportunity counts.

This may be null if - /// the requested date range did not contain any historical dates, or if no - /// historical data are available for the requested traffic segment. This attribute - /// is read-only.

+ private LineItemTemplate[] resultsField; + + /// The size of the total result set to which this page belongs. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public TimeSeries historicalTimeSeries { + public int totalResultSetSize { get { - return this.historicalTimeSeriesField; + return this.totalResultSetSizeField; } set { - this.historicalTimeSeriesField = value; + this.totalResultSetSizeField = value; + this.totalResultSetSizeSpecified = true; } } - /// Time series of forecasted traffic ad opportunity counts.

This may be null if - /// the requested date range did not contain any future dates, or if no forecasted - /// data are available for the requested traffic segment. This attribute is - /// read-only.

- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public TimeSeries forecastedTimeSeries { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool totalResultSetSizeSpecified { get { - return this.forecastedTimeSeriesField; + return this.totalResultSetSizeFieldSpecified; } set { - this.forecastedTimeSeriesField = value; + this.totalResultSetSizeFieldSpecified = value; } } - /// Time series of future traffic volumes forecasted to be sold.

This may be null - /// if the requested date range did not contain any future dates, or if no - /// sell-through data are available for the requested traffic segment. This - /// attribute is read-only.

+ /// The absolute index in the total result set on which this page begins. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public TimeSeries forecastedAssignedTimeSeries { + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public int startIndex { get { - return this.forecastedAssignedTimeSeriesField; + return this.startIndexField; } set { - this.forecastedAssignedTimeSeriesField = value; + this.startIndexField = value; + this.startIndexSpecified = true; } } - /// The overall date range spanned by the union of all time series in the response. - ///

This is a summary field for convenience. The value will be set such that the - /// start date is equal to the earliest start date of all time series included, and - /// the end date is equal to the latest end date of all time series included.

- ///

If all time series fields are null, this field will also be null. This - /// attribute is read-only.

- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public DateRange overallDateRange { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool startIndexSpecified { get { - return this.overallDateRangeField; + return this.startIndexFieldSpecified; } set { - this.overallDateRangeField = value; + this.startIndexFieldSpecified = value; } } - } - - - /// Represents a chronological sequence of daily values. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class TimeSeries { - private DateRange timeSeriesDateRangeField; - - private long[] valuesField; - /// The date range of the time series. + /// The collection of line item templates contained within this page. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public DateRange timeSeriesDateRange { + [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] + public LineItemTemplate[] results { get { - return this.timeSeriesDateRangeField; + return this.resultsField; } set { - this.timeSeriesDateRangeField = value; + this.resultsField = value; } } + } - /// The daily values constituting the time series.

The number of time series - /// values must equal the number of days spanned by the time series date range, - /// inclusive. E.g.: of 2001-08-15 to 2001-08-17 should contain one - /// value for the 15th, one value for the 16th, and one value for the 17th.

- ///
- [System.Xml.Serialization.XmlElementAttribute("values", Order = 1)] - public long[] values { - get { - return this.valuesField; - } - set { - this.valuesField = value; - } - } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", ConfigurationName = "Google.Api.Ads.AdManager.v202411.LineItemTemplateServiceInterface")] + public interface LineItemTemplateServiceInterface + { + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v202411.LineItemTemplatePage getLineItemTemplatesByStatement(Google.Api.Ads.AdManager.v202411.Statement filterStatement); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task getLineItemTemplatesByStatementAsync(Google.Api.Ads.AdManager.v202411.Statement filterStatement); } [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public interface ForecastServiceInterfaceChannel : Google.Api.Ads.AdManager.v202311.ForecastServiceInterface, System.ServiceModel.IClientChannel + public interface LineItemTemplateServiceInterfaceChannel : Google.Api.Ads.AdManager.v202411.LineItemTemplateServiceInterface, System.ServiceModel.IClientChannel { } - /// Provides methods for estimating traffic (clicks/impressions) for line items. - /// Forecasts can be provided for LineItem objects that exist - /// in the system or which have not had an ID set yet.

Test network - /// behavior

Test networks are unable to provide forecasts that would be - /// comparable to the production environment because forecasts require traffic - /// history. For test networks, a consistent behavior can be expected for forecast - /// requests, according to the following rules:

- /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - ///
Inputs
(LineItem Fields)
Outputs
(Forecast Fields)
lineItemType unitsBought availableUnits forecastUnits (matchedUnits) deliveredUnits Exception
Sponsorship 13 #x2013;#x2013;#x2013;#x2013; #x2013;#x2013; NO_FORECAST_YET
Sponsorship 20 #x2013;#x2013; #x2013;#x2013;#x2013;#x2013; SERVER_NOT_AVAILABLE
Sponsorship 50 1,200,0006,000,000 600,000 #x2013;#x2013;
Sponsorship != 20 and
!= 50
1,200,0001,200,000 600,000 #x2013;#x2013;
Not - /// Sponsorship <= 500,000 3 * unitsBought / 2unitsBought * 6 600,000 #x2013;#x2013;
Not Sponsorship > 500,000 and <= 1,000,000unitsBought / 2 unitsBought * 6 600,000#x2013;#x2013;
Not Sponsorship > 1,000,000 - /// and <= 1,500,000 unitsBought / 2 3 * unitsBought / 2600,000 #x2013;#x2013;
Not Sponsorship> 1,500,000 unitsBought / 4 3 * unitsBought / 2600,000 #x2013;#x2013;
+ /// Provides methods for creating, updating and retrieving LineItemTemplate objects. /// [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public partial class ForecastService : AdManagerSoapClient, IForecastService { - /// Creates a new instance of the class. - /// - public ForecastService() { + public partial class LineItemTemplateService : AdManagerSoapClient, ILineItemTemplateService { + /// Creates a new instance of the + /// class. + public LineItemTemplateService() { } - /// Creates a new instance of the class. - /// - public ForecastService(string endpointConfigurationName) + /// Creates a new instance of the + /// class. + public LineItemTemplateService(string endpointConfigurationName) : base(endpointConfigurationName) { } - /// Creates a new instance of the class. - /// - public ForecastService(string endpointConfigurationName, string remoteAddress) + /// Creates a new instance of the + /// class. + public LineItemTemplateService(string endpointConfigurationName, string remoteAddress) : base(endpointConfigurationName, remoteAddress) { } - /// Creates a new instance of the class. - /// - public ForecastService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) + /// Creates a new instance of the + /// class. + public LineItemTemplateService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) : base(endpointConfigurationName, remoteAddress) { } - /// Creates a new instance of the class. - /// - public ForecastService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) + /// Creates a new instance of the + /// class. + public LineItemTemplateService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) : base(binding, remoteAddress) { } - /// Gets the availability forecast for a ProspectiveLineItem. An availability forecast - /// reports the maximum number of available units that the line item can book, and - /// the total number of units matching the line item's targeting. - /// - public virtual Google.Api.Ads.AdManager.v202311.AvailabilityForecast getAvailabilityForecast(Google.Api.Ads.AdManager.v202311.ProspectiveLineItem lineItem, Google.Api.Ads.AdManager.v202311.AvailabilityForecastOptions forecastOptions) { - return base.Channel.getAvailabilityForecast(lineItem, forecastOptions); - } - - public virtual System.Threading.Tasks.Task getAvailabilityForecastAsync(Google.Api.Ads.AdManager.v202311.ProspectiveLineItem lineItem, Google.Api.Ads.AdManager.v202311.AvailabilityForecastOptions forecastOptions) { - return base.Channel.getAvailabilityForecastAsync(lineItem, forecastOptions); - } - - /// Gets an AvailabilityForecast for an existing - /// LineItem object. An availability forecast reports the - /// maximum number of available units that the line item can be booked with, and - /// also the total number of units matching the line item's targeting.

Only line - /// items having type LineItemType#SPONSORSHIP or LineItemType#STANDARD are valid. Other types will result in ReservationDetailsError.Reason#LINE_ITEM_TYPE_NOT_ALLOWED.

- ///
- public virtual Google.Api.Ads.AdManager.v202311.AvailabilityForecast getAvailabilityForecastById(long lineItemId, Google.Api.Ads.AdManager.v202311.AvailabilityForecastOptions forecastOptions) { - return base.Channel.getAvailabilityForecastById(lineItemId, forecastOptions); - } - - public virtual System.Threading.Tasks.Task getAvailabilityForecastByIdAsync(long lineItemId, Google.Api.Ads.AdManager.v202311.AvailabilityForecastOptions forecastOptions) { - return base.Channel.getAvailabilityForecastByIdAsync(lineItemId, forecastOptions); - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.ForecastService.getDeliveryForecastResponse Google.Api.Ads.AdManager.v202311.ForecastServiceInterface.getDeliveryForecast(Wrappers.ForecastService.getDeliveryForecastRequest request) { - return base.Channel.getDeliveryForecast(request); - } - - /// Gets the delivery forecast for a list of ProspectiveLineItem objects in a single delivery - /// simulation with line items potentially contending with each other. A delivery - /// forecast reports the number of units that will be delivered to each line item - /// given the line item goals and contentions from other line items. - /// - public virtual Google.Api.Ads.AdManager.v202311.DeliveryForecast getDeliveryForecast(Google.Api.Ads.AdManager.v202311.ProspectiveLineItem[] lineItems, Google.Api.Ads.AdManager.v202311.DeliveryForecastOptions forecastOptions) { - Wrappers.ForecastService.getDeliveryForecastRequest inValue = new Wrappers.ForecastService.getDeliveryForecastRequest(); - inValue.lineItems = lineItems; - inValue.forecastOptions = forecastOptions; - Wrappers.ForecastService.getDeliveryForecastResponse retVal = ((Google.Api.Ads.AdManager.v202311.ForecastServiceInterface)(this)).getDeliveryForecast(inValue); - return retVal.rval; - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202311.ForecastServiceInterface.getDeliveryForecastAsync(Wrappers.ForecastService.getDeliveryForecastRequest request) { - return base.Channel.getDeliveryForecastAsync(request); - } - - public virtual System.Threading.Tasks.Task getDeliveryForecastAsync(Google.Api.Ads.AdManager.v202311.ProspectiveLineItem[] lineItems, Google.Api.Ads.AdManager.v202311.DeliveryForecastOptions forecastOptions) { - Wrappers.ForecastService.getDeliveryForecastRequest inValue = new Wrappers.ForecastService.getDeliveryForecastRequest(); - inValue.lineItems = lineItems; - inValue.forecastOptions = forecastOptions; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202311.ForecastServiceInterface)(this)).getDeliveryForecastAsync(inValue)).Result.rval); - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.ForecastService.getDeliveryForecastByIdsResponse Google.Api.Ads.AdManager.v202311.ForecastServiceInterface.getDeliveryForecastByIds(Wrappers.ForecastService.getDeliveryForecastByIdsRequest request) { - return base.Channel.getDeliveryForecastByIds(request); - } - - /// Gets the delivery forecast for a list of existing LineItem objects in a single delivery simulation. A delivery - /// forecast reports the number of units that will be delivered to each line item - /// given the line item goals and contentions from other line items. - /// - public virtual Google.Api.Ads.AdManager.v202311.DeliveryForecast getDeliveryForecastByIds(long[] lineItemIds, Google.Api.Ads.AdManager.v202311.DeliveryForecastOptions forecastOptions) { - Wrappers.ForecastService.getDeliveryForecastByIdsRequest inValue = new Wrappers.ForecastService.getDeliveryForecastByIdsRequest(); - inValue.lineItemIds = lineItemIds; - inValue.forecastOptions = forecastOptions; - Wrappers.ForecastService.getDeliveryForecastByIdsResponse retVal = ((Google.Api.Ads.AdManager.v202311.ForecastServiceInterface)(this)).getDeliveryForecastByIds(inValue); - return retVal.rval; - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202311.ForecastServiceInterface.getDeliveryForecastByIdsAsync(Wrappers.ForecastService.getDeliveryForecastByIdsRequest request) { - return base.Channel.getDeliveryForecastByIdsAsync(request); - } - - public virtual System.Threading.Tasks.Task getDeliveryForecastByIdsAsync(long[] lineItemIds, Google.Api.Ads.AdManager.v202311.DeliveryForecastOptions forecastOptions) { - Wrappers.ForecastService.getDeliveryForecastByIdsRequest inValue = new Wrappers.ForecastService.getDeliveryForecastByIdsRequest(); - inValue.lineItemIds = lineItemIds; - inValue.forecastOptions = forecastOptions; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202311.ForecastServiceInterface)(this)).getDeliveryForecastByIdsAsync(inValue)).Result.rval); - } - - /// Returns forecasted and historical traffic data for the segment of traffic - /// specified by the provided request.

Calling this endpoint programmatically is - /// only available for Ad Manager 360 networks.

+ /// Gets a LineItemTemplatePage of LineItemTemplate objects that satisfy the given Statement#query. The following fields are supported + /// for filtering:
PQL Property Object Property
id LineItemTemplate#id
///
- public virtual Google.Api.Ads.AdManager.v202311.TrafficDataResponse getTrafficData(Google.Api.Ads.AdManager.v202311.TrafficDataRequest trafficDataRequest) { - return base.Channel.getTrafficData(trafficDataRequest); + public virtual Google.Api.Ads.AdManager.v202411.LineItemTemplatePage getLineItemTemplatesByStatement(Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.getLineItemTemplatesByStatement(filterStatement); } - public virtual System.Threading.Tasks.Task getTrafficDataAsync(Google.Api.Ads.AdManager.v202311.TrafficDataRequest trafficDataRequest) { - return base.Channel.getTrafficDataAsync(trafficDataRequest); + public virtual System.Threading.Tasks.Task getLineItemTemplatesByStatementAsync(Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.getLineItemTemplatesByStatementAsync(filterStatement); } } - namespace Wrappers.InventoryService + namespace Wrappers.ContactService { [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "createAdUnits", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class createAdUnitsRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("adUnits")] - public Google.Api.Ads.AdManager.v202311.AdUnit[] adUnits; + [System.ServiceModel.MessageContractAttribute(WrapperName = "createContacts", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class createContactsRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("contacts")] + public Google.Api.Ads.AdManager.v202411.Contact[] contacts; - /// Creates a new instance of the + /// Creates a new instance of the /// class. - public createAdUnitsRequest() { + public createContactsRequest() { } - /// Creates a new instance of the + /// Creates a new instance of the /// class. - public createAdUnitsRequest(Google.Api.Ads.AdManager.v202311.AdUnit[] adUnits) { - this.adUnits = adUnits; + public createContactsRequest(Google.Api.Ads.AdManager.v202411.Contact[] contacts) { + this.contacts = contacts; } } @@ -28664,20 +30030,20 @@ public createAdUnitsRequest(Google.Api.Ads.AdManager.v202311.AdUnit[] adUnits) { [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "createAdUnitsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class createAdUnitsResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "createContactsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class createContactsResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v202311.AdUnit[] rval; + public Google.Api.Ads.AdManager.v202411.Contact[] rval; - /// Creates a new instance of the + /// Creates a new instance of the /// class. - public createAdUnitsResponse() { + public createContactsResponse() { } - /// Creates a new instance of the + /// Creates a new instance of the /// class. - public createAdUnitsResponse(Google.Api.Ads.AdManager.v202311.AdUnit[] rval) { + public createContactsResponse(Google.Api.Ads.AdManager.v202411.Contact[] rval) { this.rval = rval; } } @@ -28686,64 +30052,21 @@ public createAdUnitsResponse(Google.Api.Ads.AdManager.v202311.AdUnit[] rval) { [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "getAdUnitSizesByStatement", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class getAdUnitSizesByStatementRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - public Google.Api.Ads.AdManager.v202311.Statement filterStatement; + [System.ServiceModel.MessageContractAttribute(WrapperName = "updateContacts", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class updateContactsRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("contacts")] + public Google.Api.Ads.AdManager.v202411.Contact[] contacts; - /// Creates a new instance of the class. - public getAdUnitSizesByStatementRequest() { + /// Creates a new instance of the + /// class. + public updateContactsRequest() { } - /// Creates a new instance of the class. - public getAdUnitSizesByStatementRequest(Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - this.filterStatement = filterStatement; - } - } - - - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "getAdUnitSizesByStatementResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class getAdUnitSizesByStatementResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v202311.AdUnitSize[] rval; - - /// Creates a new instance of the class. - public getAdUnitSizesByStatementResponse() { - } - - /// Creates a new instance of the class. - public getAdUnitSizesByStatementResponse(Google.Api.Ads.AdManager.v202311.AdUnitSize[] rval) { - this.rval = rval; - } - } - - - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "updateAdUnits", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class updateAdUnitsRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("adUnits")] - public Google.Api.Ads.AdManager.v202311.AdUnit[] adUnits; - - /// Creates a new instance of the - /// class. - public updateAdUnitsRequest() { - } - - /// Creates a new instance of the + /// Creates a new instance of the /// class. - public updateAdUnitsRequest(Google.Api.Ads.AdManager.v202311.AdUnit[] adUnits) { - this.adUnits = adUnits; + public updateContactsRequest(Google.Api.Ads.AdManager.v202411.Contact[] contacts) { + this.contacts = contacts; } } @@ -28751,3539 +30074,3400 @@ public updateAdUnitsRequest(Google.Api.Ads.AdManager.v202311.AdUnit[] adUnits) { [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "updateAdUnitsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class updateAdUnitsResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "updateContactsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class updateContactsResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v202311.AdUnit[] rval; + public Google.Api.Ads.AdManager.v202411.Contact[] rval; - /// Creates a new instance of the + /// Creates a new instance of the /// class. - public updateAdUnitsResponse() { + public updateContactsResponse() { } - /// Creates a new instance of the + /// Creates a new instance of the /// class. - public updateAdUnitsResponse(Google.Api.Ads.AdManager.v202311.AdUnit[] rval) { + public updateContactsResponse(Google.Api.Ads.AdManager.v202411.Contact[] rval) { this.rval = rval; } } } - /// A LabelFrequencyCap assigns a frequency cap to a label. The - /// frequency cap will limit the cumulative number of impressions of any ad units - /// with this label that may be shown to a particular user over a time unit. + /// Base class for a Contact. /// + [System.Xml.Serialization.XmlIncludeAttribute(typeof(Contact))] [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class LabelFrequencyCap { - private FrequencyCap frequencyCapField; - - private long labelIdField; - - private bool labelIdFieldSpecified; - - /// The frequency cap to be applied with this label. * - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public FrequencyCap frequencyCap { - get { - return this.frequencyCapField; - } - set { - this.frequencyCapField = value; - } - } - - /// ID of the label being capped on the AdUnit. * - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public long labelId { - get { - return this.labelIdField; - } - set { - this.labelIdField = value; - this.labelIdSpecified = true; - } - } - - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool labelIdSpecified { - get { - return this.labelIdFieldSpecified; - } - set { - this.labelIdFieldSpecified = value; - } - } + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class BaseContact { } - /// Contains the AdSense configuration for an AdUnit. + /// A Contact represents a person who is affiliated with a single Company. A contact can have a variety of contact information + /// associated to it, and can be invited to view their company's orders, line items, + /// creatives, and reports. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class AdSenseSettings { - private bool adSenseEnabledField; - - private bool adSenseEnabledFieldSpecified; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class Contact : BaseContact { + private long idField; - private string borderColorField; + private bool idFieldSpecified; - private string titleColorField; + private string nameField; - private string backgroundColorField; + private long companyIdField; - private string textColorField; + private bool companyIdFieldSpecified; - private string urlColorField; + private ContactStatus statusField; - private AdSenseSettingsAdType adTypeField; + private bool statusFieldSpecified; - private bool adTypeFieldSpecified; + private string addressField; - private AdSenseSettingsBorderStyle borderStyleField; + private string cellPhoneField; - private bool borderStyleFieldSpecified; + private string commentField; - private AdSenseSettingsFontFamily fontFamilyField; + private string emailField; - private bool fontFamilyFieldSpecified; + private string faxPhoneField; - private AdSenseSettingsFontSize fontSizeField; + private string titleField; - private bool fontSizeFieldSpecified; + private string workPhoneField; - /// Specifies whether or not the AdUnit is enabled for serving - /// ads from the AdSense content network. This attribute is optional and defaults to - /// the ad unit's parent or ancestor's setting if one has been set. If no ancestor - /// of the ad unit has set , the attribute is defaulted to - /// true. + /// The unique ID of the Contact. This value is readonly and is + /// assigned by Google. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public bool adSenseEnabled { + public long id { get { - return this.adSenseEnabledField; + return this.idField; } set { - this.adSenseEnabledField = value; - this.adSenseEnabledSpecified = true; + this.idField = value; + this.idSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , + /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool adSenseEnabledSpecified { + public bool idSpecified { get { - return this.adSenseEnabledFieldSpecified; + return this.idFieldSpecified; } set { - this.adSenseEnabledFieldSpecified = value; + this.idFieldSpecified = value; } } - /// Specifies the Hexadecimal border color, from 000000 to - /// FFFFFF. This attribute is optional and defaults to the ad unit's - /// parent or ancestor's setting if one has been set. If no ancestor of the ad unit - /// has set borderColor, the attribute is defaulted to - /// FFFFFF. + /// The name of the contact. This attribute is required and has a maximum length of + /// 127 characters. /// [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public string borderColor { + public string name { get { - return this.borderColorField; + return this.nameField; } set { - this.borderColorField = value; + this.nameField = value; } } - /// Specifies the Hexadecimal title color of an ad, from 000000 to - /// FFFFFF. This attribute is optional and defaults to the ad unit's - /// parent or ancestor's setting if one has been set. If no ancestor of the ad unit - /// has set titleColor, the attribute is defaulted to - /// 0000FF. + /// The ID of the Company that this contact is associated + /// with. This attribute is required and immutable. /// [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public string titleColor { + public long companyId { get { - return this.titleColorField; + return this.companyIdField; } set { - this.titleColorField = value; + this.companyIdField = value; + this.companyIdSpecified = true; } } - /// Specifies the Hexadecimal background color of an ad, from to - /// FFFFFF. This attribute is optional and defaults to the ad unit's - /// parent or ancestor's setting if one has been set. If no ancestor of the ad unit - /// has set backgroundColor, the attribute is defaulted to - /// FFFFFF. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public string backgroundColor { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool companyIdSpecified { get { - return this.backgroundColorField; + return this.companyIdFieldSpecified; } set { - this.backgroundColorField = value; + this.companyIdFieldSpecified = value; } } - /// Specifies the Hexadecimal color of the text of an ad, from to - /// FFFFFF. This attribute is optional and defaults to the ad unit's - /// parent or ancestor's setting if one has been set. If no ancestor of the ad unit - /// has set textColor, the attribute is defaulted to - /// 000000. + /// The status of the contact. This attribute is readonly and is assigned by Google. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public string textColor { + [System.Xml.Serialization.XmlElementAttribute(Order = 3)] + public ContactStatus status { get { - return this.textColorField; + return this.statusField; } set { - this.textColorField = value; + this.statusField = value; + this.statusSpecified = true; } } - /// Specifies the Hexadecimal color of the URL of an ad, from to - /// FFFFFF. This attribute is optional and defaults to the ad unit's - /// parent or ancestor's setting if one has been set. If no ancestor of the ad unit - /// has set urlColor, the attribute is defaulted to 008000 - /// . - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 5)] - public string urlColor { + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool statusSpecified { get { - return this.urlColorField; + return this.statusFieldSpecified; } set { - this.urlColorField = value; + this.statusFieldSpecified = value; } } - /// Specifies what kind of ad can be served by this AdUnit from - /// the AdSense Content Network. This attribute is optional and defaults to the ad - /// unit's parent or ancestor's setting if one has been set. If no ancestor of the - /// ad unit has set adType, the attribute is defaulted to AdType#TEXT_AND_IMAGE. + /// The address of the contact. This attribute is optional and has a maximum length + /// of 1024 characters. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 6)] - public AdSenseSettingsAdType adType { + [System.Xml.Serialization.XmlElementAttribute(Order = 4)] + public string address { get { - return this.adTypeField; + return this.addressField; } set { - this.adTypeField = value; - this.adTypeSpecified = true; + this.addressField = value; } } - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool adTypeSpecified { + /// The cell phone number where the contact can be reached. This attribute is + /// optional. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 5)] + public string cellPhone { get { - return this.adTypeFieldSpecified; + return this.cellPhoneField; } set { - this.adTypeFieldSpecified = value; + this.cellPhoneField = value; } } - /// Specifies the border-style of the AdUnit. This attribute is - /// optional and defaults to the ad unit's parent or ancestor's setting if one has - /// been set. If no ancestor of the ad unit has set borderStyle, the - /// attribute is defaulted to BorderStyle#DEFAULT. + /// A free-form text comment for the contact. This attribute is optional and has a + /// maximum length of 1024 characters. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 7)] - public AdSenseSettingsBorderStyle borderStyle { + [System.Xml.Serialization.XmlElementAttribute(Order = 6)] + public string comment { get { - return this.borderStyleField; + return this.commentField; } set { - this.borderStyleField = value; - this.borderStyleSpecified = true; + this.commentField = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool borderStyleSpecified { + /// The e-mail address where the contact can be reached. This attribute is optional. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 7)] + public string email { get { - return this.borderStyleFieldSpecified; + return this.emailField; } set { - this.borderStyleFieldSpecified = value; + this.emailField = value; } } - /// Specifies the font family of the AdUnit. This attribute is - /// optional and defaults to the ad unit's parent or ancestor's setting if one has - /// been set. If no ancestor of the ad unit has set fontFamily, the - /// attribute is defaulted to FontFamily#DEFAULT. + /// The fax number where the contact can be reached. This attribute is optional. /// [System.Xml.Serialization.XmlElementAttribute(Order = 8)] - public AdSenseSettingsFontFamily fontFamily { - get { - return this.fontFamilyField; - } - set { - this.fontFamilyField = value; - this.fontFamilySpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool fontFamilySpecified { + public string faxPhone { get { - return this.fontFamilyFieldSpecified; + return this.faxPhoneField; } set { - this.fontFamilyFieldSpecified = value; + this.faxPhoneField = value; } } - /// Specifies the font size of the AdUnit. This attribute is - /// optional and defaults to the ad unit's parent or ancestor's setting if one has - /// been set. If no ancestor of the ad unit has set fontSize, the - /// attribute is defaulted to FontSize#DEFAULT. + /// The job title of the contact. This attribute is optional and has a maximum + /// length of 1024 characters. /// [System.Xml.Serialization.XmlElementAttribute(Order = 9)] - public AdSenseSettingsFontSize fontSize { + public string title { get { - return this.fontSizeField; + return this.titleField; } set { - this.fontSizeField = value; - this.fontSizeSpecified = true; + this.titleField = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool fontSizeSpecified { + /// The work phone number where the contact can be reached. This attribute is + /// optional. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 10)] + public string workPhone { get { - return this.fontSizeFieldSpecified; + return this.workPhoneField; } set { - this.fontSizeFieldSpecified = value; + this.workPhoneField = value; } } } - /// Specifies the type of ads that can be served through this AdUnit. + /// Describes the contact statuses. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AdSenseSettings.AdType", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum AdSenseSettingsAdType { - /// Allows text-only ads. + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "Contact.Status", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum ContactStatus { + /// The contact has not been invited to see their orders. /// - TEXT = 0, - /// Allows image-only ads. + UNINVITED = 0, + /// The contact has been invited to see their orders, but has not yet accepted the + /// invitation. /// - IMAGE = 1, - /// Allows both text and image ads. + INVITE_PENDNG = 1, + /// The contact has been invited to see their orders, but the invitation has already + /// expired. /// - TEXT_AND_IMAGE = 2, - } - - - /// Describes the border of the HTML elements used to surround an ad displayed by - /// the AdUnit. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AdSenseSettings.BorderStyle", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum AdSenseSettingsBorderStyle { - /// Uses the default border-style of the browser. + INVITE_EXPIRED = 2, + /// The contact was invited to see their orders, but the invitation was cancelled. /// - DEFAULT = 0, - /// Uses a cornered border-style. + INVITE_CANCELED = 3, + /// The contact has access to login and view their orders. /// - NOT_ROUNDED = 1, - /// Uses a slightly rounded border-style. + USER_ACTIVE = 4, + /// The contact accepted an invitation to see their orders, but their access was + /// later revoked. /// - SLIGHTLY_ROUNDED = 2, - /// Uses a rounded border-style. + USER_DISABLED = 5, + /// The value returned if the actual value is not exposed by the requested API + /// version. /// - VERY_ROUNDED = 3, + UNKNOWN = 6, } - /// List of all possible font families. + /// Caused by supplying a value for an email attribute that is not a valid email + /// address. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AdSenseSettings.FontFamily", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum AdSenseSettingsFontFamily { - DEFAULT = 0, - ARIAL = 1, - TAHOMA = 2, - GEORGIA = 3, - TIMES = 4, - VERDANA = 5, + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class InvalidEmailError : ApiError { + private InvalidEmailErrorReason reasonField; + + private bool reasonFieldSpecified; + + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public InvalidEmailErrorReason reason { + get { + return this.reasonField; + } + set { + this.reasonField = value; + this.reasonSpecified = true; + } + } + + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool reasonSpecified { + get { + return this.reasonFieldSpecified; + } + set { + this.reasonFieldSpecified = value; + } + } } - /// List of all possible font sizes the user can choose. + /// Describes reasons for an email to be invalid. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AdSenseSettings.FontSize", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum AdSenseSettingsFontSize { - DEFAULT = 0, - SMALL = 1, - MEDIUM = 2, - LARGE = 3, + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "InvalidEmailError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum InvalidEmailErrorReason { + /// The value is not a valid email address. + /// + INVALID_FORMAT = 0, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 1, } - /// An AdUnitSize represents the size of an ad in an ad unit. This also - /// represents the environment and companions of a particular ad in an ad unit. In - /// most cases, it is a simple size with just a width and a height (sometimes - /// representing an aspect ratio). + /// Errors associated with Contact. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class AdUnitSize { - private Size sizeField; - - private EnvironmentType environmentTypeField; - - private bool environmentTypeFieldSpecified; - - private AdUnitSize[] companionsField; - - private string fullDisplayStringField; - - private bool isAudioField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ContactError : ApiError { + private ContactErrorReason reasonField; - private bool isAudioFieldSpecified; + private bool reasonFieldSpecified; - /// The permissible creative size that can be served inside this ad unit. - /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public Size size { - get { - return this.sizeField; - } - set { - this.sizeField = value; - } - } - - /// The environment type of the ad unit size. The default value is EnvironmentType#BROWSER. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public EnvironmentType environmentType { + public ContactErrorReason reason { get { - return this.environmentTypeField; + return this.reasonField; } set { - this.environmentTypeField = value; - this.environmentTypeSpecified = true; + this.reasonField = value; + this.reasonSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , + /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool environmentTypeSpecified { + public bool reasonSpecified { get { - return this.environmentTypeFieldSpecified; + return this.reasonFieldSpecified; } set { - this.environmentTypeFieldSpecified = value; + this.reasonFieldSpecified = value; } } + } - /// The companions for this ad unit size. Companions are only valid if the - /// environment is EnvironmentType#VIDEO_PLAYER. If the environment - /// is EnvironmentType#BROWSER including - /// companions results in an error. - /// - [System.Xml.Serialization.XmlElementAttribute("companions", Order = 2)] - public AdUnitSize[] companions { - get { - return this.companionsField; - } - set { - this.companionsField = value; - } - } - /// The full (including companion sizes, if applicable) display string of the size, - /// e.g. "300x250" or "300x250v (180x150)" + /// The reasons for the target error. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ContactError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum ContactErrorReason { + /// The value returned if the actual value is not exposed by the requested API + /// version. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public string fullDisplayString { - get { - return this.fullDisplayStringField; - } - set { - this.fullDisplayStringField = value; - } - } + UNKNOWN = 0, + } - /// Whether the inventory size is audio. If set to true, Size will be - /// set to "1x1" and EnvironmentType will be set to EnvironmentType#VIDEO_PLAYER regardless - /// of user input. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public bool isAudio { - get { - return this.isAudioField; - } - set { - this.isAudioField = value; - this.isAudioSpecified = true; - } - } - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool isAudioSpecified { - get { - return this.isAudioFieldSpecified; - } - set { - this.isAudioFieldSpecified = value; - } - } + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", ConfigurationName = "Google.Api.Ads.AdManager.v202411.ContactServiceInterface")] + public interface ContactServiceInterface + { + // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(BaseContact))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Wrappers.ContactService.createContactsResponse createContacts(Wrappers.ContactService.createContactsRequest request); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + System.Threading.Tasks.Task createContactsAsync(Wrappers.ContactService.createContactsRequest request); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(BaseContact))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v202411.ContactPage getContactsByStatement(Google.Api.Ads.AdManager.v202411.Statement statement); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task getContactsByStatementAsync(Google.Api.Ads.AdManager.v202411.Statement statement); + + // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(BaseContact))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Wrappers.ContactService.updateContactsResponse updateContacts(Wrappers.ContactService.updateContactsRequest request); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + System.Threading.Tasks.Task updateContactsAsync(Wrappers.ContactService.updateContactsRequest request); } - /// The summary of a parent AdUnit. + /// Captures a page of Contact objects. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class AdUnitParent { - private string idField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ContactPage { + private int totalResultSetSizeField; - private string nameField; + private bool totalResultSetSizeFieldSpecified; - private string adUnitCodeField; + private int startIndexField; - /// The ID of the parent AdUnit. This value is readonly and is - /// populated by Google. + private bool startIndexFieldSpecified; + + private Contact[] resultsField; + + /// The size of the total result set to which this page belongs. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public string id { + public int totalResultSetSize { get { - return this.idField; + return this.totalResultSetSizeField; } set { - this.idField = value; + this.totalResultSetSizeField = value; + this.totalResultSetSizeSpecified = true; } } - /// The name of the parent AdUnit. This value is readonly and is - /// populated by Google. + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool totalResultSetSizeSpecified { + get { + return this.totalResultSetSizeFieldSpecified; + } + set { + this.totalResultSetSizeFieldSpecified = value; + } + } + + /// The absolute index in the total result set on which this page begins. /// [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public string name { + public int startIndex { get { - return this.nameField; + return this.startIndexField; } set { - this.nameField = value; + this.startIndexField = value; + this.startIndexSpecified = true; } } - /// A string used to uniquely identify the ad unit for the purposes of serving the - /// ad. This attribute is read-only and is assigned by Google when an ad unit is - /// created. + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool startIndexSpecified { + get { + return this.startIndexFieldSpecified; + } + set { + this.startIndexFieldSpecified = value; + } + } + + /// The collection of contacts contained within this page. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public string adUnitCode { + [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] + public Contact[] results { get { - return this.adUnitCodeField; + return this.resultsField; } set { - this.adUnitCodeField = value; + this.resultsField = value; } } } - /// An AdUnit represents a chunk of identified inventory for the - /// publisher. It contains all the settings that need to be associated with - /// inventory in order to serve ads to it. An can also be the parent - /// of other ad units in the inventory hierarchy. + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + public interface ContactServiceInterfaceChannel : Google.Api.Ads.AdManager.v202411.ContactServiceInterface, System.ServiceModel.IClientChannel + { + } + + + /// Provides methods for creating, updating and retrieving Contact objects. /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class AdUnit { - private string idField; - - private string parentIdField; + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + public partial class ContactService : AdManagerSoapClient, IContactService { + /// Creates a new instance of the class. + /// + public ContactService() { + } - private bool hasChildrenField; + /// Creates a new instance of the class. + /// + public ContactService(string endpointConfigurationName) + : base(endpointConfigurationName) { + } - private bool hasChildrenFieldSpecified; + /// Creates a new instance of the class. + /// + public ContactService(string endpointConfigurationName, string remoteAddress) + : base(endpointConfigurationName, remoteAddress) { + } - private AdUnitParent[] parentPathField; + /// Creates a new instance of the class. + /// + public ContactService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) + : base(endpointConfigurationName, remoteAddress) { + } - private string nameField; + /// Creates a new instance of the class. + /// + public ContactService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) + : base(binding, remoteAddress) { + } - private string descriptionField; + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + Wrappers.ContactService.createContactsResponse Google.Api.Ads.AdManager.v202411.ContactServiceInterface.createContacts(Wrappers.ContactService.createContactsRequest request) { + return base.Channel.createContacts(request); + } - private AdUnitTargetWindow targetWindowField; + /// Creates new Contact objects. + /// + public virtual Google.Api.Ads.AdManager.v202411.Contact[] createContacts(Google.Api.Ads.AdManager.v202411.Contact[] contacts) { + Wrappers.ContactService.createContactsRequest inValue = new Wrappers.ContactService.createContactsRequest(); + inValue.contacts = contacts; + Wrappers.ContactService.createContactsResponse retVal = ((Google.Api.Ads.AdManager.v202411.ContactServiceInterface)(this)).createContacts(inValue); + return retVal.rval; + } - private bool targetWindowFieldSpecified; + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202411.ContactServiceInterface.createContactsAsync(Wrappers.ContactService.createContactsRequest request) { + return base.Channel.createContactsAsync(request); + } - private InventoryStatus statusField; + public virtual System.Threading.Tasks.Task createContactsAsync(Google.Api.Ads.AdManager.v202411.Contact[] contacts) { + Wrappers.ContactService.createContactsRequest inValue = new Wrappers.ContactService.createContactsRequest(); + inValue.contacts = contacts; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202411.ContactServiceInterface)(this)).createContactsAsync(inValue)).Result.rval); + } - private bool statusFieldSpecified; + /// Gets a ContactPage of Contact + /// objects that satisfy the given Statement#query. The following + /// fields are supported for filtering: + /// + /// + /// + /// + /// + /// + /// + /// + /// + ///
PQL + /// Property Object Property
name Contact#name
email Contact#email
idContact#id
comment Contact#comment
companyId Contact#companyId
title Contact#title
cellPhone Contact#cellPhone
workPhone Contact#workPhone
faxPhone Contact#faxPhone
status Contact#status
+ ///
+ public virtual Google.Api.Ads.AdManager.v202411.ContactPage getContactsByStatement(Google.Api.Ads.AdManager.v202411.Statement statement) { + return base.Channel.getContactsByStatement(statement); + } - private string adUnitCodeField; + public virtual System.Threading.Tasks.Task getContactsByStatementAsync(Google.Api.Ads.AdManager.v202411.Statement statement) { + return base.Channel.getContactsByStatementAsync(statement); + } - private AdUnitSize[] adUnitSizesField; + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + Wrappers.ContactService.updateContactsResponse Google.Api.Ads.AdManager.v202411.ContactServiceInterface.updateContacts(Wrappers.ContactService.updateContactsRequest request) { + return base.Channel.updateContacts(request); + } - private bool isInterstitialField; + /// Updates the specified Contact objects. + /// + public virtual Google.Api.Ads.AdManager.v202411.Contact[] updateContacts(Google.Api.Ads.AdManager.v202411.Contact[] contacts) { + Wrappers.ContactService.updateContactsRequest inValue = new Wrappers.ContactService.updateContactsRequest(); + inValue.contacts = contacts; + Wrappers.ContactService.updateContactsResponse retVal = ((Google.Api.Ads.AdManager.v202411.ContactServiceInterface)(this)).updateContacts(inValue); + return retVal.rval; + } - private bool isInterstitialFieldSpecified; + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202411.ContactServiceInterface.updateContactsAsync(Wrappers.ContactService.updateContactsRequest request) { + return base.Channel.updateContactsAsync(request); + } - private bool isNativeField; + public virtual System.Threading.Tasks.Task updateContactsAsync(Google.Api.Ads.AdManager.v202411.Contact[] contacts) { + Wrappers.ContactService.updateContactsRequest inValue = new Wrappers.ContactService.updateContactsRequest(); + inValue.contacts = contacts; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202411.ContactServiceInterface)(this)).updateContactsAsync(inValue)).Result.rval); + } + } + namespace Wrappers.LiveStreamEventService + { + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "createLiveStreamEvents", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class createLiveStreamEventsRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("liveStreamEvents")] + public Google.Api.Ads.AdManager.v202411.LiveStreamEvent[] liveStreamEvents; - private bool isNativeFieldSpecified; + /// Creates a new instance of the class. + public createLiveStreamEventsRequest() { + } - private bool isFluidField; + /// Creates a new instance of the class. + public createLiveStreamEventsRequest(Google.Api.Ads.AdManager.v202411.LiveStreamEvent[] liveStreamEvents) { + this.liveStreamEvents = liveStreamEvents; + } + } - private bool isFluidFieldSpecified; - private bool explicitlyTargetedField; + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "createLiveStreamEventsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class createLiveStreamEventsResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("rval")] + public Google.Api.Ads.AdManager.v202411.LiveStreamEvent[] rval; - private bool explicitlyTargetedFieldSpecified; + /// Creates a new instance of the class. + public createLiveStreamEventsResponse() { + } - private AdSenseSettings adSenseSettingsField; + /// Creates a new instance of the class. + public createLiveStreamEventsResponse(Google.Api.Ads.AdManager.v202411.LiveStreamEvent[] rval) { + this.rval = rval; + } + } - private ValueSourceType adSenseSettingsSourceField; - private bool adSenseSettingsSourceFieldSpecified; + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "createSlates", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class createSlatesRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("slates")] + public Google.Api.Ads.AdManager.v202411.Slate[] slates; - private LabelFrequencyCap[] appliedLabelFrequencyCapsField; + /// Creates a new instance of the class. + /// + public createSlatesRequest() { + } - private LabelFrequencyCap[] effectiveLabelFrequencyCapsField; + /// Creates a new instance of the class. + /// + public createSlatesRequest(Google.Api.Ads.AdManager.v202411.Slate[] slates) { + this.slates = slates; + } + } - private AppliedLabel[] appliedLabelsField; - private AppliedLabel[] effectiveAppliedLabelsField; + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "createSlatesResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class createSlatesResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("rval")] + public Google.Api.Ads.AdManager.v202411.Slate[] rval; - private long[] effectiveTeamIdsField; + /// Creates a new instance of the + /// class. + public createSlatesResponse() { + } - private long[] appliedTeamIdsField; + /// Creates a new instance of the + /// class. + public createSlatesResponse(Google.Api.Ads.AdManager.v202411.Slate[] rval) { + this.rval = rval; + } + } - private DateTime lastModifiedDateTimeField; - private SmartSizeMode smartSizeModeField; + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "updateLiveStreamEvents", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class updateLiveStreamEventsRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("liveStreamEvents")] + public Google.Api.Ads.AdManager.v202411.LiveStreamEvent[] liveStreamEvents; - private bool smartSizeModeFieldSpecified; + /// Creates a new instance of the class. + public updateLiveStreamEventsRequest() { + } - private int refreshRateField; + /// Creates a new instance of the class. + public updateLiveStreamEventsRequest(Google.Api.Ads.AdManager.v202411.LiveStreamEvent[] liveStreamEvents) { + this.liveStreamEvents = liveStreamEvents; + } + } - private bool refreshRateFieldSpecified; - private string externalSetTopBoxChannelIdField; + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "updateLiveStreamEventsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class updateLiveStreamEventsResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("rval")] + public Google.Api.Ads.AdManager.v202411.LiveStreamEvent[] rval; - private bool isSetTopBoxEnabledField; + /// Creates a new instance of the class. + public updateLiveStreamEventsResponse() { + } - private bool isSetTopBoxEnabledFieldSpecified; + /// Creates a new instance of the class. + public updateLiveStreamEventsResponse(Google.Api.Ads.AdManager.v202411.LiveStreamEvent[] rval) { + this.rval = rval; + } + } - private long applicationIdField; - private bool applicationIdFieldSpecified; + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "updateSlates", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class updateSlatesRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("slates")] + public Google.Api.Ads.AdManager.v202411.Slate[] slates; - /// Uniquely identifies the AdUnit. This value is read-only and is - /// assigned by Google when an ad unit is created. This attribute is required for - /// updates. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public string id { - get { - return this.idField; + /// Creates a new instance of the class. + /// + public updateSlatesRequest() { } - set { - this.idField = value; + + /// Creates a new instance of the class. + /// + public updateSlatesRequest(Google.Api.Ads.AdManager.v202411.Slate[] slates) { + this.slates = slates; } } - /// The ID of the ad unit's parent. Every ad unit has a parent except for the root - /// ad unit, which is created by Google. This attribute is required when creating - /// the ad unit. Once the ad unit is created this value will be read-only. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public string parentId { - get { - return this.parentIdField; + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "updateSlatesResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class updateSlatesResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("rval")] + public Google.Api.Ads.AdManager.v202411.Slate[] rval; + + /// Creates a new instance of the + /// class. + public updateSlatesResponse() { } - set { - this.parentIdField = value; + + /// Creates a new instance of the + /// class. + public updateSlatesResponse(Google.Api.Ads.AdManager.v202411.Slate[] rval) { + this.rval = rval; } } + } + /// A DashBridge is used to decide when to apply DASH Bridge + /// single-period to multi-period MPD conditioning. This should always be enabled + /// when the DASH manifest type is single-period. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class DashBridge { + private bool enabledField; - /// This field is set to true if the ad unit has any children. This - /// attribute is read-only and is populated by Google. + private bool enabledFieldSpecified; + + /// Specifies whether to apply DASH Bridge single-period to multi-period MPD + /// conditioning. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public bool hasChildren { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public bool enabled { get { - return this.hasChildrenField; + return this.enabledField; } set { - this.hasChildrenField = value; - this.hasChildrenSpecified = true; + this.enabledField = value; + this.enabledSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , + /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool hasChildrenSpecified { + public bool enabledSpecified { get { - return this.hasChildrenFieldSpecified; + return this.enabledFieldSpecified; } set { - this.hasChildrenFieldSpecified = value; + this.enabledFieldSpecified = value; } } + } - /// The path to this ad unit in the ad unit hierarchy represented as a list from the - /// root to this ad unit's parent. For root ad units, this list is empty. This - /// attribute is read-only and is populated by Google. + + /// Settings to specify all types of conditioning to apply to the associated LiveStreamEvent. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class LiveStreamConditioning { + private DashBridge dashBridgeField; + + /// Specifies DASH Bridge single-period to multi-period MPD conditioning. /// - [System.Xml.Serialization.XmlElementAttribute("parentPath", Order = 3)] - public AdUnitParent[] parentPath { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public DashBridge dashBridge { get { - return this.parentPathField; + return this.dashBridgeField; } set { - this.parentPathField = value; + this.dashBridgeField = value; } } + } - /// The name of the ad unit. This attribute is required and its maximum length is - /// 255 characters. This attribute must also be case-insensitive unique. + + /// The information needed to prefetch ad requests for an ad break. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class PrefetchSettings { + private int initialAdRequestDurationSecondsField; + + private bool initialAdRequestDurationSecondsFieldSpecified; + + /// The duration of the part of the break to be prefetched. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public string name { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public int initialAdRequestDurationSeconds { get { - return this.nameField; + return this.initialAdRequestDurationSecondsField; } set { - this.nameField = value; + this.initialAdRequestDurationSecondsField = value; + this.initialAdRequestDurationSecondsSpecified = true; } } - /// A description of the ad unit. This value is optional and its maximum length is - /// 65,535 characters. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 5)] - public string description { + /// true, if a value is specified for , false otherwise. + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool initialAdRequestDurationSecondsSpecified { get { - return this.descriptionField; + return this.initialAdRequestDurationSecondsFieldSpecified; } set { - this.descriptionField = value; + this.initialAdRequestDurationSecondsFieldSpecified = value; } } + } - /// The value to use for the HTML link's target attribute. This value - /// is optional and will be interpreted as TargetWindow#TOP if left blank. + + /// Settings for the HLS (HTTP Live Streaming) master playlist. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class MasterPlaylistSettings { + private RefreshType refreshTypeField; + + private bool refreshTypeFieldSpecified; + + /// Indicates how the master playlist gets refreshed. This field is optional and + /// defaults to RefreshType#AUTOMATIC. This field can only be + /// modified when the live stream is in a LiveStreamEventStatus#PAUSED state. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 6)] - public AdUnitTargetWindow targetWindow { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public RefreshType refreshType { get { - return this.targetWindowField; + return this.refreshTypeField; } set { - this.targetWindowField = value; - this.targetWindowSpecified = true; + this.refreshTypeField = value; + this.refreshTypeSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool targetWindowSpecified { + public bool refreshTypeSpecified { get { - return this.targetWindowFieldSpecified; + return this.refreshTypeFieldSpecified; } set { - this.targetWindowFieldSpecified = value; + this.refreshTypeFieldSpecified = value; } } + } - /// The status of this ad unit. It defaults to InventoryStatus#ACTIVE. This value cannot be - /// updated directly using InventoryService#updateAdUnit. It can - /// only be modified by performing actions via InventoryService#performAdUnitAction. + + /// Enumerates the different ways an HLS master playlist on a live stream will can + /// be refreshed. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum RefreshType { + /// The master playlist will automatically be refreshed. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 7)] - public InventoryStatus status { + AUTOMATIC = 0, + /// The master playlist will only be refreshed when requested. + /// + MANUAL = 1, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 2, + } + + + /// LiveStream settings that are specific to the HTTP live + /// streaming (HLS) protocol. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class HlsSettings { + private PlaylistType playlistTypeField; + + private bool playlistTypeFieldSpecified; + + private MasterPlaylistSettings masterPlaylistSettingsField; + + /// Indicates the type of the playlist associated with this live stream. The + /// playlist type is analogous to the EXT-X-PLAYLIST-TYPE HLS tag. This field is + /// optional and will default to PlaylistType#LIVE. This field cannot + /// be modified after live stream creation. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public PlaylistType playlistType { get { - return this.statusField; + return this.playlistTypeField; } set { - this.statusField = value; - this.statusSpecified = true; + this.playlistTypeField = value; + this.playlistTypeSpecified = true; } } - /// true, if a value is specified for , - /// false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool statusSpecified { + public bool playlistTypeSpecified { get { - return this.statusFieldSpecified; + return this.playlistTypeFieldSpecified; } set { - this.statusFieldSpecified = value; + this.playlistTypeFieldSpecified = value; } } - /// A string used to uniquely identify the ad unit for the purposes of serving the - /// ad. This attribute is optional and can be set during ad unit creation. If it is - /// not provided, it will be assigned by Google based off of the inventory unit ID. - /// Once an ad unit is created, its adUnitCode cannot be changed. + /// The settings for the master playlist. This field is optional and if it is not + /// set will default to a MasterPlaylistSettings with a refresh type of + /// RefreshType#AUTOMATIC. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 8)] - public string adUnitCode { + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public MasterPlaylistSettings masterPlaylistSettings { get { - return this.adUnitCodeField; + return this.masterPlaylistSettingsField; } set { - this.adUnitCodeField = value; + this.masterPlaylistSettingsField = value; } } + } - /// The permissible creative sizes that can be served inside this ad unit. This - /// attribute is optional. This attribute replaces the sizes attribute. + + /// Describes the type of the playlist associated with this live stream. This is + /// analagous to the EXT-X-PLAYLIST-TYPE HLS tag. Use PlaylistType.EVENT for streams with the value + /// "#EXT-X-PLAYLIST-TYPE:EVENT" and use PlaylistType.LIVE for streams without the tag. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum PlaylistType { + /// The playlist is an event, which means that media segments can only be added to + /// the end of the playlist. This allows viewers to scrub back to the beginning of + /// the playlist. /// - [System.Xml.Serialization.XmlElementAttribute("adUnitSizes", Order = 9)] - public AdUnitSize[] adUnitSizes { + EVENT = 0, + /// The playlist is a live stream and there are no restrictions on whether media + /// segments can be removed from the beginning of the playlist. + /// + LIVE = 1, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 2, + } + + + /// Settings for ad breaks on LiveStreamEvent that are + /// specific to preroll. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class PrerollSettings { + private string adTagField; + + private long maxAdPodDurationSecondsField; + + private bool maxAdPodDurationSecondsFieldSpecified; + + /// The Ad Manager ad tag URL generated by the Ad Manager trafficking workflow that + /// is associated with this live stream event. This attribute is required. This attribute is required. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public string adTag { get { - return this.adUnitSizesField; + return this.adTagField; } set { - this.adUnitSizesField = value; + this.adTagField = value; } } - /// Whether this is an interstitial ad unit. + /// The maximum duration (in seconds) for an ad break. This attribute is required. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 10)] - public bool isInterstitial { + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public long maxAdPodDurationSeconds { get { - return this.isInterstitialField; + return this.maxAdPodDurationSecondsField; } set { - this.isInterstitialField = value; - this.isInterstitialSpecified = true; + this.maxAdPodDurationSecondsField = value; + this.maxAdPodDurationSecondsSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="maxAdPodDurationSeconds" />, false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool isInterstitialSpecified { + public bool maxAdPodDurationSecondsSpecified { get { - return this.isInterstitialFieldSpecified; + return this.maxAdPodDurationSecondsFieldSpecified; } set { - this.isInterstitialFieldSpecified = value; + this.maxAdPodDurationSecondsFieldSpecified = value; } } + } - /// Whether this is a native ad unit. + + /// A LiveStreamEvent encapsulates all the information necessary to + /// enable DAI (Dynamic Ad Insertion) into a live video stream.

This includes + /// information such as the start and expected end time of the live stream, the URL + /// of the actual content for Ad Manager to pull and insert ads into, as well as the + /// metadata necessary to generate ad requests during the live stream.

+ ///
+ [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class LiveStreamEvent { + private long idField; + + private bool idFieldSpecified; + + private string nameField; + + private LiveStreamEventStatus statusField; + + private bool statusFieldSpecified; + + private DateTime creationDateTimeField; + + private DateTime lastModifiedDateTimeField; + + private DateTime startDateTimeField; + + private StartDateTimeType startDateTimeTypeField; + + private bool startDateTimeTypeFieldSpecified; + + private DateTime endDateTimeField; + + private bool unlimitedEndDateTimeField; + + private bool unlimitedEndDateTimeFieldSpecified; + + private long totalEstimatedConcurrentUsersField; + + private bool totalEstimatedConcurrentUsersFieldSpecified; + + private string[] contentUrlsField; + + private string[] adTagsField; + + private string assetKeyField; + + private long slateCreativeIdField; + + private bool slateCreativeIdFieldSpecified; + + private int dvrWindowSecondsField; + + private bool dvrWindowSecondsFieldSpecified; + + private bool enableDaiAuthenticationKeysField; + + private bool enableDaiAuthenticationKeysFieldSpecified; + + private AdBreakFillType adBreakFillTypeField; + + private bool adBreakFillTypeFieldSpecified; + + private AdBreakFillType underfillAdBreakFillTypeField; + + private bool underfillAdBreakFillTypeFieldSpecified; + + private long adHolidayDurationField; + + private bool adHolidayDurationFieldSpecified; + + private bool enableMaxFillerDurationField; + + private bool enableMaxFillerDurationFieldSpecified; + + private long maxFillerDurationField; + + private bool maxFillerDurationFieldSpecified; + + private long podServingSegmentDurationField; + + private bool podServingSegmentDurationFieldSpecified; + + private bool enableDurationlessAdBreaksField; + + private bool enableDurationlessAdBreaksFieldSpecified; + + private long defaultAdBreakDurationField; + + private bool defaultAdBreakDurationFieldSpecified; + + private long[] streamCreateDaiAuthenticationKeyIdsField; + + private long[] sourceContentConfigurationIdsField; + + private PrerollSettings prerollSettingsField; + + private HlsSettings hlsSettingsField; + + private bool enableAllowlistedIpsField; + + private bool enableAllowlistedIpsFieldSpecified; + + private DynamicAdInsertionType dynamicAdInsertionTypeField; + + private bool dynamicAdInsertionTypeFieldSpecified; + + private bool enableRelativePlaylistDeliveryField; + + private bool enableRelativePlaylistDeliveryFieldSpecified; + + private StreamingFormat streamingFormatField; + + private bool streamingFormatFieldSpecified; + + private bool prefetchEnabledField; + + private bool prefetchEnabledFieldSpecified; + + private PrefetchSettings prefetchSettingsField; + + private bool enableForceCloseAdBreaksField; + + private bool enableForceCloseAdBreaksFieldSpecified; + + private bool enableShortSegmentDroppingField; + + private bool enableShortSegmentDroppingFieldSpecified; + + private string customAssetKeyField; + + private long[] daiEncodingProfileIdsField; + + private long[] segmentUrlAuthenticationKeyIdsField; + + private AdBreakMarkupType[] adBreakMarkupsField; + + private bool adBreakMarkupTypesEnabledField; + + private bool adBreakMarkupTypesEnabledFieldSpecified; + + private AdServingFormat adServingFormatField; + + private bool adServingFormatFieldSpecified; + + private LiveStreamConditioning liveStreamConditioningField; + + /// The unique ID of the LiveStreamEvent. This value is read-only and + /// is assigned by Google. This attribute is read-only. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 11)] - public bool isNative { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public long id { get { - return this.isNativeField; + return this.idField; } set { - this.isNativeField = value; - this.isNativeSpecified = true; + this.idField = value; + this.idSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , + /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool isNativeSpecified { + public bool idSpecified { get { - return this.isNativeFieldSpecified; + return this.idFieldSpecified; } set { - this.isNativeFieldSpecified = value; + this.idFieldSpecified = value; } } - /// Whether this is a fluid ad unit. + /// The name of the LiveStreamEvent. This value is required to create a + /// live stream event and has a maximum length of 255 characters. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 12)] - public bool isFluid { + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public string name { get { - return this.isFluidField; + return this.nameField; } set { - this.isFluidField = value; - this.isFluidSpecified = true; + this.nameField = value; } } - /// true, if a value is specified for , + /// The status of this LiveStreamEvent. This attribute is read-only and + /// is assigned by Google. Live stream events are created in the LiveStreamEventStatus#PAUSED state. This + /// attribute is read-only. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public LiveStreamEventStatus status { + get { + return this.statusField; + } + set { + this.statusField = value; + this.statusSpecified = true; + } + } + + /// true, if a value is specified for , /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool isFluidSpecified { + public bool statusSpecified { get { - return this.isFluidFieldSpecified; + return this.statusFieldSpecified; } set { - this.isFluidFieldSpecified = value; + this.statusFieldSpecified = value; } } - /// If this field is set to true, then the AdUnit will not - /// be implicitly targeted when its parent is. Traffickers must explicitly target - /// such an ad unit or else no line items will serve to it. This feature is only - /// available for Ad Manager 360 accounts. + /// The date and time this LiveStreamEvent was created. This attribute + /// is read-only. This attribute is read-only. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 13)] - public bool explicitlyTargeted { + [System.Xml.Serialization.XmlElementAttribute(Order = 3)] + public DateTime creationDateTime { get { - return this.explicitlyTargetedField; + return this.creationDateTimeField; } set { - this.explicitlyTargetedField = value; - this.explicitlyTargetedSpecified = true; + this.creationDateTimeField = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool explicitlyTargetedSpecified { + /// The date and time this LiveStreamEvent was last modified. This + /// attribute is read-only. This attribute is read-only. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 4)] + public DateTime lastModifiedDateTime { get { - return this.explicitlyTargetedFieldSpecified; + return this.lastModifiedDateTimeField; } set { - this.explicitlyTargetedFieldSpecified = value; + this.lastModifiedDateTimeField = value; } } - /// AdSense specific settings. To overwrite this, set the #adSenseSettingsSource to PropertySourceType#DIRECTLY_SPECIFIED when setting the value of this - /// field. + /// The start date and time of this LiveStreamEvent. This attribute is + /// required if the LiveStreamEvent#startDateTimeType + /// is StartDateTimeType#USE_START_DATE_TIME + /// and is ignored for all other values of StartDateTimeType. Modifying this attribute for an + /// active live stream can impact traffic. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 14)] - public AdSenseSettings adSenseSettings { + [System.Xml.Serialization.XmlElementAttribute(Order = 5)] + public DateTime startDateTime { get { - return this.adSenseSettingsField; + return this.startDateTimeField; } set { - this.adSenseSettingsField = value; + this.startDateTimeField = value; } } - /// Specifies the source of #adSenseSettings value. - /// To revert an overridden value to its default, set this field to PropertySourceType#PARENT. + /// Specifies whether to start the LiveStreamEvent + /// right away, in an hour, etc. This attribute is optional and defaults to StartDateTimeType#USE_START_DATE_TIME. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 15)] - public ValueSourceType adSenseSettingsSource { + [System.Xml.Serialization.XmlElementAttribute(Order = 6)] + public StartDateTimeType startDateTimeType { get { - return this.adSenseSettingsSourceField; + return this.startDateTimeTypeField; } set { - this.adSenseSettingsSourceField = value; - this.adSenseSettingsSourceSpecified = true; + this.startDateTimeTypeField = value; + this.startDateTimeTypeSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="startDateTimeType" />, false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool adSenseSettingsSourceSpecified { + public bool startDateTimeTypeSpecified { get { - return this.adSenseSettingsSourceFieldSpecified; + return this.startDateTimeTypeFieldSpecified; } set { - this.adSenseSettingsSourceFieldSpecified = value; + this.startDateTimeTypeFieldSpecified = value; } } - /// The set of label frequency caps applied directly to this ad unit. There is a - /// limit of 10 label frequency caps per ad unit. + /// The scheduled end date and time of this LiveStreamEvent. This + /// attribute is required if unlimitedEndDateTime is false and ignored + /// if unlimitedEndDateTime is true. Modifying this attribute for an + /// active live stream can impact traffic. /// - [System.Xml.Serialization.XmlElementAttribute("appliedLabelFrequencyCaps", Order = 16)] - public LabelFrequencyCap[] appliedLabelFrequencyCaps { + [System.Xml.Serialization.XmlElementAttribute(Order = 7)] + public DateTime endDateTime { get { - return this.appliedLabelFrequencyCapsField; + return this.endDateTimeField; } set { - this.appliedLabelFrequencyCapsField = value; + this.endDateTimeField = value; } } - /// Contains the set of labels applied directly to the ad unit as well as those - /// inherited from parent ad units. This field is readonly and is assigned by - /// Google. + /// Whether the LiveStreamEvent has an end time. This + /// attribute is optional and defaults to false. If this field is true, + /// endDateTime is ignored. /// - [System.Xml.Serialization.XmlElementAttribute("effectiveLabelFrequencyCaps", Order = 17)] - public LabelFrequencyCap[] effectiveLabelFrequencyCaps { + [System.Xml.Serialization.XmlElementAttribute(Order = 8)] + public bool unlimitedEndDateTime { get { - return this.effectiveLabelFrequencyCapsField; + return this.unlimitedEndDateTimeField; } set { - this.effectiveLabelFrequencyCapsField = value; + this.unlimitedEndDateTimeField = value; + this.unlimitedEndDateTimeSpecified = true; } } - /// The set of labels applied directly to this ad unit. + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool unlimitedEndDateTimeSpecified { + get { + return this.unlimitedEndDateTimeFieldSpecified; + } + set { + this.unlimitedEndDateTimeFieldSpecified = value; + } + } + + /// The total number of concurrent users expected to watch this live stream across + /// all regions. This attribute is optional and default value is 0. /// - [System.Xml.Serialization.XmlElementAttribute("appliedLabels", Order = 18)] - public AppliedLabel[] appliedLabels { + [System.Xml.Serialization.XmlElementAttribute(Order = 9)] + public long totalEstimatedConcurrentUsers { get { - return this.appliedLabelsField; + return this.totalEstimatedConcurrentUsersField; } set { - this.appliedLabelsField = value; + this.totalEstimatedConcurrentUsersField = value; + this.totalEstimatedConcurrentUsersSpecified = true; } } - /// Contains the set of labels applied directly to the ad unit as well as those - /// inherited from the parent ad units. If a label has been negated, only the - /// negated label is returned. This field is readonly and is assigned by Google. + /// true, if a value is specified for , false otherwise. /// - [System.Xml.Serialization.XmlElementAttribute("effectiveAppliedLabels", Order = 19)] - public AppliedLabel[] effectiveAppliedLabels { + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool totalEstimatedConcurrentUsersSpecified { get { - return this.effectiveAppliedLabelsField; + return this.totalEstimatedConcurrentUsersFieldSpecified; } set { - this.effectiveAppliedLabelsField = value; + this.totalEstimatedConcurrentUsersFieldSpecified = value; } } - /// The IDs of all teams that this ad unit is on as well as those inherited from - /// parent ad units. This value is read-only and is set by Google. + /// The list of URLs pointing to the live stream content in Content Delivery + /// Network. This attribute is required and can be modified when the live stream is + /// in a LiveStreamEventStatus#PAUSED state. /// - [System.Xml.Serialization.XmlElementAttribute("effectiveTeamIds", Order = 20)] - public long[] effectiveTeamIds { + [System.Xml.Serialization.XmlElementAttribute("contentUrls", Order = 10)] + public string[] contentUrls { get { - return this.effectiveTeamIdsField; + return this.contentUrlsField; } set { - this.effectiveTeamIdsField = value; + this.contentUrlsField = value; } } - /// The IDs of all teams that this ad unit is on directly. + /// The list of Ad Manager ad tag URLs generated by the Ad Manager trafficking + /// workflow that are associated with this live stream event. Currently, the list + /// includes only one element: the master ad tag. This attribute is required. /// - [System.Xml.Serialization.XmlElementAttribute("appliedTeamIds", Order = 21)] - public long[] appliedTeamIds { + [System.Xml.Serialization.XmlElementAttribute("adTags", Order = 11)] + public string[] adTags { get { - return this.appliedTeamIdsField; + return this.adTagsField; } set { - this.appliedTeamIdsField = value; + this.adTagsField = value; } } - /// The date and time this ad unit was last modified. + /// This code is used in constructing a live stream event master playlist URL. This + /// attribute is read-only and is assigned by Google. + /// liveStreamEventCode was renamed assetKey in v201911. + /// This attribute is read-only. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 22)] - public DateTime lastModifiedDateTime { + [System.Xml.Serialization.XmlElementAttribute(Order = 12)] + public string assetKey { get { - return this.lastModifiedDateTimeField; + return this.assetKeyField; } set { - this.lastModifiedDateTimeField = value; + this.assetKeyField = value; } } - /// The smart size mode for this ad unit. This attribute is optional and defaults to - /// SmartSizeMode#NONE for fixed sizes. + /// ID corresponding to the slate for this live event. If not set, network default + /// value will be used. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 23)] - public SmartSizeMode smartSizeMode { + [System.Xml.Serialization.XmlElementAttribute(Order = 13)] + public long slateCreativeId { get { - return this.smartSizeModeField; + return this.slateCreativeIdField; } set { - this.smartSizeModeField = value; - this.smartSizeModeSpecified = true; + this.slateCreativeIdField = value; + this.slateCreativeIdSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="slateCreativeId" />, false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool smartSizeModeSpecified { + public bool slateCreativeIdSpecified { get { - return this.smartSizeModeFieldSpecified; + return this.slateCreativeIdFieldSpecified; } set { - this.smartSizeModeFieldSpecified = value; + this.slateCreativeIdFieldSpecified = value; } } - /// The interval in seconds which ad units in mobile apps automatically refresh. - /// Valid values are between 30 and 120 seconds. This attribute is optional and only - /// applies to ad units in mobile apps. If this value is not set, then the mobile - /// app ad will not refresh. + /// Length of the DVR window in seconds. This value is optional. If unset the + /// default window as provided by the input encoder will be used. Modifying this + /// value for an active live stream can impact traffic. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 24)] - public int refreshRate { + [System.Xml.Serialization.XmlElementAttribute(Order = 14)] + public int dvrWindowSeconds { get { - return this.refreshRateField; + return this.dvrWindowSecondsField; } set { - this.refreshRateField = value; - this.refreshRateSpecified = true; + this.dvrWindowSecondsField = value; + this.dvrWindowSecondsSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool refreshRateSpecified { + public bool dvrWindowSecondsSpecified { get { - return this.refreshRateFieldSpecified; + return this.dvrWindowSecondsFieldSpecified; } set { - this.refreshRateFieldSpecified = value; + this.dvrWindowSecondsFieldSpecified = value; } } - /// Specifies an ID for a channel in an external set-top box campaign management - /// system. This attribute is only meaningful if #isSetTopBoxEnabled is true. This - /// attribute is read-only. + /// Whether the live stream's requests to the IMA SDK API will be authenticated + /// using the DAI authentication keys. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 25)] - public string externalSetTopBoxChannelId { + [System.Xml.Serialization.XmlElementAttribute(Order = 15)] + public bool enableDaiAuthenticationKeys { get { - return this.externalSetTopBoxChannelIdField; + return this.enableDaiAuthenticationKeysField; } set { - this.externalSetTopBoxChannelIdField = value; + this.enableDaiAuthenticationKeysField = value; + this.enableDaiAuthenticationKeysSpecified = true; } } - /// Flag that specifies whether this ad unit represents an external set-top box - /// channel. This attribute is read-only. + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool enableDaiAuthenticationKeysSpecified { + get { + return this.enableDaiAuthenticationKeysFieldSpecified; + } + set { + this.enableDaiAuthenticationKeysFieldSpecified = value; + } + } + + /// The type of content that should be used to fill an empty ad break. This value is + /// optional and defaults to AdBreakFillType#SLATE. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 26)] - public bool isSetTopBoxEnabled { + [System.Xml.Serialization.XmlElementAttribute(Order = 16)] + public AdBreakFillType adBreakFillType { get { - return this.isSetTopBoxEnabledField; + return this.adBreakFillTypeField; } set { - this.isSetTopBoxEnabledField = value; - this.isSetTopBoxEnabledSpecified = true; + this.adBreakFillTypeField = value; + this.adBreakFillTypeSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="adBreakFillType" />, false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool isSetTopBoxEnabledSpecified { + public bool adBreakFillTypeSpecified { get { - return this.isSetTopBoxEnabledFieldSpecified; + return this.adBreakFillTypeFieldSpecified; } set { - this.isSetTopBoxEnabledFieldSpecified = value; + this.adBreakFillTypeFieldSpecified = value; } } - /// The MobileApplication#applicationId for - /// the CTV application that this ad unit is within. This attribute is optional. + /// The type of content that should be used to fill the time remaining in the ad + /// break when there are not enough ads to fill the entire break. This value is + /// optional and defaults to AdBreakFillType#SLATE. To set this field + /// a network needs to have the "Live stream ad break underfill type" feature + /// enabled. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 27)] - public long applicationId { + [System.Xml.Serialization.XmlElementAttribute(Order = 17)] + public AdBreakFillType underfillAdBreakFillType { get { - return this.applicationIdField; + return this.underfillAdBreakFillTypeField; } set { - this.applicationIdField = value; - this.applicationIdSpecified = true; + this.underfillAdBreakFillTypeField = value; + this.underfillAdBreakFillTypeSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="underfillAdBreakFillType" />, false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool applicationIdSpecified { + public bool underfillAdBreakFillTypeSpecified { get { - return this.applicationIdFieldSpecified; + return this.underfillAdBreakFillTypeFieldSpecified; } set { - this.applicationIdFieldSpecified = value; + this.underfillAdBreakFillTypeFieldSpecified = value; } } - } - - - /// Corresponds to an HTML link's target attribute. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AdUnit.TargetWindow", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum AdUnitTargetWindow { - /// Specifies that the link should open in the full body of the page. - /// - TOP = 0, - /// Specifies that the link should open in a new window. - /// - BLANK = 1, - } - - - /// Represents the status of objects that represent inventory - ad units and - /// placements. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum InventoryStatus { - /// The object is active. - /// - ACTIVE = 0, - /// The object is no longer active. - /// - INACTIVE = 1, - /// The object has been archived. - /// - ARCHIVED = 2, - } - - /// Identifies the source of a field's value. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum ValueSourceType { - /// The field's value is inherited from the parent object. - /// - PARENT = 0, - /// The field's value is user specified and not inherited. - /// - DIRECTLY_SPECIFIED = 1, - /// The value returned if the actual value is not exposed by the requested API - /// version. + /// The duration (in seconds), starting from the time the user enters the DAI + /// stream, for which mid-roll decisioning will be skipped. This field is only + /// applicable when an ad holiday is requested in the stream create request. This + /// value is optional and defaults to 0. /// - UNKNOWN = 2, - } + [System.Xml.Serialization.XmlElementAttribute(Order = 18)] + public long adHolidayDuration { + get { + return this.adHolidayDurationField; + } + set { + this.adHolidayDurationField = value; + this.adHolidayDurationSpecified = true; + } + } + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool adHolidayDurationSpecified { + get { + return this.adHolidayDurationFieldSpecified; + } + set { + this.adHolidayDurationFieldSpecified = value; + } + } - /// Represents smart size modes. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum SmartSizeMode { - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 0, - /// Fixed size mode (default). - /// - NONE = 1, - /// The height is fixed for the request, the width is a range. - /// - SMART_BANNER = 2, - /// Height and width are ranges. + /// Whether there will be max filler duration in this live stream. If true, + /// maxFillerDuration should be specified. This field is optional and + /// defaults to false. /// - DYNAMIC_SIZE = 3, - } - - - /// An error specifically for InventoryUnitSizes. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class InventoryUnitSizesError : ApiError { - private InventoryUnitSizesErrorReason reasonField; - - private bool reasonFieldSpecified; - - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public InventoryUnitSizesErrorReason reason { + [System.Xml.Serialization.XmlElementAttribute(Order = 19)] + public bool enableMaxFillerDuration { get { - return this.reasonField; + return this.enableMaxFillerDurationField; } set { - this.reasonField = value; - this.reasonSpecified = true; + this.enableMaxFillerDurationField = value; + this.enableMaxFillerDurationSpecified = true; } } - /// true, if a value is specified for , - /// false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { + public bool enableMaxFillerDurationSpecified { get { - return this.reasonFieldSpecified; + return this.enableMaxFillerDurationFieldSpecified; } set { - this.reasonFieldSpecified = value; + this.enableMaxFillerDurationFieldSpecified = value; } } - } - - /// All possible reasons the error can be thrown. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "InventoryUnitSizesError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum InventoryUnitSizesErrorReason { - /// A size in the ad unit is too large or too small. - /// - INVALID_SIZES = 0, - /// A size is an aspect ratio, but the ad unit is not a mobile ad unit. - /// - INVALID_SIZE_FOR_PLATFORM = 1, - /// A size is video, but the video feature is not enabled. - /// - VIDEO_FEATURE_MISSING = 2, - /// A size is video in a mobile ad unit, but the mobile video feature is not - /// enabled. - /// - VIDEO_MOBILE_LINE_ITEM_FEATURE_MISSING = 3, - /// A size that has companions must have an environment of VIDEO_PLAYER. - /// - INVALID_SIZE_FOR_MASTER = 4, - /// A size that is a companion must have an environment of BROWSER. - /// - INVALID_SIZE_FOR_COMPANION = 5, - /// Duplicate video master sizes are not allowed. - /// - DUPLICATE_MASTER_SIZES = 6, - /// A size is an aspect ratio, but aspect ratio sizes are not enabled. - /// - ASPECT_RATIO_NOT_SUPPORTED = 7, - /// A video size has companions, but companions are not allowed for the network - /// - VIDEO_COMPANIONS_NOT_SUPPORTED = 8, - /// The value returned if the actual value is not exposed by the requested API - /// version. + /// The maximum number of seconds that can be used to fill this ad pod, either with + /// a slate or underlying content, depending on your settings. If more time needs to + /// be filled, the ad pod will instead be dropped and the underlying content will be + /// served. /// - UNKNOWN = 9, - } - - - /// Lists errors relating to AdUnit#refreshRate. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class InventoryUnitRefreshRateError : ApiError { - private InventoryUnitRefreshRateErrorReason reasonField; - - private bool reasonFieldSpecified; - - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public InventoryUnitRefreshRateErrorReason reason { + [System.Xml.Serialization.XmlElementAttribute(Order = 20)] + public long maxFillerDuration { get { - return this.reasonField; + return this.maxFillerDurationField; } set { - this.reasonField = value; - this.reasonSpecified = true; + this.maxFillerDurationField = value; + this.maxFillerDurationSpecified = true; } } - /// true, if a value is specified for , - /// false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { + public bool maxFillerDurationSpecified { get { - return this.reasonFieldSpecified; + return this.maxFillerDurationFieldSpecified; } set { - this.reasonFieldSpecified = value; + this.maxFillerDurationFieldSpecified = value; } } - } - - /// Reasons for the error. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "InventoryUnitRefreshRateError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum InventoryUnitRefreshRateErrorReason { - /// The refresh rate must be between 30 and 120 seconds. + /// The duration (in seconds) that can be used when stitching ads for each + /// livestream event. This attribute is only available for Pod Serving HLS Segment + /// Redirect and Pod Serving Dash Segment Redirect. /// - INVALID_RANGE = 0, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 1, - } - - - /// A list of all errors associated with a color attribute. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class InvalidColorError : ApiError { - private InvalidColorErrorReason reasonField; - - private bool reasonFieldSpecified; - - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public InvalidColorErrorReason reason { + [System.Xml.Serialization.XmlElementAttribute(Order = 21)] + public long podServingSegmentDuration { get { - return this.reasonField; + return this.podServingSegmentDurationField; } set { - this.reasonField = value; - this.reasonSpecified = true; + this.podServingSegmentDurationField = value; + this.podServingSegmentDurationSpecified = true; } } - /// true, if a value is specified for , - /// false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { + public bool podServingSegmentDurationSpecified { get { - return this.reasonFieldSpecified; + return this.podServingSegmentDurationFieldSpecified; } set { - this.reasonFieldSpecified = value; + this.podServingSegmentDurationFieldSpecified = value; } } - } - - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "InvalidColorError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum InvalidColorErrorReason { - /// The provided value is not a valid hexadecimal color. - /// - INVALID_FORMAT = 0, - /// The value returned if the actual value is not exposed by the requested API - /// version. + /// Whether there will be durationless ad breaks in this live stream. If true, + /// defaultAdBreakDuration should be specified. This field is optional + /// and defaults to false; /// - UNKNOWN = 1, - } - - - /// A list of all errors associated with companies. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class CompanyError : ApiError { - private CompanyErrorReason reasonField; - - private bool reasonFieldSpecified; - - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public CompanyErrorReason reason { + [System.Xml.Serialization.XmlElementAttribute(Order = 22)] + public bool enableDurationlessAdBreaks { get { - return this.reasonField; + return this.enableDurationlessAdBreaksField; } set { - this.reasonField = value; - this.reasonSpecified = true; + this.enableDurationlessAdBreaksField = value; + this.enableDurationlessAdBreaksSpecified = true; } } - /// true, if a value is specified for , - /// false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { + public bool enableDurationlessAdBreaksSpecified { get { - return this.reasonFieldSpecified; + return this.enableDurationlessAdBreaksFieldSpecified; } set { - this.reasonFieldSpecified = value; + this.enableDurationlessAdBreaksFieldSpecified = value; } } - } - - /// Enumerates all possible company specific errors. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CompanyError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum CompanyErrorReason { - /// Indicates that an attempt was made to set a third party company for a company - /// whose type is not the same as the third party company. - /// - CANNOT_SET_THIRD_PARTY_COMPANY_DUE_TO_TYPE = 0, - /// Indicates that an invalid attempt was made to change a company's type. - /// - CANNOT_UPDATE_COMPANY_TYPE = 1, - /// Indicates that this type of company is not supported. + /// The default ad pod duration (in seconds) that will be requested when an ad break + /// cue-out does not specify a duration. This field is optional and defaults to 0; /// - INVALID_COMPANY_TYPE = 2, - /// Indicates that an attempt was made to assign a primary contact who does not - /// belong to the specified company. - /// - PRIMARY_CONTACT_DOES_NOT_BELONG_TO_THIS_COMPANY = 3, - /// Indicates that the user specified as the third party stats provider is of the - /// wrong role type. The user must have the third party stats provider role. - /// - THIRD_PARTY_STATS_PROVIDER_IS_WRONG_ROLE_TYPE = 4, - /// Labels can only be applied to Company.Type#ADVERTISER, Company.Type#HOUSE_ADVERTISER, and Company.Type#AD_NETWORK company types. - /// - INVALID_LABEL_ASSOCIATION = 6, - /// Indicates that the Company.Type does not support - /// default billing settings. - /// - INVALID_COMPANY_TYPE_FOR_DEFAULT_BILLING_SETTING = 7, - /// Indicates that the format of the default billing setting is wrong. - /// - INVALID_DEFAULT_BILLING_SETTING = 8, - /// Cannot remove the cross selling config from a company that has active share - /// assignments. - /// - COMPANY_HAS_ACTIVE_SHARE_ASSIGNMENTS = 9, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 5, - } - - - /// Caused by creating an AdUnit object with an invalid - /// hierarchy. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class AdUnitHierarchyError : ApiError { - private AdUnitHierarchyErrorReason reasonField; - - private bool reasonFieldSpecified; - - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public AdUnitHierarchyErrorReason reason { + [System.Xml.Serialization.XmlElementAttribute(Order = 23)] + public long defaultAdBreakDuration { get { - return this.reasonField; + return this.defaultAdBreakDurationField; } set { - this.reasonField = value; - this.reasonSpecified = true; + this.defaultAdBreakDurationField = value; + this.defaultAdBreakDurationSpecified = true; } } - /// true, if a value is specified for , - /// false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { + public bool defaultAdBreakDurationSpecified { get { - return this.reasonFieldSpecified; + return this.defaultAdBreakDurationFieldSpecified; } set { - this.reasonFieldSpecified = value; + this.defaultAdBreakDurationFieldSpecified = value; } } - } - - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AdUnitHierarchyError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum AdUnitHierarchyErrorReason { - /// The depth of the AdUnit in the inventory hierarchy is - /// greater than is allowed. The maximum allowed depth is two below the effective - /// root ad unit for Ad Manager 360 accounts and is one level below the effective - /// root ad unit for Ad Manager accounts. - /// - INVALID_DEPTH = 0, - /// The only valid AdUnit#parentId for an Ad Manager - /// account is the Network#effectiveRootAdUnitId, Ad - /// Manager 360 accounts can specify an ad unit hierarchy with more than two levels. - /// - INVALID_PARENT = 1, - /// The value returned if the actual value is not exposed by the requested API - /// version. + /// The list of DaiAuthenticationKey IDs used to + /// authenticate stream create requests for this live stream. Modifying keys for an + /// active live stream may break the stream for some users. Exercise caution. /// - UNKNOWN = 2, - } - - - /// Error for AdSense related API calls. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class AdSenseAccountError : ApiError { - private AdSenseAccountErrorReason reasonField; - - private bool reasonFieldSpecified; - - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public AdSenseAccountErrorReason reason { + [System.Xml.Serialization.XmlElementAttribute("streamCreateDaiAuthenticationKeyIds", Order = 24)] + public long[] streamCreateDaiAuthenticationKeyIds { get { - return this.reasonField; + return this.streamCreateDaiAuthenticationKeyIdsField; } set { - this.reasonField = value; - this.reasonSpecified = true; + this.streamCreateDaiAuthenticationKeyIdsField = value; } } - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { + /// The list of CdnConfiguration IDs that provide + /// settings for ingesting and delivering the videos associated with this source. + /// Modifying settings for an active live stream may break the stream for some + /// users. Exercise caution. + /// + [System.Xml.Serialization.XmlElementAttribute("sourceContentConfigurationIds", Order = 25)] + public long[] sourceContentConfigurationIds { get { - return this.reasonFieldSpecified; + return this.sourceContentConfigurationIdsField; } set { - this.reasonFieldSpecified = value; + this.sourceContentConfigurationIdsField = value; } } - } - - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AdSenseAccountError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum AdSenseAccountErrorReason { - /// An error occurred while trying to associate an AdSense account with Ad Manager. - /// Unable to create an association with AdSense or Ad Exchange account. - /// - ASSOCIATE_ACCOUNT_API_ERROR = 0, - /// An error occured while trying to get an associated web property's ad slots. - /// Unable to retrieve ad slot information from AdSense or Ad Exchange account. - /// - GET_AD_SLOT_API_ERROR = 1, - /// An error occurred while trying to get an associated web property's ad channels. - /// - GET_CHANNEL_API_ERROR = 2, - /// An error occured while trying to retrieve account statues from AdSense API. - /// Unable to retrieve account status information. Please try again later. - /// - GET_BULK_ACCOUNT_STATUSES_API_ERROR = 3, - /// An error occured while trying to resend the account association verification - /// email. Error resending verification email. Please try again. - /// - RESEND_VERIFICATION_EMAIL_ERROR = 4, - /// An error occured while trying to retrieve a response from the AdSense API. There - /// was a problem processing your request. Please try again later. - /// - UNEXPECTED_API_RESPONSE_ERROR = 5, - /// The value returned if the actual value is not exposed by the requested API - /// version. + /// The settings specific to Preroll ad breaks. This field is optional. If null, + /// this livestream does not have prerolls enabled. /// - UNKNOWN = 6, - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", ConfigurationName = "Google.Api.Ads.AdManager.v202311.InventoryServiceInterface")] - public interface InventoryServiceInterface - { - // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Wrappers.InventoryService.createAdUnitsResponse createAdUnits(Wrappers.InventoryService.createAdUnitsRequest request); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task createAdUnitsAsync(Wrappers.InventoryService.createAdUnitsRequest request); - - // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Wrappers.InventoryService.getAdUnitSizesByStatementResponse getAdUnitSizesByStatement(Wrappers.InventoryService.getAdUnitSizesByStatementRequest request); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task getAdUnitSizesByStatementAsync(Wrappers.InventoryService.getAdUnitSizesByStatementRequest request); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v202311.AdUnitPage getAdUnitsByStatement(Google.Api.Ads.AdManager.v202311.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getAdUnitsByStatementAsync(Google.Api.Ads.AdManager.v202311.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v202311.UpdateResult performAdUnitAction(Google.Api.Ads.AdManager.v202311.AdUnitAction adUnitAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task performAdUnitActionAsync(Google.Api.Ads.AdManager.v202311.AdUnitAction adUnitAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement); - - // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Wrappers.InventoryService.updateAdUnitsResponse updateAdUnits(Wrappers.InventoryService.updateAdUnitsRequest request); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task updateAdUnitsAsync(Wrappers.InventoryService.updateAdUnitsRequest request); - } - - - /// Captures a page of AdUnit objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class AdUnitPage { - private int totalResultSetSizeField; - - private bool totalResultSetSizeFieldSpecified; - - private int startIndexField; - - private bool startIndexFieldSpecified; + [System.Xml.Serialization.XmlElementAttribute(Order = 26)] + public PrerollSettings prerollSettings { + get { + return this.prerollSettingsField; + } + set { + this.prerollSettingsField = value; + } + } - private AdUnit[] resultsField; + /// The settings that are specific to HTTPS live streaming (HLS) protocol. This + /// field is optional and if it is not set will use the default HLS settings. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 27)] + public HlsSettings hlsSettings { + get { + return this.hlsSettingsField; + } + set { + this.hlsSettingsField = value; + } + } - /// The size of the total result set to which this page belongs. + /// Whether specific allowlisted IP addresses should be used to access this live + /// stream. This field is optional and will default to false. To set this field a + /// network needs to have the "Video live allowlisted IPS enabled" feature enabled. + /// Modifying this field for an active live stream can impact traffic. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public int totalResultSetSize { + [System.Xml.Serialization.XmlElementAttribute(Order = 28)] + public bool enableAllowlistedIps { get { - return this.totalResultSetSizeField; + return this.enableAllowlistedIpsField; } set { - this.totalResultSetSizeField = value; - this.totalResultSetSizeSpecified = true; + this.enableAllowlistedIpsField = value; + this.enableAllowlistedIpsSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="enableAllowlistedIps" />, false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool totalResultSetSizeSpecified { + public bool enableAllowlistedIpsSpecified { get { - return this.totalResultSetSizeFieldSpecified; + return this.enableAllowlistedIpsFieldSpecified; } set { - this.totalResultSetSizeFieldSpecified = value; + this.enableAllowlistedIpsFieldSpecified = value; } } - /// The absolute index in the total result set on which this page begins. + /// The method of dynamic ad insertion that is used to insert ads into this live + /// stream. This attribute is optional and defaults to DynamicAdInsertionType.LINEAR. This + /// field cannot be modified after live stream creation. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public int startIndex { + [System.Xml.Serialization.XmlElementAttribute(Order = 29)] + public DynamicAdInsertionType dynamicAdInsertionType { get { - return this.startIndexField; + return this.dynamicAdInsertionTypeField; } set { - this.startIndexField = value; - this.startIndexSpecified = true; + this.dynamicAdInsertionTypeField = value; + this.dynamicAdInsertionTypeSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool startIndexSpecified { + public bool dynamicAdInsertionTypeSpecified { get { - return this.startIndexFieldSpecified; + return this.dynamicAdInsertionTypeFieldSpecified; } set { - this.startIndexFieldSpecified = value; + this.dynamicAdInsertionTypeFieldSpecified = value; } } - /// The collection of ad units contained within this page. + /// Whether the served playlists can include relative URLs. This field is optional + /// and defaults to false. To set this field a network needs to have the "Video live + /// stream relative playlist URLs" feature enabled. This field can be modified when + /// the live stream is in a LiveStreamEventStatus#PAUSED state. /// - [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] - public AdUnit[] results { + [System.Xml.Serialization.XmlElementAttribute(Order = 30)] + public bool enableRelativePlaylistDelivery { get { - return this.resultsField; + return this.enableRelativePlaylistDeliveryField; } set { - this.resultsField = value; + this.enableRelativePlaylistDeliveryField = value; + this.enableRelativePlaylistDeliverySpecified = true; } } - } - - - /// Represents the actions that can be performed on AdUnit - /// objects. - /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(DeactivateAdUnits))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ArchiveAdUnits))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ActivateAdUnits))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public abstract partial class AdUnitAction { - } - - /// The action used for deactivating AdUnit objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class DeactivateAdUnits : AdUnitAction { - } - - - /// The action used for archiving AdUnit objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ArchiveAdUnits : AdUnitAction { - } - - - /// The action used for activating AdUnit objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ActivateAdUnits : AdUnitAction { - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public interface InventoryServiceInterfaceChannel : Google.Api.Ads.AdManager.v202311.InventoryServiceInterface, System.ServiceModel.IClientChannel - { - } - - - /// Provides operations for creating, updating and retrieving AdUnit objects.

Line items connect a creative with its - /// associated ad unit through targeting.

An ad unit represents a piece of - /// inventory within a publisher. It contains all the settings that need to be - /// associated with the inventory in order to serve ads. For example, the ad unit - /// contains creative size restrictions and AdSense settings.

- ///
- [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public partial class InventoryService : AdManagerSoapClient, IInventoryService { - /// Creates a new instance of the class. + /// true, if a value is specified for , false otherwise. /// - public InventoryService() { + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool enableRelativePlaylistDeliverySpecified { + get { + return this.enableRelativePlaylistDeliveryFieldSpecified; + } + set { + this.enableRelativePlaylistDeliveryFieldSpecified = value; + } } - /// Creates a new instance of the class. + /// The streaming format of the LiveStreamEvent media. + /// This field cannot be modified after live stream creation. /// - public InventoryService(string endpointConfigurationName) - : base(endpointConfigurationName) { + [System.Xml.Serialization.XmlElementAttribute(Order = 31)] + public StreamingFormat streamingFormat { + get { + return this.streamingFormatField; + } + set { + this.streamingFormatField = value; + this.streamingFormatSpecified = true; + } } - /// Creates a new instance of the class. - /// - public InventoryService(string endpointConfigurationName, string remoteAddress) - : base(endpointConfigurationName, remoteAddress) { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool streamingFormatSpecified { + get { + return this.streamingFormatFieldSpecified; + } + set { + this.streamingFormatFieldSpecified = value; + } } - /// Creates a new instance of the class. + /// Indicates whether the option to prefetch ad requests is enabled. /// - public InventoryService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) - : base(endpointConfigurationName, remoteAddress) { + [System.Xml.Serialization.XmlElementAttribute(Order = 32)] + public bool prefetchEnabled { + get { + return this.prefetchEnabledField; + } + set { + this.prefetchEnabledField = value; + this.prefetchEnabledSpecified = true; + } } - /// Creates a new instance of the class. - /// - public InventoryService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) - : base(binding, remoteAddress) { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool prefetchEnabledSpecified { + get { + return this.prefetchEnabledFieldSpecified; + } + set { + this.prefetchEnabledFieldSpecified = value; + } } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.InventoryService.createAdUnitsResponse Google.Api.Ads.AdManager.v202311.InventoryServiceInterface.createAdUnits(Wrappers.InventoryService.createAdUnitsRequest request) { - return base.Channel.createAdUnits(request); + /// The information needed to prefetch ad requests for an ad break. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 33)] + public PrefetchSettings prefetchSettings { + get { + return this.prefetchSettingsField; + } + set { + this.prefetchSettingsField = value; + } } - /// Creates new AdUnit objects. + /// Whether live stream placement opportunities without #EXT-CUE-IN markers should + /// be force closed. This field is optional and defaults to false. To set this field + /// a network needs to have the "Video live stream forced cue in" feature enabled. /// - public virtual Google.Api.Ads.AdManager.v202311.AdUnit[] createAdUnits(Google.Api.Ads.AdManager.v202311.AdUnit[] adUnits) { - Wrappers.InventoryService.createAdUnitsRequest inValue = new Wrappers.InventoryService.createAdUnitsRequest(); - inValue.adUnits = adUnits; - Wrappers.InventoryService.createAdUnitsResponse retVal = ((Google.Api.Ads.AdManager.v202311.InventoryServiceInterface)(this)).createAdUnits(inValue); - return retVal.rval; + [System.Xml.Serialization.XmlElementAttribute(Order = 34)] + public bool enableForceCloseAdBreaks { + get { + return this.enableForceCloseAdBreaksField; + } + set { + this.enableForceCloseAdBreaksField = value; + this.enableForceCloseAdBreaksSpecified = true; + } } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202311.InventoryServiceInterface.createAdUnitsAsync(Wrappers.InventoryService.createAdUnitsRequest request) { - return base.Channel.createAdUnitsAsync(request); + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool enableForceCloseAdBreaksSpecified { + get { + return this.enableForceCloseAdBreaksFieldSpecified; + } + set { + this.enableForceCloseAdBreaksFieldSpecified = value; + } } - public virtual System.Threading.Tasks.Task createAdUnitsAsync(Google.Api.Ads.AdManager.v202311.AdUnit[] adUnits) { - Wrappers.InventoryService.createAdUnitsRequest inValue = new Wrappers.InventoryService.createAdUnitsRequest(); - inValue.adUnits = adUnits; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202311.InventoryServiceInterface)(this)).createAdUnitsAsync(inValue)).Result.rval); + /// Whether segments shorter than 1 second at the end of an ad pod should be + /// dropped. This field is optional and defaults to false. To set this field a + /// network needs to have the "Video live stream short segment dropping" feature + /// enabled. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 35)] + public bool enableShortSegmentDropping { + get { + return this.enableShortSegmentDroppingField; + } + set { + this.enableShortSegmentDroppingField = value; + this.enableShortSegmentDroppingSpecified = true; + } } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.InventoryService.getAdUnitSizesByStatementResponse Google.Api.Ads.AdManager.v202311.InventoryServiceInterface.getAdUnitSizesByStatement(Wrappers.InventoryService.getAdUnitSizesByStatementRequest request) { - return base.Channel.getAdUnitSizesByStatement(request); + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool enableShortSegmentDroppingSpecified { + get { + return this.enableShortSegmentDroppingFieldSpecified; + } + set { + this.enableShortSegmentDroppingFieldSpecified = value; + } } - /// Returns a set of all relevant AdUnitSize objects. - ///

The given Statement is currently ignored but may be - /// honored in future versions.

- ///
- public virtual Google.Api.Ads.AdManager.v202311.AdUnitSize[] getAdUnitSizesByStatement(Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - Wrappers.InventoryService.getAdUnitSizesByStatementRequest inValue = new Wrappers.InventoryService.getAdUnitSizesByStatementRequest(); - inValue.filterStatement = filterStatement; - Wrappers.InventoryService.getAdUnitSizesByStatementResponse retVal = ((Google.Api.Ads.AdManager.v202311.InventoryServiceInterface)(this)).getAdUnitSizesByStatement(inValue); - return retVal.rval; - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202311.InventoryServiceInterface.getAdUnitSizesByStatementAsync(Wrappers.InventoryService.getAdUnitSizesByStatementRequest request) { - return base.Channel.getAdUnitSizesByStatementAsync(request); - } - - public virtual System.Threading.Tasks.Task getAdUnitSizesByStatementAsync(Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - Wrappers.InventoryService.getAdUnitSizesByStatementRequest inValue = new Wrappers.InventoryService.getAdUnitSizesByStatementRequest(); - inValue.filterStatement = filterStatement; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202311.InventoryServiceInterface)(this)).getAdUnitSizesByStatementAsync(inValue)).Result.rval); - } - - /// Gets a AdUnitPage of AdUnit - /// objects that satisfy the given Statement#query. The following - /// fields are supported for filtering: - /// - /// - /// - /// - /// - /// - ///
PQL - /// Property Object Property
adUnitCode AdUnit#adUnitCode
id AdUnit#id
name AdUnit#name
parentId AdUnit#parentId
status AdUnit#status
lastModifiedDateTime AdUnit#lastModifiedDateTime
- ///
- public virtual Google.Api.Ads.AdManager.v202311.AdUnitPage getAdUnitsByStatement(Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.getAdUnitsByStatement(filterStatement); - } - - public virtual System.Threading.Tasks.Task getAdUnitsByStatementAsync(Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.getAdUnitsByStatementAsync(filterStatement); - } - - /// Performs actions on AdUnit objects that match the given Statement#query. - /// - public virtual Google.Api.Ads.AdManager.v202311.UpdateResult performAdUnitAction(Google.Api.Ads.AdManager.v202311.AdUnitAction adUnitAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.performAdUnitAction(adUnitAction, filterStatement); - } - - public virtual System.Threading.Tasks.Task performAdUnitActionAsync(Google.Api.Ads.AdManager.v202311.AdUnitAction adUnitAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.performAdUnitActionAsync(adUnitAction, filterStatement); - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.InventoryService.updateAdUnitsResponse Google.Api.Ads.AdManager.v202311.InventoryServiceInterface.updateAdUnits(Wrappers.InventoryService.updateAdUnitsRequest request) { - return base.Channel.updateAdUnits(request); - } - - /// Updates the specified AdUnit objects. + /// An additional code that can be used in constructing live stream event URLs. This + /// field is immutable after creation and can only be set for pod serving live + /// streams. The custom asset key may be at most 64 characters and can contain + /// alphanumeric characters and symbols other than the following: ", ', =, !, +, #, + /// *, ~, ;, ^, (, ), <, >, [, ], the white space character. /// - public virtual Google.Api.Ads.AdManager.v202311.AdUnit[] updateAdUnits(Google.Api.Ads.AdManager.v202311.AdUnit[] adUnits) { - Wrappers.InventoryService.updateAdUnitsRequest inValue = new Wrappers.InventoryService.updateAdUnitsRequest(); - inValue.adUnits = adUnits; - Wrappers.InventoryService.updateAdUnitsResponse retVal = ((Google.Api.Ads.AdManager.v202311.InventoryServiceInterface)(this)).updateAdUnits(inValue); - return retVal.rval; - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202311.InventoryServiceInterface.updateAdUnitsAsync(Wrappers.InventoryService.updateAdUnitsRequest request) { - return base.Channel.updateAdUnitsAsync(request); - } - - public virtual System.Threading.Tasks.Task updateAdUnitsAsync(Google.Api.Ads.AdManager.v202311.AdUnit[] adUnits) { - Wrappers.InventoryService.updateAdUnitsRequest inValue = new Wrappers.InventoryService.updateAdUnitsRequest(); - inValue.adUnits = adUnits; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202311.InventoryServiceInterface)(this)).updateAdUnitsAsync(inValue)).Result.rval); - } - } - namespace Wrappers.LabelService - { - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "createLabels", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class createLabelsRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("labels")] - public Google.Api.Ads.AdManager.v202311.Label[] labels; - - /// Creates a new instance of the class. - /// - public createLabelsRequest() { + [System.Xml.Serialization.XmlElementAttribute(Order = 36)] + public string customAssetKey { + get { + return this.customAssetKeyField; } - - /// Creates a new instance of the class. - /// - public createLabelsRequest(Google.Api.Ads.AdManager.v202311.Label[] labels) { - this.labels = labels; + set { + this.customAssetKeyField = value; } } - - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "createLabelsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class createLabelsResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v202311.Label[] rval; - - /// Creates a new instance of the - /// class. - public createLabelsResponse() { + /// The list of DaiEncodingProfile IDs that will be used for this live + /// stream event. This field only applies to pod serving events. New profile IDs can + /// be added to running live streams. Profile IDs cannot be removed from running + /// live streams. Modifying settings for an active live stream may break the stream + /// for some users. Exercise caution. + /// + [System.Xml.Serialization.XmlElementAttribute("daiEncodingProfileIds", Order = 37)] + public long[] daiEncodingProfileIds { + get { + return this.daiEncodingProfileIdsField; } - - /// Creates a new instance of the - /// class. - public createLabelsResponse(Google.Api.Ads.AdManager.v202311.Label[] rval) { - this.rval = rval; + set { + this.daiEncodingProfileIdsField = value; } } - - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "updateLabels", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class updateLabelsRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("labels")] - public Google.Api.Ads.AdManager.v202311.Label[] labels; - - /// Creates a new instance of the class. - /// - public updateLabelsRequest() { + /// The list of DaiAuthenticationKey IDs used to + /// authenticate ad segment url requests for this live stream. This field only + /// applies to pod serving events. Modifying settings for an active live stream may + /// break the stream for some users. Exercise caution. + /// + [System.Xml.Serialization.XmlElementAttribute("segmentUrlAuthenticationKeyIds", Order = 38)] + public long[] segmentUrlAuthenticationKeyIds { + get { + return this.segmentUrlAuthenticationKeyIdsField; } - - /// Creates a new instance of the class. - /// - public updateLabelsRequest(Google.Api.Ads.AdManager.v202311.Label[] labels) { - this.labels = labels; + set { + this.segmentUrlAuthenticationKeyIdsField = value; } } - - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "updateLabelsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class updateLabelsResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v202311.Label[] rval; - - /// Creates a new instance of the - /// class. - public updateLabelsResponse() { + /// The formats that will be recognized as ad break start/end markers. This field is + /// ignored if adBreakMarkupTypesEnabled is false + /// + [System.Xml.Serialization.XmlElementAttribute("adBreakMarkups", Order = 39)] + public AdBreakMarkupType[] adBreakMarkups { + get { + return this.adBreakMarkupsField; } - - /// Creates a new instance of the - /// class. - public updateLabelsResponse(Google.Api.Ads.AdManager.v202311.Label[] rval) { - this.rval = rval; + set { + this.adBreakMarkupsField = value; } } - } - /// A canonical ad category. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class AdCategoryDto { - private long idField; - - private bool idFieldSpecified; - - private string displayNameField; - - private long parentIdField; - - private bool parentIdFieldSpecified; - /// Canonical ID of the ad category. + /// Whether this LiveStreamEvent is specifying a + /// subset of supported adBreakMarkups. If this field is false, all + /// supported formats will be treated as ad break start/end markers. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public long id { + [System.Xml.Serialization.XmlElementAttribute(Order = 40)] + public bool adBreakMarkupTypesEnabled { get { - return this.idField; + return this.adBreakMarkupTypesEnabledField; } set { - this.idField = value; - this.idSpecified = true; + this.adBreakMarkupTypesEnabledField = value; + this.adBreakMarkupTypesEnabledSpecified = true; } } - /// true, if a value is specified for , - /// false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool idSpecified { + public bool adBreakMarkupTypesEnabledSpecified { get { - return this.idFieldSpecified; + return this.adBreakMarkupTypesEnabledFieldSpecified; } set { - this.idFieldSpecified = value; + this.adBreakMarkupTypesEnabledFieldSpecified = value; } } - /// Localized name of the category. + /// Whether ads on this LiveStreamEvent are served by + /// Google Ad Manager DAI or Google Ad Serving. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public string displayName { + [System.Xml.Serialization.XmlElementAttribute(Order = 41)] + public AdServingFormat adServingFormat { get { - return this.displayNameField; + return this.adServingFormatField; } set { - this.displayNameField = value; + this.adServingFormatField = value; + this.adServingFormatSpecified = true; } } - /// ID of the category's parent, or 0 if it has no parent. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public long parentId { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool adServingFormatSpecified { get { - return this.parentIdField; + return this.adServingFormatFieldSpecified; } set { - this.parentIdField = value; - this.parentIdSpecified = true; + this.adServingFormatFieldSpecified = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool parentIdSpecified { + /// The conditioning to apply to this LiveStreamEvent. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 42)] + public LiveStreamConditioning liveStreamConditioning { get { - return this.parentIdFieldSpecified; + return this.liveStreamConditioningField; } set { - this.parentIdFieldSpecified = value; + this.liveStreamConditioningField = value; } } } - /// A Label is additional information that can be added to an entity. + /// Describes the status of a LiveStreamEvent object. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class Label { - private long idField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum LiveStreamEventStatus { + /// Indicates the LiveStreamEvent has been created and + /// is eligible for streaming. + /// + ACTIVE = 0, + /// Indicates the LiveStreamEvent has been archived. + /// + ARCHIVED = 1, + /// Indicates the LiveStreamEvent has been paused. + /// This can be made #ACTIVE at later time. + /// + PAUSED = 2, + /// Indicates that the stream is still being served, but ad insertion should be + /// paused temporarily. + /// + ADS_PAUSED = 3, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 4, + } - private bool idFieldSpecified; - private string nameField; + /// Describes what should be used to fill an empty or underfilled ad break during a + /// live stream. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum AdBreakFillType { + /// Ad break should be filled with slate. + /// + SLATE = 0, + /// Ad break should be filled with underlying content. + /// + UNDERLYING_CONTENT = 1, + /// Ad break should be filled with mostly underlying content. When ad content can't + /// be aligned with underlying content during transition, the gap will be bridged + /// with slate to maintain the timeline. + /// + MINIMIZE_SLATE = 3, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 2, + } - private string descriptionField; - private bool isActiveField; + /// Describes how the live stream will have ads dynamically inserted into playlists. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum DynamicAdInsertionType { + /// Content manifest is served by Google DAI. Content and ads are stitched together + /// into a unique video manifest per user. + /// + LINEAR = 0, + /// Content manifest is served by the partner, embedding Google DAI ad segment URLs + /// which redirect to unique Google DAI ad segments per user. + /// + POD_SERVING_REDIRECT = 1, + /// Ads manifest is served by Google DAI, containing unique ad pod segments for the + /// video player to switch to from the content stream, or for the partner to stitch + /// directly into the user content manifest. + /// + POD_SERVING_MANIFEST = 2, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 3, + } - private bool isActiveFieldSpecified; - private AdCategoryDto adCategoryField; + /// The LiveStreamEvent streaming format. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum StreamingFormat { + /// The format of the live stream media is HTTP Live Streaming. + /// + HLS = 0, + /// The format of the live stream media is MPEG-DASH. + /// + DASH = 1, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 2, + } - private LabelType[] typesField; - /// Unique ID of the Label. This value is readonly and is assigned by - /// Google. + /// Describes the SCTE ad break markups for a LiveStreamEvent. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum AdBreakMarkupType { + /// The CUE-OUT/CUE-IN ad break marker type. This mark up type is only applicable + /// for HLS live streams. + /// + AD_BREAK_MARKUP_HLS_EXT_CUE = 0, + /// The CUE (Adobe/Azure Prime Time) ad break marker type. This mark up type is only + /// applicable for HLS live streams. + /// + AD_BREAK_MARKUP_HLS_PRIMETIME_SPLICE = 1, + /// The DATERANGE (Anvato) ad break marker type. This mark up type is only + /// applicable for HLS live streams. + /// + AD_BREAK_MARKUP_HLS_DATERANGE_SPLICE = 2, + /// The SCTE35 XML Splice In/Out ad break marker type. This markup type is only + /// applicable for DASH live streams. + /// + AD_BREAK_MARKUP_SCTE35_XML_SPLICE_INSERT = 3, + /// The SCTE35 Binary Splice Insert ad break marker type. This mark up type is only + /// applicable for HLS and DASH live streams. + /// + AD_BREAK_MARKUP_SCTE35_BINARY_SPLICE_INSERT = 4, + /// The SCTE35 Binary Time Signal: Provider Ad Start/End ad break marker type. This + /// mark up type is only applicable for HLS and DASH live streams. + /// + AD_BREAK_MARKUP_SCTE35_BINARY_PROVIDER_AD_START_END = 5, + /// The SCTE35 Binary Time Signal: Provider Placement Opportunity Start/End ad break + /// marker type. This mark up type is only applicable for HLS and DASH live streams. + /// + AD_BREAK_MARKUP_SCTE35_BINARY_PROVIDER_PLACEMENT_OP_START_END = 6, + /// The SCTE35 Binary Time Signal: Break Start/End ad break marker type. This mark + /// up type is only applicable for HLS and DASH live streams. + /// + AD_BREAK_MARKUP_SCTE35_BINARY_BREAK_START_END = 8, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 7, + } + + + /// Indicates how the ads of the live stream should be served. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum AdServingFormat { + /// The ads are served through Google Ad Manager DAI. /// + AD_MANAGER_DAI = 0, + /// The ads are served through Google Ad Manager Ad Serving. + /// + DIRECT = 1, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 2, + } + + + /// Lists all errors associated with live stream event ad tags. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class VideoAdTagError : ApiError { + private VideoAdTagErrorReason reasonField; + + private bool reasonFieldSpecified; + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public long id { + public VideoAdTagErrorReason reason { get { - return this.idField; + return this.reasonField; } set { - this.idField = value; - this.idSpecified = true; + this.reasonField = value; + this.reasonSpecified = true; } } - /// true, if a value is specified for , + /// true, if a value is specified for , /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool idSpecified { + public bool reasonSpecified { get { - return this.idFieldSpecified; + return this.reasonFieldSpecified; } set { - this.idFieldSpecified = value; + this.reasonFieldSpecified = value; } } + } - /// Name of the Label. This is value is required to create a label and - /// has a maximum length of 127 characters. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public string name { - get { - return this.nameField; - } - set { - this.nameField = value; - } - } - /// A description of the label. This value is optional and its maximum length is 255 - /// characters. + /// Describes reasons for VideoAdTagError. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "VideoAdTagError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum VideoAdTagErrorReason { + /// One or more required fields are not specified in the ad tag. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public string description { - get { - return this.descriptionField; - } - set { - this.descriptionField = value; - } - } - - /// Specifies whether or not the label is active. This attribute is read-only. + MISSING_REQUIRED_FIELDS = 0, + /// Ad tag URL is not a live traffic URL. Url should start with: + /// https://pubads.g.doubleclick.net/gampad/live/ads, not + /// https://pubads.g.doubleclick.net/gampad/ads /// - [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public bool isActive { + NO_LIVE_TRAFFIC = 1, + /// Ad tag URL is not a VOD traffic URL. Url should start with: + /// https://pubads.g.doubleclick.net/gampad/ads , not + /// https://pubads.g.doubleclick.net/gampad/live/ads + /// + NO_VOD_TRAFFIC = 2, + /// URL hostname is not a valid Google Publisher Tag or Freewheel Tag host name. + /// + INVALID_AD_TAG_HOST = 3, + /// Only HTTPS is supported. + /// + INVALID_SCHEME = 4, + /// Invalid ad output format. Settings for VAST and VMAP must be aligned. + /// + INVALID_AD_OUTPUT_FORMAT = 6, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 5, + } + + + /// Lists all errors associated with LiveStreamEvent + /// slate creative id. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class LiveStreamEventSlateError : ApiError { + private LiveStreamEventSlateErrorReason reasonField; + + private bool reasonFieldSpecified; + + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public LiveStreamEventSlateErrorReason reason { get { - return this.isActiveField; + return this.reasonField; } set { - this.isActiveField = value; - this.isActiveSpecified = true; + this.reasonField = value; + this.reasonSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , + /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool isActiveSpecified { + public bool reasonSpecified { get { - return this.isActiveFieldSpecified; + return this.reasonFieldSpecified; } set { - this.isActiveFieldSpecified = value; + this.reasonFieldSpecified = value; } } + } - /// Indicates the Ad Category associated with the label. + + /// Describes reasons for LiveStreamEventSlateError. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "LiveStreamEventSlateError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum LiveStreamEventSlateErrorReason { + /// The slate creative ID does not correspond to a slate creative. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public AdCategoryDto adCategory { + INVALID_SLATE_CREATIVE_ID = 0, + /// The required field live stream event slate is not set.

There must either be a + /// slate creative ID assigned to the live stream event or a valid network level + /// slate selected.

+ ///
+ LIVE_STREAM_EVENT_SLATE_CREATIVE_ID_REQUIRED = 1, + /// The slate does not have a videoSourceUrl or assetSourcePath. + /// + MISSING_SOURCE_FOR_SLATE = 3, + /// The slate is of an invalid type. + /// + INVALID_SLATE_TYPE = 4, + /// The slate video source url cannot change. + /// + CANNOT_CHANGE_SLATE_VIDEO_SOURCE_URL = 5, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 2, + } + + + /// Lists all errors associated with preroll settings applied to a LiveStreamEvent. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class LiveStreamEventPrerollSettingsError : ApiError { + private LiveStreamEventPrerollSettingsErrorReason reasonField; + + private bool reasonFieldSpecified; + + /// The error reason represented by an enum. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public LiveStreamEventPrerollSettingsErrorReason reason { get { - return this.adCategoryField; + return this.reasonField; } set { - this.adCategoryField = value; + this.reasonField = value; + this.reasonSpecified = true; } } - /// The types of the Label. - /// - [System.Xml.Serialization.XmlElementAttribute("types", Order = 5)] - public LabelType[] types { + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool reasonSpecified { get { - return this.typesField; + return this.reasonFieldSpecified; } set { - this.typesField = value; + this.reasonFieldSpecified = value; } } } - /// Represents the types of labels supported. + /// The reasons for the target error. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum LabelType { - /// Allows for the creation of labels to exclude competing ads from showing on the - /// same page. - /// - COMPETITIVE_EXCLUSION = 0, - /// Allows for the creation of limits on the frequency that a user sees a particular - /// type of creative over a portion of the inventory. - /// - AD_UNIT_FREQUENCY_CAP = 1, - /// Allows for the creation of labels to exclude ads from showing against a tag that - /// specifies the label as an exclusion. - /// - AD_EXCLUSION = 2, - /// Allows for the creation of labels that can be used to force the wrapping of a - /// delivering creative with header/footer creatives. These labels are paired with a - /// CreativeWrapper. - /// - CREATIVE_WRAPPER = 3, - /// Allows for the creation of labels mapped to a Google canonical ad category, - /// which can be used for competitive exclusions and blocking across Google systems. + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "LiveStreamEventPrerollSettingsError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum LiveStreamEventPrerollSettingsErrorReason { + /// Preroll settings are only supported for livestream events of dynamic ad + /// insertion type linear. /// - CANONICAL_CATEGORY = 5, + INVALID_PREROLL_SETTINGS = 0, /// The value returned if the actual value is not exposed by the requested API /// version. /// - UNKNOWN = 4, - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", ConfigurationName = "Google.Api.Ads.AdManager.v202311.LabelServiceInterface")] - public interface LabelServiceInterface - { - // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Wrappers.LabelService.createLabelsResponse createLabels(Wrappers.LabelService.createLabelsRequest request); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task createLabelsAsync(Wrappers.LabelService.createLabelsRequest request); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v202311.LabelPage getLabelsByStatement(Google.Api.Ads.AdManager.v202311.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getLabelsByStatementAsync(Google.Api.Ads.AdManager.v202311.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v202311.UpdateResult performLabelAction(Google.Api.Ads.AdManager.v202311.LabelAction labelAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task performLabelActionAsync(Google.Api.Ads.AdManager.v202311.LabelAction labelAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement); - - // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Wrappers.LabelService.updateLabelsResponse updateLabels(Wrappers.LabelService.updateLabelsRequest request); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task updateLabelsAsync(Wrappers.LabelService.updateLabelsRequest request); + UNKNOWN = 1, } - /// Captures a page of Label objects. + /// Lists the errors associated with setting the LiveStreamEvent DVR window duration. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class LabelPage { - private int totalResultSetSizeField; - - private bool totalResultSetSizeFieldSpecified; - - private int startIndexField; - - private bool startIndexFieldSpecified; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class LiveStreamEventDvrWindowError : ApiError { + private LiveStreamEventDvrWindowErrorReason reasonField; - private Label[] resultsField; + private bool reasonFieldSpecified; - /// The size of the total result set to which this page belongs. - /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public int totalResultSetSize { + public LiveStreamEventDvrWindowErrorReason reason { get { - return this.totalResultSetSizeField; + return this.reasonField; } set { - this.totalResultSetSizeField = value; - this.totalResultSetSizeSpecified = true; + this.reasonField = value; + this.reasonSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , + /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool totalResultSetSizeSpecified { + public bool reasonSpecified { get { - return this.totalResultSetSizeFieldSpecified; + return this.reasonFieldSpecified; } set { - this.totalResultSetSizeFieldSpecified = value; + this.reasonFieldSpecified = value; } } + } - /// The absolute index in the total result set on which this page begins. + + /// Describes reasons for LiveStreamEventDvrWindowError. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "LiveStreamEventDvrWindowError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum LiveStreamEventDvrWindowErrorReason { + /// The DVR window cannot be higher than the value allowed for this network. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public int startIndex { + DVR_WINDOW_TOO_HIGH = 0, + /// The DVR window cannot be lower than the minimum value allowed. + /// + DVR_WINDOW_TOO_LOW = 1, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 2, + } + + + /// Lists all errors associated with live stream event start and end date times. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class LiveStreamEventDateTimeError : ApiError { + private LiveStreamEventDateTimeErrorReason reasonField; + + private bool reasonFieldSpecified; + + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public LiveStreamEventDateTimeErrorReason reason { get { - return this.startIndexField; + return this.reasonField; } set { - this.startIndexField = value; - this.startIndexSpecified = true; + this.reasonField = value; + this.reasonSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , + /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool startIndexSpecified { + public bool reasonSpecified { get { - return this.startIndexFieldSpecified; + return this.reasonFieldSpecified; } set { - this.startIndexFieldSpecified = value; + this.reasonFieldSpecified = value; } } + } - /// The collection of labels contained within this page. + + /// Describes reasons for LiveStreamEventDateTimeError. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "LiveStreamEventDateTimeError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum LiveStreamEventDateTimeErrorReason { + /// Cannot create a new live stream event with a start date in the past. /// - [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] - public Label[] results { - get { - return this.resultsField; - } - set { - this.resultsField = value; - } - } + START_DATE_TIME_IS_IN_PAST = 0, + /// End date must be after the start date. + /// + END_DATE_TIME_NOT_AFTER_START_DATE_TIME = 1, + /// DateTimes after 1 January 2037 are not supported. + /// + END_DATE_TIME_TOO_LATE = 2, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 3, } - /// Represents the actions that can be performed on Label - /// objects. + /// Lists all errors associated with live stream event custom asset keys. /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(DeactivateLabels))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ActivateLabels))] [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public abstract partial class LabelAction { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class LiveStreamEventCustomAssetKeyError : ApiError { + private LiveStreamEventCustomAssetKeyErrorReason reasonField; + + private bool reasonFieldSpecified; + + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public LiveStreamEventCustomAssetKeyErrorReason reason { + get { + return this.reasonField; + } + set { + this.reasonField = value; + this.reasonSpecified = true; + } + } + + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool reasonSpecified { + get { + return this.reasonFieldSpecified; + } + set { + this.reasonFieldSpecified = value; + } + } } - /// The action used for deactivating Label objects. + /// Describes reasons for LiveStreamEventCustomAssetKeyError. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class DeactivateLabels : LabelAction { + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "LiveStreamEventCustomAssetKeyError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum LiveStreamEventCustomAssetKeyErrorReason { + /// Custom asset key contains invalid characters. + /// + CONTAINS_INVALID_CHARACTERS = 0, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 1, } - /// The action used for activating Label objects. + /// Lists all errors associated with conditioning applied to a LiveStreamEvent. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ActivateLabels : LabelAction { - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public interface LabelServiceInterfaceChannel : Google.Api.Ads.AdManager.v202311.LabelServiceInterface, System.ServiceModel.IClientChannel - { - } + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class LiveStreamEventConditioningError : ApiError { + private LiveStreamEventConditioningErrorReason reasonField; + private bool reasonFieldSpecified; - /// Provides methods for the creation and management of Labels. - /// - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public partial class LabelService : AdManagerSoapClient, ILabelService { - /// Creates a new instance of the class. + /// The error reason represented by an enum. /// - public LabelService() { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public LiveStreamEventConditioningErrorReason reason { + get { + return this.reasonField; + } + set { + this.reasonField = value; + this.reasonSpecified = true; + } } - /// Creates a new instance of the class. - /// - public LabelService(string endpointConfigurationName) - : base(endpointConfigurationName) { + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool reasonSpecified { + get { + return this.reasonFieldSpecified; + } + set { + this.reasonFieldSpecified = value; + } } + } - /// Creates a new instance of the class. - /// - public LabelService(string endpointConfigurationName, string remoteAddress) - : base(endpointConfigurationName, remoteAddress) { - } - /// Creates a new instance of the class. + /// The reasons for the target error. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "LiveStreamEventConditioningError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum LiveStreamEventConditioningErrorReason { + /// DASH bridge conditioning cannot be applied. /// - public LabelService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) - : base(endpointConfigurationName, remoteAddress) { - } - - /// Creates a new instance of the class. + CANNOT_APPLY_DASH_BRIDGE = 0, + /// DASH bridge conditioning cannot be modified after start time. /// - public LabelService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) - : base(binding, remoteAddress) { - } + CANNOT_UPDATE_DASH_BRIDGE_AFTER_START_TIME = 1, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 2, + } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.LabelService.createLabelsResponse Google.Api.Ads.AdManager.v202311.LabelServiceInterface.createLabels(Wrappers.LabelService.createLabelsRequest request) { - return base.Channel.createLabels(request); - } - /// Creates new Label objects. - /// - public virtual Google.Api.Ads.AdManager.v202311.Label[] createLabels(Google.Api.Ads.AdManager.v202311.Label[] labels) { - Wrappers.LabelService.createLabelsRequest inValue = new Wrappers.LabelService.createLabelsRequest(); - inValue.labels = labels; - Wrappers.LabelService.createLabelsResponse retVal = ((Google.Api.Ads.AdManager.v202311.LabelServiceInterface)(this)).createLabels(inValue); - return retVal.rval; - } + /// Lists all errors associated with LiveStreamEvent + /// CDN configurations. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class LiveStreamEventCdnSettingsError : ApiError { + private LiveStreamEventCdnSettingsErrorReason reasonField; - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202311.LabelServiceInterface.createLabelsAsync(Wrappers.LabelService.createLabelsRequest request) { - return base.Channel.createLabelsAsync(request); - } + private bool reasonFieldSpecified; - public virtual System.Threading.Tasks.Task createLabelsAsync(Google.Api.Ads.AdManager.v202311.Label[] labels) { - Wrappers.LabelService.createLabelsRequest inValue = new Wrappers.LabelService.createLabelsRequest(); - inValue.labels = labels; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202311.LabelServiceInterface)(this)).createLabelsAsync(inValue)).Result.rval); + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public LiveStreamEventCdnSettingsErrorReason reason { + get { + return this.reasonField; + } + set { + this.reasonField = value; + this.reasonSpecified = true; + } } - /// Gets a LabelPage of Label objects - /// that satisfy the given Statement#query. The following fields are - /// supported for filtering: - /// - /// - ///
PQL Property Object Property
id Label#id
type Label#type
nameLabel#name
description Label#description
isActive Label#isActive
- ///
- public virtual Google.Api.Ads.AdManager.v202311.LabelPage getLabelsByStatement(Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.getLabelsByStatement(filterStatement); + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool reasonSpecified { + get { + return this.reasonFieldSpecified; + } + set { + this.reasonFieldSpecified = value; + } } + } - public virtual System.Threading.Tasks.Task getLabelsByStatementAsync(Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.getLabelsByStatementAsync(filterStatement); - } - /// Performs actions on Label objects that match the given Statement#query. + /// Describes reasons for LiveStreamEventCdnSettingsError. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "LiveStreamEventCdnSettingsError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum LiveStreamEventCdnSettingsErrorReason { + /// CDN configurations in a single LiveStreamEvent + /// cannot have duplicate URL prefixes. /// - public virtual Google.Api.Ads.AdManager.v202311.UpdateResult performLabelAction(Google.Api.Ads.AdManager.v202311.LabelAction labelAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.performLabelAction(labelAction, filterStatement); - } + CDN_CONFIGURATIONS_MUST_HAVE_UNIQUE_CDN_URL_PREFIXES = 0, + /// Only CDN configurations of type can be listed in LiveStreamEvent#sourceContentConfigurations. + /// + MUST_BE_LIVE_CDN_CONFIGURATION = 1, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 2, + } - public virtual System.Threading.Tasks.Task performLabelActionAsync(Google.Api.Ads.AdManager.v202311.LabelAction labelAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.performLabelActionAsync(labelAction, filterStatement); - } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.LabelService.updateLabelsResponse Google.Api.Ads.AdManager.v202311.LabelServiceInterface.updateLabels(Wrappers.LabelService.updateLabelsRequest request) { - return base.Channel.updateLabels(request); - } + /// Lists all errors associated with live stream event action. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class LiveStreamEventActionError : ApiError { + private LiveStreamEventActionErrorReason reasonField; - /// Updates the specified Label objects. - /// - public virtual Google.Api.Ads.AdManager.v202311.Label[] updateLabels(Google.Api.Ads.AdManager.v202311.Label[] labels) { - Wrappers.LabelService.updateLabelsRequest inValue = new Wrappers.LabelService.updateLabelsRequest(); - inValue.labels = labels; - Wrappers.LabelService.updateLabelsResponse retVal = ((Google.Api.Ads.AdManager.v202311.LabelServiceInterface)(this)).updateLabels(inValue); - return retVal.rval; - } + private bool reasonFieldSpecified; - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202311.LabelServiceInterface.updateLabelsAsync(Wrappers.LabelService.updateLabelsRequest request) { - return base.Channel.updateLabelsAsync(request); + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public LiveStreamEventActionErrorReason reason { + get { + return this.reasonField; + } + set { + this.reasonField = value; + this.reasonSpecified = true; + } } - public virtual System.Threading.Tasks.Task updateLabelsAsync(Google.Api.Ads.AdManager.v202311.Label[] labels) { - Wrappers.LabelService.updateLabelsRequest inValue = new Wrappers.LabelService.updateLabelsRequest(); - inValue.labels = labels; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202311.LabelServiceInterface)(this)).updateLabelsAsync(inValue)).Result.rval); + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool reasonSpecified { + get { + return this.reasonFieldSpecified; + } + set { + this.reasonFieldSpecified = value; + } } } - namespace Wrappers.LineItemCreativeAssociationService - { - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "createLineItemCreativeAssociations", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class createLineItemCreativeAssociationsRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("lineItemCreativeAssociations")] - public Google.Api.Ads.AdManager.v202311.LineItemCreativeAssociation[] lineItemCreativeAssociations; - /// Creates a new instance of the class. - public createLineItemCreativeAssociationsRequest() { - } - /// Creates a new instance of the class. - public createLineItemCreativeAssociationsRequest(Google.Api.Ads.AdManager.v202311.LineItemCreativeAssociation[] lineItemCreativeAssociations) { - this.lineItemCreativeAssociations = lineItemCreativeAssociations; - } - } + /// Describes reasons for LiveStreamEventActionError. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "LiveStreamEventActionError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum LiveStreamEventActionErrorReason { + /// The operation is not applicable to the current status. + /// + INVALID_STATUS_TRANSITION = 0, + /// The operation cannot be applied because the live stream event is archived. + /// + IS_ARCHIVED = 1, + /// Both the live stream event slate and the network default slate are not set. + /// + INVALID_SLATE_SETTING = 4, + /// The slate creative has not been transcoded. + /// + SLATE_CREATIVE_NOT_TRANSCODED = 5, + /// Unable to activate live stream event that has an associated archived slate. + /// + SLATE_CREATIVE_ARCHIVED = 6, + /// A live stream cannot be activated if it is using inactive DAI authentication + /// keys. + /// + CANNOT_ACTIVATE_IF_USING_INACTIVE_DAI_AUTHENTICATION_KEYS = 3, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 2, + } - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "createLineItemCreativeAssociationsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class createLineItemCreativeAssociationsResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v202311.LineItemCreativeAssociation[] rval; + /// An error for publisher provided ad break markups in a LiveStreamEvent which are invalid for the given StreamingFormat. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class AdBreakMarkupError : ApiError { + private AdBreakMarkupErrorReason reasonField; - /// Creates a new instance of the class. - public createLineItemCreativeAssociationsResponse() { + private bool reasonFieldSpecified; + + /// The error reason represented by an enum. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public AdBreakMarkupErrorReason reason { + get { + return this.reasonField; + } + set { + this.reasonField = value; + this.reasonSpecified = true; } + } - /// Creates a new instance of the class. - public createLineItemCreativeAssociationsResponse(Google.Api.Ads.AdManager.v202311.LineItemCreativeAssociation[] rval) { - this.rval = rval; + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool reasonSpecified { + get { + return this.reasonFieldSpecified; + } + set { + this.reasonFieldSpecified = value; } } + } - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "getPreviewUrlsForNativeStyles", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class getPreviewUrlsForNativeStylesRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - public long lineItemId; + /// The reasons for the target error. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AdBreakMarkupError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum AdBreakMarkupErrorReason { + /// The ad break markups provided are not valid for the Streaming Format + /// + INVALID_AD_BREAK_MARKUPS_FOR_STREAMING_FORMAT = 0, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 1, + } - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 1)] - public long creativeId; - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 2)] - public string siteUrl; + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", ConfigurationName = "Google.Api.Ads.AdManager.v202411.LiveStreamEventServiceInterface")] + public interface LiveStreamEventServiceInterface + { + // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Wrappers.LiveStreamEventService.createLiveStreamEventsResponse createLiveStreamEvents(Wrappers.LiveStreamEventService.createLiveStreamEventsRequest request); - /// Creates a new instance of the class. - public getPreviewUrlsForNativeStylesRequest() { - } + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + System.Threading.Tasks.Task createLiveStreamEventsAsync(Wrappers.LiveStreamEventService.createLiveStreamEventsRequest request); - /// Creates a new instance of the class. - public getPreviewUrlsForNativeStylesRequest(long lineItemId, long creativeId, string siteUrl) { - this.lineItemId = lineItemId; - this.creativeId = creativeId; - this.siteUrl = siteUrl; - } - } + // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Wrappers.LiveStreamEventService.createSlatesResponse createSlates(Wrappers.LiveStreamEventService.createSlatesRequest request); + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + System.Threading.Tasks.Task createSlatesAsync(Wrappers.LiveStreamEventService.createSlatesRequest request); - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "getPreviewUrlsForNativeStylesResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class getPreviewUrlsForNativeStylesResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v202311.CreativeNativeStylePreview[] rval; + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v202411.LiveStreamEventPage getLiveStreamEventsByStatement(Google.Api.Ads.AdManager.v202411.Statement filterStatement); - /// Creates a new instance of the class. - public getPreviewUrlsForNativeStylesResponse() { - } + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task getLiveStreamEventsByStatementAsync(Google.Api.Ads.AdManager.v202411.Statement filterStatement); - /// Creates a new instance of the class. - public getPreviewUrlsForNativeStylesResponse(Google.Api.Ads.AdManager.v202311.CreativeNativeStylePreview[] rval) { - this.rval = rval; - } - } + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v202411.SlatePage getSlatesByStatement(Google.Api.Ads.AdManager.v202411.Statement statement); + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task getSlatesByStatementAsync(Google.Api.Ads.AdManager.v202411.Statement statement); - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "updateLineItemCreativeAssociations", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class updateLineItemCreativeAssociationsRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("lineItemCreativeAssociations")] - public Google.Api.Ads.AdManager.v202311.LineItemCreativeAssociation[] lineItemCreativeAssociations; + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v202411.UpdateResult performLiveStreamEventAction(Google.Api.Ads.AdManager.v202411.LiveStreamEventAction liveStreamEventAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement); - /// Creates a new instance of the class. - public updateLineItemCreativeAssociationsRequest() { - } + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task performLiveStreamEventActionAsync(Google.Api.Ads.AdManager.v202411.LiveStreamEventAction liveStreamEventAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement); - /// Creates a new instance of the class. - public updateLineItemCreativeAssociationsRequest(Google.Api.Ads.AdManager.v202311.LineItemCreativeAssociation[] lineItemCreativeAssociations) { - this.lineItemCreativeAssociations = lineItemCreativeAssociations; - } - } + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v202411.UpdateResult performSlateAction(Google.Api.Ads.AdManager.v202411.SlateAction slateAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement); + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task performSlateActionAsync(Google.Api.Ads.AdManager.v202411.SlateAction slateAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement); - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "updateLineItemCreativeAssociationsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class updateLineItemCreativeAssociationsResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v202311.LineItemCreativeAssociation[] rval; + // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Wrappers.LiveStreamEventService.updateLiveStreamEventsResponse updateLiveStreamEvents(Wrappers.LiveStreamEventService.updateLiveStreamEventsRequest request); - /// Creates a new instance of the class. - public updateLineItemCreativeAssociationsResponse() { - } + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + System.Threading.Tasks.Task updateLiveStreamEventsAsync(Wrappers.LiveStreamEventService.updateLiveStreamEventsRequest request); - /// Creates a new instance of the class. - public updateLineItemCreativeAssociationsResponse(Google.Api.Ads.AdManager.v202311.LineItemCreativeAssociation[] rval) { - this.rval = rval; - } - } + // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Wrappers.LiveStreamEventService.updateSlatesResponse updateSlates(Wrappers.LiveStreamEventService.updateSlatesRequest request); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + System.Threading.Tasks.Task updateSlatesAsync(Wrappers.LiveStreamEventService.updateSlatesRequest request); } - /// This represents an entry in a map with a key of type Long and value of type - /// Stats. + + + /// A Slate encapsulates all the information necessary to represent a + /// Slate entity, the video creative used by Dynamic Ad Insertion to fill vacant ad + /// slots. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class Long_StatsMapEntry { - private long keyField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class Slate { + private long idField; - private bool keyFieldSpecified; + private bool idFieldSpecified; - private Stats valueField; + private string nameField; + + private SlateStatus statusField; + + private bool statusFieldSpecified; + + private TranscodeStatus transcodeStatusField; + + private bool transcodeStatusFieldSpecified; + + private string videoSourceUrlField; + + private DateTime lastModifiedDateTimeField; + /// The unique ID of the Slate. This value is read-only and is assigned + /// by Google. + /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public long key { + public long id { get { - return this.keyField; + return this.idField; } set { - this.keyField = value; - this.keySpecified = true; + this.idField = value; + this.idSpecified = true; } } - /// true, if a value is specified for , + /// true, if a value is specified for , /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool keySpecified { + public bool idSpecified { get { - return this.keyFieldSpecified; + return this.idFieldSpecified; } set { - this.keyFieldSpecified = value; + this.idFieldSpecified = value; } } + /// The name of the Slate. This value is required to create a slate and + /// has a maximum length of 255 characters. + /// [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public Stats value { + public string name { get { - return this.valueField; + return this.nameField; } set { - this.valueField = value; + this.nameField = value; } } - } - - - /// Contains statistics such as impressions, clicks delivered and cost for LineItemCreativeAssociation objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class LineItemCreativeAssociationStats { - private Stats statsField; - private Long_StatsMapEntry[] creativeSetStatsField; + /// The status of this Slate. This attribute is read-only and is + /// assigned by Google. Slates are created in the SlateStatus#ACTIVE state. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public SlateStatus status { + get { + return this.statusField; + } + set { + this.statusField = value; + this.statusSpecified = true; + } + } - private Money costInOrderCurrencyField; + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool statusSpecified { + get { + return this.statusFieldSpecified; + } + set { + this.statusFieldSpecified = value; + } + } - /// A Stats object that holds delivered impressions and clicks - /// statistics. + /// Server side transcoding status of the current slate. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public Stats stats { + [System.Xml.Serialization.XmlElementAttribute(Order = 3)] + public TranscodeStatus transcodeStatus { get { - return this.statsField; + return this.transcodeStatusField; } set { - this.statsField = value; + this.transcodeStatusField = value; + this.transcodeStatusSpecified = true; } } - /// A map containing Stats objects for each creative belonging - /// to a creative set, null for non creative set associations. + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool transcodeStatusSpecified { + get { + return this.transcodeStatusFieldSpecified; + } + set { + this.transcodeStatusFieldSpecified = value; + } + } + + /// The location of the original asset if publisher provided and slate is externally + /// hosted. /// - [System.Xml.Serialization.XmlElementAttribute("creativeSetStats", Order = 1)] - public Long_StatsMapEntry[] creativeSetStats { + [System.Xml.Serialization.XmlElementAttribute(Order = 4)] + public string videoSourceUrl { get { - return this.creativeSetStatsField; + return this.videoSourceUrlField; } set { - this.creativeSetStatsField = value; + this.videoSourceUrlField = value; } } - /// The revenue generated thus far by the creative from its association with the - /// particular line item in the publisher's currency. + /// The date and time this slate was last modified. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public Money costInOrderCurrency { + [System.Xml.Serialization.XmlElementAttribute(Order = 5)] + public DateTime lastModifiedDateTime { get { - return this.costInOrderCurrencyField; + return this.lastModifiedDateTimeField; } set { - this.costInOrderCurrencyField = value; + this.lastModifiedDateTimeField = value; } } } - /// A LineItemCreativeAssociation associates a Creative or CreativeSet with a LineItem so that the creative can be served in ad units - /// targeted by the line item. + /// Describes the status of a Slate object. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class LineItemCreativeAssociation { - private long lineItemIdField; - - private bool lineItemIdFieldSpecified; - - private long creativeIdField; - - private bool creativeIdFieldSpecified; - - private long creativeSetIdField; - - private bool creativeSetIdFieldSpecified; - - private double manualCreativeRotationWeightField; - - private bool manualCreativeRotationWeightFieldSpecified; - - private int sequentialCreativeRotationIndexField; - - private bool sequentialCreativeRotationIndexFieldSpecified; - - private DateTime startDateTimeField; - - private StartDateTimeType startDateTimeTypeField; - - private bool startDateTimeTypeFieldSpecified; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum SlateStatus { + /// Indicates the Slate has been created and is eligible for + /// streaming. + /// + ACTIVE = 0, + /// Indicates the Slate has been archived. + /// + ARCHIVED = 1, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 2, + } - private DateTime endDateTimeField; - private string destinationUrlField; + /// Possible server side transcoding states. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum TranscodeStatus { + UNKNOWN = 0, + NOT_READY = 1, + COMPLETED = 2, + FAILED = 3, + NEEDS_TRANSCODE = 4, + IN_PROGRESS = 5, + } - private Size[] sizesField; - private LineItemCreativeAssociationStatus statusField; + /// Captures a page of LiveStreamEvent objects. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class LiveStreamEventPage { + private int totalResultSetSizeField; - private bool statusFieldSpecified; + private bool totalResultSetSizeFieldSpecified; - private LineItemCreativeAssociationStats statsField; + private int startIndexField; - private DateTime lastModifiedDateTimeField; + private bool startIndexFieldSpecified; - private string targetingNameField; + private LiveStreamEvent[] resultsField; - /// The ID of the LineItem to which the Creative should be associated. This attribute is required. + /// The size of the total result set to which this page belongs. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public long lineItemId { + public int totalResultSetSize { get { - return this.lineItemIdField; + return this.totalResultSetSizeField; } set { - this.lineItemIdField = value; - this.lineItemIdSpecified = true; + this.totalResultSetSizeField = value; + this.totalResultSetSizeSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool lineItemIdSpecified { + public bool totalResultSetSizeSpecified { get { - return this.lineItemIdFieldSpecified; + return this.totalResultSetSizeFieldSpecified; } set { - this.lineItemIdFieldSpecified = value; + this.totalResultSetSizeFieldSpecified = value; } } - /// The ID of the Creative being associated with a LineItem.

This attribute is required if this is an - /// association between a line item and a creative.
This attribute is ignored - /// if this is an association between a line item and a creative set.

If this - /// is an association between a line item and a creative, when retrieving the line - /// item creative association, the #creativeId will be the - /// creative's ID.
If this is an association between a line item and a - /// creative set, when retrieving the line item creative association, the #creativeId will be the ID of the CreativeSet#masterCreativeId master creative.

+ /// The absolute index in the total result set on which this page begins. /// [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public long creativeId { + public int startIndex { get { - return this.creativeIdField; + return this.startIndexField; } set { - this.creativeIdField = value; - this.creativeIdSpecified = true; + this.startIndexField = value; + this.startIndexSpecified = true; } } - /// true, if a value is specified for true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool creativeIdSpecified { + public bool startIndexSpecified { get { - return this.creativeIdFieldSpecified; + return this.startIndexFieldSpecified; } set { - this.creativeIdFieldSpecified = value; + this.startIndexFieldSpecified = value; } } - /// The ID of the CreativeSet being associated with a LineItem. This attribute is required if this is an - /// association between a line item and a creative set.

This field will be - /// null when retrieving associations between line items and creatives - /// not belonging to a set.

+ /// The collection of live stream events contained within this page. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public long creativeSetId { + [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] + public LiveStreamEvent[] results { get { - return this.creativeSetIdField; + return this.resultsField; } set { - this.creativeSetIdField = value; - this.creativeSetIdSpecified = true; + this.resultsField = value; } } + } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool creativeSetIdSpecified { - get { - return this.creativeSetIdFieldSpecified; - } - set { - this.creativeSetIdFieldSpecified = value; - } - } - /// The weight of the Creative. This value is only used if - /// the line item's creativeRotationType is set to CreativeRotationType#MANUAL. This - /// attribute is optional and defaults to 10. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public double manualCreativeRotationWeight { - get { - return this.manualCreativeRotationWeightField; - } - set { - this.manualCreativeRotationWeightField = value; - this.manualCreativeRotationWeightSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool manualCreativeRotationWeightSpecified { - get { - return this.manualCreativeRotationWeightFieldSpecified; - } - set { - this.manualCreativeRotationWeightFieldSpecified = value; - } - } - - /// The sequential rotation index of the Creative. This value - /// is used only if the associated line item's LineItem#creativeRotationType is set to - /// CreativeRotationType#SEQUENTIAL. This attribute is optional and - /// defaults to 1. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public int sequentialCreativeRotationIndex { - get { - return this.sequentialCreativeRotationIndexField; - } - set { - this.sequentialCreativeRotationIndexField = value; - this.sequentialCreativeRotationIndexSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool sequentialCreativeRotationIndexSpecified { - get { - return this.sequentialCreativeRotationIndexFieldSpecified; - } - set { - this.sequentialCreativeRotationIndexFieldSpecified = value; - } - } - - /// Overrides the value set for LineItem#startDateTime. This value is optional - /// and is only valid for Ad Manager 360 networks. If unset, the LineItem#startDateTime will be used. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 5)] - public DateTime startDateTime { - get { - return this.startDateTimeField; - } - set { - this.startDateTimeField = value; - } - } - - /// Specifies whether to start serving to the right away, in an hour, - /// etc. This attribute is optional and defaults to StartDateTimeType#USE_START_DATE_TIME. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 6)] - public StartDateTimeType startDateTimeType { - get { - return this.startDateTimeTypeField; - } - set { - this.startDateTimeTypeField = value; - this.startDateTimeTypeSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool startDateTimeTypeSpecified { - get { - return this.startDateTimeTypeFieldSpecified; - } - set { - this.startDateTimeTypeFieldSpecified = value; - } - } - - /// Overrides LineItem#endDateTime. This value is - /// optional and is only valid for Ad Manager 360 networks. If unset, the LineItem#endDateTime will be used. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 7)] - public DateTime endDateTime { - get { - return this.endDateTimeField; - } - set { - this.endDateTimeField = value; - } - } - - /// Overrides the value set for HasDestinationUrlCreative#destinationUrl. - /// This value is optional and is only valid for Ad Manager 360 networks. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 8)] - public string destinationUrl { - get { - return this.destinationUrlField; - } - set { - this.destinationUrlField = value; - } - } - - /// Overrides the value set for Creative#size, which - /// allows the creative to be served to ad units that would otherwise not be - /// compatible for its actual size. This value is optional. - /// - [System.Xml.Serialization.XmlElementAttribute("sizes", Order = 9)] - public Size[] sizes { - get { - return this.sizesField; - } - set { - this.sizesField = value; - } - } - - /// The status of the association. This attribute is read-only. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 10)] - public LineItemCreativeAssociationStatus status { - get { - return this.statusField; - } - set { - this.statusField = value; - this.statusSpecified = true; - } - } - - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool statusSpecified { - get { - return this.statusFieldSpecified; - } - set { - this.statusFieldSpecified = value; - } - } - - /// Contains trafficking statistics for the association. This attribute is readonly - /// and is populated by Google. This will be null in case there are no - /// statistics for the association yet. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 11)] - public LineItemCreativeAssociationStats stats { - get { - return this.statsField; - } - set { - this.statsField = value; - } - } - - /// The date and time this association was last modified. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 12)] - public DateTime lastModifiedDateTime { - get { - return this.lastModifiedDateTimeField; - } - set { - this.lastModifiedDateTimeField = value; - } - } - - /// Specifies CreativeTargeting for this line item - /// creative association.

This attribute is optional. It should match the - /// creative targeting specified on the corresponding CreativePlaceholder in the LineItem that is being associated with the Creative.

- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 13)] - public string targetingName { - get { - return this.targetingNameField; - } - set { - this.targetingNameField = value; - } - } - } - - - /// Describes the status of the association. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "LineItemCreativeAssociation.Status", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum LineItemCreativeAssociationStatus { - /// The association is active and the associated Creative can - /// be served. - /// - ACTIVE = 0, - /// The association is active but the associated Creative may - /// not be served, because its size is not targeted by the line item. - /// - NOT_SERVING = 1, - /// The association is inactive and the associated Creative - /// is ineligible for being served. - /// - INACTIVE = 2, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 4, - } - - - /// Lists all errors for executing operations on line item-to-creative associations - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class LineItemCreativeAssociationOperationError : ApiError { - private LineItemCreativeAssociationOperationErrorReason reasonField; - - private bool reasonFieldSpecified; - - /// The error reason represented by an enum. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public LineItemCreativeAssociationOperationErrorReason reason { - get { - return this.reasonField; - } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { - return this.reasonFieldSpecified; - } - set { - this.reasonFieldSpecified = value; - } - } - } - - - /// The reasons for the target error. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "LineItemCreativeAssociationOperationError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum LineItemCreativeAssociationOperationErrorReason { - /// The operation is not allowed due to permissions - /// - NOT_ALLOWED = 0, - /// The operation is not applicable to the current state - /// - NOT_APPLICABLE = 1, - /// Cannot activate an invalid creative - /// - CANNOT_ACTIVATE_INVALID_CREATIVE = 2, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 3, - } - - - /// Errors associated with generation of creative preview URIs. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class CreativePreviewError : ApiError { - private CreativePreviewErrorReason reasonField; - - private bool reasonFieldSpecified; - - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public CreativePreviewErrorReason reason { - get { - return this.reasonField; - } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { - return this.reasonFieldSpecified; - } - set { - this.reasonFieldSpecified = value; - } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CreativePreviewError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum CreativePreviewErrorReason { - /// The creative cannot be previewed on this page. - /// - CANNOT_GENERATE_PREVIEW_URL = 0, - /// Preview URLs for native creatives must be retrieved with LineItemCreativeAssociationService#getPreviewUrlsForNativeStyles. - /// - CANNOT_GENERATE_PREVIEW_URL_FOR_NATIVE_CREATIVES = 2, - /// Third party creatives must have an html snippet set in order to obtain a preview - /// URL. - /// - HTML_SNIPPET_REQUIRED_FOR_THIRD_PARTY_CREATIVE = 3, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 1, - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", ConfigurationName = "Google.Api.Ads.AdManager.v202311.LineItemCreativeAssociationServiceInterface")] - public interface LineItemCreativeAssociationServiceInterface - { - // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Wrappers.LineItemCreativeAssociationService.createLineItemCreativeAssociationsResponse createLineItemCreativeAssociations(Wrappers.LineItemCreativeAssociationService.createLineItemCreativeAssociationsRequest request); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task createLineItemCreativeAssociationsAsync(Wrappers.LineItemCreativeAssociationService.createLineItemCreativeAssociationsRequest request); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v202311.LineItemCreativeAssociationPage getLineItemCreativeAssociationsByStatement(Google.Api.Ads.AdManager.v202311.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getLineItemCreativeAssociationsByStatementAsync(Google.Api.Ads.AdManager.v202311.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - string getPreviewUrl(long lineItemId, long creativeId, string siteUrl); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getPreviewUrlAsync(long lineItemId, long creativeId, string siteUrl); - - // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Wrappers.LineItemCreativeAssociationService.getPreviewUrlsForNativeStylesResponse getPreviewUrlsForNativeStyles(Wrappers.LineItemCreativeAssociationService.getPreviewUrlsForNativeStylesRequest request); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task getPreviewUrlsForNativeStylesAsync(Wrappers.LineItemCreativeAssociationService.getPreviewUrlsForNativeStylesRequest request); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v202311.UpdateResult performLineItemCreativeAssociationAction(Google.Api.Ads.AdManager.v202311.LineItemCreativeAssociationAction lineItemCreativeAssociationAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task performLineItemCreativeAssociationActionAsync(Google.Api.Ads.AdManager.v202311.LineItemCreativeAssociationAction lineItemCreativeAssociationAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v202311.UpdateResult pushCreativeToDevices(Google.Api.Ads.AdManager.v202311.Statement filterStatement, Google.Api.Ads.AdManager.v202311.CreativePushOptions options); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task pushCreativeToDevicesAsync(Google.Api.Ads.AdManager.v202311.Statement filterStatement, Google.Api.Ads.AdManager.v202311.CreativePushOptions options); - - // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Wrappers.LineItemCreativeAssociationService.updateLineItemCreativeAssociationsResponse updateLineItemCreativeAssociations(Wrappers.LineItemCreativeAssociationService.updateLineItemCreativeAssociationsRequest request); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task updateLineItemCreativeAssociationsAsync(Wrappers.LineItemCreativeAssociationService.updateLineItemCreativeAssociationsRequest request); - } - - - /// Captures a page of LineItemCreativeAssociation objects. + /// Captures a page of Slate objects. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class LineItemCreativeAssociationPage { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class SlatePage { private int totalResultSetSizeField; private bool totalResultSetSizeFieldSpecified; @@ -32292,7 +33476,7 @@ public partial class LineItemCreativeAssociationPage { private bool startIndexFieldSpecified; - private LineItemCreativeAssociation[] resultsField; + private Slate[] resultsField; /// The size of the total result set to which this page belongs. /// @@ -32346,10 +33530,10 @@ public bool startIndexSpecified { } } - /// The collection of line item creative associations contained within this page. + /// The collection of live stream events contained within this page. /// [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] - public LineItemCreativeAssociation[] results { + public Slate[] results { get { return this.resultsField; } @@ -32360,432 +33544,363 @@ public LineItemCreativeAssociation[] results { } - /// Represents the NativeStyle of a Creative and its corresponding preview URL. + /// Represents the actions that can be performed on LiveStreamEvent objects. /// + [System.Xml.Serialization.XmlIncludeAttribute(typeof(RefreshLiveStreamEventMasterPlaylists))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(PauseLiveStreamEvents))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(PauseLiveStreamEventAds))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ArchiveLiveStreamEvents))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ActivateLiveStreamEvents))] [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class CreativeNativeStylePreview { - private long nativeStyleIdField; - - private bool nativeStyleIdFieldSpecified; - - private string previewUrlField; - - /// The id of the NativeStyle. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public long nativeStyleId { - get { - return this.nativeStyleIdField; - } - set { - this.nativeStyleIdField = value; - this.nativeStyleIdSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool nativeStyleIdSpecified { - get { - return this.nativeStyleIdFieldSpecified; - } - set { - this.nativeStyleIdFieldSpecified = value; - } - } - - /// The URL for previewing this creative using this particular NativeStyle - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public string previewUrl { - get { - return this.previewUrlField; - } - set { - this.previewUrlField = value; - } - } + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public abstract partial class LiveStreamEventAction { } - /// Represents the actions that can be performed on LineItemCreativeAssociation objects. + /// The action used for refreshing the master playlists of LiveStreamEvent objects.

This action will only get + /// applied to live streams with a refresh type of RefreshType#MANUAL.

///
- [System.Xml.Serialization.XmlIncludeAttribute(typeof(DeleteLineItemCreativeAssociations))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(DeactivateLineItemCreativeAssociations))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ActivateLineItemCreativeAssociations))] [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public abstract partial class LineItemCreativeAssociationAction { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class RefreshLiveStreamEventMasterPlaylists : LiveStreamEventAction { } - /// The action used for deleting LineItemCreativeAssociation objects. + /// The action used for pausing LiveStreamEvent + /// objects. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class DeleteLineItemCreativeAssociations : LineItemCreativeAssociationAction { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class PauseLiveStreamEvents : LiveStreamEventAction { } - /// The action used for deactivating LineItemCreativeAssociation objects. + /// The action used for pausing ads for LiveStreamEvent objects. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class DeactivateLineItemCreativeAssociations : LineItemCreativeAssociationAction { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class PauseLiveStreamEventAds : LiveStreamEventAction { } - /// The action used for activating LineItemCreativeAssociation objects. + /// The action used for archiving LiveStreamEvent + /// objects. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ActivateLineItemCreativeAssociations : LineItemCreativeAssociationAction { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ArchiveLiveStreamEvents : LiveStreamEventAction { } - /// Data needed to push a creative to a mobile device. + /// The action used for activating LiveStreamEvent + /// objects. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class CreativePushOptions { - private long lineItemIdField; - - private bool lineItemIdFieldSpecified; - - private long creativeIdField; - - private bool creativeIdFieldSpecified; - - private long nativeStyleIdField; - - private bool nativeStyleIdFieldSpecified; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ActivateLiveStreamEvents : LiveStreamEventAction { + } - /// The ID of the LineItem to preview.

This field is required.

- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public long lineItemId { - get { - return this.lineItemIdField; - } - set { - this.lineItemIdField = value; - this.lineItemIdSpecified = true; - } - } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool lineItemIdSpecified { - get { - return this.lineItemIdFieldSpecified; - } - set { - this.lineItemIdFieldSpecified = value; - } - } + /// Represents the actions that can be performed on slates. + /// + [System.Xml.Serialization.XmlIncludeAttribute(typeof(UnarchiveSlates))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ArchiveSlates))] + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public abstract partial class SlateAction { + } - /// The ID of the Creative to preview.

This field is required.

- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public long creativeId { - get { - return this.creativeIdField; - } - set { - this.creativeIdField = value; - this.creativeIdSpecified = true; - } - } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool creativeIdSpecified { - get { - return this.creativeIdFieldSpecified; - } - set { - this.creativeIdFieldSpecified = value; - } - } + /// The action used for unarchiving slates. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class UnarchiveSlates : SlateAction { + } - /// The ID of the native style to preview the creative with.

This field is - /// optional but the referenced object must exist.

- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public long nativeStyleId { - get { - return this.nativeStyleIdField; - } - set { - this.nativeStyleIdField = value; - this.nativeStyleIdSpecified = true; - } - } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool nativeStyleIdSpecified { - get { - return this.nativeStyleIdFieldSpecified; - } - set { - this.nativeStyleIdFieldSpecified = value; - } - } + /// The action used for archiving slates. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ArchiveSlates : SlateAction { } [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public interface LineItemCreativeAssociationServiceInterfaceChannel : Google.Api.Ads.AdManager.v202311.LineItemCreativeAssociationServiceInterface, System.ServiceModel.IClientChannel + public interface LiveStreamEventServiceInterfaceChannel : Google.Api.Ads.AdManager.v202411.LiveStreamEventServiceInterface, System.ServiceModel.IClientChannel { } - /// Provides operations for creating, updating and retrieving LineItemCreativeAssociation objects.

A - /// line item creative association (LICA) associates a Creative with a LineItem. When a line - /// item is selected to serve, the LICAs specify which creatives can appear for the - /// ad units that are targeted by the line item. In order to be associated with a - /// line item, the creative must have a size that exists within the attribute LineItem#creativePlaceholders.

- ///

Each LICA has a start and end date and time that defines when the creative - /// should be displayed.

To read more about associating creatives with line - /// items, see this Ad - /// Manager Help Center article.

+ /// Provides methods for creating, updating and retrieving LiveStreamEvent objects.

This feature is only + /// available for Ad Manager 360 networks. Publishers will need to be activated + /// through the Video > Live streams tab in the Ad Manager UI. For access, + /// apply through your account manager.

///
[System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public partial class LineItemCreativeAssociationService : AdManagerSoapClient, ILineItemCreativeAssociationService { - /// Creates a new instance of the class. - public LineItemCreativeAssociationService() { + public partial class LiveStreamEventService : AdManagerSoapClient, ILiveStreamEventService { + /// Creates a new instance of the + /// class. + public LiveStreamEventService() { } - /// Creates a new instance of the class. - public LineItemCreativeAssociationService(string endpointConfigurationName) + /// Creates a new instance of the + /// class. + public LiveStreamEventService(string endpointConfigurationName) : base(endpointConfigurationName) { } - /// Creates a new instance of the class. - public LineItemCreativeAssociationService(string endpointConfigurationName, string remoteAddress) + /// Creates a new instance of the + /// class. + public LiveStreamEventService(string endpointConfigurationName, string remoteAddress) : base(endpointConfigurationName, remoteAddress) { } - /// Creates a new instance of the class. - public LineItemCreativeAssociationService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) + /// Creates a new instance of the + /// class. + public LiveStreamEventService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) : base(endpointConfigurationName, remoteAddress) { } - /// Creates a new instance of the class. - public LineItemCreativeAssociationService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) + /// Creates a new instance of the + /// class. + public LiveStreamEventService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) : base(binding, remoteAddress) { } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.LineItemCreativeAssociationService.createLineItemCreativeAssociationsResponse Google.Api.Ads.AdManager.v202311.LineItemCreativeAssociationServiceInterface.createLineItemCreativeAssociations(Wrappers.LineItemCreativeAssociationService.createLineItemCreativeAssociationsRequest request) { - return base.Channel.createLineItemCreativeAssociations(request); + Wrappers.LiveStreamEventService.createLiveStreamEventsResponse Google.Api.Ads.AdManager.v202411.LiveStreamEventServiceInterface.createLiveStreamEvents(Wrappers.LiveStreamEventService.createLiveStreamEventsRequest request) { + return base.Channel.createLiveStreamEvents(request); } - /// Creates new LineItemCreativeAssociation objects + /// Creates new LiveStreamEvent objects.

The + /// following fields are required:

///
- public virtual Google.Api.Ads.AdManager.v202311.LineItemCreativeAssociation[] createLineItemCreativeAssociations(Google.Api.Ads.AdManager.v202311.LineItemCreativeAssociation[] lineItemCreativeAssociations) { - Wrappers.LineItemCreativeAssociationService.createLineItemCreativeAssociationsRequest inValue = new Wrappers.LineItemCreativeAssociationService.createLineItemCreativeAssociationsRequest(); - inValue.lineItemCreativeAssociations = lineItemCreativeAssociations; - Wrappers.LineItemCreativeAssociationService.createLineItemCreativeAssociationsResponse retVal = ((Google.Api.Ads.AdManager.v202311.LineItemCreativeAssociationServiceInterface)(this)).createLineItemCreativeAssociations(inValue); + public virtual Google.Api.Ads.AdManager.v202411.LiveStreamEvent[] createLiveStreamEvents(Google.Api.Ads.AdManager.v202411.LiveStreamEvent[] liveStreamEvents) { + Wrappers.LiveStreamEventService.createLiveStreamEventsRequest inValue = new Wrappers.LiveStreamEventService.createLiveStreamEventsRequest(); + inValue.liveStreamEvents = liveStreamEvents; + Wrappers.LiveStreamEventService.createLiveStreamEventsResponse retVal = ((Google.Api.Ads.AdManager.v202411.LiveStreamEventServiceInterface)(this)).createLiveStreamEvents(inValue); return retVal.rval; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202311.LineItemCreativeAssociationServiceInterface.createLineItemCreativeAssociationsAsync(Wrappers.LineItemCreativeAssociationService.createLineItemCreativeAssociationsRequest request) { - return base.Channel.createLineItemCreativeAssociationsAsync(request); + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202411.LiveStreamEventServiceInterface.createLiveStreamEventsAsync(Wrappers.LiveStreamEventService.createLiveStreamEventsRequest request) { + return base.Channel.createLiveStreamEventsAsync(request); } - public virtual System.Threading.Tasks.Task createLineItemCreativeAssociationsAsync(Google.Api.Ads.AdManager.v202311.LineItemCreativeAssociation[] lineItemCreativeAssociations) { - Wrappers.LineItemCreativeAssociationService.createLineItemCreativeAssociationsRequest inValue = new Wrappers.LineItemCreativeAssociationService.createLineItemCreativeAssociationsRequest(); - inValue.lineItemCreativeAssociations = lineItemCreativeAssociations; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202311.LineItemCreativeAssociationServiceInterface)(this)).createLineItemCreativeAssociationsAsync(inValue)).Result.rval); + public virtual System.Threading.Tasks.Task createLiveStreamEventsAsync(Google.Api.Ads.AdManager.v202411.LiveStreamEvent[] liveStreamEvents) { + Wrappers.LiveStreamEventService.createLiveStreamEventsRequest inValue = new Wrappers.LiveStreamEventService.createLiveStreamEventsRequest(); + inValue.liveStreamEvents = liveStreamEvents; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202411.LiveStreamEventServiceInterface)(this)).createLiveStreamEventsAsync(inValue)).Result.rval); } - /// Gets a LineItemCreativeAssociationPage of LineItemCreativeAssociation objects that - /// satisfy the given Statement#query. The following - /// fields are supported for filtering: - /// - /// - /// - /// - /// - /// - ///
PQL - /// Property Object Property
creativeId LineItemCreativeAssociation#creativeId
manualCreativeRotationWeight LineItemCreativeAssociation#manualCreativeRotationWeight
destinationUrl LineItemCreativeAssociation#destinationUrl
lineItemId LineItemCreativeAssociation#lineItemId
status LineItemCreativeAssociation#status
lastModifiedDateTime LineItemCreativeAssociation#lastModifiedDateTime
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + Wrappers.LiveStreamEventService.createSlatesResponse Google.Api.Ads.AdManager.v202411.LiveStreamEventServiceInterface.createSlates(Wrappers.LiveStreamEventService.createSlatesRequest request) { + return base.Channel.createSlates(request); + } + + /// Create new slates.

A slate creative is served as backup content in a live + /// stream event when no other creatives are eligible to be served.

///
- public virtual Google.Api.Ads.AdManager.v202311.LineItemCreativeAssociationPage getLineItemCreativeAssociationsByStatement(Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.getLineItemCreativeAssociationsByStatement(filterStatement); + public virtual Google.Api.Ads.AdManager.v202411.Slate[] createSlates(Google.Api.Ads.AdManager.v202411.Slate[] slates) { + Wrappers.LiveStreamEventService.createSlatesRequest inValue = new Wrappers.LiveStreamEventService.createSlatesRequest(); + inValue.slates = slates; + Wrappers.LiveStreamEventService.createSlatesResponse retVal = ((Google.Api.Ads.AdManager.v202411.LiveStreamEventServiceInterface)(this)).createSlates(inValue); + return retVal.rval; } - public virtual System.Threading.Tasks.Task getLineItemCreativeAssociationsByStatementAsync(Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.getLineItemCreativeAssociationsByStatementAsync(filterStatement); + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202411.LiveStreamEventServiceInterface.createSlatesAsync(Wrappers.LiveStreamEventService.createSlatesRequest request) { + return base.Channel.createSlatesAsync(request); } - /// Returns an insite preview URL that references the specified site URL with the - /// specified creative from the association served to it. For Creative Set - /// previewing you may specify the master creative Id. - /// - public virtual string getPreviewUrl(long lineItemId, long creativeId, string siteUrl) { - return base.Channel.getPreviewUrl(lineItemId, creativeId, siteUrl); + public virtual System.Threading.Tasks.Task createSlatesAsync(Google.Api.Ads.AdManager.v202411.Slate[] slates) { + Wrappers.LiveStreamEventService.createSlatesRequest inValue = new Wrappers.LiveStreamEventService.createSlatesRequest(); + inValue.slates = slates; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202411.LiveStreamEventServiceInterface)(this)).createSlatesAsync(inValue)).Result.rval); } - public virtual System.Threading.Tasks.Task getPreviewUrlAsync(long lineItemId, long creativeId, string siteUrl) { - return base.Channel.getPreviewUrlAsync(lineItemId, creativeId, siteUrl); + /// Gets a LiveStreamEventPage of LiveStreamEvent objects that satisfy the given Statement#query. The following fields are supported + /// for filtering: + /// + /// + /// + /// + /// + /// + /// + /// + ///
PQL Property Object Property
id LiveStreamEvent#id
slateCreativeId LiveStreamEvent#slateCreativeId
assetKey LiveStreamEvent#assetKey
streamCreateDaiAuthenticationKeyIds LiveStreamEvent#streamCreateDaiAuthenticationKeyIds
dynamicAdInsertionType LiveStreamEvent#dynamicAdInsertionType
streamingFormat LiveStreamEvent#streamingFormat
customAssetKey LiveStreamEvent#customAssetKey
daiEncodingProfileIds LiveStreamEvent#daiEncodingProfileIds
segmentUrlAuthenticationKeyIds LiveStreamEvent#segmentUrlAuthenticationKeyIds
+ ///
+ public virtual Google.Api.Ads.AdManager.v202411.LiveStreamEventPage getLiveStreamEventsByStatement(Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.getLiveStreamEventsByStatement(filterStatement); } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.LineItemCreativeAssociationService.getPreviewUrlsForNativeStylesResponse Google.Api.Ads.AdManager.v202311.LineItemCreativeAssociationServiceInterface.getPreviewUrlsForNativeStyles(Wrappers.LineItemCreativeAssociationService.getPreviewUrlsForNativeStylesRequest request) { - return base.Channel.getPreviewUrlsForNativeStyles(request); + public virtual System.Threading.Tasks.Task getLiveStreamEventsByStatementAsync(Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.getLiveStreamEventsByStatementAsync(filterStatement); } - /// Returns a list of URLs that reference the specified site URL with the specified - /// creative from the association served to it. For Creative Set previewing you may - /// specify the master creative Id. Each URL corresponds to one available native - /// style for previewing the specified creative. + /// Gets a SlatePage of Slate objects + /// that satisfy the given Statement#query. The following fields are + /// supported for filtering: + /// + ///
PQL Property Object Property
id Slate#id
name Slate#name
lastModifiedDateTime Slate#lastModifiedDateTime
///
- public virtual Google.Api.Ads.AdManager.v202311.CreativeNativeStylePreview[] getPreviewUrlsForNativeStyles(long lineItemId, long creativeId, string siteUrl) { - Wrappers.LineItemCreativeAssociationService.getPreviewUrlsForNativeStylesRequest inValue = new Wrappers.LineItemCreativeAssociationService.getPreviewUrlsForNativeStylesRequest(); - inValue.lineItemId = lineItemId; - inValue.creativeId = creativeId; - inValue.siteUrl = siteUrl; - Wrappers.LineItemCreativeAssociationService.getPreviewUrlsForNativeStylesResponse retVal = ((Google.Api.Ads.AdManager.v202311.LineItemCreativeAssociationServiceInterface)(this)).getPreviewUrlsForNativeStyles(inValue); - return retVal.rval; + public virtual Google.Api.Ads.AdManager.v202411.SlatePage getSlatesByStatement(Google.Api.Ads.AdManager.v202411.Statement statement) { + return base.Channel.getSlatesByStatement(statement); } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202311.LineItemCreativeAssociationServiceInterface.getPreviewUrlsForNativeStylesAsync(Wrappers.LineItemCreativeAssociationService.getPreviewUrlsForNativeStylesRequest request) { - return base.Channel.getPreviewUrlsForNativeStylesAsync(request); + public virtual System.Threading.Tasks.Task getSlatesByStatementAsync(Google.Api.Ads.AdManager.v202411.Statement statement) { + return base.Channel.getSlatesByStatementAsync(statement); } - public virtual System.Threading.Tasks.Task getPreviewUrlsForNativeStylesAsync(long lineItemId, long creativeId, string siteUrl) { - Wrappers.LineItemCreativeAssociationService.getPreviewUrlsForNativeStylesRequest inValue = new Wrappers.LineItemCreativeAssociationService.getPreviewUrlsForNativeStylesRequest(); - inValue.lineItemId = lineItemId; - inValue.creativeId = creativeId; - inValue.siteUrl = siteUrl; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202311.LineItemCreativeAssociationServiceInterface)(this)).getPreviewUrlsForNativeStylesAsync(inValue)).Result.rval); + /// Performs actions on LiveStreamEvent objects that + /// match the given Statement#query. + /// + public virtual Google.Api.Ads.AdManager.v202411.UpdateResult performLiveStreamEventAction(Google.Api.Ads.AdManager.v202411.LiveStreamEventAction liveStreamEventAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.performLiveStreamEventAction(liveStreamEventAction, filterStatement); } - /// Performs actions on LineItemCreativeAssociation objects that - /// match the given Statement#query. + public virtual System.Threading.Tasks.Task performLiveStreamEventActionAsync(Google.Api.Ads.AdManager.v202411.LiveStreamEventAction liveStreamEventAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.performLiveStreamEventActionAsync(liveStreamEventAction, filterStatement); + } + + /// Performs actions on slates that match the given Statement. /// - public virtual Google.Api.Ads.AdManager.v202311.UpdateResult performLineItemCreativeAssociationAction(Google.Api.Ads.AdManager.v202311.LineItemCreativeAssociationAction lineItemCreativeAssociationAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.performLineItemCreativeAssociationAction(lineItemCreativeAssociationAction, filterStatement); + public virtual Google.Api.Ads.AdManager.v202411.UpdateResult performSlateAction(Google.Api.Ads.AdManager.v202411.SlateAction slateAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.performSlateAction(slateAction, filterStatement); } - public virtual System.Threading.Tasks.Task performLineItemCreativeAssociationActionAsync(Google.Api.Ads.AdManager.v202311.LineItemCreativeAssociationAction lineItemCreativeAssociationAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.performLineItemCreativeAssociationActionAsync(lineItemCreativeAssociationAction, filterStatement); + public virtual System.Threading.Tasks.Task performSlateActionAsync(Google.Api.Ads.AdManager.v202411.SlateAction slateAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.performSlateActionAsync(slateAction, filterStatement); + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + Wrappers.LiveStreamEventService.updateLiveStreamEventsResponse Google.Api.Ads.AdManager.v202411.LiveStreamEventServiceInterface.updateLiveStreamEvents(Wrappers.LiveStreamEventService.updateLiveStreamEventsRequest request) { + return base.Channel.updateLiveStreamEvents(request); } - /// Pushes a creative to devices that that satisfy the given Statement#query. * + /// Updates the specified LiveStreamEvent objects. /// - public virtual Google.Api.Ads.AdManager.v202311.UpdateResult pushCreativeToDevices(Google.Api.Ads.AdManager.v202311.Statement filterStatement, Google.Api.Ads.AdManager.v202311.CreativePushOptions options) { - return base.Channel.pushCreativeToDevices(filterStatement, options); + public virtual Google.Api.Ads.AdManager.v202411.LiveStreamEvent[] updateLiveStreamEvents(Google.Api.Ads.AdManager.v202411.LiveStreamEvent[] liveStreamEvents) { + Wrappers.LiveStreamEventService.updateLiveStreamEventsRequest inValue = new Wrappers.LiveStreamEventService.updateLiveStreamEventsRequest(); + inValue.liveStreamEvents = liveStreamEvents; + Wrappers.LiveStreamEventService.updateLiveStreamEventsResponse retVal = ((Google.Api.Ads.AdManager.v202411.LiveStreamEventServiceInterface)(this)).updateLiveStreamEvents(inValue); + return retVal.rval; + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202411.LiveStreamEventServiceInterface.updateLiveStreamEventsAsync(Wrappers.LiveStreamEventService.updateLiveStreamEventsRequest request) { + return base.Channel.updateLiveStreamEventsAsync(request); } - public virtual System.Threading.Tasks.Task pushCreativeToDevicesAsync(Google.Api.Ads.AdManager.v202311.Statement filterStatement, Google.Api.Ads.AdManager.v202311.CreativePushOptions options) { - return base.Channel.pushCreativeToDevicesAsync(filterStatement, options); + public virtual System.Threading.Tasks.Task updateLiveStreamEventsAsync(Google.Api.Ads.AdManager.v202411.LiveStreamEvent[] liveStreamEvents) { + Wrappers.LiveStreamEventService.updateLiveStreamEventsRequest inValue = new Wrappers.LiveStreamEventService.updateLiveStreamEventsRequest(); + inValue.liveStreamEvents = liveStreamEvents; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202411.LiveStreamEventServiceInterface)(this)).updateLiveStreamEventsAsync(inValue)).Result.rval); } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.LineItemCreativeAssociationService.updateLineItemCreativeAssociationsResponse Google.Api.Ads.AdManager.v202311.LineItemCreativeAssociationServiceInterface.updateLineItemCreativeAssociations(Wrappers.LineItemCreativeAssociationService.updateLineItemCreativeAssociationsRequest request) { - return base.Channel.updateLineItemCreativeAssociations(request); + Wrappers.LiveStreamEventService.updateSlatesResponse Google.Api.Ads.AdManager.v202411.LiveStreamEventServiceInterface.updateSlates(Wrappers.LiveStreamEventService.updateSlatesRequest request) { + return base.Channel.updateSlates(request); } - /// Updates the specified LineItemCreativeAssociation objects + /// Update existing slates.

Only the slateName is editable.

///
- public virtual Google.Api.Ads.AdManager.v202311.LineItemCreativeAssociation[] updateLineItemCreativeAssociations(Google.Api.Ads.AdManager.v202311.LineItemCreativeAssociation[] lineItemCreativeAssociations) { - Wrappers.LineItemCreativeAssociationService.updateLineItemCreativeAssociationsRequest inValue = new Wrappers.LineItemCreativeAssociationService.updateLineItemCreativeAssociationsRequest(); - inValue.lineItemCreativeAssociations = lineItemCreativeAssociations; - Wrappers.LineItemCreativeAssociationService.updateLineItemCreativeAssociationsResponse retVal = ((Google.Api.Ads.AdManager.v202311.LineItemCreativeAssociationServiceInterface)(this)).updateLineItemCreativeAssociations(inValue); + public virtual Google.Api.Ads.AdManager.v202411.Slate[] updateSlates(Google.Api.Ads.AdManager.v202411.Slate[] slates) { + Wrappers.LiveStreamEventService.updateSlatesRequest inValue = new Wrappers.LiveStreamEventService.updateSlatesRequest(); + inValue.slates = slates; + Wrappers.LiveStreamEventService.updateSlatesResponse retVal = ((Google.Api.Ads.AdManager.v202411.LiveStreamEventServiceInterface)(this)).updateSlates(inValue); return retVal.rval; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202311.LineItemCreativeAssociationServiceInterface.updateLineItemCreativeAssociationsAsync(Wrappers.LineItemCreativeAssociationService.updateLineItemCreativeAssociationsRequest request) { - return base.Channel.updateLineItemCreativeAssociationsAsync(request); + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202411.LiveStreamEventServiceInterface.updateSlatesAsync(Wrappers.LiveStreamEventService.updateSlatesRequest request) { + return base.Channel.updateSlatesAsync(request); } - public virtual System.Threading.Tasks.Task updateLineItemCreativeAssociationsAsync(Google.Api.Ads.AdManager.v202311.LineItemCreativeAssociation[] lineItemCreativeAssociations) { - Wrappers.LineItemCreativeAssociationService.updateLineItemCreativeAssociationsRequest inValue = new Wrappers.LineItemCreativeAssociationService.updateLineItemCreativeAssociationsRequest(); - inValue.lineItemCreativeAssociations = lineItemCreativeAssociations; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202311.LineItemCreativeAssociationServiceInterface)(this)).updateLineItemCreativeAssociationsAsync(inValue)).Result.rval); + public virtual System.Threading.Tasks.Task updateSlatesAsync(Google.Api.Ads.AdManager.v202411.Slate[] slates) { + Wrappers.LiveStreamEventService.updateSlatesRequest inValue = new Wrappers.LiveStreamEventService.updateSlatesRequest(); + inValue.slates = slates; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202411.LiveStreamEventServiceInterface)(this)).updateSlatesAsync(inValue)).Result.rval); } } - namespace Wrappers.ActivityService + namespace Wrappers.MobileApplicationService { [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "createActivities", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class createActivitiesRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("activities")] - public Google.Api.Ads.AdManager.v202311.Activity[] activities; + [System.ServiceModel.MessageContractAttribute(WrapperName = "createMobileApplications", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class createMobileApplicationsRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("mobileApplications")] + public Google.Api.Ads.AdManager.v202411.MobileApplication[] mobileApplications; - /// Creates a new instance of the - /// class. - public createActivitiesRequest() { + /// Creates a new instance of the class. + public createMobileApplicationsRequest() { } - /// Creates a new instance of the - /// class. - public createActivitiesRequest(Google.Api.Ads.AdManager.v202311.Activity[] activities) { - this.activities = activities; + /// Creates a new instance of the class. + public createMobileApplicationsRequest(Google.Api.Ads.AdManager.v202411.MobileApplication[] mobileApplications) { + this.mobileApplications = mobileApplications; } } @@ -32793,20 +33908,20 @@ public createActivitiesRequest(Google.Api.Ads.AdManager.v202311.Activity[] activ [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "createActivitiesResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class createActivitiesResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "createMobileApplicationsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class createMobileApplicationsResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v202311.Activity[] rval; + public Google.Api.Ads.AdManager.v202411.MobileApplication[] rval; - /// Creates a new instance of the - /// class. - public createActivitiesResponse() { + /// Creates a new instance of the class. + public createMobileApplicationsResponse() { } - /// Creates a new instance of the - /// class. - public createActivitiesResponse(Google.Api.Ads.AdManager.v202311.Activity[] rval) { + /// Creates a new instance of the class. + public createMobileApplicationsResponse(Google.Api.Ads.AdManager.v202411.MobileApplication[] rval) { this.rval = rval; } } @@ -32815,21 +33930,21 @@ public createActivitiesResponse(Google.Api.Ads.AdManager.v202311.Activity[] rval [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "updateActivities", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class updateActivitiesRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("activities")] - public Google.Api.Ads.AdManager.v202311.Activity[] activities; + [System.ServiceModel.MessageContractAttribute(WrapperName = "updateMobileApplications", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class updateMobileApplicationsRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("mobileApplications")] + public Google.Api.Ads.AdManager.v202411.MobileApplication[] mobileApplications; - /// Creates a new instance of the - /// class. - public updateActivitiesRequest() { + /// Creates a new instance of the class. + public updateMobileApplicationsRequest() { } - /// Creates a new instance of the - /// class. - public updateActivitiesRequest(Google.Api.Ads.AdManager.v202311.Activity[] activities) { - this.activities = activities; + /// Creates a new instance of the class. + public updateMobileApplicationsRequest(Google.Api.Ads.AdManager.v202411.MobileApplication[] mobileApplications) { + this.mobileApplications = mobileApplications; } } @@ -32837,60 +33952,73 @@ public updateActivitiesRequest(Google.Api.Ads.AdManager.v202311.Activity[] activ [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "updateActivitiesResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class updateActivitiesResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "updateMobileApplicationsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class updateMobileApplicationsResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v202311.Activity[] rval; + public Google.Api.Ads.AdManager.v202411.MobileApplication[] rval; - /// Creates a new instance of the - /// class. - public updateActivitiesResponse() { + /// Creates a new instance of the class. + public updateMobileApplicationsResponse() { } - /// Creates a new instance of the - /// class. - public updateActivitiesResponse(Google.Api.Ads.AdManager.v202311.Activity[] rval) { + /// Creates a new instance of the class. + public updateMobileApplicationsResponse(Google.Api.Ads.AdManager.v202411.MobileApplication[] rval) { this.rval = rval; } } } - /// An activity is a specific user action that an advertiser wants to track, such as - /// the completion of a purchase or a visit to a webpage. You create and manage - /// activities in Ad Manager. When a user performs the action after seeing an - /// advertiser's ad, that's a conversion.

For example, you set up an activity in - /// Ad Manager to track how many users visit an advertiser's promotional website - /// after viewing or clicking on an ad. When a user views an ad, then visits the - /// page, that's one conversion.

+ /// A mobile application that has been added to or "claimed" by the network to be + /// used for targeting purposes. These mobile apps can come from various app stores. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class Activity { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class MobileApplication { private long idField; private bool idFieldSpecified; - private long activityGroupIdField; + private long applicationIdField; + + private bool applicationIdFieldSpecified; - private bool activityGroupIdFieldSpecified; + private string displayNameField; - private string nameField; + private string appStoreIdField; - private string expectedURLField; + private MobileApplicationStore[] appStoresField; - private ActivityStatus statusField; + private bool isArchivedField; - private bool statusFieldSpecified; + private bool isArchivedFieldSpecified; - private ActivityType typeField; + private string appStoreNameField; - private bool typeFieldSpecified; + private string applicationCodeField; - /// The unique ID of the Activity. This value is readonly and is - /// assigned by Google. + private string developerNameField; + + private MobileApplicationPlatform platformField; + + private bool platformFieldSpecified; + + private bool isFreeField; + + private bool isFreeFieldSpecified; + + private string downloadUrlField; + + private MobileApplicationApprovalStatus approvalStatusField; + + private bool approvalStatusFieldSpecified; + + /// Uniquely identifies the mobile application. This attribute is read-only and is + /// assigned by Google when a mobile application is claimed. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] public long id { @@ -32916,560 +34044,538 @@ public bool idSpecified { } } - /// The ID of the ActivityGroup that this Activity belongs to. + /// Uniquely identifies the mobile application. This attribute is read-only and is + /// assigned by Google when a mobile application is claimed. The #id field is being deprecated in favor of this new ID space. /// [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public long activityGroupId { + public long applicationId { get { - return this.activityGroupIdField; + return this.applicationIdField; } set { - this.activityGroupIdField = value; - this.activityGroupIdSpecified = true; + this.applicationIdField = value; + this.applicationIdSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="applicationId" />, false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool activityGroupIdSpecified { + public bool applicationIdSpecified { get { - return this.activityGroupIdFieldSpecified; + return this.applicationIdFieldSpecified; } set { - this.activityGroupIdFieldSpecified = value; + this.applicationIdFieldSpecified = value; } } - /// The name of the Activity. This attribute is required and has a + /// The display name of the mobile application. This attribute is required and has a /// maximum length of 255 characters. /// [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public string name { + public string displayName { get { - return this.nameField; + return this.displayNameField; } set { - this.nameField = value; + this.displayNameField = value; } } - /// The URL of the webpage where the tags from this activity will be placed. This - /// attribute is optional. + /// The app store ID of the app to claim. This attribute is required for creation + /// and then is read-only. /// [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public string expectedURL { + public string appStoreId { get { - return this.expectedURLField; + return this.appStoreIdField; } set { - this.expectedURLField = value; + this.appStoreIdField = value; } } - /// The status of this activity. This attribute is readonly. + /// The app stores the mobile application belongs to. This attribute is required for + /// creation and is mutable to allow for third party app store linking. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public ActivityStatus status { + [System.Xml.Serialization.XmlElementAttribute("appStores", Order = 4)] + public MobileApplicationStore[] appStores { get { - return this.statusField; + return this.appStoresField; } set { - this.statusField = value; - this.statusSpecified = true; + this.appStoresField = value; } } - /// true, if a value is specified for , - /// false otherwise. + /// The archival status of the mobile application. This attribute is read-only. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 5)] + public bool isArchived { + get { + return this.isArchivedField; + } + set { + this.isArchivedField = value; + this.isArchivedSpecified = true; + } + } + + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool statusSpecified { + public bool isArchivedSpecified { get { - return this.statusFieldSpecified; + return this.isArchivedFieldSpecified; } set { - this.statusFieldSpecified = value; + this.isArchivedFieldSpecified = value; } } - /// The activity type. This attribute is optional and defaults to Activity.Type#PAGE_VIEWS + /// The name of the application on the app store. This attribute is read-only and + /// populated by Google. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 5)] - public ActivityType type { + [System.Xml.Serialization.XmlElementAttribute(Order = 6)] + public string appStoreName { get { - return this.typeField; + return this.appStoreNameField; } set { - this.typeField = value; - this.typeSpecified = true; + this.appStoreNameField = value; } } - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool typeSpecified { + /// The application code used to identify the app in the SDK. This attribute is + /// read-only and populated by Google.

Note that the UI refers to this as "App + /// ID".

+ ///
+ [System.Xml.Serialization.XmlElementAttribute(Order = 7)] + public string applicationCode { get { - return this.typeFieldSpecified; + return this.applicationCodeField; } set { - this.typeFieldSpecified = value; + this.applicationCodeField = value; } } - } - - - /// The activity status. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "Activity.Status", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum ActivityStatus { - ACTIVE = 0, - INACTIVE = 1, - } - - /// The activity type. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "Activity.Type", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum ActivityType { - /// Tracks conversions for each visit to a webpage. This is a counter type. - /// - PAGE_VIEWS = 0, - /// Tracks conversions for visits to a webpage, but only counts one conversion per - /// user per day, even if a user visits the page multiple times. This is a counter - /// type. - /// - DAILY_VISITS = 1, - /// Tracks conversions for visits to a webpage, but only counts one conversion per - /// user per user session. Session length is set by the advertiser. This is a - /// counter type. - /// - CUSTOM = 2, - /// Tracks conversions where the user has made a purchase, the monetary value of - /// each purchase, plus the number of items that were purchased and the order ID. - /// This is a sales type. - /// - ITEMS_PURCHASED = 3, - /// Tracks conversions where the user has made a purchase, the monetary value of - /// each purchase, plus the order ID (but not the number of items purchased). This - /// is a sales type. - /// - TRANSACTIONS = 4, - /// Tracks conversions where the user has installed an iOS application. This is a - /// counter type. - /// - IOS_APPLICATION_DOWNLOADS = 5, - /// Tracks conversions where the user has installed an Android application. This is - /// a counter type. - /// - ANDROID_APPLICATION_DOWNLOADS = 6, - /// The value returned if the actual value is not exposed by the requested API - /// version. + /// The name of the developer of the mobile application. This attribute is read-only + /// and populated by Google. /// - UNKNOWN = 7, - } + [System.Xml.Serialization.XmlElementAttribute(Order = 8)] + public string developerName { + get { + return this.developerNameField; + } + set { + this.developerNameField = value; + } + } - - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", ConfigurationName = "Google.Api.Ads.AdManager.v202311.ActivityServiceInterface")] - public interface ActivityServiceInterface - { - // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Wrappers.ActivityService.createActivitiesResponse createActivities(Wrappers.ActivityService.createActivitiesRequest request); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task createActivitiesAsync(Wrappers.ActivityService.createActivitiesRequest request); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v202311.ActivityPage getActivitiesByStatement(Google.Api.Ads.AdManager.v202311.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getActivitiesByStatementAsync(Google.Api.Ads.AdManager.v202311.Statement filterStatement); - - // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Wrappers.ActivityService.updateActivitiesResponse updateActivities(Wrappers.ActivityService.updateActivitiesRequest request); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task updateActivitiesAsync(Wrappers.ActivityService.updateActivitiesRequest request); - } - - - /// Captures a page of Activity objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ActivityPage { - private int totalResultSetSizeField; - - private bool totalResultSetSizeFieldSpecified; - - private int startIndexField; - - private bool startIndexFieldSpecified; - - private Activity[] resultsField; - - /// The size of the total result set to which this page belongs. + /// The platform the mobile application runs on. This attribute is read-only and + /// populated by Google. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public int totalResultSetSize { + [System.Xml.Serialization.XmlElementAttribute(Order = 9)] + public MobileApplicationPlatform platform { get { - return this.totalResultSetSizeField; + return this.platformField; } set { - this.totalResultSetSizeField = value; - this.totalResultSetSizeSpecified = true; + this.platformField = value; + this.platformSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool totalResultSetSizeSpecified { + public bool platformSpecified { get { - return this.totalResultSetSizeFieldSpecified; + return this.platformFieldSpecified; } set { - this.totalResultSetSizeFieldSpecified = value; + this.platformFieldSpecified = value; } } - /// The absolute index in the total result set on which this page begins. + /// Whether the mobile application is free on the app store it belongs to. This + /// attribute is read-only and populated by Google. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public int startIndex { + [System.Xml.Serialization.XmlElementAttribute(Order = 10)] + public bool isFree { get { - return this.startIndexField; + return this.isFreeField; } set { - this.startIndexField = value; - this.startIndexSpecified = true; + this.isFreeField = value; + this.isFreeSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , + /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool startIndexSpecified { + public bool isFreeSpecified { get { - return this.startIndexFieldSpecified; + return this.isFreeFieldSpecified; } set { - this.startIndexFieldSpecified = value; + this.isFreeFieldSpecified = value; } } - /// The collection of activities contained within this page. + /// The download URL of the mobile application on the app store it belongs to. This + /// attribute is read-only and populated by Google. /// - [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] - public Activity[] results { + [System.Xml.Serialization.XmlElementAttribute(Order = 11)] + public string downloadUrl { get { - return this.resultsField; + return this.downloadUrlField; } set { - this.resultsField = value; + this.downloadUrlField = value; } } - } + /// The approval status for the mobile application. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 12)] + public MobileApplicationApprovalStatus approvalStatus { + get { + return this.approvalStatusField; + } + set { + this.approvalStatusField = value; + this.approvalStatusSpecified = true; + } + } - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public interface ActivityServiceInterfaceChannel : Google.Api.Ads.AdManager.v202311.ActivityServiceInterface, System.ServiceModel.IClientChannel - { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool approvalStatusSpecified { + get { + return this.approvalStatusFieldSpecified; + } + set { + this.approvalStatusFieldSpecified = value; + } + } } - /// Provides methods for creating, updating and retrieving Activity objects.

An activity group contains Activity objects. Activities have a many-to-one relationship - /// with activity groups, meaning each activity can belong to only one activity - /// group, but activity groups can have multiple activities. An activity group can - /// be used to manage the activities it contains.

+ /// A store a MobileApplication is available on. /// - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public partial class ActivityService : AdManagerSoapClient, IActivityService { - /// Creates a new instance of the class. + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum MobileApplicationStore { + /// The value returned if the actual value is not exposed by the requested API + /// version. /// - public ActivityService() { - } + UNKNOWN = 0, + APPLE_ITUNES = 1, + GOOGLE_PLAY = 2, + ROKU = 3, + AMAZON_FIRETV = 4, + PLAYSTATION = 5, + XBOX = 6, + SAMSUNG_TV = 7, + AMAZON_APP_STORE = 9, + OPPO_APP_STORE = 10, + SAMSUNG_APP_STORE = 11, + VIVO_APP_STORE = 12, + XIAOMI_APP_STORE = 13, + LG_TV = 14, + } - /// Creates a new instance of the class. - /// - public ActivityService(string endpointConfigurationName) - : base(endpointConfigurationName) { - } - /// Creates a new instance of the class. + /// A platform a MobileApplication can run on. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum MobileApplicationPlatform { + /// The value returned if the actual value is not exposed by the requested API + /// version. /// - public ActivityService(string endpointConfigurationName, string remoteAddress) - : base(endpointConfigurationName, remoteAddress) { - } + UNKNOWN = 0, + ANDROID = 1, + IOS = 2, + ROKU = 3, + AMAZON_FIRETV = 4, + PLAYSTATION = 5, + XBOX = 6, + SAMSUNG_TV = 7, + LG_TV = 8, + } - /// Creates a new instance of the class. - /// - public ActivityService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) - : base(endpointConfigurationName, remoteAddress) { - } - /// Creates a new instance of the class. + /// The approval status of the mobile application. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "MobileApplication.ApprovalStatus", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum MobileApplicationApprovalStatus { + /// Unknown approval status. /// - public ActivityService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) - : base(binding, remoteAddress) { - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.ActivityService.createActivitiesResponse Google.Api.Ads.AdManager.v202311.ActivityServiceInterface.createActivities(Wrappers.ActivityService.createActivitiesRequest request) { - return base.Channel.createActivities(request); - } - - /// Creates a new Activity objects. + UNKNOWN = 0, + /// The application is not yet ready for review. /// - public virtual Google.Api.Ads.AdManager.v202311.Activity[] createActivities(Google.Api.Ads.AdManager.v202311.Activity[] activities) { - Wrappers.ActivityService.createActivitiesRequest inValue = new Wrappers.ActivityService.createActivitiesRequest(); - inValue.activities = activities; - Wrappers.ActivityService.createActivitiesResponse retVal = ((Google.Api.Ads.AdManager.v202311.ActivityServiceInterface)(this)).createActivities(inValue); - return retVal.rval; - } + DRAFT = 1, + /// The application has not yet been reviewed. + /// + UNCHECKED = 2, + /// The application can serve ads. + /// + APPROVED = 3, + /// The application failed approval checks and it cannot serve any ads. + /// + DISAPPROVED = 4, + /// The application is disapproved but has a pending review status, signaling an + /// appeal. + /// + APPEALING = 5, + } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202311.ActivityServiceInterface.createActivitiesAsync(Wrappers.ActivityService.createActivitiesRequest request) { - return base.Channel.createActivitiesAsync(request); - } - public virtual System.Threading.Tasks.Task createActivitiesAsync(Google.Api.Ads.AdManager.v202311.Activity[] activities) { - Wrappers.ActivityService.createActivitiesRequest inValue = new Wrappers.ActivityService.createActivitiesRequest(); - inValue.activities = activities; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202311.ActivityServiceInterface)(this)).createActivitiesAsync(inValue)).Result.rval); - } + /// Lists all errors associated with MobileApplication objects. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class MobileApplicationError : ApiError { + private MobileApplicationErrorReason reasonField; - /// Gets an ActivityPage of Activity objects that satisfy the given Statement#query. The following fields are supported for filtering: - /// - /// - /// - /// - ///
PQL Property Object - /// Property
id Activity#id
nameActivity#name
expectedURL Activity#expectedURL
status Activity#status
activityGroupId Activity#activityGroupId
+ private bool reasonFieldSpecified; + + /// The error reason represented by an enum. /// - public virtual Google.Api.Ads.AdManager.v202311.ActivityPage getActivitiesByStatement(Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.getActivitiesByStatement(filterStatement); + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public MobileApplicationErrorReason reason { + get { + return this.reasonField; + } + set { + this.reasonField = value; + this.reasonSpecified = true; + } } - public virtual System.Threading.Tasks.Task getActivitiesByStatementAsync(Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.getActivitiesByStatementAsync(filterStatement); + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool reasonSpecified { + get { + return this.reasonFieldSpecified; + } + set { + this.reasonFieldSpecified = value; + } } + } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.ActivityService.updateActivitiesResponse Google.Api.Ads.AdManager.v202311.ActivityServiceInterface.updateActivities(Wrappers.ActivityService.updateActivitiesRequest request) { - return base.Channel.updateActivities(request); - } - /// Updates the specified Activity objects. + /// The reasons for the MobileApplication. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "MobileApplicationError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum MobileApplicationErrorReason { + /// Could not find the ID of the app being claimed in any app stores. /// - public virtual Google.Api.Ads.AdManager.v202311.Activity[] updateActivities(Google.Api.Ads.AdManager.v202311.Activity[] activities) { - Wrappers.ActivityService.updateActivitiesRequest inValue = new Wrappers.ActivityService.updateActivitiesRequest(); - inValue.activities = activities; - Wrappers.ActivityService.updateActivitiesResponse retVal = ((Google.Api.Ads.AdManager.v202311.ActivityServiceInterface)(this)).updateActivities(inValue); - return retVal.rval; - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202311.ActivityServiceInterface.updateActivitiesAsync(Wrappers.ActivityService.updateActivitiesRequest request) { - return base.Channel.updateActivitiesAsync(request); - } - - public virtual System.Threading.Tasks.Task updateActivitiesAsync(Google.Api.Ads.AdManager.v202311.Activity[] activities) { - Wrappers.ActivityService.updateActivitiesRequest inValue = new Wrappers.ActivityService.updateActivitiesRequest(); - inValue.activities = activities; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202311.ActivityServiceInterface)(this)).updateActivitiesAsync(inValue)).Result.rval); - } + INVALID_APP_ID = 0, + /// Exchange partner settings were invalid. + /// + INVALID_EXCHANGE_PARTNER_SETTINGS = 2, + /// API encountered an unexpected internal error. + /// + INTERNAL = 3, + /// At least one of app name or app store id must be set. + /// + NAME_OR_STORE_ID_MUST_BE_SET = 4, + /// The number of active applications exceeds the max number allowed in the network. + /// + PUBLISHER_HAS_TOO_MANY_ACTIVE_APPS = 5, + /// Application store id fetched from the internal application catalog is too long. + /// + LINKED_APPLICATION_STORE_ID_TOO_LONG = 6, + /// Manually entered app name cannot be longer than 80 characters. + /// + MANUAL_APP_NAME_TOO_LONG = 7, + /// Manually entered app name cannot be empty. + /// + MANUAL_APP_NAME_EMPTY = 8, + /// Invalid combined product key from app store and store id combinations. + /// + INVALID_COMBINED_PRODUCT_KEY = 9, + /// Only Android apps are eligible to skip for store id verification. + /// + LINKED_APP_SKIPPING_ID_VERIFICATION_MUST_BE_ANDROID_APP = 10, + /// Linked app cannot be found. + /// + MISSING_APP_STORE_ENTRY = 11, + /// Missing store entry. + /// + CANNOT_SET_STORE_ID_MISSING_STORE_ENTRY = 12, + /// Store entry has an unspecified app store. + /// + CANNOT_SET_STORE_ID_INVALID_APP_STORE = 13, + /// Store entry has an empty store id. + /// + CANNOT_SET_STORE_ID_INVALID_STORE_ID = 14, + /// Store entry is not unique among publisher's active apps. + /// + CANNOT_SET_STORE_ID_NON_UNIQUE_STORE_ID = 15, + /// App store id is not unique among publisher's active apps of the same platform. + /// + CANNOT_SET_STORE_ID_NON_UNIQUE_STORE_ID_WITHIN_PLATFORM = 16, + /// The Android package name format is invalid. + /// + CANNOT_SET_STORE_ID_INVALID_ANDROID_PACKAGE_NAME = 17, + /// App store list should contain app stores from same platform. + /// + INCOMPATIBLE_APP_STORE_LIST = 18, + /// App store list should not contain UNKNOWN app store. + /// + APP_STORE_LIST_CANNOT_HAVE_UNKNOWN_APP_STORE = 19, + /// App store list should contain existing first party stores. + /// + APP_STORE_LIST_CANNOT_REMOVE_FIRST_PARTY_APP_STORE = 20, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 1, } - namespace Wrappers.LineItemService - { - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "createLineItems", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class createLineItemsRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("lineItems")] - public Google.Api.Ads.AdManager.v202311.LineItem[] lineItems; - - /// Creates a new instance of the - /// class. - public createLineItemsRequest() { - } - /// Creates a new instance of the - /// class. - public createLineItemsRequest(Google.Api.Ads.AdManager.v202311.LineItem[] lineItems) { - this.lineItems = lineItems; - } - } + /// Lists all error reasons associated with performing actions on MobileApplication objects. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class MobileApplicationActionError : ApiError { + private MobileApplicationActionErrorReason reasonField; - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "createLineItemsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class createLineItemsResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v202311.LineItem[] rval; + private bool reasonFieldSpecified; - /// Creates a new instance of the - /// class. - public createLineItemsResponse() { + /// The error reason represented by an enum. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public MobileApplicationActionErrorReason reason { + get { + return this.reasonField; } - - /// Creates a new instance of the - /// class. - public createLineItemsResponse(Google.Api.Ads.AdManager.v202311.LineItem[] rval) { - this.rval = rval; + set { + this.reasonField = value; + this.reasonSpecified = true; } } - - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "updateLineItems", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class updateLineItemsRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("lineItems")] - public Google.Api.Ads.AdManager.v202311.LineItem[] lineItems; - - /// Creates a new instance of the - /// class. - public updateLineItemsRequest() { + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool reasonSpecified { + get { + return this.reasonFieldSpecified; } - - /// Creates a new instance of the - /// class. - public updateLineItemsRequest(Google.Api.Ads.AdManager.v202311.LineItem[] lineItems) { - this.lineItems = lineItems; + set { + this.reasonFieldSpecified = value; } } + } - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "updateLineItemsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class updateLineItemsResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v202311.LineItem[] rval; + /// The reasons for the target error. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "MobileApplicationActionError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum MobileApplicationActionErrorReason { + /// The operation is not applicable to the current mobile application status. + /// + NOT_APPLICABLE = 0, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 1, + } - /// Creates a new instance of the - /// class. - public updateLineItemsResponse() { - } - /// Creates a new instance of the - /// class. - public updateLineItemsResponse(Google.Api.Ads.AdManager.v202311.LineItem[] rval) { - this.rval = rval; - } - } - } [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", ConfigurationName = "Google.Api.Ads.AdManager.v202311.LineItemServiceInterface")] - public interface LineItemServiceInterface + [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", ConfigurationName = "Google.Api.Ads.AdManager.v202411.MobileApplicationServiceInterface")] + public interface MobileApplicationServiceInterface { // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(LineItemSummary))] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Wrappers.LineItemService.createLineItemsResponse createLineItems(Wrappers.LineItemService.createLineItemsRequest request); + Wrappers.MobileApplicationService.createMobileApplicationsResponse createMobileApplications(Wrappers.MobileApplicationService.createMobileApplicationsRequest request); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task createLineItemsAsync(Wrappers.LineItemService.createLineItemsRequest request); + System.Threading.Tasks.Task createMobileApplicationsAsync(Wrappers.MobileApplicationService.createMobileApplicationsRequest request); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(LineItemSummary))] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v202311.LineItemPage getLineItemsByStatement(Google.Api.Ads.AdManager.v202311.Statement filterStatement); + Google.Api.Ads.AdManager.v202411.MobileApplicationPage getMobileApplicationsByStatement(Google.Api.Ads.AdManager.v202411.Statement filterStatement); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getLineItemsByStatementAsync(Google.Api.Ads.AdManager.v202311.Statement filterStatement); + System.Threading.Tasks.Task getMobileApplicationsByStatementAsync(Google.Api.Ads.AdManager.v202411.Statement filterStatement); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(LineItemSummary))] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v202311.UpdateResult performLineItemAction(Google.Api.Ads.AdManager.v202311.LineItemAction lineItemAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement); + Google.Api.Ads.AdManager.v202411.UpdateResult performMobileApplicationAction(Google.Api.Ads.AdManager.v202411.MobileApplicationAction mobileApplicationAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task performLineItemActionAsync(Google.Api.Ads.AdManager.v202311.LineItemAction lineItemAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement); + System.Threading.Tasks.Task performMobileApplicationActionAsync(Google.Api.Ads.AdManager.v202411.MobileApplicationAction mobileApplicationAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement); // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(LineItemSummary))] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Wrappers.LineItemService.updateLineItemsResponse updateLineItems(Wrappers.LineItemService.updateLineItemsRequest request); + Wrappers.MobileApplicationService.updateMobileApplicationsResponse updateMobileApplications(Wrappers.MobileApplicationService.updateMobileApplicationsRequest request); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task updateLineItemsAsync(Wrappers.LineItemService.updateLineItemsRequest request); + System.Threading.Tasks.Task updateMobileApplicationsAsync(Wrappers.MobileApplicationService.updateMobileApplicationsRequest request); } - /// Captures a page of LineItem objects. + /// Captures a page of mobile applications. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class LineItemPage { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class MobileApplicationPage { private int totalResultSetSizeField; private bool totalResultSetSizeFieldSpecified; @@ -33478,7 +34584,7 @@ public partial class LineItemPage { private bool startIndexFieldSpecified; - private LineItem[] resultsField; + private MobileApplication[] resultsField; /// The size of the total result set to which this page belongs. /// @@ -33532,10 +34638,10 @@ public bool startIndexSpecified { } } - /// The collection of line items contained within this page. + /// The collection of mobile applications contained within this page. /// [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] - public LineItem[] results { + public MobileApplication[] results { get { return this.resultsField; } @@ -33546,406 +34652,237 @@ public LineItem[] results { } - /// Represents the actions that can be performed on LineItem - /// objects. + /// Represents the actions that can be performed on mobile applications. /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(UnarchiveLineItems))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ResumeLineItems))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ResumeAndOverbookLineItems))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ReserveLineItems))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ReserveAndOverbookLineItems))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ReleaseLineItems))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(PauseLineItems))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(DeleteLineItems))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ArchiveLineItems))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ActivateLineItems))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ArchiveMobileApplications))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(UnarchiveMobileApplications))] [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public abstract partial class LineItemAction { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public abstract partial class MobileApplicationAction { } - /// The action used for unarchiving LineItem objects. + /// The action used to deactivate MobileApplication + /// objects. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class UnarchiveLineItems : LineItemAction { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ArchiveMobileApplications : MobileApplicationAction { } - /// The action used for resuming LineItem objects. + /// The action used to activate MobileApplication + /// objects. /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ResumeAndOverbookLineItems))] [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ResumeLineItems : LineItemAction { - private bool skipInventoryCheckField; - - private bool skipInventoryCheckFieldSpecified; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class UnarchiveMobileApplications : MobileApplicationAction { + } - /// Indicates whether the inventory check should be skipped when performing this - /// action. The default value is false. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public bool skipInventoryCheck { - get { - return this.skipInventoryCheckField; - } - set { - this.skipInventoryCheckField = value; - this.skipInventoryCheckSpecified = true; - } - } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool skipInventoryCheckSpecified { - get { - return this.skipInventoryCheckFieldSpecified; - } - set { - this.skipInventoryCheckFieldSpecified = value; - } - } + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + public interface MobileApplicationServiceInterfaceChannel : Google.Api.Ads.AdManager.v202411.MobileApplicationServiceInterface, System.ServiceModel.IClientChannel + { } - /// The action used for resuming and overbooking LineItem - /// objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ResumeAndOverbookLineItems : ResumeLineItems { - } - - - /// The action used for reserving LineItem objects. - /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ReserveAndOverbookLineItems))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ReserveLineItems : LineItemAction { - private bool skipInventoryCheckField; - - private bool skipInventoryCheckFieldSpecified; - - /// Indicates whether the inventory check should be skipped when performing this - /// action. The default value is false. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public bool skipInventoryCheck { - get { - return this.skipInventoryCheckField; - } - set { - this.skipInventoryCheckField = value; - this.skipInventoryCheckSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool skipInventoryCheckSpecified { - get { - return this.skipInventoryCheckFieldSpecified; - } - set { - this.skipInventoryCheckFieldSpecified = value; - } - } - } - - - /// The action used for reserving and overbooking LineItem - /// objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ReserveAndOverbookLineItems : ReserveLineItems { - } - - - /// The action used for releasing LineItem objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ReleaseLineItems : LineItemAction { - } - - - /// The action used for pausing LineItem objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class PauseLineItems : LineItemAction { - } - - - /// The action used for deleting LineItem objects. A line - /// item can be deleted if it has never been eligible to serve. Note: deleted line - /// items will still count against your network limits. For more information, see - /// the Help - /// Center. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class DeleteLineItems : LineItemAction { - } - - - /// The action used for archiving LineItem objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ArchiveLineItems : LineItemAction { - } - - - /// The action used for activating LineItem objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ActivateLineItems : LineItemAction { - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public interface LineItemServiceInterfaceChannel : Google.Api.Ads.AdManager.v202311.LineItemServiceInterface, System.ServiceModel.IClientChannel - { - } - - - /// Provides methods for creating, updating and retrieving LineItem objects.

Line items define the campaign. For - /// example, line items define:

  • a budget
  • a span of time to - /// run
  • ad unit targeting

In short, line items connect all of - /// the elements of an ad campaign.

Line items and creatives can be - /// associated with each other through LineItemCreativeAssociation - /// objects. An ad unit will host a creative through both this association and the - /// LineItem#targeting to it. The delivery of a - /// line item depends on its priority. More information on line item priorities can - /// be found on the Ad - /// Manager Help Center.

+ /// Provides methods for retrieving MobileApplication objects. /// [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public partial class LineItemService : AdManagerSoapClient, ILineItemService { - /// Creates a new instance of the class. - /// - public LineItemService() { + public partial class MobileApplicationService : AdManagerSoapClient, IMobileApplicationService { + /// Creates a new instance of the + /// class. + public MobileApplicationService() { } - /// Creates a new instance of the class. - /// - public LineItemService(string endpointConfigurationName) + /// Creates a new instance of the + /// class. + public MobileApplicationService(string endpointConfigurationName) : base(endpointConfigurationName) { } - /// Creates a new instance of the class. - /// - public LineItemService(string endpointConfigurationName, string remoteAddress) + /// Creates a new instance of the + /// class. + public MobileApplicationService(string endpointConfigurationName, string remoteAddress) : base(endpointConfigurationName, remoteAddress) { } - /// Creates a new instance of the class. - /// - public LineItemService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) + /// Creates a new instance of the + /// class. + public MobileApplicationService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) : base(endpointConfigurationName, remoteAddress) { } - /// Creates a new instance of the class. - /// - public LineItemService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) + /// Creates a new instance of the + /// class. + public MobileApplicationService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) : base(binding, remoteAddress) { } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.LineItemService.createLineItemsResponse Google.Api.Ads.AdManager.v202311.LineItemServiceInterface.createLineItems(Wrappers.LineItemService.createLineItemsRequest request) { - return base.Channel.createLineItems(request); + Wrappers.MobileApplicationService.createMobileApplicationsResponse Google.Api.Ads.AdManager.v202411.MobileApplicationServiceInterface.createMobileApplications(Wrappers.MobileApplicationService.createMobileApplicationsRequest request) { + return base.Channel.createMobileApplications(request); } - /// Creates new LineItem objects. + /// Creates and claims mobile applications to be + /// used for targeting in the network. /// - public virtual Google.Api.Ads.AdManager.v202311.LineItem[] createLineItems(Google.Api.Ads.AdManager.v202311.LineItem[] lineItems) { - Wrappers.LineItemService.createLineItemsRequest inValue = new Wrappers.LineItemService.createLineItemsRequest(); - inValue.lineItems = lineItems; - Wrappers.LineItemService.createLineItemsResponse retVal = ((Google.Api.Ads.AdManager.v202311.LineItemServiceInterface)(this)).createLineItems(inValue); + public virtual Google.Api.Ads.AdManager.v202411.MobileApplication[] createMobileApplications(Google.Api.Ads.AdManager.v202411.MobileApplication[] mobileApplications) { + Wrappers.MobileApplicationService.createMobileApplicationsRequest inValue = new Wrappers.MobileApplicationService.createMobileApplicationsRequest(); + inValue.mobileApplications = mobileApplications; + Wrappers.MobileApplicationService.createMobileApplicationsResponse retVal = ((Google.Api.Ads.AdManager.v202411.MobileApplicationServiceInterface)(this)).createMobileApplications(inValue); return retVal.rval; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202311.LineItemServiceInterface.createLineItemsAsync(Wrappers.LineItemService.createLineItemsRequest request) { - return base.Channel.createLineItemsAsync(request); + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202411.MobileApplicationServiceInterface.createMobileApplicationsAsync(Wrappers.MobileApplicationService.createMobileApplicationsRequest request) { + return base.Channel.createMobileApplicationsAsync(request); } - public virtual System.Threading.Tasks.Task createLineItemsAsync(Google.Api.Ads.AdManager.v202311.LineItem[] lineItems) { - Wrappers.LineItemService.createLineItemsRequest inValue = new Wrappers.LineItemService.createLineItemsRequest(); - inValue.lineItems = lineItems; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202311.LineItemServiceInterface)(this)).createLineItemsAsync(inValue)).Result.rval); + public virtual System.Threading.Tasks.Task createMobileApplicationsAsync(Google.Api.Ads.AdManager.v202411.MobileApplication[] mobileApplications) { + Wrappers.MobileApplicationService.createMobileApplicationsRequest inValue = new Wrappers.MobileApplicationService.createMobileApplicationsRequest(); + inValue.mobileApplications = mobileApplications; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202411.MobileApplicationServiceInterface)(this)).createMobileApplicationsAsync(inValue)).Result.rval); } - /// Gets a LineItemPage of LineItem objects that satisfy the given Statement#query. The following fields are supported for filtering: - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// + /// Gets a mobileApplicationPage of mobile applications that satisfy the given Statement. The following fields are supported for + /// filtering:
PQL property Entity property
CostType LineItem#costType
CreationDateTime LineItem#creationDateTime
DeliveryRateType LineItem#deliveryRateType
EndDateTime LineItem#endDateTime
ExternalId LineItem#externalId
Id LineItem#id
IsMissingCreatives LineItem#isMissingCreatives
IsSetTopBoxEnabled LineItem#isSetTopBoxEnabled
LastModifiedDateTime LineItem#lastModifiedDateTime
LineItemType LineItem#lineItemType
Name LineItem#name
OrderId LineItem#orderId
StartDateTime LineItem#startDateTime
Status LineItem#status - ///
UnitsBought LineItem#unitsBought
+ /// + /// + /// + /// ///
PQL Property Object + /// Property
id MobileApplication#id
displayName MobileApplication#displayName
appStore MobileApplication#appStore
mobileApplicationExternalId MobileApplication#appStoreId
isArchived MobileApplication#isArchived
///
- public virtual Google.Api.Ads.AdManager.v202311.LineItemPage getLineItemsByStatement(Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.getLineItemsByStatement(filterStatement); + public virtual Google.Api.Ads.AdManager.v202411.MobileApplicationPage getMobileApplicationsByStatement(Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.getMobileApplicationsByStatement(filterStatement); } - public virtual System.Threading.Tasks.Task getLineItemsByStatementAsync(Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.getLineItemsByStatementAsync(filterStatement); + public virtual System.Threading.Tasks.Task getMobileApplicationsByStatementAsync(Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.getMobileApplicationsByStatementAsync(filterStatement); } - /// Performs actions on LineItem objects that match the given - /// Statement#query. + /// Performs an action on mobile applications. /// - public virtual Google.Api.Ads.AdManager.v202311.UpdateResult performLineItemAction(Google.Api.Ads.AdManager.v202311.LineItemAction lineItemAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.performLineItemAction(lineItemAction, filterStatement); + public virtual Google.Api.Ads.AdManager.v202411.UpdateResult performMobileApplicationAction(Google.Api.Ads.AdManager.v202411.MobileApplicationAction mobileApplicationAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.performMobileApplicationAction(mobileApplicationAction, filterStatement); } - public virtual System.Threading.Tasks.Task performLineItemActionAsync(Google.Api.Ads.AdManager.v202311.LineItemAction lineItemAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.performLineItemActionAsync(lineItemAction, filterStatement); + public virtual System.Threading.Tasks.Task performMobileApplicationActionAsync(Google.Api.Ads.AdManager.v202411.MobileApplicationAction mobileApplicationAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.performMobileApplicationActionAsync(mobileApplicationAction, filterStatement); } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.LineItemService.updateLineItemsResponse Google.Api.Ads.AdManager.v202311.LineItemServiceInterface.updateLineItems(Wrappers.LineItemService.updateLineItemsRequest request) { - return base.Channel.updateLineItems(request); + Wrappers.MobileApplicationService.updateMobileApplicationsResponse Google.Api.Ads.AdManager.v202411.MobileApplicationServiceInterface.updateMobileApplications(Wrappers.MobileApplicationService.updateMobileApplicationsRequest request) { + return base.Channel.updateMobileApplications(request); } - /// Updates the specified LineItem objects. + /// Updates the specified mobile applications. /// - public virtual Google.Api.Ads.AdManager.v202311.LineItem[] updateLineItems(Google.Api.Ads.AdManager.v202311.LineItem[] lineItems) { - Wrappers.LineItemService.updateLineItemsRequest inValue = new Wrappers.LineItemService.updateLineItemsRequest(); - inValue.lineItems = lineItems; - Wrappers.LineItemService.updateLineItemsResponse retVal = ((Google.Api.Ads.AdManager.v202311.LineItemServiceInterface)(this)).updateLineItems(inValue); + public virtual Google.Api.Ads.AdManager.v202411.MobileApplication[] updateMobileApplications(Google.Api.Ads.AdManager.v202411.MobileApplication[] mobileApplications) { + Wrappers.MobileApplicationService.updateMobileApplicationsRequest inValue = new Wrappers.MobileApplicationService.updateMobileApplicationsRequest(); + inValue.mobileApplications = mobileApplications; + Wrappers.MobileApplicationService.updateMobileApplicationsResponse retVal = ((Google.Api.Ads.AdManager.v202411.MobileApplicationServiceInterface)(this)).updateMobileApplications(inValue); return retVal.rval; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202311.LineItemServiceInterface.updateLineItemsAsync(Wrappers.LineItemService.updateLineItemsRequest request) { - return base.Channel.updateLineItemsAsync(request); + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202411.MobileApplicationServiceInterface.updateMobileApplicationsAsync(Wrappers.MobileApplicationService.updateMobileApplicationsRequest request) { + return base.Channel.updateMobileApplicationsAsync(request); } - public virtual System.Threading.Tasks.Task updateLineItemsAsync(Google.Api.Ads.AdManager.v202311.LineItem[] lineItems) { - Wrappers.LineItemService.updateLineItemsRequest inValue = new Wrappers.LineItemService.updateLineItemsRequest(); - inValue.lineItems = lineItems; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202311.LineItemServiceInterface)(this)).updateLineItemsAsync(inValue)).Result.rval); + public virtual System.Threading.Tasks.Task updateMobileApplicationsAsync(Google.Api.Ads.AdManager.v202411.MobileApplication[] mobileApplications) { + Wrappers.MobileApplicationService.updateMobileApplicationsRequest inValue = new Wrappers.MobileApplicationService.updateMobileApplicationsRequest(); + inValue.mobileApplications = mobileApplications; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202411.MobileApplicationServiceInterface)(this)).updateMobileApplicationsAsync(inValue)).Result.rval); } } - namespace Wrappers.LineItemTemplateService + namespace Wrappers.NetworkService { + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "getAllNetworks", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class getAllNetworksRequest { + /// Creates a new instance of the + /// class. + public getAllNetworksRequest() { + } + } + + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "getAllNetworksResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class getAllNetworksResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("rval")] + public Google.Api.Ads.AdManager.v202411.Network[] rval; + + /// Creates a new instance of the + /// class. + public getAllNetworksResponse() { + } + + /// Creates a new instance of the + /// class. + public getAllNetworksResponse(Google.Api.Ads.AdManager.v202411.Network[] rval) { + this.rval = rval; + } + } } - /// Represents the template that populates the fields of a new line item being - /// created. + /// Network represents a network. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class LineItemTemplate { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class Network { private long idField; private bool idFieldSpecified; - private string nameField; - - private bool isDefaultField; - - private bool isDefaultFieldSpecified; - - private string lineItemNameField; - - private bool enabledForSameAdvertiserExceptionField; - - private bool enabledForSameAdvertiserExceptionFieldSpecified; - - private string notesField; + private string displayNameField; - private LineItemType lineItemTypeField; + private string networkCodeField; - private bool lineItemTypeFieldSpecified; + private string propertyCodeField; - private DeliveryRateType deliveryRateTypeField; + private string timeZoneField; - private bool deliveryRateTypeFieldSpecified; + private string currencyCodeField; - private RoadblockingType roadblockingTypeField; + private string[] secondaryCurrencyCodesField; - private bool roadblockingTypeFieldSpecified; + private string effectiveRootAdUnitIdField; - private CreativeRotationType creativeRotationTypeField; + private bool isTestField; - private bool creativeRotationTypeFieldSpecified; + private bool isTestFieldSpecified; - /// Uniquely identifies the LineItemTemplate. This attribute is - /// read-only and is assigned by Google when a template is created. + /// The unique ID of the Network. This value is readonly and is + /// assigned by Google. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] public long id { @@ -33971,1008 +34908,933 @@ public bool idSpecified { } } - /// The name of the LineItemTemplate. This attribute is required. + /// The display name of the network. /// [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public string name { + public string displayName { get { - return this.nameField; + return this.displayNameField; } set { - this.nameField = value; + this.displayNameField = value; } } - /// Whether or not the LineItemTemplate represents the default choices - /// for creating a LineItem. Only one default is allowed - /// per Network. This attribute is readonly. + /// The network code. If the current login has access to multiple networks, then the + /// network code must be provided in the SOAP request headers for all requests. + /// Otherwise, it is optional to provide the network code in the SOAP headers. This + /// field is read-only. /// [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public bool isDefault { - get { - return this.isDefaultField; - } - set { - this.isDefaultField = value; - this.isDefaultSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool isDefaultSpecified { + public string networkCode { get { - return this.isDefaultFieldSpecified; + return this.networkCodeField; } set { - this.isDefaultFieldSpecified = value; + this.networkCodeField = value; } } - /// The default name of a new . This - /// attribute is optional and has a maximum length of 127 characters. + /// The property code. This field is read-only. /// [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public string lineItemName { + public string propertyCode { get { - return this.lineItemNameField; + return this.propertyCodeField; } set { - this.lineItemNameField = value; + this.propertyCodeField = value; } } - /// The default value for the LineItem#enabledForSameAdvertiserException - /// field of a new LineItem. This attribute is required. + /// The time zone associated with the delivery of orders and reporting. This field + /// is read-only. /// [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public bool enabledForSameAdvertiserException { - get { - return this.enabledForSameAdvertiserExceptionField; - } - set { - this.enabledForSameAdvertiserExceptionField = value; - this.enabledForSameAdvertiserExceptionSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool enabledForSameAdvertiserExceptionSpecified { + public string timeZone { get { - return this.enabledForSameAdvertiserExceptionFieldSpecified; + return this.timeZoneField; } set { - this.enabledForSameAdvertiserExceptionFieldSpecified = value; + this.timeZoneField = value; } } - /// The default notes for a new . This - /// attribute is optional and has a maximum length of 65,535 characters. + /// The primary currency code. This field is read-only. /// [System.Xml.Serialization.XmlElementAttribute(Order = 5)] - public string notes { + public string currencyCode { get { - return this.notesField; + return this.currencyCodeField; } set { - this.notesField = value; + this.currencyCodeField = value; } } - /// The default type of a new - /// LineItem. This attribute is required. + /// Currencies that can be used as an alternative to the Network#currencyCode for trafficking line items. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 6)] - public LineItemType lineItemType { - get { - return this.lineItemTypeField; - } - set { - this.lineItemTypeField = value; - this.lineItemTypeSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool lineItemTypeSpecified { + [System.Xml.Serialization.XmlElementAttribute("secondaryCurrencyCodes", Order = 6)] + public string[] secondaryCurrencyCodes { get { - return this.lineItemTypeFieldSpecified; + return this.secondaryCurrencyCodesField; } set { - this.lineItemTypeFieldSpecified = value; + this.secondaryCurrencyCodesField = value; } } - /// The default delivery strategy for a new - /// LineItem. This attribute is required. + /// The AdUnit#id of the top most ad unit to which + /// descendant ad units can be added. Should be used for the AdUnit#parentId when first building inventory + /// hierarchy. This field is read-only. /// [System.Xml.Serialization.XmlElementAttribute(Order = 7)] - public DeliveryRateType deliveryRateType { - get { - return this.deliveryRateTypeField; - } - set { - this.deliveryRateTypeField = value; - this.deliveryRateTypeSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool deliveryRateTypeSpecified { + public string effectiveRootAdUnitId { get { - return this.deliveryRateTypeFieldSpecified; + return this.effectiveRootAdUnitIdField; } set { - this.deliveryRateTypeFieldSpecified = value; + this.effectiveRootAdUnitIdField = value; } } - /// The default roadblocking strategy for a - /// new LineItem. This attribute is required. + /// Whether this is a test network. This field is read-only. /// [System.Xml.Serialization.XmlElementAttribute(Order = 8)] - public RoadblockingType roadblockingType { + public bool isTest { get { - return this.roadblockingTypeField; + return this.isTestField; } set { - this.roadblockingTypeField = value; - this.roadblockingTypeSpecified = true; + this.isTestField = value; + this.isTestSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , + /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool roadblockingTypeSpecified { + public bool isTestSpecified { get { - return this.roadblockingTypeFieldSpecified; + return this.isTestFieldSpecified; } set { - this.roadblockingTypeFieldSpecified = value; + this.isTestFieldSpecified = value; } } + } - /// The default creative rotation - /// strategy for a new LineItem. This attribute is required. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 9)] - public CreativeRotationType creativeRotationType { + + /// Common errors for URLs. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class UrlError : ApiError { + private UrlErrorReason reasonField; + + private bool reasonFieldSpecified; + + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public UrlErrorReason reason { get { - return this.creativeRotationTypeField; + return this.reasonField; } set { - this.creativeRotationTypeField = value; - this.creativeRotationTypeSpecified = true; + this.reasonField = value; + this.reasonSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , + /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool creativeRotationTypeSpecified { + public bool reasonSpecified { get { - return this.creativeRotationTypeFieldSpecified; + return this.reasonFieldSpecified; } set { - this.creativeRotationTypeFieldSpecified = value; + this.reasonFieldSpecified = value; } } } - /// Captures a page of LineItemTemplate objects. + /// Reasons for inventory url errors. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class LineItemTemplatePage { - private int totalResultSetSizeField; - - private bool totalResultSetSizeFieldSpecified; - - private int startIndexField; + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "UrlError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum UrlErrorReason { + /// The URL has been reserved, and not available for usage. + /// + CANNOT_USE_RESERVED_URL = 0, + /// The URL belongs to Google, and not available for usage. + /// + CANNOT_USE_GOOGLE_URL = 1, + /// The URL is invalid. + /// + INVALID_URL = 2, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 3, + } - private bool startIndexFieldSpecified; - private LineItemTemplate[] resultsField; + /// Encapsulates the generic errors thrown when there's an error with user request. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class RequestError : ApiError { + private RequestErrorReason reasonField; + + private bool reasonFieldSpecified; - /// The size of the total result set to which this page belongs. - /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public int totalResultSetSize { + public RequestErrorReason reason { get { - return this.totalResultSetSizeField; + return this.reasonField; } set { - this.totalResultSetSizeField = value; - this.totalResultSetSizeSpecified = true; + this.reasonField = value; + this.reasonSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , + /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool totalResultSetSizeSpecified { + public bool reasonSpecified { get { - return this.totalResultSetSizeFieldSpecified; + return this.reasonFieldSpecified; } set { - this.totalResultSetSizeFieldSpecified = value; + this.reasonFieldSpecified = value; } } + } - /// The absolute index in the total result set on which this page begins. + + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "RequestError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum RequestErrorReason { + /// Error reason is unknown. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public int startIndex { + UNKNOWN = 0, + /// Invalid input. + /// + INVALID_INPUT = 1, + /// The api version in the request has been discontinued. Please update to the new + /// AdWords API version. + /// + UNSUPPORTED_VERSION = 2, + } + + + /// An error for a network. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class NetworkError : ApiError { + private NetworkErrorReason reasonField; + + private bool reasonFieldSpecified; + + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public NetworkErrorReason reason { get { - return this.startIndexField; + return this.reasonField; } set { - this.startIndexField = value; - this.startIndexSpecified = true; + this.reasonField = value; + this.reasonSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , + /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool startIndexSpecified { - get { - return this.startIndexFieldSpecified; - } - set { - this.startIndexFieldSpecified = value; - } - } - - /// The collection of line item templates contained within this page. - /// - [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] - public LineItemTemplate[] results { + public bool reasonSpecified { get { - return this.resultsField; + return this.reasonFieldSpecified; } set { - this.resultsField = value; + this.reasonFieldSpecified = value; } } } - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", ConfigurationName = "Google.Api.Ads.AdManager.v202311.LineItemTemplateServiceInterface")] - public interface LineItemTemplateServiceInterface - { - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v202311.LineItemTemplatePage getLineItemTemplatesByStatement(Google.Api.Ads.AdManager.v202311.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getLineItemTemplatesByStatementAsync(Google.Api.Ads.AdManager.v202311.Statement filterStatement); - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public interface LineItemTemplateServiceInterfaceChannel : Google.Api.Ads.AdManager.v202311.LineItemTemplateServiceInterface, System.ServiceModel.IClientChannel - { - } - - - /// Provides methods for creating, updating and retrieving LineItemTemplate objects. + /// Possible reasons for NetworkError /// - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public partial class LineItemTemplateService : AdManagerSoapClient, ILineItemTemplateService { - /// Creates a new instance of the - /// class. - public LineItemTemplateService() { - } - - /// Creates a new instance of the - /// class. - public LineItemTemplateService(string endpointConfigurationName) - : base(endpointConfigurationName) { - } - - /// Creates a new instance of the - /// class. - public LineItemTemplateService(string endpointConfigurationName, string remoteAddress) - : base(endpointConfigurationName, remoteAddress) { - } - - /// Creates a new instance of the - /// class. - public LineItemTemplateService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) - : base(endpointConfigurationName, remoteAddress) { - } - - /// Creates a new instance of the - /// class. - public LineItemTemplateService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) - : base(binding, remoteAddress) { - } - - /// Gets a LineItemTemplatePage of LineItemTemplate objects that satisfy the given Statement#query. The following fields are supported - /// for filtering:
PQL Property Object Property
id LineItemTemplate#id
+ [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "NetworkError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum NetworkErrorReason { + /// The value returned if the actual value is not exposed by the requested API + /// version. /// - public virtual Google.Api.Ads.AdManager.v202311.LineItemTemplatePage getLineItemTemplatesByStatement(Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.getLineItemTemplatesByStatement(filterStatement); - } - - public virtual System.Threading.Tasks.Task getLineItemTemplatesByStatementAsync(Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.getLineItemTemplatesByStatementAsync(filterStatement); - } + UNKNOWN = 0, + /// Multi-currency support is not enabled for this network. This is an Ad Manager + /// 360 feature. + /// + MULTI_CURRENCY_NOT_SUPPORTED = 1, + /// Currency provided is not supported. + /// + UNSUPPORTED_CURRENCY = 2, + /// The network currency cannot also be specified as a secondary currency. + /// + NETWORK_CURRENCY_CANNOT_BE_SAME_AS_SECONDARY = 3, + /// The data transfer config cannot have a deprecated event type. + /// + DEPRECATED_DATA_TRANSFER_CONFIG_EVENT_TYPE = 15, + /// An MCM child network cannot become a parent network. + /// + DELEGATION_CHILD_NETWORK_CANNOT_BECOME_A_PARENT = 5, + /// An MCM parent network cannot become a child of another network. + /// + DELEGATION_PARENT_NETWORK_CANNOT_BECOME_A_CHILD = 6, + /// In MCM, a network cannot become a parent of itself. + /// + CANNOT_ADD_SAME_NETWORK_AS_DELEGATION_CHILD = 7, + /// The MCM parent network has exceeded the system limit of child networks. + /// + MAX_APPROVED_DELEGATION_CHILD_NETWORKS_EXCEEDED = 8, + /// The MCM parent network has exceeded the system limit of child networks pending + /// approval. + /// + MAX_PENDING_DELEGATION_CHILD_NETWORKS_EXCEEDED = 11, + /// The network is already being managed by the parent network for MCM. + /// + CHILD_NETWORK_ALREADY_EXISTS = 9, + /// A child network must not be disapproved. + /// + CHILD_NETWORK_CANNOT_BE_DISAPPROVED = 12, + /// Only Ad Manager 360 networks are allowed to manage the inventory of other + /// networks. + /// + IN_PARENT_DELEGATION_UNSUPPORTED_FOR_NETWORK = 10, + /// When an MCM child network self-signsup for ad exchange but disconnects from the + /// parent, then tries to re-enable again, this indicates that there was an error in + /// re-enabling ad exchange. + /// + ERROR_REENABLING_AD_EXCHANGE_ON_MCM_CHILD = 13, + /// The error shown when there is an issue setting the approved site serving field + /// when re-enabling or disabling ad exchange on an MCM child. + /// + ERROR_SETTING_SITE_SERVING_MODE_ON_MCM_CHILD = 14, } - namespace Wrappers.LiveStreamEventService - { - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "createLiveStreamEvents", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class createLiveStreamEventsRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("liveStreamEvents")] - public Google.Api.Ads.AdManager.v202311.LiveStreamEvent[] liveStreamEvents; - - /// Creates a new instance of the class. - public createLiveStreamEventsRequest() { - } - - /// Creates a new instance of the class. - public createLiveStreamEventsRequest(Google.Api.Ads.AdManager.v202311.LiveStreamEvent[] liveStreamEvents) { - this.liveStreamEvents = liveStreamEvents; - } - } - - - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "createLiveStreamEventsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class createLiveStreamEventsResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v202311.LiveStreamEvent[] rval; - - /// Creates a new instance of the class. - public createLiveStreamEventsResponse() { - } - - /// Creates a new instance of the class. - public createLiveStreamEventsResponse(Google.Api.Ads.AdManager.v202311.LiveStreamEvent[] rval) { - this.rval = rval; - } - } - - - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "createSlates", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class createSlatesRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("slates")] - public Google.Api.Ads.AdManager.v202311.Slate[] slates; - - /// Creates a new instance of the class. - /// - public createSlatesRequest() { - } - - /// Creates a new instance of the class. - /// - public createSlatesRequest(Google.Api.Ads.AdManager.v202311.Slate[] slates) { - this.slates = slates; - } - } - - - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "createSlatesResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class createSlatesResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v202311.Slate[] rval; - - /// Creates a new instance of the - /// class. - public createSlatesResponse() { - } - - /// Creates a new instance of the - /// class. - public createSlatesResponse(Google.Api.Ads.AdManager.v202311.Slate[] rval) { - this.rval = rval; - } - } - - - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "updateLiveStreamEvents", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class updateLiveStreamEventsRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("liveStreamEvents")] - public Google.Api.Ads.AdManager.v202311.LiveStreamEvent[] liveStreamEvents; - - /// Creates a new instance of the class. - public updateLiveStreamEventsRequest() { - } - - /// Creates a new instance of the class. - public updateLiveStreamEventsRequest(Google.Api.Ads.AdManager.v202311.LiveStreamEvent[] liveStreamEvents) { - this.liveStreamEvents = liveStreamEvents; - } - } - - - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "updateLiveStreamEventsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class updateLiveStreamEventsResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v202311.LiveStreamEvent[] rval; - - /// Creates a new instance of the class. - public updateLiveStreamEventsResponse() { - } - - /// Creates a new instance of the class. - public updateLiveStreamEventsResponse(Google.Api.Ads.AdManager.v202311.LiveStreamEvent[] rval) { - this.rval = rval; - } - } - - - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "updateSlates", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class updateSlatesRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("slates")] - public Google.Api.Ads.AdManager.v202311.Slate[] slates; - - /// Creates a new instance of the class. - /// - public updateSlatesRequest() { - } - - /// Creates a new instance of the class. - /// - public updateSlatesRequest(Google.Api.Ads.AdManager.v202311.Slate[] slates) { - this.slates = slates; - } - } - - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "updateSlatesResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class updateSlatesResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v202311.Slate[] rval; - - /// Creates a new instance of the - /// class. - public updateSlatesResponse() { - } - /// Creates a new instance of the - /// class. - public updateSlatesResponse(Google.Api.Ads.AdManager.v202311.Slate[] rval) { - this.rval = rval; - } - } - } - /// A DashBridge is used to decide when to apply DASH Bridge - /// single-period to multi-period MPD conditioning. This should always be enabled - /// when the DASH manifest type is single-period. + /// An error for multiple customer management. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class DashBridge { - private bool enabledField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class McmError : ApiError { + private McmErrorReason reasonField; - private bool enabledFieldSpecified; + private bool reasonFieldSpecified; - /// Specifies whether to apply DASH Bridge single-period to multi-period MPD - /// conditioning. - /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public bool enabled { + public McmErrorReason reason { get { - return this.enabledField; + return this.reasonField; } set { - this.enabledField = value; - this.enabledSpecified = true; + this.reasonField = value; + this.reasonSpecified = true; } } - /// true, if a value is specified for , + /// true, if a value is specified for , /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool enabledSpecified { + public bool reasonSpecified { get { - return this.enabledFieldSpecified; + return this.reasonFieldSpecified; } set { - this.enabledFieldSpecified = value; + this.reasonFieldSpecified = value; } } } - /// Settings to specify all types of conditioning to apply to the associated LiveStreamEvent. + /// Possible reasons for McmError /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class LiveStreamConditioning { - private DashBridge dashBridgeField; - - /// Specifies DASH Bridge single-period to multi-period MPD conditioning. + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "McmError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum McmErrorReason { + /// The value returned if the actual value is not exposed by the requested API + /// version. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public DashBridge dashBridge { - get { - return this.dashBridgeField; - } - set { - this.dashBridgeField = value; - } - } + UNKNOWN = 0, + /// An MCM parent revenue share must be between 0 to 100_000L in millis. + /// + REVENUE_SHARE_PERCENT_OUTSIDE_RANGE = 3, + /// An MCM reseller parent revenue share must be 100_000L in millis. + /// + RESELLER_PARENT_REVENUE_SHARE_IS_NOT_100_PERCENT = 4, + /// An MCM Manage Inventory parent revenue share must be 100_000L in millis. + /// + MI_PARENT_REVENUE_SHARE_IS_NOT_100_PERCENT = 5, + /// The network code is used by another child publisher. + /// + DUPLICATE_CHILD_PUBLISHER_NETWORK_CODE = 1, + /// The email is used by another active child publisher. + /// + DUPLICATE_CHILD_PUBLISHER_ACTIVE_EMAIL = 2, + /// The MCM child network has been disapproved by Google. + /// + CHILD_NETWORK_DISAPPROVED = 6, + /// Manage inventory is not supported in reseller network. + /// + MANAGE_INVENTORY_UNSUPPORTED_IN_RESELLER_NETWORK = 7, + /// Cannot send MCM invitation to a MCM parent. + /// + CANNOT_SEND_INVITATION_TO_MCM_PARENT = 8, + /// A non-reseller MCM parent cannot send invitation to child which has another + /// reseller parent. + /// + CANNOT_SEND_INVITATION_TO_NETWORK_WITH_RESELLER_PARENT = 9, + /// Cannot send MCM invitation to self. + /// + CANNOT_SEND_INVITATION_TO_SELF = 10, + /// An MCM parent network cannot be disabled as parent with active children. + /// + CANNOT_CLOSE_MCM_WITH_ACTIVE_CHILDREN = 11, + /// Cannot turn on MCM feature flag on a MCM Child network with active invitations. + /// + CANNOT_TURN_CHILD_INTO_PARENT_WITH_ACTIVE_INVITATION = 12, + /// An Ad Exchange account is required for an MCM parent network. + /// + MISSING_NETWORK_EXCHANGE_ACCOUNT = 13, } - /// The information needed to prefetch ad requests for an ad break. + /// ApiError for common exceptions thrown when accessing + /// AdSense InventoryClient. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class PrefetchSettings { - private int initialAdRequestDurationSecondsField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class InventoryClientApiError : ApiError { + private InventoryClientApiErrorReason reasonField; - private bool initialAdRequestDurationSecondsFieldSpecified; + private bool reasonFieldSpecified; - /// The duration of the part of the break to be prefetched. - /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public int initialAdRequestDurationSeconds { + public InventoryClientApiErrorReason reason { get { - return this.initialAdRequestDurationSecondsField; + return this.reasonField; } set { - this.initialAdRequestDurationSecondsField = value; - this.initialAdRequestDurationSecondsSpecified = true; + this.reasonField = value; + this.reasonSpecified = true; } } - /// true, if a value is specified for , false otherwise. - /// + /// true, if a value is specified for , + /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool initialAdRequestDurationSecondsSpecified { + public bool reasonSpecified { get { - return this.initialAdRequestDurationSecondsFieldSpecified; + return this.reasonFieldSpecified; } set { - this.initialAdRequestDurationSecondsFieldSpecified = value; + this.reasonFieldSpecified = value; } } } - /// Settings for the HLS (HTTP Live Streaming) master playlist. + /// Potential reasons for errors calling InventoryClient + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "InventoryClientApiError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum InventoryClientApiErrorReason { + ACCESS_DENIED = 0, + ADSENSE_AUTH_ERROR = 1, + ADSENSE_RPC_ERROR = 2, + DOMAIN_NO_SCHEME = 3, + DOMAIN_INVALID_HOST = 4, + DOMAIN_INVALID_TLD = 5, + DOMAIN_ONE_STRING_AND_PUBLIC_SUFFIX = 6, + DOMAIN_INVALID_INPUT = 7, + DOMAIN_NO_PUBLIC_SUFFIX = 8, + UNKNOWN_ERROR = 9, + } + + + /// ApiError for exceptions thrown by ExchangeSignupService. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class MasterPlaylistSettings { - private RefreshType refreshTypeField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ExchangeSignupApiError : ApiError { + private ExchangeSignupApiErrorReason reasonField; - private bool refreshTypeFieldSpecified; + private bool reasonFieldSpecified; - /// Indicates how the master playlist gets refreshed. This field is optional and - /// defaults to RefreshType#AUTOMATIC. This field can only be - /// modified when the live stream is in a LiveStreamEventStatus#PAUSED state. - /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public RefreshType refreshType { + public ExchangeSignupApiErrorReason reason { get { - return this.refreshTypeField; + return this.reasonField; } set { - this.refreshTypeField = value; - this.refreshTypeSpecified = true; + this.reasonField = value; + this.reasonSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , + /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool refreshTypeSpecified { + public bool reasonSpecified { get { - return this.refreshTypeFieldSpecified; + return this.reasonFieldSpecified; } set { - this.refreshTypeFieldSpecified = value; + this.reasonFieldSpecified = value; } } } - /// Enumerates the different ways an HLS master playlist on a live stream will can - /// be refreshed. + /// Potential reasons for ExchangeSignupService errors /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum RefreshType { - /// The master playlist will automatically be refreshed. - /// - AUTOMATIC = 0, - /// The master playlist will only be refreshed when requested. - /// - MANUAL = 1, + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ExchangeSignupApiError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum ExchangeSignupApiErrorReason { + ADSENSE_ACCOUNT_CREATION_ERROR = 0, + ADSENSE_ACCOUNT_ALREADY_HAS_EXCHANGE = 1, + FAILED_TO_ADD_WEBSITE_TO_PROPERTY = 2, + FAILED_TO_CREATE_LINK_FOR_NEW_ACCOUNT = 3, + CANNOT_CREATE_NEW_ACCOUNT_FOR_MAPPED_CUSTOMER = 4, + FAILED_TO_CREATE_EXCHANGE_SETTINGS = 5, + DUPLICATE_PRODUCT_TYPE = 6, + INVALID_SIGNUP_PRODUCT = 7, + UNKNOWN_PRODUCT = 8, + BAD_SITE_VERIFICATION_UPDATE_REQUEST = 9, + NO_EXCHANGE_ACCOUNT = 10, + SINGLE_SYNDICATION_PRODUCT = 11, + ACCOUNT_NOT_YET_READY = 12, + MULTIPLE_ADSENSE_ACCOUNTS_NOT_ALLOWED = 13, + MISSING_LEGAL_ENTITY_NAME = 14, + MISSING_ACTIVE_BILLING_PROFILE = 15, /// The value returned if the actual value is not exposed by the requested API /// version. /// - UNKNOWN = 2, + UNKNOWN = 16, } - /// LiveStream settings that are specific to the HTTP live - /// streaming (HLS) protocol. + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", ConfigurationName = "Google.Api.Ads.AdManager.v202411.NetworkServiceInterface")] + public interface NetworkServiceInterface + { + // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Wrappers.NetworkService.getAllNetworksResponse getAllNetworks(Wrappers.NetworkService.getAllNetworksRequest request); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + System.Threading.Tasks.Task getAllNetworksAsync(Wrappers.NetworkService.getAllNetworksRequest request); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v202411.Network getCurrentNetwork(); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task getCurrentNetworkAsync(); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v202411.ThirdPartyDataDeclaration getDefaultThirdPartyDataDeclaration(); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task getDefaultThirdPartyDataDeclarationAsync(); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v202411.Network makeTestNetwork(); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task makeTestNetworkAsync(); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v202411.Network updateNetwork(Google.Api.Ads.AdManager.v202411.Network network); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task updateNetworkAsync(Google.Api.Ads.AdManager.v202411.Network network); + } + + + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + public interface NetworkServiceInterfaceChannel : Google.Api.Ads.AdManager.v202411.NetworkServiceInterface, System.ServiceModel.IClientChannel + { + } + + + /// Provides operations for retrieving information related to the publisher's + /// networks. This service can be used to obtain the list of all networks that the + /// current login has access to, or to obtain information about a specific network. /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class HlsSettings { - private PlaylistType playlistTypeField; + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + public partial class NetworkService : AdManagerSoapClient, INetworkService { + /// Creates a new instance of the class. + /// + public NetworkService() { + } - private bool playlistTypeFieldSpecified; + /// Creates a new instance of the class. + /// + public NetworkService(string endpointConfigurationName) + : base(endpointConfigurationName) { + } - private MasterPlaylistSettings masterPlaylistSettingsField; + /// Creates a new instance of the class. + /// + public NetworkService(string endpointConfigurationName, string remoteAddress) + : base(endpointConfigurationName, remoteAddress) { + } - /// Indicates the type of the playlist associated with this live stream. The - /// playlist type is analogous to the EXT-X-PLAYLIST-TYPE HLS tag. This field is - /// optional and will default to PlaylistType#LIVE. This field cannot - /// be modified after live stream creation. + /// Creates a new instance of the class. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public PlaylistType playlistType { - get { - return this.playlistTypeField; - } - set { - this.playlistTypeField = value; - this.playlistTypeSpecified = true; - } + public NetworkService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) + : base(endpointConfigurationName, remoteAddress) { } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool playlistTypeSpecified { - get { - return this.playlistTypeFieldSpecified; - } - set { - this.playlistTypeFieldSpecified = value; - } + /// Creates a new instance of the class. + /// + public NetworkService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) + : base(binding, remoteAddress) { } - /// The settings for the master playlist. This field is optional and if it is not - /// set will default to a MasterPlaylistSettings with a refresh type of - /// RefreshType#AUTOMATIC. + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + Wrappers.NetworkService.getAllNetworksResponse Google.Api.Ads.AdManager.v202411.NetworkServiceInterface.getAllNetworks(Wrappers.NetworkService.getAllNetworksRequest request) { + return base.Channel.getAllNetworks(request); + } + + /// Returns the list of Network objects to which the current + /// login has access.

Intended to be used without a network code in the SOAP + /// header when the login may have more than one network associated with it.

///
- [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public MasterPlaylistSettings masterPlaylistSettings { - get { - return this.masterPlaylistSettingsField; - } - set { - this.masterPlaylistSettingsField = value; - } + public virtual Google.Api.Ads.AdManager.v202411.Network[] getAllNetworks() { + Wrappers.NetworkService.getAllNetworksRequest inValue = new Wrappers.NetworkService.getAllNetworksRequest(); + Wrappers.NetworkService.getAllNetworksResponse retVal = ((Google.Api.Ads.AdManager.v202411.NetworkServiceInterface)(this)).getAllNetworks(inValue); + return retVal.rval; } - } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202411.NetworkServiceInterface.getAllNetworksAsync(Wrappers.NetworkService.getAllNetworksRequest request) { + return base.Channel.getAllNetworksAsync(request); + } - /// Describes the type of the playlist associated with this live stream. This is - /// analagous to the EXT-X-PLAYLIST-TYPE HLS tag. Use PlaylistType.EVENT for streams with the value - /// "#EXT-X-PLAYLIST-TYPE:EVENT" and use PlaylistType.LIVE for streams without the tag. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum PlaylistType { - /// The playlist is an event, which means that media segments can only be added to - /// the end of the playlist. This allows viewers to scrub back to the beginning of - /// the playlist. + public virtual System.Threading.Tasks.Task getAllNetworksAsync() { + Wrappers.NetworkService.getAllNetworksRequest inValue = new Wrappers.NetworkService.getAllNetworksRequest(); + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202411.NetworkServiceInterface)(this)).getAllNetworksAsync(inValue)).Result.rval); + } + + /// Returns the current network for which requests are being made. /// - EVENT = 0, - /// The playlist is a live stream and there are no restrictions on whether media - /// segments can be removed from the beginning of the playlist. + public virtual Google.Api.Ads.AdManager.v202411.Network getCurrentNetwork() { + return base.Channel.getCurrentNetwork(); + } + + public virtual System.Threading.Tasks.Task getCurrentNetworkAsync() { + return base.Channel.getCurrentNetworkAsync(); + } + + /// Returns the default ThirdPartyDataDeclaration for this network. + /// If this setting has never been updated on your network, then this API response + /// will be empty. /// - LIVE = 1, - /// The value returned if the actual value is not exposed by the requested API - /// version. + public virtual Google.Api.Ads.AdManager.v202411.ThirdPartyDataDeclaration getDefaultThirdPartyDataDeclaration() { + return base.Channel.getDefaultThirdPartyDataDeclaration(); + } + + public virtual System.Threading.Tasks.Task getDefaultThirdPartyDataDeclarationAsync() { + return base.Channel.getDefaultThirdPartyDataDeclarationAsync(); + } + + /// Creates a new blank network for testing purposes using the current login. + ///

Each login(i.e. email address) can only have one test network. Data from any + /// of your existing networks will not be transferred to the new test network. Once + /// the test network is created, the test network can be used in the API by + /// supplying the Network#networkCode in the SOAP + /// header or by logging into the Ad Manager UI.

Test networks are limited in + /// the following ways:

  • Test networks cannot serve ads.
  • + ///
  • Because test networks cannot serve ads, reports will always come back + /// without data.
  • Since forecasting requires serving history, forecast + /// service results will be faked. See ForecastService + /// for more info.
  • Test networks are, by default, Ad Manager networks and + /// don't have any features from Ad Manager 360. To have additional features turned + /// on, please contact your account manager.
  • Test networks are limited to + /// 10,000 objects per entity type.
///
- UNKNOWN = 2, + public virtual Google.Api.Ads.AdManager.v202411.Network makeTestNetwork() { + return base.Channel.makeTestNetwork(); + } + + public virtual System.Threading.Tasks.Task makeTestNetworkAsync() { + return base.Channel.makeTestNetworkAsync(); + } + + /// Updates the specified network. Currently, only the network display name can be + /// updated. + /// + public virtual Google.Api.Ads.AdManager.v202411.Network updateNetwork(Google.Api.Ads.AdManager.v202411.Network network) { + return base.Channel.updateNetwork(network); + } + + public virtual System.Threading.Tasks.Task updateNetworkAsync(Google.Api.Ads.AdManager.v202411.Network network) { + return base.Channel.updateNetworkAsync(network); + } } + namespace Wrappers.OrderService + { + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "createOrders", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class createOrdersRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("orders")] + public Google.Api.Ads.AdManager.v202411.Order[] orders; + /// Creates a new instance of the class. + /// + public createOrdersRequest() { + } - /// Settings for ad breaks on LiveStreamEvent that are - /// specific to preroll. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class PrerollSettings { - private string adTagField; + /// Creates a new instance of the class. + /// + public createOrdersRequest(Google.Api.Ads.AdManager.v202411.Order[] orders) { + this.orders = orders; + } + } - private long maxAdPodDurationSecondsField; - private bool maxAdPodDurationSecondsFieldSpecified; + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "createOrdersResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class createOrdersResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("rval")] + public Google.Api.Ads.AdManager.v202411.Order[] rval; - /// The Ad Manager ad tag URL generated by the Ad Manager trafficking workflow that - /// is associated with this live stream event. This attribute is required. This attribute is required. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public string adTag { - get { - return this.adTagField; + /// Creates a new instance of the + /// class. + public createOrdersResponse() { } - set { - this.adTagField = value; + + /// Creates a new instance of the + /// class. + public createOrdersResponse(Google.Api.Ads.AdManager.v202411.Order[] rval) { + this.rval = rval; } } - /// The maximum duration (in seconds) for an ad break. This attribute is required. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public long maxAdPodDurationSeconds { - get { - return this.maxAdPodDurationSecondsField; + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "updateOrders", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class updateOrdersRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("orders")] + public Google.Api.Ads.AdManager.v202411.Order[] orders; + + /// Creates a new instance of the class. + /// + public updateOrdersRequest() { } - set { - this.maxAdPodDurationSecondsField = value; - this.maxAdPodDurationSecondsSpecified = true; + + /// Creates a new instance of the class. + /// + public updateOrdersRequest(Google.Api.Ads.AdManager.v202411.Order[] orders) { + this.orders = orders; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool maxAdPodDurationSecondsSpecified { - get { - return this.maxAdPodDurationSecondsFieldSpecified; + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "updateOrdersResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class updateOrdersResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("rval")] + public Google.Api.Ads.AdManager.v202411.Order[] rval; + + /// Creates a new instance of the + /// class. + public updateOrdersResponse() { } - set { - this.maxAdPodDurationSecondsFieldSpecified = value; + + /// Creates a new instance of the + /// class. + public updateOrdersResponse(Google.Api.Ads.AdManager.v202411.Order[] rval) { + this.rval = rval; } } } - - - /// A LiveStreamEvent encapsulates all the information necessary to - /// enable DAI (Dynamic Ad Insertion) into a live video stream.

This includes - /// information such as the start and expected end time of the live stream, the URL - /// of the actual content for Ad Manager to pull and insert ads into, as well as the - /// metadata necessary to generate ad requests during the live stream.

+ /// An Order represents a grouping of individual LineItem objects, each of which fulfill an ad request from a + /// particular advertiser. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class LiveStreamEvent { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class Order { private long idField; private bool idFieldSpecified; private string nameField; - private LiveStreamEventStatus statusField; - - private bool statusFieldSpecified; - - private DateTime creationDateTimeField; - - private DateTime lastModifiedDateTimeField; - private DateTime startDateTimeField; - private StartDateTimeType startDateTimeTypeField; - - private bool startDateTimeTypeFieldSpecified; - private DateTime endDateTimeField; private bool unlimitedEndDateTimeField; private bool unlimitedEndDateTimeFieldSpecified; - private long totalEstimatedConcurrentUsersField; - - private bool totalEstimatedConcurrentUsersFieldSpecified; - - private string[] contentUrlsField; - - private string[] adTagsField; - - private string assetKeyField; - - private long slateCreativeIdField; - - private bool slateCreativeIdFieldSpecified; - - private int dvrWindowSecondsField; - - private bool dvrWindowSecondsFieldSpecified; - - private bool enableDaiAuthenticationKeysField; - - private bool enableDaiAuthenticationKeysFieldSpecified; - - private AdBreakFillType adBreakFillTypeField; - - private bool adBreakFillTypeFieldSpecified; - - private AdBreakFillType underfillAdBreakFillTypeField; - - private bool underfillAdBreakFillTypeFieldSpecified; - - private long adHolidayDurationField; + private OrderStatus statusField; - private bool adHolidayDurationFieldSpecified; + private bool statusFieldSpecified; - private bool enableMaxFillerDurationField; + private bool isArchivedField; - private bool enableMaxFillerDurationFieldSpecified; + private bool isArchivedFieldSpecified; - private long maxFillerDurationField; + private string notesField; - private bool maxFillerDurationFieldSpecified; + private int externalOrderIdField; - private bool enableDurationlessAdBreaksField; + private bool externalOrderIdFieldSpecified; - private bool enableDurationlessAdBreaksFieldSpecified; + private string poNumberField; - private long defaultAdBreakDurationField; + private string currencyCodeField; - private bool defaultAdBreakDurationFieldSpecified; + private long advertiserIdField; - private long[] streamCreateDaiAuthenticationKeyIdsField; + private bool advertiserIdFieldSpecified; - private long[] sourceContentConfigurationIdsField; + private long[] advertiserContactIdsField; - private PrerollSettings prerollSettingsField; + private long agencyIdField; - private HlsSettings hlsSettingsField; + private bool agencyIdFieldSpecified; - private bool enableAllowlistedIpsField; + private long[] agencyContactIdsField; - private bool enableAllowlistedIpsFieldSpecified; + private long creatorIdField; - private DynamicAdInsertionType dynamicAdInsertionTypeField; + private bool creatorIdFieldSpecified; - private bool dynamicAdInsertionTypeFieldSpecified; + private long traffickerIdField; - private bool enableRelativePlaylistDeliveryField; + private bool traffickerIdFieldSpecified; - private bool enableRelativePlaylistDeliveryFieldSpecified; + private long[] secondaryTraffickerIdsField; - private StreamingFormat streamingFormatField; + private long salespersonIdField; - private bool streamingFormatFieldSpecified; + private bool salespersonIdFieldSpecified; - private bool prefetchEnabledField; + private long[] secondarySalespersonIdsField; - private bool prefetchEnabledFieldSpecified; + private long totalImpressionsDeliveredField; - private PrefetchSettings prefetchSettingsField; + private bool totalImpressionsDeliveredFieldSpecified; - private bool enableForceCloseAdBreaksField; + private long totalClicksDeliveredField; - private bool enableForceCloseAdBreaksFieldSpecified; + private bool totalClicksDeliveredFieldSpecified; - private bool enableShortSegmentDroppingField; + private long totalViewableImpressionsDeliveredField; - private bool enableShortSegmentDroppingFieldSpecified; + private bool totalViewableImpressionsDeliveredFieldSpecified; - private string customAssetKeyField; + private Money totalBudgetField; - private long[] daiEncodingProfileIdsField; + private AppliedLabel[] appliedLabelsField; - private long[] segmentUrlAuthenticationKeyIdsField; + private AppliedLabel[] effectiveAppliedLabelsField; - private AdBreakMarkupType[] adBreakMarkupsField; + private string lastModifiedByAppField; - private bool adBreakMarkupTypesEnabledField; + private bool isProgrammaticField; - private bool adBreakMarkupTypesEnabledFieldSpecified; + private bool isProgrammaticFieldSpecified; - private AdServingFormat adServingFormatField; + private long[] appliedTeamIdsField; - private bool adServingFormatFieldSpecified; + private DateTime lastModifiedDateTimeField; - private LiveStreamConditioning liveStreamConditioningField; + private BaseCustomFieldValue[] customFieldValuesField; - /// The unique ID of the LiveStreamEvent. This value is read-only and - /// is assigned by Google. + /// The unique ID of the Order. This value is readonly and is assigned + /// by Google. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] public long id { @@ -34998,8 +35860,8 @@ public bool idSpecified { } } - /// The name of the LiveStreamEvent. This value is required to create a - /// live stream event and has a maximum length of 255 characters. + /// The name of the Order. This value is required to create an order + /// and has a maximum length of 255 characters. /// [System.Xml.Serialization.XmlElementAttribute(Order = 1)] public string name { @@ -35011,1217 +35873,1473 @@ public string name { } } - /// The status of this LiveStreamEvent. This attribute is read-only and - /// is assigned by Google. Live stream events are created in the LiveStreamEventStatus#PAUSED state. + /// The date and time at which the Order and its associated line items + /// are eligible to begin serving. This attribute is readonly and is derived from + /// the line item of the order which has the earliest LineItem#startDateTime. /// [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public LiveStreamEventStatus status { - get { - return this.statusField; - } - set { - this.statusField = value; - this.statusSpecified = true; - } - } - - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool statusSpecified { + public DateTime startDateTime { get { - return this.statusFieldSpecified; + return this.startDateTimeField; } set { - this.statusFieldSpecified = value; + this.startDateTimeField = value; } } - /// The date and time this LiveStreamEvent was created. This attribute - /// is read-only. + /// The date and time at which the Order and its associated line items + /// stop being served. This attribute is readonly and is derived from the line item + /// of the order which has the latest LineItem#endDateTime. /// [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public DateTime creationDateTime { + public DateTime endDateTime { get { - return this.creationDateTimeField; + return this.endDateTimeField; } set { - this.creationDateTimeField = value; + this.endDateTimeField = value; } } - /// The date and time this LiveStreamEvent was last modified. This - /// attribute is read-only. + /// Specifies whether or not the Order has an unlimited end date. This + /// attribute is readonly and is true if any of the order's line items + /// has LineItem#unlimitedEndDateTime set to true. /// [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public DateTime lastModifiedDateTime { + public bool unlimitedEndDateTime { get { - return this.lastModifiedDateTimeField; + return this.unlimitedEndDateTimeField; } set { - this.lastModifiedDateTimeField = value; + this.unlimitedEndDateTimeField = value; + this.unlimitedEndDateTimeSpecified = true; } } - /// The start date and time of this LiveStreamEvent. This attribute is - /// required if the LiveStreamEvent#startDateTimeType - /// is StartDateTimeType#USE_START_DATE_TIME - /// and is ignored for all other values of StartDateTimeType. Modifying this attribute for an - /// active live stream can impact traffic. + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool unlimitedEndDateTimeSpecified { + get { + return this.unlimitedEndDateTimeFieldSpecified; + } + set { + this.unlimitedEndDateTimeFieldSpecified = value; + } + } + + /// The status of the Order. This attribute is read-only. /// [System.Xml.Serialization.XmlElementAttribute(Order = 5)] - public DateTime startDateTime { + public OrderStatus status { get { - return this.startDateTimeField; + return this.statusField; } set { - this.startDateTimeField = value; + this.statusField = value; + this.statusSpecified = true; } } - /// Specifies whether to start the LiveStreamEvent - /// right away, in an hour, etc. This attribute is optional and defaults to StartDateTimeType#USE_START_DATE_TIME. + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool statusSpecified { + get { + return this.statusFieldSpecified; + } + set { + this.statusFieldSpecified = value; + } + } + + /// The archival status of the Order. This attribute is readonly. /// [System.Xml.Serialization.XmlElementAttribute(Order = 6)] - public StartDateTimeType startDateTimeType { + public bool isArchived { get { - return this.startDateTimeTypeField; + return this.isArchivedField; } set { - this.startDateTimeTypeField = value; - this.startDateTimeTypeSpecified = true; + this.isArchivedField = value; + this.isArchivedSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool startDateTimeTypeSpecified { + public bool isArchivedSpecified { get { - return this.startDateTimeTypeFieldSpecified; + return this.isArchivedFieldSpecified; } set { - this.startDateTimeTypeFieldSpecified = value; + this.isArchivedFieldSpecified = value; } } - /// The scheduled end date and time of this LiveStreamEvent. This - /// attribute is required if unlimitedEndDateTime is false and ignored - /// if unlimitedEndDateTime is true. Modifying this attribute for an - /// active live stream can impact traffic. + /// Provides any additional notes that may annotate the Order. This + /// attribute is optional and has a maximum length of 65,535 characters. /// [System.Xml.Serialization.XmlElementAttribute(Order = 7)] - public DateTime endDateTime { + public string notes { get { - return this.endDateTimeField; + return this.notesField; } set { - this.endDateTimeField = value; + this.notesField = value; } } - /// Whether the LiveStreamEvent has an end time. This - /// attribute is optional and defaults to false. If this field is true, - /// endDateTime is ignored. + /// An arbitrary ID to associate to the Order, which can be used as a + /// key to an external system. This value is optional. /// [System.Xml.Serialization.XmlElementAttribute(Order = 8)] - public bool unlimitedEndDateTime { + public int externalOrderId { get { - return this.unlimitedEndDateTimeField; + return this.externalOrderIdField; } set { - this.unlimitedEndDateTimeField = value; - this.unlimitedEndDateTimeSpecified = true; + this.externalOrderIdField = value; + this.externalOrderIdSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="externalOrderId" />, false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool unlimitedEndDateTimeSpecified { + public bool externalOrderIdSpecified { get { - return this.unlimitedEndDateTimeFieldSpecified; + return this.externalOrderIdFieldSpecified; } set { - this.unlimitedEndDateTimeFieldSpecified = value; + this.externalOrderIdFieldSpecified = value; } } - /// The total number of concurrent users expected to watch this live stream across - /// all regions. This attribute is optional and default value is 0. + /// The purchase order number for the Order. This value is optional and + /// has a maximum length of 63 characters. /// [System.Xml.Serialization.XmlElementAttribute(Order = 9)] - public long totalEstimatedConcurrentUsers { + public string poNumber { get { - return this.totalEstimatedConcurrentUsersField; + return this.poNumberField; } set { - this.totalEstimatedConcurrentUsersField = value; - this.totalEstimatedConcurrentUsersSpecified = true; + this.poNumberField = value; } } - /// true, if a value is specified for , false otherwise. + /// The ISO currency code for the currency used by the Order. This + /// value is read-only and is the network's currency code. /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool totalEstimatedConcurrentUsersSpecified { + [System.Xml.Serialization.XmlElementAttribute(Order = 10)] + public string currencyCode { get { - return this.totalEstimatedConcurrentUsersFieldSpecified; + return this.currencyCodeField; } set { - this.totalEstimatedConcurrentUsersFieldSpecified = value; + this.currencyCodeField = value; } } - /// The list of URLs pointing to the live stream content in Content Delivery - /// Network. This attribute is required and can be modified when the live stream is - /// in a LiveStreamEventStatus#PAUSED state. + /// The unique ID of the Company, which is of type Company.Type#ADVERTISER, to which this order + /// belongs. This attribute is required. /// - [System.Xml.Serialization.XmlElementAttribute("contentUrls", Order = 10)] - public string[] contentUrls { + [System.Xml.Serialization.XmlElementAttribute(Order = 11)] + public long advertiserId { get { - return this.contentUrlsField; + return this.advertiserIdField; } set { - this.contentUrlsField = value; + this.advertiserIdField = value; + this.advertiserIdSpecified = true; } } - /// The list of Ad Manager ad tag URLs generated by the Ad Manager trafficking - /// workflow that are associated with this live stream event. Currently, the list - /// includes only one element: the master ad tag. This attribute is required. - /// - [System.Xml.Serialization.XmlElementAttribute("adTags", Order = 11)] - public string[] adTags { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool advertiserIdSpecified { get { - return this.adTagsField; + return this.advertiserIdFieldSpecified; } set { - this.adTagsField = value; + this.advertiserIdFieldSpecified = value; } } - /// This code is used in constructing a live stream event master playlist URL. This - /// attribute is read-only and is assigned by Google. - /// liveStreamEventCode was renamed assetKey in v201911. + /// List of IDs for advertiser contacts of the order. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 12)] - public string assetKey { + [System.Xml.Serialization.XmlElementAttribute("advertiserContactIds", Order = 12)] + public long[] advertiserContactIds { get { - return this.assetKeyField; + return this.advertiserContactIdsField; } set { - this.assetKeyField = value; + this.advertiserContactIdsField = value; } } - /// ID corresponding to the slate for this live event. If not set, network default - /// value will be used. + /// The unique ID of the Company, which is of type Company.Type#AGENCY, with which this order is + /// associated. This attribute is optional. /// [System.Xml.Serialization.XmlElementAttribute(Order = 13)] - public long slateCreativeId { + public long agencyId { get { - return this.slateCreativeIdField; + return this.agencyIdField; } set { - this.slateCreativeIdField = value; - this.slateCreativeIdSpecified = true; + this.agencyIdField = value; + this.agencyIdSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool slateCreativeIdSpecified { + public bool agencyIdSpecified { get { - return this.slateCreativeIdFieldSpecified; + return this.agencyIdFieldSpecified; } set { - this.slateCreativeIdFieldSpecified = value; + this.agencyIdFieldSpecified = value; } } - /// Length of the DVR window in seconds. This value is optional. If unset the - /// default window as provided by the input encoder will be used. Modifying this - /// value for an active live stream can impact traffic. + /// List of IDs for agency contacts of the order. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 14)] - public int dvrWindowSeconds { - get { - return this.dvrWindowSecondsField; - } - set { - this.dvrWindowSecondsField = value; - this.dvrWindowSecondsSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool dvrWindowSecondsSpecified { + [System.Xml.Serialization.XmlElementAttribute("agencyContactIds", Order = 14)] + public long[] agencyContactIds { get { - return this.dvrWindowSecondsFieldSpecified; + return this.agencyContactIdsField; } set { - this.dvrWindowSecondsFieldSpecified = value; + this.agencyContactIdsField = value; } } - /// Whether the live stream's requests to the IMA SDK API will be authenticated - /// using the DAI authentication keys. + /// The unique ID of the User who created the on + /// behalf of the advertiser. This value is readonly and is assigned by Google. /// [System.Xml.Serialization.XmlElementAttribute(Order = 15)] - public bool enableDaiAuthenticationKeys { + public long creatorId { get { - return this.enableDaiAuthenticationKeysField; + return this.creatorIdField; } set { - this.enableDaiAuthenticationKeysField = value; - this.enableDaiAuthenticationKeysSpecified = true; + this.creatorIdField = value; + this.creatorIdSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool enableDaiAuthenticationKeysSpecified { + public bool creatorIdSpecified { get { - return this.enableDaiAuthenticationKeysFieldSpecified; + return this.creatorIdFieldSpecified; } set { - this.enableDaiAuthenticationKeysFieldSpecified = value; + this.creatorIdFieldSpecified = value; } } - /// The type of content that should be used to fill an empty ad break. This value is - /// optional and defaults to AdBreakFillType#SLATE. + /// The unique ID of the User responsible for trafficking the + /// Order. This value is required for creating an order. /// [System.Xml.Serialization.XmlElementAttribute(Order = 16)] - public AdBreakFillType adBreakFillType { + public long traffickerId { get { - return this.adBreakFillTypeField; + return this.traffickerIdField; } set { - this.adBreakFillTypeField = value; - this.adBreakFillTypeSpecified = true; + this.traffickerIdField = value; + this.traffickerIdSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="traffickerId" />, false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool adBreakFillTypeSpecified { + public bool traffickerIdSpecified { get { - return this.adBreakFillTypeFieldSpecified; + return this.traffickerIdFieldSpecified; } set { - this.adBreakFillTypeFieldSpecified = value; + this.traffickerIdFieldSpecified = value; } } - /// The type of content that should be used to fill the time remaining in the ad - /// break when there are not enough ads to fill the entire break. This value is - /// optional and defaults to AdBreakFillType#SLATE. To set this field - /// a network needs to have the "Live stream ad break underfill type" feature - /// enabled. + /// The IDs of the secondary traffickers associated with the order. This value is + /// optional. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 17)] - public AdBreakFillType underfillAdBreakFillType { - get { - return this.underfillAdBreakFillTypeField; - } - set { - this.underfillAdBreakFillTypeField = value; - this.underfillAdBreakFillTypeSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool underfillAdBreakFillTypeSpecified { + [System.Xml.Serialization.XmlElementAttribute("secondaryTraffickerIds", Order = 17)] + public long[] secondaryTraffickerIds { get { - return this.underfillAdBreakFillTypeFieldSpecified; + return this.secondaryTraffickerIdsField; } set { - this.underfillAdBreakFillTypeFieldSpecified = value; + this.secondaryTraffickerIdsField = value; } } - /// The duration (in seconds), starting from the time the user enters the DAI - /// stream, for which mid-roll decisioning will be skipped. This field is only - /// applicable when an ad holiday is requested in the stream create request. This - /// value is optional and defaults to 0. + /// The unique ID of the User responsible for the sales of the + /// Order. This value is optional. /// [System.Xml.Serialization.XmlElementAttribute(Order = 18)] - public long adHolidayDuration { + public long salespersonId { get { - return this.adHolidayDurationField; + return this.salespersonIdField; } set { - this.adHolidayDurationField = value; - this.adHolidayDurationSpecified = true; + this.salespersonIdField = value; + this.salespersonIdSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="salespersonId" />, false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool adHolidayDurationSpecified { + public bool salespersonIdSpecified { get { - return this.adHolidayDurationFieldSpecified; + return this.salespersonIdFieldSpecified; } set { - this.adHolidayDurationFieldSpecified = value; + this.salespersonIdFieldSpecified = value; } } - /// Whether there will be max filler duration in this live stream. If true, - /// maxFillerDuration should be specified. This field is optional and - /// defaults to false. + /// The IDs of the secondary salespeople associated with the order. This value is + /// optional. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 19)] - public bool enableMaxFillerDuration { - get { - return this.enableMaxFillerDurationField; - } - set { - this.enableMaxFillerDurationField = value; - this.enableMaxFillerDurationSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool enableMaxFillerDurationSpecified { + [System.Xml.Serialization.XmlElementAttribute("secondarySalespersonIds", Order = 19)] + public long[] secondarySalespersonIds { get { - return this.enableMaxFillerDurationFieldSpecified; + return this.secondarySalespersonIdsField; } set { - this.enableMaxFillerDurationFieldSpecified = value; + this.secondarySalespersonIdsField = value; } } - /// The maximum number of seconds that can be used to fill this ad pod, either with - /// a slate or underlying content, depending on your settings. If more time needs to - /// be filled, the ad pod will instead be dropped and the underlying content will be - /// served. + /// Total impressions delivered for all line items of this . This value + /// is read-only and is assigned by Google. /// [System.Xml.Serialization.XmlElementAttribute(Order = 20)] - public long maxFillerDuration { + public long totalImpressionsDelivered { get { - return this.maxFillerDurationField; + return this.totalImpressionsDeliveredField; } set { - this.maxFillerDurationField = value; - this.maxFillerDurationSpecified = true; + this.totalImpressionsDeliveredField = value; + this.totalImpressionsDeliveredSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="totalImpressionsDelivered" />, false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool maxFillerDurationSpecified { + public bool totalImpressionsDeliveredSpecified { get { - return this.maxFillerDurationFieldSpecified; + return this.totalImpressionsDeliveredFieldSpecified; } set { - this.maxFillerDurationFieldSpecified = value; + this.totalImpressionsDeliveredFieldSpecified = value; } } - /// Whether there will be durationless ad breaks in this live stream. If true, - /// defaultAdBreakDuration should be specified. This field is optional - /// and defaults to false; + /// Total clicks delivered for all line items of this Order. This value + /// is read-only and is assigned by Google. /// [System.Xml.Serialization.XmlElementAttribute(Order = 21)] - public bool enableDurationlessAdBreaks { + public long totalClicksDelivered { get { - return this.enableDurationlessAdBreaksField; + return this.totalClicksDeliveredField; } set { - this.enableDurationlessAdBreaksField = value; - this.enableDurationlessAdBreaksSpecified = true; + this.totalClicksDeliveredField = value; + this.totalClicksDeliveredSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="totalClicksDelivered" />, false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool enableDurationlessAdBreaksSpecified { + public bool totalClicksDeliveredSpecified { get { - return this.enableDurationlessAdBreaksFieldSpecified; + return this.totalClicksDeliveredFieldSpecified; } set { - this.enableDurationlessAdBreaksFieldSpecified = value; + this.totalClicksDeliveredFieldSpecified = value; } } - /// The default ad pod duration (in seconds) that will be requested when an ad break - /// cue-out does not specify a duration. This field is optional and defaults to 0; + /// Total viewable impressions delivered for all line items of this + /// Order. This value is read-only and is assigned by Google. Starting + /// in v201705, this will be null when the order does not have line + /// items trafficked against a viewable impressions goal. /// [System.Xml.Serialization.XmlElementAttribute(Order = 22)] - public long defaultAdBreakDuration { + public long totalViewableImpressionsDelivered { get { - return this.defaultAdBreakDurationField; + return this.totalViewableImpressionsDeliveredField; } set { - this.defaultAdBreakDurationField = value; - this.defaultAdBreakDurationSpecified = true; + this.totalViewableImpressionsDeliveredField = value; + this.totalViewableImpressionsDeliveredSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="totalViewableImpressionsDelivered" />, false otherwise. + /// [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool defaultAdBreakDurationSpecified { + public bool totalViewableImpressionsDeliveredSpecified { get { - return this.defaultAdBreakDurationFieldSpecified; + return this.totalViewableImpressionsDeliveredFieldSpecified; } set { - this.defaultAdBreakDurationFieldSpecified = value; + this.totalViewableImpressionsDeliveredFieldSpecified = value; } } - /// The list of DaiAuthenticationKey IDs used to - /// authenticate stream create requests for this live stream. Modifying keys for an - /// active live stream may break the stream for some users. Exercise caution. + /// Total budget for all line items of this Order. This value is a + /// readonly field assigned by Google and is calculated from the associated LineItem#costPerUnit values. /// - [System.Xml.Serialization.XmlElementAttribute("streamCreateDaiAuthenticationKeyIds", Order = 23)] - public long[] streamCreateDaiAuthenticationKeyIds { + [System.Xml.Serialization.XmlElementAttribute(Order = 23)] + public Money totalBudget { get { - return this.streamCreateDaiAuthenticationKeyIdsField; + return this.totalBudgetField; } set { - this.streamCreateDaiAuthenticationKeyIdsField = value; + this.totalBudgetField = value; } } - /// The list of CdnConfiguration IDs that provide - /// settings for ingesting and delivering the videos associated with this source. - /// Modifying settings for an active live stream may break the stream for some - /// users. Exercise caution. + /// The set of labels applied directly to this order. /// - [System.Xml.Serialization.XmlElementAttribute("sourceContentConfigurationIds", Order = 24)] - public long[] sourceContentConfigurationIds { + [System.Xml.Serialization.XmlElementAttribute("appliedLabels", Order = 24)] + public AppliedLabel[] appliedLabels { get { - return this.sourceContentConfigurationIdsField; + return this.appliedLabelsField; } set { - this.sourceContentConfigurationIdsField = value; + this.appliedLabelsField = value; } } - /// The settings specific to Preroll ad breaks. This field is optional. If null, - /// this livestream does not have prerolls enabled. + /// Contains the set of labels applied directly to the order as well as those + /// inherited from the company that owns the order. If a label has been negated, + /// only the negated label is returned. This field is readonly and is assigned by + /// Google. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 25)] - public PrerollSettings prerollSettings { + [System.Xml.Serialization.XmlElementAttribute("effectiveAppliedLabels", Order = 25)] + public AppliedLabel[] effectiveAppliedLabels { get { - return this.prerollSettingsField; + return this.effectiveAppliedLabelsField; } set { - this.prerollSettingsField = value; + this.effectiveAppliedLabelsField = value; } } - /// The settings that are specific to HTTPS live streaming (HLS) protocol. This - /// field is optional and if it is not set will use the default HLS settings. + /// The application which modified this order. This attribute is read only and is + /// assigned by Google. /// [System.Xml.Serialization.XmlElementAttribute(Order = 26)] - public HlsSettings hlsSettings { + public string lastModifiedByApp { get { - return this.hlsSettingsField; + return this.lastModifiedByAppField; } set { - this.hlsSettingsField = value; + this.lastModifiedByAppField = value; } } - /// Whether specific allowlisted IP addresses should be used to access this live - /// stream. This field is optional and will default to false. To set this field a - /// network needs to have the "Video live allowlisted IPS enabled" feature enabled. - /// Modifying this field for an active live stream can impact traffic. + /// Specifies whether or not the Order is a programmatic order. This + /// value is optional and defaults to false. /// [System.Xml.Serialization.XmlElementAttribute(Order = 27)] - public bool enableAllowlistedIps { + public bool isProgrammatic { get { - return this.enableAllowlistedIpsField; + return this.isProgrammaticField; } set { - this.enableAllowlistedIpsField = value; - this.enableAllowlistedIpsSpecified = true; + this.isProgrammaticField = value; + this.isProgrammaticSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="isProgrammatic" />, false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool enableAllowlistedIpsSpecified { + public bool isProgrammaticSpecified { get { - return this.enableAllowlistedIpsFieldSpecified; + return this.isProgrammaticFieldSpecified; } set { - this.enableAllowlistedIpsFieldSpecified = value; + this.isProgrammaticFieldSpecified = value; } } - /// The method of dynamic ad insertion that is used to insert ads into this live - /// stream. This attribute is optional and defaults to DynamicAdInsertionType.LINEAR. This - /// field cannot be modified after live stream creation. + /// The IDs of all teams that this order is on directly. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 28)] - public DynamicAdInsertionType dynamicAdInsertionType { + [System.Xml.Serialization.XmlElementAttribute("appliedTeamIds", Order = 28)] + public long[] appliedTeamIds { get { - return this.dynamicAdInsertionTypeField; + return this.appliedTeamIdsField; } set { - this.dynamicAdInsertionTypeField = value; - this.dynamicAdInsertionTypeSpecified = true; + this.appliedTeamIdsField = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool dynamicAdInsertionTypeSpecified { + /// The date and time this order was last modified. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 29)] + public DateTime lastModifiedDateTime { get { - return this.dynamicAdInsertionTypeFieldSpecified; + return this.lastModifiedDateTimeField; } set { - this.dynamicAdInsertionTypeFieldSpecified = value; + this.lastModifiedDateTimeField = value; } } - /// Whether the served playlists can include relative URLs. This field is optional - /// and defaults to false. To set this field a network needs to have the "Video live - /// stream relative playlist URLs" feature enabled. This field can be modified when - /// the live stream is in a LiveStreamEventStatus#PAUSED state. + /// The values of the custom fields associated with this order. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 29)] - public bool enableRelativePlaylistDelivery { + [System.Xml.Serialization.XmlElementAttribute("customFieldValues", Order = 30)] + public BaseCustomFieldValue[] customFieldValues { get { - return this.enableRelativePlaylistDeliveryField; + return this.customFieldValuesField; } set { - this.enableRelativePlaylistDeliveryField = value; - this.enableRelativePlaylistDeliverySpecified = true; + this.customFieldValuesField = value; } } + } - /// true, if a value is specified for , false otherwise. - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool enableRelativePlaylistDeliverySpecified { - get { - return this.enableRelativePlaylistDeliveryFieldSpecified; - } - set { - this.enableRelativePlaylistDeliveryFieldSpecified = value; - } - } - /// The streaming format of the LiveStreamEvent media. - /// This field cannot be modified after live stream creation. + /// Describes the order statuses. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum OrderStatus { + /// Indicates that the Order has just been created but no + /// approval has been requested yet. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 30)] - public StreamingFormat streamingFormat { - get { - return this.streamingFormatField; - } - set { - this.streamingFormatField = value; - this.streamingFormatSpecified = true; - } - } + DRAFT = 0, + /// Indicates that a request for approval for the Order has been + /// made. + /// + PENDING_APPROVAL = 1, + /// Indicates that the Order has been approved and is ready to + /// serve. + /// + APPROVED = 2, + /// Indicates that the Order has been disapproved and is not + /// eligible to serve. + /// + DISAPPROVED = 3, + /// This is a legacy state. Paused status should be checked on LineItemss within the order. + /// + PAUSED = 4, + /// Indicates that the Order has been canceled and cannot serve. + /// + CANCELED = 5, + /// Indicates that the Order has been deleted by DSM. + /// + DELETED = 6, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 7, + } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool streamingFormatSpecified { - get { - return this.streamingFormatFieldSpecified; - } - set { - this.streamingFormatFieldSpecified = value; - } - } - /// Indicates whether the option to prefetch ad requests is enabled. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 31)] - public bool prefetchEnabled { - get { - return this.prefetchEnabledField; - } - set { - this.prefetchEnabledField = value; - this.prefetchEnabledSpecified = true; - } - } + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", ConfigurationName = "Google.Api.Ads.AdManager.v202411.OrderServiceInterface")] + public interface OrderServiceInterface + { + // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Wrappers.OrderService.createOrdersResponse createOrders(Wrappers.OrderService.createOrdersRequest request); - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool prefetchEnabledSpecified { - get { - return this.prefetchEnabledFieldSpecified; - } - set { - this.prefetchEnabledFieldSpecified = value; - } - } + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + System.Threading.Tasks.Task createOrdersAsync(Wrappers.OrderService.createOrdersRequest request); - /// The information needed to prefetch ad requests for an ad break. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 32)] - public PrefetchSettings prefetchSettings { - get { - return this.prefetchSettingsField; - } - set { - this.prefetchSettingsField = value; - } - } + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v202411.OrderPage getOrdersByStatement(Google.Api.Ads.AdManager.v202411.Statement filterStatement); - /// Whether live stream placement opportunities without #EXT-CUE-IN markers should - /// be force closed. This field is optional and defaults to false. To set this field - /// a network needs to have the "Video live stream forced cue in" feature enabled. + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task getOrdersByStatementAsync(Google.Api.Ads.AdManager.v202411.Statement filterStatement); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v202411.UpdateResult performOrderAction(Google.Api.Ads.AdManager.v202411.OrderAction orderAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task performOrderActionAsync(Google.Api.Ads.AdManager.v202411.OrderAction orderAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement); + + // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Wrappers.OrderService.updateOrdersResponse updateOrders(Wrappers.OrderService.updateOrdersRequest request); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + System.Threading.Tasks.Task updateOrdersAsync(Wrappers.OrderService.updateOrdersRequest request); + } + + + /// Captures a page of Order objects. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class OrderPage { + private int totalResultSetSizeField; + + private bool totalResultSetSizeFieldSpecified; + + private int startIndexField; + + private bool startIndexFieldSpecified; + + private Order[] resultsField; + + /// The size of the total result set to which this page belongs. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 33)] - public bool enableForceCloseAdBreaks { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public int totalResultSetSize { get { - return this.enableForceCloseAdBreaksField; + return this.totalResultSetSizeField; } set { - this.enableForceCloseAdBreaksField = value; - this.enableForceCloseAdBreaksSpecified = true; + this.totalResultSetSizeField = value; + this.totalResultSetSizeSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="totalResultSetSize" />, false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool enableForceCloseAdBreaksSpecified { + public bool totalResultSetSizeSpecified { get { - return this.enableForceCloseAdBreaksFieldSpecified; + return this.totalResultSetSizeFieldSpecified; } set { - this.enableForceCloseAdBreaksFieldSpecified = value; + this.totalResultSetSizeFieldSpecified = value; } } - /// Whether segments shorter than 1 second at the end of an ad pod should be - /// dropped. This field is optional and defaults to false. To set this field a - /// network needs to have the "Video live stream short segment dropping" feature - /// enabled. + /// The absolute index in the total result set on which this page begins. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 34)] - public bool enableShortSegmentDropping { + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public int startIndex { get { - return this.enableShortSegmentDroppingField; + return this.startIndexField; } set { - this.enableShortSegmentDroppingField = value; - this.enableShortSegmentDroppingSpecified = true; + this.startIndexField = value; + this.startIndexSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool enableShortSegmentDroppingSpecified { + public bool startIndexSpecified { get { - return this.enableShortSegmentDroppingFieldSpecified; + return this.startIndexFieldSpecified; } set { - this.enableShortSegmentDroppingFieldSpecified = value; + this.startIndexFieldSpecified = value; } } - /// An additional code that can be used in constructing live stream event URLs. This - /// field is immutable after creation and can only be set for pod serving live - /// streams. The custom asset key may be at most 64 characters and can contain - /// alphanumeric characters and symbols other than the following: ", ', =, !, +, #, - /// *, ~, ;, ^, (, ), <, >, [, ], the white space character. + /// The collection of orders contained within this page. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 35)] - public string customAssetKey { + [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] + public Order[] results { get { - return this.customAssetKeyField; + return this.resultsField; } set { - this.customAssetKeyField = value; + this.resultsField = value; } } + } - /// The list of DaiEncodingProfile IDs that will be used for this live - /// stream event. This field only applies to pod serving events. New profile IDs can - /// be added to running live streams. Profile IDs cannot be removed from running - /// live streams. Modifying settings for an active live stream may break the stream - /// for some users. Exercise caution. - /// - [System.Xml.Serialization.XmlElementAttribute("daiEncodingProfileIds", Order = 36)] - public long[] daiEncodingProfileIds { - get { - return this.daiEncodingProfileIdsField; - } - set { - this.daiEncodingProfileIdsField = value; - } - } - /// The list of DaiAuthenticationKey IDs used to - /// authenticate ad segment url requests for this live stream. This field only - /// applies to pod serving events. Modifying settings for an active live stream may - /// break the stream for some users. Exercise caution. - /// - [System.Xml.Serialization.XmlElementAttribute("segmentUrlAuthenticationKeyIds", Order = 37)] - public long[] segmentUrlAuthenticationKeyIds { - get { - return this.segmentUrlAuthenticationKeyIdsField; - } - set { - this.segmentUrlAuthenticationKeyIdsField = value; - } - } + /// Represents the actions that can be performed on Order + /// objects. + /// + [System.Xml.Serialization.XmlIncludeAttribute(typeof(UnarchiveOrders))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(SubmitOrdersForApprovalWithoutReservationChanges))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(SubmitOrdersForApproval))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(SubmitOrdersForApprovalAndOverbook))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(RetractOrdersWithoutReservationChanges))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(RetractOrders))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ResumeOrders))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ResumeAndOverbookOrders))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(PauseOrders))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(DisapproveOrdersWithoutReservationChanges))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(DisapproveOrders))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(DeleteOrders))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ArchiveOrders))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ApproveOrdersWithoutReservationChanges))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ApproveOrders))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ApproveAndOverbookOrders))] + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public abstract partial class OrderAction { + } - /// The formats that will be recognized as ad break start/end markers. This field is - /// ignored if adBreakMarkupTypesEnabled is false - /// - [System.Xml.Serialization.XmlElementAttribute("adBreakMarkups", Order = 38)] - public AdBreakMarkupType[] adBreakMarkups { - get { - return this.adBreakMarkupsField; - } - set { - this.adBreakMarkupsField = value; - } - } - /// Whether this LiveStreamEvent is specifying a - /// subset of supported adBreakMarkups. If this field is false, all - /// supported formats will be treated as ad break start/end markers. + /// The action used for unarchiving Order objects. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class UnarchiveOrders : OrderAction { + } + + + /// The action used for submitting Order objects for approval. + /// This action does not make any changes to the LineItem#reservationStatus of the line + /// items within the order. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class SubmitOrdersForApprovalWithoutReservationChanges : OrderAction { + } + + + /// The action used for submitting Order objects for approval. + /// + [System.Xml.Serialization.XmlIncludeAttribute(typeof(SubmitOrdersForApprovalAndOverbook))] + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class SubmitOrdersForApproval : OrderAction { + private bool skipInventoryCheckField; + + private bool skipInventoryCheckFieldSpecified; + + /// Indicates whether the inventory check should be skipped when performing this + /// action. The default value is false. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 39)] - public bool adBreakMarkupTypesEnabled { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public bool skipInventoryCheck { get { - return this.adBreakMarkupTypesEnabledField; + return this.skipInventoryCheckField; } set { - this.adBreakMarkupTypesEnabledField = value; - this.adBreakMarkupTypesEnabledSpecified = true; + this.skipInventoryCheckField = value; + this.skipInventoryCheckSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="skipInventoryCheck" />, false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool adBreakMarkupTypesEnabledSpecified { + public bool skipInventoryCheckSpecified { get { - return this.adBreakMarkupTypesEnabledFieldSpecified; + return this.skipInventoryCheckFieldSpecified; } set { - this.adBreakMarkupTypesEnabledFieldSpecified = value; + this.skipInventoryCheckFieldSpecified = value; } } + } - /// Whether ads on this LiveStreamEvent are served by - /// Google Ad Manager DAI or Google Ad Serving. + + /// The action used for submitting and overbooking Order objects + /// for approval. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class SubmitOrdersForApprovalAndOverbook : SubmitOrdersForApproval { + } + + + /// The action used for retracting Order objects. This action + /// does not make any changes to the LineItem#reservationStatus of the line + /// items within the order. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class RetractOrdersWithoutReservationChanges : OrderAction { + } + + + /// The action used for retracting Order objects. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class RetractOrders : OrderAction { + } + + + /// The action used for resuming Order objects. LineItem objects within the order that are eligble to resume + /// will resume as well. + /// + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ResumeAndOverbookOrders))] + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ResumeOrders : OrderAction { + private bool skipInventoryCheckField; + + private bool skipInventoryCheckFieldSpecified; + + /// Indicates whether the inventory check should be skipped when performing this + /// action. The default value is false. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 40)] - public AdServingFormat adServingFormat { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public bool skipInventoryCheck { get { - return this.adServingFormatField; + return this.skipInventoryCheckField; } set { - this.adServingFormatField = value; - this.adServingFormatSpecified = true; + this.skipInventoryCheckField = value; + this.skipInventoryCheckSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="skipInventoryCheck" />, false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool adServingFormatSpecified { - get { - return this.adServingFormatFieldSpecified; - } - set { - this.adServingFormatFieldSpecified = value; - } - } - - /// The conditioning to apply to this LiveStreamEvent. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 41)] - public LiveStreamConditioning liveStreamConditioning { + public bool skipInventoryCheckSpecified { get { - return this.liveStreamConditioningField; + return this.skipInventoryCheckFieldSpecified; } set { - this.liveStreamConditioningField = value; + this.skipInventoryCheckFieldSpecified = value; } } } - /// Describes the status of a LiveStreamEvent object. + /// The action used for resuming and overbooking Order objects. + /// All LineItem objects within the order will resume as + /// well. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum LiveStreamEventStatus { - /// Indicates the LiveStreamEvent has been created and - /// is eligible for streaming. - /// - ACTIVE = 0, - /// Indicates the LiveStreamEvent has been archived. - /// - ARCHIVED = 1, - /// Indicates the LiveStreamEvent has been paused. - /// This can be made #ACTIVE at later time. - /// - PAUSED = 2, - /// Indicates that the stream is still being served, but ad insertion should be - /// paused temporarily. - /// - ADS_PAUSED = 3, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 4, + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ResumeAndOverbookOrders : ResumeOrders { } - /// Describes what should be used to fill an empty or underfilled ad break during a - /// live stream. + /// The action used for pausing all LineItem objects within + /// an order. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum AdBreakFillType { - /// Ad break should be filled with slate. - /// - SLATE = 0, - /// Ad break should be filled with underlying content. - /// - UNDERLYING_CONTENT = 1, - /// Ad break should be filled with mostly underlying content. When ad content can't - /// be aligned with underlying content during transition, the gap will be bridged - /// with slate to maintain the timeline. - /// - MINIMIZE_SLATE = 3, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 2, + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class PauseOrders : OrderAction { } - /// Describes how the live stream will have ads dynamically inserted into playlists. + /// The action used for disapproving Order objects. All LineItem objects within the order will be disapproved as + /// well. This action does not make any changes to the LineItem#reservationStatus of the line + /// items within the order. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum DynamicAdInsertionType { - /// Content manifest is served by Google DAI. Content and ads are stitched together - /// into a unique video manifest per user. - /// - LINEAR = 0, - /// Content manifest is served by the partner, embedding Google DAI ad segment URLs - /// which redirect to unique Google DAI ad segments per user. - /// - POD_SERVING_REDIRECT = 1, - /// Ads manifest is served by Google DAI, containing unique ad pod segments for the - /// video player to switch to from the content stream, or for the partner to stitch - /// directly into the user content manifest. - /// - POD_SERVING_MANIFEST = 2, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 3, + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class DisapproveOrdersWithoutReservationChanges : OrderAction { } - /// The LiveStreamEvent streaming format. + /// The action used for disapproving Order objects. All LineItem objects within the order will be disapproved as + /// well. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum StreamingFormat { - /// The format of the live stream media is HTTP Live Streaming. - /// - HLS = 0, - /// The format of the live stream media is MPEG-DASH. - /// - DASH = 1, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 2, + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class DisapproveOrders : OrderAction { } - /// Describes the SCTE ad break markups for a LiveStreamEvent. + /// The action used for deleting Order objects. All line items + /// within that order are also deleted. Orders can only be deleted if none of its + /// line items have been eligible to serve. This action can be used to delete + /// proposed orders and line items if they are no longer valid. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum AdBreakMarkupType { - /// The CUE-OUT/CUE-IN ad break marker type. This mark up type is only applicable - /// for HLS live streams. - /// - AD_BREAK_MARKUP_HLS_EXT_CUE = 0, - /// The CUE (Adobe/Azure Prime Time) ad break marker type. This mark up type is only - /// applicable for HLS live streams. - /// - AD_BREAK_MARKUP_HLS_PRIMETIME_SPLICE = 1, - /// The DATERANGE (Anvato) ad break marker type. This mark up type is only - /// applicable for HLS live streams. - /// - AD_BREAK_MARKUP_HLS_DATERANGE_SPLICE = 2, - /// The SCTE35 XML Splice In/Out ad break marker type. This markup type is only - /// applicable for DASH live streams. - /// - AD_BREAK_MARKUP_SCTE35_XML_SPLICE_INSERT = 3, - /// The SCTE35 Binary Splice Insert ad break marker type. This mark up type is only - /// applicable for HLS and DASH live streams. - /// - AD_BREAK_MARKUP_SCTE35_BINARY_SPLICE_INSERT = 4, - /// The SCTE35 Binary Time Signal: Provider Ad Start/End ad break marker type. This - /// mark up type is only applicable for HLS and DASH live streams. - /// - AD_BREAK_MARKUP_SCTE35_BINARY_PROVIDER_AD_START_END = 5, - /// The SCTE35 Binary Time Signal: Provider Placement Opportunity Start/End ad break - /// marker type. This mark up type is only applicable for HLS and DASH live streams. - /// - AD_BREAK_MARKUP_SCTE35_BINARY_PROVIDER_PLACEMENT_OP_START_END = 6, - /// The SCTE35 Binary Time Signal: Break Start/End ad break marker type. This mark - /// up type is only applicable for HLS and DASH live streams. - /// - AD_BREAK_MARKUP_SCTE35_BINARY_BREAK_START_END = 8, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 7, + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class DeleteOrders : OrderAction { } - /// Indicates how the ads of the live stream should be served. + /// The action used for archiving Order objects. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum AdServingFormat { - /// The ads are served through Google Ad Manager DAI. - /// - AD_MANAGER_DAI = 0, - /// The ads are served through Google Ad Manager Ad Serving. - /// - DIRECT = 1, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 2, + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ArchiveOrders : OrderAction { } - /// Lists all errors associated with live stream event ad tags. + /// The action used for approving Order objects. All LineItem objects within the order will be approved as well. + /// This action does not make any changes to the LineItem#reservationStatus of the line + /// items within the order. If there are reservable line items that have not been + /// reserved the operation will not succeed. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class VideoAdTagError : ApiError { - private VideoAdTagErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ApproveOrdersWithoutReservationChanges : OrderAction { + } - private bool reasonFieldSpecified; + /// The action used for approving Order objects. All LineItem objects within the order will be approved as well. + /// For more information on what happens to an order and its line items when it is + /// approved, see the Ad Manager Help + /// Center.

+ ///
+ [System.Xml.Serialization.XmlIncludeAttribute(typeof(ApproveAndOverbookOrders))] + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ApproveOrders : OrderAction { + private bool skipInventoryCheckField; + + private bool skipInventoryCheckFieldSpecified; + + /// Indicates whether the inventory check should be skipped when performing this + /// action. The default value is false. + /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public VideoAdTagErrorReason reason { + public bool skipInventoryCheck { get { - return this.reasonField; + return this.skipInventoryCheckField; } set { - this.reasonField = value; - this.reasonSpecified = true; + this.skipInventoryCheckField = value; + this.skipInventoryCheckSpecified = true; } } - /// true, if a value is specified for , - /// false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { + public bool skipInventoryCheckSpecified { get { - return this.reasonFieldSpecified; + return this.skipInventoryCheckFieldSpecified; } set { - this.reasonFieldSpecified = value; + this.skipInventoryCheckFieldSpecified = value; } } } - /// Describes reasons for VideoAdTagError. + /// The action used for approving and overbooking Order objects. + /// All LineItem objects within the order will be approved as + /// well. For more information on what happens to an order and its line items when + /// it is approved and overbooked, see the Ad Manager Help + /// Center. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "VideoAdTagError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum VideoAdTagErrorReason { - /// One or more required fields are not specified in the ad tag. + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ApproveAndOverbookOrders : ApproveOrders { + } + + + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + public interface OrderServiceInterfaceChannel : Google.Api.Ads.AdManager.v202411.OrderServiceInterface, System.ServiceModel.IClientChannel + { + } + + + /// Provides methods for creating, updating and retrieving Order + /// objects.

An order is a grouping of LineItem objects. + /// Line items have a many-to-one relationship with orders, meaning each line item + /// can belong to only one order, but orders can have multiple line items. An order + /// can be used to manage the line items it contains.

+ ///
+ [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + public partial class OrderService : AdManagerSoapClient, IOrderService { + /// Creates a new instance of the class. /// - MISSING_REQUIRED_FIELDS = 0, - /// Ad tag URL is not a live traffic URL. Url should start with: - /// https://pubads.g.doubleclick.net/gampad/live/ads, not - /// https://pubads.g.doubleclick.net/gampad/ads + public OrderService() { + } + + /// Creates a new instance of the class. /// - NO_LIVE_TRAFFIC = 1, - /// Ad tag URL is not a VOD traffic URL. Url should start with: - /// https://pubads.g.doubleclick.net/gampad/ads , not - /// https://pubads.g.doubleclick.net/gampad/live/ads + public OrderService(string endpointConfigurationName) + : base(endpointConfigurationName) { + } + + /// Creates a new instance of the class. /// - NO_VOD_TRAFFIC = 2, - /// URL hostname is not a valid Google Publisher Tag or Freewheel Tag host name. + public OrderService(string endpointConfigurationName, string remoteAddress) + : base(endpointConfigurationName, remoteAddress) { + } + + /// Creates a new instance of the class. /// - INVALID_AD_TAG_HOST = 3, - /// Only HTTPS is supported. + public OrderService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) + : base(endpointConfigurationName, remoteAddress) { + } + + /// Creates a new instance of the class. /// - INVALID_SCHEME = 4, - /// Invalid ad output format. Settings for VAST and VMAP must be aligned. + public OrderService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) + : base(binding, remoteAddress) { + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + Wrappers.OrderService.createOrdersResponse Google.Api.Ads.AdManager.v202411.OrderServiceInterface.createOrders(Wrappers.OrderService.createOrdersRequest request) { + return base.Channel.createOrders(request); + } + + /// Creates new Order objects. /// - INVALID_AD_OUTPUT_FORMAT = 6, - /// The value returned if the actual value is not exposed by the requested API - /// version. + public virtual Google.Api.Ads.AdManager.v202411.Order[] createOrders(Google.Api.Ads.AdManager.v202411.Order[] orders) { + Wrappers.OrderService.createOrdersRequest inValue = new Wrappers.OrderService.createOrdersRequest(); + inValue.orders = orders; + Wrappers.OrderService.createOrdersResponse retVal = ((Google.Api.Ads.AdManager.v202411.OrderServiceInterface)(this)).createOrders(inValue); + return retVal.rval; + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202411.OrderServiceInterface.createOrdersAsync(Wrappers.OrderService.createOrdersRequest request) { + return base.Channel.createOrdersAsync(request); + } + + public virtual System.Threading.Tasks.Task createOrdersAsync(Google.Api.Ads.AdManager.v202411.Order[] orders) { + Wrappers.OrderService.createOrdersRequest inValue = new Wrappers.OrderService.createOrdersRequest(); + inValue.orders = orders; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202411.OrderServiceInterface)(this)).createOrdersAsync(inValue)).Result.rval); + } + + /// Gets an OrderPage of Order objects + /// that satisfy the given Statement#query. The following fields are + /// supported for filtering: + /// + /// + /// + /// + /// + /// + /// + /// + /// + ///
PQL Property Object Property
advertiserIdOrder#advertiserId
endDateTime Order#endDateTime
id Order#id
name Order#name
salespersonId Order#salespersonId
startDateTime Order#startDateTime
status Order#status
traffickerId Order#traffickerId
lastModifiedDateTime Order#lastModifiedDateTime
///
- UNKNOWN = 5, + public virtual Google.Api.Ads.AdManager.v202411.OrderPage getOrdersByStatement(Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.getOrdersByStatement(filterStatement); + } + + public virtual System.Threading.Tasks.Task getOrdersByStatementAsync(Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.getOrdersByStatementAsync(filterStatement); + } + + /// Performs actions on Order objects that match the given Statement#query. + /// + public virtual Google.Api.Ads.AdManager.v202411.UpdateResult performOrderAction(Google.Api.Ads.AdManager.v202411.OrderAction orderAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.performOrderAction(orderAction, filterStatement); + } + + public virtual System.Threading.Tasks.Task performOrderActionAsync(Google.Api.Ads.AdManager.v202411.OrderAction orderAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.performOrderActionAsync(orderAction, filterStatement); + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + Wrappers.OrderService.updateOrdersResponse Google.Api.Ads.AdManager.v202411.OrderServiceInterface.updateOrders(Wrappers.OrderService.updateOrdersRequest request) { + return base.Channel.updateOrders(request); + } + + /// Updates the specified Order objects. + /// + public virtual Google.Api.Ads.AdManager.v202411.Order[] updateOrders(Google.Api.Ads.AdManager.v202411.Order[] orders) { + Wrappers.OrderService.updateOrdersRequest inValue = new Wrappers.OrderService.updateOrdersRequest(); + inValue.orders = orders; + Wrappers.OrderService.updateOrdersResponse retVal = ((Google.Api.Ads.AdManager.v202411.OrderServiceInterface)(this)).updateOrders(inValue); + return retVal.rval; + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202411.OrderServiceInterface.updateOrdersAsync(Wrappers.OrderService.updateOrdersRequest request) { + return base.Channel.updateOrdersAsync(request); + } + + public virtual System.Threading.Tasks.Task updateOrdersAsync(Google.Api.Ads.AdManager.v202411.Order[] orders) { + Wrappers.OrderService.updateOrdersRequest inValue = new Wrappers.OrderService.updateOrdersRequest(); + inValue.orders = orders; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202411.OrderServiceInterface)(this)).updateOrdersAsync(inValue)).Result.rval); + } } + namespace Wrappers.PlacementService + { + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "createPlacements", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class createPlacementsRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("placements")] + public Google.Api.Ads.AdManager.v202411.Placement[] placements; + + /// Creates a new instance of the + /// class. + public createPlacementsRequest() { + } + /// Creates a new instance of the + /// class. + public createPlacementsRequest(Google.Api.Ads.AdManager.v202411.Placement[] placements) { + this.placements = placements; + } + } - /// Lists all errors associated with LiveStreamEvent - /// slate creative id. + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "createPlacementsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class createPlacementsResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("rval")] + public Google.Api.Ads.AdManager.v202411.Placement[] rval; + + /// Creates a new instance of the + /// class. + public createPlacementsResponse() { + } + + /// Creates a new instance of the + /// class. + public createPlacementsResponse(Google.Api.Ads.AdManager.v202411.Placement[] rval) { + this.rval = rval; + } + } + + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "updatePlacements", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class updatePlacementsRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("placements")] + public Google.Api.Ads.AdManager.v202411.Placement[] placements; + + /// Creates a new instance of the + /// class. + public updatePlacementsRequest() { + } + + /// Creates a new instance of the + /// class. + public updatePlacementsRequest(Google.Api.Ads.AdManager.v202411.Placement[] placements) { + this.placements = placements; + } + } + + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "updatePlacementsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class updatePlacementsResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("rval")] + public Google.Api.Ads.AdManager.v202411.Placement[] rval; + + /// Creates a new instance of the + /// class. + public updatePlacementsResponse() { + } + + /// Creates a new instance of the + /// class. + public updatePlacementsResponse(Google.Api.Ads.AdManager.v202411.Placement[] rval) { + this.rval = rval; + } + } + } + /// Deprecated container for information required for AdWords advertisers to place + /// their ads. /// + [System.Xml.Serialization.XmlIncludeAttribute(typeof(Placement))] [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class LiveStreamEventSlateError : ApiError { - private LiveStreamEventSlateErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class SiteTargetingInfo { + } - private bool reasonFieldSpecified; + /// A Placement groups related AdUnit objects. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class Placement : SiteTargetingInfo { + private long idField; + + private bool idFieldSpecified; + + private string nameField; + + private string descriptionField; + + private string placementCodeField; + + private InventoryStatus statusField; + + private bool statusFieldSpecified; + + private string[] targetedAdUnitIdsField; + + private DateTime lastModifiedDateTimeField; + + /// Uniquely identifies the Placement. This attribute is read-only and + /// is assigned by Google when a placement is created. + /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public LiveStreamEventSlateErrorReason reason { + public long id { get { - return this.reasonField; + return this.idField; } set { - this.reasonField = value; - this.reasonSpecified = true; + this.idField = value; + this.idSpecified = true; } } - /// true, if a value is specified for , + /// true, if a value is specified for , /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { + public bool idSpecified { get { - return this.reasonFieldSpecified; + return this.idFieldSpecified; } set { - this.reasonFieldSpecified = value; + this.idFieldSpecified = value; } } - } - - /// Describes reasons for LiveStreamEventSlateError. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "LiveStreamEventSlateError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum LiveStreamEventSlateErrorReason { - /// The slate creative ID does not correspond to a slate creative. + /// The name of the Placement. This value is required and has a maximum + /// length of 255 characters. /// - INVALID_SLATE_CREATIVE_ID = 0, - /// The required field live stream event slate is not set.

There must either be a - /// slate creative ID assigned to the live stream event or a valid network level - /// slate selected.

+ [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public string name { + get { + return this.nameField; + } + set { + this.nameField = value; + } + } + + /// A description of the Placement. This value is optional and its + /// maximum length is 65,535 characters. /// - LIVE_STREAM_EVENT_SLATE_CREATIVE_ID_REQUIRED = 1, - /// The slate does not have a videoSourceUrl or assetSourcePath. + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public string description { + get { + return this.descriptionField; + } + set { + this.descriptionField = value; + } + } + + /// A string used to uniquely identify the Placement for purposes of + /// serving the ad. This attribute is read-only and is assigned by Google when a + /// placement is created. /// - MISSING_SOURCE_FOR_SLATE = 3, - /// The slate is of an invalid type. + [System.Xml.Serialization.XmlElementAttribute(Order = 3)] + public string placementCode { + get { + return this.placementCodeField; + } + set { + this.placementCodeField = value; + } + } + + /// The status of the Placement. This attribute is read-only. /// - INVALID_SLATE_TYPE = 4, - /// The slate video source url cannot change. + [System.Xml.Serialization.XmlElementAttribute(Order = 4)] + public InventoryStatus status { + get { + return this.statusField; + } + set { + this.statusField = value; + this.statusSpecified = true; + } + } + + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool statusSpecified { + get { + return this.statusFieldSpecified; + } + set { + this.statusFieldSpecified = value; + } + } + + /// The collection of AdUnit object IDs that constitute the + /// Placement. /// - CANNOT_CHANGE_SLATE_VIDEO_SOURCE_URL = 5, - /// The value returned if the actual value is not exposed by the requested API - /// version. + [System.Xml.Serialization.XmlElementAttribute("targetedAdUnitIds", Order = 5)] + public string[] targetedAdUnitIds { + get { + return this.targetedAdUnitIdsField; + } + set { + this.targetedAdUnitIdsField = value; + } + } + + /// The date and time this placement was last modified. /// - UNKNOWN = 2, + [System.Xml.Serialization.XmlElementAttribute(Order = 6)] + public DateTime lastModifiedDateTime { + get { + return this.lastModifiedDateTimeField; + } + set { + this.lastModifiedDateTimeField = value; + } + } } - /// Lists all errors associated with preroll settings applied to a LiveStreamEvent. + /// Class defining all validation errors for a placement. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class LiveStreamEventPrerollSettingsError : ApiError { - private LiveStreamEventPrerollSettingsErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class PlacementError : ApiError { + private PlacementErrorReason reasonField; private bool reasonFieldSpecified; - /// The error reason represented by an enum. - /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public LiveStreamEventPrerollSettingsErrorReason reason { + public PlacementErrorReason reason { get { return this.reasonField; } @@ -36246,1459 +37364,1381 @@ public bool reasonSpecified { } - /// The reasons for the target error. + /// Possible reasons for the error. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "LiveStreamEventPrerollSettingsError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum LiveStreamEventPrerollSettingsErrorReason { - /// Preroll settings are only supported for livestream events of dynamic ad - /// insertion type linear. + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "PlacementError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum PlacementErrorReason { + /// Entity type is something other than inventory or content. /// - INVALID_PREROLL_SETTINGS = 0, + INVALID_ENTITY_TYPE = 0, + /// Shared inventory cannot be assigned to a placement. + /// + SHARED_INVENTORY_ASSIGNED = 1, + /// Shared inventory from one distributor network cannot be in the same placement + /// with inventory from another distributor. + /// + PLACEMENTS_CANNOT_INCLUDE_INVENTORY_FROM_MULTIPLE_DISTRIBUTOR_NETWORKS = 2, + /// Shared inventory and local inventory cannot be in the same placement. + /// + PLACEMENTS_CANNOT_INCLUDE_BOTH_LOCAL_AND_SHARED_INVENTORY = 3, /// The value returned if the actual value is not exposed by the requested API /// version. /// - UNKNOWN = 1, + UNKNOWN = 4, } - /// Lists the errors associated with setting the LiveStreamEvent DVR window duration. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class LiveStreamEventDvrWindowError : ApiError { - private LiveStreamEventDvrWindowErrorReason reasonField; + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", ConfigurationName = "Google.Api.Ads.AdManager.v202411.PlacementServiceInterface")] + public interface PlacementServiceInterface + { + // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(SiteTargetingInfo))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Wrappers.PlacementService.createPlacementsResponse createPlacements(Wrappers.PlacementService.createPlacementsRequest request); - private bool reasonFieldSpecified; + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + System.Threading.Tasks.Task createPlacementsAsync(Wrappers.PlacementService.createPlacementsRequest request); - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public LiveStreamEventDvrWindowErrorReason reason { - get { - return this.reasonField; - } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(SiteTargetingInfo))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v202411.PlacementPage getPlacementsByStatement(Google.Api.Ads.AdManager.v202411.Statement filterStatement); - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { - return this.reasonFieldSpecified; - } - set { - this.reasonFieldSpecified = value; - } - } - } + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task getPlacementsByStatementAsync(Google.Api.Ads.AdManager.v202411.Statement filterStatement); + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(SiteTargetingInfo))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v202411.UpdateResult performPlacementAction(Google.Api.Ads.AdManager.v202411.PlacementAction placementAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement); - /// Describes reasons for LiveStreamEventDvrWindowError. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "LiveStreamEventDvrWindowError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum LiveStreamEventDvrWindowErrorReason { - /// The DVR window cannot be higher than the value allowed for this network. - /// - DVR_WINDOW_TOO_HIGH = 0, - /// The DVR window cannot be lower than the minimum value allowed. - /// - DVR_WINDOW_TOO_LOW = 1, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 2, + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task performPlacementActionAsync(Google.Api.Ads.AdManager.v202411.PlacementAction placementAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement); + + // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(SiteTargetingInfo))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Wrappers.PlacementService.updatePlacementsResponse updatePlacements(Wrappers.PlacementService.updatePlacementsRequest request); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + System.Threading.Tasks.Task updatePlacementsAsync(Wrappers.PlacementService.updatePlacementsRequest request); } - /// Lists all errors associated with live stream event start and end date times. + /// Captures a page of Placement objects. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class LiveStreamEventDateTimeError : ApiError { - private LiveStreamEventDateTimeErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class PlacementPage { + private int totalResultSetSizeField; - private bool reasonFieldSpecified; + private bool totalResultSetSizeFieldSpecified; + + private int startIndexField; + + private bool startIndexFieldSpecified; + + private Placement[] resultsField; + /// The size of the total result set to which this page belongs. + /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public LiveStreamEventDateTimeErrorReason reason { + public int totalResultSetSize { get { - return this.reasonField; + return this.totalResultSetSizeField; } set { - this.reasonField = value; - this.reasonSpecified = true; + this.totalResultSetSizeField = value; + this.totalResultSetSizeSpecified = true; } } - /// true, if a value is specified for , - /// false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { + public bool totalResultSetSizeSpecified { get { - return this.reasonFieldSpecified; + return this.totalResultSetSizeFieldSpecified; } set { - this.reasonFieldSpecified = value; + this.totalResultSetSizeFieldSpecified = value; } } - } - - /// Describes reasons for LiveStreamEventDateTimeError. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "LiveStreamEventDateTimeError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum LiveStreamEventDateTimeErrorReason { - /// Cannot create a new live stream event with a start date in the past. - /// - START_DATE_TIME_IS_IN_PAST = 0, - /// End date must be after the start date. - /// - END_DATE_TIME_NOT_AFTER_START_DATE_TIME = 1, - /// DateTimes after 1 January 2037 are not supported. - /// - END_DATE_TIME_TOO_LATE = 2, - /// The value returned if the actual value is not exposed by the requested API - /// version. + /// The absolute index in the total result set on which this page begins. /// - UNKNOWN = 3, - } - - - /// Lists all errors associated with live stream event custom asset keys. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class LiveStreamEventCustomAssetKeyError : ApiError { - private LiveStreamEventCustomAssetKeyErrorReason reasonField; - - private bool reasonFieldSpecified; - - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public LiveStreamEventCustomAssetKeyErrorReason reason { + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public int startIndex { get { - return this.reasonField; + return this.startIndexField; } set { - this.reasonField = value; - this.reasonSpecified = true; + this.startIndexField = value; + this.startIndexSpecified = true; } } - /// true, if a value is specified for , - /// false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { + public bool startIndexSpecified { get { - return this.reasonFieldSpecified; + return this.startIndexFieldSpecified; } set { - this.reasonFieldSpecified = value; + this.startIndexFieldSpecified = value; } } - } - - - /// Describes reasons for LiveStreamEventCustomAssetKeyError. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "LiveStreamEventCustomAssetKeyError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum LiveStreamEventCustomAssetKeyErrorReason { - /// Custom asset key contains invalid characters. - /// - CONTAINS_INVALID_CHARACTERS = 0, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 1, - } - - - /// Lists all errors associated with conditioning applied to a LiveStreamEvent. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class LiveStreamEventConditioningError : ApiError { - private LiveStreamEventConditioningErrorReason reasonField; - - private bool reasonFieldSpecified; - /// The error reason represented by an enum. + /// The collection of placements contained within this page. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public LiveStreamEventConditioningErrorReason reason { - get { - return this.reasonField; - } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { + [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] + public Placement[] results { get { - return this.reasonFieldSpecified; + return this.resultsField; } set { - this.reasonFieldSpecified = value; + this.resultsField = value; } } } - /// The reasons for the target error. + /// Represents the actions that can be performed on Placement objects. /// + [System.Xml.Serialization.XmlIncludeAttribute(typeof(DeactivatePlacements))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ArchivePlacements))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ActivatePlacements))] [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "LiveStreamEventConditioningError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum LiveStreamEventConditioningErrorReason { - /// DASH bridge conditioning cannot be applied. - /// - CANNOT_APPLY_DASH_BRIDGE = 0, - /// DASH bridge conditioning cannot be modified after start time. - /// - CANNOT_UPDATE_DASH_BRIDGE_AFTER_START_TIME = 1, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 2, + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public abstract partial class PlacementAction { } - /// Lists all errors associated with LiveStreamEvent - /// CDN configurations. + /// The action used for deactivating Placement objects. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class LiveStreamEventCdnSettingsError : ApiError { - private LiveStreamEventCdnSettingsErrorReason reasonField; - - private bool reasonFieldSpecified; - - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public LiveStreamEventCdnSettingsErrorReason reason { - get { - return this.reasonField; - } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { - return this.reasonFieldSpecified; - } - set { - this.reasonFieldSpecified = value; - } - } + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class DeactivatePlacements : PlacementAction { } - /// Describes reasons for LiveStreamEventCdnSettingsError. + /// The action used for archiving Placement objects. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "LiveStreamEventCdnSettingsError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum LiveStreamEventCdnSettingsErrorReason { - /// CDN configurations in a single LiveStreamEvent - /// cannot have duplicate URL prefixes. - /// - CDN_CONFIGURATIONS_MUST_HAVE_UNIQUE_CDN_URL_PREFIXES = 0, - /// Only CDN configurations of type can be listed in LiveStreamEvent#sourceContentConfigurations. - /// - MUST_BE_LIVE_CDN_CONFIGURATION = 1, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 2, + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ArchivePlacements : PlacementAction { } - /// Lists all errors associated with live stream event action. + /// The action used for activating Placement objects. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class LiveStreamEventActionError : ApiError { - private LiveStreamEventActionErrorReason reasonField; - - private bool reasonFieldSpecified; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ActivatePlacements : PlacementAction { + } - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public LiveStreamEventActionErrorReason reason { - get { - return this.reasonField; - } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { - return this.reasonFieldSpecified; - } - set { - this.reasonFieldSpecified = value; - } - } + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + public interface PlacementServiceInterfaceChannel : Google.Api.Ads.AdManager.v202411.PlacementServiceInterface, System.ServiceModel.IClientChannel + { } - /// Describes reasons for LiveStreamEventActionError. + /// Provides methods for creating, updating and retrieving Placement objects.

You can use a placement to group ad + /// units. For example, you might have a placement that focuses on sports sites, + /// which may be spread across different branches of your inventory. You might also + /// have a "fire sale" placement that includes ad units that have not been selling + /// and are consequently priced very attractively.

///
- [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "LiveStreamEventActionError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum LiveStreamEventActionErrorReason { - /// The operation is not applicable to the current status. - /// - INVALID_STATUS_TRANSITION = 0, - /// The operation cannot be applied because the live stream event is archived. + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + public partial class PlacementService : AdManagerSoapClient, IPlacementService { + /// Creates a new instance of the class. /// - IS_ARCHIVED = 1, - /// Both the live stream event slate and the network default slate are not set. + public PlacementService() { + } + + /// Creates a new instance of the class. /// - INVALID_SLATE_SETTING = 4, - /// The slate creative has not been transcoded. + public PlacementService(string endpointConfigurationName) + : base(endpointConfigurationName) { + } + + /// Creates a new instance of the class. /// - SLATE_CREATIVE_NOT_TRANSCODED = 5, - /// Unable to activate live stream event that has an associated archived slate. + public PlacementService(string endpointConfigurationName, string remoteAddress) + : base(endpointConfigurationName, remoteAddress) { + } + + /// Creates a new instance of the class. /// - SLATE_CREATIVE_ARCHIVED = 6, - /// A live stream cannot be activated if it is using inactive DAI authentication - /// keys. + public PlacementService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) + : base(endpointConfigurationName, remoteAddress) { + } + + /// Creates a new instance of the class. /// - CANNOT_ACTIVATE_IF_USING_INACTIVE_DAI_AUTHENTICATION_KEYS = 3, - /// The value returned if the actual value is not exposed by the requested API - /// version. + public PlacementService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) + : base(binding, remoteAddress) { + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + Wrappers.PlacementService.createPlacementsResponse Google.Api.Ads.AdManager.v202411.PlacementServiceInterface.createPlacements(Wrappers.PlacementService.createPlacementsRequest request) { + return base.Channel.createPlacements(request); + } + + /// Creates new Placement objects. /// - UNKNOWN = 2, - } + public virtual Google.Api.Ads.AdManager.v202411.Placement[] createPlacements(Google.Api.Ads.AdManager.v202411.Placement[] placements) { + Wrappers.PlacementService.createPlacementsRequest inValue = new Wrappers.PlacementService.createPlacementsRequest(); + inValue.placements = placements; + Wrappers.PlacementService.createPlacementsResponse retVal = ((Google.Api.Ads.AdManager.v202411.PlacementServiceInterface)(this)).createPlacements(inValue); + return retVal.rval; + } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202411.PlacementServiceInterface.createPlacementsAsync(Wrappers.PlacementService.createPlacementsRequest request) { + return base.Channel.createPlacementsAsync(request); + } - /// An error for publisher provided ad break markups in a LiveStreamEvent which are invalid for the given StreamingFormat. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class AdBreakMarkupError : ApiError { - private AdBreakMarkupErrorReason reasonField; + public virtual System.Threading.Tasks.Task createPlacementsAsync(Google.Api.Ads.AdManager.v202411.Placement[] placements) { + Wrappers.PlacementService.createPlacementsRequest inValue = new Wrappers.PlacementService.createPlacementsRequest(); + inValue.placements = placements; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202411.PlacementServiceInterface)(this)).createPlacementsAsync(inValue)).Result.rval); + } - private bool reasonFieldSpecified; + /// Gets a PlacementPage of Placement objects that satisfy the given Statement#query. The following fields are supported for filtering: + /// + /// + /// + /// + /// + /// + ///
PQL Property Object + /// Property
description Placement#description
id Placement#id
name Placement#name
placementCode Placement#placementCode
status Placement#status
lastModifiedDateTime Placement#lastModifiedDateTime
+ ///
+ public virtual Google.Api.Ads.AdManager.v202411.PlacementPage getPlacementsByStatement(Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.getPlacementsByStatement(filterStatement); + } - /// The error reason represented by an enum. + public virtual System.Threading.Tasks.Task getPlacementsByStatementAsync(Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.getPlacementsByStatementAsync(filterStatement); + } + + /// Performs actions on Placement objects that match the + /// given Statement#query. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public AdBreakMarkupErrorReason reason { - get { - return this.reasonField; - } - set { - this.reasonField = value; - this.reasonSpecified = true; - } + public virtual Google.Api.Ads.AdManager.v202411.UpdateResult performPlacementAction(Google.Api.Ads.AdManager.v202411.PlacementAction placementAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.performPlacementAction(placementAction, filterStatement); } - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { - return this.reasonFieldSpecified; - } - set { - this.reasonFieldSpecified = value; - } + public virtual System.Threading.Tasks.Task performPlacementActionAsync(Google.Api.Ads.AdManager.v202411.PlacementAction placementAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.performPlacementActionAsync(placementAction, filterStatement); } - } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + Wrappers.PlacementService.updatePlacementsResponse Google.Api.Ads.AdManager.v202411.PlacementServiceInterface.updatePlacements(Wrappers.PlacementService.updatePlacementsRequest request) { + return base.Channel.updatePlacements(request); + } - /// The reasons for the target error. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AdBreakMarkupError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum AdBreakMarkupErrorReason { - /// The ad break markups provided are not valid for the Streaming Format - /// - INVALID_AD_BREAK_MARKUPS_FOR_STREAMING_FORMAT = 0, - /// The value returned if the actual value is not exposed by the requested API - /// version. + /// Updates the specified Placement objects. /// - UNKNOWN = 1, - } + public virtual Google.Api.Ads.AdManager.v202411.Placement[] updatePlacements(Google.Api.Ads.AdManager.v202411.Placement[] placements) { + Wrappers.PlacementService.updatePlacementsRequest inValue = new Wrappers.PlacementService.updatePlacementsRequest(); + inValue.placements = placements; + Wrappers.PlacementService.updatePlacementsResponse retVal = ((Google.Api.Ads.AdManager.v202411.PlacementServiceInterface)(this)).updatePlacements(inValue); + return retVal.rval; + } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202411.PlacementServiceInterface.updatePlacementsAsync(Wrappers.PlacementService.updatePlacementsRequest request) { + return base.Channel.updatePlacementsAsync(request); + } - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", ConfigurationName = "Google.Api.Ads.AdManager.v202311.LiveStreamEventServiceInterface")] - public interface LiveStreamEventServiceInterface + public virtual System.Threading.Tasks.Task updatePlacementsAsync(Google.Api.Ads.AdManager.v202411.Placement[] placements) { + Wrappers.PlacementService.updatePlacementsRequest inValue = new Wrappers.PlacementService.updatePlacementsRequest(); + inValue.placements = placements; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202411.PlacementServiceInterface)(this)).updatePlacementsAsync(inValue)).Result.rval); + } + } + namespace Wrappers.ProposalService { - // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Wrappers.LiveStreamEventService.createLiveStreamEventsResponse createLiveStreamEvents(Wrappers.LiveStreamEventService.createLiveStreamEventsRequest request); + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "createProposals", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class createProposalsRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("proposals")] + public Google.Api.Ads.AdManager.v202411.Proposal[] proposals; - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task createLiveStreamEventsAsync(Wrappers.LiveStreamEventService.createLiveStreamEventsRequest request); - - // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Wrappers.LiveStreamEventService.createSlatesResponse createSlates(Wrappers.LiveStreamEventService.createSlatesRequest request); + /// Creates a new instance of the + /// class. + public createProposalsRequest() { + } - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task createSlatesAsync(Wrappers.LiveStreamEventService.createSlatesRequest request); + /// Creates a new instance of the + /// class. + public createProposalsRequest(Google.Api.Ads.AdManager.v202411.Proposal[] proposals) { + this.proposals = proposals; + } + } - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v202311.LiveStreamEventPage getLiveStreamEventsByStatement(Google.Api.Ads.AdManager.v202311.Statement filterStatement); - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getLiveStreamEventsByStatementAsync(Google.Api.Ads.AdManager.v202311.Statement filterStatement); + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "createProposalsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class createProposalsResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("rval")] + public Google.Api.Ads.AdManager.v202411.Proposal[] rval; - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v202311.SlatePage getSlatesByStatement(Google.Api.Ads.AdManager.v202311.Statement statement); + /// Creates a new instance of the + /// class. + public createProposalsResponse() { + } - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getSlatesByStatementAsync(Google.Api.Ads.AdManager.v202311.Statement statement); + /// Creates a new instance of the + /// class. + public createProposalsResponse(Google.Api.Ads.AdManager.v202411.Proposal[] rval) { + this.rval = rval; + } + } - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v202311.UpdateResult performLiveStreamEventAction(Google.Api.Ads.AdManager.v202311.LiveStreamEventAction liveStreamEventAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement); - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task performLiveStreamEventActionAsync(Google.Api.Ads.AdManager.v202311.LiveStreamEventAction liveStreamEventAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement); + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "updateProposals", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class updateProposalsRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("proposals")] + public Google.Api.Ads.AdManager.v202411.Proposal[] proposals; - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v202311.UpdateResult performSlateAction(Google.Api.Ads.AdManager.v202311.SlateAction slateAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement); + /// Creates a new instance of the + /// class. + public updateProposalsRequest() { + } - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task performSlateActionAsync(Google.Api.Ads.AdManager.v202311.SlateAction slateAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement); + /// Creates a new instance of the + /// class. + public updateProposalsRequest(Google.Api.Ads.AdManager.v202411.Proposal[] proposals) { + this.proposals = proposals; + } + } - // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Wrappers.LiveStreamEventService.updateLiveStreamEventsResponse updateLiveStreamEvents(Wrappers.LiveStreamEventService.updateLiveStreamEventsRequest request); - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task updateLiveStreamEventsAsync(Wrappers.LiveStreamEventService.updateLiveStreamEventsRequest request); + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "updateProposalsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class updateProposalsResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("rval")] + public Google.Api.Ads.AdManager.v202411.Proposal[] rval; - // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Wrappers.LiveStreamEventService.updateSlatesResponse updateSlates(Wrappers.LiveStreamEventService.updateSlatesRequest request); + /// Creates a new instance of the + /// class. + public updateProposalsResponse() { + } - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task updateSlatesAsync(Wrappers.LiveStreamEventService.updateSlatesRequest request); + /// Creates a new instance of the + /// class. + public updateProposalsResponse(Google.Api.Ads.AdManager.v202411.Proposal[] rval) { + this.rval = rval; + } + } } - - - /// A Slate encapsulates all the information necessary to represent a - /// Slate entity, the video creative used by Dynamic Ad Insertion to fill vacant ad - /// slots. + /// Represents the buyer RFP information associated with a Proposal describing the requirements from the buyer. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class Slate { - private long idField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class BuyerRfp { + private Money costPerUnitField; - private bool idFieldSpecified; + private long unitsField; - private string nameField; + private bool unitsFieldSpecified; - private SlateStatus statusField; + private Money budgetField; - private bool statusFieldSpecified; + private string currencyCodeField; - private TranscodeStatus transcodeStatusField; + private DateTime startDateTimeField; - private bool transcodeStatusFieldSpecified; + private DateTime endDateTimeField; - private string videoSourceUrlField; + private string descriptionField; - private DateTime lastModifiedDateTimeField; + private CreativePlaceholder[] creativePlaceholdersField; - /// The unique ID of the Slate. This value is read-only and is assigned - /// by Google. + private Targeting targetingField; + + private string additionalTermsField; + + private AdExchangeEnvironment adExchangeEnvironmentField; + + private bool adExchangeEnvironmentFieldSpecified; + + private RfpType rfpTypeField; + + private bool rfpTypeFieldSpecified; + + /// CPM for the Proposal in question. Given that this field + /// belongs to a request for proposal (for which initially a Proposal does not yet exist), this field should serve as + /// guidance for publishers to create a Proposal with LineItems reflecting this CPM. This attribute is read-only. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public long id { + public Money costPerUnit { get { - return this.idField; + return this.costPerUnitField; } set { - this.idField = value; - this.idSpecified = true; + this.costPerUnitField = value; } } - /// true, if a value is specified for , + /// The number of impressions per day that a buyer wishes to see in the Proposal derived from the request for proposal in question. + /// This attribute is read-only. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public long units { + get { + return this.unitsField; + } + set { + this.unitsField = value; + this.unitsSpecified = true; + } + } + + /// true, if a value is specified for , /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool idSpecified { + public bool unitsSpecified { get { - return this.idFieldSpecified; + return this.unitsFieldSpecified; } set { - this.idFieldSpecified = value; + this.unitsFieldSpecified = value; } } - /// The name of the Slate. This value is required to create a slate and - /// has a maximum length of 255 characters. + /// Total amount of Money available to spend on this deal. In + /// the case of Preferred Deal, the budget is equal to the maximum amount of money a + /// buyer is willing to spend on a given Proposal, even + /// though the budget might not be spent entirely, as impressions are not + /// guaranteed. This attribute is read-only. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public string name { + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public Money budget { get { - return this.nameField; + return this.budgetField; } set { - this.nameField = value; + this.budgetField = value; } } - /// The status of this Slate. This attribute is read-only and is - /// assigned by Google. Slates are created in the SlateStatus#ACTIVE state. + /// Currency code for this deal's budget and CPM. This attribute is read-only. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public SlateStatus status { + [System.Xml.Serialization.XmlElementAttribute(Order = 3)] + public string currencyCode { get { - return this.statusField; + return this.currencyCodeField; } set { - this.statusField = value; - this.statusSpecified = true; + this.currencyCodeField = value; } } - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool statusSpecified { + /// The DateTime in which the proposed deal should start + /// serving. This attribute is read-only. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 4)] + public DateTime startDateTime { get { - return this.statusFieldSpecified; + return this.startDateTimeField; } set { - this.statusFieldSpecified = value; + this.startDateTimeField = value; } } - /// Server side transcoding status of the current slate. + /// The DateTime in which the proposed deal should end + /// serving. This attribute is read-only. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public TranscodeStatus transcodeStatus { + [System.Xml.Serialization.XmlElementAttribute(Order = 5)] + public DateTime endDateTime { get { - return this.transcodeStatusField; + return this.endDateTimeField; } set { - this.transcodeStatusField = value; - this.transcodeStatusSpecified = true; + this.endDateTimeField = value; + } + } + + /// A description of the proposed deal. This can be used for the buyer to tell the + /// publisher more detailed information about the deal in question. This attribute + /// is read-only. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 6)] + public string description { + get { + return this.descriptionField; + } + set { + this.descriptionField = value; + } + } + + /// A list of inventory sizes in which creatives will be eventually served. This + /// attribute is read-only. + /// + [System.Xml.Serialization.XmlElementAttribute("creativePlaceholders", Order = 7)] + public CreativePlaceholder[] creativePlaceholders { + get { + return this.creativePlaceholdersField; + } + set { + this.creativePlaceholdersField = value; + } + } + + /// Targeting information for the proposal in question. Currently this field only + /// contains GeoTargeting information. This attribute is read-only. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 8)] + public Targeting targeting { + get { + return this.targetingField; + } + set { + this.targetingField = value; + } + } + + /// Additional terms of the deal in question. This field can be used to state more + /// specific targeting information for the deal, as well as any additional + /// information regarding this deal. Given that this field belongs to a request for + /// proposal (for which initially a Proposal does not yet + /// exist), this field can be populated by buyers to specify additional information + /// that they wish publishers to incorporate into the Proposal derived from this request for proposal. This + /// attribute is read-only. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 9)] + public string additionalTerms { + get { + return this.additionalTermsField; + } + set { + this.additionalTermsField = value; + } + } + + /// Identifies the format of the inventory or "channel" through which the ad serves. + /// Environments currently supported include AdExchangeEnvironment#DISPLAY, AdExchangeEnvironment#VIDEO, and AdExchangeEnvironment#MOBILE. This + /// attribute is read-only. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 10)] + public AdExchangeEnvironment adExchangeEnvironment { + get { + return this.adExchangeEnvironmentField; + } + set { + this.adExchangeEnvironmentField = value; + this.adExchangeEnvironmentSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="adExchangeEnvironment" />, false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool transcodeStatusSpecified { + public bool adExchangeEnvironmentSpecified { get { - return this.transcodeStatusFieldSpecified; + return this.adExchangeEnvironmentFieldSpecified; } set { - this.transcodeStatusFieldSpecified = value; + this.adExchangeEnvironmentFieldSpecified = value; } } - /// The location of the original asset if publisher provided and slate is externally - /// hosted. + /// Deal type; either Programmatic Guaranteed or Preferred Deal. This field + /// corresponds to the type of Proposal that a buyer wishes + /// to negotiate with a seller. This attribute is read-only. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public string videoSourceUrl { + [System.Xml.Serialization.XmlElementAttribute(Order = 11)] + public RfpType rfpType { get { - return this.videoSourceUrlField; + return this.rfpTypeField; } set { - this.videoSourceUrlField = value; + this.rfpTypeField = value; + this.rfpTypeSpecified = true; } } - /// The date and time this slate was last modified. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 5)] - public DateTime lastModifiedDateTime { + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool rfpTypeSpecified { get { - return this.lastModifiedDateTimeField; + return this.rfpTypeFieldSpecified; } set { - this.lastModifiedDateTimeField = value; + this.rfpTypeFieldSpecified = value; } } } - /// Describes the status of a Slate object. + /// Identifies the format of inventory or "channel" in which ads serve. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum SlateStatus { - /// Indicates the Slate has been created and is eligible for - /// streaming. + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum AdExchangeEnvironment { + /// Ads serve in a browser. /// - ACTIVE = 0, - /// Indicates the Slate has been archived. + DISPLAY = 0, + /// In-stream video ads serve in a video. /// - ARCHIVED = 1, + VIDEO = 1, + /// In-stream video ads serve in a game. + /// + GAMES = 2, + /// Ads serve in a mobile app. + /// + MOBILE = 3, + /// Out-stream video ads serve in a mobile app. Examples include mobile app + /// interstitials and mobile app rewarded ads. + /// + MOBILE_OUTSTREAM_VIDEO = 5, + /// Out-stream video ads serve in a browser. Examples include in-feed and in-banner + /// video ads. + /// + DISPLAY_OUTSTREAM_VIDEO = 6, /// The value returned if the actual value is not exposed by the requested API /// version. /// - UNKNOWN = 2, + UNKNOWN = 4, } - /// Possible server side transcoding states. + /// Decribes the type of BuyerRfp. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum TranscodeStatus { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum RfpType { + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// UNKNOWN = 0, - NOT_READY = 1, - COMPLETED = 2, - FAILED = 3, - NEEDS_TRANSCODE = 4, - IN_PROGRESS = 5, + /// Indicates the BuyerRfp is a Programmatic Guaranteed RFP. + /// + PROGRAMMATIC_GUARANTEED = 1, + /// Indicates the BuyerRfp is a Preferred Deal RFP. + /// + PREFERRED_DEAL = 2, } - /// Captures a page of LiveStreamEvent objects. + /// Marketplace info for a proposal with a corresponding order in Marketplace. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class LiveStreamEventPage { - private int totalResultSetSizeField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ProposalMarketplaceInfo { + private string marketplaceIdField; - private bool totalResultSetSizeFieldSpecified; + private bool hasLocalVersionEditsField; - private int startIndexField; + private bool hasLocalVersionEditsFieldSpecified; - private bool startIndexFieldSpecified; + private NegotiationStatus negotiationStatusField; - private LiveStreamEvent[] resultsField; + private bool negotiationStatusFieldSpecified; - /// The size of the total result set to which this page belongs. + private string marketplaceCommentField; + + private bool isNewVersionFromBuyerField; + + private bool isNewVersionFromBuyerFieldSpecified; + + private long buyerAccountIdField; + + private bool buyerAccountIdFieldSpecified; + + private string partnerClientIdField; + + /// The marketplace ID of this proposal. This is a shared ID between Ad Manager and + /// the buy-side platform. This value is null if the proposal has not been sent to + /// the buyer. This attribute is read-only. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public int totalResultSetSize { + public string marketplaceId { get { - return this.totalResultSetSizeField; + return this.marketplaceIdField; } set { - this.totalResultSetSizeField = value; - this.totalResultSetSizeSpecified = true; + this.marketplaceIdField = value; + } + } + + /// Whether the non-free-editable fields of a Proposal are + /// opened for edit. A proposal that is open for edit will not receive buyer updates + /// from Marketplace. If the buyer updates the proposal while this is open for local + /// editing, Google will set #isNewVersionFromBuyer to . You + /// will then need to call DiscardProposalDrafts + /// to revert your edits to get the buyer's latest changes. This attribute is + /// read-only. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public bool hasLocalVersionEdits { + get { + return this.hasLocalVersionEditsField; + } + set { + this.hasLocalVersionEditsField = value; + this.hasLocalVersionEditsSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="hasLocalVersionEdits" />, false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool totalResultSetSizeSpecified { + public bool hasLocalVersionEditsSpecified { get { - return this.totalResultSetSizeFieldSpecified; + return this.hasLocalVersionEditsFieldSpecified; } set { - this.totalResultSetSizeFieldSpecified = value; + this.hasLocalVersionEditsFieldSpecified = value; } } - /// The absolute index in the total result set on which this page begins. + /// The negotiation status of the Proposal. This attribute is + /// read-only. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public int startIndex { + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public NegotiationStatus negotiationStatus { get { - return this.startIndexField; + return this.negotiationStatusField; } set { - this.startIndexField = value; - this.startIndexSpecified = true; + this.negotiationStatusField = value; + this.negotiationStatusSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool startIndexSpecified { + public bool negotiationStatusSpecified { get { - return this.startIndexFieldSpecified; + return this.negotiationStatusFieldSpecified; } set { - this.startIndexFieldSpecified = value; + this.negotiationStatusFieldSpecified = value; } } - /// The collection of live stream events contained within this page. + /// The comment on the Proposal to be sent to the buyer. /// - [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] - public LiveStreamEvent[] results { + [System.Xml.Serialization.XmlElementAttribute(Order = 3)] + public string marketplaceComment { get { - return this.resultsField; + return this.marketplaceCommentField; } set { - this.resultsField = value; + this.marketplaceCommentField = value; } } - } - - - /// Captures a page of Slate objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class SlatePage { - private int totalResultSetSizeField; - - private bool totalResultSetSizeFieldSpecified; - - private int startIndexField; - - private bool startIndexFieldSpecified; - - private Slate[] resultsField; - /// The size of the total result set to which this page belongs. + /// Indicates that the buyer has made updates to the proposal on Marketplace. This + /// attribute is only meaningful if the proposal is open for edit (i.e., #hasLocalVersionEdits is true) + /// This attribute is read-only. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public int totalResultSetSize { + [System.Xml.Serialization.XmlElementAttribute(Order = 4)] + public bool isNewVersionFromBuyer { get { - return this.totalResultSetSizeField; + return this.isNewVersionFromBuyerField; } set { - this.totalResultSetSizeField = value; - this.totalResultSetSizeSpecified = true; + this.isNewVersionFromBuyerField = value; + this.isNewVersionFromBuyerSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="isNewVersionFromBuyer" />, false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool totalResultSetSizeSpecified { + public bool isNewVersionFromBuyerSpecified { get { - return this.totalResultSetSizeFieldSpecified; + return this.isNewVersionFromBuyerFieldSpecified; } set { - this.totalResultSetSizeFieldSpecified = value; + this.isNewVersionFromBuyerFieldSpecified = value; } } - /// The absolute index in the total result set on which this page begins. + /// The Authorized Buyers ID of the buyer that this Proposal is being + /// negotiated with. This attribute is + /// required. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public int startIndex { + [System.Xml.Serialization.XmlElementAttribute(Order = 5)] + public long buyerAccountId { get { - return this.startIndexField; + return this.buyerAccountIdField; } set { - this.startIndexField = value; - this.startIndexSpecified = true; + this.buyerAccountIdField = value; + this.buyerAccountIdSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool startIndexSpecified { + public bool buyerAccountIdSpecified { get { - return this.startIndexFieldSpecified; + return this.buyerAccountIdFieldSpecified; } set { - this.startIndexFieldSpecified = value; + this.buyerAccountIdFieldSpecified = value; } } - /// The collection of live stream events contained within this page. + /// The ID used to represent Display & Video 360 client buyer partner ID (if + /// Display & Video 360) or Authorized Buyers client buyer account ID. This + /// field is readonly and assigned by Google. This attribute is read-only. /// - [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] - public Slate[] results { + [System.Xml.Serialization.XmlElementAttribute(Order = 6)] + public string partnerClientId { get { - return this.resultsField; + return this.partnerClientIdField; } set { - this.resultsField = value; + this.partnerClientIdField = value; } } } - /// Represents the actions that can be performed on LiveStreamEvent objects. + /// Represents the proposal's negotiation status for + /// Marketplace. /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(RefreshLiveStreamEventMasterPlaylists))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(PauseLiveStreamEvents))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(PauseLiveStreamEventAds))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ArchiveLiveStreamEvents))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ActivateLiveStreamEvents))] [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public abstract partial class LiveStreamEventAction { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum NegotiationStatus { + /// Indicates that a new Proposal has been created by the + /// seller and has not been sent to Marketplace yet. + /// + SELLER_INITIATED = 0, + /// Indicates that a new Proposal has been created by the + /// buyer and is awaiting seller action. + /// + BUYER_INITIATED = 1, + /// Indicates that a Proposal has been updated by the buyer + /// and is awaiting seller approval. + /// + AWAITING_SELLER_REVIEW = 2, + /// Indicates that a Proposal has been updated by the seller + /// and is awaiting buyer approval. + /// + AWAITING_BUYER_REVIEW = 3, + /// Indicates that the seller has accepted the Proposal and + /// is awaiting the buyer's acceptance. + /// + ONLY_SELLER_ACCEPTED = 4, + /// Indicates that the Proposal has been accepted by both the + /// buyer and the seller. + /// + FINALIZED = 5, + /// Indicates that negotiations for the Proposal have been + /// cancelled. + /// + CANCELLED = 6, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 7, } - /// The action used for refreshing the master playlists of LiveStreamEvent objects.

This action will only get - /// applied to live streams with a refresh type of RefreshType#MANUAL.

+ /// A SalespersonSplit represents a salesperson. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class RefreshLiveStreamEventMasterPlaylists : LiveStreamEventAction { - } + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class SalespersonSplit { + private long userIdField; + private bool userIdFieldSpecified; - /// The action used for pausing LiveStreamEvent - /// objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class PauseLiveStreamEvents : LiveStreamEventAction { + /// The unique ID of the User responsible for the sales of the Proposal. This attribute + /// is required. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public long userId { + get { + return this.userIdField; + } + set { + this.userIdField = value; + this.userIdSpecified = true; + } + } + + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool userIdSpecified { + get { + return this.userIdFieldSpecified; + } + set { + this.userIdFieldSpecified = value; + } + } } - /// The action used for pausing ads for LiveStreamEvent objects. + /// A ProposalCompanyAssociation represents a Company associated with the Proposal and a set + /// of Contact objects belonging to the company. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class PauseLiveStreamEventAds : LiveStreamEventAction { - } + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ProposalCompanyAssociation { + private long companyIdField; + private bool companyIdFieldSpecified; - /// The action used for archiving LiveStreamEvent - /// objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ArchiveLiveStreamEvents : LiveStreamEventAction { - } + private ProposalCompanyAssociationType typeField; + private bool typeFieldSpecified; - /// The action used for activating LiveStreamEvent - /// objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ActivateLiveStreamEvents : LiveStreamEventAction { - } + private long[] contactIdsField; + /// The unique ID of the Company associated with the Proposal. This attribute + /// is required. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public long companyId { + get { + return this.companyIdField; + } + set { + this.companyIdField = value; + this.companyIdSpecified = true; + } + } - /// Represents the actions that can be performed on slates. - /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(UnarchiveSlates))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ArchiveSlates))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public abstract partial class SlateAction { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool companyIdSpecified { + get { + return this.companyIdFieldSpecified; + } + set { + this.companyIdFieldSpecified = value; + } + } + + /// The association type of the Company and Proposal. This attribute + /// is required. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public ProposalCompanyAssociationType type { + get { + return this.typeField; + } + set { + this.typeField = value; + this.typeSpecified = true; + } + } + + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool typeSpecified { + get { + return this.typeFieldSpecified; + } + set { + this.typeFieldSpecified = value; + } + } + + /// List of unique IDs for Contact objects of the Company. + /// + [System.Xml.Serialization.XmlElementAttribute("contactIds", Order = 2)] + public long[] contactIds { + get { + return this.contactIdsField; + } + set { + this.contactIdsField = value; + } + } } - /// The action used for unarchiving slates. + /// Describes the type of a Company associated with a Proposal. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class UnarchiveSlates : SlateAction { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum ProposalCompanyAssociationType { + /// The company is a primary agency. + /// + PRIMARY_AGENCY = 0, + /// The company is a billing agency. + /// + BILLING_AGENCY = 1, + /// The company is a branding agency. + /// + BRANDING_AGENCY = 2, + /// The company is other type of agency. + /// + OTHER_AGENCY = 3, + /// The company is advertiser. + /// + ADVERTISER = 4, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 5, } - /// The action used for archiving slates. + /// A Proposal represents an agreement between an interactive + /// advertising seller and a buyer that specifies the details of an advertising + /// campaign. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ArchiveSlates : SlateAction { - } + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class Proposal { + private long idField; + private bool idFieldSpecified; - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public interface LiveStreamEventServiceInterfaceChannel : Google.Api.Ads.AdManager.v202311.LiveStreamEventServiceInterface, System.ServiceModel.IClientChannel - { - } + private bool isProgrammaticField; + private bool isProgrammaticFieldSpecified; - /// Provides methods for creating, updating and retrieving LiveStreamEvent objects.

This feature is only - /// available for Ad Manager 360 networks. Publishers will need to be activated - /// through the Video > Live streams tab in the Ad Manager UI. For access, - /// apply through your account manager.

- ///
- [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public partial class LiveStreamEventService : AdManagerSoapClient, ILiveStreamEventService { - /// Creates a new instance of the - /// class. - public LiveStreamEventService() { - } + private long dfpOrderIdField; - /// Creates a new instance of the - /// class. - public LiveStreamEventService(string endpointConfigurationName) - : base(endpointConfigurationName) { - } + private bool dfpOrderIdFieldSpecified; - /// Creates a new instance of the - /// class. - public LiveStreamEventService(string endpointConfigurationName, string remoteAddress) - : base(endpointConfigurationName, remoteAddress) { - } + private string nameField; - /// Creates a new instance of the - /// class. - public LiveStreamEventService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) - : base(endpointConfigurationName, remoteAddress) { - } + private DateTime startDateTimeField; - /// Creates a new instance of the - /// class. - public LiveStreamEventService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) - : base(binding, remoteAddress) { - } + private DateTime endDateTimeField; - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.LiveStreamEventService.createLiveStreamEventsResponse Google.Api.Ads.AdManager.v202311.LiveStreamEventServiceInterface.createLiveStreamEvents(Wrappers.LiveStreamEventService.createLiveStreamEventsRequest request) { - return base.Channel.createLiveStreamEvents(request); - } + private ProposalStatus statusField; - /// Creates new LiveStreamEvent objects.

The - /// following fields are required:

- ///
- public virtual Google.Api.Ads.AdManager.v202311.LiveStreamEvent[] createLiveStreamEvents(Google.Api.Ads.AdManager.v202311.LiveStreamEvent[] liveStreamEvents) { - Wrappers.LiveStreamEventService.createLiveStreamEventsRequest inValue = new Wrappers.LiveStreamEventService.createLiveStreamEventsRequest(); - inValue.liveStreamEvents = liveStreamEvents; - Wrappers.LiveStreamEventService.createLiveStreamEventsResponse retVal = ((Google.Api.Ads.AdManager.v202311.LiveStreamEventServiceInterface)(this)).createLiveStreamEvents(inValue); - return retVal.rval; - } + private bool statusFieldSpecified; - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202311.LiveStreamEventServiceInterface.createLiveStreamEventsAsync(Wrappers.LiveStreamEventService.createLiveStreamEventsRequest request) { - return base.Channel.createLiveStreamEventsAsync(request); - } + private bool isArchivedField; - public virtual System.Threading.Tasks.Task createLiveStreamEventsAsync(Google.Api.Ads.AdManager.v202311.LiveStreamEvent[] liveStreamEvents) { - Wrappers.LiveStreamEventService.createLiveStreamEventsRequest inValue = new Wrappers.LiveStreamEventService.createLiveStreamEventsRequest(); - inValue.liveStreamEvents = liveStreamEvents; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202311.LiveStreamEventServiceInterface)(this)).createLiveStreamEventsAsync(inValue)).Result.rval); - } + private bool isArchivedFieldSpecified; - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.LiveStreamEventService.createSlatesResponse Google.Api.Ads.AdManager.v202311.LiveStreamEventServiceInterface.createSlates(Wrappers.LiveStreamEventService.createSlatesRequest request) { - return base.Channel.createSlates(request); - } + private ProposalCompanyAssociation advertiserField; - /// Create new slates.

A slate creative is served as backup content in a live - /// stream event when no other creatives are eligible to be served.

- ///
- public virtual Google.Api.Ads.AdManager.v202311.Slate[] createSlates(Google.Api.Ads.AdManager.v202311.Slate[] slates) { - Wrappers.LiveStreamEventService.createSlatesRequest inValue = new Wrappers.LiveStreamEventService.createSlatesRequest(); - inValue.slates = slates; - Wrappers.LiveStreamEventService.createSlatesResponse retVal = ((Google.Api.Ads.AdManager.v202311.LiveStreamEventServiceInterface)(this)).createSlates(inValue); - return retVal.rval; - } + private ProposalCompanyAssociation[] agenciesField; - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202311.LiveStreamEventServiceInterface.createSlatesAsync(Wrappers.LiveStreamEventService.createSlatesRequest request) { - return base.Channel.createSlatesAsync(request); - } + private string internalNotesField; - public virtual System.Threading.Tasks.Task createSlatesAsync(Google.Api.Ads.AdManager.v202311.Slate[] slates) { - Wrappers.LiveStreamEventService.createSlatesRequest inValue = new Wrappers.LiveStreamEventService.createSlatesRequest(); - inValue.slates = slates; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202311.LiveStreamEventServiceInterface)(this)).createSlatesAsync(inValue)).Result.rval); - } + private SalespersonSplit primarySalespersonField; - /// Gets a LiveStreamEventPage of LiveStreamEvent objects that satisfy the given Statement#query. The following fields are supported - /// for filtering: - /// - /// - /// - /// - /// - /// - /// - /// - ///
PQL Property Object Property
id LiveStreamEvent#id
slateCreativeId LiveStreamEvent#slateCreativeId
assetKey LiveStreamEvent#assetKey
streamCreateDaiAuthenticationKeyIds LiveStreamEvent#streamCreateDaiAuthenticationKeyIds
dynamicAdInsertionType LiveStreamEvent#dynamicAdInsertionType
streamingFormat LiveStreamEvent#streamingFormat
customAssetKey LiveStreamEvent#customAssetKey
daiEncodingProfileIds LiveStreamEvent#daiEncodingProfileIds
segmentUrlAuthenticationKeyIds LiveStreamEvent#segmentUrlAuthenticationKeyIds
- ///
- public virtual Google.Api.Ads.AdManager.v202311.LiveStreamEventPage getLiveStreamEventsByStatement(Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.getLiveStreamEventsByStatement(filterStatement); - } + private long[] salesPlannerIdsField; - public virtual System.Threading.Tasks.Task getLiveStreamEventsByStatementAsync(Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.getLiveStreamEventsByStatementAsync(filterStatement); - } + private long primaryTraffickerIdField; - /// Gets a SlatePage of Slate objects - /// that satisfy the given Statement#query. The following fields are - /// supported for filtering: - /// - ///
PQL Property Object Property
id Slate#id
name Slate#name
lastModifiedDateTime Slate#lastModifiedDateTime
- ///
- public virtual Google.Api.Ads.AdManager.v202311.SlatePage getSlatesByStatement(Google.Api.Ads.AdManager.v202311.Statement statement) { - return base.Channel.getSlatesByStatement(statement); - } + private bool primaryTraffickerIdFieldSpecified; - public virtual System.Threading.Tasks.Task getSlatesByStatementAsync(Google.Api.Ads.AdManager.v202311.Statement statement) { - return base.Channel.getSlatesByStatementAsync(statement); - } + private long[] sellerContactIdsField; - /// Performs actions on LiveStreamEvent objects that - /// match the given Statement#query. - /// - public virtual Google.Api.Ads.AdManager.v202311.UpdateResult performLiveStreamEventAction(Google.Api.Ads.AdManager.v202311.LiveStreamEventAction liveStreamEventAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.performLiveStreamEventAction(liveStreamEventAction, filterStatement); - } + private long[] appliedTeamIdsField; - public virtual System.Threading.Tasks.Task performLiveStreamEventActionAsync(Google.Api.Ads.AdManager.v202311.LiveStreamEventAction liveStreamEventAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.performLiveStreamEventActionAsync(liveStreamEventAction, filterStatement); - } + private BaseCustomFieldValue[] customFieldValuesField; - /// Performs actions on slates that match the given Statement. - /// - public virtual Google.Api.Ads.AdManager.v202311.UpdateResult performSlateAction(Google.Api.Ads.AdManager.v202311.SlateAction slateAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.performSlateAction(slateAction, filterStatement); - } + private AppliedLabel[] appliedLabelsField; - public virtual System.Threading.Tasks.Task performSlateActionAsync(Google.Api.Ads.AdManager.v202311.SlateAction slateAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.performSlateActionAsync(slateAction, filterStatement); - } + private AppliedLabel[] effectiveAppliedLabelsField; - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.LiveStreamEventService.updateLiveStreamEventsResponse Google.Api.Ads.AdManager.v202311.LiveStreamEventServiceInterface.updateLiveStreamEvents(Wrappers.LiveStreamEventService.updateLiveStreamEventsRequest request) { - return base.Channel.updateLiveStreamEvents(request); - } + private string currencyCodeField; - /// Updates the specified LiveStreamEvent objects. - /// - public virtual Google.Api.Ads.AdManager.v202311.LiveStreamEvent[] updateLiveStreamEvents(Google.Api.Ads.AdManager.v202311.LiveStreamEvent[] liveStreamEvents) { - Wrappers.LiveStreamEventService.updateLiveStreamEventsRequest inValue = new Wrappers.LiveStreamEventService.updateLiveStreamEventsRequest(); - inValue.liveStreamEvents = liveStreamEvents; - Wrappers.LiveStreamEventService.updateLiveStreamEventsResponse retVal = ((Google.Api.Ads.AdManager.v202311.LiveStreamEventServiceInterface)(this)).updateLiveStreamEvents(inValue); - return retVal.rval; - } + private bool isSoldField; - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202311.LiveStreamEventServiceInterface.updateLiveStreamEventsAsync(Wrappers.LiveStreamEventService.updateLiveStreamEventsRequest request) { - return base.Channel.updateLiveStreamEventsAsync(request); - } + private bool isSoldFieldSpecified; - public virtual System.Threading.Tasks.Task updateLiveStreamEventsAsync(Google.Api.Ads.AdManager.v202311.LiveStreamEvent[] liveStreamEvents) { - Wrappers.LiveStreamEventService.updateLiveStreamEventsRequest inValue = new Wrappers.LiveStreamEventService.updateLiveStreamEventsRequest(); - inValue.liveStreamEvents = liveStreamEvents; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202311.LiveStreamEventServiceInterface)(this)).updateLiveStreamEventsAsync(inValue)).Result.rval); - } + private DateTime lastModifiedDateTimeField; - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.LiveStreamEventService.updateSlatesResponse Google.Api.Ads.AdManager.v202311.LiveStreamEventServiceInterface.updateSlates(Wrappers.LiveStreamEventService.updateSlatesRequest request) { - return base.Channel.updateSlates(request); - } + private ProposalMarketplaceInfo marketplaceInfoField; - /// Update existing slates.

Only the slateName is editable.

- ///
- public virtual Google.Api.Ads.AdManager.v202311.Slate[] updateSlates(Google.Api.Ads.AdManager.v202311.Slate[] slates) { - Wrappers.LiveStreamEventService.updateSlatesRequest inValue = new Wrappers.LiveStreamEventService.updateSlatesRequest(); - inValue.slates = slates; - Wrappers.LiveStreamEventService.updateSlatesResponse retVal = ((Google.Api.Ads.AdManager.v202311.LiveStreamEventServiceInterface)(this)).updateSlates(inValue); - return retVal.rval; - } + private BuyerRfp buyerRfpField; - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202311.LiveStreamEventServiceInterface.updateSlatesAsync(Wrappers.LiveStreamEventService.updateSlatesRequest request) { - return base.Channel.updateSlatesAsync(request); - } + private bool hasBuyerRfpField; - public virtual System.Threading.Tasks.Task updateSlatesAsync(Google.Api.Ads.AdManager.v202311.Slate[] slates) { - Wrappers.LiveStreamEventService.updateSlatesRequest inValue = new Wrappers.LiveStreamEventService.updateSlatesRequest(); - inValue.slates = slates; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202311.LiveStreamEventServiceInterface)(this)).updateSlatesAsync(inValue)).Result.rval); - } - } - namespace Wrappers.MobileApplicationService - { - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "createMobileApplications", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class createMobileApplicationsRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("mobileApplications")] - public Google.Api.Ads.AdManager.v202311.MobileApplication[] mobileApplications; + private bool hasBuyerRfpFieldSpecified; - /// Creates a new instance of the class. - public createMobileApplicationsRequest() { - } + private bool deliveryPausingEnabledField; - /// Creates a new instance of the class. - public createMobileApplicationsRequest(Google.Api.Ads.AdManager.v202311.MobileApplication[] mobileApplications) { - this.mobileApplications = mobileApplications; + private bool deliveryPausingEnabledFieldSpecified; + + /// The unique ID of the Proposal. This attribute is read-only. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public long id { + get { + return this.idField; + } + set { + this.idField = value; + this.idSpecified = true; } } - - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "createMobileApplicationsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class createMobileApplicationsResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v202311.MobileApplication[] rval; - - /// Creates a new instance of the class. - public createMobileApplicationsResponse() { + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool idSpecified { + get { + return this.idFieldSpecified; } - - /// Creates a new instance of the class. - public createMobileApplicationsResponse(Google.Api.Ads.AdManager.v202311.MobileApplication[] rval) { - this.rval = rval; + set { + this.idFieldSpecified = value; } } - - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "updateMobileApplications", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class updateMobileApplicationsRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("mobileApplications")] - public Google.Api.Ads.AdManager.v202311.MobileApplication[] mobileApplications; - - /// Creates a new instance of the class. - public updateMobileApplicationsRequest() { + /// Flag that specifies whether this Proposal is for programmatic + /// deals. This value is default to false. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public bool isProgrammatic { + get { + return this.isProgrammaticField; } - - /// Creates a new instance of the class. - public updateMobileApplicationsRequest(Google.Api.Ads.AdManager.v202311.MobileApplication[] mobileApplications) { - this.mobileApplications = mobileApplications; + set { + this.isProgrammaticField = value; + this.isProgrammaticSpecified = true; } } - - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "updateMobileApplicationsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class updateMobileApplicationsResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v202311.MobileApplication[] rval; - - /// Creates a new instance of the class. - public updateMobileApplicationsResponse() { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool isProgrammaticSpecified { + get { + return this.isProgrammaticFieldSpecified; } - - /// Creates a new instance of the class. - public updateMobileApplicationsResponse(Google.Api.Ads.AdManager.v202311.MobileApplication[] rval) { - this.rval = rval; + set { + this.isProgrammaticFieldSpecified = value; } } - } - /// A mobile application that has been added to or "claimed" by the network to be - /// used for targeting purposes. These mobile apps can come from various app stores. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class MobileApplication { - private long idField; - - private bool idFieldSpecified; - - private long applicationIdField; - - private bool applicationIdFieldSpecified; - - private string displayNameField; - - private string appStoreIdField; - - private MobileApplicationStore[] appStoresField; - - private bool isArchivedField; - - private bool isArchivedFieldSpecified; - - private string appStoreNameField; - - private string applicationCodeField; - - private string developerNameField; - - private MobileApplicationPlatform platformField; - private bool platformFieldSpecified; - - private bool isFreeField; - - private bool isFreeFieldSpecified; - - private string downloadUrlField; - - private MobileApplicationApprovalStatus approvalStatusField; - - private bool approvalStatusFieldSpecified; - - /// Uniquely identifies the mobile application. This attribute is read-only and is - /// assigned by Google when a mobile application is claimed. + /// The unique ID of corresponding Order. This will be + /// null if the Proposal has not been pushed to Ad + /// Manager. This attribute is read-only. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public long id { + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public long dfpOrderId { get { - return this.idField; + return this.dfpOrderIdField; } set { - this.idField = value; - this.idSpecified = true; + this.dfpOrderIdField = value; + this.dfpOrderIdSpecified = true; } } - /// true, if a value is specified for , - /// false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool idSpecified { + public bool dfpOrderIdSpecified { get { - return this.idFieldSpecified; + return this.dfpOrderIdFieldSpecified; } set { - this.idFieldSpecified = value; + this.dfpOrderIdFieldSpecified = value; } } - /// Uniquely identifies the mobile application. This attribute is read-only and is - /// assigned by Google when a mobile application is claimed. The #id field is being deprecated in favor of this new ID space. + /// The name of the Proposal. This value has a maximum length of 255 + /// characters. This value is copied to Order#name when the + /// proposal turns into an order. This attribute can be configured as editable after + /// the proposal has been submitted. Please check with your network administrator + /// for editable fields configuration. This + /// attribute is required. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public long applicationId { + [System.Xml.Serialization.XmlElementAttribute(Order = 3)] + public string name { get { - return this.applicationIdField; + return this.nameField; } set { - this.applicationIdField = value; - this.applicationIdSpecified = true; + this.nameField = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool applicationIdSpecified { + /// The date and time at which the order and line items associated with the + /// Proposal are eligible to begin serving. This attribute is derived + /// from the proposal line item of the proposal which has the earliest ProposalLineItem#startDateTime. This + /// attribute will be null, if this proposal has no related line items, or none of + /// its line items have a start time. This attribute is read-only. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 4)] + public DateTime startDateTime { get { - return this.applicationIdFieldSpecified; + return this.startDateTimeField; } set { - this.applicationIdFieldSpecified = value; + this.startDateTimeField = value; } } - /// The display name of the mobile application. This attribute is required and has a - /// maximum length of 255 characters. + /// The date and time at which the order and line items associated with the + /// Proposal stop being served. This attribute is derived from the + /// proposal line item of the proposal which has the latest ProposalLineItem#endDateTime. This + /// attribute will be null, if this proposal has no related line items, or none of + /// its line items have an end time. This attribute is read-only. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public string displayName { + [System.Xml.Serialization.XmlElementAttribute(Order = 5)] + public DateTime endDateTime { get { - return this.displayNameField; + return this.endDateTimeField; } set { - this.displayNameField = value; + this.endDateTimeField = value; } } - /// The app store ID of the app to claim. This attribute is required for creation - /// and then is read-only. + /// The status of the Proposal. This attribute is read-only. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public string appStoreId { + [System.Xml.Serialization.XmlElementAttribute(Order = 6)] + public ProposalStatus status { get { - return this.appStoreIdField; + return this.statusField; } set { - this.appStoreIdField = value; + this.statusField = value; + this.statusSpecified = true; } } - /// The app stores the mobile application belongs to. This attribute is required for - /// creation and is mutable to allow for third party app store linking. - /// - [System.Xml.Serialization.XmlElementAttribute("appStores", Order = 4)] - public MobileApplicationStore[] appStores { + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool statusSpecified { get { - return this.appStoresField; + return this.statusFieldSpecified; } set { - this.appStoresField = value; + this.statusFieldSpecified = value; } } - /// The archival status of the mobile application. This attribute is read-only. + /// The archival status of the Proposal. This attribute is read-only. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 5)] + [System.Xml.Serialization.XmlElementAttribute(Order = 7)] public bool isArchived { get { return this.isArchivedField; @@ -37722,347 +38762,379 @@ public bool isArchivedSpecified { } } - /// The name of the application on the app store. This attribute is read-only and - /// populated by Google. + /// The advertiser, to which this Proposal belongs, and a set of Contact objects associated with the advertiser. The ProposalCompanyAssociation#type of + /// this attribute should be ProposalCompanyAssociationType#ADVERTISER. + /// This attribute is required when the proposal turns into an order, and its ProposalCompanyAssociation#companyId + /// will be copied to Order#advertiserId. This + /// attribute becomes readonly once the Proposal has been pushed. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 6)] - public string appStoreName { + [System.Xml.Serialization.XmlElementAttribute(Order = 8)] + public ProposalCompanyAssociation advertiser { get { - return this.appStoreNameField; + return this.advertiserField; } set { - this.appStoreNameField = value; + this.advertiserField = value; } } - /// The application code used to identify the app in the SDK. This attribute is - /// read-only and populated by Google.

Note that the UI refers to this as "App - /// ID".

+ /// List of agencies and the set of Contact objects associated + /// with each agency. This attribute is optional. A Proposal only has + /// at most one Company with ProposalCompanyAssociationType#PRIMARY_AGENCY type, but a Company can appear more than once with different ProposalCompanyAssociationType values. + /// If primary agency exists, its ProposalCompanyAssociation#companyId + /// will be copied to Order#agencyId when the proposal + /// turns into an order. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 7)] - public string applicationCode { + [System.Xml.Serialization.XmlElementAttribute("agencies", Order = 9)] + public ProposalCompanyAssociation[] agencies { get { - return this.applicationCodeField; + return this.agenciesField; } set { - this.applicationCodeField = value; + this.agenciesField = value; } } - /// The name of the developer of the mobile application. This attribute is read-only - /// and populated by Google. + /// Provides any additional notes that may annotate the . This + /// attribute is optional and has a maximum length of 65,535 characters. This + /// attribute can be configured as editable after the proposal has been submitted. + /// Please check with your network administrator for editable fields configuration. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 8)] - public string developerName { + [System.Xml.Serialization.XmlElementAttribute(Order = 10)] + public string internalNotes { get { - return this.developerNameField; + return this.internalNotesField; } set { - this.developerNameField = value; + this.internalNotesField = value; } } - /// The platform the mobile application runs on. This attribute is read-only and - /// populated by Google. + /// The primary salesperson who brokered the transaction with the #advertiser. This attribute is required when the proposal + /// turns into an order. This attribute can be configured as editable after the + /// proposal has been submitted. Please check with your network administrator for + /// editable fields configuration. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 9)] - public MobileApplicationPlatform platform { + [System.Xml.Serialization.XmlElementAttribute(Order = 11)] + public SalespersonSplit primarySalesperson { get { - return this.platformField; + return this.primarySalespersonField; } set { - this.platformField = value; - this.platformSpecified = true; + this.primarySalespersonField = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool platformSpecified { + /// List of unique IDs of User objects who are the sales planners + /// of the Proposal. This attribute is optional. A proposal could have + /// 8 sales planners at most. This attribute can be configured as editable after the + /// proposal has been submitted. Please check with your network administrator for + /// editable fields configuration. + /// + [System.Xml.Serialization.XmlElementAttribute("salesPlannerIds", Order = 12)] + public long[] salesPlannerIds { get { - return this.platformFieldSpecified; + return this.salesPlannerIdsField; } set { - this.platformFieldSpecified = value; + this.salesPlannerIdsField = value; } } - /// Whether the mobile application is free on the app store it belongs to. This - /// attribute is read-only and populated by Google. + /// The unique ID of the User who is primary trafficker and is + /// responsible for trafficking the Proposal. This attribute is + /// required when the proposal turns into an order, and will be copied to Order#primaryTraffickerId . This attribute + /// can be configured as editable after the proposal has been submitted. Please + /// check with your network administrator for editable fields configuration. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 10)] - public bool isFree { + [System.Xml.Serialization.XmlElementAttribute(Order = 13)] + public long primaryTraffickerId { get { - return this.isFreeField; + return this.primaryTraffickerIdField; } set { - this.isFreeField = value; - this.isFreeSpecified = true; + this.primaryTraffickerIdField = value; + this.primaryTraffickerIdSpecified = true; } } - /// true, if a value is specified for , - /// false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool isFreeSpecified { + public bool primaryTraffickerIdSpecified { get { - return this.isFreeFieldSpecified; + return this.primaryTraffickerIdFieldSpecified; } set { - this.isFreeFieldSpecified = value; + this.primaryTraffickerIdFieldSpecified = value; } } - /// The download URL of the mobile application on the app store it belongs to. This - /// attribute is read-only and populated by Google. + /// users who are the seller's contacts. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 11)] - public string downloadUrl { + [System.Xml.Serialization.XmlElementAttribute("sellerContactIds", Order = 14)] + public long[] sellerContactIds { get { - return this.downloadUrlField; + return this.sellerContactIdsField; } set { - this.downloadUrlField = value; + this.sellerContactIdsField = value; } } - /// The approval status for the mobile application. + /// The IDs of all teams that the Proposal is on directly. This + /// attribute is optional. This attribute can be configured as editable after the + /// proposal has been submitted. Please check with your network administrator for + /// editable fields configuration. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 12)] - public MobileApplicationApprovalStatus approvalStatus { + [System.Xml.Serialization.XmlElementAttribute("appliedTeamIds", Order = 15)] + public long[] appliedTeamIds { get { - return this.approvalStatusField; + return this.appliedTeamIdsField; } set { - this.approvalStatusField = value; - this.approvalStatusSpecified = true; + this.appliedTeamIdsField = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool approvalStatusSpecified { + /// The values of the custom fields associated with the . This + /// attribute is optional. This attribute can be configured as editable after the + /// proposal has been submitted. Please check with your network administrator for + /// editable fields configuration. + /// + [System.Xml.Serialization.XmlElementAttribute("customFieldValues", Order = 16)] + public BaseCustomFieldValue[] customFieldValues { get { - return this.approvalStatusFieldSpecified; + return this.customFieldValuesField; } set { - this.approvalStatusFieldSpecified = value; + this.customFieldValuesField = value; } } - } - - /// A store a MobileApplication is available on. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum MobileApplicationStore { - /// The value returned if the actual value is not exposed by the requested API - /// version. + /// The set of labels applied directly to the Proposal. This attribute + /// is optional. /// - UNKNOWN = 0, - APPLE_ITUNES = 1, - GOOGLE_PLAY = 2, - ROKU = 3, - AMAZON_FIRETV = 4, - PLAYSTATION = 5, - XBOX = 6, - SAMSUNG_TV = 7, - AMAZON_APP_STORE = 9, - OPPO_APP_STORE = 10, - SAMSUNG_APP_STORE = 11, - VIVO_APP_STORE = 12, - XIAOMI_APP_STORE = 13, - LG_TV = 14, - } - + [System.Xml.Serialization.XmlElementAttribute("appliedLabels", Order = 17)] + public AppliedLabel[] appliedLabels { + get { + return this.appliedLabelsField; + } + set { + this.appliedLabelsField = value; + } + } - /// A platform a MobileApplication can run on. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum MobileApplicationPlatform { - /// The value returned if the actual value is not exposed by the requested API - /// version. + /// Contains the set of labels applied directly to the proposal as well as those + /// inherited ones. If a label has been negated, only the negated label is returned. + /// This attribute is read-only. /// - UNKNOWN = 0, - ANDROID = 1, - IOS = 2, - ROKU = 3, - AMAZON_FIRETV = 4, - PLAYSTATION = 5, - XBOX = 6, - SAMSUNG_TV = 7, - LG_TV = 8, - } - + [System.Xml.Serialization.XmlElementAttribute("effectiveAppliedLabels", Order = 18)] + public AppliedLabel[] effectiveAppliedLabels { + get { + return this.effectiveAppliedLabelsField; + } + set { + this.effectiveAppliedLabelsField = value; + } + } - /// The approval status of the mobile application. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "MobileApplication.ApprovalStatus", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum MobileApplicationApprovalStatus { - /// Unknown approval status. - /// - UNKNOWN = 0, - /// The application is not yet ready for review. - /// - DRAFT = 1, - /// The application has not yet been reviewed. - /// - UNCHECKED = 2, - /// The application can serve ads. - /// - APPROVED = 3, - /// The application failed approval checks and it cannot serve any ads. - /// - DISAPPROVED = 4, - /// The application is disapproved but has a pending review status, signaling an - /// appeal. + /// The currency code of this Proposal. This attribute is optional and + /// defaults to network's currency code. /// - APPEALING = 5, - } - - - /// Lists all errors associated with MobileApplication objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class MobileApplicationError : ApiError { - private MobileApplicationErrorReason reasonField; - - private bool reasonFieldSpecified; + [System.Xml.Serialization.XmlElementAttribute(Order = 19)] + public string currencyCode { + get { + return this.currencyCodeField; + } + set { + this.currencyCodeField = value; + } + } - /// The error reason represented by an enum. + /// Indicates whether the proposal has been sold, i.e., corresponds to whether the + /// status of an Order is OrderStatus#APPROVED or OrderStatus#PAUSED. This attribute is read-only. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public MobileApplicationErrorReason reason { + [System.Xml.Serialization.XmlElementAttribute(Order = 20)] + public bool isSold { get { - return this.reasonField; + return this.isSoldField; } set { - this.reasonField = value; - this.reasonSpecified = true; + this.isSoldField = value; + this.isSoldSpecified = true; } } - /// true, if a value is specified for , + /// true, if a value is specified for , /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { + public bool isSoldSpecified { get { - return this.reasonFieldSpecified; + return this.isSoldFieldSpecified; } set { - this.reasonFieldSpecified = value; + this.isSoldFieldSpecified = value; } } - } - - /// The reasons for the MobileApplication. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "MobileApplicationError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum MobileApplicationErrorReason { - /// Could not find the ID of the app being claimed in any app stores. - /// - INVALID_APP_ID = 0, - /// Exchange partner settings were invalid. - /// - INVALID_EXCHANGE_PARTNER_SETTINGS = 2, - /// API encountered an unexpected internal error. - /// - INTERNAL = 3, - /// At least one of app name or app store id must be set. - /// - NAME_OR_STORE_ID_MUST_BE_SET = 4, - /// The number of active applications exceeds the max number allowed in the network. - /// - PUBLISHER_HAS_TOO_MANY_ACTIVE_APPS = 5, - /// Application store id fetched from the internal application catalog is too long. - /// - LINKED_APPLICATION_STORE_ID_TOO_LONG = 6, - /// Manually entered app name cannot be longer than 80 characters. - /// - MANUAL_APP_NAME_TOO_LONG = 7, - /// Manually entered app name cannot be empty. - /// - MANUAL_APP_NAME_EMPTY = 8, - /// Invalid combined product key from app store and store id combinations. - /// - INVALID_COMBINED_PRODUCT_KEY = 9, - /// Only Android apps are eligible to skip for store id verification. - /// - LINKED_APP_SKIPPING_ID_VERIFICATION_MUST_BE_ANDROID_APP = 10, - /// Linked app cannot be found. - /// - MISSING_APP_STORE_ENTRY = 11, - /// Missing store entry. + /// The date and time this Proposal was last modified. This attribute + /// is read-only. /// - CANNOT_SET_STORE_ID_MISSING_STORE_ENTRY = 12, - /// Store entry has an unspecified app store. + [System.Xml.Serialization.XmlElementAttribute(Order = 21)] + public DateTime lastModifiedDateTime { + get { + return this.lastModifiedDateTimeField; + } + set { + this.lastModifiedDateTimeField = value; + } + } + + /// The marketplace info of this proposal if it has a corresponding order in + /// Marketplace. /// - CANNOT_SET_STORE_ID_INVALID_APP_STORE = 13, - /// Store entry has an empty store id. + [System.Xml.Serialization.XmlElementAttribute(Order = 22)] + public ProposalMarketplaceInfo marketplaceInfo { + get { + return this.marketplaceInfoField; + } + set { + this.marketplaceInfoField = value; + } + } + + /// The buyer RFP associated with this Proposal, which is optional. + /// This field will be null if the proposal is not initiated from RFP. /// - CANNOT_SET_STORE_ID_INVALID_STORE_ID = 14, - /// Store entry is not unique among publisher's active apps. + [System.Xml.Serialization.XmlElementAttribute(Order = 23)] + public BuyerRfp buyerRfp { + get { + return this.buyerRfpField; + } + set { + this.buyerRfpField = value; + } + } + + /// Whether a Proposal contains a BuyerRfp field. If this field is true, it indicates that the + /// Proposal in question orignated from a buyer. /// - CANNOT_SET_STORE_ID_NON_UNIQUE_STORE_ID = 15, - /// App store id is not unique among publisher's active apps of the same platform. + [System.Xml.Serialization.XmlElementAttribute(Order = 24)] + public bool hasBuyerRfp { + get { + return this.hasBuyerRfpField; + } + set { + this.hasBuyerRfpField = value; + this.hasBuyerRfpSpecified = true; + } + } + + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool hasBuyerRfpSpecified { + get { + return this.hasBuyerRfpFieldSpecified; + } + set { + this.hasBuyerRfpFieldSpecified = value; + } + } + + /// Whether pausing is consented for the Proposal. This field is + /// optional and defaults to true. If false, it indicates that the buyer and the + /// seller agree that the proposal should not be paused. /// - CANNOT_SET_STORE_ID_NON_UNIQUE_STORE_ID_WITHIN_PLATFORM = 16, - /// The Android package name format is invalid. + [System.Xml.Serialization.XmlElementAttribute(Order = 25)] + public bool deliveryPausingEnabled { + get { + return this.deliveryPausingEnabledField; + } + set { + this.deliveryPausingEnabledField = value; + this.deliveryPausingEnabledSpecified = true; + } + } + + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool deliveryPausingEnabledSpecified { + get { + return this.deliveryPausingEnabledFieldSpecified; + } + set { + this.deliveryPausingEnabledFieldSpecified = value; + } + } + } + + + /// Describes the Proposal status. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum ProposalStatus { + /// Indicates that the Proposal has just been created or + /// retracted but no approval has been requested yet. /// - CANNOT_SET_STORE_ID_INVALID_ANDROID_PACKAGE_NAME = 17, - /// App store list should contain app stores from same platform. + DRAFT = 0, + /// Indicates that a request for approval has been made for the Proposal. /// - INCOMPATIBLE_APP_STORE_LIST = 18, - /// App store list should not contain UNKNOWN app store. + PENDING_APPROVAL = 1, + /// Indicates that the Proposal has been approved and is + /// ready to serve. /// - APP_STORE_LIST_CANNOT_HAVE_UNKNOWN_APP_STORE = 19, - /// App store list should contain existing first party stores. + APPROVED = 2, + /// Indicates that the Proposal has been rejected in the + /// approval workflow. /// - APP_STORE_LIST_CANNOT_REMOVE_FIRST_PARTY_APP_STORE = 20, + REJECTED = 3, /// The value returned if the actual value is not exposed by the requested API /// version. /// - UNKNOWN = 1, + UNKNOWN = 4, } - /// Lists all error reasons associated with performing actions on MobileApplication objects. + /// Errors associated with programmatic proposal line + /// items. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class MobileApplicationActionError : ApiError { - private MobileApplicationActionErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ProposalLineItemProgrammaticError : ApiError { + private ProposalLineItemProgrammaticErrorReason reasonField; private bool reasonFieldSpecified; /// The error reason represented by an enum. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public MobileApplicationActionErrorReason reason { + public ProposalLineItemProgrammaticErrorReason reason { get { return this.reasonField; } @@ -38091,603 +39163,464 @@ public bool reasonSpecified { /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "MobileApplicationActionError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum MobileApplicationActionErrorReason { - /// The operation is not applicable to the current mobile application status. + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ProposalLineItemProgrammaticError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum ProposalLineItemProgrammaticErrorReason { + /// Programmatic proposal line items only support ProductType#DFP. /// - NOT_APPLICABLE = 0, + INVALID_PRODUCT_TYPE = 0, + /// EnvironmentType#VIDEO_PLAYER is + /// currently not supported. + /// + VIDEO_NOT_SUPPORTED = 1, + /// Programmatic proposal line items do not support + /// RoadblockingType#CREATIVE_SET. + /// + ROADBLOCKING_NOT_SUPPORTED = 2, + /// Programmatic proposal line items do not support + /// CreativeRotationType#SEQUENTIAL. + /// + INVALID_CREATIVE_ROTATION = 3, + /// Programmatic proposal line items only support LineItemType#STANDARD. + /// + INVALID_PROPOSAL_LINE_ITEM_TYPE = 4, + /// Programmatic proposal line items only support RateType#CPM. + /// + INVALID_RATE_TYPE = 5, + /// Programmatic proposal line items do not support + /// zero for ProposalLineItem#netRate. + /// + ZERO_COST_PER_UNIT_NOT_SUPPORTED = 6, + /// Only programmatic proposal line items support ProgrammaticCreativeSource. + /// + INVALID_PROGRAMMATIC_CREATIVE_SOURCE = 7, + /// Programmatic proposal line item has invalid video + /// creative duration. + /// + INVALID_MAX_VIDEO_CREATIVE_DURATION = 17, + /// Cannot update programmatic creative source if the proposal line item has been sent to the buyer. + /// + CANNOT_UPDATE_PROGRAMMATIC_CREATIVE_SOURCE = 14, + /// The Goal#units value is invalid. + /// + INVALID_NUM_UNITS = 8, + /// Cannot mix guaranteed and Preferred Deal proposal line items in a programmatic + /// proposal. + /// + MIX_GUARANTEED_AND_PREFERRED_DEAL_NOT_ALLOWED = 15, + /// Cannot mix native and banner size in a programmatic proposal line item. + /// + MIX_NATIVE_AND_BANNER_SIZE_NOT_ALLOWED = 12, + /// Cannot update sizes when a programmatic proposal line item with publisher + /// creative source is sent to a buyer. + /// + CANNOT_UPDATE_SIZES = 13, + /// The {ProposalLineItem#contractedUnitsBought} cannot be null or zero + /// for programmatic RateType#CPD proposal line items. + /// + INVALID_SPONSORSHIP_CONTRACTED_UNITS_BOUGHT = 9, + /// Only PricingModel#NET is supported for + /// programmatic proposal line items. + /// + INVALID_PROGRAMMATIC_PRICING_MODEL = 11, + /// Buyer is currently disabled for guaranteed deals due to violation of + /// Programmatic Guaranteed service level agreement. + /// + BUYER_DISABLED_FOR_PG_VIOLATING_SLA = 16, + /// Deals with agencies are limited to preferred deals, private auctions, and public + /// marketplace packages. + /// + PG_NOT_SUPPORTED_FOR_AGENCY_BUYER = 21, + /// Buyer not found. + /// + BUYER_NOT_FOUND = 18, + /// Cannot create/update proposal line items with an + /// invalid environment and request platform pair. + /// + INVALID_ENVIRONMENT_PLATFORM_TYPE_PAIR = 19, + /// A proposal line item must either be of video, or + /// audio type, but not both. + /// + CANNOT_MIX_AUDIO_VIDEO_PROGRAMMATIC_LINE_ITEM = 20, /// The value returned if the actual value is not exposed by the requested API /// version. /// - UNKNOWN = 1, - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", ConfigurationName = "Google.Api.Ads.AdManager.v202311.MobileApplicationServiceInterface")] - public interface MobileApplicationServiceInterface - { - // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Wrappers.MobileApplicationService.createMobileApplicationsResponse createMobileApplications(Wrappers.MobileApplicationService.createMobileApplicationsRequest request); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task createMobileApplicationsAsync(Wrappers.MobileApplicationService.createMobileApplicationsRequest request); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v202311.MobileApplicationPage getMobileApplicationsByStatement(Google.Api.Ads.AdManager.v202311.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getMobileApplicationsByStatementAsync(Google.Api.Ads.AdManager.v202311.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v202311.UpdateResult performMobileApplicationAction(Google.Api.Ads.AdManager.v202311.MobileApplicationAction mobileApplicationAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task performMobileApplicationActionAsync(Google.Api.Ads.AdManager.v202311.MobileApplicationAction mobileApplicationAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement); - - // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Wrappers.MobileApplicationService.updateMobileApplicationsResponse updateMobileApplications(Wrappers.MobileApplicationService.updateMobileApplicationsRequest request); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task updateMobileApplicationsAsync(Wrappers.MobileApplicationService.updateMobileApplicationsRequest request); + UNKNOWN = 10, } - /// Captures a page of mobile applications. + /// Lists all errors for makegood proposal line items. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class MobileApplicationPage { - private int totalResultSetSizeField; - - private bool totalResultSetSizeFieldSpecified; - - private int startIndexField; - - private bool startIndexFieldSpecified; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ProposalLineItemMakegoodError : ApiError { + private ProposalLineItemMakegoodErrorReason reasonField; - private MobileApplication[] resultsField; + private bool reasonFieldSpecified; - /// The size of the total result set to which this page belongs. + /// The error reason represented by an enum. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public int totalResultSetSize { - get { - return this.totalResultSetSizeField; - } - set { - this.totalResultSetSizeField = value; - this.totalResultSetSizeSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool totalResultSetSizeSpecified { - get { - return this.totalResultSetSizeFieldSpecified; - } - set { - this.totalResultSetSizeFieldSpecified = value; - } - } - - /// The absolute index in the total result set on which this page begins. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public int startIndex { + public ProposalLineItemMakegoodErrorReason reason { get { - return this.startIndexField; + return this.reasonField; } set { - this.startIndexField = value; - this.startIndexSpecified = true; + this.reasonField = value; + this.reasonSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , + /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool startIndexSpecified { - get { - return this.startIndexFieldSpecified; - } - set { - this.startIndexFieldSpecified = value; - } - } - - /// The collection of mobile applications contained within this page. - /// - [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] - public MobileApplication[] results { + public bool reasonSpecified { get { - return this.resultsField; + return this.reasonFieldSpecified; } set { - this.resultsField = value; + this.reasonFieldSpecified = value; } } } - /// Represents the actions that can be performed on mobile applications. - /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ArchiveMobileApplications))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(UnarchiveMobileApplications))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public abstract partial class MobileApplicationAction { - } - - - /// The action used to deactivate MobileApplication - /// objects. + /// The reasons for the target error. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ArchiveMobileApplications : MobileApplicationAction { + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ProposalLineItemMakegoodError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum ProposalLineItemMakegoodErrorReason { + /// The original proposal line item for this makegood already has a makegood. + /// + ORIGINAL_ALREADY_HAS_MAKEGOOD = 0, + /// The original proposal line item for this makegood is itself a makegood. + /// + ORIGINAL_IS_MAKEGOOD = 1, + /// The original proposal line item for this makegood has not been sold. + /// + ORIGINAL_NOT_YET_SOLD = 2, + /// This makegood or its original is not a standard line item. + /// + LINE_ITEM_IS_NOT_STANDARD = 3, + /// This makegood or its original is not a CPM line item. + /// + LINE_ITEM_IS_NOT_CPM = 4, + /// This makegood or its original has a cost type not supported on makegoods. + /// + MAKEGOODS_NOT_SUPPORTED_FOR_COST_TYPE = 10, + /// The original proposal line item for this makegood is too far in the past. + /// + ORIGINAL_TOO_FAR_IN_PAST = 5, + /// This makegood has a rate that's different from the original proposal line item. + /// + RATE_DIFFERENT_THAN_ORIGINAL = 6, + /// This makegood has an impression goal greater than the original proposal line + /// item. + /// + UNITS_MORE_THAN_ORIGINAL = 7, + /// Makegoods are not supported for non-DV360 buyers. + /// + MAKEGOODS_NOT_SUPPORTED_FOR_NON_DV360_BUYERS = 8, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 9, } - /// The action used to activate MobileApplication - /// objects. + /// Lists all errors associated with proposal line items. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class UnarchiveMobileApplications : MobileApplicationAction { - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public interface MobileApplicationServiceInterfaceChannel : Google.Api.Ads.AdManager.v202311.MobileApplicationServiceInterface, System.ServiceModel.IClientChannel - { - } - - - /// Provides methods for retrieving MobileApplication objects. - /// - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public partial class MobileApplicationService : AdManagerSoapClient, IMobileApplicationService { - /// Creates a new instance of the - /// class. - public MobileApplicationService() { - } - - /// Creates a new instance of the - /// class. - public MobileApplicationService(string endpointConfigurationName) - : base(endpointConfigurationName) { - } + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ProposalLineItemError : ApiError { + private ProposalLineItemErrorReason reasonField; - /// Creates a new instance of the - /// class. - public MobileApplicationService(string endpointConfigurationName, string remoteAddress) - : base(endpointConfigurationName, remoteAddress) { - } + private bool reasonFieldSpecified; - /// Creates a new instance of the - /// class. - public MobileApplicationService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) - : base(endpointConfigurationName, remoteAddress) { + /// The error reason represented by an enum. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public ProposalLineItemErrorReason reason { + get { + return this.reasonField; + } + set { + this.reasonField = value; + this.reasonSpecified = true; + } } - /// Creates a new instance of the - /// class. - public MobileApplicationService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) - : base(binding, remoteAddress) { + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool reasonSpecified { + get { + return this.reasonFieldSpecified; + } + set { + this.reasonFieldSpecified = value; + } } + } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.MobileApplicationService.createMobileApplicationsResponse Google.Api.Ads.AdManager.v202311.MobileApplicationServiceInterface.createMobileApplications(Wrappers.MobileApplicationService.createMobileApplicationsRequest request) { - return base.Channel.createMobileApplications(request); - } - /// Creates and claims mobile applications to be - /// used for targeting in the network. + /// The reasons for the target error. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ProposalLineItemError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum ProposalLineItemErrorReason { + /// The proposal line item's rate card is not the same as other proposal line items + /// in the proposal. /// - public virtual Google.Api.Ads.AdManager.v202311.MobileApplication[] createMobileApplications(Google.Api.Ads.AdManager.v202311.MobileApplication[] mobileApplications) { - Wrappers.MobileApplicationService.createMobileApplicationsRequest inValue = new Wrappers.MobileApplicationService.createMobileApplicationsRequest(); - inValue.mobileApplications = mobileApplications; - Wrappers.MobileApplicationService.createMobileApplicationsResponse retVal = ((Google.Api.Ads.AdManager.v202311.MobileApplicationServiceInterface)(this)).createMobileApplications(inValue); - return retVal.rval; - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202311.MobileApplicationServiceInterface.createMobileApplicationsAsync(Wrappers.MobileApplicationService.createMobileApplicationsRequest request) { - return base.Channel.createMobileApplicationsAsync(request); - } - - public virtual System.Threading.Tasks.Task createMobileApplicationsAsync(Google.Api.Ads.AdManager.v202311.MobileApplication[] mobileApplications) { - Wrappers.MobileApplicationService.createMobileApplicationsRequest inValue = new Wrappers.MobileApplicationService.createMobileApplicationsRequest(); - inValue.mobileApplications = mobileApplications; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202311.MobileApplicationServiceInterface)(this)).createMobileApplicationsAsync(inValue)).Result.rval); - } - - /// Gets a mobileApplicationPage of mobile applications that satisfy the given Statement. The following fields are supported for - /// filtering: - /// - /// - /// - /// - ///
PQL Property Object - /// Property
id MobileApplication#id
displayName MobileApplication#displayName
appStore MobileApplication#appStore
appStoreId MobileApplication#appStoreId
isArchived MobileApplication#isArchived
+ NOT_SAME_RATE_CARD = 0, + /// The proposal line item's type is not yet supported by Sales Manager. /// - public virtual Google.Api.Ads.AdManager.v202311.MobileApplicationPage getMobileApplicationsByStatement(Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.getMobileApplicationsByStatement(filterStatement); - } - - public virtual System.Threading.Tasks.Task getMobileApplicationsByStatementAsync(Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.getMobileApplicationsByStatementAsync(filterStatement); - } - - /// Performs an action on mobile applications. + LINE_ITEM_TYPE_NOT_ALLOWED = 1, + /// The proposal line item's end date time is not after its start date time. /// - public virtual Google.Api.Ads.AdManager.v202311.UpdateResult performMobileApplicationAction(Google.Api.Ads.AdManager.v202311.MobileApplicationAction mobileApplicationAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.performMobileApplicationAction(mobileApplicationAction, filterStatement); - } - - public virtual System.Threading.Tasks.Task performMobileApplicationActionAsync(Google.Api.Ads.AdManager.v202311.MobileApplicationAction mobileApplicationAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.performMobileApplicationActionAsync(mobileApplicationAction, filterStatement); - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.MobileApplicationService.updateMobileApplicationsResponse Google.Api.Ads.AdManager.v202311.MobileApplicationServiceInterface.updateMobileApplications(Wrappers.MobileApplicationService.updateMobileApplicationsRequest request) { - return base.Channel.updateMobileApplications(request); - } - - /// Updates the specified mobile applications. + END_DATE_TIME_NOT_AFTER_START_TIME = 2, + /// The proposal line item's start date time is too late in the month. This error + /// applies to Programmatic Guaranteed deals sold on Nielsen audience measurement. /// - public virtual Google.Api.Ads.AdManager.v202311.MobileApplication[] updateMobileApplications(Google.Api.Ads.AdManager.v202311.MobileApplication[] mobileApplications) { - Wrappers.MobileApplicationService.updateMobileApplicationsRequest inValue = new Wrappers.MobileApplicationService.updateMobileApplicationsRequest(); - inValue.mobileApplications = mobileApplications; - Wrappers.MobileApplicationService.updateMobileApplicationsResponse retVal = ((Google.Api.Ads.AdManager.v202311.MobileApplicationServiceInterface)(this)).updateMobileApplications(inValue); - return retVal.rval; - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202311.MobileApplicationServiceInterface.updateMobileApplicationsAsync(Wrappers.MobileApplicationService.updateMobileApplicationsRequest request) { - return base.Channel.updateMobileApplicationsAsync(request); - } - - public virtual System.Threading.Tasks.Task updateMobileApplicationsAsync(Google.Api.Ads.AdManager.v202311.MobileApplication[] mobileApplications) { - Wrappers.MobileApplicationService.updateMobileApplicationsRequest inValue = new Wrappers.MobileApplicationService.updateMobileApplicationsRequest(); - inValue.mobileApplications = mobileApplications; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202311.MobileApplicationServiceInterface)(this)).updateMobileApplicationsAsync(inValue)).Result.rval); - } - } - namespace Wrappers.NetworkService - { - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "getAllNetworks", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class getAllNetworksRequest { - /// Creates a new instance of the - /// class. - public getAllNetworksRequest() { - } - } - - - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "getAllNetworksResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class getAllNetworksResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v202311.Network[] rval; - - /// Creates a new instance of the - /// class. - public getAllNetworksResponse() { - } - - /// Creates a new instance of the - /// class. - public getAllNetworksResponse(Google.Api.Ads.AdManager.v202311.Network[] rval) { - this.rval = rval; - } - } - } - /// Network represents a network. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class Network { - private long idField; - - private bool idFieldSpecified; - - private string displayNameField; - - private string networkCodeField; - - private string propertyCodeField; - - private string timeZoneField; - - private string currencyCodeField; - - private string[] secondaryCurrencyCodesField; - - private string effectiveRootAdUnitIdField; - - private bool isTestField; - - private bool isTestFieldSpecified; - - /// The unique ID of the Network. This value is readonly and is - /// assigned by Google. + START_DATE_TIME_TOO_LATE_IN_MONTH = 60, + /// The proposal line item's end date time is after 1/1/2037. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public long id { - get { - return this.idField; - } - set { - this.idField = value; - this.idSpecified = true; - } - } - - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool idSpecified { - get { - return this.idFieldSpecified; - } - set { - this.idFieldSpecified = value; - } - } - - /// The display name of the network. + END_DATE_TIME_TOO_LATE = 3, + /// The proposal line item's start date time is in past. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public string displayName { - get { - return this.displayNameField; - } - set { - this.displayNameField = value; - } - } - - /// The network code. If the current login has access to multiple networks, then the - /// network code must be provided in the SOAP request headers for all requests. - /// Otherwise, it is optional to provide the network code in the SOAP headers. This - /// field is read-only. + START_DATE_TIME_IS_IN_PAST = 4, + /// The proposal line item's end date time is in past. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public string networkCode { - get { - return this.networkCodeField; - } - set { - this.networkCodeField = value; - } - } - - /// The property code. This field is read-only. + END_DATE_TIME_IS_IN_PAST = 5, + /// Frontloaded delivery rate type is not allowed. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public string propertyCode { - get { - return this.propertyCodeField; - } - set { - this.propertyCodeField = value; - } - } - - /// The time zone associated with the delivery of orders and reporting. This field - /// is read-only. + FRONTLOADED_NOT_ALLOWED = 6, + /// Roadblocking to display all creatives is not allowed. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public string timeZone { - get { - return this.timeZoneField; - } - set { - this.timeZoneField = value; - } - } - - /// The primary currency code. This field is read-only. + ALL_ROADBLOCK_NOT_ALLOWED = 7, + /// Display all companions is not allowed. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 5)] - public string currencyCode { - get { - return this.currencyCodeField; - } - set { - this.currencyCodeField = value; - } - } - - /// Currencies that can be used as an alternative to the Network#currencyCode for trafficking line items. + ALL_COMPANION_DELIVERY_NOT_ALLOWED = 63, + /// Roadblocking to display all master and companion creative set is not allowed. /// - [System.Xml.Serialization.XmlElementAttribute("secondaryCurrencyCodes", Order = 6)] - public string[] secondaryCurrencyCodes { - get { - return this.secondaryCurrencyCodesField; - } - set { - this.secondaryCurrencyCodesField = value; - } - } - - /// The AdUnit#id of the top most ad unit to which - /// descendant ad units can be added. Should be used for the AdUnit#parentId when first building inventory - /// hierarchy. This field is read-only. + CREATIVE_SET_ROADBLOCK_NOT_ALLOWED = 8, + /// Some changes may not be allowed because the related line item has already + /// started. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 7)] - public string effectiveRootAdUnitId { - get { - return this.effectiveRootAdUnitIdField; - } - set { - this.effectiveRootAdUnitIdField = value; - } - } - - /// Whether this is a test network. This field is read-only. + ALREADY_STARTED = 9, + /// The setting is conflict with product's restriction. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 8)] - public bool isTest { - get { - return this.isTestField; - } - set { - this.isTestField = value; - this.isTestSpecified = true; - } - } - - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool isTestSpecified { - get { - return this.isTestFieldSpecified; - } - set { - this.isTestFieldSpecified = value; - } - } - } - - - /// Common errors for URLs. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class UrlError : ApiError { - private UrlErrorReason reasonField; - - private bool reasonFieldSpecified; - - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public UrlErrorReason reason { - get { - return this.reasonField; - } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { - return this.reasonFieldSpecified; - } - set { - this.reasonFieldSpecified = value; - } - } - } - - - /// Reasons for inventory url errors. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "UrlError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum UrlErrorReason { - /// The URL has been reserved, and not available for usage. + CONFLICT_WITH_PRODUCT = 10, + /// The proposal line item's setting violates the product's built-in targeting + /// compatibility restriction. /// - CANNOT_USE_RESERVED_URL = 0, - /// The URL belongs to Google, and not available for usage. + VIOLATE_BUILT_IN_TARGETING_COMPATIBILITY_RESTRICTION = 11, + /// The proposal line item's setting violates the product's built-in targeting + /// locked restriction. /// - CANNOT_USE_GOOGLE_URL = 1, - /// The URL is invalid. + VIOLATE_BUILT_IN_TARGETING_LOCKED_RESTRICTION = 12, + /// Cannot target mobile-only targeting criteria. /// - INVALID_URL = 2, + MOBILE_TECH_CRITERIA_NOT_SUPPORTED = 13, + /// The targeting criteria type is unsupported. + /// + UNSUPPORTED_TARGETING_TYPE = 14, + /// The contracted cost does not match with what calculated from final rate and + /// units bought. + /// + WRONG_COST = 15, + /// The proposal line item targets an inventory type for which the network does not + /// have a corresponding web property. + /// + NO_WEB_PROPERTY_FOR_TARGETED_REQUEST_PLATFORM = 62, + /// The cost calculated from cost per unit and units is too high. + /// + CALCULATED_COST_TOO_HIGH = 16, + /// The line item priority is invalid if it's different than the default. + /// + INVALID_PRIORITY_FOR_LINE_ITEM_TYPE = 17, + /// Propsoal line item cannot update when it is archived. + /// + UPDATE_PROPOSAL_LINE_ITEM_NOT_ALLOWED = 18, + /// A proposal line item cannot be updated from having RoadblockingType#CREATIVE_SET to having + /// a different RoadblockingType, or vice versa. + /// + CANNOT_UPDATE_TO_OR_FROM_CREATIVE_SET_ROADBLOCK = 19, + /// Serving creatives exactly in sequential order is not allowed. + /// + SEQUENTIAL_CREATIVE_ROTATION_NOT_ALLOWED = 20, + /// Proposal line item cannot update its reservation detail once start delivering. + /// + UPDATE_RESERVATION_NOT_ALLOWED = 21, + /// The companion delivery option is not valid for the roadblocking type. + /// + INVALID_COMPANION_DELIVERY_OPTION_FOR_ROADBLOCKING_TYPE = 22, + /// Roadblocking type is inconsistent with creative placeholders. If the + /// roadblocking type is creative set, creative placeholders should contain + /// companions, and vice versa. + /// + INCONSISTENT_ROADBLOCK_TYPE = 23, + /// ContractedQuantityBuffer is only applicable to standard line item with RateType#CPC/RateType#CPM/RateType#VCPM type. + /// + INVALID_CONTRACTED_QUANTITY_BUFFER = 36, + /// One or more values on the proposal line item are not valid for a LineItemType#CLICK_TRACKING line item + /// type. + /// + INVALID_VALUES_FOR_CLICK_TRACKING_LINE_ITEM_TYPE = 25, + /// Proposal line item cannot update its cost adjustment after first approval. + /// + UPDATE_COST_ADJUSTMENT_NOT_ALLOWED = 26, + /// The currency code of the proposal line item's rate card is not supported by the + /// current network. All supported currencies can be found in the union of Network#currencyCode and Network#secondaryCurrencyCodes. + /// + UNSUPPORTED_RATE_CARD_CURRENCY_CODE = 27, + /// The corresponding line item is paused, but the proposal line item's end date + /// time is before the last paused time. + /// + END_DATE_TIME_IS_BEFORE_LAST_PAUSED_TIME = 28, + /// Video line items cannot have roadblocking options. + /// + VIDEO_INVALID_ROADBLOCKING = 29, + /// Time zone cannot be updated once the proposal line item has been sold. + /// + UPDATE_TIME_ZONE_NOT_ALLOWED = 30, + /// Time zone must be network time zone if the proposal line item is RateType#VCPM. + /// + INVALID_TIME_ZONE_FOR_RATE_TYPE = 37, + /// Only the Network#timeZone is allowed for + /// programmatic proposals. + /// + INVALID_TIME_ZONE_FOR_DEALS = 55, + /// The ProposalLineItem#environmentType is + /// invalid. + /// + INVALID_ENVIRONMENT_TYPE = 38, + /// At least one size must be specified. + /// + SIZE_REQUIRED = 31, + /// A placeholder contains companions but the roadblocking type is not RoadblockingType#CREATIVE_SET or the product type is offline. + /// + COMPANION_NOT_ALLOWED = 32, + /// A placeholder does not contain companions but the roadblocking type is RoadblockingType#CREATIVE_SET. + /// + MISSING_COMPANION = 33, + /// A placeholder's master size is the same as another placeholder's master size. + /// + DUPLICATED_MASTER_SIZE = 34, + /// Only creative placeholders with standard sizes can set an expected creative count. + /// + INVALID_EXPECTED_CREATIVE_COUNT = 39, + /// Non-native placeholders cannot have creative templates. + /// + CANNOT_HAVE_CREATIVE_TEMPLATE = 46, + /// Placeholders can only have native creative templates. + /// + NATIVE_CREATIVE_TEMPLATE_REQUIRED = 47, + /// Cannot include native placeholders without native creative templates. + /// + CANNOT_INCLUDE_NATIVE_PLACEHOLDER_WITHOUT_TEMPLATE_ID = 48, + /// One or more values are not valid for a LineItemType#CLICK_TRACKING line item + /// type. + /// + INVALID_CLICK_TRACKING_LINE_ITEM_TYPE = 40, + /// The targeting is not valid for a LineItemType#CLICK_TRACKING line item + /// type. + /// + INVALID_TARGETING_FOR_CLICK_TRACKING = 41, + /// The contractedUnitsBought of the proposal line item is invalid. + /// + INVALID_CONTRACTED_UNITS_BOUGHT = 42, + /// Only creative placeholders with standard sizes can contain labels. + /// + PLACEHOLDER_CANNOT_CONTAIN_LABELS = 43, + /// One or more labels on a creative placeholder is invalid. + /// + INVALID_LABEL_TYPE_IN_PLACEHOLDER = 44, + /// A placeholder cannot contain a negated label. + /// + PLACEHOLDER_CANNOT_CONTAIN_NEGATED_LABELS = 45, + /// Contracted impressions of programmatic proposal line item must be greater than + /// already delivered impressions. + /// + CONTRACTED_UNITS_LESS_THAN_DELIVERED = 56, + /// If AdExchangeEnvironment is DISPLAY, the proposal line item must have mobile + /// apps as excluded device capability targeting. + /// + DISPLAY_ENVIRONMENT_MUST_HAVE_EXCLUDED_MOBILE_APPS_TARGETING = 57, + /// If AdExchangeEnvironment is MOBILE, the proposal line item must have mobile apps + /// as included device capability targeting. + /// + MOBILE_ENVIRONMENT_MUST_HAVE_INCLUDED_MOBILE_APPS_TARGETING = 58, + /// The SkippableAdType is not allowed. + /// + SKIPPABLE_AD_TYPE_NOT_ALLOWED = 59, + /// Cross sell targeting is unsupported for this proposal line item. + /// + CROSS_SELL_TARGETING_UNSUPPORTED = 61, + /// Can't set a video duration for non video deals. + /// + CANNOT_SET_VIDEO_DURATION_ON_NON_VIDEO_DEAL = 64, + /// Cannot update video creative skippability on a YouTube-targeted proposal line + /// item once it has been sold (pushed to an order line item). + /// + UPDATE_VIDEO_CREATIVE_SKIPPABILITY_NOT_ALLOWED = 65, + /// Cannot video creative fields on a YouTube-targeted proposal line item once it + /// has been sold (pushed to an order line item). + /// + UPDATE_VIDEO_CREATIVE_FIELDS_NOT_ALLOWED = 66, /// The value returned if the actual value is not exposed by the requested API /// version. /// - UNKNOWN = 3, + UNKNOWN = 35, } - /// Encapsulates the generic errors thrown when there's an error with user request. + /// Lists all errors associated with proposals. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class RequestError : ApiError { - private RequestErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ProposalError : ApiError { + private ProposalErrorReason reasonField; private bool reasonFieldSpecified; + /// The error reason represented by an enum. + /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public RequestErrorReason reason { + public ProposalErrorReason reason { get { return this.reasonField; } @@ -38712,37 +39645,116 @@ public bool reasonSpecified { } + /// The reasons for the target error. + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "RequestError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum RequestErrorReason { - /// Error reason is unknown. + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ProposalError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum ProposalErrorReason { + /// Unknown error from ad-server /// - UNKNOWN = 0, - /// Invalid input. + AD_SERVER_UNKNOWN_ERROR = 0, + /// Ad-server reports an api error for the operation. /// - INVALID_INPUT = 1, - /// The api version in the request has been discontinued. Please update to the new - /// AdWords API version. + AD_SERVER_API_ERROR = 1, + /// Advertiser cannot be updated once the proposal has been reserved. /// - UNSUPPORTED_VERSION = 2, + UPDATE_ADVERTISER_NOT_ALLOWED = 2, + /// Proposal cannot be updated when its status is not DRAFT or it is + /// archived. + /// + UPDATE_PROPOSAL_NOT_ALLOWED = 3, + /// Contacts are not supported for advertisers in a programmatic Proposal. + /// + CONTACT_UNSUPPORTED_FOR_ADVERTISER = 20, + /// Contact associated with a proposal does not belong to the specific company. + /// + INVALID_CONTACT = 4, + /// Contact associated with a proposal's advertiser or agency is duplicated. + /// + DUPLICATED_CONTACT = 5, + /// A proposal cannot be created or updated because the company it is associated + /// with has Company#creditStatus that is not + /// or ON_HOLD. + /// + UNACCEPTABLE_COMPANY_CREDIT_STATUS = 6, + /// Advertiser or agency associated with the proposal has Company#creditStatus that is not . + /// + COMPANY_CREDIT_STATUS_NOT_ACTIVE = 24, + /// Cannot have other agencies without a primary agency. + /// + PRIMARY_AGENCY_REQUIRED = 7, + /// Cannot have more than one primary agency. + /// + PRIMARY_AGENCY_NOT_UNIQUE = 8, + /// The Company association type is not supported for + /// programmatic proposals. + /// + UNSUPPORTED_COMPANY_ASSOCIATION_TYPE_FOR_PROGRAMMATIC_PROPOSAL = 21, + /// Advertiser or agency associated with a proposal is duplicated. + /// + DUPLICATED_COMPANY_ASSOCIATION = 9, + /// Found duplicated primary or secondary sales person. + /// + DUPLICATED_SALESPERSON = 10, + /// Found duplicated sales planner. + /// + DUPLICATED_SALES_PLANNER = 11, + /// Found duplicated primary or secondary trafficker. + /// + DUPLICATED_TRAFFICKER = 12, + /// The proposal has no unarchived proposal line items. + /// + HAS_NO_UNARCHIVED_PROPOSAL_LINEITEMS = 13, + /// One or more of the terms and conditions being added already exists on the + /// proposal. + /// + DUPLICATE_TERMS_AND_CONDITIONS = 19, + /// The currency code of the proposal is not supported by the current network. All + /// supported currencies can be found in the union of Network#currencyCode and Network#secondaryCurrencyCodes. + /// + UNSUPPORTED_PROPOSAL_CURRENCY_CODE = 14, + /// The currency code of the proposal is not supported by the selected buyer. + /// + UNSUPPORTED_BUYER_CURRENCY_CODE = 25, + /// The POC value of the proposal is invalid. + /// + INVALID_POC = 15, + /// Currency cannot be updated once the proposal has been reserved. + /// + UPDATE_CURRENCY_NOT_ALLOWED = 16, + /// Time zone cannot be updated once the proposal has been sold. + /// + UPDATE_TIME_ZONE_NOT_ALLOWED = 17, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 18, } - /// An error for a network. + /// Lists all errors associated with performing actions on Proposal objects. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class NetworkError : ApiError { - private NetworkErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ProposalActionError : ApiError { + private ProposalActionErrorReason reasonField; private bool reasonFieldSpecified; + /// The error reason represented by an enum. + /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public NetworkErrorReason reason { + public ProposalActionErrorReason reason { get { return this.reasonField; } @@ -38767,82 +39779,42 @@ public bool reasonSpecified { } - /// Possible reasons for NetworkError + /// The reasons for the target error. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "NetworkError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum NetworkErrorReason { - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 0, - /// Multi-currency support is not enabled for this network. This is an Ad Manager - /// 360 feature. - /// - MULTI_CURRENCY_NOT_SUPPORTED = 1, - /// Currency provided is not supported. - /// - UNSUPPORTED_CURRENCY = 2, - /// The network currency cannot also be specified as a secondary currency. - /// - NETWORK_CURRENCY_CANNOT_BE_SAME_AS_SECONDARY = 3, - /// The currency cannot be deleted as it is still being used by active rate cards. - /// - CANNOT_DELETE_CURRENCY_WITH_ACTIVE_RATE_CARDS = 4, - /// An MCM child network cannot become a parent network. - /// - DELEGATION_CHILD_NETWORK_CANNOT_BECOME_A_PARENT = 5, - /// An MCM parent network cannot become a child of another network. - /// - DELEGATION_PARENT_NETWORK_CANNOT_BECOME_A_CHILD = 6, - /// In MCM, a network cannot become a parent of itself. - /// - CANNOT_ADD_SAME_NETWORK_AS_DELEGATION_CHILD = 7, - /// The MCM parent network has exceeded the system limit of child networks. - /// - MAX_APPROVED_DELEGATION_CHILD_NETWORKS_EXCEEDED = 8, - /// The MCM parent network has exceeded the system limit of child networks pending - /// approval. - /// - MAX_PENDING_DELEGATION_CHILD_NETWORKS_EXCEEDED = 11, - /// The network is already being managed by the parent network for MCM. - /// - CHILD_NETWORK_ALREADY_EXISTS = 9, - /// A child network must not be disapproved. - /// - CHILD_NETWORK_CANNOT_BE_DISAPPROVED = 12, - /// Only Ad Manager 360 networks are allowed to manage the inventory of other - /// networks. + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ProposalActionError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum ProposalActionErrorReason { + /// The operation is not applicable to the current state. /// - IN_PARENT_DELEGATION_UNSUPPORTED_FOR_NETWORK = 10, - /// When an MCM child network self-signsup for ad exchange but disconnects from the - /// parent, then tries to re-enable again, this indicates that there was an error in - /// re-enabling ad exchange. + NOT_APPLICABLE = 0, + /// The operation cannot be applied because the proposal is archived. /// - ERROR_REENABLING_AD_EXCHANGE_ON_MCM_CHILD = 13, - /// The error shown when there is an issue setting the approved site serving field - /// when re-enabling or disabling ad exchange on an MCM child. + IS_ARCHIVED = 1, + /// The value returned if the actual value is not exposed by the requested API + /// version. /// - ERROR_SETTING_SITE_SERVING_MODE_ON_MCM_CHILD = 14, + UNKNOWN = 2, } - /// ApiError for common exceptions thrown when accessing - /// AdSense InventoryClient. + /// Lists all errors associated with ExchangeRate + /// objects. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class InventoryClientApiError : ApiError { - private InventoryClientApiErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ExchangeRateError : ApiError { + private ExchangeRateErrorReason reasonField; private bool reasonFieldSpecified; + /// The error reason represented by an enum. + /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public InventoryClientApiErrorReason reason { + public ExchangeRateErrorReason reason { get { return this.reasonField; } @@ -38867,40 +39839,63 @@ public bool reasonSpecified { } - /// Potential reasons for errors calling InventoryClient + /// The reasons for the target error. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "InventoryClientApiError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum InventoryClientApiErrorReason { - ACCESS_DENIED = 0, - ADSENSE_AUTH_ERROR = 1, - ADSENSE_RPC_ERROR = 2, - DOMAIN_NO_SCHEME = 3, - DOMAIN_INVALID_HOST = 4, - DOMAIN_INVALID_TLD = 5, - DOMAIN_ONE_STRING_AND_PUBLIC_SUFFIX = 6, - DOMAIN_INVALID_INPUT = 7, - DOMAIN_NO_PUBLIC_SUFFIX = 8, - UNKNOWN_ERROR = 9, + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ExchangeRateError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum ExchangeRateErrorReason { + /// The currency code is invalid and does not follow ISO 4217. + /// + INVALID_CURRENCY_CODE = 0, + /// The currency code is not supported. + /// + UNSUPPORTED_CURRENCY_CODE = 1, + /// The currency code already exists. When creating an exchange rate, its currency + /// should not be associated with any existing exchange rate. When creating a list + /// of exchange rates, there should not be two exchange rates associated with same + /// currency. + /// + CURRENCY_CODE_ALREADY_EXISTS = 2, + /// The exchange rate value is invalid. When the ExchangeRate#refreshRate is ExchangeRateRefreshRate#FIXED, the ExchangeRate#exchangeRate should be larger + /// than 0. Otherwise it is invalid. + /// + INVALID_EXCHANGE_RATE = 3, + /// The exchange rate value is not found. When the ExchangeRate#refreshRate is ExchangeRateRefreshRate#DAILY or ExchangeRateRefreshRate#MONTHLY, the + /// ExchangeRate#exchangeRate should be + /// assigned by Google. It is not found if Google cannot find such an exchange rate. + /// + EXCHANGE_RATE_NOT_FOUND = 4, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 5, } - /// Caused by supplying a value for an email attribute that is not a valid email - /// address. + /// Errors associated with creating or updating programmatic proposals. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class InvalidEmailError : ApiError { - private InvalidEmailErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class DealError : ApiError { + private DealErrorReason reasonField; private bool reasonFieldSpecified; + /// The error reason represented by an enum. + /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public InvalidEmailErrorReason reason { + public DealErrorReason reason { get { return this.reasonField; } @@ -38925,36 +39920,91 @@ public bool reasonSpecified { } - /// Describes reasons for an email to be invalid. + /// The reasons for the target error. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "InvalidEmailError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum InvalidEmailErrorReason { - /// The value is not a valid email address. + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "DealError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum DealErrorReason { + /// Cannot add new proposal line items to a Proposal when Proposal#isSold + /// is true. /// - INVALID_FORMAT = 0, + CANNOT_ADD_LINE_ITEM_WHEN_SOLD = 0, + /// Cannot archive proposal line items from a Proposal when Proposal#isSold + /// is true. + /// + CANNOT_ARCHIVE_LINE_ITEM_WHEN_SOLD = 1, + /// Cannot archive a Proposal when Proposal#isSold is true. + /// + CANNOT_ARCHIVE_PROPOSAL_WHEN_SOLD = 2, + /// Cannot change a field that requires buyer approval during the current operation. + /// + CANNOT_CHANGE_FIELD_REQUIRING_BUYER_APPROVAL = 3, + /// Cannot find seller ID for the Proposal. + /// + CANNOT_GET_SELLER_ID = 4, + /// Proposal must be marked as editable by EditProposalsForNegotiation before + /// performing requested action. + /// + CAN_ONLY_EXECUTE_IF_LOCAL_EDITS = 14, + /// Proposal contains no proposal + /// line items. + /// + MISSING_PROPOSAL_LINE_ITEMS = 6, + /// No environment set for Proposal. + /// + MISSING_ENVIRONMENT = 7, + /// The Ad Exchange property is not associated with the current network. + /// + MISSING_AD_EXCHANGE_PROPERTY = 8, + /// Cannot find Proposal in Marketplace. + /// + CANNOT_FIND_PROPOSAL_IN_MARKETPLACE = 9, + /// No Product exists for buyer-initiated programmatic proposals. + /// + CANNOT_GET_PRODUCT = 10, + /// A new version of the Proposal was sent from buyer, cannot + /// execute the requested action before performing DiscardLocalVersionEdits. + /// + NEW_VERSION_FROM_BUYER = 11, + /// A new version of the Proposal exists in Marketplace, + /// cannot execute the requested action before the proposal is synced to newest + /// revision. + /// + PROPOSAL_OUT_OF_SYNC_WITH_MARKETPLACE = 15, + /// No Proposal changes were found. + /// + NO_PROPOSAL_CHANGES_FOUND = 12, /// The value returned if the actual value is not exposed by the requested API /// version. /// - UNKNOWN = 1, + UNKNOWN = 13, } - /// ApiError for exceptions thrown by ExchangeSignupService. + /// Lists all errors associated with the billing settings of a proposal or proposal + /// line item. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ExchangeSignupApiError : ApiError { - private ExchangeSignupApiErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class BillingError : ApiError { + private BillingErrorReason reasonField; private bool reasonFieldSpecified; + /// The error reason represented by an enum. + /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public ExchangeSignupApiErrorReason reason { + public BillingErrorReason reason { get { return this.reasonField; } @@ -38979,1145 +40029,1104 @@ public bool reasonSpecified { } - /// Potential reasons for ExchangeSignupService errors + /// The reasons for the target error. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ExchangeSignupApiError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum ExchangeSignupApiErrorReason { - ADSENSE_ACCOUNT_CREATION_ERROR = 0, - ADSENSE_ACCOUNT_ALREADY_HAS_EXCHANGE = 1, - FAILED_TO_ADD_WEBSITE_TO_PROPERTY = 2, - FAILED_TO_CREATE_LINK_FOR_NEW_ACCOUNT = 3, - CANNOT_CREATE_NEW_ACCOUNT_FOR_MAPPED_CUSTOMER = 4, - FAILED_TO_CREATE_EXCHANGE_SETTINGS = 5, - DUPLICATE_PRODUCT_TYPE = 6, - INVALID_SIGNUP_PRODUCT = 7, - UNKNOWN_PRODUCT = 8, - BAD_SITE_VERIFICATION_UPDATE_REQUEST = 9, - NO_EXCHANGE_ACCOUNT = 10, - SINGLE_SYNDICATION_PRODUCT = 11, - ACCOUNT_NOT_YET_READY = 12, - MULTIPLE_ADSENSE_ACCOUNTS_NOT_ALLOWED = 13, - MISSING_LEGAL_ENTITY_NAME = 14, - MISSING_ACTIVE_BILLING_PROFILE = 15, + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "BillingError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum BillingErrorReason { + /// Found unsupported billing schedule. + /// + UNSUPPORTED_BILLING_SCHEDULE = 0, + /// Found unsupported billing cap. + /// + UNSUPPORTED_BILLING_CAP = 1, + /// Billing source is missing when either billing scheule or billing cap is + /// provided. + /// + MISSING_BILLING_SOURCE = 2, + /// Billing schedule is missing when the provided billing source is CONSTRACTED. + /// + MISSING_BILLING_SCHEDULE = 3, + /// Billing cap is missing when the provided billing source is not CONSTRACTED. + /// + MISSING_BILLING_CAP = 4, + /// The billing source is invalid for offline proposal line item. + /// + INVALID_BILLING_SOURCE_FOR_OFFLINE = 5, + /// Billing settings cannot be updated once the proposal has been approved. + /// + UPDATE_BILLING_NOT_ALLOWED = 6, + /// Billing base is missing when the provided billing source is CONTRACTED. + /// + MISSING_BILLING_BASE = 7, + /// The billing base is invalid for the provided billing source. + /// + INVALID_BILLING_BASE = 8, /// The value returned if the actual value is not exposed by the requested API /// version. /// - UNKNOWN = 16, + UNKNOWN = 9, } [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", ConfigurationName = "Google.Api.Ads.AdManager.v202311.NetworkServiceInterface")] - public interface NetworkServiceInterface + [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", ConfigurationName = "Google.Api.Ads.AdManager.v202411.ProposalServiceInterface")] + public interface ProposalServiceInterface { // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Wrappers.NetworkService.getAllNetworksResponse getAllNetworks(Wrappers.NetworkService.getAllNetworksRequest request); + Wrappers.ProposalService.createProposalsResponse createProposals(Wrappers.ProposalService.createProposalsRequest request); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task getAllNetworksAsync(Wrappers.NetworkService.getAllNetworksRequest request); + System.Threading.Tasks.Task createProposalsAsync(Wrappers.ProposalService.createProposalsRequest request); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v202311.Network getCurrentNetwork(); + Google.Api.Ads.AdManager.v202411.MarketplaceCommentPage getMarketplaceCommentsByStatement(Google.Api.Ads.AdManager.v202411.Statement filterStatement); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getCurrentNetworkAsync(); + System.Threading.Tasks.Task getMarketplaceCommentsByStatementAsync(Google.Api.Ads.AdManager.v202411.Statement filterStatement); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v202311.ThirdPartyDataDeclaration getDefaultThirdPartyDataDeclaration(); + Google.Api.Ads.AdManager.v202411.ProposalPage getProposalsByStatement(Google.Api.Ads.AdManager.v202411.Statement filterStatement); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getDefaultThirdPartyDataDeclarationAsync(); + System.Threading.Tasks.Task getProposalsByStatementAsync(Google.Api.Ads.AdManager.v202411.Statement filterStatement); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v202311.Network makeTestNetwork(); + Google.Api.Ads.AdManager.v202411.UpdateResult performProposalAction(Google.Api.Ads.AdManager.v202411.ProposalAction proposalAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task makeTestNetworkAsync(); + System.Threading.Tasks.Task performProposalActionAsync(Google.Api.Ads.AdManager.v202411.ProposalAction proposalAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement); + // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v202311.Network updateNetwork(Google.Api.Ads.AdManager.v202311.Network network); + Wrappers.ProposalService.updateProposalsResponse updateProposals(Wrappers.ProposalService.updateProposalsRequest request); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task updateNetworkAsync(Google.Api.Ads.AdManager.v202311.Network network); - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public interface NetworkServiceInterfaceChannel : Google.Api.Ads.AdManager.v202311.NetworkServiceInterface, System.ServiceModel.IClientChannel - { + System.Threading.Tasks.Task updateProposalsAsync(Wrappers.ProposalService.updateProposalsRequest request); } - /// Provides operations for retrieving information related to the publisher's - /// networks. This service can be used to obtain the list of all networks that the - /// current login has access to, or to obtain information about a specific network. + /// Captures a page of MarketplaceComment objects. /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public partial class NetworkService : AdManagerSoapClient, INetworkService { - /// Creates a new instance of the class. - /// - public NetworkService() { - } + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class MarketplaceCommentPage { + private int startIndexField; - /// Creates a new instance of the class. - /// - public NetworkService(string endpointConfigurationName) - : base(endpointConfigurationName) { - } + private bool startIndexFieldSpecified; - /// Creates a new instance of the class. + private MarketplaceComment[] resultsField; + + /// The absolute index in the total result set on which this page begins. /// - public NetworkService(string endpointConfigurationName, string remoteAddress) - : base(endpointConfigurationName, remoteAddress) { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public int startIndex { + get { + return this.startIndexField; + } + set { + this.startIndexField = value; + this.startIndexSpecified = true; + } } - /// Creates a new instance of the class. - /// - public NetworkService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) - : base(endpointConfigurationName, remoteAddress) { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool startIndexSpecified { + get { + return this.startIndexFieldSpecified; + } + set { + this.startIndexFieldSpecified = value; + } } - /// Creates a new instance of the class. + /// The collection of results contained within this page. /// - public NetworkService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) - : base(binding, remoteAddress) { + [System.Xml.Serialization.XmlElementAttribute("results", Order = 1)] + public MarketplaceComment[] results { + get { + return this.resultsField; + } + set { + this.resultsField = value; + } } + } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.NetworkService.getAllNetworksResponse Google.Api.Ads.AdManager.v202311.NetworkServiceInterface.getAllNetworks(Wrappers.NetworkService.getAllNetworksRequest request) { - return base.Channel.getAllNetworks(request); - } - /// Returns the list of Network objects to which the current - /// login has access.

Intended to be used without a network code in the SOAP - /// header when the login may have more than one network associated with it.

- ///
- public virtual Google.Api.Ads.AdManager.v202311.Network[] getAllNetworks() { - Wrappers.NetworkService.getAllNetworksRequest inValue = new Wrappers.NetworkService.getAllNetworksRequest(); - Wrappers.NetworkService.getAllNetworksResponse retVal = ((Google.Api.Ads.AdManager.v202311.NetworkServiceInterface)(this)).getAllNetworks(inValue); - return retVal.rval; - } + /// A comment associated with a programmatic Proposal that + /// has been sent to Marketplace. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class MarketplaceComment { + private long proposalIdField; - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202311.NetworkServiceInterface.getAllNetworksAsync(Wrappers.NetworkService.getAllNetworksRequest request) { - return base.Channel.getAllNetworksAsync(request); - } + private bool proposalIdFieldSpecified; - public virtual System.Threading.Tasks.Task getAllNetworksAsync() { - Wrappers.NetworkService.getAllNetworksRequest inValue = new Wrappers.NetworkService.getAllNetworksRequest(); - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202311.NetworkServiceInterface)(this)).getAllNetworksAsync(inValue)).Result.rval); - } + private string commentField; - /// Returns the current network for which requests are being made. - /// - public virtual Google.Api.Ads.AdManager.v202311.Network getCurrentNetwork() { - return base.Channel.getCurrentNetwork(); - } + private DateTime creationTimeField; - public virtual System.Threading.Tasks.Task getCurrentNetworkAsync() { - return base.Channel.getCurrentNetworkAsync(); - } + private bool createdBySellerField; - /// Returns the default ThirdPartyDataDeclaration for this network. - /// If this setting has never been updated on your network, then this API response - /// will be empty. + private bool createdBySellerFieldSpecified; + + /// The unique ID of the Proposal the comment belongs to. /// - public virtual Google.Api.Ads.AdManager.v202311.ThirdPartyDataDeclaration getDefaultThirdPartyDataDeclaration() { - return base.Channel.getDefaultThirdPartyDataDeclaration(); + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public long proposalId { + get { + return this.proposalIdField; + } + set { + this.proposalIdField = value; + this.proposalIdSpecified = true; + } } - public virtual System.Threading.Tasks.Task getDefaultThirdPartyDataDeclarationAsync() { - return base.Channel.getDefaultThirdPartyDataDeclarationAsync(); + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool proposalIdSpecified { + get { + return this.proposalIdFieldSpecified; + } + set { + this.proposalIdFieldSpecified = value; + } } - /// Creates a new blank network for testing purposes using the current login. - ///

Each login(i.e. email address) can only have one test network. Data from any - /// of your existing networks will not be transferred to the new test network. Once - /// the test network is created, the test network can be used in the API by - /// supplying the Network#networkCode in the SOAP - /// header or by logging into the Ad Manager UI.

Test networks are limited in - /// the following ways:

  • Test networks cannot serve ads.
  • - ///
  • Because test networks cannot serve ads, reports will always come back - /// without data.
  • Since forecasting requires serving history, forecast - /// service results will be faked. See ForecastService - /// for more info.
  • Test networks are, by default, Ad Manager networks and - /// don't have any features from Ad Manager 360. To have additional features turned - /// on, please contact your account manager.
  • Test networks are limited to - /// 10,000 objects per entity type.
+ /// The comment made on the Proposal. /// - public virtual Google.Api.Ads.AdManager.v202311.Network makeTestNetwork() { - return base.Channel.makeTestNetwork(); + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public string comment { + get { + return this.commentField; + } + set { + this.commentField = value; + } } - public virtual System.Threading.Tasks.Task makeTestNetworkAsync() { - return base.Channel.makeTestNetworkAsync(); - } - - /// Updates the specified network. Currently, only the network display name can be - /// updated. + /// The creation DateTime of this . /// - public virtual Google.Api.Ads.AdManager.v202311.Network updateNetwork(Google.Api.Ads.AdManager.v202311.Network network) { - return base.Channel.updateNetwork(network); - } - - public virtual System.Threading.Tasks.Task updateNetworkAsync(Google.Api.Ads.AdManager.v202311.Network network) { - return base.Channel.updateNetworkAsync(network); - } - } - namespace Wrappers.OrderService - { - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "createOrders", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class createOrdersRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("orders")] - public Google.Api.Ads.AdManager.v202311.Order[] orders; - - /// Creates a new instance of the class. - /// - public createOrdersRequest() { + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public DateTime creationTime { + get { + return this.creationTimeField; } - - /// Creates a new instance of the class. - /// - public createOrdersRequest(Google.Api.Ads.AdManager.v202311.Order[] orders) { - this.orders = orders; + set { + this.creationTimeField = value; } } - - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "createOrdersResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class createOrdersResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v202311.Order[] rval; - - /// Creates a new instance of the - /// class. - public createOrdersResponse() { + /// Indicates whether the MarketplaceComment was created by seller. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 3)] + public bool createdBySeller { + get { + return this.createdBySellerField; } - - /// Creates a new instance of the - /// class. - public createOrdersResponse(Google.Api.Ads.AdManager.v202311.Order[] rval) { - this.rval = rval; + set { + this.createdBySellerField = value; + this.createdBySellerSpecified = true; } } - - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "updateOrders", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class updateOrdersRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("orders")] - public Google.Api.Ads.AdManager.v202311.Order[] orders; - - /// Creates a new instance of the class. - /// - public updateOrdersRequest() { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool createdBySellerSpecified { + get { + return this.createdBySellerFieldSpecified; } - - /// Creates a new instance of the class. - /// - public updateOrdersRequest(Google.Api.Ads.AdManager.v202311.Order[] orders) { - this.orders = orders; + set { + this.createdBySellerFieldSpecified = value; } } + } - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "updateOrdersResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class updateOrdersResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v202311.Order[] rval; - - /// Creates a new instance of the - /// class. - public updateOrdersResponse() { - } - - /// Creates a new instance of the - /// class. - public updateOrdersResponse(Google.Api.Ads.AdManager.v202311.Order[] rval) { - this.rval = rval; - } - } - } - /// An Order represents a grouping of individual LineItem objects, each of which fulfill an ad request from a - /// particular advertiser. + /// Captures a page of Proposal objects. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class Order { - private long idField; - - private bool idFieldSpecified; - - private string nameField; - - private DateTime startDateTimeField; - - private DateTime endDateTimeField; - - private bool unlimitedEndDateTimeField; - - private bool unlimitedEndDateTimeFieldSpecified; - - private OrderStatus statusField; - - private bool statusFieldSpecified; - - private bool isArchivedField; - - private bool isArchivedFieldSpecified; - - private string notesField; - - private int externalOrderIdField; - - private bool externalOrderIdFieldSpecified; - - private string poNumberField; - - private string currencyCodeField; - - private long advertiserIdField; - - private bool advertiserIdFieldSpecified; - - private long[] advertiserContactIdsField; - - private long agencyIdField; - - private bool agencyIdFieldSpecified; - - private long[] agencyContactIdsField; - - private long creatorIdField; - - private bool creatorIdFieldSpecified; - - private long traffickerIdField; - - private bool traffickerIdFieldSpecified; - - private long[] secondaryTraffickerIdsField; - - private long salespersonIdField; - - private bool salespersonIdFieldSpecified; - - private long[] secondarySalespersonIdsField; - - private long totalImpressionsDeliveredField; - - private bool totalImpressionsDeliveredFieldSpecified; - - private long totalClicksDeliveredField; - - private bool totalClicksDeliveredFieldSpecified; - - private long totalViewableImpressionsDeliveredField; - - private bool totalViewableImpressionsDeliveredFieldSpecified; - - private Money totalBudgetField; - - private AppliedLabel[] appliedLabelsField; - - private AppliedLabel[] effectiveAppliedLabelsField; - - private string lastModifiedByAppField; - - private bool isProgrammaticField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ProposalPage { + private int totalResultSetSizeField; - private bool isProgrammaticFieldSpecified; + private bool totalResultSetSizeFieldSpecified; - private long[] appliedTeamIdsField; + private int startIndexField; - private DateTime lastModifiedDateTimeField; + private bool startIndexFieldSpecified; - private BaseCustomFieldValue[] customFieldValuesField; + private Proposal[] resultsField; - /// The unique ID of the Order. This value is readonly and is assigned - /// by Google. + /// The size of the total result set to which this page belongs. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public long id { + public int totalResultSetSize { get { - return this.idField; + return this.totalResultSetSizeField; } set { - this.idField = value; - this.idSpecified = true; + this.totalResultSetSizeField = value; + this.totalResultSetSizeSpecified = true; } } - /// true, if a value is specified for , - /// false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool idSpecified { + public bool totalResultSetSizeSpecified { get { - return this.idFieldSpecified; + return this.totalResultSetSizeFieldSpecified; } set { - this.idFieldSpecified = value; + this.totalResultSetSizeFieldSpecified = value; } } - /// The name of the Order. This value is required to create an order - /// and has a maximum length of 255 characters. + /// The absolute index in the total result set on which this page begins. /// [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public string name { + public int startIndex { get { - return this.nameField; + return this.startIndexField; } set { - this.nameField = value; + this.startIndexField = value; + this.startIndexSpecified = true; } } - /// The date and time at which the Order and its associated line items - /// are eligible to begin serving. This attribute is readonly and is derived from - /// the line item of the order which has the earliest LineItem#startDateTime. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public DateTime startDateTime { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool startIndexSpecified { get { - return this.startDateTimeField; + return this.startIndexFieldSpecified; } set { - this.startDateTimeField = value; + this.startIndexFieldSpecified = value; } } - /// The date and time at which the Order and its associated line items - /// stop being served. This attribute is readonly and is derived from the line item - /// of the order which has the latest LineItem#endDateTime. + /// The collection of proposals contained within this page. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public DateTime endDateTime { + [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] + public Proposal[] results { get { - return this.endDateTimeField; + return this.resultsField; } set { - this.endDateTimeField = value; + this.resultsField = value; } } + } - /// Specifies whether or not the Order has an unlimited end date. This - /// attribute is readonly and is true if any of the order's line items - /// has LineItem#unlimitedEndDateTime set to true. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public bool unlimitedEndDateTime { + + /// Represents the actions that can be performed on Proposal + /// objects. + /// + [System.Xml.Serialization.XmlIncludeAttribute(typeof(UpdateOrderWithSellerData))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(UnarchiveProposals))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(TerminateNegotiations))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ResumeProposals))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ReserveProposals))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(RequestBuyerReview))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(RequestBuyerAcceptance))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(PauseProposals))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(EditProposalsForNegotiation))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(DiscardLocalVersionEdits))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ArchiveProposals))] + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public abstract partial class ProposalAction { + } + + + /// The action to update a finalized Marketplace Order with the + /// seller's data. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class UpdateOrderWithSellerData : ProposalAction { + } + + + /// The action used for unarchiving Proposal objects. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class UnarchiveProposals : ProposalAction { + } + + + /// The action for marking all negotiations on the Proposal + /// as terminated in Marketplace. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class TerminateNegotiations : ProposalAction { + } + + + /// The action used for resuming programmatic Proposal + /// objects. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ResumeProposals : ProposalAction { + } + + + /// The action to reserve inventory for Proposal objects. It + /// does not allow overbooking unless #allowOverbook is + /// set to true. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ReserveProposals : ProposalAction { + private bool allowOverbookField; + + private bool allowOverbookFieldSpecified; + + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public bool allowOverbook { get { - return this.unlimitedEndDateTimeField; + return this.allowOverbookField; } set { - this.unlimitedEndDateTimeField = value; - this.unlimitedEndDateTimeSpecified = true; + this.allowOverbookField = value; + this.allowOverbookSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="allowOverbook" />, false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool unlimitedEndDateTimeSpecified { + public bool allowOverbookSpecified { get { - return this.unlimitedEndDateTimeFieldSpecified; + return this.allowOverbookFieldSpecified; } set { - this.unlimitedEndDateTimeFieldSpecified = value; + this.allowOverbookFieldSpecified = value; } } + } - /// The status of the Order. This attribute is read-only. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 5)] - public OrderStatus status { - get { - return this.statusField; - } - set { - this.statusField = value; - this.statusSpecified = true; - } - } - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool statusSpecified { - get { - return this.statusFieldSpecified; - } - set { - this.statusFieldSpecified = value; - } - } + /// The action used to request buyer review for the Proposal. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class RequestBuyerReview : ProposalAction { + } - /// The archival status of the Order. This attribute is readonly. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 6)] - public bool isArchived { - get { - return this.isArchivedField; - } - set { - this.isArchivedField = value; - this.isArchivedSpecified = true; - } - } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool isArchivedSpecified { - get { - return this.isArchivedFieldSpecified; - } - set { - this.isArchivedFieldSpecified = value; - } - } + /// The action used to request acceptance from the buyer for the Proposal through Marketplace. This action does check + /// forecasting unless #allowOverbook is set to + /// true. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class RequestBuyerAcceptance : ProposalAction { + private bool allowOverbookField; - /// Provides any additional notes that may annotate the Order. This - /// attribute is optional and has a maximum length of 65,535 characters. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 7)] - public string notes { - get { - return this.notesField; - } - set { - this.notesField = value; - } - } + private bool allowOverbookFieldSpecified; - /// An arbitrary ID to associate to the Order, which can be used as a - /// key to an external system. This value is optional. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 8)] - public int externalOrderId { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public bool allowOverbook { get { - return this.externalOrderIdField; + return this.allowOverbookField; } set { - this.externalOrderIdField = value; - this.externalOrderIdSpecified = true; + this.allowOverbookField = value; + this.allowOverbookSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="allowOverbook" />, false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool externalOrderIdSpecified { + public bool allowOverbookSpecified { get { - return this.externalOrderIdFieldSpecified; + return this.allowOverbookFieldSpecified; } set { - this.externalOrderIdFieldSpecified = value; + this.allowOverbookFieldSpecified = value; } } + } - /// The purchase order number for the Order. This value is optional and - /// has a maximum length of 63 characters. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 9)] - public string poNumber { - get { - return this.poNumberField; - } - set { - this.poNumberField = value; - } - } - /// The ISO currency code for the currency used by the Order. This - /// value is read-only and is the network's currency code. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 10)] - public string currencyCode { - get { - return this.currencyCodeField; - } - set { - this.currencyCodeField = value; - } - } + /// The action used for pausing programmatic Proposal + /// objects. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class PauseProposals : ProposalAction { + private string reasonField; - /// The unique ID of the Company, which is of type Company.Type#ADVERTISER, to which this order - /// belongs. This attribute is required. + /// Reason to describe why the Proposal is being paused. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 11)] - public long advertiserId { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public string reason { get { - return this.advertiserIdField; + return this.reasonField; } set { - this.advertiserIdField = value; - this.advertiserIdSpecified = true; + this.reasonField = value; } } + } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool advertiserIdSpecified { - get { - return this.advertiserIdFieldSpecified; - } - set { - this.advertiserIdFieldSpecified = value; - } - } - /// List of IDs for advertiser contacts of the order. + /// Opens the fields of a Proposal for edit.

This proposal + /// will not receive updates from Marketplace while it's open for edit. If the buyer + /// updates the proposal while it is open for local editing, Google will set ProposalMarketplaceInfo#isNewVersionFromBuyer to . You + /// will then need to call DiscardProposalDrafts to revert your edits + /// to get the buyer's latest changes, and then perform this action to start making + /// your edits again.

+ ///
+ [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class EditProposalsForNegotiation : ProposalAction { + } + + + /// The action for reverting the local Proposal modifications + /// to reflect the latest terms and private data in Marketplace. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class DiscardLocalVersionEdits : ProposalAction { + } + + + /// The action used for archiving Proposal objects. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ArchiveProposals : ProposalAction { + } + + + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + public interface ProposalServiceInterfaceChannel : Google.Api.Ads.AdManager.v202411.ProposalServiceInterface, System.ServiceModel.IClientChannel + { + } + + + /// Provides methods for adding, updating and retrieving Proposal objects. + /// + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + public partial class ProposalService : AdManagerSoapClient, IProposalService { + /// Creates a new instance of the class. /// - [System.Xml.Serialization.XmlElementAttribute("advertiserContactIds", Order = 12)] - public long[] advertiserContactIds { - get { - return this.advertiserContactIdsField; - } - set { - this.advertiserContactIdsField = value; - } + public ProposalService() { } - /// The unique ID of the Company, which is of type Company.Type#AGENCY, with which this order is - /// associated. This attribute is optional. + /// Creates a new instance of the class. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 13)] - public long agencyId { - get { - return this.agencyIdField; - } - set { - this.agencyIdField = value; - this.agencyIdSpecified = true; - } + public ProposalService(string endpointConfigurationName) + : base(endpointConfigurationName) { } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool agencyIdSpecified { - get { - return this.agencyIdFieldSpecified; - } - set { - this.agencyIdFieldSpecified = value; - } + /// Creates a new instance of the class. + /// + public ProposalService(string endpointConfigurationName, string remoteAddress) + : base(endpointConfigurationName, remoteAddress) { } - /// List of IDs for agency contacts of the order. + /// Creates a new instance of the class. /// - [System.Xml.Serialization.XmlElementAttribute("agencyContactIds", Order = 14)] - public long[] agencyContactIds { - get { - return this.agencyContactIdsField; - } - set { - this.agencyContactIdsField = value; - } + public ProposalService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) + : base(endpointConfigurationName, remoteAddress) { } - /// The unique ID of the User who created the on - /// behalf of the advertiser. This value is readonly and is assigned by Google. + /// Creates a new instance of the class. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 15)] - public long creatorId { - get { - return this.creatorIdField; - } - set { - this.creatorIdField = value; - this.creatorIdSpecified = true; - } + public ProposalService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) + : base(binding, remoteAddress) { } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool creatorIdSpecified { - get { - return this.creatorIdFieldSpecified; - } - set { - this.creatorIdFieldSpecified = value; - } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + Wrappers.ProposalService.createProposalsResponse Google.Api.Ads.AdManager.v202411.ProposalServiceInterface.createProposals(Wrappers.ProposalService.createProposalsRequest request) { + return base.Channel.createProposals(request); } - /// The unique ID of the User responsible for trafficking the - /// Order. This value is required for creating an order. + /// Creates new Proposal objects.

For each proposal, the + /// following fields are required:

///
- [System.Xml.Serialization.XmlElementAttribute(Order = 16)] - public long traffickerId { - get { - return this.traffickerIdField; - } - set { - this.traffickerIdField = value; - this.traffickerIdSpecified = true; - } + public virtual Google.Api.Ads.AdManager.v202411.Proposal[] createProposals(Google.Api.Ads.AdManager.v202411.Proposal[] proposals) { + Wrappers.ProposalService.createProposalsRequest inValue = new Wrappers.ProposalService.createProposalsRequest(); + inValue.proposals = proposals; + Wrappers.ProposalService.createProposalsResponse retVal = ((Google.Api.Ads.AdManager.v202411.ProposalServiceInterface)(this)).createProposals(inValue); + return retVal.rval; } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool traffickerIdSpecified { - get { - return this.traffickerIdFieldSpecified; - } - set { - this.traffickerIdFieldSpecified = value; - } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202411.ProposalServiceInterface.createProposalsAsync(Wrappers.ProposalService.createProposalsRequest request) { + return base.Channel.createProposalsAsync(request); } - /// The IDs of the secondary traffickers associated with the order. This value is - /// optional. - /// - [System.Xml.Serialization.XmlElementAttribute("secondaryTraffickerIds", Order = 17)] - public long[] secondaryTraffickerIds { - get { - return this.secondaryTraffickerIdsField; - } - set { - this.secondaryTraffickerIdsField = value; - } + public virtual System.Threading.Tasks.Task createProposalsAsync(Google.Api.Ads.AdManager.v202411.Proposal[] proposals) { + Wrappers.ProposalService.createProposalsRequest inValue = new Wrappers.ProposalService.createProposalsRequest(); + inValue.proposals = proposals; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202411.ProposalServiceInterface)(this)).createProposalsAsync(inValue)).Result.rval); } - /// The unique ID of the User responsible for the sales of the - /// Order. This value is optional. + /// Gets a MarketplaceCommentPage of MarketplaceComment objects that satisfy the given + /// Statement#query. This method only returns comments + /// already sent to Marketplace, local draft ProposalMarketplaceInfo#marketplaceComment + /// are not included. The following fields are supported for filtering: + /// + /// + ///
PQL Property Object Property
proposalId MarketplaceComment#proposalId
The query must specify a proposalId, and only + /// supports a subset of PQL syntax:
[WHERE <condition> {AND + /// <condition> ...}]
[ORDER BY <property> [ASC | + /// DESC]]
[LIMIT {[<offset>,] <count>} | + /// {<count> OFFSET <offset>}]
+ ///

<condition>
#x160;#x160;#x160;#x160; := + /// <property> = <value>
<condition> := + /// <property> IN <list>
Only supports ORDER + /// BY MarketplaceComment#creationTime.

///
- [System.Xml.Serialization.XmlElementAttribute(Order = 18)] - public long salespersonId { - get { - return this.salespersonIdField; - } - set { - this.salespersonIdField = value; - this.salespersonIdSpecified = true; - } + public virtual Google.Api.Ads.AdManager.v202411.MarketplaceCommentPage getMarketplaceCommentsByStatement(Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.getMarketplaceCommentsByStatement(filterStatement); } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool salespersonIdSpecified { - get { - return this.salespersonIdFieldSpecified; - } - set { - this.salespersonIdFieldSpecified = value; - } + public virtual System.Threading.Tasks.Task getMarketplaceCommentsByStatementAsync(Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.getMarketplaceCommentsByStatementAsync(filterStatement); } - /// The IDs of the secondary salespeople associated with the order. This value is - /// optional. + /// Gets a ProposalPage of Proposal objects that satisfy the given Statement#query. The following fields are supported for filtering: + /// + /// + /// + /// + /// + /// + /// + /// + /// + ///
PQL Property Object + /// Property
id Proposal#id
dfpOrderId Proposal#dfpOrderId
name Proposal#name
status Proposal#status
isArchived Proposal#isArchived
approvalStatus
Only applicable for + /// proposals using sales management
Proposal#approvalStatus
lastModifiedDateTime Proposal#lastModifiedDateTime
isProgrammatic Proposal#isProgrammatic
negotiationStatus
Only applicable for + /// programmatic proposals
ProposalMarketplaceInfo#negotiationStatus
///
- [System.Xml.Serialization.XmlElementAttribute("secondarySalespersonIds", Order = 19)] - public long[] secondarySalespersonIds { - get { - return this.secondarySalespersonIdsField; - } - set { - this.secondarySalespersonIdsField = value; - } + public virtual Google.Api.Ads.AdManager.v202411.ProposalPage getProposalsByStatement(Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.getProposalsByStatement(filterStatement); } - /// Total impressions delivered for all line items of this . This value - /// is read-only and is assigned by Google. + public virtual System.Threading.Tasks.Task getProposalsByStatementAsync(Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.getProposalsByStatementAsync(filterStatement); + } + + /// Performs actions on Proposal objects that match the given + /// Statement#query.

The following fields are also + /// required when submitting proposals for approval:

///
- [System.Xml.Serialization.XmlElementAttribute(Order = 20)] - public long totalImpressionsDelivered { - get { - return this.totalImpressionsDeliveredField; - } - set { - this.totalImpressionsDeliveredField = value; - this.totalImpressionsDeliveredSpecified = true; - } + public virtual Google.Api.Ads.AdManager.v202411.UpdateResult performProposalAction(Google.Api.Ads.AdManager.v202411.ProposalAction proposalAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.performProposalAction(proposalAction, filterStatement); } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool totalImpressionsDeliveredSpecified { - get { - return this.totalImpressionsDeliveredFieldSpecified; - } - set { - this.totalImpressionsDeliveredFieldSpecified = value; - } + public virtual System.Threading.Tasks.Task performProposalActionAsync(Google.Api.Ads.AdManager.v202411.ProposalAction proposalAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.performProposalActionAsync(proposalAction, filterStatement); } - /// Total clicks delivered for all line items of this Order. This value - /// is read-only and is assigned by Google. + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + Wrappers.ProposalService.updateProposalsResponse Google.Api.Ads.AdManager.v202411.ProposalServiceInterface.updateProposals(Wrappers.ProposalService.updateProposalsRequest request) { + return base.Channel.updateProposals(request); + } + + /// Updates the specified Proposal objects. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 21)] - public long totalClicksDelivered { - get { - return this.totalClicksDeliveredField; - } - set { - this.totalClicksDeliveredField = value; - this.totalClicksDeliveredSpecified = true; - } + public virtual Google.Api.Ads.AdManager.v202411.Proposal[] updateProposals(Google.Api.Ads.AdManager.v202411.Proposal[] proposals) { + Wrappers.ProposalService.updateProposalsRequest inValue = new Wrappers.ProposalService.updateProposalsRequest(); + inValue.proposals = proposals; + Wrappers.ProposalService.updateProposalsResponse retVal = ((Google.Api.Ads.AdManager.v202411.ProposalServiceInterface)(this)).updateProposals(inValue); + return retVal.rval; } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool totalClicksDeliveredSpecified { - get { - return this.totalClicksDeliveredFieldSpecified; - } - set { - this.totalClicksDeliveredFieldSpecified = value; - } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202411.ProposalServiceInterface.updateProposalsAsync(Wrappers.ProposalService.updateProposalsRequest request) { + return base.Channel.updateProposalsAsync(request); } - /// Total viewable impressions delivered for all line items of this - /// Order. This value is read-only and is assigned by Google. Starting - /// in v201705, this will be null when the order does not have line - /// items trafficked against a viewable impressions goal. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 22)] - public long totalViewableImpressionsDelivered { - get { - return this.totalViewableImpressionsDeliveredField; + public virtual System.Threading.Tasks.Task updateProposalsAsync(Google.Api.Ads.AdManager.v202411.Proposal[] proposals) { + Wrappers.ProposalService.updateProposalsRequest inValue = new Wrappers.ProposalService.updateProposalsRequest(); + inValue.proposals = proposals; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202411.ProposalServiceInterface)(this)).updateProposalsAsync(inValue)).Result.rval); + } + } + namespace Wrappers.ProposalLineItemService + { + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "createMakegoods", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class createMakegoodsRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("makegoodInfos")] + public Google.Api.Ads.AdManager.v202411.ProposalLineItemMakegoodInfo[] makegoodInfos; + + /// Creates a new instance of the + /// class. + public createMakegoodsRequest() { } - set { - this.totalViewableImpressionsDeliveredField = value; - this.totalViewableImpressionsDeliveredSpecified = true; + + /// Creates a new instance of the + /// class. + public createMakegoodsRequest(Google.Api.Ads.AdManager.v202411.ProposalLineItemMakegoodInfo[] makegoodInfos) { + this.makegoodInfos = makegoodInfos; } } - /// true, if a value is specified for , false otherwise. - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool totalViewableImpressionsDeliveredSpecified { - get { - return this.totalViewableImpressionsDeliveredFieldSpecified; + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "createMakegoodsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class createMakegoodsResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("rval")] + public Google.Api.Ads.AdManager.v202411.ProposalLineItem[] rval; + + /// Creates a new instance of the + /// class. + public createMakegoodsResponse() { } - set { - this.totalViewableImpressionsDeliveredFieldSpecified = value; + + /// Creates a new instance of the + /// class. + public createMakegoodsResponse(Google.Api.Ads.AdManager.v202411.ProposalLineItem[] rval) { + this.rval = rval; } } - /// Total budget for all line items of this Order. This value is a - /// readonly field assigned by Google and is calculated from the associated LineItem#costPerUnit values. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 23)] - public Money totalBudget { - get { - return this.totalBudgetField; + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "createProposalLineItems", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class createProposalLineItemsRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("proposalLineItems")] + public Google.Api.Ads.AdManager.v202411.ProposalLineItem[] proposalLineItems; + + /// Creates a new instance of the class. + public createProposalLineItemsRequest() { } - set { - this.totalBudgetField = value; + + /// Creates a new instance of the class. + public createProposalLineItemsRequest(Google.Api.Ads.AdManager.v202411.ProposalLineItem[] proposalLineItems) { + this.proposalLineItems = proposalLineItems; } } - /// The set of labels applied directly to this order. - /// - [System.Xml.Serialization.XmlElementAttribute("appliedLabels", Order = 24)] - public AppliedLabel[] appliedLabels { - get { - return this.appliedLabelsField; + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "createProposalLineItemsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class createProposalLineItemsResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("rval")] + public Google.Api.Ads.AdManager.v202411.ProposalLineItem[] rval; + + /// Creates a new instance of the class. + public createProposalLineItemsResponse() { } - set { - this.appliedLabelsField = value; + + /// Creates a new instance of the class. + public createProposalLineItemsResponse(Google.Api.Ads.AdManager.v202411.ProposalLineItem[] rval) { + this.rval = rval; } } - /// Contains the set of labels applied directly to the order as well as those - /// inherited from the company that owns the order. If a label has been negated, - /// only the negated label is returned. This field is readonly and is assigned by - /// Google. - /// - [System.Xml.Serialization.XmlElementAttribute("effectiveAppliedLabels", Order = 25)] - public AppliedLabel[] effectiveAppliedLabels { - get { - return this.effectiveAppliedLabelsField; + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "updateProposalLineItems", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class updateProposalLineItemsRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("proposalLineItems")] + public Google.Api.Ads.AdManager.v202411.ProposalLineItem[] proposalLineItems; + + /// Creates a new instance of the class. + public updateProposalLineItemsRequest() { } - set { - this.effectiveAppliedLabelsField = value; + + /// Creates a new instance of the class. + public updateProposalLineItemsRequest(Google.Api.Ads.AdManager.v202411.ProposalLineItem[] proposalLineItems) { + this.proposalLineItems = proposalLineItems; } } - /// The application which modified this order. This attribute is read only and is - /// assigned by Google. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 26)] - public string lastModifiedByApp { - get { - return this.lastModifiedByAppField; + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "updateProposalLineItemsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class updateProposalLineItemsResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("rval")] + public Google.Api.Ads.AdManager.v202411.ProposalLineItem[] rval; + + /// Creates a new instance of the class. + public updateProposalLineItemsResponse() { } - set { - this.lastModifiedByAppField = value; + + /// Creates a new instance of the class. + public updateProposalLineItemsResponse(Google.Api.Ads.AdManager.v202411.ProposalLineItem[] rval) { + this.rval = rval; } } + } + /// Lists all errors for executing operations on proposal line items. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ProposalLineItemActionError : ApiError { + private ProposalLineItemActionErrorReason reasonField; - /// Specifies whether or not the Order is a programmatic order. This - /// value is optional and defaults to false. + private bool reasonFieldSpecified; + + /// The error reason represented by an enum. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 27)] - public bool isProgrammatic { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public ProposalLineItemActionErrorReason reason { get { - return this.isProgrammaticField; + return this.reasonField; } set { - this.isProgrammaticField = value; - this.isProgrammaticSpecified = true; + this.reasonField = value; + this.reasonSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , + /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool isProgrammaticSpecified { + public bool reasonSpecified { get { - return this.isProgrammaticFieldSpecified; + return this.reasonFieldSpecified; } set { - this.isProgrammaticFieldSpecified = value; + this.reasonFieldSpecified = value; } } + } - /// The IDs of all teams that this order is on directly. + + /// The reasons for the target error. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ProposalLineItemActionError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum ProposalLineItemActionErrorReason { + /// The operation is not applicable to the current state. /// - [System.Xml.Serialization.XmlElementAttribute("appliedTeamIds", Order = 28)] - public long[] appliedTeamIds { - get { - return this.appliedTeamIdsField; - } - set { - this.appliedTeamIdsField = value; - } - } + NOT_APPLICABLE = 0, + /// The operation is not applicable because the containing proposal is not editable. + /// + PROPOSAL_NOT_EDITABLE = 1, + /// The archive operation is not applicable because it would cause some mandatory + /// products to have no unarchived proposal line items in the package. + /// + CANNOT_SELECTIVELY_ARCHIVE_PROPOSAL_LINE_ITEMS_FROM_MANDATORY_PRODUCTS = 3, + /// The unarchive operation is not applicable because it would cause some mandatory + /// products to have no unarchived proposal line items in the package. + /// + CANNOT_SELECTIVELY_UNARCHIVE_PROPOSAL_LINE_ITEMS_FROM_MANDATORY_PRODUCTS = 4, + /// Sold programmatic ProposalLineItem cannot be + /// unarchived. + /// + CANNOT_UNARCHIVE_SOLD_PROGRAMMATIC_PROPOSAL_LINE_ITEM = 5, + /// Active ProposalLineItem cannot be archived + /// + CANNOT_ARCHIVE_ONGOING_PROPOSAL_LINE_ITEM = 6, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 2, + } - /// The date and time this order was last modified. + + /// Errors associated with preferred deal proposal line + /// items. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class PreferredDealError : ApiError { + private PreferredDealErrorReason reasonField; + + private bool reasonFieldSpecified; + + /// The error reason represented by an enum. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 29)] - public DateTime lastModifiedDateTime { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public PreferredDealErrorReason reason { get { - return this.lastModifiedDateTimeField; + return this.reasonField; } set { - this.lastModifiedDateTimeField = value; + this.reasonField = value; + this.reasonSpecified = true; } } - /// The values of the custom fields associated with this order. - /// - [System.Xml.Serialization.XmlElementAttribute("customFieldValues", Order = 30)] - public BaseCustomFieldValue[] customFieldValues { + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool reasonSpecified { get { - return this.customFieldValuesField; + return this.reasonFieldSpecified; } set { - this.customFieldValuesField = value; + this.reasonFieldSpecified = value; } } } - /// Describes the order statuses. + /// The reasons for the target error. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum OrderStatus { - /// Indicates that the Order has just been created but no - /// approval has been requested yet. - /// - DRAFT = 0, - /// Indicates that a request for approval for the Order has been - /// made. - /// - PENDING_APPROVAL = 1, - /// Indicates that the Order has been approved and is ready to - /// serve. - /// - APPROVED = 2, - /// Indicates that the Order has been disapproved and is not - /// eligible to serve. - /// - DISAPPROVED = 3, - /// This is a legacy state. Paused status should be checked on LineItemss within the order. + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "PreferredDealError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum PreferredDealErrorReason { + INVALID_PRIORITY = 0, + /// Preferred deal proposal line items only support + /// RateType#CPM. /// - PAUSED = 4, - /// Indicates that the Order has been canceled and cannot serve. + INVALID_RATE_TYPE = 1, + /// Preferred deal proposal line items do not support + /// frequency caps. /// - CANCELED = 5, - /// Indicates that the Order has been deleted by DSM. + INVALID_FREQUENCY_CAPS = 2, + /// Preferred deal proposal line items only support + /// RoadblockingType#ONE_OR_MORE. /// - DELETED = 6, - /// The value returned if the actual value is not exposed by the requested API - /// version. + INVALID_ROADBLOCKING_TYPE = 3, + /// Preferred deal proposal line items only support + /// DeliveryRateType#FRONTLOADED. /// - UNKNOWN = 7, + INVALID_DELIVERY_RATE_TYPE = 4, + UNKNOWN = 5, } [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", ConfigurationName = "Google.Api.Ads.AdManager.v202311.OrderServiceInterface")] - public interface OrderServiceInterface + [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", ConfigurationName = "Google.Api.Ads.AdManager.v202411.ProposalLineItemServiceInterface")] + public interface ProposalLineItemServiceInterface { // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Wrappers.OrderService.createOrdersResponse createOrders(Wrappers.OrderService.createOrdersRequest request); + Wrappers.ProposalLineItemService.createMakegoodsResponse createMakegoods(Wrappers.ProposalLineItemService.createMakegoodsRequest request); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task createOrdersAsync(Wrappers.OrderService.createOrdersRequest request); + System.Threading.Tasks.Task createMakegoodsAsync(Wrappers.ProposalLineItemService.createMakegoodsRequest request); + + // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Wrappers.ProposalLineItemService.createProposalLineItemsResponse createProposalLineItems(Wrappers.ProposalLineItemService.createProposalLineItemsRequest request); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + System.Threading.Tasks.Task createProposalLineItemsAsync(Wrappers.ProposalLineItemService.createProposalLineItemsRequest request); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v202311.OrderPage getOrdersByStatement(Google.Api.Ads.AdManager.v202311.Statement filterStatement); + Google.Api.Ads.AdManager.v202411.ProposalLineItemPage getProposalLineItemsByStatement(Google.Api.Ads.AdManager.v202411.Statement filterStatement); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getOrdersByStatementAsync(Google.Api.Ads.AdManager.v202311.Statement filterStatement); + System.Threading.Tasks.Task getProposalLineItemsByStatementAsync(Google.Api.Ads.AdManager.v202411.Statement filterStatement); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v202311.UpdateResult performOrderAction(Google.Api.Ads.AdManager.v202311.OrderAction orderAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement); + Google.Api.Ads.AdManager.v202411.UpdateResult performProposalLineItemAction(Google.Api.Ads.AdManager.v202411.ProposalLineItemAction proposalLineItemAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task performOrderActionAsync(Google.Api.Ads.AdManager.v202311.OrderAction orderAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement); + System.Threading.Tasks.Task performProposalLineItemActionAsync(Google.Api.Ads.AdManager.v202411.ProposalLineItemAction proposalLineItemAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement); // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Wrappers.OrderService.updateOrdersResponse updateOrders(Wrappers.OrderService.updateOrdersRequest request); + Wrappers.ProposalLineItemService.updateProposalLineItemsResponse updateProposalLineItems(Wrappers.ProposalLineItemService.updateProposalLineItemsRequest request); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task updateOrdersAsync(Wrappers.OrderService.updateOrdersRequest request); + System.Threading.Tasks.Task updateProposalLineItemsAsync(Wrappers.ProposalLineItemService.updateProposalLineItemsRequest request); } - /// Captures a page of Order objects. + /// Captures a page of ProposalLineItem objects. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class OrderPage { - private int totalResultSetSizeField; - - private bool totalResultSetSizeFieldSpecified; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ProposalLineItemPage { + private ProposalLineItem[] resultsField; private int startIndexField; private bool startIndexFieldSpecified; - private Order[] resultsField; + private int totalResultSetSizeField; - /// The size of the total result set to which this page belongs. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public int totalResultSetSize { - get { - return this.totalResultSetSizeField; - } - set { - this.totalResultSetSizeField = value; - this.totalResultSetSizeSpecified = true; - } - } + private bool totalResultSetSizeFieldSpecified; - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool totalResultSetSizeSpecified { + /// The collection of proposal line items contained within this page. + /// + [System.Xml.Serialization.XmlElementAttribute("results", Order = 0)] + public ProposalLineItem[] results { get { - return this.totalResultSetSizeFieldSpecified; + return this.resultsField; } set { - this.totalResultSetSizeFieldSpecified = value; + this.resultsField = value; } } @@ -40147,13131 +41156,11238 @@ public bool startIndexSpecified { } } - /// The collection of orders contained within this page. - /// - [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] - public Order[] results { - get { - return this.resultsField; - } - set { - this.resultsField = value; - } - } - } - - - /// Represents the actions that can be performed on Order - /// objects. - /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(UnarchiveOrders))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(SubmitOrdersForApprovalWithoutReservationChanges))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(SubmitOrdersForApproval))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(SubmitOrdersForApprovalAndOverbook))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(RetractOrdersWithoutReservationChanges))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(RetractOrders))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ResumeOrders))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ResumeAndOverbookOrders))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(PauseOrders))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(DisapproveOrdersWithoutReservationChanges))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(DisapproveOrders))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(DeleteOrders))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ArchiveOrders))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ApproveOrdersWithoutReservationChanges))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ApproveOrders))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ApproveAndOverbookOrders))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public abstract partial class OrderAction { - } - - - /// The action used for unarchiving Order objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class UnarchiveOrders : OrderAction { - } - - - /// The action used for submitting Order objects for approval. - /// This action does not make any changes to the LineItem#reservationStatus of the line - /// items within the order. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class SubmitOrdersForApprovalWithoutReservationChanges : OrderAction { - } - - - /// The action used for submitting Order objects for approval. - /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(SubmitOrdersForApprovalAndOverbook))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class SubmitOrdersForApproval : OrderAction { - private bool skipInventoryCheckField; - - private bool skipInventoryCheckFieldSpecified; - - /// Indicates whether the inventory check should be skipped when performing this - /// action. The default value is false. + /// The size of the total result set to which this page belongs. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public bool skipInventoryCheck { + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public int totalResultSetSize { get { - return this.skipInventoryCheckField; + return this.totalResultSetSizeField; } set { - this.skipInventoryCheckField = value; - this.skipInventoryCheckSpecified = true; + this.totalResultSetSizeField = value; + this.totalResultSetSizeSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="totalResultSetSize" />, false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool skipInventoryCheckSpecified { + public bool totalResultSetSizeSpecified { get { - return this.skipInventoryCheckFieldSpecified; + return this.totalResultSetSizeFieldSpecified; } set { - this.skipInventoryCheckFieldSpecified = value; + this.totalResultSetSizeFieldSpecified = value; } } } - /// The action used for submitting and overbooking Order objects - /// for approval. + /// Represents the actions that can be performed on ProposalLineItem objects. /// + [System.Xml.Serialization.XmlIncludeAttribute(typeof(UnarchiveProposalLineItems))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ResumeProposalLineItems))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ReserveProposalLineItems))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ReleaseProposalLineItems))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(PauseProposalLineItems))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ArchiveProposalLineItems))] [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class SubmitOrdersForApprovalAndOverbook : SubmitOrdersForApproval { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public abstract partial class ProposalLineItemAction { } - /// The action used for retracting Order objects. This action - /// does not make any changes to the LineItem#reservationStatus of the line - /// items within the order. + /// The action used for unarchiving ProposalLineItem + /// objects. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class RetractOrdersWithoutReservationChanges : OrderAction { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class UnarchiveProposalLineItems : ProposalLineItemAction { } - /// The action used for retracting Order objects. + /// The action used for resuming ProposalLineItem + /// objects. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class RetractOrders : OrderAction { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ResumeProposalLineItems : ProposalLineItemAction { } - /// The action used for resuming Order objects. LineItem objects within the order that are eligble to resume - /// will resume as well. + /// The action to reserve inventory for ProposalLineItem objects. It does not overbook + /// inventory unless #allowOverbook is set to + /// true. This action is only applicable for programmatic proposals not + /// using sales management. /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ResumeAndOverbookOrders))] [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ResumeOrders : OrderAction { - private bool skipInventoryCheckField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ReserveProposalLineItems : ProposalLineItemAction { + private bool allowOverbookField; - private bool skipInventoryCheckFieldSpecified; + private bool allowOverbookFieldSpecified; - /// Indicates whether the inventory check should be skipped when performing this - /// action. The default value is false. - /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public bool skipInventoryCheck { + public bool allowOverbook { get { - return this.skipInventoryCheckField; + return this.allowOverbookField; } set { - this.skipInventoryCheckField = value; - this.skipInventoryCheckSpecified = true; + this.allowOverbookField = value; + this.allowOverbookSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="allowOverbook" />, false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool skipInventoryCheckSpecified { + public bool allowOverbookSpecified { get { - return this.skipInventoryCheckFieldSpecified; + return this.allowOverbookFieldSpecified; } set { - this.skipInventoryCheckFieldSpecified = value; + this.allowOverbookFieldSpecified = value; } } } - /// The action used for resuming and overbooking Order objects. - /// All LineItem objects within the order will resume as - /// well. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ResumeAndOverbookOrders : ResumeOrders { - } - - - /// The action used for pausing all LineItem objects within - /// an order. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class PauseOrders : OrderAction { - } - - - /// The action used for disapproving Order objects. All LineItem objects within the order will be disapproved as - /// well. This action does not make any changes to the LineItem#reservationStatus of the line - /// items within the order. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class DisapproveOrdersWithoutReservationChanges : OrderAction { - } - - - /// The action used for disapproving Order objects. All LineItem objects within the order will be disapproved as - /// well. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class DisapproveOrders : OrderAction { - } - - - /// The action used for deleting Order objects. All line items - /// within that order are also deleted. Orders can only be deleted if none of its - /// line items have been eligible to serve. This action can be used to delete - /// proposed orders and line items if they are no longer valid. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class DeleteOrders : OrderAction { - } - - - /// The action used for archiving Order objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ArchiveOrders : OrderAction { - } - - - /// The action used for approving Order objects. All LineItem objects within the order will be approved as well. - /// This action does not make any changes to the LineItem#reservationStatus of the line - /// items within the order. If there are reservable line items that have not been - /// reserved the operation will not succeed. + /// The action used for releasing inventory for ProposalLineItem objects. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ApproveOrdersWithoutReservationChanges : OrderAction { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ReleaseProposalLineItems : ProposalLineItemAction { } - /// The action used for approving Order objects. All LineItem objects within the order will be approved as well. - /// For more information on what happens to an order and its line items when it is - /// approved, see the Ad Manager Help - /// Center.

+ /// The action used for pausing ProposalLineItem + /// objects. /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ApproveAndOverbookOrders))] [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ApproveOrders : OrderAction { - private bool skipInventoryCheckField; - - private bool skipInventoryCheckFieldSpecified; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class PauseProposalLineItems : ProposalLineItemAction { + private string reasonField; - /// Indicates whether the inventory check should be skipped when performing this - /// action. The default value is false. + /// Reason to describe why the ProposalLineItem is + /// being paused. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public bool skipInventoryCheck { - get { - return this.skipInventoryCheckField; - } - set { - this.skipInventoryCheckField = value; - this.skipInventoryCheckSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool skipInventoryCheckSpecified { + public string reason { get { - return this.skipInventoryCheckFieldSpecified; + return this.reasonField; } set { - this.skipInventoryCheckFieldSpecified = value; + this.reasonField = value; } } } - /// The action used for approving and overbooking Order objects. - /// All LineItem objects within the order will be approved as - /// well. For more information on what happens to an order and its line items when - /// it is approved and overbooked, see the Ad Manager Help - /// Center. + /// The action used for archiving ProposalLineItem + /// objects. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ApproveAndOverbookOrders : ApproveOrders { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ArchiveProposalLineItems : ProposalLineItemAction { } [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public interface OrderServiceInterfaceChannel : Google.Api.Ads.AdManager.v202311.OrderServiceInterface, System.ServiceModel.IClientChannel + public interface ProposalLineItemServiceInterfaceChannel : Google.Api.Ads.AdManager.v202411.ProposalLineItemServiceInterface, System.ServiceModel.IClientChannel { } - /// Provides methods for creating, updating and retrieving Order - /// objects.

An order is a grouping of LineItem objects. - /// Line items have a many-to-one relationship with orders, meaning each line item - /// can belong to only one order, but orders can have multiple line items. An order - /// can be used to manage the line items it contains.

+ /// Provides methods for creating, updating and retrieving ProposalLineItem objects. /// [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public partial class OrderService : AdManagerSoapClient, IOrderService { - /// Creates a new instance of the class. - /// - public OrderService() { + public partial class ProposalLineItemService : AdManagerSoapClient, IProposalLineItemService { + /// Creates a new instance of the + /// class. + public ProposalLineItemService() { } - /// Creates a new instance of the class. - /// - public OrderService(string endpointConfigurationName) + /// Creates a new instance of the + /// class. + public ProposalLineItemService(string endpointConfigurationName) : base(endpointConfigurationName) { } - /// Creates a new instance of the class. - /// - public OrderService(string endpointConfigurationName, string remoteAddress) + /// Creates a new instance of the + /// class. + public ProposalLineItemService(string endpointConfigurationName, string remoteAddress) : base(endpointConfigurationName, remoteAddress) { } - /// Creates a new instance of the class. - /// - public OrderService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) + /// Creates a new instance of the + /// class. + public ProposalLineItemService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) : base(endpointConfigurationName, remoteAddress) { } - /// Creates a new instance of the class. - /// - public OrderService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) + /// Creates a new instance of the + /// class. + public ProposalLineItemService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) : base(binding, remoteAddress) { } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.OrderService.createOrdersResponse Google.Api.Ads.AdManager.v202311.OrderServiceInterface.createOrders(Wrappers.OrderService.createOrdersRequest request) { - return base.Channel.createOrders(request); + Wrappers.ProposalLineItemService.createMakegoodsResponse Google.Api.Ads.AdManager.v202411.ProposalLineItemServiceInterface.createMakegoods(Wrappers.ProposalLineItemService.createMakegoodsRequest request) { + return base.Channel.createMakegoods(request); } - /// Creates new Order objects. + /// Creates makegood proposal line items given the specifications provided. /// - public virtual Google.Api.Ads.AdManager.v202311.Order[] createOrders(Google.Api.Ads.AdManager.v202311.Order[] orders) { - Wrappers.OrderService.createOrdersRequest inValue = new Wrappers.OrderService.createOrdersRequest(); - inValue.orders = orders; - Wrappers.OrderService.createOrdersResponse retVal = ((Google.Api.Ads.AdManager.v202311.OrderServiceInterface)(this)).createOrders(inValue); + public virtual Google.Api.Ads.AdManager.v202411.ProposalLineItem[] createMakegoods(Google.Api.Ads.AdManager.v202411.ProposalLineItemMakegoodInfo[] makegoodInfos) { + Wrappers.ProposalLineItemService.createMakegoodsRequest inValue = new Wrappers.ProposalLineItemService.createMakegoodsRequest(); + inValue.makegoodInfos = makegoodInfos; + Wrappers.ProposalLineItemService.createMakegoodsResponse retVal = ((Google.Api.Ads.AdManager.v202411.ProposalLineItemServiceInterface)(this)).createMakegoods(inValue); return retVal.rval; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202311.OrderServiceInterface.createOrdersAsync(Wrappers.OrderService.createOrdersRequest request) { - return base.Channel.createOrdersAsync(request); + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202411.ProposalLineItemServiceInterface.createMakegoodsAsync(Wrappers.ProposalLineItemService.createMakegoodsRequest request) { + return base.Channel.createMakegoodsAsync(request); } - public virtual System.Threading.Tasks.Task createOrdersAsync(Google.Api.Ads.AdManager.v202311.Order[] orders) { - Wrappers.OrderService.createOrdersRequest inValue = new Wrappers.OrderService.createOrdersRequest(); - inValue.orders = orders; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202311.OrderServiceInterface)(this)).createOrdersAsync(inValue)).Result.rval); + public virtual System.Threading.Tasks.Task createMakegoodsAsync(Google.Api.Ads.AdManager.v202411.ProposalLineItemMakegoodInfo[] makegoodInfos) { + Wrappers.ProposalLineItemService.createMakegoodsRequest inValue = new Wrappers.ProposalLineItemService.createMakegoodsRequest(); + inValue.makegoodInfos = makegoodInfos; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202411.ProposalLineItemServiceInterface)(this)).createMakegoodsAsync(inValue)).Result.rval); } - /// Gets an OrderPage of Order objects - /// that satisfy the given Statement#query. The following fields are - /// supported for filtering: - /// - /// - /// - /// - /// - /// - /// - /// - /// - ///
PQL Property Object Property
advertiserIdOrder#advertiserId
endDateTime Order#endDateTime
id Order#id
name Order#name
salespersonId Order#salespersonId
startDateTime Order#startDateTime
status Order#status
traffickerId Order#traffickerId
lastModifiedDateTime Order#lastModifiedDateTime
- ///
- public virtual Google.Api.Ads.AdManager.v202311.OrderPage getOrdersByStatement(Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.getOrdersByStatement(filterStatement); - } - - public virtual System.Threading.Tasks.Task getOrdersByStatementAsync(Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.getOrdersByStatementAsync(filterStatement); + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + Wrappers.ProposalLineItemService.createProposalLineItemsResponse Google.Api.Ads.AdManager.v202411.ProposalLineItemServiceInterface.createProposalLineItems(Wrappers.ProposalLineItemService.createProposalLineItemsRequest request) { + return base.Channel.createProposalLineItems(request); } - /// Performs actions on Order objects that match the given Statement#query. + /// Creates new ProposalLineItem objects. /// - public virtual Google.Api.Ads.AdManager.v202311.UpdateResult performOrderAction(Google.Api.Ads.AdManager.v202311.OrderAction orderAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.performOrderAction(orderAction, filterStatement); + public virtual Google.Api.Ads.AdManager.v202411.ProposalLineItem[] createProposalLineItems(Google.Api.Ads.AdManager.v202411.ProposalLineItem[] proposalLineItems) { + Wrappers.ProposalLineItemService.createProposalLineItemsRequest inValue = new Wrappers.ProposalLineItemService.createProposalLineItemsRequest(); + inValue.proposalLineItems = proposalLineItems; + Wrappers.ProposalLineItemService.createProposalLineItemsResponse retVal = ((Google.Api.Ads.AdManager.v202411.ProposalLineItemServiceInterface)(this)).createProposalLineItems(inValue); + return retVal.rval; } - public virtual System.Threading.Tasks.Task performOrderActionAsync(Google.Api.Ads.AdManager.v202311.OrderAction orderAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.performOrderActionAsync(orderAction, filterStatement); + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202411.ProposalLineItemServiceInterface.createProposalLineItemsAsync(Wrappers.ProposalLineItemService.createProposalLineItemsRequest request) { + return base.Channel.createProposalLineItemsAsync(request); } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.OrderService.updateOrdersResponse Google.Api.Ads.AdManager.v202311.OrderServiceInterface.updateOrders(Wrappers.OrderService.updateOrdersRequest request) { - return base.Channel.updateOrders(request); + public virtual System.Threading.Tasks.Task createProposalLineItemsAsync(Google.Api.Ads.AdManager.v202411.ProposalLineItem[] proposalLineItems) { + Wrappers.ProposalLineItemService.createProposalLineItemsRequest inValue = new Wrappers.ProposalLineItemService.createProposalLineItemsRequest(); + inValue.proposalLineItems = proposalLineItems; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202411.ProposalLineItemServiceInterface)(this)).createProposalLineItemsAsync(inValue)).Result.rval); } - /// Updates the specified Order objects. + /// Gets a ProposalLineItemPage of ProposalLineItem objects that satisfy the given Statement#query. The following fields are supported + /// for filtering: + /// + /// + /// + /// + /// + /// + /// + ///
PQL Property Object Property
id ProposalLineItem#id
name ProposalLineItem#name
proposalId ProposalLineItem#proposalId
startDateTime ProposalLineItem#startDateTime
endDateTime ProposalLineItem#endDateTime
isArchived ProposalLineItem#isArchived
lastModifiedDateTime ProposalLineItem#lastModifiedDateTime
isProgrammatic ProposalLineItem#isProgrammatic
///
- public virtual Google.Api.Ads.AdManager.v202311.Order[] updateOrders(Google.Api.Ads.AdManager.v202311.Order[] orders) { - Wrappers.OrderService.updateOrdersRequest inValue = new Wrappers.OrderService.updateOrdersRequest(); - inValue.orders = orders; - Wrappers.OrderService.updateOrdersResponse retVal = ((Google.Api.Ads.AdManager.v202311.OrderServiceInterface)(this)).updateOrders(inValue); - return retVal.rval; + public virtual Google.Api.Ads.AdManager.v202411.ProposalLineItemPage getProposalLineItemsByStatement(Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.getProposalLineItemsByStatement(filterStatement); } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202311.OrderServiceInterface.updateOrdersAsync(Wrappers.OrderService.updateOrdersRequest request) { - return base.Channel.updateOrdersAsync(request); + public virtual System.Threading.Tasks.Task getProposalLineItemsByStatementAsync(Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.getProposalLineItemsByStatementAsync(filterStatement); } - public virtual System.Threading.Tasks.Task updateOrdersAsync(Google.Api.Ads.AdManager.v202311.Order[] orders) { - Wrappers.OrderService.updateOrdersRequest inValue = new Wrappers.OrderService.updateOrdersRequest(); - inValue.orders = orders; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202311.OrderServiceInterface)(this)).updateOrdersAsync(inValue)).Result.rval); + /// Performs actions on ProposalLineItem objects that + /// match the given Statement#query. + /// + public virtual Google.Api.Ads.AdManager.v202411.UpdateResult performProposalLineItemAction(Google.Api.Ads.AdManager.v202411.ProposalLineItemAction proposalLineItemAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.performProposalLineItemAction(proposalLineItemAction, filterStatement); } - } - namespace Wrappers.PlacementService - { - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "createPlacements", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class createPlacementsRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("placements")] - public Google.Api.Ads.AdManager.v202311.Placement[] placements; - /// Creates a new instance of the - /// class. - public createPlacementsRequest() { - } - - /// Creates a new instance of the - /// class. - public createPlacementsRequest(Google.Api.Ads.AdManager.v202311.Placement[] placements) { - this.placements = placements; - } + public virtual System.Threading.Tasks.Task performProposalLineItemActionAsync(Google.Api.Ads.AdManager.v202411.ProposalLineItemAction proposalLineItemAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.performProposalLineItemActionAsync(proposalLineItemAction, filterStatement); } - - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "createPlacementsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class createPlacementsResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v202311.Placement[] rval; - - /// Creates a new instance of the - /// class. - public createPlacementsResponse() { - } - - /// Creates a new instance of the - /// class. - public createPlacementsResponse(Google.Api.Ads.AdManager.v202311.Placement[] rval) { - this.rval = rval; - } + Wrappers.ProposalLineItemService.updateProposalLineItemsResponse Google.Api.Ads.AdManager.v202411.ProposalLineItemServiceInterface.updateProposalLineItems(Wrappers.ProposalLineItemService.updateProposalLineItemsRequest request) { + return base.Channel.updateProposalLineItems(request); } - - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "updatePlacements", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class updatePlacementsRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("placements")] - public Google.Api.Ads.AdManager.v202311.Placement[] placements; - - /// Creates a new instance of the - /// class. - public updatePlacementsRequest() { - } - - /// Creates a new instance of the - /// class. - public updatePlacementsRequest(Google.Api.Ads.AdManager.v202311.Placement[] placements) { - this.placements = placements; - } + /// Updates the specified ProposalLineItem objects. + /// + public virtual Google.Api.Ads.AdManager.v202411.ProposalLineItem[] updateProposalLineItems(Google.Api.Ads.AdManager.v202411.ProposalLineItem[] proposalLineItems) { + Wrappers.ProposalLineItemService.updateProposalLineItemsRequest inValue = new Wrappers.ProposalLineItemService.updateProposalLineItemsRequest(); + inValue.proposalLineItems = proposalLineItems; + Wrappers.ProposalLineItemService.updateProposalLineItemsResponse retVal = ((Google.Api.Ads.AdManager.v202411.ProposalLineItemServiceInterface)(this)).updateProposalLineItems(inValue); + return retVal.rval; } - - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "updatePlacementsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class updatePlacementsResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v202311.Placement[] rval; - - /// Creates a new instance of the - /// class. - public updatePlacementsResponse() { - } + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202411.ProposalLineItemServiceInterface.updateProposalLineItemsAsync(Wrappers.ProposalLineItemService.updateProposalLineItemsRequest request) { + return base.Channel.updateProposalLineItemsAsync(request); + } - /// Creates a new instance of the - /// class. - public updatePlacementsResponse(Google.Api.Ads.AdManager.v202311.Placement[] rval) { - this.rval = rval; - } + public virtual System.Threading.Tasks.Task updateProposalLineItemsAsync(Google.Api.Ads.AdManager.v202411.ProposalLineItem[] proposalLineItems) { + Wrappers.ProposalLineItemService.updateProposalLineItemsRequest inValue = new Wrappers.ProposalLineItemService.updateProposalLineItemsRequest(); + inValue.proposalLineItems = proposalLineItems; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202411.ProposalLineItemServiceInterface)(this)).updateProposalLineItemsAsync(inValue)).Result.rval); } } - /// Deprecated container for information required for AdWords advertisers to place - /// their ads. + namespace Wrappers.PublisherQueryLanguageService + { + } + /// Each Row object represents data about one entity in a ResultSet. /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(Placement))] [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class SiteTargetingInfo { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class Row { + private Value[] valuesField; + + /// Represents a collection of values belonging to one entity. + /// + [System.Xml.Serialization.XmlElementAttribute("values", Order = 0)] + public Value[] values { + get { + return this.valuesField; + } + set { + this.valuesField = value; + } + } } - /// A Placement groups related AdUnit objects. + /// Contains a Targeting value.

This object is + /// experimental! TargetingValue is an experimental, innovative, and + /// rapidly changing new feature for Ad Manager. Unfortunately, being on the + /// bleeding edge means that we may make backwards-incompatible changes to + /// TargetingValue. We will inform the community when this feature is + /// no longer experimental.

///
[System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class Placement : SiteTargetingInfo { - private long idField; - - private bool idFieldSpecified; - - private string nameField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class TargetingValue : ObjectValue { + private Targeting valueField; - private string descriptionField; + /// The Targeting value. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public Targeting value { + get { + return this.valueField; + } + set { + this.valueField = value; + } + } + } - private string placementCodeField; - private InventoryStatus statusField; + /// This class is unused. It exists only to provide reference documentation of the + /// possible values for type and ChangeHistoryOperation. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ChangeHistoryValue : ObjectValue { + private ChangeHistoryEntityType entityTypeField; - private bool statusFieldSpecified; + private bool entityTypeFieldSpecified; - private string[] targetedAdUnitIdsField; + private ChangeHistoryOperation operationField; - private DateTime lastModifiedDateTimeField; + private bool operationFieldSpecified; - /// Uniquely identifies the Placement. This attribute is read-only and - /// is assigned by Google when a placement is created. - /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public long id { + public ChangeHistoryEntityType entityType { get { - return this.idField; + return this.entityTypeField; } set { - this.idField = value; - this.idSpecified = true; + this.entityTypeField = value; + this.entityTypeSpecified = true; } } - /// true, if a value is specified for , - /// false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool idSpecified { + public bool entityTypeSpecified { get { - return this.idFieldSpecified; + return this.entityTypeFieldSpecified; } set { - this.idFieldSpecified = value; + this.entityTypeFieldSpecified = value; } } - /// The name of the Placement. This value is required and has a maximum - /// length of 255 characters. - /// [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public string name { + public ChangeHistoryOperation operation { get { - return this.nameField; + return this.operationField; } set { - this.nameField = value; + this.operationField = value; + this.operationSpecified = true; } } - /// A description of the Placement. This value is optional and its - /// maximum length is 65,535 characters. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public string description { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool operationSpecified { get { - return this.descriptionField; + return this.operationFieldSpecified; } set { - this.descriptionField = value; + this.operationFieldSpecified = value; } } + } - /// A string used to uniquely identify the Placement for purposes of - /// serving the ad. This attribute is read-only and is assigned by Google when a - /// placement is created. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public string placementCode { - get { - return this.placementCodeField; - } - set { - this.placementCodeField = value; - } - } - /// The status of the Placement. This attribute is read-only. + /// The type of entity a change occurred on. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum ChangeHistoryEntityType { + /// The value returned if the actual value is not exposed by the requested API + /// version. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public InventoryStatus status { - get { - return this.statusField; - } - set { - this.statusField = value; - this.statusSpecified = true; - } - } + UNKNOWN = 0, + BASE_RATE = 17, + COMPANY = 1, + CONTACT = 2, + CREATIVE = 3, + CREATIVE_SET = 4, + CUSTOM_FIELD = 5, + CUSTOM_KEY = 6, + CUSTOM_VALUE = 7, + PLACEMENT = 8, + AD_UNIT = 9, + LABEL = 10, + LINE_ITEM = 11, + NETWORK = 12, + ORDER = 13, + PREMIUM_RATE = 18, + PRODUCT = 19, + PRODUCT_PACKAGE = 20, + PRODUCT_PACKAGE_ITEM = 21, + PRODUCT_TEMPLATE = 22, + PROPOSAL = 23, + PROPOSAL_LINK = 24, + PROPOSAL_LINE_ITEM = 25, + PACKAGE = 26, + RATE_CARD = 27, + ROLE = 14, + TEAM = 15, + USER = 16, + WORKFLOW = 28, + } - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool statusSpecified { - get { - return this.statusFieldSpecified; - } - set { - this.statusFieldSpecified = value; - } - } - /// The collection of AdUnit object IDs that constitute the - /// Placement. + /// An operation that was performed on an entity. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum ChangeHistoryOperation { + CREATE = 0, + UPDATE = 1, + DELETE = 2, + /// The value returned if the actual value is not exposed by the requested API + /// version. /// - [System.Xml.Serialization.XmlElementAttribute("targetedAdUnitIds", Order = 5)] - public string[] targetedAdUnitIds { - get { - return this.targetedAdUnitIdsField; - } - set { - this.targetedAdUnitIdsField = value; - } - } + UNKNOWN = 3, + } - /// The date and time this placement was last modified. + + /// Contains information about a column in a ResultSet. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ColumnType { + private string labelNameField; + + /// Represents the column's name. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 6)] - public DateTime lastModifiedDateTime { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public string labelName { get { - return this.lastModifiedDateTimeField; + return this.labelNameField; } set { - this.lastModifiedDateTimeField = value; + this.labelNameField = value; } } } - /// Class defining all validation errors for a placement. + /// The ResultSet represents a table of data obtained from the + /// execution of a PQL Statement. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class PlacementError : ApiError { - private PlacementErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ResultSet { + private ColumnType[] columnTypesField; - private bool reasonFieldSpecified; + private Row[] rowsField; - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public PlacementErrorReason reason { + /// A collection of ColumnType objects. + /// + [System.Xml.Serialization.XmlElementAttribute("columnTypes", Order = 0)] + public ColumnType[] columnTypes { get { - return this.reasonField; + return this.columnTypesField; } set { - this.reasonField = value; - this.reasonSpecified = true; + this.columnTypesField = value; } } - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { + /// A collection of Row objects. + /// + [System.Xml.Serialization.XmlElementAttribute("rows", Order = 1)] + public Row[] rows { get { - return this.reasonFieldSpecified; + return this.rowsField; } set { - this.reasonFieldSpecified = value; + this.rowsField = value; } } } - /// Possible reasons for the error. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "PlacementError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum PlacementErrorReason { - /// Entity type is something other than inventory or content. - /// - INVALID_ENTITY_TYPE = 0, - /// Shared inventory cannot be assigned to a placement. - /// - SHARED_INVENTORY_ASSIGNED = 1, - /// Shared inventory from one distributor network cannot be in the same placement - /// with inventory from another distributor. - /// - PLACEMENTS_CANNOT_INCLUDE_INVENTORY_FROM_MULTIPLE_DISTRIBUTOR_NETWORKS = 2, - /// Shared inventory and local inventory cannot be in the same placement. - /// - PLACEMENTS_CANNOT_INCLUDE_BOTH_LOCAL_AND_SHARED_INVENTORY = 3, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 4, - } - - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", ConfigurationName = "Google.Api.Ads.AdManager.v202311.PlacementServiceInterface")] - public interface PlacementServiceInterface + [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", ConfigurationName = "Google.Api.Ads.AdManager.v202411.PublisherQueryLanguageServiceInterface")] + public interface PublisherQueryLanguageServiceInterface { - // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(SiteTargetingInfo))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Wrappers.PlacementService.createPlacementsResponse createPlacements(Wrappers.PlacementService.createPlacementsRequest request); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task createPlacementsAsync(Wrappers.PlacementService.createPlacementsRequest request); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(SiteTargetingInfo))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v202311.PlacementPage getPlacementsByStatement(Google.Api.Ads.AdManager.v202311.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getPlacementsByStatementAsync(Google.Api.Ads.AdManager.v202311.Statement filterStatement); - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(SiteTargetingInfo))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v202311.UpdateResult performPlacementAction(Google.Api.Ads.AdManager.v202311.PlacementAction placementAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task performPlacementActionAsync(Google.Api.Ads.AdManager.v202311.PlacementAction placementAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement); + Google.Api.Ads.AdManager.v202411.ResultSet select(Google.Api.Ads.AdManager.v202411.Statement selectStatement); - // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(SiteTargetingInfo))] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Wrappers.PlacementService.updatePlacementsResponse updatePlacements(Wrappers.PlacementService.updatePlacementsRequest request); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task updatePlacementsAsync(Wrappers.PlacementService.updatePlacementsRequest request); + System.Threading.Tasks.Task selectAsync(Google.Api.Ads.AdManager.v202411.Statement selectStatement); } - /// Captures a page of Placement objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class PlacementPage { - private int totalResultSetSizeField; - - private bool totalResultSetSizeFieldSpecified; - - private int startIndexField; - - private bool startIndexFieldSpecified; - - private Placement[] resultsField; - - /// The size of the total result set to which this page belongs. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public int totalResultSetSize { - get { - return this.totalResultSetSizeField; - } - set { - this.totalResultSetSizeField = value; - this.totalResultSetSizeSpecified = true; - } - } + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + public interface PublisherQueryLanguageServiceInterfaceChannel : Google.Api.Ads.AdManager.v202411.PublisherQueryLanguageServiceInterface, System.ServiceModel.IClientChannel + { + } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool totalResultSetSizeSpecified { - get { - return this.totalResultSetSizeFieldSpecified; - } - set { - this.totalResultSetSizeFieldSpecified = value; - } - } - /// The absolute index in the total result set on which this page begins. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public int startIndex { - get { - return this.startIndexField; - } - set { - this.startIndexField = value; - this.startIndexSpecified = true; - } + /// Provides methods for executing a PQL Statement to + /// retrieve information from the system. In order to support the selection of + /// columns of interest from various tables, Statement + /// objects support a "select" clause.

An example query text might be + /// "select CountryCode, Name from Geo_Target", where + /// CountryCode and Name are columns of interest and + /// Geo_Target is the table.

The following tables are + /// supported:

Geo_Target

+ /// + ///
Column NameDescription
Id Unique identifier + /// for the Geo target
Name The name of the Geo + /// target
CanonicalParentId The criteria ID of the + /// direct parent that defines the canonical name of the geo target. For example, if + /// the current geo target is "San Francisco", its canonical name would be "San + /// Francisco, California, United States" thus the canonicalParentId would be the + /// criteria ID of California and the canonicalParentId of California would be the + /// criteria ID of United states
ParentIds A comma + /// separated list of criteria IDs of all parents of the geo target ordered by + /// ascending size
CountryCode Country code as defined + /// by ISO 3166-1 alpha-2
Type Allowable values:
    + ///
  • Airport
  • Autonomous_Community
  • Canton
  • City
  • + ///
  • Congressional_District
  • Country
  • County
  • + ///
  • Department
  • DMA_Region
  • Governorate
  • + ///
  • Municipality
  • Neighborhood
  • Postal_Code
  • + ///
  • Prefecture
  • Province
  • Region
  • State
  • + ///
  • Territory
  • Tv_Region
  • Union_Territory
Targetable Indicates whether geographical targeting is + /// allowed

Bandwidth_Group

+ /// + ///
Column Name Description
Id Unique identifier for the bandwidth group
BandwidthName Name of the bandwidth group
+ ///

Browser

Note: this table only contains browsers that are available + /// in the Ad Manager UI targeting picker.

Column + /// Name Description
Id Unique + /// identifier for the browser
BrowserName Name of the + /// browser
MajorVersion Major version of the + /// browser
MinorVersion Minor version of the + /// browser

Browser_Language

+ /// + ///
Column Name Description
Id Unique identifier for the browser language
BrowserLanguageName Browser's language
+ ///

Device_Capability

Column Name Description
Id Unique identifier for + /// the device capability
DeviceCapabilityName Name of + /// the device capability

Device_Category

+ /// + /// + ///
Column Name Description
Id Unique identifier for the device category
DeviceCategoryName Name of the device category
+ ///

Device_Manufacturer

+ ///
Column Name Description
Id Unique identifier for + /// the device manufacturer
MobileDeviceManufacturerNameName of the device manufacturer

Mobile_Carrier

+ /// + /// + /// + /// + ///
Column Name Description
Id Unique identifier for the mobile carrier
CountryCode The country code of the mobile carrier
MobileCarrierName Name of the mobile carrier

Mobile_Device

+ ///
Column NameDescription
Id Unique identifier + /// for the mobile device
MobileDeviceManufacturerId Id + /// of the device manufacturer
MobileDeviceName Name of + /// the mobile device

Mobile_Device_Submodel

+ /// + /// + /// + /// + ///
Column Name Description
Id Unique identifier for the mobile device submodel
MobileDeviceId Id of the mobile device
MobileDeviceSubmodelName Name of the mobile device submodel

Operating_System

+ ///
Column + /// Name Description
Id Unique + /// identifier for the operating system
OperatingSystemNameName of the operating system
+ ///

Operating_System_Version

+ /// + ///
Column NameDescription
Id Unique identifier + /// for the operating system version
OperatingSystemIdId of the operating system
MajorVersion The + /// operating system major version
MinorVersion The + /// operating system minor version
MicroVersion The + /// operating system micro version

Third_Party_Company

+ /// + /// + /// + /// + ///
Column Name Description
Id Unique identifier for the third party company
Name The third party company name
Type The third party company type
StatusThe status of the third party company

Line_Item

+ /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + ///
Column name TypeDescription
CostType TextThe method used for billing this LineItem.
CreationDateTime Datetime The date and time + /// this LineItem was last created. This attribute may be null for + /// LineItems created before this feature was introduced.
DeliveryRateType Text The strategy for + /// delivering ads over the course of the 's duration. This attribute + /// is optional and defaults to DeliveryRateType#EVENLY. Starting in v201306, + /// it may default to DeliveryRateType#FRONTLOADED if + /// specifically configured to on the network.
ExternalIdText An identifier for the LineItem that + /// is meaningful to the publisher.
IdNumber Uniquely identifies the LineItem. + /// This attribute is read-only and is assigned by Google when a line item is + /// created.
IsMissingCreativesBoolean Indicates if a LineItem is + /// missing any creatives for the + /// creativePlaceholders specified.
IsSetTopBoxEnabled Boolean Whether or not + /// this line item is set-top box enabled.
LastModifiedDateTime Datetime The date and + /// time this LineItem was last modified.
LatestNielsenInTargetRatioMilliPercent NumberThe most recently computed in-target ratio measured from Nielsen reporting + /// data and the LineItem's settings. It's provided in milli percent, + /// or null if not applicable.
LineItemTypeText Indicates the line item type of a + /// LineItem.
Name TextThe name of the LineItem.
OrderIdNumber The ID of the Order to + /// which the belongs.
ServingEndTimeDatetime The date and time on which the + /// LineItem stops serving, inclusive of any grace period.
StartDateTime Datetime The date and time + /// on which the LineItem is enabled to begin serving.
Status Text The status of the + /// LineItem.
TargetingTargeting The targeting criteria for the ad + /// campaign.
UnitsBought NumberThe total number of impressions or clicks that will be reserved for the + /// LineItem. If the line item is of type LineItemType#SPONSORSHIP, then it represents + /// the percentage of available impressions reserved.

Ad_Unit

+ /// + /// + /// + /// + /// + /// + ///
Column name TypeDescription
AdUnitCode TextA string used to uniquely identify the ad unit for the purposes of serving + /// the ad. This attribute is read-only and is assigned by Google when an ad unit is + /// created.
ExternalSetTopBoxChannelIdText The channel ID for set-top box enabled ad units.
IdNumber Uniquely identifies the ad unit. This value is + /// read-only and is assigned by Google when an ad unit is created.
LastModifiedDateTime Datetime The date and + /// time this ad unit was last modified.
NameText The name of the ad unit.
ParentId Number The ID of the ad unit's + /// parent. Every ad unit has a parent except for the root ad unit, which is created + /// by Google.

User

+ /// + /// + /// + /// + /// + ///
Column + /// name Type Description
EmailText The email or login of the user.
ExternalId Text An identifier for the user + /// that is meaningful to the publisher.
IdNumber The unique ID of the user.
IsServiceAccount Boolean True if this user is + /// an OAuth2 service account user, false otherwise.
NameText The name of the user.
RoleId Number The unique role ID of the user. + /// Role objects that are created by Google will have negative + /// IDs.
RoleName Text The name + /// of the Role assigned to the user.

Programmatic_Buyer

+ /// + /// + /// + /// + /// + /// + /// + ///
Column + /// name Type Description
BuyerAccountIdNumber The ID used by Authorized Buyers to bill the + /// appropriate buyer network for a programmatic order.
EnabledForPreferredDeals Boolean Whether the + /// buyer is allowed to negotiate Preferred Deals.
EnabledForProgrammaticGuaranteed BooleanWhether the buyer is enabled for Programmatic Guaranteed deals.
IsAgency Boolean Whether the buyer is an + /// advertising agency.
Name TextDisplay name that references the buyer.
ParentIdNumber The ID of the programmatic buyer's sponsor. If + /// the programmatic buyer has no sponsor, this field will be -1.
PartnerClientId Text ID used to represent + /// Display & Video 360 client buyer partner ID (if Display & Video 360) or + /// Authorized Buyers client buyer account ID.

Audience_Segment_Category

+ /// + /// + ///
Column name Type Description
IdNumber The unique identifier for the audience segment + /// category.
Name Text The name + /// of the audience segment category.
ParentIdNumber The unique identifier of the audience segment + /// category's parent.

Audience_Segment

+ /// + /// + /// + /// + /// + /// + /// + /// + /// + ///
Column nameType Description
AdIdSizeNumber The number of AdID users in the segment.
CategoryIds Set of number The ids + /// of the categories that this audience segment belongs to.
Id Number The unique identifier for the + /// audience segment.
IdfaSize NumberThe number of IDFA users in the segment.
MobileWebSize Number The number of mobile web + /// users in the segment.
Name TextThe name of the audience segment.
OwnerAccountIdNumber The owner account id of the audience + /// segment.
OwnerName Text The + /// owner name of the audience segment.
PpidSizeNumber The number of PPID users in the segment.
SegmentType Text The type of the + /// audience segment.

Time_Zone

+ /// + /// + ///
Column name Type Description
Id Text The id of time zone in the form of + /// .
StandardGmtOffsetText The standard GMT offset in current time in the + /// form of for America/New_York, excluding the Daylight + /// Saving Time.

+ /// Proposal_Terms_And_Conditions

+ ///
Column nameType Description

Change_History

Restrictions: Only ordering by + /// ChangeDateTime descending is supported. The IN + /// operator is only supported on the column. OFFSET is + /// not supported. To page through results, filter on the earliest change + /// Id as a continuation token. For example "WHERE Id < + /// :id". On each query, both an upper bound and a lower bound for the + /// are required. + /// + /// + /// + /// + /// + ///
Column name TypeDescription
ChangeDateTimeDatetime The date and time this change happened.
EntityId Number The ID of the + /// entity that was changed.
EntityTypeText The type of + /// the entity that was changed.
IdText The ID of this change. IDs may only be used with + /// "<" operator for paging and are subject to change. Do not store + /// IDs. Note that the "<" here does not compare the value of the ID + /// but the row in the change history table it represents.
Operation Text The operation that was performed on this + /// entity.
UserId Number The ID of the user that made this change.

ad_category

+ /// + /// + /// + /// + ///
Column nameType Description
ChildIds Set of + /// number Child IDs of an Ad category. Only general categories have + /// children
Id Number ID of an + /// Ad category
Name TextLocalized name of an Ad category
ParentIdNumber Parent ID of an Ad category. Only general + /// categories have parents
Type TextType of an Ad category. Only general categories have children

rich_media_ad_company

The global + /// set of rich media ad companies that are known to Google. + /// + /// + ///
Column + /// name Type Description
CompanyGvlIdNumber IAB Global Vendor List ID of a Rich Media Ad + /// Company
GdprStatus Text GDPR + /// compliance status of a Rich Media Ad Company. Indicates whether the company has + /// been registered with Google as a compliant company for GDPR.
Id Number ID of a Rich Media Ad Company
Name Text Name of a Rich Media Ad + /// Company
PolicyUrl Text Policy + /// URL of a Rich Media Ad Company

mcm_earnings

Restriction: On each query, an expression + /// scoping the MCM earnings to a single month is required (e.x. "WHERE month = + /// '2020-01'" or "WHERE month IN ('2020-01')"). Bydefault, child publishers are + /// ordered by their network code. + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + ///
Column name TypeDescription
ChildName TextThe name of the child publisher.
ChildNetworkCodeText The network code of the child publisher.
ChildPaymentCurrencyCode Text The + /// child payment currency code as defined by ISO 4217.
ChildPaymentMicros Number The portion of the + /// total earnings paid to the child publisher in micro units of the ChildPaymentCurrencyCode
DeductionsCurrencyCode Text The deductions + /// currency code as defined by ISO 4217. Null for earnings prior to August + /// 2020.
DeductionsMicros NumberThe deductions for the month due to spam in micro units of the + /// DeductionsCurrencyCode. Null for earnings prior to August + /// 2020.
DelegationType Text The + /// current type of MCM delegation between the parent and child publisher.
Month Date The year and month that + /// the MCM earnings data applies to. The date will be specified as the first of the + /// month.
ParentName Text The + /// name of the parent publisher.
ParentNetworkCodeText The network code of the parent publisher.
ParentPaymentCurrencyCode Text The + /// parent payment currency code as defined by ISO 4217.
ParentPaymentMicros Number The portion of the + /// total earnings paid to the parent publisher in micro units of the ParentPaymentCurrencyCode.
TotalEarningsCurrencyCode Text The total + /// earnings currency code as defined by ISO 4217.
TotalEarningsMicros Number The total earnings + /// for the month in micro units of the .

Linked_Device

+ /// + /// + /// + /// + /// + ///
Column nameType Description
IdNumber The ID of the LinkedDevice
Name Text The name of the LinkedDevice
UserId Number The ID of the user + /// that this device belongs to.
VisibilityText The visibility of the LinkedDevice.

child_publisher

By default, child + /// publishers are ordered by their ID. + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + ///
Column nameType Description
AddressVerificationExpirationTime DatetimeDate when the child publisher's address verification (mail PIN) will + /// expire.
AddressVerificationLastModifiedTimeDatetime The time of the last change in the child + /// publisher's address verification (mail PIN) process.
AddressVerificationStatus Text The address + /// verification (mail PIN) status of the child publisher's Ad Manager network. + /// Possible values are {$code EXEMPT}, {$code EXPIRED}, {$code FAILED}, {$code + /// PENDING}, {$code NOT_ELIGIBLE}, and {$code VERIFIED}.
ApprovalStatus Text The approval status of + /// the child publisher's Ad Manager network. Possible values are {$code APPROVED}, + /// {$code CLOSED_BY_PUBLISHER}, {$code CLOSED_INVALID_ACTIVITY}, {$code + /// CLOSED_POLICY_VIOLATION}, {$code DEACTIVATED_BY_AD_MANAGER}, {$code + /// DISAPPROVED_DUPLICATE_ACCOUNT}, {$code DISAPPROVED_INELIGIBLE}, and {$code + /// PENDING_GOOGLE_APPROVAL}.
ApprovedManageAccountRevshareMillipercent NumberThe approved revshare with the MCM child publisher
ChildNetworkAdExchangeEnabled Boolean Whether + /// the child publisher's Ad Manager network has Ad Exchange enabled
ChildNetworkCode Text The network code of the + /// MCM child publisher
DelegationTypeText The delegation type of the MCM child publisher. + /// This will be the approved type if the child has accepted the relationship, and + /// the proposed type otherwise.
EmailText The email of the MCM child publisher
Id Number The ID of the MCM child + /// publisher.
IdentityVerificationLastModifiedTimeDatetime The time of the last change in the child + /// publisher's identity verification process.
IdentityVerificationStatus Text Status of the + /// child publisher's identity verification process. Possible values are {$code + /// EXEMPT}, {$code EXPIRED}, {$code FAILED}, {$code PENDING}, {$code NOT_ELIGIBLE}, + /// and {$code VERIFIED}.
InvitationStatusText Status of the parent's invitation request to a + /// child publisher. Possible values are {$code ACCEPTED}, {$code EXPIRED}, {$code + /// PENDING}, {$code REJECTED}, and {$code WITHDRAWN}.
NameText The name of the MCM child publisher
OnboardingTasks Set of text The child + /// publisher's pending onboarding tasks. This will only be populated if the child + /// publisher's AccountStatus is + /// PENDING_GOOGLE_APPROVAL.
ReadinessStatusText Overall onboarding readiness of the child + /// publisher. Correlates with serving behavior, but does not include site-level + /// approval information. Possible values are {$code READY}, {$code NOT_READY}, and + /// {$code INACTIVE}.
SellerId TextThe child publisher's seller ID, as specified in the parent publisher's + /// sellers.json file. This field is only relevant for Manage Inventory child + /// publishers.

content_label

+ /// + /// + ///
Column name Type Description
Id Number The ID of the Content Label
Label Text The name of the Content + /// Label
+ ///
+ [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + public partial class PublisherQueryLanguageService : AdManagerSoapClient, IPublisherQueryLanguageService { + /// Creates a new instance of the class. + public PublisherQueryLanguageService() { } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool startIndexSpecified { - get { - return this.startIndexFieldSpecified; - } - set { - this.startIndexFieldSpecified = value; - } + /// Creates a new instance of the class. + public PublisherQueryLanguageService(string endpointConfigurationName) + : base(endpointConfigurationName) { } - /// The collection of placements contained within this page. - /// - [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] - public Placement[] results { - get { - return this.resultsField; - } - set { - this.resultsField = value; - } + /// Creates a new instance of the class. + public PublisherQueryLanguageService(string endpointConfigurationName, string remoteAddress) + : base(endpointConfigurationName, remoteAddress) { } - } + /// Creates a new instance of the class. + public PublisherQueryLanguageService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) + : base(endpointConfigurationName, remoteAddress) { + } - /// Represents the actions that can be performed on Placement objects. - /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(DeactivatePlacements))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ArchivePlacements))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ActivatePlacements))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public abstract partial class PlacementAction { - } + /// Creates a new instance of the class. + public PublisherQueryLanguageService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) + : base(binding, remoteAddress) { + } + /// Retrieves rows of data that satisfy the given Statement#query from the system. + /// + public virtual Google.Api.Ads.AdManager.v202411.ResultSet select(Google.Api.Ads.AdManager.v202411.Statement selectStatement) { + return base.Channel.select(selectStatement); + } - /// The action used for deactivating Placement objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class DeactivatePlacements : PlacementAction { + public virtual System.Threading.Tasks.Task selectAsync(Google.Api.Ads.AdManager.v202411.Statement selectStatement) { + return base.Channel.selectAsync(selectStatement); + } } - - - /// The action used for archiving Placement objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ArchivePlacements : PlacementAction { + namespace Wrappers.ReportService + { } - - - /// The action used for activating Placement objects. + /// An error for an exception that occurred while running the report. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ActivatePlacements : PlacementAction { - } + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ReportError : ApiError { + private ReportErrorReason reasonField; + private bool reasonFieldSpecified; - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public interface PlacementServiceInterfaceChannel : Google.Api.Ads.AdManager.v202311.PlacementServiceInterface, System.ServiceModel.IClientChannel - { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public ReportErrorReason reason { + get { + return this.reasonField; + } + set { + this.reasonField = value; + this.reasonSpecified = true; + } + } + + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool reasonSpecified { + get { + return this.reasonFieldSpecified; + } + set { + this.reasonFieldSpecified = value; + } + } } - /// Provides methods for creating, updating and retrieving Placement objects.

You can use a placement to group ad - /// units. For example, you might have a placement that focuses on sports sites, - /// which may be spread across different branches of your inventory. You might also - /// have a "fire sale" placement that includes ad units that have not been selling - /// and are consequently priced very attractively.

+ /// The reasons for report error. /// - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public partial class PlacementService : AdManagerSoapClient, IPlacementService { - /// Creates a new instance of the class. + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ReportError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum ReportErrorReason { + /// Default ReportError when the reason is not among any already + /// defined. /// - public PlacementService() { - } - - /// Creates a new instance of the class. + DEFAULT = 0, + /// User does not have permission to access the report. /// - public PlacementService(string endpointConfigurationName) - : base(endpointConfigurationName) { - } - - /// Creates a new instance of the class. + REPORT_ACCESS_NOT_ALLOWED = 1, + /// User does not have permission to view one or more Dimension. /// - public PlacementService(string endpointConfigurationName, string remoteAddress) - : base(endpointConfigurationName, remoteAddress) { - } - - /// Creates a new instance of the class. + DIMENSION_VIEW_NOT_ALLOWED = 2, + /// User has no permission to view one or more attributes. /// - public PlacementService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) - : base(endpointConfigurationName, remoteAddress) { - } - - /// Creates a new instance of the class. + ATTRIBUTE_VIEW_NOT_ALLOWED = 4, + /// User does not have permission to view one or more Column. /// - public PlacementService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) - : base(binding, remoteAddress) { - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.PlacementService.createPlacementsResponse Google.Api.Ads.AdManager.v202311.PlacementServiceInterface.createPlacements(Wrappers.PlacementService.createPlacementsRequest request) { - return base.Channel.createPlacements(request); - } - - /// Creates new Placement objects. + COLUMN_VIEW_NOT_ALLOWED = 5, + /// The report query exceeds the maximum allowed number of characters. /// - public virtual Google.Api.Ads.AdManager.v202311.Placement[] createPlacements(Google.Api.Ads.AdManager.v202311.Placement[] placements) { - Wrappers.PlacementService.createPlacementsRequest inValue = new Wrappers.PlacementService.createPlacementsRequest(); - inValue.placements = placements; - Wrappers.PlacementService.createPlacementsResponse retVal = ((Google.Api.Ads.AdManager.v202311.PlacementServiceInterface)(this)).createPlacements(inValue); - return retVal.rval; - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202311.PlacementServiceInterface.createPlacementsAsync(Wrappers.PlacementService.createPlacementsRequest request) { - return base.Channel.createPlacementsAsync(request); - } - - public virtual System.Threading.Tasks.Task createPlacementsAsync(Google.Api.Ads.AdManager.v202311.Placement[] placements) { - Wrappers.PlacementService.createPlacementsRequest inValue = new Wrappers.PlacementService.createPlacementsRequest(); - inValue.placements = placements; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202311.PlacementServiceInterface)(this)).createPlacementsAsync(inValue)).Result.rval); - } - - /// Gets a PlacementPage of Placement objects that satisfy the given Statement#query. The following fields are supported for filtering: - /// - /// - /// - /// - /// - /// - ///
PQL Property Object - /// Property
description Placement#description
id Placement#id
name Placement#name
placementCode Placement#placementCode
status Placement#status
lastModifiedDateTime Placement#lastModifiedDateTime
+ REPORT_QUERY_TOO_LONG = 7, + /// Invalid report job state for the given operation. /// - public virtual Google.Api.Ads.AdManager.v202311.PlacementPage getPlacementsByStatement(Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.getPlacementsByStatement(filterStatement); - } - - public virtual System.Threading.Tasks.Task getPlacementsByStatementAsync(Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.getPlacementsByStatementAsync(filterStatement); - } - - /// Performs actions on Placement objects that match the - /// given Statement#query. + INVALID_OPERATION_FOR_REPORT_STATE = 8, + /// Invalid Dimension objects specified. /// - public virtual Google.Api.Ads.AdManager.v202311.UpdateResult performPlacementAction(Google.Api.Ads.AdManager.v202311.PlacementAction placementAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.performPlacementAction(placementAction, filterStatement); - } - - public virtual System.Threading.Tasks.Task performPlacementActionAsync(Google.Api.Ads.AdManager.v202311.PlacementAction placementAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.performPlacementActionAsync(placementAction, filterStatement); - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.PlacementService.updatePlacementsResponse Google.Api.Ads.AdManager.v202311.PlacementServiceInterface.updatePlacements(Wrappers.PlacementService.updatePlacementsRequest request) { - return base.Channel.updatePlacements(request); - } - - /// Updates the specified Placement objects. + INVALID_DIMENSIONS = 9, + /// The attribute ID(s) are not valid. /// - public virtual Google.Api.Ads.AdManager.v202311.Placement[] updatePlacements(Google.Api.Ads.AdManager.v202311.Placement[] placements) { - Wrappers.PlacementService.updatePlacementsRequest inValue = new Wrappers.PlacementService.updatePlacementsRequest(); - inValue.placements = placements; - Wrappers.PlacementService.updatePlacementsResponse retVal = ((Google.Api.Ads.AdManager.v202311.PlacementServiceInterface)(this)).updatePlacements(inValue); - return retVal.rval; - } + INVALID_ATTRIBUTES = 10, + /// The API error when running the report with CmsMetadataKeyDimension. There are three + /// reasons for this error.
  1. ReportQuery#dimensions contains Dimension#CONTENT_CMS_METADATA, but ReportQuery#cmsMetadataKeyIds is + /// empty.
  2. ReportQuery#cmsMetadataKeyIds is + /// non-empty, but ReportQuery#dimensions does + /// not contain Dimension#CONTENT_CMS_METADATA.
  3. + ///
  4. The ReportQuery#cmsMetadataKeyIds specified + /// along with the Dimension#CONTENT_CMS_METADATA are not valid, + /// i.e., these IDs are not reportable cms metadata key defined by the + /// publisher.
+ ///
+ INVALID_CMS_METADATA_DIMENSIONS = 28, + /// Invalid Column objects specified. + /// + INVALID_COLUMNS = 12, + /// Invalid DimensionFilter objects specified. + /// + INVALID_DIMENSION_FILTERS = 13, + /// Invalid date. + /// + INVALID_DATE = 14, + /// The start date for running the report should not be later than the end date. + /// + END_DATE_TIME_NOT_AFTER_START_TIME = 15, + /// The start date for running the report should not be more than three years before + /// now. + /// + START_DATE_MORE_THAN_THREE_YEARS_AGO = 26, + /// The list of Dimension and Column + /// objects cannot be empty. + /// + NOT_NULL = 16, + /// Attribute has to be selected in combination with dimensions. + /// + ATTRIBUTES_NOT_SUPPORTED_FOR_REQUEST = 17, + /// The provided report violates one or more constraints, which govern + /// incompatibilities and requirements between different report properties. Some + /// reasons for constraint violations include:
  • Not all Column objects requested are supported for the given set of Dimension objects.
  • The report's date range is not + /// compatible with the given set of Column objects.
  • + ///
  • The report's TimeZoneType is not compatible with + /// the given set of Column and Dimension + /// objects (version 201802 and later).
  • The report's currency is not + /// compatible with the given set of Column objects.
+ /// For versions 201911 and later, this is only returned when some or all of the Column objects are not supported for the requested Dimension objects. + ///
+ COLUMNS_NOT_SUPPORTED_FOR_REQUESTED_DIMENSIONS = 18, + /// The report's date range is not compatible with the requested Dimension and Column objects. + /// + DATE_RANGE_NOT_SUPPORTED_FOR_REQUESTED_REPORT = 29, + /// The report's TimeZoneType is not compatible with the + /// requested Column and Dimension + /// objects. + /// + TIME_ZONE_TYPE_NOT_SUPPORTED_FOR_REQUESTED_REPORT = 30, + /// The report's currency is not compatible with the requested Column objects. + /// + CURRENCY_CODE_NOT_SUPPORTED_FOR_REQUESTED_REPORT = 31, + /// Failed to store/cache a report. + /// + FAILED_TO_STORE_REPORT = 19, + /// The requested report does not exist. + /// + REPORT_NOT_FOUND = 20, + /// User has no permission to view in another network. + /// + SR_CANNOT_RUN_REPORT_IN_ANOTHER_NETWORK = 21, + /// The report's AdUnitView is not compatible with the + /// requested Dimension and Column + /// objects. + /// + AD_UNIT_VIEW_NOT_SUPPORTED_FOR_REQUESTED_REPORT = 32, + /// The report uses a field that has been temporarily disabled. See more details at + /// https://ads.google.com/status/publisher. + /// + REPORT_FIELD_TEMPORARILY_DISABLED = 33, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 25, + } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202311.PlacementServiceInterface.updatePlacementsAsync(Wrappers.PlacementService.updatePlacementsRequest request) { - return base.Channel.updatePlacementsAsync(request); - } - public virtual System.Threading.Tasks.Task updatePlacementsAsync(Google.Api.Ads.AdManager.v202311.Placement[] placements) { - Wrappers.PlacementService.updatePlacementsRequest inValue = new Wrappers.PlacementService.updatePlacementsRequest(); - inValue.placements = placements; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202311.PlacementServiceInterface)(this)).updatePlacementsAsync(inValue)).Result.rval); - } - } - namespace Wrappers.ProposalService + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", ConfigurationName = "Google.Api.Ads.AdManager.v202411.ReportServiceInterface")] + public interface ReportServiceInterface { - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "createProposals", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class createProposalsRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("proposals")] - public Google.Api.Ads.AdManager.v202311.Proposal[] proposals; - - /// Creates a new instance of the - /// class. - public createProposalsRequest() { - } + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + string getReportDownloadURL(long reportJobId, Google.Api.Ads.AdManager.v202411.ExportFormat exportFormat); - /// Creates a new instance of the - /// class. - public createProposalsRequest(Google.Api.Ads.AdManager.v202311.Proposal[] proposals) { - this.proposals = proposals; - } - } + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task getReportDownloadURLAsync(long reportJobId, Google.Api.Ads.AdManager.v202411.ExportFormat exportFormat); + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + string getReportDownloadUrlWithOptions(long reportJobId, Google.Api.Ads.AdManager.v202411.ReportDownloadOptions reportDownloadOptions); - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "createProposalsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class createProposalsResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v202311.Proposal[] rval; + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task getReportDownloadUrlWithOptionsAsync(long reportJobId, Google.Api.Ads.AdManager.v202411.ReportDownloadOptions reportDownloadOptions); - /// Creates a new instance of the - /// class. - public createProposalsResponse() { - } + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v202411.ReportJobStatus getReportJobStatus(long reportJobId); - /// Creates a new instance of the - /// class. - public createProposalsResponse(Google.Api.Ads.AdManager.v202311.Proposal[] rval) { - this.rval = rval; - } - } + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task getReportJobStatusAsync(long reportJobId); + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v202411.SavedQueryPage getSavedQueriesByStatement(Google.Api.Ads.AdManager.v202411.Statement filterStatement); - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "updateProposals", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class updateProposalsRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("proposals")] - public Google.Api.Ads.AdManager.v202311.Proposal[] proposals; + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task getSavedQueriesByStatementAsync(Google.Api.Ads.AdManager.v202411.Statement filterStatement); - /// Creates a new instance of the - /// class. - public updateProposalsRequest() { - } + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v202411.ReportJob runReportJob(Google.Api.Ads.AdManager.v202411.ReportJob reportJob); - /// Creates a new instance of the - /// class. - public updateProposalsRequest(Google.Api.Ads.AdManager.v202311.Proposal[] proposals) { - this.proposals = proposals; - } - } + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task runReportJobAsync(Google.Api.Ads.AdManager.v202411.ReportJob reportJob); + } - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "updateProposalsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class updateProposalsResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v202311.Proposal[] rval; + /// The file formats available for creating the report. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum ExportFormat { + /// The report file is generated as a list of Tab Separated Values. + /// + TSV = 0, + /// The report file is generated as a list of tab-separated values for Excel. + /// + TSV_EXCEL = 5, + /// The report file is generated as a list of Comma Separated Values, to be used + /// with automated machine processing.

  • There is no pretty printing for + /// the output, and no total row.
  • Column headers are the qualified name + /// e.g. "Dimension.ORDER_NAME".
  • Network currency Monetary amounts are + /// represented as micros in the currency of the + /// network.
  • Starting from v201705, local currency Monetary amounts are + /// represented as currency symbol + ' ' + micros.
  • Dates are formatted + /// according to the ISO 8601 standard YYYY-MM-DD
  • DateTimes are formatted + /// according to the ISO 8601 standard YYYY-MM-DDThh:mm:ss[+-]hh:mm

+ ///
+ CSV_DUMP = 2, + /// The report file is generated as XML. + /// + XML = 3, + /// The report file is generated as an Office Open XML spreadsheet designed for + /// Excel 2007+. + /// + XLSX = 4, + } - /// Creates a new instance of the - /// class. - public updateProposalsResponse() { - } - /// Creates a new instance of the - /// class. - public updateProposalsResponse(Google.Api.Ads.AdManager.v202311.Proposal[] rval) { - this.rval = rval; - } - } - } - /// Represents the buyer RFP information associated with a Proposal describing the requirements from the buyer. + /// Represents the options for an API report download request. See ReportService#getReportDownloadUrlWithOptions. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class BuyerRfp { - private Money costPerUnitField; - - private long unitsField; - - private bool unitsFieldSpecified; - - private Money budgetField; - - private string currencyCodeField; - - private DateTime startDateTimeField; - - private DateTime endDateTimeField; - - private string descriptionField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ReportDownloadOptions { + private ExportFormat exportFormatField; - private CreativePlaceholder[] creativePlaceholdersField; + private bool exportFormatFieldSpecified; - private Targeting targetingField; + private bool includeReportPropertiesField; - private string additionalTermsField; + private bool includeReportPropertiesFieldSpecified; - private AdExchangeEnvironment adExchangeEnvironmentField; + private bool includeTotalsRowField; - private bool adExchangeEnvironmentFieldSpecified; + private bool includeTotalsRowFieldSpecified; - private RfpType rfpTypeField; + private bool useGzipCompressionField; - private bool rfpTypeFieldSpecified; + private bool useGzipCompressionFieldSpecified; - /// CPM for the Proposal in question. Given that this field - /// belongs to a request for proposal (for which initially a Proposal does not yet exist), this field should serve as - /// guidance for publishers to create a Proposal with LineItems reflecting this CPM. This attribute is read-only. + /// The ExportFormat used to generate the report. Default + /// value is ExportFormat#CSV_DUMP. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public Money costPerUnit { - get { - return this.costPerUnitField; - } - set { - this.costPerUnitField = value; - } - } - - /// The number of impressions per day that a buyer wishes to see in the Proposal derived from the request for proposal in question. - /// This attribute is read-only. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public long units { + public ExportFormat exportFormat { get { - return this.unitsField; + return this.exportFormatField; } set { - this.unitsField = value; - this.unitsSpecified = true; + this.exportFormatField = value; + this.exportFormatSpecified = true; } } - /// true, if a value is specified for , - /// false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool unitsSpecified { + public bool exportFormatSpecified { get { - return this.unitsFieldSpecified; + return this.exportFormatFieldSpecified; } set { - this.unitsFieldSpecified = value; + this.exportFormatFieldSpecified = value; } } - /// Total amount of Money available to spend on this deal. In - /// the case of Preferred Deal, the budget is equal to the maximum amount of money a - /// buyer is willing to spend on a given Proposal, even - /// though the budget might not be spent entirely, as impressions are not - /// guaranteed. This attribute is read-only. + /// Whether or not to include the report properties (e.g. network, user, date + /// generated...) in the generated report. Default is false. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public Money budget { + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public bool includeReportProperties { get { - return this.budgetField; + return this.includeReportPropertiesField; } set { - this.budgetField = value; + this.includeReportPropertiesField = value; + this.includeReportPropertiesSpecified = true; } } - /// Currency code for this deal's budget and CPM. This attribute is read-only. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public string currencyCode { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool includeReportPropertiesSpecified { get { - return this.currencyCodeField; + return this.includeReportPropertiesFieldSpecified; } set { - this.currencyCodeField = value; + this.includeReportPropertiesFieldSpecified = value; } } - /// The DateTime in which the proposed deal should start - /// serving. This attribute is read-only. + /// Whether or not to include the totals row. Default is true for all formats except + /// ExportFormat#CSV_DUMP. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public DateTime startDateTime { + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public bool includeTotalsRow { get { - return this.startDateTimeField; + return this.includeTotalsRowField; } set { - this.startDateTimeField = value; + this.includeTotalsRowField = value; + this.includeTotalsRowSpecified = true; } } - /// The DateTime in which the proposed deal should end - /// serving. This attribute is read-only. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 5)] - public DateTime endDateTime { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool includeTotalsRowSpecified { get { - return this.endDateTimeField; + return this.includeTotalsRowFieldSpecified; } set { - this.endDateTimeField = value; + this.includeTotalsRowFieldSpecified = value; } } - /// A description of the proposed deal. This can be used for the buyer to tell the - /// publisher more detailed information about the deal in question. This attribute - /// is read-only. + /// Whether or not to compress the report file to a gzip file. Default is true. + ///

Regardless of value, gzip http compression is available from the URL by + /// normal means.

///
- [System.Xml.Serialization.XmlElementAttribute(Order = 6)] - public string description { + [System.Xml.Serialization.XmlElementAttribute(Order = 3)] + public bool useGzipCompression { get { - return this.descriptionField; + return this.useGzipCompressionField; } set { - this.descriptionField = value; + this.useGzipCompressionField = value; + this.useGzipCompressionSpecified = true; } } - /// A list of inventory sizes in which creatives will be eventually served. This - /// attribute is read-only. - /// - [System.Xml.Serialization.XmlElementAttribute("creativePlaceholders", Order = 7)] - public CreativePlaceholder[] creativePlaceholders { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool useGzipCompressionSpecified { get { - return this.creativePlaceholdersField; + return this.useGzipCompressionFieldSpecified; } set { - this.creativePlaceholdersField = value; + this.useGzipCompressionFieldSpecified = value; } } + } - /// Targeting information for the proposal in question. Currently this field only - /// contains GeoTargeting information. This attribute is read-only. + + /// Represents the status of a ReportJob running on the + /// server. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum ReportJobStatus { + /// The ReportJob has completed successfully and is ready to + /// download. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 8)] - public Targeting targeting { + COMPLETED = 0, + /// The ReportJob is still being executed. + /// + IN_PROGRESS = 1, + /// The ReportJob has failed to run to completion. + /// + FAILED = 2, + } + + + /// A page of SavedQuery objects. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class SavedQueryPage { + private int totalResultSetSizeField; + + private bool totalResultSetSizeFieldSpecified; + + private int startIndexField; + + private bool startIndexFieldSpecified; + + private SavedQuery[] resultsField; + + /// The size of the total result set to which this page belongs. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public int totalResultSetSize { get { - return this.targetingField; + return this.totalResultSetSizeField; } set { - this.targetingField = value; + this.totalResultSetSizeField = value; + this.totalResultSetSizeSpecified = true; } } - /// Additional terms of the deal in question. This field can be used to state more - /// specific targeting information for the deal, as well as any additional - /// information regarding this deal. Given that this field belongs to a request for - /// proposal (for which initially a Proposal does not yet - /// exist), this field can be populated by buyers to specify additional information - /// that they wish publishers to incorporate into the Proposal derived from this request for proposal. This - /// attribute is read-only. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 9)] - public string additionalTerms { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool totalResultSetSizeSpecified { get { - return this.additionalTermsField; + return this.totalResultSetSizeFieldSpecified; } set { - this.additionalTermsField = value; + this.totalResultSetSizeFieldSpecified = value; } } - /// Identifies the format of the inventory or "channel" through which the ad serves. - /// Environments currently supported include AdExchangeEnvironment#DISPLAY, AdExchangeEnvironment#VIDEO, and AdExchangeEnvironment#MOBILE. This - /// attribute is read-only. + /// The absolute index in the total result set on which this page begins. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 10)] - public AdExchangeEnvironment adExchangeEnvironment { + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public int startIndex { get { - return this.adExchangeEnvironmentField; + return this.startIndexField; } set { - this.adExchangeEnvironmentField = value; - this.adExchangeEnvironmentSpecified = true; + this.startIndexField = value; + this.startIndexSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool adExchangeEnvironmentSpecified { + public bool startIndexSpecified { get { - return this.adExchangeEnvironmentFieldSpecified; + return this.startIndexFieldSpecified; } set { - this.adExchangeEnvironmentFieldSpecified = value; + this.startIndexFieldSpecified = value; } } - /// Deal type; either Programmatic Guaranteed or Preferred Deal. This field - /// corresponds to the type of Proposal that a buyer wishes - /// to negotiate with a seller. This attribute is read-only. + /// The collection of saved queries contained within this page. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 11)] - public RfpType rfpType { - get { - return this.rfpTypeField; - } - set { - this.rfpTypeField = value; - this.rfpTypeSpecified = true; - } - } - - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool rfpTypeSpecified { + [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] + public SavedQuery[] results { get { - return this.rfpTypeFieldSpecified; + return this.resultsField; } set { - this.rfpTypeFieldSpecified = value; + this.resultsField = value; } } } - /// Identifies the format of inventory or "channel" in which ads serve. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum AdExchangeEnvironment { - /// Ads serve in a browser. - /// - DISPLAY = 0, - /// In-stream video ads serve in a video. - /// - VIDEO = 1, - /// In-stream video ads serve in a game. - /// - GAMES = 2, - /// Ads serve in a mobile app. - /// - MOBILE = 3, - /// Out-stream video ads serve in a mobile app. Examples include mobile app - /// interstitials and mobile app rewarded ads. - /// - MOBILE_OUTSTREAM_VIDEO = 5, - /// Out-stream video ads serve in a browser. Examples include in-feed and in-banner - /// video ads. - /// - DISPLAY_OUTSTREAM_VIDEO = 6, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 4, - } - - - /// Decribes the type of BuyerRfp. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum RfpType { - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 0, - /// Indicates the BuyerRfp is a Programmatic Guaranteed RFP. - /// - PROGRAMMATIC_GUARANTEED = 1, - /// Indicates the BuyerRfp is a Preferred Deal RFP. - /// - PREFERRED_DEAL = 2, - } - - - /// Marketplace info for a proposal with a corresponding order in Marketplace. + /// A saved ReportQuery representing the selection + /// criteria for running a report. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ProposalMarketplaceInfo { - private string marketplaceIdField; - - private bool hasLocalVersionEditsField; - - private bool hasLocalVersionEditsFieldSpecified; - - private NegotiationStatus negotiationStatusField; - - private bool negotiationStatusFieldSpecified; - - private string marketplaceCommentField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class SavedQuery { + private long idField; - private bool isNewVersionFromBuyerField; + private bool idFieldSpecified; - private bool isNewVersionFromBuyerFieldSpecified; + private string nameField; - private long buyerAccountIdField; + private ReportQuery reportQueryField; - private bool buyerAccountIdFieldSpecified; + private bool isCompatibleWithApiVersionField; - private string partnerClientIdField; + private bool isCompatibleWithApiVersionFieldSpecified; - /// The marketplace ID of this proposal. This is a shared ID between Ad Manager and - /// the buy-side platform. This value is null if the proposal has not been sent to - /// the buyer. This attribute is read-only. + /// The ID of the saved query. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public string marketplaceId { + public long id { get { - return this.marketplaceIdField; + return this.idField; } set { - this.marketplaceIdField = value; + this.idField = value; + this.idSpecified = true; } } - /// Whether the non-free-editable fields of a Proposal are - /// opened for edit. A proposal that is open for edit will not receive buyer updates - /// from Marketplace. If the buyer updates the proposal while this is open for local - /// editing, Google will set #isNewVersionFromBuyer to . You - /// will then need to call DiscardProposalDrafts - /// to revert your edits to get the buyer's latest changes. This attribute is - /// read-only. + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool idSpecified { + get { + return this.idFieldSpecified; + } + set { + this.idFieldSpecified = value; + } + } + + /// The name of the saved query. /// [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public bool hasLocalVersionEdits { + public string name { get { - return this.hasLocalVersionEditsField; + return this.nameField; } set { - this.hasLocalVersionEditsField = value; - this.hasLocalVersionEditsSpecified = true; + this.nameField = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool hasLocalVersionEditsSpecified { + /// The ReportQuery representing the selection criteria + /// for the saved query. This will be non-null if and only if SavedQuery#isCompatibleWithApiVersion + /// is true. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public ReportQuery reportQuery { get { - return this.hasLocalVersionEditsFieldSpecified; + return this.reportQueryField; } set { - this.hasLocalVersionEditsFieldSpecified = value; + this.reportQueryField = value; } } - /// The negotiation status of the Proposal. This attribute is - /// read-only. + /// Whether or not the saved query is compatible with the current API version. This + /// will be true if and only if SavedQuery#reportQuery is non-null. A saved + /// query will be incompatible with the API if it uses columns, dimensions, or other + /// reporting features from the UI that are not available in the ReportQuery entity. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public NegotiationStatus negotiationStatus { + [System.Xml.Serialization.XmlElementAttribute(Order = 3)] + public bool isCompatibleWithApiVersion { get { - return this.negotiationStatusField; + return this.isCompatibleWithApiVersionField; } set { - this.negotiationStatusField = value; - this.negotiationStatusSpecified = true; + this.isCompatibleWithApiVersionField = value; + this.isCompatibleWithApiVersionSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="isCompatibleWithApiVersion" />, false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool negotiationStatusSpecified { + public bool isCompatibleWithApiVersionSpecified { get { - return this.negotiationStatusFieldSpecified; + return this.isCompatibleWithApiVersionFieldSpecified; } set { - this.negotiationStatusFieldSpecified = value; + this.isCompatibleWithApiVersionFieldSpecified = value; } } + } - /// The comment on the Proposal to be sent to the buyer. + + /// A ReportQuery object allows you to specify the selection criteria + /// for generating a report. Only reports with at least one Column are supported. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ReportQuery { + private Dimension[] dimensionsField; + + private ReportQueryAdUnitView adUnitViewField; + + private bool adUnitViewFieldSpecified; + + private Column[] columnsField; + + private DimensionAttribute[] dimensionAttributesField; + + private long[] customFieldIdsField; + + private long[] cmsMetadataKeyIdsField; + + private long[] customDimensionKeyIdsField; + + private Date startDateField; + + private Date endDateField; + + private DateRangeType dateRangeTypeField; + + private bool dateRangeTypeFieldSpecified; + + private Statement statementField; + + private string reportCurrencyField; + + private TimeZoneType timeZoneTypeField; + + private bool timeZoneTypeFieldSpecified; + + /// The list of break-down types being requested in the report. The generated report + /// will contain the dimensions in the same order as requested. This field is + /// required. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public string marketplaceComment { + [System.Xml.Serialization.XmlElementAttribute("dimensions", Order = 0)] + public Dimension[] dimensions { get { - return this.marketplaceCommentField; + return this.dimensionsField; } set { - this.marketplaceCommentField = value; + this.dimensionsField = value; } } - /// Indicates that the buyer has made updates to the proposal on Marketplace. This - /// attribute is only meaningful if the proposal is open for edit (i.e., #hasLocalVersionEdits is true) - /// This attribute is read-only. + /// The ad unit view for the report. Defaults to AdUnitView#TOP_LEVEL. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public bool isNewVersionFromBuyer { + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public ReportQueryAdUnitView adUnitView { get { - return this.isNewVersionFromBuyerField; + return this.adUnitViewField; } set { - this.isNewVersionFromBuyerField = value; - this.isNewVersionFromBuyerSpecified = true; + this.adUnitViewField = value; + this.adUnitViewSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool isNewVersionFromBuyerSpecified { + public bool adUnitViewSpecified { get { - return this.isNewVersionFromBuyerFieldSpecified; + return this.adUnitViewFieldSpecified; } set { - this.isNewVersionFromBuyerFieldSpecified = value; + this.adUnitViewFieldSpecified = value; } } - /// The Authorized Buyers ID of the buyer that this Proposal is being - /// negotiated with. This attribute is - /// required. + /// The list of trafficking statistics and revenue information being requested in + /// the report. The generated report will contain the columns in the same order as + /// requested. This field is required. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 5)] - public long buyerAccountId { + [System.Xml.Serialization.XmlElementAttribute("columns", Order = 2)] + public Column[] columns { get { - return this.buyerAccountIdField; + return this.columnsField; } set { - this.buyerAccountIdField = value; - this.buyerAccountIdSpecified = true; + this.columnsField = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool buyerAccountIdSpecified { + /// The list of break-down attributes being requested in this report. Some DimensionAttribute values can only be used with + /// certain Dimension values that must be included in the #dimensions attribute. The generated report will contain + /// the attributes in the same order as requested. + /// + [System.Xml.Serialization.XmlElementAttribute("dimensionAttributes", Order = 3)] + public DimensionAttribute[] dimensionAttributes { get { - return this.buyerAccountIdFieldSpecified; + return this.dimensionAttributesField; } set { - this.buyerAccountIdFieldSpecified = value; + this.dimensionAttributesField = value; } } - /// The ID used to represent Display & Video 360 client buyer partner ID (if - /// Display & Video 360) or Authorized Buyers client buyer account ID. This - /// field is readonly and assigned by Google. This attribute is read-only. + /// The list of CustomField#id being requested in this + /// report. To add a CustomField to the report, you must + /// include its corresponding Dimension, determined by the + /// CustomField#entityType, as a dimension. + /// + /// + /// + /// + ///
CustomFieldEntityType#entityType
CustomFieldEntityType#LINE_ITEMDimension#LINE_ITEM_NAME
CustomFieldEntityType#ORDER Dimension#ORDER_NAME
CustomFieldEntityType#CREATIVEDimension#CREATIVE_NAME
///
- [System.Xml.Serialization.XmlElementAttribute(Order = 6)] - public string partnerClientId { + [System.Xml.Serialization.XmlElementAttribute("customFieldIds", Order = 4)] + public long[] customFieldIds { get { - return this.partnerClientIdField; + return this.customFieldIdsField; } set { - this.partnerClientIdField = value; + this.customFieldIdsField = value; } } - } - - - /// Represents the proposal's negotiation status for - /// Marketplace. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum NegotiationStatus { - /// Indicates that a new Proposal has been created by the - /// seller and has not been sent to Marketplace yet. - /// - SELLER_INITIATED = 0, - /// Indicates that a new Proposal has been created by the - /// buyer and is awaiting seller action. - /// - BUYER_INITIATED = 1, - /// Indicates that a Proposal has been updated by the buyer - /// and is awaiting seller approval. - /// - AWAITING_SELLER_REVIEW = 2, - /// Indicates that a Proposal has been updated by the seller - /// and is awaiting buyer approval. - /// - AWAITING_BUYER_REVIEW = 3, - /// Indicates that the seller has accepted the Proposal and - /// is awaiting the buyer's acceptance. - /// - ONLY_SELLER_ACCEPTED = 4, - /// Indicates that the Proposal has been accepted by both the - /// buyer and the seller. - /// - FINALIZED = 5, - /// Indicates that negotiations for the Proposal have been - /// cancelled. - /// - CANCELLED = 6, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 7, - } - - - /// A SalespersonSplit represents a salesperson. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class SalespersonSplit { - private long userIdField; - - private bool userIdFieldSpecified; - /// The unique ID of the User responsible for the sales of the Proposal. This attribute - /// is required. + /// The list of content CMS metadata key IDs being + /// requested in this report. Each of these IDs must have been defined in the CMS metadata key. This will include dimensions in the + /// form of CMS_METADATA_KEY[id]_ID and where where + /// ID is the ID of the CMS metadata + /// value and is the name.

To add IDs, you must include Dimension#CMS_METADATA in #dimensions, and specify a non-empty list of content CMS + /// metadata key IDs. The order of content CMS metadata columns in the report + /// correspond to the place of Dimension#CMS_METADATA in #dimensions. For example, if #dimensions contains the following dimensions in the + /// order: Dimension#ADVERTISER_NAME, Dimension#CMS_METADATA and Dimension#COUNTRY_NAME, and #cmsMetadataKeyIds contains the following IDs in + /// the order: 1001 and 1002. The order of dimensions in the report will be: + /// Dimension.ADVERTISER_NAME, Dimension.CMS_METADATA_KEY[1001]_VALUE, + /// Dimension.CMS_METADATA_KEY[1002]_VALUE, Dimension.COUNTRY_NAME, + /// Dimension.ADVERTISER_ID, Dimension.CMS_METADATA_KEY[1001]_ID, + /// Dimension.CMS_METADATA_KEY[1002]_ID, Dimension.COUNTRY_CRITERIA_ID

///
- [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public long userId { + [System.Xml.Serialization.XmlElementAttribute("cmsMetadataKeyIds", Order = 5)] + public long[] cmsMetadataKeyIds { get { - return this.userIdField; + return this.cmsMetadataKeyIdsField; } set { - this.userIdField = value; - this.userIdSpecified = true; + this.cmsMetadataKeyIdsField = value; } } - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool userIdSpecified { + /// The list of custom dimension custom targeting key IDs being requested in this report. This will + /// include dimensions in the form of and where + /// ID is the ID of the custom + /// targeting value and VALUE is the name.

To add IDs, you must include Dimension#CUSTOM_DIMENSION in #dimensions, and specify a non-empty list of custom + /// targeting key IDs. The order of cusotm dimension columns in the report + /// correspond to the place of Dimension#CUSTOM_DIMENSION in #dimensions. For example, if #dimensions contains the following dimensions in the + /// order: Dimension#ADVERTISER_NAME, Dimension#CUSTOM_DIMENSION and Dimension#COUNTRY_NAME, and #customCriteriaCustomTargetingKeyIds + /// contains the following IDs in the order: 1001 and 1002. The order of dimensions + /// in the report will be: Dimension.ADVERTISER_NAME, + /// Dimension.TOP_LEVEL_DIMENSION_KEY[1001]_VALUE, + /// Dimension.TOP_LEVEL_DIMENSION_KEY[1002]_VALUE, Dimension.COUNTRY_NAME, + /// Dimension.ADVERTISER_ID, Dimension.TOP_LEVEL_DIMENSION_KEY[1001]_ID, + /// Dimension.TOP_LEVEL_DIMENSION_KEY[1002]_ID, Dimension.COUNTRY_CRITERIA_ID.

+ ///
+ [System.Xml.Serialization.XmlElementAttribute("customDimensionKeyIds", Order = 6)] + public long[] customDimensionKeyIds { get { - return this.userIdFieldSpecified; + return this.customDimensionKeyIdsField; } set { - this.userIdFieldSpecified = value; + this.customDimensionKeyIdsField = value; } } - } - - - /// A ProposalCompanyAssociation represents a Company associated with the Proposal and a set - /// of Contact objects belonging to the company. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ProposalCompanyAssociation { - private long companyIdField; - - private bool companyIdFieldSpecified; - private ProposalCompanyAssociationType typeField; - - private bool typeFieldSpecified; - - private long[] contactIdsField; - - /// The unique ID of the Company associated with the Proposal. This attribute - /// is required. + /// The start date from which the reporting information is gathered. The + /// ReportQuery#dateRangeType field must be set to DateRangeType#CUSTOM_DATE in order to use + /// this. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public long companyId { + [System.Xml.Serialization.XmlElementAttribute(Order = 7)] + public Date startDate { get { - return this.companyIdField; + return this.startDateField; } set { - this.companyIdField = value; - this.companyIdSpecified = true; + this.startDateField = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool companyIdSpecified { + /// The end date up to which the reporting information is gathered. The + /// ReportQuery#dateRangeType field must be set to DateRangeType#CUSTOM_DATE in order to use + /// this. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 8)] + public Date endDate { get { - return this.companyIdFieldSpecified; + return this.endDateField; } set { - this.companyIdFieldSpecified = value; + this.endDateField = value; } } - /// The association type of the Company and Proposal. This attribute - /// is required. + /// The period of time for which the reporting data is being generated. In order to + /// define custom time periods, set this to DateRangeType#CUSTOM_DATE. If set to DateRangeType#CUSTOM_DATE, then ReportQuery#startDate and ReportQuery#endDate will be used. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public ProposalCompanyAssociationType type { + [System.Xml.Serialization.XmlElementAttribute(Order = 9)] + public DateRangeType dateRangeType { get { - return this.typeField; + return this.dateRangeTypeField; } set { - this.typeField = value; - this.typeSpecified = true; + this.dateRangeTypeField = value; + this.dateRangeTypeSpecified = true; } } - /// true, if a value is specified for , - /// false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool typeSpecified { - get { - return this.typeFieldSpecified; - } - set { - this.typeFieldSpecified = value; - } - } - - /// List of unique IDs for Contact objects of the Company. - /// - [System.Xml.Serialization.XmlElementAttribute("contactIds", Order = 2)] - public long[] contactIds { + public bool dateRangeTypeSpecified { get { - return this.contactIdsField; + return this.dateRangeTypeFieldSpecified; } set { - this.contactIdsField = value; + this.dateRangeTypeFieldSpecified = value; } } - } - - /// Describes the type of a Company associated with a Proposal. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum ProposalCompanyAssociationType { - /// The company is a primary agency. - /// - PRIMARY_AGENCY = 0, - /// The company is a billing agency. - /// - BILLING_AGENCY = 1, - /// The company is a branding agency. - /// - BRANDING_AGENCY = 2, - /// The company is other type of agency. - /// - OTHER_AGENCY = 3, - /// The company is advertiser. - /// - ADVERTISER = 4, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 5, - } - - - /// A Proposal represents an agreement between an interactive - /// advertising seller and a buyer that specifies the details of an advertising - /// campaign. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class Proposal { - private long idField; - - private bool idFieldSpecified; - - private bool isProgrammaticField; - - private bool isProgrammaticFieldSpecified; - - private long dfpOrderIdField; - - private bool dfpOrderIdFieldSpecified; - - private string nameField; - - private DateTime startDateTimeField; - - private DateTime endDateTimeField; - - private ProposalStatus statusField; - - private bool statusFieldSpecified; - - private bool isArchivedField; - - private bool isArchivedFieldSpecified; - - private ProposalCompanyAssociation advertiserField; - - private ProposalCompanyAssociation[] agenciesField; - - private string internalNotesField; - - private SalespersonSplit primarySalespersonField; - - private long[] salesPlannerIdsField; - - private long primaryTraffickerIdField; - - private bool primaryTraffickerIdFieldSpecified; - - private long[] sellerContactIdsField; - - private long[] appliedTeamIdsField; - - private BaseCustomFieldValue[] customFieldValuesField; - - private AppliedLabel[] appliedLabelsField; - - private AppliedLabel[] effectiveAppliedLabelsField; - - private string currencyCodeField; - - private bool isSoldField; - - private bool isSoldFieldSpecified; - - private DateTime lastModifiedDateTimeField; - - private ProposalMarketplaceInfo marketplaceInfoField; - - private BuyerRfp buyerRfpField; - - private bool hasBuyerRfpField; - - private bool hasBuyerRfpFieldSpecified; - - private bool deliveryPausingEnabledField; - - private bool deliveryPausingEnabledFieldSpecified; - - /// The unique ID of the Proposal. This attribute is read-only. + /// Specifies a filter to use for reporting on data. This filter will be used in + /// conjunction (joined with an AND statement) with the date range selected through + /// #dateRangeType, #startDate, and #endDate. The + /// syntax currently allowed for Statement#query is
[WHERE <condition> {AND <condition> ...}]
+ ///

<condition>
#x160;#x160;#x160;#x160; := <property> = + /// <value>
<condition>
+ /// #x160;#x160;#x160;#x160; := <property> = <bind + /// variable>
<condition> := <property> IN + /// <list>
<bind variable> := :<name>
where property is the enumeration name of a Dimension + /// that can be filtered.

For example, the statement "WHERE LINE_ITEM_ID IN + /// (34344, 23235)" can be used to generate a report for a specific set of line + /// items

Filtering on IDs is highly recommended over filtering on names, + /// especially for geographical entities. When filtering on names, matching is case + /// sensitive.

///
- [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public long id { + [System.Xml.Serialization.XmlElementAttribute(Order = 10)] + public Statement statement { get { - return this.idField; + return this.statementField; } set { - this.idField = value; - this.idSpecified = true; + this.statementField = value; } } - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool idSpecified { + /// The currency for revenue metrics. Defaults to the network currency if left + /// null. The supported currency codes can be found in this Help Center + /// article. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 11)] + public string reportCurrency { get { - return this.idFieldSpecified; + return this.reportCurrencyField; } set { - this.idFieldSpecified = value; + this.reportCurrencyField = value; } } - /// Flag that specifies whether this Proposal is for programmatic - /// deals. This value is default to false. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public bool isProgrammatic { + [System.Xml.Serialization.XmlElementAttribute(Order = 12)] + public TimeZoneType timeZoneType { get { - return this.isProgrammaticField; + return this.timeZoneTypeField; } set { - this.isProgrammaticField = value; - this.isProgrammaticSpecified = true; + this.timeZoneTypeField = value; + this.timeZoneTypeSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="timeZoneType" />, false otherwise.
[System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool isProgrammaticSpecified { - get { - return this.isProgrammaticFieldSpecified; - } - set { - this.isProgrammaticFieldSpecified = value; - } - } - - /// The unique ID of corresponding Order. This will be - /// null if the Proposal has not been pushed to Ad - /// Manager. This attribute is read-only. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public long dfpOrderId { + public bool timeZoneTypeSpecified { get { - return this.dfpOrderIdField; + return this.timeZoneTypeFieldSpecified; } set { - this.dfpOrderIdField = value; - this.dfpOrderIdSpecified = true; + this.timeZoneTypeFieldSpecified = value; } } + } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool dfpOrderIdSpecified { - get { - return this.dfpOrderIdFieldSpecified; - } - set { - this.dfpOrderIdFieldSpecified = value; - } - } - /// The name of the Proposal. This value has a maximum length of 255 - /// characters. This value is copied to Order#name when the - /// proposal turns into an order. This attribute can be configured as editable after - /// the proposal has been submitted. Please check with your network administrator - /// for editable fields configuration. This - /// attribute is required. + /// Dimension provides the break-down and filterable types available + /// for running a ReportJob. Aggregate and percentage + /// columns will be calculated based on these groupings. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum Dimension { + /// Breaks down reporting data by month and year in the network time zone. Can be + /// used to filter on month using ISO 4601 format 'YYYY-MM'.

Corresponds to + /// "Month and year" in the Ad Manager UI. Compatible with any of the following + /// report types: Historical, Future sell-through, Reach, Partner finance, YouTube + /// consolidated.

///
- [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public string name { - get { - return this.nameField; - } - set { - this.nameField = value; - } - } - - /// The date and time at which the order and line items associated with the - /// Proposal are eligible to begin serving. This attribute is derived - /// from the proposal line item of the proposal which has the earliest ProposalLineItem#startDateTime. This - /// attribute will be null, if this proposal has no related line items, or none of - /// its line items have a start time. This attribute is read-only. + MONTH_AND_YEAR = 0, + /// Breaks down reporting data by week of the year in the network time zone. Cannot + /// be used for filtering.

Corresponds to "Week" in the Ad Manager UI. Compatible + /// with any of the following report types: Historical, Future sell-through, Reach, + /// YouTube consolidated.

///
- [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public DateTime startDateTime { - get { - return this.startDateTimeField; - } - set { - this.startDateTimeField = value; - } - } - - /// The date and time at which the order and line items associated with the - /// Proposal stop being served. This attribute is derived from the - /// proposal line item of the proposal which has the latest ProposalLineItem#endDateTime. This - /// attribute will be null, if this proposal has no related line items, or none of - /// its line items have an end time. This attribute is read-only. + WEEK = 1, + /// Breaks down reporting data by date in the network time zone. Can be used to + /// filter by date using ISO 8601's format 'YYYY-MM-DD'".

Corresponds to "Date" + /// in the Ad Manager UI. Compatible with any of the following report types: + /// Historical, Future sell-through, Reach, Ad speed, Real-time video, YouTube + /// consolidated.

///
- [System.Xml.Serialization.XmlElementAttribute(Order = 5)] - public DateTime endDateTime { - get { - return this.endDateTimeField; - } - set { - this.endDateTimeField = value; - } - } - - /// The status of the Proposal. This attribute is read-only. + DATE = 2, + /// Breaks down reporting data by day of the week in the network time zone. Can be + /// used to filter by day of the week using the index of the day (from 1 for Monday + /// is 1 to 7 for Sunday).

Corresponds to "Day of week" in the Ad Manager UI. + /// Compatible with any of the following report types: Historical, Future + /// sell-through, Reach, YouTube consolidated.

///
- [System.Xml.Serialization.XmlElementAttribute(Order = 6)] - public ProposalStatus status { - get { - return this.statusField; - } - set { - this.statusField = value; - this.statusSpecified = true; - } - } - - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool statusSpecified { - get { - return this.statusFieldSpecified; - } - set { - this.statusFieldSpecified = value; - } - } - - /// The archival status of the Proposal. This attribute is read-only. + DAY = 3, + /// Breaks down reporting data by hour of the day in the network time zone. Can be + /// used to filter by hour of the day (from 0 to 23).

Corresponds to "Hour" in + /// the Ad Manager UI. Compatible with any of the following report types: + /// Historical, Real-time video.

///
- [System.Xml.Serialization.XmlElementAttribute(Order = 7)] - public bool isArchived { - get { - return this.isArchivedField; - } - set { - this.isArchivedField = value; - this.isArchivedSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool isArchivedSpecified { - get { - return this.isArchivedFieldSpecified; - } - set { - this.isArchivedFieldSpecified = value; - } - } - - /// The advertiser, to which this Proposal belongs, and a set of Contact objects associated with the advertiser. The ProposalCompanyAssociation#type of - /// this attribute should be ProposalCompanyAssociationType#ADVERTISER. - /// This attribute is required when the proposal turns into an order, and its ProposalCompanyAssociation#companyId - /// will be copied to Order#advertiserId. This - /// attribute becomes readonly once the Proposal has been pushed. + HOUR = 4, + /// Breaks down reporting data by date in the PT time zone. Can be used to filter by + /// date using ISO 8601's format 'YYYY-MM-DD'". Can only be used when time zone type + /// is PACIFIC.

Compatible with the "Historical" report type.

///
- [System.Xml.Serialization.XmlElementAttribute(Order = 8)] - public ProposalCompanyAssociation advertiser { - get { - return this.advertiserField; - } - set { - this.advertiserField = value; - } - } - - /// List of agencies and the set of Contact objects associated - /// with each agency. This attribute is optional. A Proposal only has - /// at most one Company with ProposalCompanyAssociationType#PRIMARY_AGENCY type, but a Company can appear more than once with different ProposalCompanyAssociationType values. - /// If primary agency exists, its ProposalCompanyAssociation#companyId - /// will be copied to Order#agencyId when the proposal - /// turns into an order. + DATE_PT = 308, + /// Breaks down reporting data by week of the year in the PT time zone. Cannot be + /// used for filtering. Can only be used when time zone type is PACIFIC. + ///

Compatible with the "Historical" report type.

///
- [System.Xml.Serialization.XmlElementAttribute("agencies", Order = 9)] - public ProposalCompanyAssociation[] agencies { - get { - return this.agenciesField; - } - set { - this.agenciesField = value; - } - } - - /// Provides any additional notes that may annotate the . This - /// attribute is optional and has a maximum length of 65,535 characters. This - /// attribute can be configured as editable after the proposal has been submitted. - /// Please check with your network administrator for editable fields configuration. + WEEK_PT = 309, + /// Breaks down reporting data by month and year in the PT time zone. Can be used to + /// filter on month using ISO 4601 format 'YYYY-MM'. Can only be used when time zone + /// type is PACIFIC.

Compatible with the "Historical" report type.

///
- [System.Xml.Serialization.XmlElementAttribute(Order = 10)] - public string internalNotes { - get { - return this.internalNotesField; - } - set { - this.internalNotesField = value; - } - } - - /// The primary salesperson who brokered the transaction with the #advertiser. This attribute is required when the proposal - /// turns into an order. This attribute can be configured as editable after the - /// proposal has been submitted. Please check with your network administrator for - /// editable fields configuration. + MONTH_YEAR_PT = 310, + /// Breaks down reporting data by day of the week in the PT time zone. Can be used + /// to filter by day of the week using the index of the day (from 1 for Monday is 1 + /// to 7 for Sunday). Can only be used when time zone type is PACIFIC.

Compatible + /// with the "Historical" report type.

///
- [System.Xml.Serialization.XmlElementAttribute(Order = 11)] - public SalespersonSplit primarySalesperson { - get { - return this.primarySalespersonField; - } - set { - this.primarySalespersonField = value; - } - } - - /// List of unique IDs of User objects who are the sales planners - /// of the Proposal. This attribute is optional. A proposal could have - /// 8 sales planners at most. This attribute can be configured as editable after the - /// proposal has been submitted. Please check with your network administrator for - /// editable fields configuration. + DAY_OF_WEEK_PT = 311, + /// Breaks down reporting data by LineItem#id. Can be used + /// to filter by LineItem#id.

Compatible with any of + /// the following report types: Historical, Future sell-through, Reach, Ad speed, + /// Real-time video.

///
- [System.Xml.Serialization.XmlElementAttribute("salesPlannerIds", Order = 12)] - public long[] salesPlannerIds { - get { - return this.salesPlannerIdsField; - } - set { - this.salesPlannerIdsField = value; - } - } - - /// The unique ID of the User who is primary trafficker and is - /// responsible for trafficking the Proposal. This attribute is - /// required when the proposal turns into an order, and will be copied to Order#primaryTraffickerId . This attribute - /// can be configured as editable after the proposal has been submitted. Please - /// check with your network administrator for editable fields configuration. + LINE_ITEM_ID = 5, + /// Breaks down reporting data by line item. LineItem#name and LineItem#id + /// are automatically included as columns in the report. Can be used to filter by LineItem#name.

Corresponds to "Line item" in the Ad + /// Manager UI. Compatible with any of the following report types: Historical, + /// Future sell-through, Reach, Ad speed, Real-time video.

///
- [System.Xml.Serialization.XmlElementAttribute(Order = 13)] - public long primaryTraffickerId { - get { - return this.primaryTraffickerIdField; - } - set { - this.primaryTraffickerIdField = value; - this.primaryTraffickerIdSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool primaryTraffickerIdSpecified { - get { - return this.primaryTraffickerIdFieldSpecified; - } - set { - this.primaryTraffickerIdFieldSpecified = value; - } - } - - /// users who are the seller's contacts. + LINE_ITEM_NAME = 6, + /// Breaks down reporting data by LineItem#lineItemType. Can be used to filter by + /// line item type using LineItemType enumeration names. + ///

Corresponds to "Line item type" in the Ad Manager UI. Compatible with any of + /// the following report types: Historical, Future sell-through, Reach, Ad speed, + /// Real-time video.

///
- [System.Xml.Serialization.XmlElementAttribute("sellerContactIds", Order = 14)] - public long[] sellerContactIds { - get { - return this.sellerContactIdsField; - } - set { - this.sellerContactIdsField = value; - } - } - - /// The IDs of all teams that the Proposal is on directly. This - /// attribute is optional. This attribute can be configured as editable after the - /// proposal has been submitted. Please check with your network administrator for - /// editable fields configuration. + LINE_ITEM_TYPE = 7, + /// Breaks down reporting data by Order#id. Can be used to + /// filter by Order#id.

Compatible with any of the + /// following report types: Historical, Future sell-through, Reach, Ad speed.

///
- [System.Xml.Serialization.XmlElementAttribute("appliedTeamIds", Order = 15)] - public long[] appliedTeamIds { - get { - return this.appliedTeamIdsField; - } - set { - this.appliedTeamIdsField = value; - } - } - - /// The values of the custom fields associated with the . This - /// attribute is optional. This attribute can be configured as editable after the - /// proposal has been submitted. Please check with your network administrator for - /// editable fields configuration. + ORDER_ID = 8, + /// Breaks down reporting data by order. Order#name and Order#id are automatically included as columns in the + /// report. Can be used to filter by Order#name. + ///

Corresponds to "Order" in the Ad Manager UI. Compatible with any of the + /// following report types: Historical, Future sell-through, Reach, Ad speed.

///
- [System.Xml.Serialization.XmlElementAttribute("customFieldValues", Order = 16)] - public BaseCustomFieldValue[] customFieldValues { - get { - return this.customFieldValuesField; - } - set { - this.customFieldValuesField = value; - } - } - - /// The set of labels applied directly to the Proposal. This attribute - /// is optional. + ORDER_NAME = 9, + /// Delivery status of the order. Not available as a dimension to report on, but + /// exists as a dimension in order to filter on it using PQL. Valid values are + /// 'STARTED', 'NOT_STARTED' and 'COMPLETED'.

Compatible with the "Historical" + /// report type.

///
- [System.Xml.Serialization.XmlElementAttribute("appliedLabels", Order = 17)] - public AppliedLabel[] appliedLabels { - get { - return this.appliedLabelsField; - } - set { - this.appliedLabelsField = value; - } - } - - /// Contains the set of labels applied directly to the proposal as well as those - /// inherited ones. If a label has been negated, only the negated label is returned. - /// This attribute is read-only. + ORDER_DELIVERY_STATUS = 142, + /// Breaks down reporting data by advertising company Company#id. Can be used to filter by Company#id.

Compatible with any of the following report + /// types: Historical, Future sell-through, Reach, Ad speed.

///
- [System.Xml.Serialization.XmlElementAttribute("effectiveAppliedLabels", Order = 18)] - public AppliedLabel[] effectiveAppliedLabels { - get { - return this.effectiveAppliedLabelsField; - } - set { - this.effectiveAppliedLabelsField = value; - } - } - - /// The currency code of this Proposal. This attribute is optional and - /// defaults to network's currency code. + ADVERTISER_ID = 10, + /// Breaks down reporting data by advertising company. Company#name and Company#id are + /// automatically included as columns in the report. Can be used to filter by Company#name.

Corresponds to "Advertiser" in the Ad + /// Manager UI. Compatible with any of the following report types: Historical, + /// Future sell-through, Reach, Ad speed.

///
- [System.Xml.Serialization.XmlElementAttribute(Order = 19)] - public string currencyCode { - get { - return this.currencyCodeField; - } - set { - this.currencyCodeField = value; - } - } - - /// Indicates whether the proposal has been sold, i.e., corresponds to whether the - /// status of an Order is OrderStatus#APPROVED or OrderStatus#PAUSED. This attribute is read-only. + ADVERTISER_NAME = 11, + /// The network that provided the ad for SDK ad mediation.

If selected for a + /// report, that report will include only SDK mediation ads and will not contain + /// non-SDK mediation ads.

SDK mediation ads are ads for mobile devices. They + /// have a list of ad networks which can provide ads to serve. Not every ad network + /// will have an ad to serve so the device will try each network one-by-one until it + /// finds an ad network with an ad to serve. The ad network that ends up serving the + /// ad will appear here. Note that this id does not correlate to anything in the + /// companies table and is not the same id as is served by #ADVERTISER_ID.

Compatible with the + /// "Historical" report type.

///
- [System.Xml.Serialization.XmlElementAttribute(Order = 20)] - public bool isSold { - get { - return this.isSoldField; - } - set { - this.isSoldField = value; - this.isSoldSpecified = true; - } - } - - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool isSoldSpecified { - get { - return this.isSoldFieldSpecified; - } - set { - this.isSoldFieldSpecified = value; - } - } - - /// The date and time this Proposal was last modified. This attribute - /// is read-only. + AD_NETWORK_ID = 12, + /// The name of the network defined in #AD_NETWORK_ID. + ///

Corresponds to "Ad network name" in the Ad Manager UI. Compatible with the + /// "Historical" report type.

///
- [System.Xml.Serialization.XmlElementAttribute(Order = 21)] - public DateTime lastModifiedDateTime { - get { - return this.lastModifiedDateTimeField; - } - set { - this.lastModifiedDateTimeField = value; - } - } - - /// The marketplace info of this proposal if it has a corresponding order in - /// Marketplace. + AD_NETWORK_NAME = 13, + /// Breaks down reporting data by salesperson User#id. Can be + /// used to filter by User#id.

Compatible with any of the + /// following report types: Historical, Future sell-through, Reach.

///
- [System.Xml.Serialization.XmlElementAttribute(Order = 22)] - public ProposalMarketplaceInfo marketplaceInfo { - get { - return this.marketplaceInfoField; - } - set { - this.marketplaceInfoField = value; - } - } - - /// The buyer RFP associated with this Proposal, which is optional. - /// This field will be null if the proposal is not initiated from RFP. + SALESPERSON_ID = 14, + /// Breaks down reporting data by salesperson. User#name and + /// User#id of the salesperson are automatically included as + /// columns in the report. Can be used to filter by User#name.

Corresponds to "Salesperson" in the Ad + /// Manager UI. Compatible with any of the following report types: Historical, + /// Future sell-through, Reach.

///
- [System.Xml.Serialization.XmlElementAttribute(Order = 23)] - public BuyerRfp buyerRfp { - get { - return this.buyerRfpField; - } - set { - this.buyerRfpField = value; - } - } - - /// Whether a Proposal contains a BuyerRfp field. If this field is true, it indicates that the - /// Proposal in question orignated from a buyer. + SALESPERSON_NAME = 15, + /// Breaks down reporting data by Creative#id or creative + /// set id (master's Creative#id) if the creative is part + /// of a creative set. Can be used to filter by Creative#id.

Compatible with any of the following + /// report types: Historical, Ad speed, Real-time video.

///
- [System.Xml.Serialization.XmlElementAttribute(Order = 24)] - public bool hasBuyerRfp { - get { - return this.hasBuyerRfpField; - } - set { - this.hasBuyerRfpField = value; - this.hasBuyerRfpSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool hasBuyerRfpSpecified { - get { - return this.hasBuyerRfpFieldSpecified; - } - set { - this.hasBuyerRfpFieldSpecified = value; - } - } - - /// Whether pausing is consented for the Proposal. This field is - /// optional and defaults to true. If false, it indicates that the buyer and the - /// seller agree that the proposal should not be paused. + CREATIVE_ID = 16, + /// Breaks down reporting data by creative. Creative#name and Creative#id + /// are automatically included as columns in the report. Can be used to filter by Creative#name.

Corresponds to "Creative" in the Ad + /// Manager UI. Compatible with any of the following report types: Historical, Ad + /// speed, Real-time video.

///
- [System.Xml.Serialization.XmlElementAttribute(Order = 25)] - public bool deliveryPausingEnabled { - get { - return this.deliveryPausingEnabledField; - } - set { - this.deliveryPausingEnabledField = value; - this.deliveryPausingEnabledSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool deliveryPausingEnabledSpecified { - get { - return this.deliveryPausingEnabledFieldSpecified; - } - set { - this.deliveryPausingEnabledFieldSpecified = value; - } - } - } - - - /// Describes the Proposal status. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum ProposalStatus { - /// Indicates that the Proposal has just been created or - /// retracted but no approval has been requested yet. + CREATIVE_NAME = 17, + /// Breaks down reporting data by creative type.

Corresponds to "Creative type" + /// in the Ad Manager UI. Compatible with any of the following report types: + /// Historical, Ad speed.

///
- DRAFT = 0, - /// Indicates that a request for approval has been made for the Proposal. + CREATIVE_TYPE = 18, + /// Breaks down reporting data by creative billing type.

Corresponds to "Creative + /// billing type" in the Ad Manager UI. Compatible with the "Historical" report + /// type.

///
- PENDING_APPROVAL = 1, - /// Indicates that the Proposal has been approved and is - /// ready to serve. + CREATIVE_BILLING_TYPE = 19, + /// Breaks down reporting data by custom event ID.

Compatible with the + /// "Historical" report type.

///
- APPROVED = 2, - /// Indicates that the Proposal has been rejected in the - /// approval workflow. + CUSTOM_EVENT_ID = 20, + /// Breaks down reporting data by custom event name.

Corresponds to "Custom + /// event" in the Ad Manager UI. Compatible with the "Historical" report type.

///
- REJECTED = 3, - /// The value returned if the actual value is not exposed by the requested API - /// version. + CUSTOM_EVENT_NAME = 21, + /// Breaks down reporting data by custom event type (timer/exit/counter). + ///

Corresponds to "Custom event type" in the Ad Manager UI. Compatible with the + /// "Historical" report type.

///
- UNKNOWN = 4, - } - - - /// Errors associated with programmatic proposal line - /// items. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ProposalLineItemProgrammaticError : ApiError { - private ProposalLineItemProgrammaticErrorReason reasonField; - - private bool reasonFieldSpecified; - - /// The error reason represented by an enum. + CUSTOM_EVENT_TYPE = 22, + /// Breaks down reporting data by Creative#size. Cannot + /// be used for filtering.

Corresponds to "Creative size" in the Ad Manager UI. + /// Compatible with the "Historical" report type.

///
- [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public ProposalLineItemProgrammaticErrorReason reason { - get { - return this.reasonField; - } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { - return this.reasonFieldSpecified; - } - set { - this.reasonFieldSpecified = value; - } - } - } - - - /// The reasons for the target error. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ProposalLineItemProgrammaticError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum ProposalLineItemProgrammaticErrorReason { - /// Programmatic proposal line items only support ProductType#DFP. + CREATIVE_SIZE = 23, + /// Breaks down reporting data by AdUnit#id. Can be used to + /// filter by AdUnit#id. #AD_UNIT_NAME, i.e. AdUnit#name, is automatically included as a dimension in + /// the report.

Compatible with any of the following report types: Historical, + /// Future sell-through, Ad speed, Real-time video.

///
- INVALID_PRODUCT_TYPE = 0, - /// EnvironmentType#VIDEO_PLAYER is - /// currently not supported. + AD_UNIT_ID = 24, + /// Breaks down reporting data by ad unit. AdUnit#name and + /// AdUnit#id are automatically included as columns in the + /// report. Can be used to filter by AdUnit#name. + ///

Corresponds to "Ad unit" in the Ad Manager UI. Compatible with any of the + /// following report types: Historical, Future sell-through, Ad speed, Real-time + /// video.

///
- VIDEO_NOT_SUPPORTED = 1, - /// Programmatic proposal line items do not support - /// RoadblockingType#CREATIVE_SET. + AD_UNIT_NAME = 25, + /// Used to filter on all the descendants of an ad unit by AdUnit#id. Not available as a dimension to report on. + ///

Compatible with any of the following report types: Historical, Future + /// sell-through, Reach, Ad speed, Real-time video.

///
- ROADBLOCKING_NOT_SUPPORTED = 2, - /// Programmatic proposal line items do not support - /// CreativeRotationType#SEQUENTIAL. + PARENT_AD_UNIT_ID = 26, + /// Used to filter on all the descendants of an ad unit by AdUnit#name. Not available as a dimension to report on. + ///

Compatible with any of the following report types: Historical, Future + /// sell-through, Reach, Ad speed, Real-time video.

///
- INVALID_CREATIVE_ROTATION = 3, - /// Programmatic proposal line items only support LineItemType#STANDARD. + PARENT_AD_UNIT_NAME = 27, + /// Breaks down reporting data by Placement#id. Can be + /// used to filter by Placement#id.

Compatible with + /// any of the following report types: Historical, Future sell-through, Reach.

///
- INVALID_PROPOSAL_LINE_ITEM_TYPE = 4, - /// Programmatic proposal line items only support RateType#CPM. + PLACEMENT_ID = 28, + /// Breaks down reporting data by placement. Placement#name and Placement#id are automatically included as columns in + /// the report. Can be used to filter by Placement#name.

Corresponds to "Placement" in the + /// Ad Manager UI. Compatible with any of the following report types: Historical, + /// Future sell-through, Reach.

///
- INVALID_RATE_TYPE = 5, - /// Programmatic proposal line items do not support - /// zero for ProposalLineItem#netRate. + PLACEMENT_NAME = 29, + /// Status of the placement. Not available as a dimension to report on, but exists + /// as a dimension in order to filter on it using PQL. Can be used to filter on Placement#status by using InventoryStatus enumeration names.

Compatible with + /// any of the following report types: Historical, Future sell-through.

///
- ZERO_COST_PER_UNIT_NOT_SUPPORTED = 6, - /// Only programmatic proposal line items support ProgrammaticCreativeSource. + PLACEMENT_STATUS = 143, + /// Breaks down reporting data by criteria predefined by Ad Manager like the + /// operating system, browser etc. Cannot be used for filtering.

Corresponds to + /// "Targeting" in the Ad Manager UI. Compatible with the "Historical" report + /// type.

///
- INVALID_PROGRAMMATIC_CREATIVE_SOURCE = 7, - /// Programmatic proposal line item has invalid video - /// creative duration. + TARGETING = 30, + /// Breaks down reporting data by browser criteria predefined by Ad Manager. + ///

Corresponds to "Browser" in the Ad Manager UI. Compatible with the + /// "Historical" report type.

///
- INVALID_MAX_VIDEO_CREATIVE_DURATION = 17, - /// Cannot update programmatic creative source if the proposal line item has been sent to the buyer. + BROWSER_NAME = 246, + /// The ID of the device category to which an ad is being targeted. Can be used to + /// filter by device category ID.

Compatible with any of the following report + /// types: Historical, Ad speed, Real-time video.

///
- CANNOT_UPDATE_PROGRAMMATIC_CREATIVE_SOURCE = 14, - /// The Goal#units value is invalid. + DEVICE_CATEGORY_ID = 31, + /// The category of device (smartphone, feature phone, tablet, or desktop) to which + /// an ad is being targeted. Can be used to filter by device category name. + ///

Corresponds to "Device category" in the Ad Manager UI. Compatible with any of + /// the following report types: Historical, Ad speed, Real-time video.

///
- INVALID_NUM_UNITS = 8, - /// Cannot mix guaranteed and Preferred Deal proposal line items in a programmatic - /// proposal. + DEVICE_CATEGORY_NAME = 32, + /// Breaks down reporting data by country criteria ID. Can be used to filter by + /// country criteria ID.

Compatible with any of the following report types: + /// Historical, Future sell-through, Reach, Ad speed, YouTube consolidated.

///
- MIX_GUARANTEED_AND_PREFERRED_DEAL_NOT_ALLOWED = 15, - /// Cannot mix native and banner size in a programmatic proposal line item. + COUNTRY_CRITERIA_ID = 33, + /// Breaks down reporting data by country code.

Compatible with the "Historical" + /// report type.

///
- MIX_NATIVE_AND_BANNER_SIZE_NOT_ALLOWED = 12, - /// Cannot update sizes when a programmatic proposal line item with publisher - /// creative source is sent to a buyer. + COUNTRY_CODE = 257, + /// Breaks down reporting data by country name. The country name and the country + /// criteria ID are automatically included as columns in the report. Can be used to + /// filter by country name using the US English name.

Corresponds to "Country" in + /// the Ad Manager UI. Compatible with any of the following report types: + /// Historical, Future sell-through, Reach, Ad speed, YouTube consolidated.

///
- CANNOT_UPDATE_SIZES = 13, - /// The {ProposalLineItem#contractedUnitsBought} cannot be null or zero - /// for programmatic RateType#CPD proposal line items. + COUNTRY_NAME = 34, + /// Breaks down reporting data by region criteria ID. Can be used to filter by + /// region criteria ID.

Compatible with the "Historical" report type.

///
- INVALID_SPONSORSHIP_CONTRACTED_UNITS_BOUGHT = 9, - /// Only PricingModel#NET is supported for - /// programmatic proposal line items. + REGION_CRITERIA_ID = 35, + /// Breaks down reporting data by region name. The region name and the region + /// criteria ID are automatically included as columns in the report. Can be used to + /// filter by region name using the US English name.

Corresponds to "Region" in + /// the Ad Manager UI. Compatible with the "Historical" report type.

///
- INVALID_PROGRAMMATIC_PRICING_MODEL = 11, - /// Buyer is currently disabled for guaranteed deals due to violation of - /// Programmatic Guaranteed service level agreement. + REGION_NAME = 36, + /// Breaks down reporting data by city criteria ID. Can be used to filter by city + /// criteria ID.

Compatible with the "Historical" report type.

///
- BUYER_DISABLED_FOR_PG_VIOLATING_SLA = 16, - /// Deals with agencies are limited to preferred deals, private auctions, and public - /// marketplace packages. + CITY_CRITERIA_ID = 37, + /// Breaks down reporting data by city name. The city name and the city criteria ID + /// are automatically included as columns in the report. Can be used to filter by + /// city name using the US English name.

Corresponds to "City" in the Ad Manager + /// UI. Compatible with the "Historical" report type.

///
- PG_NOT_SUPPORTED_FOR_AGENCY_BUYER = 21, - /// Buyer not found. + CITY_NAME = 38, + /// Breaks down reporting data by metro criteria ID. Can be used to filter by metro + /// criteria ID.

Compatible with the "Historical" report type.

///
- BUYER_NOT_FOUND = 18, - /// Cannot create/update proposal line items with an - /// invalid environment and request platform pair. + METRO_CRITERIA_ID = 39, + /// Breaks down reporting data by metro name. The metro name and the metro criteria + /// ID are automatically included as columns in the report. Can be used to filter by + /// metro name using the US English name.

Corresponds to "Metro" in the Ad + /// Manager UI. Compatible with the "Historical" report type.

///
- INVALID_ENVIRONMENT_PLATFORM_TYPE_PAIR = 19, - /// A proposal line item must either be of video, or - /// audio type, but not both. + METRO_NAME = 40, + /// Breaks down reporting data by postal code criteria ID. Can be used to filter by + /// postal code criteria ID.

Compatible with the "Historical" report type.

///
- CANNOT_MIX_AUDIO_VIDEO_PROGRAMMATIC_LINE_ITEM = 20, - /// The value returned if the actual value is not exposed by the requested API - /// version. + POSTAL_CODE_CRITERIA_ID = 41, + /// Breaks down reporting data by postal code. The postal code and the postal code + /// criteria ID are automatically included as columns in the report. Can be used to + /// filter by postal code.

Corresponds to "Postal code" in the Ad Manager UI. + /// Compatible with the "Historical" report type.

///
- UNKNOWN = 10, - } - - - /// Lists all errors for makegood proposal line items. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ProposalLineItemMakegoodError : ApiError { - private ProposalLineItemMakegoodErrorReason reasonField; - - private bool reasonFieldSpecified; - - /// The error reason represented by an enum. + POSTAL_CODE = 42, + /// Breaks down reporting data by CustomTargetingValue#id. Can be used to + /// filter by CustomTargetingValue#id. + ///

Compatible with the "Historical" report type.

///
- [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public ProposalLineItemMakegoodErrorReason reason { - get { - return this.reasonField; - } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { - return this.reasonFieldSpecified; - } - set { - this.reasonFieldSpecified = value; - } - } - } - - - /// The reasons for the target error. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ProposalLineItemMakegoodError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum ProposalLineItemMakegoodErrorReason { - /// The original proposal line item for this makegood already has a makegood. - /// - ORIGINAL_ALREADY_HAS_MAKEGOOD = 0, - /// The original proposal line item for this makegood is itself a makegood. + CUSTOM_TARGETING_VALUE_ID = 43, + /// Breaks down reporting data by custom criteria. The CustomTargetingValue is displayed in the form: + /// #CUSTOM_TARGETING_VALUE_ID, i.e. + /// CustomTargetingValue#id is automatically + /// included as a column in the report. Cannot be used for filtering; use #CUSTOM_TARGETING_VALUE_ID instead. + ///

When using this Dimension, metrics for freeform key values are + /// only reported on when they are registered with .

Corresponds + /// to "Key-values" in the Ad Manager UI. Compatible with the "Historical" report + /// type.

///
- ORIGINAL_IS_MAKEGOOD = 1, - /// The original proposal line item for this makegood has not been sold. + CUSTOM_CRITERIA = 44, + /// Breaks down reporting data by Content#id. Can be used + /// to filter by Content#id.

Compatible with any of the + /// following report types: Historical, Future sell-through, YouTube + /// consolidated.

///
- ORIGINAL_NOT_YET_SOLD = 2, - /// This makegood or its original is not a standard line item. + CONTENT_ID = 49, + /// Breaks down reporting data by content. Content#name + /// and Content#id are automatically included as columns in + /// the report. Can be used to filter by Content#name. + ///

Corresponds to "Content" in the Ad Manager UI. Compatible with any of the + /// following report types: Historical, Future sell-through, YouTube + /// consolidated.

///
- LINE_ITEM_IS_NOT_STANDARD = 3, - /// This makegood or its original is not a CPM line item. + CONTENT_NAME = 50, + /// Breaks down reporting data by ContentBundle#id. + /// Can be used to filter by ContentBundle#id. + ///

Compatible with any of the following report types: Historical, Future + /// sell-through, YouTube consolidated.

///
- LINE_ITEM_IS_NOT_CPM = 4, - /// This makegood or its original has a cost type not supported on makegoods. + CONTENT_BUNDLE_ID = 51, + /// Breaks down reporting data by content bundle. ContentBundle#name and ContentBundle#id are automatically included as + /// columns in the report. Can be used to filter by ContentBundle#name.

Corresponds to "Content + /// bundle" in the Ad Manager UI. Compatible with any of the following report types: + /// Historical, Future sell-through, YouTube consolidated.

///
- MAKEGOODS_NOT_SUPPORTED_FOR_COST_TYPE = 10, - /// The original proposal line item for this makegood is too far in the past. + CONTENT_BUNDLE_NAME = 52, + /// Breaks down reporting data by CMS metadata. To use this dimension in API, a list + /// of cms metadata key IDs must be specified in ReportQuery#cmsMetadataKeyIds.

This + /// dimension can be used as a filter in the Statement in + /// PQL syntax: CMS_METADATA_KEY[keyId]_ID = CMS metadata value ID

For + /// example: WHERE CMS_METADATA_KEY[4242]_ID = 53423

///
- ORIGINAL_TOO_FAR_IN_PAST = 5, - /// This makegood has a rate that's different from the original proposal line item. + CMS_METADATA = 236, + /// Breaks down reporting data by the fallback position of the video ad, i.e., + /// NON_FALLBACK, FALLBACK_POSITION_1, , etc. + /// Can be used for filtering.

Corresponds to "Fallback position" in the Ad + /// Manager UI. Compatible with the "Historical" report type.

///
- RATE_DIFFERENT_THAN_ORIGINAL = 6, - /// This makegood has an impression goal greater than the original proposal line - /// item. + VIDEO_FALLBACK_POSITION = 54, + /// Breaks down reporting data by the position of the video ad within the video + /// stream, i.e., UNKNOWN_POSITION, PREROLL, + /// POSTROLL, UNKNOWN_MIDROLL, MIDROLL_1, + /// MIDROLL_2, etc. UNKNOWN_MIDROLL represents a midroll, + /// but which specific midroll is unknown. Can be used for filtering.

Corresponds + /// to "Position of pod" in the Ad Manager UI. Compatible with any of the following + /// report types: Historical, Real-time video.

///
- UNITS_MORE_THAN_ORIGINAL = 7, - /// Makegoods are not supported for non-DV360 buyers. + POSITION_OF_POD = 55, + /// Breaks down reporting data by the position of the video ad within the pod, i.e., + /// UNKNOWN_POSITION, POSITION_1, , etc. Can + /// be used for filtering.

Corresponds to "Position in pod" in the Ad Manager UI. + /// Compatible with the "Historical" report type.

///
- MAKEGOODS_NOT_SUPPORTED_FOR_NON_DV360_BUYERS = 8, - /// The value returned if the actual value is not exposed by the requested API - /// version. + POSITION_IN_POD = 56, + /// Breaks down reporting data by AdSpot#id. Can be used to + /// filter by AdSpot#id.

Compatible with the "Historical" + /// report type.

///
- UNKNOWN = 9, - } - - - /// Lists all errors associated with proposal line items. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ProposalLineItemError : ApiError { - private ProposalLineItemErrorReason reasonField; - - private bool reasonFieldSpecified; - - /// The error reason represented by an enum. + CUSTOM_SPOT_ID = 239, + /// Breaks down reporting data by content. AdSpot#name and + /// AdSpot#id are automatically included as columns in the + /// report. Can be used to filter by AdSpot#name. + ///

Corresponds to "Custom spot" in the Ad Manager UI. Compatible with the + /// "Historical" report type.

///
- [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public ProposalLineItemErrorReason reason { - get { - return this.reasonField; - } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { - return this.reasonFieldSpecified; - } - set { - this.reasonFieldSpecified = value; - } - } - } - - - /// The reasons for the target error. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ProposalLineItemError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum ProposalLineItemErrorReason { - /// The proposal line item's rate card is not the same as other proposal line items - /// in the proposal. + CUSTOM_SPOT_NAME = 240, + /// Breaks down reporting data by video redirect vendor.

Corresponds to "Video + /// redirect third party" in the Ad Manager UI. Compatible with the "Historical" + /// report type.

///
- NOT_SAME_RATE_CARD = 0, - /// The proposal line item's type is not yet supported by Sales Manager. + VIDEO_REDIRECT_THIRD_PARTY = 206, + /// The filter to break down reporting data by video break type. Not available as a + /// dimension to report on.

Compatible with the "Historical" report type.

///
- LINE_ITEM_TYPE_NOT_ALLOWED = 1, - /// The proposal line item's end date time is not after its start date time. + VIDEO_BREAK_TYPE = 227, + /// The filter to break down reporting data by video break type. Can only be used + /// with the following string values: "Unknown", "Single ad video request", + /// "Optimized pod video request". Not available as a dimension to report on. + ///

Compatible with the "Historical" report type.

///
- END_DATE_TIME_NOT_AFTER_START_TIME = 2, - /// The proposal line item's start date time is too late in the month. This error - /// applies to Programmatic Guaranteed deals sold on Nielsen audience measurement. + VIDEO_BREAK_TYPE_NAME = 228, + /// Breaks down reporting data by vast version type name.

Corresponds to "VAST + /// version" in the Ad Manager UI. Compatible with the "Historical" report type.

///
- START_DATE_TIME_TOO_LATE_IN_MONTH = 60, - /// The proposal line item's end date time is after 1/1/2037. + VIDEO_VAST_VERSION = 207, + /// Breaks down reporting data by video request duration bucket.

Compatible with + /// the "Historical" report type.

///
- END_DATE_TIME_TOO_LATE = 3, - /// The proposal line item's start date time is in past. + VIDEO_AD_REQUEST_DURATION_ID = 229, + /// Breaks down reporting data by video request duration bucket name.

Corresponds + /// to "Video ad request duration" in the Ad Manager UI. Compatible with the + /// "Historical" report type.

///
- START_DATE_TIME_IS_IN_PAST = 4, - /// The proposal line item's end date time is in past. + VIDEO_AD_REQUEST_DURATION = 230, + /// Breaks down reporting data by the ID of the type of video placement as defined + /// by the updated IAB definition. The values of "in-stream" and "accompanying + /// content" are declared via publisher inputted URL parameters. The values of + /// "interstitial" and "no content" are populated automatically based on the + /// declared inventory type. The video placement dimension only applies to backfill + /// traffic. + /// + VIDEO_PLCMT_ID = 312, + /// Breaks down reporting data by the name of the type of video placement as defined + /// by the updated IAB definition. The values of "in-stream" and "accompanying + /// content" are declared via publisher inputted URL parameters. The values of + /// "interstitial" and "no content" are populated automatically based on the + /// declared inventory type. The video placement dimension only applies to backfill + /// traffic.

Corresponds to "Video placement (new)" in the Ad Manager UI. + /// Compatible with the "Historical" report type.

///
- END_DATE_TIME_IS_IN_PAST = 5, - /// Frontloaded delivery rate type is not allowed. + VIDEO_PLCMT_NAME = 313, + /// Breaks down impressions by inventory format id.

Compatible with the + /// "Historical" report type.

///
- FRONTLOADED_NOT_ALLOWED = 6, - /// Roadblocking to display all creatives is not allowed. + INVENTORY_FORMAT = 314, + /// Breaks down impressions by inventory format name.

Corresponds to "Inventory + /// format" in the Ad Manager UI. Compatible with the "Historical" report type.

///
- ALL_ROADBLOCK_NOT_ALLOWED = 7, - /// Display all companions is not allowed. + INVENTORY_FORMAT_NAME = 315, + /// Breaks down reporting data by partner Company#id. + ///

Compatible with any of the following report types: Historical, Partner + /// finance.

///
- ALL_COMPANION_DELIVERY_NOT_ALLOWED = 63, - /// Roadblocking to display all master and companion creative set is not allowed. + PARTNER_MANAGEMENT_PARTNER_ID = 57, + /// Breaks down reporting data by partner Company#name + /// and Company#id are automatically included as columns in + /// the report.

Corresponds to "Partner" in the Ad Manager UI. Compatible with + /// any of the following report types: Historical, Partner finance.

///
- CREATIVE_SET_ROADBLOCK_NOT_ALLOWED = 8, - /// Some changes may not be allowed because the related line item has already - /// started. + PARTNER_MANAGEMENT_PARTNER_NAME = 58, + /// Breaks down reporting data by partner label Label#id. + ///

Compatible with any of the following report types: Historical, Partner + /// finance.

///
- ALREADY_STARTED = 9, - /// The setting is conflict with product's restriction. + PARTNER_MANAGEMENT_PARTNER_LABEL_ID = 59, + /// Breaks down reporting data by partner label. Label#name + /// and Label#id are automatically included as columns in the + /// report.

Corresponds to "Partner label" in the Ad Manager UI. Compatible with + /// any of the following report types: Historical, Partner finance.

///
- CONFLICT_WITH_PRODUCT = 10, - /// The proposal line item's setting violates the product's built-in targeting - /// compatibility restriction. + PARTNER_MANAGEMENT_PARTNER_LABEL_NAME = 60, + /// Breaks down reporting data by partner assignment id.

Compatible with any of + /// the following report types: Historical, Partner finance.

///
- VIOLATE_BUILT_IN_TARGETING_COMPATIBILITY_RESTRICTION = 11, - /// The proposal line item's setting violates the product's built-in targeting - /// locked restriction. + PARTNER_MANAGEMENT_ASSIGNMENT_ID = 195, + /// Breaks down reporting data by partner assignment name. PartnerAssignment name + /// and id are automatically included as columns in the report.

Corresponds to + /// "Assignment" in the Ad Manager UI. Compatible with any of the following report + /// types: Historical, Partner finance.

///
- VIOLATE_BUILT_IN_TARGETING_LOCKED_RESTRICTION = 12, - /// Cannot target mobile-only targeting criteria. + PARTNER_MANAGEMENT_ASSIGNMENT_NAME = 196, + /// Breaks down reporting data by inventory sharing assignment ID.

Compatible + /// with the "Historical" report type.

///
- MOBILE_TECH_CRITERIA_NOT_SUPPORTED = 13, - /// The targeting criteria type is unsupported. + INVENTORY_SHARE_ASSIGNMENT_ID = 252, + /// Breaks down reporting data by inventory sharing assignment name.

Corresponds + /// to "Inventory share assignment" in the Ad Manager UI. Compatible with the + /// "Historical" report type.

///
- UNSUPPORTED_TARGETING_TYPE = 14, - /// The contracted cost does not match with what calculated from final rate and - /// units bought. + INVENTORY_SHARE_ASSIGNMENT_NAME = 253, + /// Breaks down reporting data by inventory sharing outcome.

Corresponds to + /// "Inventory share outcome" in the Ad Manager UI. Compatible with the "Historical" + /// report type.

///
- WRONG_COST = 15, - /// The proposal line item targets an inventory type for which the network does not - /// have a corresponding web property. + INVENTORY_SHARE_OUTCOME = 254, + /// Breaks down reporting data by gender and age group, i.e., MALE_13_TO_17, + /// MALE_18_TO_24, MALE_25_TO_34, MALE_35_TO_44, MALE_45_TO_54, MALE_55_TO_64, + /// MALE_65_PLUS, FEMALE_13_TO_17, FEMALE_18_TO_24, FEMALE_25_TO_34, + /// FEMALE_35_TO_44, FEMALE_45_TO_54, FEMALE_55_TO_64, FEMALE_65_PLUS, + /// UNKNOWN_0_TO_17 and UNKNOWN. Whenever this dimension is selected, #COUNTRY_NAME must be selected.

This dimension is supported only + /// for GRP columns.

Can correspond to any of the following in the Ad Manager + /// UI: Demographics, comScore vCE demographics. Compatible with the "Reach" report + /// type.

///
- NO_WEB_PROPERTY_FOR_TARGETED_REQUEST_PLATFORM = 62, - /// The cost calculated from cost per unit and units is too high. + GRP_DEMOGRAPHICS = 61, + /// Breaks down reporting data by the ad unit sizes specified in ad requests. + ///

Formatted as comma separated values, e.g. "300x250,300x250v,300x60".

+ ///

This dimension is supported only for sell-through columns.

Corresponds + /// to "Ad request sizes" in the Ad Manager UI. Compatible with the "Future + /// sell-through" report type.

///
- CALCULATED_COST_TOO_HIGH = 16, - /// The line item priority is invalid if it's different than the default. + AD_REQUEST_AD_UNIT_SIZES = 63, + /// Breaks down reporting data by the custom criteria specified in ad requests. + ///

Formatted as comma separated key-values, where a key-value is formatted as + /// .

This dimension is supported only for sell-through + /// columns.

Corresponds to "Key-values" in the Ad Manager UI. Compatible + /// with the "Future sell-through" report type.

///
- INVALID_PRIORITY_FOR_LINE_ITEM_TYPE = 17, - /// Propsoal line item cannot update when it is archived. + AD_REQUEST_CUSTOM_CRITERIA = 64, + /// Break down the report by a boolean indicator. It's TRUE for Ad Exchange traffic + /// fulfilled by First Look Deals. It can be used both as a dimension or dimension + /// filter. As a filter, it can only be used with the string values "true" and + /// "false".

Corresponds to "Is First Look" in the Ad Manager UI. Compatible with + /// the "Historical" report type.

///
- UPDATE_PROPOSAL_LINE_ITEM_NOT_ALLOWED = 18, - /// A proposal line item cannot be updated from having RoadblockingType#CREATIVE_SET to having - /// a different RoadblockingType, or vice versa. + IS_FIRST_LOOK_DEAL = 154, + /// Break down the report by a boolean indicator. It's TRUE for AdX Direct traffic. + /// It can be used both as a dimension or dimension filter. As a filter, it can only + /// be used with the string values "true" and "false".

Corresponds to "Is AdX + /// Direct" in the Ad Manager UI. Compatible with the "Historical" report type.

///
- CANNOT_UPDATE_TO_OR_FROM_CREATIVE_SET_ROADBLOCK = 19, - /// Serving creatives exactly in sequential order is not allowed. + IS_ADX_DIRECT = 299, + /// Breaks down reporting data by yield group ID.

Compatible with the + /// "Historical" report type.

///
- SEQUENTIAL_CREATIVE_ROTATION_NOT_ALLOWED = 20, - /// Proposal line item cannot update its reservation detail once start delivering. + YIELD_GROUP_ID = 197, + /// Breaks down reporting data by yield group name.

Corresponds to "Yield group" + /// in the Ad Manager UI. Compatible with the "Historical" report type.

///
- UPDATE_RESERVATION_NOT_ALLOWED = 21, - /// The companion delivery option is not valid for the roadblocking type. + YIELD_GROUP_NAME = 198, + /// Breaks down reporting data by yield partner.

Corresponds to "Yield partner" + /// in the Ad Manager UI. Compatible with the "Historical" report type.

///
- INVALID_COMPANION_DELIVERY_OPTION_FOR_ROADBLOCKING_TYPE = 22, - /// Roadblocking type is inconsistent with creative placeholders. If the - /// roadblocking type is creative set, creative placeholders should contain - /// companions, and vice versa. + YIELD_PARTNER = 199, + /// Breaks down reporting data by the tag of a yield partner in a yield group. + ///

Corresponds to "Yield partner tag" in the Ad Manager UI. Compatible with the + /// "Historical" report type.

///
- INCONSISTENT_ROADBLOCK_TYPE = 23, - /// ContractedQuantityBuffer is only applicable to standard line item with RateType#CPC/RateType#CPM/RateType#VCPM type. + YIELD_PARTNER_TAG = 200, + /// The ID of an exchange bidding deal.

Corresponds to "Exchange bidding deal id" + /// in the Ad Manager UI. Compatible with the "Historical" report type.

///
- INVALID_CONTRACTED_QUANTITY_BUFFER = 36, - /// One or more values on the proposal line item are not valid for a LineItemType#CLICK_TRACKING line item - /// type. + EXCHANGE_BIDDING_DEAL_ID = 297, + /// The type of an exchange bidding deal.

Corresponds to "Exchange bidding deal + /// type" in the Ad Manager UI. Compatible with the "Historical" report type.

///
- INVALID_VALUES_FOR_CLICK_TRACKING_LINE_ITEM_TYPE = 25, - /// Proposal line item cannot update its cost adjustment after first approval. + EXCHANGE_BIDDING_DEAL_TYPE = 298, + /// The ID of a classified advertiser.

Compatible with the "Ad speed" report + /// type.

///
- UPDATE_COST_ADJUSTMENT_NOT_ALLOWED = 26, - /// The currency code of the proposal line item's rate card is not supported by the - /// current network. All supported currencies can be found in the union of Network#currencyCode and Network#secondaryCurrencyCodes. + CLASSIFIED_ADVERTISER_ID = 231, + /// The name of a classified advertiser.

Corresponds to "Advertiser (classified)" + /// in the Ad Manager UI. Compatible with any of the following report types: + /// Historical, Ad speed.

///
- UNSUPPORTED_RATE_CARD_CURRENCY_CODE = 27, - /// The corresponding line item is paused, but the proposal line item's end date - /// time is before the last paused time. + CLASSIFIED_ADVERTISER_NAME = 232, + /// The ID of a classified brand.

Compatible with the "Ad speed" report type.

///
- END_DATE_TIME_IS_BEFORE_LAST_PAUSED_TIME = 28, - /// Video line items cannot have roadblocking options. + CLASSIFIED_BRAND_ID = 233, + /// The name of a classified brand.

Corresponds to "Brand (classified)" in the Ad + /// Manager UI. Compatible with any of the following report types: Historical, Ad + /// speed.

///
- VIDEO_INVALID_ROADBLOCKING = 29, - /// Time zone cannot be updated once the proposal line item has been sold. + CLASSIFIED_BRAND_NAME = 234, + /// Breaks down reporting data by mediation type. A mediation type can be web, + /// mobile app or video.

Corresponds to "Mediation type" in the Ad Manager UI. + /// Compatible with the "Historical" report type.

///
- UPDATE_TIME_ZONE_NOT_ALLOWED = 30, - /// Time zone must be network time zone if the proposal line item is RateType#VCPM. + MEDIATION_TYPE = 161, + /// Breaks down reporting data by native template (also known as creative template) + /// ID.

Compatible with the "Historical" report type.

///
- INVALID_TIME_ZONE_FOR_RATE_TYPE = 37, - /// Only the Network#timeZone is allowed for - /// programmatic proposals. + NATIVE_TEMPLATE_ID = 155, + /// Breaks down reporting data by native template (also known as creative template) + /// name.

Corresponds to "Native ad format name" in the Ad Manager UI. Compatible + /// with the "Historical" report type.

///
- INVALID_TIME_ZONE_FOR_DEALS = 55, - /// The ProposalLineItem#environmentType is - /// invalid. + NATIVE_TEMPLATE_NAME = 156, + /// Breaks down reporting data by native style ID.

Compatible with the + /// "Historical" report type.

///
- INVALID_ENVIRONMENT_TYPE = 38, - /// At least one size must be specified. + NATIVE_STYLE_ID = 162, + /// Breaks down reporting data by native style name.

Corresponds to "Native style + /// name" in the Ad Manager UI. Compatible with the "Historical" report type.

///
- SIZE_REQUIRED = 31, - /// A placeholder contains companions but the roadblocking type is not RoadblockingType#CREATIVE_SET or the product type is offline. + NATIVE_STYLE_NAME = 163, + /// Breaks down reporting data by child network code in MCM "Manage Inventory". + ///

This dimension only works for MCM "Manage Inventory" parent + /// publishers.

Corresponds to "Child network code" in the Ad Manager UI. + /// Compatible with the "Historical" report type.

///
- COMPANION_NOT_ALLOWED = 32, - /// A placeholder does not contain companions but the roadblocking type is RoadblockingType#CREATIVE_SET. + CHILD_NETWORK_CODE = 238, + /// Breaks down reporting data by mobile app ID received in the ad request (which + /// may be made up). If app ID is not available, '(Not applicable)' will be + /// returned. Special values like 'null' and 'unidentified' will be reported as + /// '(Not applicable)'. Can be used for filtering.

Corresponds to "App ID" in the + /// Ad Manager UI. Compatible with the "Historical" report type.

///
- MISSING_COMPANION = 33, - /// A placeholder's master size is the same as another placeholder's master size. + MOBILE_APP_RESOLVED_ID = 243, + /// Breaks down reporting data by mobile app name. Can be used for filtering. + ///

Corresponds to "App names" in the Ad Manager UI. Compatible with the + /// "Historical" report type.

///
- DUPLICATED_MASTER_SIZE = 34, - /// Only creative placeholders with standard sizes can set an expected creative count. + MOBILE_APP_NAME = 164, + /// Breaks down reporting data by device name. Can be used for filtering.

Can + /// correspond to any of the following in the Ad Manager UI: Mobile OS, Devices. + /// Compatible with the "Historical" report type.

///
- INVALID_EXPECTED_CREATIVE_COUNT = 39, - /// Non-native placeholders cannot have creative templates. + MOBILE_DEVICE_NAME = 165, + /// Breaks down reporting data by inventory type. Can be used for filtering. + ///

Corresponds to "Inventory types" in the Ad Manager UI. Compatible with any of + /// the following report types: Historical, Ad speed.

///
- CANNOT_HAVE_CREATIVE_TEMPLATE = 46, - /// Placeholders can only have native creative templates. + MOBILE_INVENTORY_TYPE = 166, + /// Breaks down reporting data by OS version id.

Compatible with the "Historical" + /// report type.

///
- NATIVE_CREATIVE_TEMPLATE_REQUIRED = 47, - /// Cannot include native placeholders without native creative templates. + OPERATING_SYSTEM_VERSION_ID = 258, + /// Breaks down reporting data by OS version name.

Corresponds to "Operating + /// system" in the Ad Manager UI. Compatible with the "Historical" report type.

///
- CANNOT_INCLUDE_NATIVE_PLACEHOLDER_WITHOUT_TEMPLATE_ID = 48, - /// One or more values are not valid for a LineItemType#CLICK_TRACKING line item - /// type. + OPERATING_SYSTEM_VERSION_NAME = 259, + /// Breaks down reporting data by request type. Can be used for filtering. + ///

Corresponds to "Request type" in the Ad Manager UI. Compatible with any of + /// the following report types: Historical, Ad speed.

///
- INVALID_CLICK_TRACKING_LINE_ITEM_TYPE = 40, - /// The targeting is not valid for a LineItemType#CLICK_TRACKING line item - /// type. + REQUEST_TYPE = 201, + /// Status of the ad unit. Not available as a dimension to report on, but exists as + /// a dimension in order to filter on it using PQL. Valid values correspond to InventoryStatus.

Compatible with any of the + /// following report types: Historical, Future sell-through, Ad speed, Real-time + /// video.

///
- INVALID_TARGETING_FOR_CLICK_TRACKING = 41, - /// The contractedUnitsBought of the proposal line item is invalid. + AD_UNIT_STATUS = 144, + /// Breaks down reporting data by Creative#id. This + /// includes regular creatives, and master and companions in case of creative sets. + ///

Compatible with the "Historical" report type.

///
- INVALID_CONTRACTED_UNITS_BOUGHT = 42, - /// Only creative placeholders with standard sizes can contain labels. + MASTER_COMPANION_CREATIVE_ID = 69, + /// Breaks down reporting data by creative. This includes regular creatives, and + /// master and companions in case of creative sets.

Corresponds to "Master and + /// Companion creative" in the Ad Manager UI. Compatible with the "Historical" + /// report type.

///
- PLACEHOLDER_CANNOT_CONTAIN_LABELS = 43, - /// One or more labels on a creative placeholder is invalid. + MASTER_COMPANION_CREATIVE_NAME = 70, + /// Breaks down reporting data by billable audience segment ID.

Compatible with + /// the "Historical" report type.

///
- INVALID_LABEL_TYPE_IN_PLACEHOLDER = 44, - /// A placeholder cannot contain a negated label. + AUDIENCE_SEGMENT_ID = 87, + /// Breaks down reporting data by billable audience segment name.

Corresponds to + /// "Audience segment (billable)" in the Ad Manager UI. Compatible with the + /// "Historical" report type.

///
- PLACEHOLDER_CANNOT_CONTAIN_NEGATED_LABELS = 45, - /// Contracted impressions of programmatic proposal line item must be greater than - /// already delivered impressions. + AUDIENCE_SEGMENT_NAME = 88, + /// Breaks down reporting data by audience segment data provider name. + ///

Corresponds to "Data partner" in the Ad Manager UI. Compatible with the + /// "Historical" report type.

///
- CONTRACTED_UNITS_LESS_THAN_DELIVERED = 56, - /// If AdExchangeEnvironment is DISPLAY, the proposal line item must have mobile - /// apps as excluded device capability targeting. - /// - DISPLAY_ENVIRONMENT_MUST_HAVE_EXCLUDED_MOBILE_APPS_TARGETING = 57, - /// If AdExchangeEnvironment is MOBILE, the proposal line item must have mobile apps - /// as included device capability targeting. + AUDIENCE_SEGMENT_DATA_PROVIDER_NAME = 89, + /// Breaks down data by web property code.

Compatible with the "Historical" + /// report type.

///
- MOBILE_ENVIRONMENT_MUST_HAVE_INCLUDED_MOBILE_APPS_TARGETING = 58, - /// The SkippableAdType is not allowed. + WEB_PROPERTY_CODE = 260, + /// Breaks down reporting data by agency.

Corresponds to "Buying agency" in the + /// Ad Manager UI. Compatible with the "Historical" report type.

///
- SKIPPABLE_AD_TYPE_NOT_ALLOWED = 59, - /// Cross sell targeting is unsupported for this proposal line item. + BUYING_AGENCY_NAME = 261, + /// Breaks down reporting data by buyer network Id.

Compatible with the + /// "Historical" report type.

///
- CROSS_SELL_TARGETING_UNSUPPORTED = 61, - /// Can't set a video duration for non video deals. + BUYER_NETWORK_ID = 262, + /// Breaks down reporting data by buyer network name.

Corresponds to "Buyer + /// network" in the Ad Manager UI. Compatible with the "Historical" report type.

///
- CANNOT_SET_VIDEO_DURATION_ON_NON_VIDEO_DEAL = 64, - /// Cannot update video creative skippability on a YouTube-targeted proposal line - /// item once it's pushed to an order line item. + BUYER_NETWORK_NAME = 263, + /// Breaks down reporting data by Bidder ID.

Compatible with the "Historical" + /// report type.

///
- UPDATE_VIDEO_CREATIVE_SKIPPABILITY_NOT_ALLOWED = 65, - /// The value returned if the actual value is not exposed by the requested API - /// version. + BIDDER_ID = 264, + /// Breaks down reporting data by Bidder name.

Corresponds to "Bidder" in the Ad + /// Manager UI. Compatible with the "Historical" report type.

///
- UNKNOWN = 35, - } - - - /// Lists all errors associated with proposals. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ProposalError : ApiError { - private ProposalErrorReason reasonField; - - private bool reasonFieldSpecified; - - /// The error reason represented by an enum. + BIDDER_NAME = 265, + /// Breaks down reporting data by advertiser domain.

Corresponds to "Advertiser + /// domain" in the Ad Manager UI. Compatible with the "Historical" report type.

///
- [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public ProposalErrorReason reason { - get { - return this.reasonField; - } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { - return this.reasonFieldSpecified; - } - set { - this.reasonFieldSpecified = value; - } - } - } - - - /// The reasons for the target error. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ProposalError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum ProposalErrorReason { - /// Unknown error from ad-server + ADVERTISER_DOMAIN_NAME = 266, + /// Breaks down reporting data by optimization type.

Corresponds to "Optimization + /// type" in the Ad Manager UI. Compatible with any of the following report types: + /// Historical, Reach.

///
- AD_SERVER_UNKNOWN_ERROR = 0, - /// Ad-server reports an api error for the operation. + AD_EXCHANGE_OPTIMIZATION_TYPE = 235, + /// Breaks down reporting data by advertiser vertical.

Corresponds to "Advertiser + /// vertical" in the Ad Manager UI. Compatible with the "Historical" report + /// type.

///
- AD_SERVER_API_ERROR = 1, - /// Advertiser cannot be updated once the proposal has been reserved. + ADVERTISER_VERTICAL_NAME = 267, + /// Campaign date segment of Nielsen Digital Ad Ratings reporting.

Corresponds to + /// "Nielsen Digital Ad Ratings segment" in the Ad Manager UI. Compatible with the + /// "Reach" report type.

///
- UPDATE_ADVERTISER_NOT_ALLOWED = 2, - /// Proposal cannot be updated when its status is not DRAFT or it is - /// archived. + NIELSEN_SEGMENT = 151, + /// Breaks down reporting data by gender and age group, i.e., MALE_18_TO_20, + /// MALE_21_TO_24, MALE_25_TO_29, MALE_30_TO_35, MALE_35_TO_39, MALE_40_TO_44, + /// MALE_45_TO_49, MALE_50_TO_54, MALE_55_TO_64, MALE_65_PLUS, FEMALE_18_TO_20, + /// FEMALE_21_TO_24, FEMALE_25_TO_29, FEMALE_30_TO_34, FEMALE_35_TO_39, + /// FEMALE_40_TO_44, FEMALE_45_TO_49, FEMALE_50_TO_54, FEMALE_55_TO_64, + /// FEMALE_65_PLUS, and OTHER. /// - UPDATE_PROPOSAL_NOT_ALLOWED = 3, - /// Contacts are not supported for advertisers in a programmatic Proposal. + NIELSEN_DEMOGRAPHICS = 152, + /// Data restatement date of Nielsen Digital Ad Ratings data.

Corresponds to + /// "Nielsen Digital Ad Ratings restatement date" in the Ad Manager UI. Compatible + /// with the "Reach" report type.

///
- CONTACT_UNSUPPORTED_FOR_ADVERTISER = 20, - /// Contact associated with a proposal does not belong to the specific company. + NIELSEN_RESTATEMENT_DATE = 153, + /// Breaks down reporting data by device type, i.e., Computer, Mobile and other + /// types.

This dimension is supported only for Nielsen columns.

+ ///

Compatible with the "Reach" report type.

///
- INVALID_CONTACT = 4, - /// Contact associated with a proposal's advertiser or agency is duplicated. + NIELSEN_DEVICE_ID = 241, + /// Breaks down reporting data by device type, i.e., Computer, Mobile and other + /// types.

This dimension is supported only for Nielsen columns.

+ ///

Corresponds to "Nielsen Digital Ad Ratings device" in the Ad Manager UI. + /// Compatible with the "Reach" report type.

///
- DUPLICATED_CONTACT = 5, - /// A proposal cannot be created or updated because the company it is associated - /// with has Company#creditStatus that is not - /// or ON_HOLD. + NIELSEN_DEVICE_NAME = 242, + /// Breaks down reporting data by ProposalMarketplaceInfo#buyerAccountId. + ///

Compatible with any of the following report types: Historical, Reach.

///
- UNACCEPTABLE_COMPANY_CREDIT_STATUS = 6, - /// Advertiser or agency associated with the proposal has Company#creditStatus that is not . + PROGRAMMATIC_BUYER_ID = 167, + /// Breaks down reporting data by programmatic buyer name.

Corresponds to + /// "Programmatic buyer" in the Ad Manager UI. Compatible with the "Historical" + /// report type.

///
- COMPANY_CREDIT_STATUS_NOT_ACTIVE = 24, - /// Cannot have other agencies without a primary agency. + PROGRAMMATIC_BUYER_NAME = 168, + /// Breaks down reporting data by requested ad size(s). This can be a chain of sizes + /// or a single size.

Corresponds to "Requested ad sizes" in the Ad Manager UI. + /// Compatible with the "Historical" report type.

///
- PRIMARY_AGENCY_REQUIRED = 7, - /// Cannot have more than one primary agency. + REQUESTED_AD_SIZES = 169, + /// Breaks down reporting data by the creative size the ad was delivered to. + ///

Corresponds to "Creative size (delivered)" in the Ad Manager UI. Compatible + /// with any of the following report types: Historical, Ad speed.

///
- PRIMARY_AGENCY_NOT_UNIQUE = 8, - /// The Company association type is not supported for - /// programmatic proposals. + CREATIVE_SIZE_DELIVERED = 170, + /// Breaks down reporting data by the type of transaction that occurred in Ad + /// Exchange.

Compatible with the "Historical" report type.

///
- UNSUPPORTED_COMPANY_ASSOCIATION_TYPE_FOR_PROGRAMMATIC_PROPOSAL = 21, - /// Advertiser or agency associated with a proposal is duplicated. + PROGRAMMATIC_CHANNEL_ID = 222, + /// Breaks down reporting data by the type of transaction that occurred in Ad + /// Exchange.

Corresponds to "Programmatic channel" in the Ad Manager UI. + /// Compatible with any of the following report types: Historical, Reach.

///
- DUPLICATED_COMPANY_ASSOCIATION = 9, - /// Found duplicated primary or secondary sales person. + PROGRAMMATIC_CHANNEL_NAME = 223, + /// Breaks down data by detected yield partner name.

Corresponds to "Yield + /// partner (classified)" in the Ad Manager UI. Compatible with the "Historical" + /// report type.

///
- DUPLICATED_SALESPERSON = 10, - /// Found duplicated sales planner. + CLASSIFIED_YIELD_PARTNER_NAME = 250, + /// Breaks down Demand reporting data by date in the network time zone. Can be used + /// to filter by date using ISO 8601's format 'YYYY-MM-DD'".

Corresponds to + /// "Date" in the Ad Manager UI. Compatible with the "Ad Connector" report type.

///
- DUPLICATED_SALES_PLANNER = 11, - /// Found duplicated primary or secondary trafficker. + DP_DATE = 208, + /// Breaks down Demand reporting data by week of the year in the network time zone. + /// Cannot be used for filtering.

Corresponds to "Week" in the Ad Manager UI. + /// Compatible with the "Ad Connector" report type.

///
- DUPLICATED_TRAFFICKER = 12, - /// The proposal has no unarchived proposal line items. + DP_WEEK = 219, + /// Breaks down Demand reporting data by month and year in the network time zone. + /// Cannot be used to filter.

Corresponds to "Month and year" in the Ad Manager + /// UI. Compatible with the "Ad Connector" report type.

///
- HAS_NO_UNARCHIVED_PROPOSAL_LINEITEMS = 13, - /// One or more of the terms and conditions being added already exists on the - /// proposal. + DP_MONTH_YEAR = 220, + /// Breaks down Demand reporting data by country criteria ID. Can be used to filter + /// by country criteria ID.

Compatible with the "Ad Connector" report type.

///
- DUPLICATE_TERMS_AND_CONDITIONS = 19, - /// The currency code of the proposal is not supported by the current network. All - /// supported currencies can be found in the union of Network#currencyCode and Network#secondaryCurrencyCodes. + DP_COUNTRY_CRITERIA_ID = 209, + /// Breaks down Demand reporting data by country name. The country name and the + /// country criteria ID are automatically included as columns in the report. Can be + /// used to filter by country name using the US English name.

Corresponds to + /// "Country" in the Ad Manager UI. Compatible with the "Ad Connector" report + /// type.

///
- UNSUPPORTED_PROPOSAL_CURRENCY_CODE = 14, - /// The currency code of the proposal is not supported by the selected buyer. + DP_COUNTRY_NAME = 210, + /// Breaks down Demand reporting data by inventory type.

Corresponds to + /// "Inventory type" in the Ad Manager UI. Compatible with the "Ad Connector" report + /// type.

///
- UNSUPPORTED_BUYER_CURRENCY_CODE = 25, - /// The POC value of the proposal is invalid. + DP_INVENTORY_TYPE = 211, + /// Breaks down Demand reporting data by the creative size the ad was delivered to. + ///

Corresponds to "Creative size" in the Ad Manager UI. Compatible with the "Ad + /// Connector" report type.

///
- INVALID_POC = 15, - /// Currency cannot be updated once the proposal has been reserved. + DP_CREATIVE_SIZE = 212, + /// Breaks down Demand reporting data by the brand name that bids on ads. + ///

Corresponds to "Brand" in the Ad Manager UI. Compatible with the "Ad + /// Connector" report type.

///
- UPDATE_CURRENCY_NOT_ALLOWED = 16, - /// Time zone cannot be updated once the proposal has been sold. + DP_BRAND_NAME = 213, + /// Breaks down Demand reporting data by the advertiser name that bid on ads. + ///

Corresponds to "Advertiser" in the Ad Manager UI. Compatible with the "Ad + /// Connector" report type.

///
- UPDATE_TIME_ZONE_NOT_ALLOWED = 17, - /// The value returned if the actual value is not exposed by the requested API - /// version. + DP_ADVERTISER_NAME = 214, + /// Breaks down Demand reporting data by Ad Exchange ad network name. Example: + /// Google Adwords.

Corresponds to "Buyer network" in the Ad Manager UI. + /// Compatible with the "Ad Connector" report type.

///
- UNKNOWN = 18, - } - - - /// Lists all errors associated with performing actions on Proposal objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ProposalActionError : ApiError { - private ProposalActionErrorReason reasonField; - - private bool reasonFieldSpecified; - - /// The error reason represented by an enum. + DP_ADX_BUYER_NETWORK_NAME = 215, + /// Breaks down reporting data by device name.

Corresponds to "Device" in the Ad + /// Manager UI. Compatible with the "Ad Connector" report type.

///
- [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public ProposalActionErrorReason reason { - get { - return this.reasonField; - } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { - return this.reasonFieldSpecified; - } - set { - this.reasonFieldSpecified = value; - } - } - } - - - /// The reasons for the target error. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ProposalActionError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum ProposalActionErrorReason { - /// The operation is not applicable to the current state. + DP_MOBILE_DEVICE_NAME = 216, + /// Breaks down reporting data by the category of device (smartphone, feature phone, + /// tablet, or desktop).

Corresponds to "Device category" in the Ad Manager UI. + /// Compatible with the "Ad Connector" report type.

///
- NOT_APPLICABLE = 0, - /// The operation cannot be applied because the proposal is archived. + DP_DEVICE_CATEGORY_NAME = 217, + /// Breaks down reporting data by the tag id provided by the publisher in the ad + /// request.

Corresponds to "Tag ID" in the Ad Manager UI. Compatible with the + /// "Ad Connector" report type.

///
- IS_ARCHIVED = 1, - /// The value returned if the actual value is not exposed by the requested API - /// version. + DP_TAG_ID = 221, + /// Breaks down reporting data by the deal id provided by the publisher in the ad + /// request.

Corresponds to "Deal IDs" in the Ad Manager UI. Compatible with the + /// "Ad Connector" report type.

///
- UNKNOWN = 2, - } - - - /// Lists all errors associated with ExchangeRate - /// objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ExchangeRateError : ApiError { - private ExchangeRateErrorReason reasonField; - - private bool reasonFieldSpecified; - - /// The error reason represented by an enum. + DP_DEAL_ID = 224, + /// Breaks down reporting data by mobile app ID.

Corresponds to "App ID" in the + /// Ad Manager UI. Compatible with the "Ad Connector" report type.

///
- [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public ExchangeRateErrorReason reason { - get { - return this.reasonField; - } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { - return this.reasonFieldSpecified; - } - set { - this.reasonFieldSpecified = value; - } - } - } - - - /// The reasons for the target error. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ExchangeRateError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum ExchangeRateErrorReason { - /// The currency code is invalid and does not follow ISO 4217. + DP_APP_ID = 225, + /// Breaks down reporting data by the CustomTargetingKeys marked as dimensions in + /// inventory key-values setup. To use this dimension, a list of custom targeting + /// key IDs must be specified in ReportQuery#customDimensionKeyIds. /// - INVALID_CURRENCY_CODE = 0, - /// The currency code is not supported. + CUSTOM_DIMENSION = 226, + /// Breaks down reporting data by demand channels.

Compatible with any of the + /// following report types: Historical, Reach, Ad speed.

///
- UNSUPPORTED_CURRENCY_CODE = 1, - /// The currency code already exists. When creating an exchange rate, its currency - /// should not be associated with any existing exchange rate. When creating a list - /// of exchange rates, there should not be two exchange rates associated with same - /// currency. + DEMAND_CHANNEL_ID = 202, + /// Breaks down reporting data by demand channel name.

Corresponds to "Demand + /// channel" in the Ad Manager UI. Compatible with any of the following report + /// types: Historical, Reach, Ad speed.

///
- CURRENCY_CODE_ALREADY_EXISTS = 2, - /// The exchange rate value is invalid. When the ExchangeRate#refreshRate is ExchangeRateRefreshRate#FIXED, the ExchangeRate#exchangeRate should be larger - /// than 0. Otherwise it is invalid. + DEMAND_CHANNEL_NAME = 203, + /// Breaks down reporting data by top private domain.

Corresponds to "Domain" in + /// the Ad Manager UI. Compatible with the "Historical" report type.

///
- INVALID_EXCHANGE_RATE = 3, - /// The exchange rate value is not found. When the ExchangeRate#refreshRate is ExchangeRateRefreshRate#DAILY or ExchangeRateRefreshRate#MONTHLY, the - /// ExchangeRate#exchangeRate should be - /// assigned by Google. It is not found if Google cannot find such an exchange rate. + DOMAIN = 251, + /// Breaks down reporting data by serving restriction id.

Compatible with the + /// "Historical" report type.

///
- EXCHANGE_RATE_NOT_FOUND = 4, - /// The value returned if the actual value is not exposed by the requested API - /// version. + SERVING_RESTRICTION_ID = 255, + /// Breaks down reporting data by serving restriction name.

Corresponds to + /// "Serving restriction" in the Ad Manager UI. Compatible with the "Historical" + /// report type.

///
- UNKNOWN = 5, - } - - - /// Errors associated with creating or updating programmatic proposals. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class DealError : ApiError { - private DealErrorReason reasonField; - - private bool reasonFieldSpecified; - - /// The error reason represented by an enum. + SERVING_RESTRICTION_NAME = 256, + /// Breaks down reporting data by unified pricing rule id.

Compatible with the + /// "Historical" report type.

///
- [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public DealErrorReason reason { - get { - return this.reasonField; - } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { - return this.reasonFieldSpecified; - } - set { - this.reasonFieldSpecified = value; - } - } - } - - - /// The reasons for the target error. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "DealError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum DealErrorReason { - /// Cannot add new proposal line items to a Proposal when Proposal#isSold - /// is true. + UNIFIED_PRICING_RULE_ID = 244, + /// Breaks down reporting data by unified pricing rule name.

Corresponds to + /// "Unified pricing rule" in the Ad Manager UI. Compatible with the "Historical" + /// report type.

///
- CANNOT_ADD_LINE_ITEM_WHEN_SOLD = 0, - /// Cannot archive proposal line items from a Proposal when Proposal#isSold - /// is true. + UNIFIED_PRICING_RULE_NAME = 245, + /// Breaks down reporting data by first price pricing rule id.

Compatible with + /// the "Historical" report type.

///
- CANNOT_ARCHIVE_LINE_ITEM_WHEN_SOLD = 1, - /// Cannot archive a Proposal when Proposal#isSold is true. + FIRST_LOOK_PRICING_RULE_ID = 268, + /// Breaks down reporting data by first price pricing rule name.

Corresponds to + /// "First look pricing rule" in the Ad Manager UI. Compatible with the "Historical" + /// report type.

///
- CANNOT_ARCHIVE_PROPOSAL_WHEN_SOLD = 2, - /// Cannot change a field that requires buyer approval during the current operation. + FIRST_LOOK_PRICING_RULE_NAME = 269, + /// Breaks down reporting data by the range within which the bid falls, divided into + /// $0.10 buckets.

Corresponds to "Bid range" in the Ad Manager UI. Compatible + /// with the "Historical" report type.

///
- CANNOT_CHANGE_FIELD_REQUIRING_BUYER_APPROVAL = 3, - /// Cannot find seller ID for the Proposal. + BID_RANGE = 300, + /// Breaks down reporting data by the ID of the reason the bid lost or did not + /// participate in the auction.

Compatible with the "Historical" report type.

///
- CANNOT_GET_SELLER_ID = 4, - /// Proposal must be marked as editable by EditProposalsForNegotiation before - /// performing requested action. + BID_REJECTION_REASON = 301, + /// Breaks down reporting data by the reason the bid lost or did not participate in + /// the auction.

Corresponds to "Bid rejection reason" in the Ad Manager UI. + /// Compatible with the "Historical" report type.

///
- CAN_ONLY_EXECUTE_IF_LOCAL_EDITS = 14, - /// Proposal contains no proposal - /// line items. + BID_REJECTION_REASON_NAME = 302, + /// Breaks down reporting data by the domain of the ad technology provider (ATP) + /// associated with the bid.

Corresponds to "Ad technology provider domain" in + /// the Ad Manager UI. Compatible with the "Historical" report type.

///
- MISSING_PROPOSAL_LINE_ITEMS = 6, - /// No environment set for Proposal. + AD_TECHNOLOGY_PROVIDER_DOMAIN = 303, + /// Breaks down reporting data by programmatic deal ID.

Corresponds to + /// "Programmatic deal ID" in the Ad Manager UI. Compatible with the "Historical" + /// report type.

///
- MISSING_ENVIRONMENT = 7, - /// The Ad Exchange property is not associated with the current network. + PROGRAMMATIC_DEAL_ID = 270, + /// Breaks down reporting data by programmatic deal name.

Corresponds to + /// "Programmatic deal name" in the Ad Manager UI. Compatible with the "Historical" + /// report type.

///
- MISSING_AD_EXCHANGE_PROPERTY = 8, - /// Cannot find Proposal in Marketplace. + PROGRAMMATIC_DEAL_NAME = 271, + /// Breaks down reporting data by the ID of the ad technology provider (ATP) + /// associated with the bid.

Corresponds to "Ad technology provider ID" in the Ad + /// Manager UI. Compatible with the "Historical" report type.

///
- CANNOT_FIND_PROPOSAL_IN_MARKETPLACE = 9, - /// No Product exists for buyer-initiated programmatic proposals. + AD_TECHNOLOGY_PROVIDER_ID = 304, + /// Breaks down reporting data by the ad technology provider (ATP) associated with + /// the bid.

Corresponds to "Ad technology provider" in the Ad Manager UI. + /// Compatible with the "Historical" report type.

///
- CANNOT_GET_PRODUCT = 10, - /// A new version of the Proposal was sent from buyer, cannot - /// execute the requested action before performing DiscardLocalVersionEdits. + AD_TECHNOLOGY_PROVIDER_NAME = 305, + /// Breaks down reporting data by the ID of the ad technology provider as it appears + /// on the Global Vendor List (GVL).

Corresponds to "TCF vendor ID" in the Ad + /// Manager UI. Compatible with the "Historical" report type.

///
- NEW_VERSION_FROM_BUYER = 11, - /// A new version of the Proposal exists in Marketplace, - /// cannot execute the requested action before the proposal is synced to newest - /// revision. + TCF_VENDOR_ID = 306, + /// Breaks down reporting data by the name of the ad technology provider as it + /// appears on the Global Vendor List (GVL).

Corresponds to "TCF vendor" in the + /// Ad Manager UI. Compatible with the "Historical" report type.

///
- PROPOSAL_OUT_OF_SYNC_WITH_MARKETPLACE = 15, - /// No Proposal changes were found. + TCF_VENDOR_NAME = 307, + /// Breaks down reporting data by site.

Corresponds to "Site" in the Ad Manager + /// UI. Compatible with the "Historical" report type.

///
- NO_PROPOSAL_CHANGES_FOUND = 12, - /// The value returned if the actual value is not exposed by the requested API - /// version. + SITE_NAME = 272, + /// Breaks down reporting data by channels.

Corresponds to "Channel" in the Ad + /// Manager UI. Compatible with the "Historical" report type.

///
- UNKNOWN = 13, - } - - - /// Lists all errors associated with the billing settings of a proposal or proposal - /// line item. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class BillingError : ApiError { - private BillingErrorReason reasonField; - - private bool reasonFieldSpecified; - - /// The error reason represented by an enum. + CHANNEL_NAME = 273, + /// Breaks down reporting data by URL ID.

Compatible with the "Historical" report + /// type.

///
- [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public BillingErrorReason reason { - get { - return this.reasonField; - } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { - return this.reasonFieldSpecified; - } - set { - this.reasonFieldSpecified = value; - } - } - } - - - /// The reasons for the target error. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "BillingError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum BillingErrorReason { - /// Found unsupported billing schedule. + URL_ID = 274, + /// Breaks down reporting data by URL name.

Corresponds to "URL" in the Ad + /// Manager UI. Compatible with the "Historical" report type.

///
- UNSUPPORTED_BILLING_SCHEDULE = 0, - /// Found unsupported billing cap. + URL_NAME = 275, + /// Breaks down reporting data by video ad duration.

Corresponds to "Video ad + /// duration" in the Ad Manager UI. Compatible with the "Historical" report + /// type.

///
- UNSUPPORTED_BILLING_CAP = 1, - /// Billing source is missing when either billing scheule or billing cap is - /// provided. + VIDEO_AD_DURATION = 276, + /// Breaks down reporting data by video ad type Id.

Compatible with the + /// "Historical" report type.

///
- MISSING_BILLING_SOURCE = 2, - /// Billing schedule is missing when the provided billing source is CONSTRACTED. + VIDEO_AD_TYPE_ID = 277, + /// Breaks down reporting data by video ad type.

Corresponds to "Video ad type" + /// in the Ad Manager UI. Compatible with the "Historical" report type.

///
- MISSING_BILLING_SCHEDULE = 3, - /// Billing cap is missing when the provided billing source is not CONSTRACTED. + VIDEO_AD_TYPE_NAME = 278, + /// Breaks down reporting data by Ad Exchange product code.

Compatible with the + /// "Historical" report type.

///
- MISSING_BILLING_CAP = 4, - /// The billing source is invalid for offline proposal line item. + AD_EXCHANGE_PRODUCT_CODE = 177, + /// Breaks down reporting data by Ad Exchange product.

Corresponds to "Ad + /// Exchange product" in the Ad Manager UI. Compatible with the "Historical" report + /// type.

///
- INVALID_BILLING_SOURCE_FOR_OFFLINE = 5, - /// Billing settings cannot be updated once the proposal has been approved. + AD_EXCHANGE_PRODUCT_NAME = 100, + /// Breaks down reporting data by Dynamic allocation ID.

Compatible with the + /// "Historical" report type.

///
- UPDATE_BILLING_NOT_ALLOWED = 6, - /// Billing base is missing when the provided billing source is CONTRACTED. + DYNAMIC_ALLOCATION_ID = 279, + /// Breaks down reporting data by Dynamic allocation.

Corresponds to "Dynamic + /// allocation" in the Ad Manager UI. Compatible with the "Historical" report + /// type.

///
- MISSING_BILLING_BASE = 7, - /// The billing base is invalid for the provided billing source. + DYNAMIC_ALLOCATION_NAME = 280, + /// Breaks down reporting data by Ad type ID.

Compatible with the "Historical" + /// report type.

///
- INVALID_BILLING_BASE = 8, - /// The value returned if the actual value is not exposed by the requested API - /// version. + AD_TYPE_ID = 281, + /// Breaks down reporting data by Ad type.

Corresponds to "Ad type" in the Ad + /// Manager UI. Compatible with the "Historical" report type.

///
- UNKNOWN = 9, - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", ConfigurationName = "Google.Api.Ads.AdManager.v202311.ProposalServiceInterface")] - public interface ProposalServiceInterface - { - // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Wrappers.ProposalService.createProposalsResponse createProposals(Wrappers.ProposalService.createProposalsRequest request); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task createProposalsAsync(Wrappers.ProposalService.createProposalsRequest request); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v202311.MarketplaceCommentPage getMarketplaceCommentsByStatement(Google.Api.Ads.AdManager.v202311.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getMarketplaceCommentsByStatementAsync(Google.Api.Ads.AdManager.v202311.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v202311.ProposalPage getProposalsByStatement(Google.Api.Ads.AdManager.v202311.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getProposalsByStatementAsync(Google.Api.Ads.AdManager.v202311.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v202311.UpdateResult performProposalAction(Google.Api.Ads.AdManager.v202311.ProposalAction proposalAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task performProposalActionAsync(Google.Api.Ads.AdManager.v202311.ProposalAction proposalAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement); - - // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Wrappers.ProposalService.updateProposalsResponse updateProposals(Wrappers.ProposalService.updateProposalsRequest request); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task updateProposalsAsync(Wrappers.ProposalService.updateProposalsRequest request); - } - - - /// Captures a page of MarketplaceComment objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class MarketplaceCommentPage { - private int startIndexField; - - private bool startIndexFieldSpecified; - - private MarketplaceComment[] resultsField; - - /// The absolute index in the total result set on which this page begins. + AD_TYPE_NAME = 282, + /// Breaks down reporting data by Ad location ID.

Compatible with the + /// "Historical" report type.

///
- [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public int startIndex { - get { - return this.startIndexField; - } - set { - this.startIndexField = value; - this.startIndexSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool startIndexSpecified { - get { - return this.startIndexFieldSpecified; - } - set { - this.startIndexFieldSpecified = value; - } - } - - /// The collection of results contained within this page. + AD_LOCATION_ID = 283, + /// Breaks down reporting data by Ad location.

Corresponds to "Ad location" in + /// the Ad Manager UI. Compatible with the "Historical" report type.

///
- [System.Xml.Serialization.XmlElementAttribute("results", Order = 1)] - public MarketplaceComment[] results { - get { - return this.resultsField; - } - set { - this.resultsField = value; - } - } - } - - - /// A comment associated with a programmatic Proposal that - /// has been sent to Marketplace. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class MarketplaceComment { - private long proposalIdField; - - private bool proposalIdFieldSpecified; - - private string commentField; - - private DateTime creationTimeField; - - private bool createdBySellerField; - - private bool createdBySellerFieldSpecified; - - /// The unique ID of the Proposal the comment belongs to. + AD_LOCATION_NAME = 284, + /// Breaks down reporting data by Targeting type code.

Compatible with the + /// "Historical" report type.

///
- [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public long proposalId { - get { - return this.proposalIdField; - } - set { - this.proposalIdField = value; - this.proposalIdSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool proposalIdSpecified { - get { - return this.proposalIdFieldSpecified; - } - set { - this.proposalIdFieldSpecified = value; - } - } - - /// The comment made on the Proposal. + TARGETING_TYPE_CODE = 285, + /// Breaks down reporting data by Targeting type.

Corresponds to "Targeting type" + /// in the Ad Manager UI. Compatible with the "Historical" report type.

///
- [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public string comment { - get { - return this.commentField; - } - set { - this.commentField = value; - } - } - - /// The creation DateTime of this . + TARGETING_TYPE_NAME = 286, + /// Breaks down reporting data by Branding type code.

Compatible with the + /// "Historical" report type.

///
- [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public DateTime creationTime { - get { - return this.creationTimeField; - } - set { - this.creationTimeField = value; - } - } - - /// Indicates whether the MarketplaceComment was created by seller. + BRANDING_TYPE_CODE = 287, + /// Breaks down reporting data by Branding type.

Corresponds to "Branding type" + /// in the Ad Manager UI. Compatible with the "Historical" report type.

///
- [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public bool createdBySeller { - get { - return this.createdBySellerField; - } - set { - this.createdBySellerField = value; - this.createdBySellerSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool createdBySellerSpecified { - get { - return this.createdBySellerFieldSpecified; - } - set { - this.createdBySellerFieldSpecified = value; - } - } - } - - - /// Captures a page of Proposal objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ProposalPage { - private int totalResultSetSizeField; - - private bool totalResultSetSizeFieldSpecified; - - private int startIndexField; - - private bool startIndexFieldSpecified; - - private Proposal[] resultsField; - - /// The size of the total result set to which this page belongs. + BRANDING_TYPE_NAME = 288, + /// Breaks down reporting data by Bandwidth Id.

Compatible with the "Historical" + /// report type.

///
- [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public int totalResultSetSize { - get { - return this.totalResultSetSizeField; - } - set { - this.totalResultSetSizeField = value; - this.totalResultSetSizeSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool totalResultSetSizeSpecified { - get { - return this.totalResultSetSizeFieldSpecified; - } - set { - this.totalResultSetSizeFieldSpecified = value; - } - } - - /// The absolute index in the total result set on which this page begins. + BANDWIDTH_ID = 293, + /// Breaks down reporting data by Bandwidth name.

Corresponds to "Bandwidth" in + /// the Ad Manager UI. Compatible with the "Historical" report type.

///
- [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public int startIndex { - get { - return this.startIndexField; - } - set { - this.startIndexField = value; - this.startIndexSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool startIndexSpecified { - get { - return this.startIndexFieldSpecified; - } - set { - this.startIndexFieldSpecified = value; - } - } - - /// The collection of proposals contained within this page. + BANDWIDTH_NAME = 294, + /// Breaks down reporting data by Carrier Id.

Compatible with the "Historical" + /// report type.

///
- [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] - public Proposal[] results { - get { - return this.resultsField; - } - set { - this.resultsField = value; - } - } + CARRIER_ID = 295, + /// Breaks down reporting data by Carrier name.

Corresponds to "Carrier" in the + /// Ad Manager UI. Compatible with the "Historical" report type.

+ ///
+ CARRIER_NAME = 296, } - /// Represents the actions that can be performed on Proposal - /// objects. + /// A view for an ad unit report. /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(UpdateOrderWithSellerData))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(UnarchiveProposals))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(TerminateNegotiations))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ResumeProposals))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ReserveProposals))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(RequestBuyerReview))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(RequestBuyerAcceptance))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(PauseProposals))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(EditProposalsForNegotiation))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(DiscardLocalVersionEdits))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ArchiveProposals))] [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public abstract partial class ProposalAction { + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ReportQuery.AdUnitView", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum ReportQueryAdUnitView { + /// Only the top level ad units. Metrics include events for their descendants that + /// are not filtered out. + /// + TOP_LEVEL = 0, + /// All the ad units. Metrics do not include events for the descendants. + /// + FLAT = 1, + /// Use the ad unit hierarchy. There will be as many ad unit columns as levels of ad + /// units in the generated report:
  • The column Dimension#AD_UNIT_NAME is replaced with + /// columns "Ad unit 1", "Ad unit 2", ... "Ad unit n". If level is not applicable to + /// a row, "N/A" is returned as the value.
  • The column Dimension#AD_UNIT_ID is replaced with columns + /// "Ad unit ID 1", "Ad unit ID 2", ... "Ad unit ID n". If level is not applicable + /// to a row, "N/A" is returned as the value.

Metrics do not include + /// events for the descendants.

+ ///
+ HIERARCHICAL = 2, } - /// The action to update a finalized Marketplace Order with the - /// seller's data. + /// Column provides all the trafficking statistics and revenue + /// information available for the chosen Dimension objects. + ///

Columns with INVENTORY_LEVEL should not be used with dimensions + /// relating to line items, orders, companies and creatives, such as Dimension#LINE_ITEM_NAME. Columns with + /// LINE_ITEM_LEVEL can only be used if you have line item-level + /// dynamic allocation enabled on your network.

///
[System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class UpdateOrderWithSellerData : ProposalAction { - } - - - /// The action used for unarchiving Proposal objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class UnarchiveProposals : ProposalAction { - } - - - /// The action for marking all negotiations on the Proposal - /// as terminated in Marketplace. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class TerminateNegotiations : ProposalAction { - } - - - /// The action used for resuming programmatic Proposal - /// objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ResumeProposals : ProposalAction { - } - - - /// The action to reserve inventory for Proposal objects. It - /// does not allow overbooking unless #allowOverbook is - /// set to true. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ReserveProposals : ProposalAction { - private bool allowOverbookField; - - private bool allowOverbookFieldSpecified; - - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public bool allowOverbook { - get { - return this.allowOverbookField; - } - set { - this.allowOverbookField = value; - this.allowOverbookSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool allowOverbookSpecified { - get { - return this.allowOverbookFieldSpecified; - } - set { - this.allowOverbookFieldSpecified = value; - } - } - } - - - /// The action used to request buyer review for the Proposal. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class RequestBuyerReview : ProposalAction { - } - - - /// The action used to request acceptance from the buyer for the Proposal through Marketplace. This action does check - /// forecasting unless #allowOverbook is set to - /// true. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class RequestBuyerAcceptance : ProposalAction { - private bool allowOverbookField; - - private bool allowOverbookFieldSpecified; - - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public bool allowOverbook { - get { - return this.allowOverbookField; - } - set { - this.allowOverbookField = value; - this.allowOverbookSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool allowOverbookSpecified { - get { - return this.allowOverbookFieldSpecified; - } - set { - this.allowOverbookFieldSpecified = value; - } - } - } - - - /// The action used for pausing programmatic Proposal - /// objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class PauseProposals : ProposalAction { - private string reasonField; - - /// Reason to describe why the Proposal is being paused. + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum Column { + /// The number of impressions delivered by the ad server.

Corresponds to "Ad + /// server impressions" in the Ad Manager UI. Compatible with the "Historical" + /// report type.

///
- [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public string reason { - get { - return this.reasonField; - } - set { - this.reasonField = value; - } - } - } - - - /// Opens the fields of a Proposal for edit.

This proposal - /// will not receive updates from Marketplace while it's open for edit. If the buyer - /// updates the proposal while it is open for local editing, Google will set ProposalMarketplaceInfo#isNewVersionFromBuyer to . You - /// will then need to call DiscardProposalDrafts to revert your edits - /// to get the buyer's latest changes, and then perform this action to start making - /// your edits again.

- ///
- [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class EditProposalsForNegotiation : ProposalAction { - } - - - /// The action for reverting the local Proposal modifications - /// to reflect the latest terms and private data in Marketplace. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class DiscardLocalVersionEdits : ProposalAction { - } - - - /// The action used for archiving Proposal objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ArchiveProposals : ProposalAction { - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public interface ProposalServiceInterfaceChannel : Google.Api.Ads.AdManager.v202311.ProposalServiceInterface, System.ServiceModel.IClientChannel - { - } - - - /// Provides methods for adding, updating and retrieving Proposal objects. - /// - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public partial class ProposalService : AdManagerSoapClient, IProposalService { - /// Creates a new instance of the class. + AD_SERVER_IMPRESSIONS = 0, + /// The number of begin-to-render impressions delivered by the ad server. + ///

Corresponds to "Ad server begin to render impressions" in the Ad Manager UI. + /// Compatible with the "Historical" report type.

///
- public ProposalService() { - } - - /// Creates a new instance of the class. + AD_SERVER_BEGIN_TO_RENDER_IMPRESSIONS = 619, + /// The number of impressions delivered by the ad server by explicit custom criteria + /// targeting.

Corresponds to "Ad server targeted impressions" in the Ad Manager + /// UI. Compatible with the "Historical" report type.

///
- public ProposalService(string endpointConfigurationName) - : base(endpointConfigurationName) { - } - - /// Creates a new instance of the class. + AD_SERVER_TARGETED_IMPRESSIONS = 1, + /// The number of clicks delivered by the ad server.

Corresponds to "Ad server + /// clicks" in the Ad Manager UI. Compatible with the "Historical" report type.

///
- public ProposalService(string endpointConfigurationName, string remoteAddress) - : base(endpointConfigurationName, remoteAddress) { - } - - /// Creates a new instance of the class. + AD_SERVER_CLICKS = 2, + /// The number of clicks delivered by the ad server by explicit custom criteria + /// targeting.

Corresponds to "Ad server targeted clicks" in the Ad Manager UI. + /// Compatible with the "Historical" report type.

///
- public ProposalService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) - : base(endpointConfigurationName, remoteAddress) { - } - - /// Creates a new instance of the class. + AD_SERVER_TARGETED_CLICKS = 3, + /// The CTR for an ad delivered by the ad server.

Corresponds to "Ad server CTR" + /// in the Ad Manager UI. Compatible with the "Historical" report type.

///
- public ProposalService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) - : base(binding, remoteAddress) { - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.ProposalService.createProposalsResponse Google.Api.Ads.AdManager.v202311.ProposalServiceInterface.createProposals(Wrappers.ProposalService.createProposalsRequest request) { - return base.Channel.createProposals(request); - } - - /// Creates new Proposal objects.

For each proposal, the - /// following fields are required:

+ AD_SERVER_CTR = 4, + /// The CPM and CPC revenue earned, calculated in publisher currency, for the ads + /// delivered by the ad server.

Corresponds to "Ad server CPM and CPC revenue" in + /// the Ad Manager UI. Compatible with the "Historical" report type.

///
- public virtual Google.Api.Ads.AdManager.v202311.Proposal[] createProposals(Google.Api.Ads.AdManager.v202311.Proposal[] proposals) { - Wrappers.ProposalService.createProposalsRequest inValue = new Wrappers.ProposalService.createProposalsRequest(); - inValue.proposals = proposals; - Wrappers.ProposalService.createProposalsResponse retVal = ((Google.Api.Ads.AdManager.v202311.ProposalServiceInterface)(this)).createProposals(inValue); - return retVal.rval; - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202311.ProposalServiceInterface.createProposalsAsync(Wrappers.ProposalService.createProposalsRequest request) { - return base.Channel.createProposalsAsync(request); - } - - public virtual System.Threading.Tasks.Task createProposalsAsync(Google.Api.Ads.AdManager.v202311.Proposal[] proposals) { - Wrappers.ProposalService.createProposalsRequest inValue = new Wrappers.ProposalService.createProposalsRequest(); - inValue.proposals = proposals; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202311.ProposalServiceInterface)(this)).createProposalsAsync(inValue)).Result.rval); - } - - /// Gets a MarketplaceCommentPage of MarketplaceComment objects that satisfy the given - /// Statement#query. This method only returns comments - /// already sent to Marketplace, local draft ProposalMarketplaceInfo#marketplaceComment - /// are not included. The following fields are supported for filtering: - /// - /// - ///
PQL Property Object Property
proposalId MarketplaceComment#proposalId
The query must specify a proposalId, and only - /// supports a subset of PQL syntax:
[WHERE <condition> {AND - /// <condition> ...}]
[ORDER BY <property> [ASC | - /// DESC]]
[LIMIT {[<offset>,] <count>} | - /// {<count> OFFSET <offset>}]
- ///

<condition>
#x160;#x160;#x160;#x160; := - /// <property> = <value>
<condition> := - /// <property> IN <list>
Only supports ORDER - /// BY MarketplaceComment#creationTime.

+ AD_SERVER_CPM_AND_CPC_REVENUE = 5, + /// The CPM and CPC revenue earned, calculated in publisher currency, for the ads + /// delivered by the ad server. This includes pre-rev-share revenue for Programmatic + /// traffic. This is a temporary metric to help with the transition from gross to + /// net revenue reporting.

Corresponds to "Ad server CPM and CPC revenue (gross)" + /// in the Ad Manager UI. Compatible with the "Historical" report type.

///
- public virtual Google.Api.Ads.AdManager.v202311.MarketplaceCommentPage getMarketplaceCommentsByStatement(Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.getMarketplaceCommentsByStatement(filterStatement); - } - - public virtual System.Threading.Tasks.Task getMarketplaceCommentsByStatementAsync(Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.getMarketplaceCommentsByStatementAsync(filterStatement); - } - - /// Gets a ProposalPage of Proposal objects that satisfy the given Statement#query. The following fields are supported for filtering: - /// - /// - /// - /// - /// - /// - /// - /// - /// - ///
PQL Property Object - /// Property
id Proposal#id
dfpOrderId Proposal#dfpOrderId
name Proposal#name
status Proposal#status
isArchived Proposal#isArchived
approvalStatus
Only applicable for - /// proposals using sales management
Proposal#approvalStatus
lastModifiedDateTime Proposal#lastModifiedDateTime
isProgrammatic Proposal#isProgrammatic
negotiationStatus
Only applicable for - /// programmatic proposals
ProposalMarketplaceInfo#negotiationStatus
+ AD_SERVER_CPM_AND_CPC_REVENUE_GROSS = 523, + /// The CPD revenue earned, calculated in publisher currency, for the ads delivered + /// by the ad server.

Corresponds to "Ad server CPD revenue" in the Ad Manager + /// UI. Compatible with the "Historical" report type.

///
- public virtual Google.Api.Ads.AdManager.v202311.ProposalPage getProposalsByStatement(Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.getProposalsByStatement(filterStatement); - } - - public virtual System.Threading.Tasks.Task getProposalsByStatementAsync(Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.getProposalsByStatementAsync(filterStatement); - } - - /// Performs actions on Proposal objects that match the given - /// Statement#query.

The following fields are also - /// required when submitting proposals for approval:

+ AD_SERVER_CPD_REVENUE = 6, + /// The CPM, CPC and CPD revenue earned, calculated in publisher currency, for the + /// ads delivered by the ad server.

Corresponds to "Ad server CPM, CPC, CPD, and + /// vCPM revenue" in the Ad Manager UI. Compatible with the "Historical" report + /// type.

///
- public virtual Google.Api.Ads.AdManager.v202311.UpdateResult performProposalAction(Google.Api.Ads.AdManager.v202311.ProposalAction proposalAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.performProposalAction(proposalAction, filterStatement); - } - - public virtual System.Threading.Tasks.Task performProposalActionAsync(Google.Api.Ads.AdManager.v202311.ProposalAction proposalAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.performProposalActionAsync(proposalAction, filterStatement); - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.ProposalService.updateProposalsResponse Google.Api.Ads.AdManager.v202311.ProposalServiceInterface.updateProposals(Wrappers.ProposalService.updateProposalsRequest request) { - return base.Channel.updateProposals(request); - } - - /// Updates the specified Proposal objects. + AD_SERVER_ALL_REVENUE = 8, + /// The CPM, CPC and CPD gross revenue earned, calculated in publisher currency, for + /// the ads delivered by the ad server. This includes pre-rev-share revenue for + /// Programmatic traffic. This is a temporary metric to help with the transition + /// from gross to net revenue reporting.

Corresponds to "Ad server CPM, CPC, CPD, + /// and vCPM revenue (gross)" in the Ad Manager UI. Compatible with the "Historical" + /// report type.

///
- public virtual Google.Api.Ads.AdManager.v202311.Proposal[] updateProposals(Google.Api.Ads.AdManager.v202311.Proposal[] proposals) { - Wrappers.ProposalService.updateProposalsRequest inValue = new Wrappers.ProposalService.updateProposalsRequest(); - inValue.proposals = proposals; - Wrappers.ProposalService.updateProposalsResponse retVal = ((Google.Api.Ads.AdManager.v202311.ProposalServiceInterface)(this)).updateProposals(inValue); - return retVal.rval; - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202311.ProposalServiceInterface.updateProposalsAsync(Wrappers.ProposalService.updateProposalsRequest request) { - return base.Channel.updateProposalsAsync(request); - } - - public virtual System.Threading.Tasks.Task updateProposalsAsync(Google.Api.Ads.AdManager.v202311.Proposal[] proposals) { - Wrappers.ProposalService.updateProposalsRequest inValue = new Wrappers.ProposalService.updateProposalsRequest(); - inValue.proposals = proposals; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202311.ProposalServiceInterface)(this)).updateProposalsAsync(inValue)).Result.rval); - } - } - namespace Wrappers.ProposalLineItemService - { - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "createMakegoods", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class createMakegoodsRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("makegoodInfos")] - public Google.Api.Ads.AdManager.v202311.ProposalLineItemMakegoodInfo[] makegoodInfos; - - /// Creates a new instance of the - /// class. - public createMakegoodsRequest() { - } - - /// Creates a new instance of the - /// class. - public createMakegoodsRequest(Google.Api.Ads.AdManager.v202311.ProposalLineItemMakegoodInfo[] makegoodInfos) { - this.makegoodInfos = makegoodInfos; - } - } - - - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "createMakegoodsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class createMakegoodsResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v202311.ProposalLineItem[] rval; - - /// Creates a new instance of the - /// class. - public createMakegoodsResponse() { - } - - /// Creates a new instance of the - /// class. - public createMakegoodsResponse(Google.Api.Ads.AdManager.v202311.ProposalLineItem[] rval) { - this.rval = rval; - } - } - - - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "createProposalLineItems", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class createProposalLineItemsRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("proposalLineItems")] - public Google.Api.Ads.AdManager.v202311.ProposalLineItem[] proposalLineItems; - - /// Creates a new instance of the class. - public createProposalLineItemsRequest() { - } - - /// Creates a new instance of the class. - public createProposalLineItemsRequest(Google.Api.Ads.AdManager.v202311.ProposalLineItem[] proposalLineItems) { - this.proposalLineItems = proposalLineItems; - } - } - - - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "createProposalLineItemsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class createProposalLineItemsResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v202311.ProposalLineItem[] rval; - - /// Creates a new instance of the class. - public createProposalLineItemsResponse() { - } - - /// Creates a new instance of the class. - public createProposalLineItemsResponse(Google.Api.Ads.AdManager.v202311.ProposalLineItem[] rval) { - this.rval = rval; - } - } - - - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "updateProposalLineItems", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class updateProposalLineItemsRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("proposalLineItems")] - public Google.Api.Ads.AdManager.v202311.ProposalLineItem[] proposalLineItems; - - /// Creates a new instance of the class. - public updateProposalLineItemsRequest() { - } - - /// Creates a new instance of the class. - public updateProposalLineItemsRequest(Google.Api.Ads.AdManager.v202311.ProposalLineItem[] proposalLineItems) { - this.proposalLineItems = proposalLineItems; - } - } - - - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "updateProposalLineItemsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class updateProposalLineItemsResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v202311.ProposalLineItem[] rval; - - /// Creates a new instance of the class. - public updateProposalLineItemsResponse() { - } - - /// Creates a new instance of the class. - public updateProposalLineItemsResponse(Google.Api.Ads.AdManager.v202311.ProposalLineItem[] rval) { - this.rval = rval; - } - } - } - /// Lists all errors for executing operations on proposal line items. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ProposalLineItemActionError : ApiError { - private ProposalLineItemActionErrorReason reasonField; - - private bool reasonFieldSpecified; - - /// The error reason represented by an enum. + AD_SERVER_ALL_REVENUE_GROSS = 524, + /// The average estimated cost-per-thousand-impressions earned from the CPM and CPC + /// ads delivered by the ad server.

Corresponds to "Ad server average eCPM" in + /// the Ad Manager UI. Compatible with the "Historical" report type.

///
- [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public ProposalLineItemActionErrorReason reason { - get { - return this.reasonField; - } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { - return this.reasonFieldSpecified; - } - set { - this.reasonFieldSpecified = value; - } - } - } - - - /// The reasons for the target error. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ProposalLineItemActionError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum ProposalLineItemActionErrorReason { - /// The operation is not applicable to the current state. + AD_SERVER_WITHOUT_CPD_AVERAGE_ECPM = 9, + /// The average estimated cost-per-thousand-impressions earned from the CPM, CPC and + /// CPD ads delivered by the ad server. /// - NOT_APPLICABLE = 0, - /// The operation is not applicable because the containing proposal is not editable. + AD_SERVER_WITH_CPD_AVERAGE_ECPM = 10, + /// The ratio of the number of impressions delivered to the total impressions + /// delivered by the ad server for line item-level dynamic allocation. Represented + /// as a percentage.

Corresponds to "Ad server impressions (%)" in the Ad Manager + /// UI. Compatible with the "Historical" report type.

///
- PROPOSAL_NOT_EDITABLE = 1, - /// The archive operation is not applicable because it would cause some mandatory - /// products to have no unarchived proposal line items in the package. + AD_SERVER_LINE_ITEM_LEVEL_PERCENT_IMPRESSIONS = 12, + /// The ratio of the number of clicks delivered to the total clicks delivered by the + /// ad server for line item-level dynamic allocation. Represented as a percentage. + ///

Corresponds to "Ad server clicks (%)" in the Ad Manager UI. Compatible with + /// the "Historical" report type.

///
- CANNOT_SELECTIVELY_ARCHIVE_PROPOSAL_LINE_ITEMS_FROM_MANDATORY_PRODUCTS = 3, - /// The unarchive operation is not applicable because it would cause some mandatory - /// products to have no unarchived proposal line items in the package. + AD_SERVER_LINE_ITEM_LEVEL_PERCENT_CLICKS = 14, + /// The ratio of revenue generated by ad server to the total CPM and CPC revenue + /// earned by the ads delivered for line item-level dynamic allocation. Represented + /// as a percentage.

Corresponds to "Ad server revenue (%)" in the Ad Manager UI. + /// Compatible with the "Historical" report type.

///
- CANNOT_SELECTIVELY_UNARCHIVE_PROPOSAL_LINE_ITEMS_FROM_MANDATORY_PRODUCTS = 4, - /// Sold programmatic ProposalLineItem cannot be - /// unarchived. + AD_SERVER_LINE_ITEM_LEVEL_WITHOUT_CPD_PERCENT_REVENUE = 17, + /// The ratio of revenue generated by ad server to the total CPM, CPC and CPD + /// revenue earned by the ads delivered for line item-level dynamic allocation. + /// Represented as a percentage. /// - CANNOT_UNARCHIVE_SOLD_PROGRAMMATIC_PROPOSAL_LINE_ITEM = 5, - /// Active ProposalLineItem cannot be archived + AD_SERVER_LINE_ITEM_LEVEL_WITH_CPD_PERCENT_REVENUE = 18, + /// The number of downloaded impressions delivered by the ad server including + /// impressions recognized as spam.

Corresponds to "Ad server unfiltered + /// downloaded impressions" in the Ad Manager UI. Compatible with the "Historical" + /// report type.

///
- CANNOT_ARCHIVE_ONGOING_PROPOSAL_LINE_ITEM = 6, - /// The value returned if the actual value is not exposed by the requested API - /// version. + AD_SERVER_UNFILTERED_IMPRESSIONS = 435, + /// The number of begin to render impressions delivered by the ad server including + /// impressions recognized as spam.

Corresponds to "Ad server unfiltered begin to + /// render impressions" in the Ad Manager UI. Compatible with the "Historical" + /// report type.

///
- UNKNOWN = 2, - } - - - /// Errors associated with preferred deal proposal line - /// items. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class PreferredDealError : ApiError { - private PreferredDealErrorReason reasonField; - - private bool reasonFieldSpecified; - - /// The error reason represented by an enum. + AD_SERVER_UNFILTERED_BEGIN_TO_RENDER_IMPRESSIONS = 620, + /// The number of clicks delivered by the ad server including clicks recognized as + /// spam.

Corresponds to "Ad server unfiltered clicks" in the Ad Manager UI. + /// Compatible with the "Historical" report type.

///
- [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public PreferredDealErrorReason reason { - get { - return this.reasonField; - } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { - return this.reasonFieldSpecified; - } - set { - this.reasonFieldSpecified = value; - } - } - } - - - /// The reasons for the target error. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "PreferredDealError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum PreferredDealErrorReason { - INVALID_PRIORITY = 0, - /// Preferred deal proposal line items only support - /// RateType#CPM. + AD_SERVER_UNFILTERED_CLICKS = 436, + /// The number of impressions an AdSense ad delivered for line item-level dynamic + /// allocation.

Corresponds to "AdSense impressions" in the Ad Manager UI. + /// Compatible with the "Historical" report type.

///
- INVALID_RATE_TYPE = 1, - /// Preferred deal proposal line items do not support - /// frequency caps. + ADSENSE_LINE_ITEM_LEVEL_IMPRESSIONS = 26, + /// The number of impressions an AdSense ad delivered for line item-level dynamic + /// allocation by explicit custom criteria targeting.

Corresponds to "AdSense + /// targeted impressions" in the Ad Manager UI. Compatible with the "Historical" + /// report type.

///
- INVALID_FREQUENCY_CAPS = 2, - /// Preferred deal proposal line items only support - /// RoadblockingType#ONE_OR_MORE. + ADSENSE_LINE_ITEM_LEVEL_TARGETED_IMPRESSIONS = 27, + /// The number of clicks an AdSense ad delivered for line item-level dynamic + /// allocation.

Corresponds to "AdSense clicks" in the Ad Manager UI. Compatible + /// with the "Historical" report type.

///
- INVALID_ROADBLOCKING_TYPE = 3, - /// Preferred deal proposal line items only support - /// DeliveryRateType#FRONTLOADED. + ADSENSE_LINE_ITEM_LEVEL_CLICKS = 29, + /// The number of clicks an AdSense ad delivered for line item-level dynamic + /// allocation by explicit custom criteria targeting.

Corresponds to "AdSense + /// targeted clicks" in the Ad Manager UI. Compatible with the "Historical" report + /// type.

///
- INVALID_DELIVERY_RATE_TYPE = 4, - UNKNOWN = 5, - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", ConfigurationName = "Google.Api.Ads.AdManager.v202311.ProposalLineItemServiceInterface")] - public interface ProposalLineItemServiceInterface - { - // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Wrappers.ProposalLineItemService.createMakegoodsResponse createMakegoods(Wrappers.ProposalLineItemService.createMakegoodsRequest request); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task createMakegoodsAsync(Wrappers.ProposalLineItemService.createMakegoodsRequest request); - - // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Wrappers.ProposalLineItemService.createProposalLineItemsResponse createProposalLineItems(Wrappers.ProposalLineItemService.createProposalLineItemsRequest request); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task createProposalLineItemsAsync(Wrappers.ProposalLineItemService.createProposalLineItemsRequest request); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v202311.ProposalLineItemPage getProposalLineItemsByStatement(Google.Api.Ads.AdManager.v202311.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getProposalLineItemsByStatementAsync(Google.Api.Ads.AdManager.v202311.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v202311.UpdateResult performProposalLineItemAction(Google.Api.Ads.AdManager.v202311.ProposalLineItemAction proposalLineItemAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task performProposalLineItemActionAsync(Google.Api.Ads.AdManager.v202311.ProposalLineItemAction proposalLineItemAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement); - - // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Wrappers.ProposalLineItemService.updateProposalLineItemsResponse updateProposalLineItems(Wrappers.ProposalLineItemService.updateProposalLineItemsRequest request); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task updateProposalLineItemsAsync(Wrappers.ProposalLineItemService.updateProposalLineItemsRequest request); - } - - - /// Captures a page of ProposalLineItem objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ProposalLineItemPage { - private ProposalLineItem[] resultsField; - - private int startIndexField; - - private bool startIndexFieldSpecified; - - private int totalResultSetSizeField; - - private bool totalResultSetSizeFieldSpecified; - - /// The collection of proposal line items contained within this page. + ADSENSE_LINE_ITEM_LEVEL_TARGETED_CLICKS = 30, + /// The ratio of clicks an AdSense reservation ad delivered to the number of + /// impressions it delivered, including line item-level dynamic allocation. + ///

Corresponds to "AdSense CTR" in the Ad Manager UI. Compatible with the + /// "Historical" report type.

///
- [System.Xml.Serialization.XmlElementAttribute("results", Order = 0)] - public ProposalLineItem[] results { - get { - return this.resultsField; - } - set { - this.resultsField = value; - } - } - - /// The absolute index in the total result set on which this page begins. + ADSENSE_LINE_ITEM_LEVEL_CTR = 32, + /// Revenue generated from AdSense ads delivered for line item-level dynamic + /// allocation.

Corresponds to "AdSense revenue" in the Ad Manager UI. Compatible + /// with the "Historical" report type.

///
- [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public int startIndex { - get { - return this.startIndexField; - } - set { - this.startIndexField = value; - this.startIndexSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool startIndexSpecified { - get { - return this.startIndexFieldSpecified; - } - set { - this.startIndexFieldSpecified = value; - } - } - - /// The size of the total result set to which this page belongs. + ADSENSE_LINE_ITEM_LEVEL_REVENUE = 34, + /// The average estimated cost-per-thousand-impressions earned from the ads + /// delivered by AdSense for line item-level dynamic allocation.

Corresponds to + /// "AdSense average eCPM" in the Ad Manager UI. Compatible with the "Historical" + /// report type.

///
- [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public int totalResultSetSize { - get { - return this.totalResultSetSizeField; - } - set { - this.totalResultSetSizeField = value; - this.totalResultSetSizeSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool totalResultSetSizeSpecified { - get { - return this.totalResultSetSizeFieldSpecified; - } - set { - this.totalResultSetSizeFieldSpecified = value; - } - } - } - - - /// Represents the actions that can be performed on ProposalLineItem objects. - /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(UnarchiveProposalLineItems))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ResumeProposalLineItems))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ReserveProposalLineItems))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ReleaseProposalLineItems))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(PauseProposalLineItems))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ArchiveProposalLineItems))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public abstract partial class ProposalLineItemAction { - } - - - /// The action used for unarchiving ProposalLineItem - /// objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class UnarchiveProposalLineItems : ProposalLineItemAction { - } - - - /// The action used for resuming ProposalLineItem - /// objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ResumeProposalLineItems : ProposalLineItemAction { - } - - - /// The action to reserve inventory for ProposalLineItem objects. It does not overbook - /// inventory unless #allowOverbook is set to - /// true. This action is only applicable for programmatic proposals not - /// using sales management. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ReserveProposalLineItems : ProposalLineItemAction { - private bool allowOverbookField; - - private bool allowOverbookFieldSpecified; - - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public bool allowOverbook { - get { - return this.allowOverbookField; - } - set { - this.allowOverbookField = value; - this.allowOverbookSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool allowOverbookSpecified { - get { - return this.allowOverbookFieldSpecified; - } - set { - this.allowOverbookFieldSpecified = value; - } - } - } - - - /// The action used for releasing inventory for ProposalLineItem objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ReleaseProposalLineItems : ProposalLineItemAction { - } - - - /// The action used for pausing ProposalLineItem - /// objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class PauseProposalLineItems : ProposalLineItemAction { - private string reasonField; - - /// Reason to describe why the ProposalLineItem is - /// being paused. + ADSENSE_LINE_ITEM_LEVEL_AVERAGE_ECPM = 36, + /// The ratio of the number of impressions delivered by AdSense reservation ads to + /// the total impressions delivered for line item-level dynamic allocation. + /// Represented as a percentage.

Corresponds to "AdSense impressions (%)" in the + /// Ad Manager UI. Compatible with the "Historical" report type.

///
- [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public string reason { - get { - return this.reasonField; - } - set { - this.reasonField = value; - } - } - } - - - /// The action used for archiving ProposalLineItem - /// objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ArchiveProposalLineItems : ProposalLineItemAction { - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public interface ProposalLineItemServiceInterfaceChannel : Google.Api.Ads.AdManager.v202311.ProposalLineItemServiceInterface, System.ServiceModel.IClientChannel - { - } - - - /// Provides methods for creating, updating and retrieving ProposalLineItem objects. - /// - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public partial class ProposalLineItemService : AdManagerSoapClient, IProposalLineItemService { - /// Creates a new instance of the - /// class. - public ProposalLineItemService() { - } - - /// Creates a new instance of the - /// class. - public ProposalLineItemService(string endpointConfigurationName) - : base(endpointConfigurationName) { - } - - /// Creates a new instance of the - /// class. - public ProposalLineItemService(string endpointConfigurationName, string remoteAddress) - : base(endpointConfigurationName, remoteAddress) { - } - - /// Creates a new instance of the - /// class. - public ProposalLineItemService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) - : base(endpointConfigurationName, remoteAddress) { - } - - /// Creates a new instance of the - /// class. - public ProposalLineItemService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) - : base(binding, remoteAddress) { - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.ProposalLineItemService.createMakegoodsResponse Google.Api.Ads.AdManager.v202311.ProposalLineItemServiceInterface.createMakegoods(Wrappers.ProposalLineItemService.createMakegoodsRequest request) { - return base.Channel.createMakegoods(request); - } - - /// Creates makegood proposal line items given the specifications provided. + ADSENSE_LINE_ITEM_LEVEL_PERCENT_IMPRESSIONS = 38, + /// The ratio of the number of clicks delivered by AdSense reservation ads to the + /// total clicks delivered for line item-level dynamic allocation. Represented as a + /// percentage.

Corresponds to "AdSense clicks (%)" in the Ad Manager UI. + /// Compatible with the "Historical" report type.

///
- public virtual Google.Api.Ads.AdManager.v202311.ProposalLineItem[] createMakegoods(Google.Api.Ads.AdManager.v202311.ProposalLineItemMakegoodInfo[] makegoodInfos) { - Wrappers.ProposalLineItemService.createMakegoodsRequest inValue = new Wrappers.ProposalLineItemService.createMakegoodsRequest(); - inValue.makegoodInfos = makegoodInfos; - Wrappers.ProposalLineItemService.createMakegoodsResponse retVal = ((Google.Api.Ads.AdManager.v202311.ProposalLineItemServiceInterface)(this)).createMakegoods(inValue); - return retVal.rval; - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202311.ProposalLineItemServiceInterface.createMakegoodsAsync(Wrappers.ProposalLineItemService.createMakegoodsRequest request) { - return base.Channel.createMakegoodsAsync(request); - } - - public virtual System.Threading.Tasks.Task createMakegoodsAsync(Google.Api.Ads.AdManager.v202311.ProposalLineItemMakegoodInfo[] makegoodInfos) { - Wrappers.ProposalLineItemService.createMakegoodsRequest inValue = new Wrappers.ProposalLineItemService.createMakegoodsRequest(); - inValue.makegoodInfos = makegoodInfos; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202311.ProposalLineItemServiceInterface)(this)).createMakegoodsAsync(inValue)).Result.rval); - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.ProposalLineItemService.createProposalLineItemsResponse Google.Api.Ads.AdManager.v202311.ProposalLineItemServiceInterface.createProposalLineItems(Wrappers.ProposalLineItemService.createProposalLineItemsRequest request) { - return base.Channel.createProposalLineItems(request); - } - - /// Creates new ProposalLineItem objects. + ADSENSE_LINE_ITEM_LEVEL_PERCENT_CLICKS = 40, + /// The ratio of revenue to the total revenue earned from the CPM and CPC ads + /// delivered by AdSense for line item-level dynamic allocation. Represented as a + /// percentage.

Corresponds to "AdSense revenue (%)" in the Ad Manager UI. + /// Compatible with the "Historical" report type.

///
- public virtual Google.Api.Ads.AdManager.v202311.ProposalLineItem[] createProposalLineItems(Google.Api.Ads.AdManager.v202311.ProposalLineItem[] proposalLineItems) { - Wrappers.ProposalLineItemService.createProposalLineItemsRequest inValue = new Wrappers.ProposalLineItemService.createProposalLineItemsRequest(); - inValue.proposalLineItems = proposalLineItems; - Wrappers.ProposalLineItemService.createProposalLineItemsResponse retVal = ((Google.Api.Ads.AdManager.v202311.ProposalLineItemServiceInterface)(this)).createProposalLineItems(inValue); - return retVal.rval; - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202311.ProposalLineItemServiceInterface.createProposalLineItemsAsync(Wrappers.ProposalLineItemService.createProposalLineItemsRequest request) { - return base.Channel.createProposalLineItemsAsync(request); - } - - public virtual System.Threading.Tasks.Task createProposalLineItemsAsync(Google.Api.Ads.AdManager.v202311.ProposalLineItem[] proposalLineItems) { - Wrappers.ProposalLineItemService.createProposalLineItemsRequest inValue = new Wrappers.ProposalLineItemService.createProposalLineItemsRequest(); - inValue.proposalLineItems = proposalLineItems; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202311.ProposalLineItemServiceInterface)(this)).createProposalLineItemsAsync(inValue)).Result.rval); - } - - /// Gets a ProposalLineItemPage of ProposalLineItem objects that satisfy the given Statement#query. The following fields are supported - /// for filtering: - /// - /// - /// - /// - /// - /// - /// - ///
PQL Property Object Property
id ProposalLineItem#id
name ProposalLineItem#name
proposalId ProposalLineItem#proposalId
startDateTime ProposalLineItem#startDateTime
endDateTime ProposalLineItem#endDateTime
isArchived ProposalLineItem#isArchived
lastModifiedDateTime ProposalLineItem#lastModifiedDateTime
isProgrammatic ProposalLineItem#isProgrammatic
- ///
- public virtual Google.Api.Ads.AdManager.v202311.ProposalLineItemPage getProposalLineItemsByStatement(Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.getProposalLineItemsByStatement(filterStatement); - } - - public virtual System.Threading.Tasks.Task getProposalLineItemsByStatementAsync(Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.getProposalLineItemsByStatementAsync(filterStatement); - } - - /// Performs actions on ProposalLineItem objects that - /// match the given Statement#query. - /// - public virtual Google.Api.Ads.AdManager.v202311.UpdateResult performProposalLineItemAction(Google.Api.Ads.AdManager.v202311.ProposalLineItemAction proposalLineItemAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.performProposalLineItemAction(proposalLineItemAction, filterStatement); - } - - public virtual System.Threading.Tasks.Task performProposalLineItemActionAsync(Google.Api.Ads.AdManager.v202311.ProposalLineItemAction proposalLineItemAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.performProposalLineItemActionAsync(proposalLineItemAction, filterStatement); - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.ProposalLineItemService.updateProposalLineItemsResponse Google.Api.Ads.AdManager.v202311.ProposalLineItemServiceInterface.updateProposalLineItems(Wrappers.ProposalLineItemService.updateProposalLineItemsRequest request) { - return base.Channel.updateProposalLineItems(request); - } - - /// Updates the specified ProposalLineItem objects. - /// - public virtual Google.Api.Ads.AdManager.v202311.ProposalLineItem[] updateProposalLineItems(Google.Api.Ads.AdManager.v202311.ProposalLineItem[] proposalLineItems) { - Wrappers.ProposalLineItemService.updateProposalLineItemsRequest inValue = new Wrappers.ProposalLineItemService.updateProposalLineItemsRequest(); - inValue.proposalLineItems = proposalLineItems; - Wrappers.ProposalLineItemService.updateProposalLineItemsResponse retVal = ((Google.Api.Ads.AdManager.v202311.ProposalLineItemServiceInterface)(this)).updateProposalLineItems(inValue); - return retVal.rval; - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202311.ProposalLineItemServiceInterface.updateProposalLineItemsAsync(Wrappers.ProposalLineItemService.updateProposalLineItemsRequest request) { - return base.Channel.updateProposalLineItemsAsync(request); - } - - public virtual System.Threading.Tasks.Task updateProposalLineItemsAsync(Google.Api.Ads.AdManager.v202311.ProposalLineItem[] proposalLineItems) { - Wrappers.ProposalLineItemService.updateProposalLineItemsRequest inValue = new Wrappers.ProposalLineItemService.updateProposalLineItemsRequest(); - inValue.proposalLineItems = proposalLineItems; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202311.ProposalLineItemServiceInterface)(this)).updateProposalLineItemsAsync(inValue)).Result.rval); - } - } - namespace Wrappers.PublisherQueryLanguageService - { - } - /// Each Row object represents data about one entity in a ResultSet. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class Row { - private Value[] valuesField; - - /// Represents a collection of values belonging to one entity. - /// - [System.Xml.Serialization.XmlElementAttribute("values", Order = 0)] - public Value[] values { - get { - return this.valuesField; - } - set { - this.valuesField = value; - } - } - } - - - /// Contains a Targeting value.

This object is - /// experimental! TargetingValue is an experimental, innovative, and - /// rapidly changing new feature for Ad Manager. Unfortunately, being on the - /// bleeding edge means that we may make backwards-incompatible changes to - /// TargetingValue. We will inform the community when this feature is - /// no longer experimental.

- ///
- [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class TargetingValue : ObjectValue { - private Targeting valueField; - - /// The Targeting value. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public Targeting value { - get { - return this.valueField; - } - set { - this.valueField = value; - } - } - } - - - /// This class is unused. It exists only to provide reference documentation of the - /// possible values for type and ChangeHistoryOperation. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ChangeHistoryValue : ObjectValue { - private ChangeHistoryEntityType entityTypeField; - - private bool entityTypeFieldSpecified; - - private ChangeHistoryOperation operationField; - - private bool operationFieldSpecified; - - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public ChangeHistoryEntityType entityType { - get { - return this.entityTypeField; - } - set { - this.entityTypeField = value; - this.entityTypeSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool entityTypeSpecified { - get { - return this.entityTypeFieldSpecified; - } - set { - this.entityTypeFieldSpecified = value; - } - } - - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public ChangeHistoryOperation operation { - get { - return this.operationField; - } - set { - this.operationField = value; - this.operationSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool operationSpecified { - get { - return this.operationFieldSpecified; - } - set { - this.operationFieldSpecified = value; - } - } - } - - - /// The type of entity a change occurred on. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum ChangeHistoryEntityType { - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 0, - BASE_RATE = 17, - COMPANY = 1, - CONTACT = 2, - CREATIVE = 3, - CREATIVE_SET = 4, - CUSTOM_FIELD = 5, - CUSTOM_KEY = 6, - CUSTOM_VALUE = 7, - PLACEMENT = 8, - AD_UNIT = 9, - LABEL = 10, - LINE_ITEM = 11, - NETWORK = 12, - ORDER = 13, - PREMIUM_RATE = 18, - PRODUCT = 19, - PRODUCT_PACKAGE = 20, - PRODUCT_PACKAGE_ITEM = 21, - PRODUCT_TEMPLATE = 22, - PROPOSAL = 23, - PROPOSAL_LINK = 24, - PROPOSAL_LINE_ITEM = 25, - PACKAGE = 26, - RATE_CARD = 27, - ROLE = 14, - TEAM = 15, - USER = 16, - WORKFLOW = 28, - } - - - /// An operation that was performed on an entity. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum ChangeHistoryOperation { - CREATE = 0, - UPDATE = 1, - DELETE = 2, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 3, - } - - - /// Contains information about a column in a ResultSet. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ColumnType { - private string labelNameField; - - /// Represents the column's name. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public string labelName { - get { - return this.labelNameField; - } - set { - this.labelNameField = value; - } - } - } - - - /// The ResultSet represents a table of data obtained from the - /// execution of a PQL Statement. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ResultSet { - private ColumnType[] columnTypesField; - - private Row[] rowsField; - - /// A collection of ColumnType objects. - /// - [System.Xml.Serialization.XmlElementAttribute("columnTypes", Order = 0)] - public ColumnType[] columnTypes { - get { - return this.columnTypesField; - } - set { - this.columnTypesField = value; - } - } - - /// A collection of Row objects. - /// - [System.Xml.Serialization.XmlElementAttribute("rows", Order = 1)] - public Row[] rows { - get { - return this.rowsField; - } - set { - this.rowsField = value; - } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", ConfigurationName = "Google.Api.Ads.AdManager.v202311.PublisherQueryLanguageServiceInterface")] - public interface PublisherQueryLanguageServiceInterface - { - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v202311.ResultSet select(Google.Api.Ads.AdManager.v202311.Statement selectStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task selectAsync(Google.Api.Ads.AdManager.v202311.Statement selectStatement); - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public interface PublisherQueryLanguageServiceInterfaceChannel : Google.Api.Ads.AdManager.v202311.PublisherQueryLanguageServiceInterface, System.ServiceModel.IClientChannel - { - } - - - /// Provides methods for executing a PQL Statement to - /// retrieve information from the system. In order to support the selection of - /// columns of interest from various tables, Statement - /// objects support a "select" clause.

An example query text might be - /// "select CountryCode, Name from Geo_Target", where - /// CountryCode and Name are columns of interest and - /// Geo_Target is the table.

The following tables are - /// supported:

Geo_Target

- /// - ///
Column NameDescription
Id Unique identifier - /// for the Geo target
Name The name of the Geo - /// target
CanonicalParentId The criteria ID of the - /// direct parent that defines the canonical name of the geo target. For example, if - /// the current geo target is "San Francisco", its canonical name would be "San - /// Francisco, California, United States" thus the canonicalParentId would be the - /// criteria ID of California and the canonicalParentId of California would be the - /// criteria ID of United states
ParentIds A comma - /// separated list of criteria IDs of all parents of the geo target ordered by - /// ascending size
CountryCode Country code as defined - /// by ISO 3166-1 alpha-2
Type Allowable values:
    - ///
  • Airport
  • Autonomous_Community
  • Canton
  • City
  • - ///
  • Congressional_District
  • Country
  • County
  • - ///
  • Department
  • DMA_Region
  • Governorate
  • - ///
  • Municipality
  • Neighborhood
  • Postal_Code
  • - ///
  • Prefecture
  • Province
  • Region
  • State
  • - ///
  • Territory
  • Tv_Region
  • Union_Territory
Targetable Indicates whether geographical targeting is - /// allowed

Bandwidth_Group

- /// - ///
Column Name Description
Id Unique identifier for the bandwidth group
BandwidthName Name of the bandwidth group
- ///

Browser

Note: this table only contains browsers that are available - /// in the Ad Manager UI targeting picker.

Column - /// Name Description
Id Unique - /// identifier for the browser
BrowserName Name of the - /// browser
MajorVersion Major version of the - /// browser
MinorVersion Minor version of the - /// browser

Browser_Language

- /// - ///
Column Name Description
Id Unique identifier for the browser language
BrowserLanguageName Browser's language
- ///

Device_Capability

Column Name Description
Id Unique identifier for - /// the device capability
DeviceCapabilityName Name of - /// the device capability

Device_Category

- /// - /// - ///
Column Name Description
Id Unique identifier for the device category
DeviceCategoryName Name of the device category
- ///

Device_Manufacturer

- ///
Column Name Description
Id Unique identifier for - /// the device manufacturer
MobileDeviceManufacturerNameName of the device manufacturer

Mobile_Carrier

- /// - /// - /// - /// - ///
Column Name Description
Id Unique identifier for the mobile carrier
CountryCode The country code of the mobile carrier
MobileCarrierName Name of the mobile carrier

Mobile_Device

- ///
Column NameDescription
Id Unique identifier - /// for the mobile device
MobileDeviceManufacturerId Id - /// of the device manufacturer
MobileDeviceName Name of - /// the mobile device

Mobile_Device_Submodel

- /// - /// - /// - /// - ///
Column Name Description
Id Unique identifier for the mobile device submodel
MobileDeviceId Id of the mobile device
MobileDeviceSubmodelName Name of the mobile device submodel

Operating_System

- ///
Column - /// Name Description
Id Unique - /// identifier for the operating system
OperatingSystemNameName of the operating system
- ///

Operating_System_Version

- /// - ///
Column NameDescription
Id Unique identifier - /// for the operating system version
OperatingSystemIdId of the operating system
MajorVersion The - /// operating system major version
MinorVersion The - /// operating system minor version
MicroVersion The - /// operating system micro version

Third_Party_Company

- /// - /// - /// - /// - ///
Column Name Description
Id Unique identifier for the third party company
Name The third party company name
Type The third party company type
StatusThe status of the third party company

Line_Item

- /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - ///
Column name TypeDescription
CostType TextThe method used for billing this LineItem.
CreationDateTime Datetime The date and time - /// this LineItem was last created. This attribute may be null for - /// LineItems created before this feature was introduced.
DeliveryRateType Text The strategy for - /// delivering ads over the course of the 's duration. This attribute - /// is optional and defaults to DeliveryRateType#EVENLY. Starting in v201306, - /// it may default to DeliveryRateType#FRONTLOADED if - /// specifically configured to on the network.
EndDateTimeDatetime The date and time on which the - /// LineItem stops serving.
ExternalIdText An identifier for the LineItem that - /// is meaningful to the publisher.
IdNumber Uniquely identifies the LineItem. - /// This attribute is read-only and is assigned by Google when a line item is - /// created.
IsMissingCreativesBoolean Indicates if a LineItem is - /// missing any creatives for the - /// creativePlaceholders specified.
IsSetTopBoxEnabled Boolean Whether or not - /// this line item is set-top box enabled.
LastModifiedDateTime Datetime The date and - /// time this LineItem was last modified.
LatestNielsenInTargetRatioMilliPercent NumberThe most recently computed in-target ratio measured from Nielsen reporting - /// data and the LineItem's settings. It's provided in milli percent, - /// or null if not applicable.
LineItemTypeText Indicates the line item type of a - /// LineItem.
Name TextThe name of the LineItem.
OrderIdNumber The ID of the Order to - /// which the belongs.
StartDateTimeDatetime The date and time on which the - /// LineItem is enabled to begin serving.
Status Text The status of the - /// LineItem.
TargetingTargeting The targeting criteria for the ad - /// campaign.
UnitsBought NumberThe total number of impressions or clicks that will be reserved for the - /// LineItem. If the line item is of type LineItemType#SPONSORSHIP, then it represents - /// the percentage of available impressions reserved.

Ad_Unit

- /// - /// - /// - /// - /// - /// - ///
Column name TypeDescription
AdUnitCode TextA string used to uniquely identify the ad unit for the purposes of serving - /// the ad. This attribute is read-only and is assigned by Google when an ad unit is - /// created.
ExternalSetTopBoxChannelIdText The channel ID for set-top box enabled ad units.
IdNumber Uniquely identifies the ad unit. This value is - /// read-only and is assigned by Google when an ad unit is created.
LastModifiedDateTime Datetime The date and - /// time this ad unit was last modified.
NameText The name of the ad unit.
ParentId Number The ID of the ad unit's - /// parent. Every ad unit has a parent except for the root ad unit, which is created - /// by Google.

User

- /// - /// - /// - /// - /// - ///
Column - /// name Type Description
EmailText The email or login of the user.
ExternalId Text An identifier for the user - /// that is meaningful to the publisher.
IdNumber The unique ID of the user.
IsServiceAccount Boolean True if this user is - /// an OAuth2 service account user, false otherwise.
NameText The name of the user.
RoleId Number The unique role ID of the user. - /// Role objects that are created by Google will have negative - /// IDs.
RoleName Text The name - /// of the Role assigned to the user.

Programmatic_Buyer

- /// - /// - /// - /// - /// - /// - ///
Column - /// name Type Description
BuyerAccountIdNumber The ID used by Authorized Buyers to bill the - /// appropriate buyer network for a programmatic order.
EnabledForPreferredDeals Boolean Whether the - /// buyer is allowed to negotiate Preferred Deals.
EnabledForProgrammaticGuaranteed BooleanWhether the buyer is enabled for Programmatic Guaranteed deals.
Name Text Display name that references - /// the buyer.
ParentId NumberThe ID of the programmatic buyer's sponsor. If the programmatic buyer has no - /// sponsor, this field will be -1.
PartnerClientIdText ID used to represent Display & Video 360 - /// client buyer partner ID (if Display & Video 360) or Authorized Buyers client - /// buyer account ID.

Audience_Segment_Category

- /// - /// - ///
Column name Type Description
IdNumber The unique identifier for the audience segment - /// category.
Name Text The name - /// of the audience segment category.
ParentIdNumber The unique identifier of the audience segment - /// category's parent.

Audience_Segment

- /// - /// - /// - /// - /// - /// - /// - /// - /// - ///
Column nameType Description
AdIdSizeNumber The number of AdID users in the segment.
CategoryIds Set of number The ids - /// of the categories that this audience segment belongs to.
Id Number The unique identifier for the - /// audience segment.
IdfaSize NumberThe number of IDFA users in the segment.
MobileWebSize Number The number of mobile web - /// users in the segment.
Name TextThe name of the audience segment.
OwnerAccountIdNumber The owner account id of the audience - /// segment.
OwnerName Text The - /// owner name of the audience segment.
PpidSizeNumber The number of PPID users in the segment.
SegmentType Text The type of the - /// audience segment.

Time_Zone

- /// - /// - ///
Column name Type Description
Id Text The id of time zone in the form of - /// .
StandardGmtOffsetText The standard GMT offset in current time in the - /// form of for America/New_York, excluding the Daylight - /// Saving Time.

- /// Proposal_Terms_And_Conditions

- ///
Column nameType Description

Change_History

Restrictions: Only ordering by - /// ChangeDateTime descending is supported. The IN - /// operator is only supported on the column. OFFSET is - /// not supported. To page through results, filter on the earliest change - /// Id as a continuation token. For example "WHERE Id < - /// :id". On each query, both an upper bound and a lower bound for the - /// are required. - /// - /// - /// - /// - /// - ///
Column name TypeDescription
ChangeDateTimeDatetime The date and time this change happened.
EntityId Number The ID of the - /// entity that was changed.
EntityTypeText The type of - /// the entity that was changed.
IdText The ID of this change. IDs may only be used with - /// "<" operator for paging and are subject to change. Do not store - /// IDs. Note that the "<" here does not compare the value of the ID - /// but the row in the change history table it represents.
Operation Text The operation that was performed on this - /// entity.
UserId Number The ID of the user that made this change.

ad_category

- /// - /// - /// - /// - ///
Column nameType Description
ChildIds Set of - /// number Child IDs of an Ad category. Only general categories have - /// children
Id Number ID of an - /// Ad category
Name TextLocalized name of an Ad category
ParentIdNumber Parent ID of an Ad category. Only general - /// categories have parents
Type TextType of an Ad category. Only general categories have children

rich_media_ad_company

- /// - /// - /// - /// - ///
Column name Type Description
CompanyGvlId Number IAB Global Vendor List ID - /// of a Rich Media Ad Company
GdprStatusText GDPR compliance status of a Rich Media Ad - /// Company. Indicates whether the company has been registered with Google as a - /// compliant company for GDPR.
IdNumber ID of a Rich Media Ad Company
Name Text Name of a Rich Media Ad - /// Company
PolicyUrl Text Policy - /// URL of a Rich Media Ad Company

mcm_earnings

Restriction: On each query, an expression - /// scoping the MCM earnings to a single month is required (e.x. "WHERE month = - /// '2020-01'" or "WHERE month IN ('2020-01')"). Bydefault, child publishers are - /// ordered by their network code. - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - ///
Column name TypeDescription
ChildName TextThe name of the child publisher.
ChildNetworkCodeText The network code of the child publisher.
ChildPaymentCurrencyCode Text The - /// child payment currency code as defined by ISO 4217.
ChildPaymentMicros Number The portion of the - /// total earnings paid to the child publisher in micro units of the ChildPaymentCurrencyCode
DeductionsCurrencyCode Text The deductions - /// currency code as defined by ISO 4217. Null for earnings prior to August - /// 2020.
DeductionsMicros NumberThe deductions for the month due to spam in micro units of the - /// DeductionsCurrencyCode. Null for earnings prior to August - /// 2020.
DelegationType Text The - /// current type of MCM delegation between the parent and child publisher.
Month Date The year and month that - /// the MCM earnings data applies to. The date will be specified as the first of the - /// month.
ParentName Text The - /// name of the parent publisher.
ParentNetworkCodeText The network code of the parent publisher.
ParentPaymentCurrencyCode Text The - /// parent payment currency code as defined by ISO 4217.
ParentPaymentMicros Number The portion of the - /// total earnings paid to the parent publisher in micro units of the ParentPaymentCurrencyCode.
TotalEarningsCurrencyCode Text The total - /// earnings currency code as defined by ISO 4217.
TotalEarningsMicros Number The total earnings - /// for the month in micro units of the .

Linked_Device

- /// - /// - /// - /// - /// - ///
Column nameType Description
IdNumber The ID of the LinkedDevice
Name Text The name of the LinkedDevice
UserId Number The ID of the user - /// that this device belongs to.
VisibilityText The visibility of the LinkedDevice.

child_publisher

By default, child - /// publishers are ordered by their ID. - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - ///
Column nameType Description
AccountStatusText The account status of the MCM child publisher's - /// Ad Manager network
AgreementStatusText Status of the delegation relationship between - /// parent and child.
ApprovedManageAccountRevshareMillipercent NumberThe approved revshare with the MCM child publisher
ChildNetworkAdExchangeEnabled Boolean Whether - /// the child publisher's Ad Manager network has Ad Exchange enabled
ChildNetworkCode Text The network code of the - /// MCM child publisher
DelegationTypeText The delegation type of the MCM child publisher. - /// This will be the approved type if the child has accepted the relationship, and - /// the proposed type otherwise.
EmailText The email of the MCM child publisher
Id Number The ID of the MCM child - /// publisher.
Name Text The name - /// of the MCM child publisher
OnboardingTasksSet of text The child publisher's pending onboarding - /// tasks. This will only be populated if the child publisher's - /// AccountStatus is PENDING_GOOGLE_APPROVAL.
SellerId Text The child publisher's - /// seller ID, as specified in the parent publisher's sellers.json file. This field - /// is only relevant for Manage Inventory child publishers.
- ///
- [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public partial class PublisherQueryLanguageService : AdManagerSoapClient, IPublisherQueryLanguageService { - /// Creates a new instance of the class. - public PublisherQueryLanguageService() { - } - - /// Creates a new instance of the class. - public PublisherQueryLanguageService(string endpointConfigurationName) - : base(endpointConfigurationName) { - } - - /// Creates a new instance of the class. - public PublisherQueryLanguageService(string endpointConfigurationName, string remoteAddress) - : base(endpointConfigurationName, remoteAddress) { - } - - /// Creates a new instance of the class. - public PublisherQueryLanguageService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) - : base(endpointConfigurationName, remoteAddress) { - } - - /// Creates a new instance of the class. - public PublisherQueryLanguageService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) - : base(binding, remoteAddress) { - } - - /// Retrieves rows of data that satisfy the given Statement#query from the system. - /// - public virtual Google.Api.Ads.AdManager.v202311.ResultSet select(Google.Api.Ads.AdManager.v202311.Statement selectStatement) { - return base.Channel.select(selectStatement); - } - - public virtual System.Threading.Tasks.Task selectAsync(Google.Api.Ads.AdManager.v202311.Statement selectStatement) { - return base.Channel.selectAsync(selectStatement); - } - } - namespace Wrappers.AdRuleService - { - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "createAdRules", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class createAdRulesRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("adRules")] - public Google.Api.Ads.AdManager.v202311.AdRule[] adRules; - - /// Creates a new instance of the - /// class. - public createAdRulesRequest() { - } - - /// Creates a new instance of the - /// class. - public createAdRulesRequest(Google.Api.Ads.AdManager.v202311.AdRule[] adRules) { - this.adRules = adRules; - } - } - - - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "createAdRulesResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class createAdRulesResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v202311.AdRule[] rval; - - /// Creates a new instance of the - /// class. - public createAdRulesResponse() { - } - - /// Creates a new instance of the - /// class. - public createAdRulesResponse(Google.Api.Ads.AdManager.v202311.AdRule[] rval) { - this.rval = rval; - } - } - - - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "createAdSpots", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class createAdSpotsRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("adSpots")] - public Google.Api.Ads.AdManager.v202311.AdSpot[] adSpots; - - /// Creates a new instance of the - /// class. - public createAdSpotsRequest() { - } - - /// Creates a new instance of the - /// class. - public createAdSpotsRequest(Google.Api.Ads.AdManager.v202311.AdSpot[] adSpots) { - this.adSpots = adSpots; - } - } - - - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "createAdSpotsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class createAdSpotsResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v202311.AdSpot[] rval; - - /// Creates a new instance of the - /// class. - public createAdSpotsResponse() { - } - - /// Creates a new instance of the - /// class. - public createAdSpotsResponse(Google.Api.Ads.AdManager.v202311.AdSpot[] rval) { - this.rval = rval; - } - } - - - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "createBreakTemplates", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class createBreakTemplatesRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("breakTemplate")] - public Google.Api.Ads.AdManager.v202311.BreakTemplate[] breakTemplate; - - /// Creates a new instance of the class. - public createBreakTemplatesRequest() { - } - - /// Creates a new instance of the class. - public createBreakTemplatesRequest(Google.Api.Ads.AdManager.v202311.BreakTemplate[] breakTemplate) { - this.breakTemplate = breakTemplate; - } - } - - - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "createBreakTemplatesResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class createBreakTemplatesResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v202311.BreakTemplate[] rval; - - /// Creates a new instance of the class. - public createBreakTemplatesResponse() { - } - - /// Creates a new instance of the class. - public createBreakTemplatesResponse(Google.Api.Ads.AdManager.v202311.BreakTemplate[] rval) { - this.rval = rval; - } - } - - - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "updateAdRules", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class updateAdRulesRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("adRules")] - public Google.Api.Ads.AdManager.v202311.AdRule[] adRules; - - /// Creates a new instance of the - /// class. - public updateAdRulesRequest() { - } - - /// Creates a new instance of the - /// class. - public updateAdRulesRequest(Google.Api.Ads.AdManager.v202311.AdRule[] adRules) { - this.adRules = adRules; - } - } - - - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "updateAdRulesResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class updateAdRulesResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v202311.AdRule[] rval; - - /// Creates a new instance of the - /// class. - public updateAdRulesResponse() { - } - - /// Creates a new instance of the - /// class. - public updateAdRulesResponse(Google.Api.Ads.AdManager.v202311.AdRule[] rval) { - this.rval = rval; - } - } - - - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "updateAdSpots", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class updateAdSpotsRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("adSpots")] - public Google.Api.Ads.AdManager.v202311.AdSpot[] adSpots; - - /// Creates a new instance of the - /// class. - public updateAdSpotsRequest() { - } - - /// Creates a new instance of the - /// class. - public updateAdSpotsRequest(Google.Api.Ads.AdManager.v202311.AdSpot[] adSpots) { - this.adSpots = adSpots; - } - } - - - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "updateAdSpotsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class updateAdSpotsResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v202311.AdSpot[] rval; - - /// Creates a new instance of the - /// class. - public updateAdSpotsResponse() { - } - - /// Creates a new instance of the - /// class. - public updateAdSpotsResponse(Google.Api.Ads.AdManager.v202311.AdSpot[] rval) { - this.rval = rval; - } - } - - - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "updateBreakTemplates", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class updateBreakTemplatesRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("breakTemplate")] - public Google.Api.Ads.AdManager.v202311.BreakTemplate[] breakTemplate; - - /// Creates a new instance of the class. - public updateBreakTemplatesRequest() { - } - - /// Creates a new instance of the class. - public updateBreakTemplatesRequest(Google.Api.Ads.AdManager.v202311.BreakTemplate[] breakTemplate) { - this.breakTemplate = breakTemplate; - } - } - - - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "updateBreakTemplatesResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class updateBreakTemplatesResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v202311.BreakTemplate[] rval; - - /// Creates a new instance of the class. - public updateBreakTemplatesResponse() { - } - - /// Creates a new instance of the class. - public updateBreakTemplatesResponse(Google.Api.Ads.AdManager.v202311.BreakTemplate[] rval) { - this.rval = rval; - } - } - } - /// Simple object representing an ad slot within an AdRule. Ad - /// rule slots contain information about the types/number of ads to display, as well - /// as additional information on how the ad server will generate playlists. - /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(UnknownAdRuleSlot))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(StandardPoddingAdRuleSlot))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(OptimizedPoddingAdRuleSlot))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(NoPoddingAdRuleSlot))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public abstract partial class BaseAdRuleSlot { - private AdRuleSlotBehavior slotBehaviorField; - - private bool slotBehaviorFieldSpecified; - - private long maxVideoAdDurationField; - - private bool maxVideoAdDurationFieldSpecified; - - private MidrollFrequencyType videoMidrollFrequencyTypeField; - - private bool videoMidrollFrequencyTypeFieldSpecified; - - private string videoMidrollFrequencyField; - - private AdRuleSlotBumper bumperField; - - private bool bumperFieldSpecified; - - private long maxBumperDurationField; - - private bool maxBumperDurationFieldSpecified; - - private long maxPodDurationField; - - private bool maxPodDurationFieldSpecified; - - private int maxAdsInPodField; - - private bool maxAdsInPodFieldSpecified; - - private long breakTemplateIdField; - - private bool breakTemplateIdFieldSpecified; - - /// The AdRuleSlotBehavior for video ads for this - /// slot. This attribute is optional and defaults to AdRuleSlotBehavior#DEFER.

Indicates - /// whether video ads are allowed for this slot, or if the decision is deferred to a - /// lower-priority ad rule.

- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public AdRuleSlotBehavior slotBehavior { - get { - return this.slotBehaviorField; - } - set { - this.slotBehaviorField = value; - this.slotBehaviorSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool slotBehaviorSpecified { - get { - return this.slotBehaviorFieldSpecified; - } - set { - this.slotBehaviorFieldSpecified = value; - } - } - - /// The maximum duration in milliseconds of video ads within this slot. This - /// attribute is optional and defaults to 0. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public long maxVideoAdDuration { - get { - return this.maxVideoAdDurationField; - } - set { - this.maxVideoAdDurationField = value; - this.maxVideoAdDurationSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool maxVideoAdDurationSpecified { - get { - return this.maxVideoAdDurationFieldSpecified; - } - set { - this.maxVideoAdDurationFieldSpecified = value; - } - } - - /// The frequency type for video ads in this ad rule slot. This attribute is - /// required for mid-rolls, but if this is not a mid-roll, the value is set to MidrollFrequencyType#NONE. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public MidrollFrequencyType videoMidrollFrequencyType { - get { - return this.videoMidrollFrequencyTypeField; - } - set { - this.videoMidrollFrequencyTypeField = value; - this.videoMidrollFrequencyTypeSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool videoMidrollFrequencyTypeSpecified { - get { - return this.videoMidrollFrequencyTypeFieldSpecified; - } - set { - this.videoMidrollFrequencyTypeFieldSpecified = value; - } - } - - /// The mid-roll frequency of this ad rule slot for video ads. This attribute is - /// required for mid-rolls, but if MidrollFrequencyType is set to MidrollFrequencyType#NONE, this value - /// should be ignored. For example, if this slot has a frequency type of MidrollFrequencyType#EVERY_N_SECONDS and - /// #videoMidrollFrequency = "60", this would mean " play a mid-roll - /// every 60 seconds." - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public string videoMidrollFrequency { - get { - return this.videoMidrollFrequencyField; - } - set { - this.videoMidrollFrequencyField = value; - } - } - - /// The AdRuleSlotBumper for this slot. This - /// attribute is optional and defaults to AdRuleSlotBumper#NONE. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public AdRuleSlotBumper bumper { - get { - return this.bumperField; - } - set { - this.bumperField = value; - this.bumperSpecified = true; - } - } - - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool bumperSpecified { - get { - return this.bumperFieldSpecified; - } - set { - this.bumperFieldSpecified = value; - } - } - - /// The maximum duration of bumper ads within this slot. This attribute is optional - /// and defaults to 0. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 5)] - public long maxBumperDuration { - get { - return this.maxBumperDurationField; - } - set { - this.maxBumperDurationField = value; - this.maxBumperDurationSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool maxBumperDurationSpecified { - get { - return this.maxBumperDurationFieldSpecified; - } - set { - this.maxBumperDurationFieldSpecified = value; - } - } - - /// The maximum pod duration in milliseconds for this slot. This attribute is - /// optional and defaults to 0. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 6)] - public long maxPodDuration { - get { - return this.maxPodDurationField; - } - set { - this.maxPodDurationField = value; - this.maxPodDurationSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool maxPodDurationSpecified { - get { - return this.maxPodDurationFieldSpecified; - } - set { - this.maxPodDurationFieldSpecified = value; - } - } - - /// The maximum number of ads allowed in a pod in this slot. This attribute is - /// optional and defaults to 0. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 7)] - public int maxAdsInPod { - get { - return this.maxAdsInPodField; - } - set { - this.maxAdsInPodField = value; - this.maxAdsInPodSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool maxAdsInPodSpecified { - get { - return this.maxAdsInPodFieldSpecified; - } - set { - this.maxAdsInPodFieldSpecified = value; - } - } - - /// ID of a BreakTemplate that defines what kinds of ads - /// show at which positions within this slot. This field is optional and only - /// supported on OptimizedPoddingAdRuleSlot - /// entities. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 8)] - public long breakTemplateId { - get { - return this.breakTemplateIdField; - } - set { - this.breakTemplateIdField = value; - this.breakTemplateIdSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool breakTemplateIdSpecified { - get { - return this.breakTemplateIdFieldSpecified; - } - set { - this.breakTemplateIdFieldSpecified = value; - } - } - } - - - /// The types of behaviors for ads within a ad rule - /// slot. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum AdRuleSlotBehavior { - /// This ad rule always includes this slot's ads. - /// - ALWAYS_SHOW = 0, - /// This ad rule never includes this slot's ads. - /// - NEVER_SHOW = 1, - /// Defer to lower priority rules. This ad rule doesn't specify guidelines for this - /// slot's ads. - /// - DEFER = 2, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 3, - } - - - /// Frequency types for mid-roll ad rule slots. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum MidrollFrequencyType { - /// The ad rule slot is not a mid-roll and hence should be ignored. - /// - NONE = 0, - /// MidrollFrequency is a time interval and mentioned as a single - /// numeric value in seconds. For example, "100" would mean "play a mid-roll every - /// 100 seconds". - /// - EVERY_N_SECONDS = 1, - /// MidrollFrequency is a comma-delimited list of points in time (in - /// seconds) when an ad should play. For example, "100,300" would mean "play an ad - /// at 100 seconds and 300 seconds". - /// - FIXED_TIME = 2, - /// MidrollFrequency is a cue point interval and is a single integer - /// value, such as "5", which means "play a mid-roll every 5th cue point". - /// - EVERY_N_CUEPOINTS = 3, - /// Same as #FIXED_TIME, except the values represent the - /// ordinal cue points ("1,3,5", for example). - /// - FIXED_CUE_POINTS = 4, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 5, - } - - - /// Types of bumper ads on an ad rule slot. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum AdRuleSlotBumper { - /// Do not show a bumper ad. - /// - NONE = 0, - /// Show a bumper ad before the slot's other ads. - /// - BEFORE = 1, - /// Show a bumper ad after the slot's other ads. - /// - AFTER = 2, - /// Show a bumper before and after the slot's other ads. - /// - BEFORE_AND_AFTER = 3, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 4, - } - - - /// The BaseAdRuleSlot subtype returned if the actual - /// type is not exposed by the requested API version. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class UnknownAdRuleSlot : BaseAdRuleSlot { - } - - - /// An ad rule slot with standard podding. A standard pod is a series of video ads - /// played back to back. Standard pods are defined by a BaseAdRuleSlot#maxAdsInPod and a BaseAdRuleSlot#maxVideoAdDuration. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class StandardPoddingAdRuleSlot : BaseAdRuleSlot { - } - - - /// Ad rule slot with optimized podding. Optimized pods are defined by a BaseAdRuleSlot#maxPodDuration and a BaseAdRuleSlot#maxAdsInPod, and the ad - /// server chooses the best ads for the alloted duration. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class OptimizedPoddingAdRuleSlot : BaseAdRuleSlot { - } - - - /// An ad rule slot with no podding. It is defined by a BaseAdRuleSlot#maxVideoAdDuration. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class NoPoddingAdRuleSlot : BaseAdRuleSlot { - } - - - /// An AdRule contains data that the ad server will use to - /// generate a playlist of video ads. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class AdRule { - private long idField; - - private bool idFieldSpecified; - - private string nameField; - - private int priorityField; - - private bool priorityFieldSpecified; - - private Targeting targetingField; - - private DateTime startDateTimeField; - - private StartDateTimeType startDateTimeTypeField; - - private bool startDateTimeTypeFieldSpecified; - - private DateTime endDateTimeField; - - private bool unlimitedEndDateTimeField; - - private bool unlimitedEndDateTimeFieldSpecified; - - private AdRuleStatus statusField; - - private bool statusFieldSpecified; - - private FrequencyCapBehavior frequencyCapBehaviorField; - - private bool frequencyCapBehaviorFieldSpecified; - - private int maxImpressionsPerLineItemPerStreamField; - - private bool maxImpressionsPerLineItemPerStreamFieldSpecified; - - private int maxImpressionsPerLineItemPerPodField; - - private bool maxImpressionsPerLineItemPerPodFieldSpecified; - - private BaseAdRuleSlot prerollField; - - private BaseAdRuleSlot midrollField; - - private BaseAdRuleSlot postrollField; - - /// The unique ID of the AdRule. This value is readonly and is - /// assigned by Google. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public long id { - get { - return this.idField; - } - set { - this.idField = value; - this.idSpecified = true; - } - } - - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool idSpecified { - get { - return this.idFieldSpecified; - } - set { - this.idFieldSpecified = value; - } - } - - /// The unique name of the AdRule. This attribute is required - /// to create an ad rule and has a maximum length of 255 characters. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public string name { - get { - return this.nameField; - } - set { - this.nameField = value; - } - } - - /// The priority of the AdRule. This attribute is required and - /// can range from 1 to 1000, with 1 being the highest possible priority. - ///

Changing an ad rule's priority can affect the priorities of other ad rules. - /// For example, increasing an ad rule's priority from 5 to 1 will shift the ad - /// rules that were previously in priority positions 1 through 4 down one.

- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public int priority { - get { - return this.priorityField; - } - set { - this.priorityField = value; - this.prioritySpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool prioritySpecified { - get { - return this.priorityFieldSpecified; - } - set { - this.priorityFieldSpecified = value; - } - } - - /// The targeting criteria of the AdRule. This attribute is - /// required. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public Targeting targeting { - get { - return this.targetingField; - } - set { - this.targetingField = value; - } - } - - /// This AdRule object's start date and time. This attribute is - /// required and must be a date in the future for new ad rules. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public DateTime startDateTime { - get { - return this.startDateTimeField; - } - set { - this.startDateTimeField = value; - } - } - - /// Specifies whether to start using the AdRule right away, in - /// an hour, etc. This attribute is optional and defaults to StartDateTimeType#USE_START_DATE_TIME. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 5)] - public StartDateTimeType startDateTimeType { - get { - return this.startDateTimeTypeField; - } - set { - this.startDateTimeTypeField = value; - this.startDateTimeTypeSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool startDateTimeTypeSpecified { - get { - return this.startDateTimeTypeFieldSpecified; - } - set { - this.startDateTimeTypeFieldSpecified = value; - } - } - - /// This AdRule object's end date and time. This attribute is - /// required unless unlimitedEndDateTime is set to true. - /// If specified, it must be after the . - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 6)] - public DateTime endDateTime { - get { - return this.endDateTimeField; - } - set { - this.endDateTimeField = value; - } - } - - /// Specifies whether the AdRule has an end time. This - /// attribute is optional and defaults to false. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 7)] - public bool unlimitedEndDateTime { - get { - return this.unlimitedEndDateTimeField; - } - set { - this.unlimitedEndDateTimeField = value; - this.unlimitedEndDateTimeSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool unlimitedEndDateTimeSpecified { - get { - return this.unlimitedEndDateTimeFieldSpecified; - } - set { - this.unlimitedEndDateTimeFieldSpecified = value; - } - } - - /// The AdRuleStatus of the ad rule. This attribute is - /// read-only and defaults to AdRuleStatus#INACTIVE. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 8)] - public AdRuleStatus status { - get { - return this.statusField; - } - set { - this.statusField = value; - this.statusSpecified = true; - } - } - - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool statusSpecified { - get { - return this.statusFieldSpecified; - } - set { - this.statusFieldSpecified = value; - } - } - - /// The FrequencyCapBehavior of the AdRule. This attribute is optional and defaults to FrequencyCapBehavior#DEFER. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 9)] - public FrequencyCapBehavior frequencyCapBehavior { - get { - return this.frequencyCapBehaviorField; - } - set { - this.frequencyCapBehaviorField = value; - this.frequencyCapBehaviorSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool frequencyCapBehaviorSpecified { - get { - return this.frequencyCapBehaviorFieldSpecified; - } - set { - this.frequencyCapBehaviorFieldSpecified = value; - } - } - - /// This AdRule object's frequency cap for the maximum - /// impressions per stream. This attribute is optional and defaults to 0. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 10)] - public int maxImpressionsPerLineItemPerStream { - get { - return this.maxImpressionsPerLineItemPerStreamField; - } - set { - this.maxImpressionsPerLineItemPerStreamField = value; - this.maxImpressionsPerLineItemPerStreamSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool maxImpressionsPerLineItemPerStreamSpecified { - get { - return this.maxImpressionsPerLineItemPerStreamFieldSpecified; - } - set { - this.maxImpressionsPerLineItemPerStreamFieldSpecified = value; - } - } - - /// This AdRule object's frequency cap for the maximum - /// impressions per pod. This attribute is optional and defaults to 0. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 11)] - public int maxImpressionsPerLineItemPerPod { - get { - return this.maxImpressionsPerLineItemPerPodField; - } - set { - this.maxImpressionsPerLineItemPerPodField = value; - this.maxImpressionsPerLineItemPerPodSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool maxImpressionsPerLineItemPerPodSpecified { - get { - return this.maxImpressionsPerLineItemPerPodFieldSpecified; - } - set { - this.maxImpressionsPerLineItemPerPodFieldSpecified = value; - } - } - - /// This AdRule object's pre-roll slot. This attribute is - /// required. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 12)] - public BaseAdRuleSlot preroll { - get { - return this.prerollField; - } - set { - this.prerollField = value; - } - } - - /// This AdRule object's mid-roll slot. This attribute is - /// required. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 13)] - public BaseAdRuleSlot midroll { - get { - return this.midrollField; - } - set { - this.midrollField = value; - } - } - - /// This AdRule object's post-roll slot. This attribute is - /// required. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 14)] - public BaseAdRuleSlot postroll { - get { - return this.postrollField; - } - set { - this.postrollField = value; - } - } - } - - - /// Represents the status of ad rules and ad rule slots. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum AdRuleStatus { - /// Created and ready to be served. Is user-visible. - /// - ACTIVE = 0, - /// Paused, user-visible. - /// - INACTIVE = 1, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 3, - } - - - /// Types of behavior for frequency caps within ad rules. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum FrequencyCapBehavior { - /// Turn on at least one of the frequency caps. - /// - TURN_ON = 0, - /// Turn off all frequency caps. - /// - TURN_OFF = 1, - /// Defer frequency cap decisions to the next ad rule in priority order. - /// - DEFER = 2, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 3, - } - - - /// Errors related to podding fields in ad rule slots. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class PoddingError : ApiError { - private PoddingErrorReason reasonField; - - private bool reasonFieldSpecified; - - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public PoddingErrorReason reason { - get { - return this.reasonField; - } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { - return this.reasonFieldSpecified; - } - set { - this.reasonFieldSpecified = value; - } - } - } - - - /// Describes reason for PoddingErrors. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "PoddingError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum PoddingErrorReason { - /// Invalid podding type NONE, but has podding fields filled in. Podding types are - /// defined in com.google.ads.publisher.domain.entity.adrule.export.PoddingType. - /// - INVALID_PODDING_TYPE_NONE = 0, - /// Invalid podding type STANDARD, but doesn't specify the max ads in pod and max ad - /// duration podding fields. - /// - INVALID_PODDING_TYPE_STANDARD = 1, - /// Invalid podding type OPTIMIZED, but doesn't specify pod duration. - /// - INVALID_OPTIMIZED_POD_WITHOUT_DURATION = 2, - /// Invalid optimized pod that does not specify a valid max ads in pod, which must - /// either be a positive number or -1 to signify that there is no maximum. - /// - INVALID_OPTIMIZED_POD_WITHOUT_ADS = 3, - /// Min pod ad duration is greater than max pod ad duration. - /// - INVALID_POD_DURATION_RANGE = 4, - } - - - /// Lists all errors associated with ad rule targeting. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class AdRuleTargetingError : ApiError { - private AdRuleTargetingErrorReason reasonField; - - private bool reasonFieldSpecified; - - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public AdRuleTargetingErrorReason reason { - get { - return this.reasonField; - } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { - return this.reasonFieldSpecified; - } - set { - this.reasonFieldSpecified = value; - } - } - } - - - /// Describes reasons for AdRuleTargetingError ad rule targeting - /// errors. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AdRuleTargetingError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum AdRuleTargetingErrorReason { - /// Cannot target video positions. - /// - VIDEO_POSITION_TARGETING_NOT_ALLOWED = 0, - /// As part of COPPA requirements, custom targeting for session ad rules requires - /// exact custom value matching. - /// - EXACT_CUSTOM_VALUE_TARGETING_REQUIRED = 2, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 1, - } - - - /// Errors related to ad rule slots. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class AdRuleSlotError : ApiError { - private AdRuleSlotErrorReason reasonField; - - private bool reasonFieldSpecified; - - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public AdRuleSlotErrorReason reason { - get { - return this.reasonField; - } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { - return this.reasonFieldSpecified; - } - set { - this.reasonFieldSpecified = value; - } - } - } - - - /// Describes reason for AdRuleSlotErrors. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AdRuleSlotError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum AdRuleSlotErrorReason { - /// Has a different status than the ad rule to which it belongs. - /// - DIFFERENT_STATUS_THAN_AD_RULE = 0, - /// Min video ad duration is greater than max video ad duration. - /// - INVALID_VIDEO_AD_DURATION_RANGE = 1, - /// Video mid-roll frequency type other than NONE for pre-roll or post-roll. - /// - INVALID_VIDEO_MIDROLL_FREQUENCY_TYPE = 2, - /// Invalid format for video mid-roll frequency when expecting a CSV list of - /// numbers. Valid formats are the following:
  • empty
  • - ///
  • comma-separated list of numbers (time milliseconds or cue points)
  • a - /// single number (every n milliseconds or cue points, or one specific time / cue - /// point)
- ///
- MALFORMED_VIDEO_MIDROLL_FREQUENCY_CSV = 3, - /// Invalid format for video mid-roll frequency when expecting a single number only, - /// e.g., every n seconds or every n cue points. - /// - MALFORMED_VIDEO_MIDROLL_FREQUENCY_SINGLE_NUMBER = 4, - /// Min overlay ad duration is greater than max overlay ad duration. - /// - INVALID_OVERLAY_AD_DURATION_RANGE = 5, - /// Overlay mid-roll frequency type other than NONE for pre-roll or post-roll. - /// - INVALID_OVERLAY_MIDROLL_FREQUENCY_TYPE = 6, - /// Invalid format for overlay mid-roll frequency for list of numbers. See valid - /// formats above. - /// - MALFORMED_OVERLAY_MIDROLL_FREQUENCY_CSV = 7, - /// Invalid format for overlay mid-roll frequency for a single number. - /// - MALFORMED_OVERLAY_MIDROLL_FREQUENCY_SINGLE_NUMBER = 8, - /// Non-positive bumper duration when expecting a positive number. - /// - INVALID_BUMPER_MAX_DURATION = 9, - /// At most one mid-roll can be set to disallow ads. - /// - TOO_MANY_MIDROLL_SLOTS_WITHOUT_ADS = 11, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 10, - } - - - /// Errors associated with ad rule priorities. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class AdRulePriorityError : ApiError { - private AdRulePriorityErrorReason reasonField; - - private bool reasonFieldSpecified; - - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public AdRulePriorityErrorReason reason { - get { - return this.reasonField; - } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { - return this.reasonFieldSpecified; - } - set { - this.reasonFieldSpecified = value; - } - } - } - - - /// Reasons for an AdRulePriorityError. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AdRulePriorityError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum AdRulePriorityErrorReason { - /// Ad rules must have unique priorities. - /// - DUPLICATE_PRIORITY = 0, - /// One or more priorities are missing. - /// - PRIORITIES_NOT_SEQUENTIAL = 1, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 2, - } - - - /// Errors related to ad rule frequency caps - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class AdRuleFrequencyCapError : ApiError { - private AdRuleFrequencyCapErrorReason reasonField; - - private bool reasonFieldSpecified; - - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public AdRuleFrequencyCapErrorReason reason { - get { - return this.reasonField; - } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { - return this.reasonFieldSpecified; - } - set { - this.reasonFieldSpecified = value; - } - } - } - - - /// Describes reason for AdRuleFrequencyCapErrors. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AdRuleFrequencyCapError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum AdRuleFrequencyCapErrorReason { - /// The ad rule specifies that frequency caps should be turned on, but then none of - /// the frequency caps have actually been set. - /// - NO_FREQUENCY_CAPS_SPECIFIED_WHEN_FREQUENCY_CAPS_TURNED_ON = 0, - /// The ad rule specifies that frequency caps should not be turned on, but then some - /// frequency caps were actually set. - /// - FREQUENCY_CAPS_SPECIFIED_WHEN_FREQUENCY_CAPS_TURNED_OFF = 1, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 2, - } - - - /// Errors ad rule break template objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class AdRuleError : ApiError { - private AdRuleErrorReason reasonField; - - private bool reasonFieldSpecified; - - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public AdRuleErrorReason reason { - get { - return this.reasonField; - } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { - return this.reasonFieldSpecified; - } - set { - this.reasonFieldSpecified = value; - } - } - } - - - /// Describes reason for AdRuleErrors. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AdRuleError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum AdRuleErrorReason { - /// The name contains unsupported or reserved characters. - /// - NAME_CONTAINS_INVALID_CHARACTERS = 0, - /// The break template must have exactly one flexible ad spot. - /// - BREAK_TEMPLATE_MUST_HAVE_EXACTLY_ONE_FLEXIBLE_AD_SPOT = 1, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 2, - } - - - /// Lists all errors associated with ad rule start and end dates. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class AdRuleDateError : ApiError { - private AdRuleDateErrorReason reasonField; - - private bool reasonFieldSpecified; - - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public AdRuleDateErrorReason reason { - get { - return this.reasonField; - } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { - return this.reasonFieldSpecified; - } - set { - this.reasonFieldSpecified = value; - } - } - } - - - /// Describes reasons for AdRuleDateErrors. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AdRuleDateError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum AdRuleDateErrorReason { - /// Cannot create a new ad rule with a start date in the past. - /// - START_DATE_TIME_IS_IN_PAST = 0, - /// Cannot update an existing ad rule that has already completely passed with a new - /// end date that is still in the past. - /// - END_DATE_TIME_IS_IN_PAST = 1, - /// End date must be after the start date. - /// - END_DATE_TIME_NOT_AFTER_START_TIME = 2, - /// DateTimes after 1 January 2037 are not supported. - /// - END_DATE_TIME_TOO_LATE = 3, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 4, - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", ConfigurationName = "Google.Api.Ads.AdManager.v202311.AdRuleServiceInterface")] - public interface AdRuleServiceInterface - { - // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Wrappers.AdRuleService.createAdRulesResponse createAdRules(Wrappers.AdRuleService.createAdRulesRequest request); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task createAdRulesAsync(Wrappers.AdRuleService.createAdRulesRequest request); - - // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Wrappers.AdRuleService.createAdSpotsResponse createAdSpots(Wrappers.AdRuleService.createAdSpotsRequest request); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task createAdSpotsAsync(Wrappers.AdRuleService.createAdSpotsRequest request); - - // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Wrappers.AdRuleService.createBreakTemplatesResponse createBreakTemplates(Wrappers.AdRuleService.createBreakTemplatesRequest request); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task createBreakTemplatesAsync(Wrappers.AdRuleService.createBreakTemplatesRequest request); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v202311.AdRulePage getAdRulesByStatement(Google.Api.Ads.AdManager.v202311.Statement statement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getAdRulesByStatementAsync(Google.Api.Ads.AdManager.v202311.Statement statement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v202311.AdSpotPage getAdSpotsByStatement(Google.Api.Ads.AdManager.v202311.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getAdSpotsByStatementAsync(Google.Api.Ads.AdManager.v202311.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v202311.BreakTemplatePage getBreakTemplatesByStatement(Google.Api.Ads.AdManager.v202311.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getBreakTemplatesByStatementAsync(Google.Api.Ads.AdManager.v202311.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v202311.UpdateResult performAdRuleAction(Google.Api.Ads.AdManager.v202311.AdRuleAction adRuleAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task performAdRuleActionAsync(Google.Api.Ads.AdManager.v202311.AdRuleAction adRuleAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement); - - // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Wrappers.AdRuleService.updateAdRulesResponse updateAdRules(Wrappers.AdRuleService.updateAdRulesRequest request); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task updateAdRulesAsync(Wrappers.AdRuleService.updateAdRulesRequest request); - - // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Wrappers.AdRuleService.updateAdSpotsResponse updateAdSpots(Wrappers.AdRuleService.updateAdSpotsRequest request); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task updateAdSpotsAsync(Wrappers.AdRuleService.updateAdSpotsRequest request); - - // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Wrappers.AdRuleService.updateBreakTemplatesResponse updateBreakTemplates(Wrappers.AdRuleService.updateBreakTemplatesRequest request); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task updateBreakTemplatesAsync(Wrappers.AdRuleService.updateBreakTemplatesRequest request); - } - - - /// A AdSpot is a targetable entity used in the creation of AdRule objects.

A ad spot contains a variable number of ads - /// and has constraints (ad duration, reservation type, etc) on the ads that can - /// appear in it.

- ///
- [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class AdSpot { - private long idField; - - private bool idFieldSpecified; - - private string nameField; - - private string displayNameField; - - private bool customSpotField; - - private bool customSpotFieldSpecified; - - private bool flexibleField; - - private bool flexibleFieldSpecified; - - private long maxDurationMillisField; - - private bool maxDurationMillisFieldSpecified; - - private int maxNumberOfAdsField; - - private bool maxNumberOfAdsFieldSpecified; - - private AdSpotTargetingType targetingTypeField; - - private bool targetingTypeFieldSpecified; - - private bool backfillBlockedField; - - private bool backfillBlockedFieldSpecified; - - private LineItemType[] allowedLineItemTypesField; - - private bool inventorySharingBlockedField; - - private bool inventorySharingBlockedFieldSpecified; - - /// The unique ID of the AdSpot. This value is readonly and is - /// assigned by Google. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public long id { - get { - return this.idField; - } - set { - this.idField = value; - this.idSpecified = true; - } - } - - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool idSpecified { - get { - return this.idFieldSpecified; - } - set { - this.idFieldSpecified = value; - } - } - - /// Name of the AdSpot. The name is case insenstive and can be - /// referenced in ad tags. This value is required if customSpot is - /// true, and cannot be set otherwise.

You can use alphanumeric characters and - /// symbols other than the following: ", ', =, !, +, #, *, ~, ;, ^, (, ), <, - /// >, [, ], the white space character.

- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public string name { - get { - return this.nameField; - } - set { - this.nameField = value; - } - } - - /// Descriptive name for the AdSpot.This value is optional if - /// customSpot is true, and cannot be set otherwise. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public string displayName { - get { - return this.displayNameField; - } - set { - this.displayNameField = value; - } - } - - /// Whether this ad spot is a custom spot. This field is optional and defaults to - /// false.

Custom spots can be reused and targeted in the targeting picker.

- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public bool customSpot { - get { - return this.customSpotField; - } - set { - this.customSpotField = value; - this.customSpotSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool customSpotSpecified { - get { - return this.customSpotFieldSpecified; - } - set { - this.customSpotFieldSpecified = value; - } - } - - /// Whether this ad spot is a flexible spot. This field is optional and defaults to - /// false.

Flexible spots are allowed to have no max number of ads.

- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public bool flexible { - get { - return this.flexibleField; - } - set { - this.flexibleField = value; - this.flexibleSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool flexibleSpecified { - get { - return this.flexibleFieldSpecified; - } - set { - this.flexibleFieldSpecified = value; - } - } - - /// The maximum total duration for this AdSpot. This field is - /// optional, defaults to 0, and supports precision to the nearest second. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 5)] - public long maxDurationMillis { - get { - return this.maxDurationMillisField; - } - set { - this.maxDurationMillisField = value; - this.maxDurationMillisSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool maxDurationMillisSpecified { - get { - return this.maxDurationMillisFieldSpecified; - } - set { - this.maxDurationMillisFieldSpecified = value; - } - } - - /// The maximum number of ads allowed in the AdSpot. This field - /// is optional and defaults to O.

A maxNumberOfAds of 0 means that - /// there is no maximum for the number of ads in the ad spot. No max ads is only - /// supported for ad spots that have flexible set to true.

- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 6)] - public int maxNumberOfAds { - get { - return this.maxNumberOfAdsField; - } - set { - this.maxNumberOfAdsField = value; - this.maxNumberOfAdsSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool maxNumberOfAdsSpecified { - get { - return this.maxNumberOfAdsFieldSpecified; - } - set { - this.maxNumberOfAdsFieldSpecified = value; - } - } - - /// The SubpodTargetingType determines how this ad - /// spot can be targeted. This field is required. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 7)] - public AdSpotTargetingType targetingType { - get { - return this.targetingTypeField; - } - set { - this.targetingTypeField = value; - this.targetingTypeSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool targetingTypeSpecified { - get { - return this.targetingTypeFieldSpecified; - } - set { - this.targetingTypeFieldSpecified = value; - } - } - - /// Whether backfill is blocked in this ad spot. This field is optional and defaults - /// to false. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 8)] - public bool backfillBlocked { - get { - return this.backfillBlockedField; - } - set { - this.backfillBlockedField = value; - this.backfillBlockedSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool backfillBlockedSpecified { - get { - return this.backfillBlockedFieldSpecified; - } - set { - this.backfillBlockedFieldSpecified = value; - } - } - - /// The set of line item types that may appear in the ad spot. This field is - /// optional and defaults to an empty set, which means that all types are allowed. - ///

Note, backfill reservation types are controlled via the - /// field.

- ///
- [System.Xml.Serialization.XmlElementAttribute("allowedLineItemTypes", Order = 9)] - public LineItemType[] allowedLineItemTypes { - get { - return this.allowedLineItemTypesField; - } - set { - this.allowedLineItemTypesField = value; - } - } - - /// Whether inventory sharing is blocked in this ad spot. This field is optional and - /// defaults to false. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 10)] - public bool inventorySharingBlocked { - get { - return this.inventorySharingBlockedField; - } - set { - this.inventorySharingBlockedField = value; - this.inventorySharingBlockedSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool inventorySharingBlockedSpecified { - get { - return this.inventorySharingBlockedFieldSpecified; - } - set { - this.inventorySharingBlockedFieldSpecified = value; - } - } - } - - - /// Defines the targeting behavior of an ad spot. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum AdSpotTargetingType { - /// Line items not targeting this ad spot explicitly may serve in it. - /// - NOT_REQUIRED = 0, - /// Only line items targeting this ad spots explicitly may serve in it - /// - EXPLICITLY_TARGETED = 1, - /// If house ads are an allowed reservation type, they may serve in the ad spot - /// regardless of whether they explicitly target it. Ads of other reservation types - /// (whose type is allowed in the ad spot), may serve in the ad spot only if - /// explicitly targeted. - /// - EXPLICITLY_TARGETED_EXCEPT_HOUSE = 2, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 3, - } - - - /// A BreakTemplate defines what kinds of ads show at - /// which positions within a pod.

Break templates are made up of AdSpot objects. A break template must have a single ad spot - /// that has AdSpot#flexible set to true.

- ///
- [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class BreakTemplate { - private long idField; - - private bool idFieldSpecified; - - private bool customTemplateField; - - private bool customTemplateFieldSpecified; - - private string nameField; - - private string displayNameField; - - private BreakTemplateBreakTemplateMember[] breakTemplateMembersField; - - /// The unique ID of the BreakTemplate. This value is - /// readonly and is assigned by Google. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public long id { - get { - return this.idField; - } - set { - this.idField = value; - this.idSpecified = true; - } - } - - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool idSpecified { - get { - return this.idFieldSpecified; - } - set { - this.idFieldSpecified = value; - } - } - - /// Whether this is custom template. Custom templates get created outside of the ad - /// rule workflow and can be referenced in ad tags.

Only custom templates can - /// have names and display names.

- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public bool customTemplate { - get { - return this.customTemplateField; - } - set { - this.customTemplateField = value; - this.customTemplateSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool customTemplateSpecified { - get { - return this.customTemplateFieldSpecified; - } - set { - this.customTemplateFieldSpecified = value; - } - } - - /// Name of the BreakTemplate. The name is case - /// insenstive and can be referenced in ad tags. This value is required if - /// customTemplate is true, and cannot be set otherwise.

You can use - /// alphanumeric characters and symbols other than the following: ", ', =, !, +, #, - /// *, ~, ;, ^, (, ), <, >, [, ], the white space character.

- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public string name { - get { - return this.nameField; - } - set { - this.nameField = value; - } - } - - /// Descriptive name for the BreakTemplateDto. This - /// value is optional if customTemplate is true, and cannot be set - /// otherwise. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public string displayName { - get { - return this.displayNameField; - } - set { - this.displayNameField = value; - } - } - - /// The list of the BreakTemplateMember objects in - /// the order in which they should appear in the ad pod. Each BreakTemplateMember has a reference to a AdSpot, which defines what kinds of ads can appear at that - /// position, as well as other metadata that defines how each ad spot should be - /// filled. - /// - [System.Xml.Serialization.XmlElementAttribute("breakTemplateMembers", Order = 4)] - public BreakTemplateBreakTemplateMember[] breakTemplateMembers { - get { - return this.breakTemplateMembersField; - } - set { - this.breakTemplateMembersField = value; - } - } - } - - - /// A building block of a pod template. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "BreakTemplate.BreakTemplateMember", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class BreakTemplateBreakTemplateMember { - private long adSpotIdField; - - private bool adSpotIdFieldSpecified; - - private AdSpotFillType adSpotFillTypeField; - - private bool adSpotFillTypeFieldSpecified; - - /// The ID of the AdSpot that has the settings about what kinds - /// of ads can appear in this position of the BreakTemplate. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public long adSpotId { - get { - return this.adSpotIdField; - } - set { - this.adSpotIdField = value; - this.adSpotIdSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool adSpotIdSpecified { - get { - return this.adSpotIdFieldSpecified; - } - set { - this.adSpotIdFieldSpecified = value; - } - } - - /// The behavior for how the AdSpot should be filled in the - /// context of the BreakTemplate. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public AdSpotFillType adSpotFillType { - get { - return this.adSpotFillTypeField; - } - set { - this.adSpotFillTypeField = value; - this.adSpotFillTypeSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool adSpotFillTypeSpecified { - get { - return this.adSpotFillTypeFieldSpecified; - } - set { - this.adSpotFillTypeFieldSpecified = value; - } - } - } - - - /// The different options for how ad spots are filled. Only some allocations of ads - /// to subpods produce a valid final pod. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum AdSpotFillType { - /// If this ad spot is empty, the overall pod is invalid. - /// - REQUIRED = 0, - /// The ad spot is always "satisfied", whether empty or nonempty. - /// - OPTIONAL = 1, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 2, - } - - - /// Captures a page of AdRule objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class AdRulePage { - private int totalResultSetSizeField; - - private bool totalResultSetSizeFieldSpecified; - - private int startIndexField; - - private bool startIndexFieldSpecified; - - private AdRule[] resultsField; - - /// The size of the total result set to which this page belongs. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public int totalResultSetSize { - get { - return this.totalResultSetSizeField; - } - set { - this.totalResultSetSizeField = value; - this.totalResultSetSizeSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool totalResultSetSizeSpecified { - get { - return this.totalResultSetSizeFieldSpecified; - } - set { - this.totalResultSetSizeFieldSpecified = value; - } - } - - /// The absolute index in the total result set on which this page begins. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public int startIndex { - get { - return this.startIndexField; - } - set { - this.startIndexField = value; - this.startIndexSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool startIndexSpecified { - get { - return this.startIndexFieldSpecified; - } - set { - this.startIndexFieldSpecified = value; - } - } - - /// The collection of ad rules contained within this page. - /// - [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] - public AdRule[] results { - get { - return this.resultsField; - } - set { - this.resultsField = value; - } - } - } - - - /// Captures a page of AdSpot objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class AdSpotPage { - private int totalResultSetSizeField; - - private bool totalResultSetSizeFieldSpecified; - - private int startIndexField; - - private bool startIndexFieldSpecified; - - private AdSpot[] resultsField; - - /// The size of the total result set to which this page belongs. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public int totalResultSetSize { - get { - return this.totalResultSetSizeField; - } - set { - this.totalResultSetSizeField = value; - this.totalResultSetSizeSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool totalResultSetSizeSpecified { - get { - return this.totalResultSetSizeFieldSpecified; - } - set { - this.totalResultSetSizeFieldSpecified = value; - } - } - - /// The absolute index in the total result set on which this page begins. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public int startIndex { - get { - return this.startIndexField; - } - set { - this.startIndexField = value; - this.startIndexSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool startIndexSpecified { - get { - return this.startIndexFieldSpecified; - } - set { - this.startIndexFieldSpecified = value; - } - } - - /// The collection of ad spot contained within this page. - /// - [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] - public AdSpot[] results { - get { - return this.resultsField; - } - set { - this.resultsField = value; - } - } - } - - - /// Captures a page of BreakTemplate objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class BreakTemplatePage { - private int totalResultSetSizeField; - - private bool totalResultSetSizeFieldSpecified; - - private int startIndexField; - - private bool startIndexFieldSpecified; - - private BreakTemplate[] resultsField; - - /// The size of the total result set to which this page belongs. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public int totalResultSetSize { - get { - return this.totalResultSetSizeField; - } - set { - this.totalResultSetSizeField = value; - this.totalResultSetSizeSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool totalResultSetSizeSpecified { - get { - return this.totalResultSetSizeFieldSpecified; - } - set { - this.totalResultSetSizeFieldSpecified = value; - } - } - - /// The absolute index in the total result set on which this page begins. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public int startIndex { - get { - return this.startIndexField; - } - set { - this.startIndexField = value; - this.startIndexSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool startIndexSpecified { - get { - return this.startIndexFieldSpecified; - } - set { - this.startIndexFieldSpecified = value; - } - } - - /// The collection of break templates contained within this page. - /// - [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] - public BreakTemplate[] results { - get { - return this.resultsField; - } - set { - this.resultsField = value; - } - } - } - - - /// Represents the actions that can be performed on AdRule - /// objects. - /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(DeleteAdRules))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(DeactivateAdRules))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ActivateAdRules))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public abstract partial class AdRuleAction { - } - - - /// The action used for deleting AdRule objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class DeleteAdRules : AdRuleAction { - } - - - /// The action used for pausing AdRule objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class DeactivateAdRules : AdRuleAction { - } - - - /// The action used for resuming AdRule objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ActivateAdRules : AdRuleAction { - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public interface AdRuleServiceInterfaceChannel : Google.Api.Ads.AdManager.v202311.AdRuleServiceInterface, System.ServiceModel.IClientChannel - { - } - - - /// Provides methods for creating, updating and retrieving AdRule objects.

Ad rules contain data that the ad server - /// uses to generate a playlist of video ads.

- ///
- [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public partial class AdRuleService : AdManagerSoapClient, IAdRuleService { - /// Creates a new instance of the class. - /// - public AdRuleService() { - } - - /// Creates a new instance of the class. - /// - public AdRuleService(string endpointConfigurationName) - : base(endpointConfigurationName) { - } - - /// Creates a new instance of the class. - /// - public AdRuleService(string endpointConfigurationName, string remoteAddress) - : base(endpointConfigurationName, remoteAddress) { - } - - /// Creates a new instance of the class. - /// - public AdRuleService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) - : base(endpointConfigurationName, remoteAddress) { - } - - /// Creates a new instance of the class. - /// - public AdRuleService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) - : base(binding, remoteAddress) { - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.AdRuleService.createAdRulesResponse Google.Api.Ads.AdManager.v202311.AdRuleServiceInterface.createAdRules(Wrappers.AdRuleService.createAdRulesRequest request) { - return base.Channel.createAdRules(request); - } - - /// Creates new AdRule objects. - /// - public virtual Google.Api.Ads.AdManager.v202311.AdRule[] createAdRules(Google.Api.Ads.AdManager.v202311.AdRule[] adRules) { - Wrappers.AdRuleService.createAdRulesRequest inValue = new Wrappers.AdRuleService.createAdRulesRequest(); - inValue.adRules = adRules; - Wrappers.AdRuleService.createAdRulesResponse retVal = ((Google.Api.Ads.AdManager.v202311.AdRuleServiceInterface)(this)).createAdRules(inValue); - return retVal.rval; - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202311.AdRuleServiceInterface.createAdRulesAsync(Wrappers.AdRuleService.createAdRulesRequest request) { - return base.Channel.createAdRulesAsync(request); - } - - public virtual System.Threading.Tasks.Task createAdRulesAsync(Google.Api.Ads.AdManager.v202311.AdRule[] adRules) { - Wrappers.AdRuleService.createAdRulesRequest inValue = new Wrappers.AdRuleService.createAdRulesRequest(); - inValue.adRules = adRules; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202311.AdRuleServiceInterface)(this)).createAdRulesAsync(inValue)).Result.rval); - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.AdRuleService.createAdSpotsResponse Google.Api.Ads.AdManager.v202311.AdRuleServiceInterface.createAdSpots(Wrappers.AdRuleService.createAdSpotsRequest request) { - return base.Channel.createAdSpots(request); - } - - /// Creates new AdSpot objects. - /// - public virtual Google.Api.Ads.AdManager.v202311.AdSpot[] createAdSpots(Google.Api.Ads.AdManager.v202311.AdSpot[] adSpots) { - Wrappers.AdRuleService.createAdSpotsRequest inValue = new Wrappers.AdRuleService.createAdSpotsRequest(); - inValue.adSpots = adSpots; - Wrappers.AdRuleService.createAdSpotsResponse retVal = ((Google.Api.Ads.AdManager.v202311.AdRuleServiceInterface)(this)).createAdSpots(inValue); - return retVal.rval; - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202311.AdRuleServiceInterface.createAdSpotsAsync(Wrappers.AdRuleService.createAdSpotsRequest request) { - return base.Channel.createAdSpotsAsync(request); - } - - public virtual System.Threading.Tasks.Task createAdSpotsAsync(Google.Api.Ads.AdManager.v202311.AdSpot[] adSpots) { - Wrappers.AdRuleService.createAdSpotsRequest inValue = new Wrappers.AdRuleService.createAdSpotsRequest(); - inValue.adSpots = adSpots; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202311.AdRuleServiceInterface)(this)).createAdSpotsAsync(inValue)).Result.rval); - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.AdRuleService.createBreakTemplatesResponse Google.Api.Ads.AdManager.v202311.AdRuleServiceInterface.createBreakTemplates(Wrappers.AdRuleService.createBreakTemplatesRequest request) { - return base.Channel.createBreakTemplates(request); - } - - /// Creates new breakTemplate objects. - /// - public virtual Google.Api.Ads.AdManager.v202311.BreakTemplate[] createBreakTemplates(Google.Api.Ads.AdManager.v202311.BreakTemplate[] breakTemplate) { - Wrappers.AdRuleService.createBreakTemplatesRequest inValue = new Wrappers.AdRuleService.createBreakTemplatesRequest(); - inValue.breakTemplate = breakTemplate; - Wrappers.AdRuleService.createBreakTemplatesResponse retVal = ((Google.Api.Ads.AdManager.v202311.AdRuleServiceInterface)(this)).createBreakTemplates(inValue); - return retVal.rval; - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202311.AdRuleServiceInterface.createBreakTemplatesAsync(Wrappers.AdRuleService.createBreakTemplatesRequest request) { - return base.Channel.createBreakTemplatesAsync(request); - } - - public virtual System.Threading.Tasks.Task createBreakTemplatesAsync(Google.Api.Ads.AdManager.v202311.BreakTemplate[] breakTemplate) { - Wrappers.AdRuleService.createBreakTemplatesRequest inValue = new Wrappers.AdRuleService.createBreakTemplatesRequest(); - inValue.breakTemplate = breakTemplate; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202311.AdRuleServiceInterface)(this)).createBreakTemplatesAsync(inValue)).Result.rval); - } - - /// Gets an AdRulePage of AdRule - /// objects that satisfy the given Statement#query. The following - /// fields are supported for filtering: - /// - /// - /// - /// - ///
PQL - /// Property Object Property
id AdRule#id (AdRule#adRuleId beginning in v201702)
name AdRule#name
priority AdRule#priority
status AdRule#status
- ///
- public virtual Google.Api.Ads.AdManager.v202311.AdRulePage getAdRulesByStatement(Google.Api.Ads.AdManager.v202311.Statement statement) { - return base.Channel.getAdRulesByStatement(statement); - } - - public virtual System.Threading.Tasks.Task getAdRulesByStatementAsync(Google.Api.Ads.AdManager.v202311.Statement statement) { - return base.Channel.getAdRulesByStatementAsync(statement); - } - - /// Gets a AdSpotPage of AdSpot - /// objects that satisfy the given Statement#query. - /// - public virtual Google.Api.Ads.AdManager.v202311.AdSpotPage getAdSpotsByStatement(Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.getAdSpotsByStatement(filterStatement); - } - - public virtual System.Threading.Tasks.Task getAdSpotsByStatementAsync(Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.getAdSpotsByStatementAsync(filterStatement); - } - - /// Gets a BreakTemplatePage of BreakTemplate objects that satisfy the given Statement#query. - /// - public virtual Google.Api.Ads.AdManager.v202311.BreakTemplatePage getBreakTemplatesByStatement(Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.getBreakTemplatesByStatement(filterStatement); - } - - public virtual System.Threading.Tasks.Task getBreakTemplatesByStatementAsync(Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.getBreakTemplatesByStatementAsync(filterStatement); - } - - /// Performs actions on AdRule objects that match the given Statement#query. - /// - public virtual Google.Api.Ads.AdManager.v202311.UpdateResult performAdRuleAction(Google.Api.Ads.AdManager.v202311.AdRuleAction adRuleAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.performAdRuleAction(adRuleAction, filterStatement); - } - - public virtual System.Threading.Tasks.Task performAdRuleActionAsync(Google.Api.Ads.AdManager.v202311.AdRuleAction adRuleAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.performAdRuleActionAsync(adRuleAction, filterStatement); - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.AdRuleService.updateAdRulesResponse Google.Api.Ads.AdManager.v202311.AdRuleServiceInterface.updateAdRules(Wrappers.AdRuleService.updateAdRulesRequest request) { - return base.Channel.updateAdRules(request); - } - - /// Updates the specified AdRule objects. - /// - public virtual Google.Api.Ads.AdManager.v202311.AdRule[] updateAdRules(Google.Api.Ads.AdManager.v202311.AdRule[] adRules) { - Wrappers.AdRuleService.updateAdRulesRequest inValue = new Wrappers.AdRuleService.updateAdRulesRequest(); - inValue.adRules = adRules; - Wrappers.AdRuleService.updateAdRulesResponse retVal = ((Google.Api.Ads.AdManager.v202311.AdRuleServiceInterface)(this)).updateAdRules(inValue); - return retVal.rval; - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202311.AdRuleServiceInterface.updateAdRulesAsync(Wrappers.AdRuleService.updateAdRulesRequest request) { - return base.Channel.updateAdRulesAsync(request); - } - - public virtual System.Threading.Tasks.Task updateAdRulesAsync(Google.Api.Ads.AdManager.v202311.AdRule[] adRules) { - Wrappers.AdRuleService.updateAdRulesRequest inValue = new Wrappers.AdRuleService.updateAdRulesRequest(); - inValue.adRules = adRules; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202311.AdRuleServiceInterface)(this)).updateAdRulesAsync(inValue)).Result.rval); - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.AdRuleService.updateAdSpotsResponse Google.Api.Ads.AdManager.v202311.AdRuleServiceInterface.updateAdSpots(Wrappers.AdRuleService.updateAdSpotsRequest request) { - return base.Channel.updateAdSpots(request); - } - - /// Updates the specified AdSpot objects. - /// - public virtual Google.Api.Ads.AdManager.v202311.AdSpot[] updateAdSpots(Google.Api.Ads.AdManager.v202311.AdSpot[] adSpots) { - Wrappers.AdRuleService.updateAdSpotsRequest inValue = new Wrappers.AdRuleService.updateAdSpotsRequest(); - inValue.adSpots = adSpots; - Wrappers.AdRuleService.updateAdSpotsResponse retVal = ((Google.Api.Ads.AdManager.v202311.AdRuleServiceInterface)(this)).updateAdSpots(inValue); - return retVal.rval; - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202311.AdRuleServiceInterface.updateAdSpotsAsync(Wrappers.AdRuleService.updateAdSpotsRequest request) { - return base.Channel.updateAdSpotsAsync(request); - } - - public virtual System.Threading.Tasks.Task updateAdSpotsAsync(Google.Api.Ads.AdManager.v202311.AdSpot[] adSpots) { - Wrappers.AdRuleService.updateAdSpotsRequest inValue = new Wrappers.AdRuleService.updateAdSpotsRequest(); - inValue.adSpots = adSpots; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202311.AdRuleServiceInterface)(this)).updateAdSpotsAsync(inValue)).Result.rval); - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.AdRuleService.updateBreakTemplatesResponse Google.Api.Ads.AdManager.v202311.AdRuleServiceInterface.updateBreakTemplates(Wrappers.AdRuleService.updateBreakTemplatesRequest request) { - return base.Channel.updateBreakTemplates(request); - } - - /// Updates the specified breakTemplate objects. - /// - public virtual Google.Api.Ads.AdManager.v202311.BreakTemplate[] updateBreakTemplates(Google.Api.Ads.AdManager.v202311.BreakTemplate[] breakTemplate) { - Wrappers.AdRuleService.updateBreakTemplatesRequest inValue = new Wrappers.AdRuleService.updateBreakTemplatesRequest(); - inValue.breakTemplate = breakTemplate; - Wrappers.AdRuleService.updateBreakTemplatesResponse retVal = ((Google.Api.Ads.AdManager.v202311.AdRuleServiceInterface)(this)).updateBreakTemplates(inValue); - return retVal.rval; - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202311.AdRuleServiceInterface.updateBreakTemplatesAsync(Wrappers.AdRuleService.updateBreakTemplatesRequest request) { - return base.Channel.updateBreakTemplatesAsync(request); - } - - public virtual System.Threading.Tasks.Task updateBreakTemplatesAsync(Google.Api.Ads.AdManager.v202311.BreakTemplate[] breakTemplate) { - Wrappers.AdRuleService.updateBreakTemplatesRequest inValue = new Wrappers.AdRuleService.updateBreakTemplatesRequest(); - inValue.breakTemplate = breakTemplate; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202311.AdRuleServiceInterface)(this)).updateBreakTemplatesAsync(inValue)).Result.rval); - } - } - namespace Wrappers.ReportService - { - } - /// An error for an exception that occurred while running the report. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ReportError : ApiError { - private ReportErrorReason reasonField; - - private bool reasonFieldSpecified; - - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public ReportErrorReason reason { - get { - return this.reasonField; - } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { - return this.reasonFieldSpecified; - } - set { - this.reasonFieldSpecified = value; - } - } - } - - - /// The reasons for report error. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ReportError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum ReportErrorReason { - /// Default ReportError when the reason is not among any already - /// defined. - /// - DEFAULT = 0, - /// User does not have permission to access the report. - /// - REPORT_ACCESS_NOT_ALLOWED = 1, - /// User does not have permission to view one or more Dimension. - /// - DIMENSION_VIEW_NOT_ALLOWED = 2, - /// User has no permission to view one or more attributes. - /// - ATTRIBUTE_VIEW_NOT_ALLOWED = 4, - /// User does not have permission to view one or more Column. - /// - COLUMN_VIEW_NOT_ALLOWED = 5, - /// The report query exceeds the maximum allowed number of characters. - /// - REPORT_QUERY_TOO_LONG = 7, - /// Invalid report job state for the given operation. - /// - INVALID_OPERATION_FOR_REPORT_STATE = 8, - /// Invalid Dimension objects specified. - /// - INVALID_DIMENSIONS = 9, - /// The attribute ID(s) are not valid. - /// - INVALID_ATTRIBUTES = 10, - /// The API error when running the report with CmsMetadataKeyDimension. There are three - /// reasons for this error.
  1. ReportQuery#dimensions contains Dimension#CONTENT_CMS_METADATA, but ReportQuery#cmsMetadataKeyIds is - /// empty.
  2. ReportQuery#cmsMetadataKeyIds is - /// non-empty, but ReportQuery#dimensions does - /// not contain Dimension#CONTENT_CMS_METADATA.
  3. - ///
  4. The ReportQuery#cmsMetadataKeyIds specified - /// along with the Dimension#CONTENT_CMS_METADATA are not valid, - /// i.e., these IDs are not reportable cms metadata key defined by the - /// publisher.
- ///
- INVALID_CMS_METADATA_DIMENSIONS = 28, - /// Invalid Column objects specified. - /// - INVALID_COLUMNS = 12, - /// Invalid DimensionFilter objects specified. - /// - INVALID_DIMENSION_FILTERS = 13, - /// Invalid date. - /// - INVALID_DATE = 14, - /// The start date for running the report should not be later than the end date. - /// - END_DATE_TIME_NOT_AFTER_START_TIME = 15, - /// The start date for running the report should not be more than three years before - /// now. - /// - START_DATE_MORE_THAN_THREE_YEARS_AGO = 26, - /// The list of Dimension and Column - /// objects cannot be empty. - /// - NOT_NULL = 16, - /// Attribute has to be selected in combination with dimensions. - /// - ATTRIBUTES_NOT_SUPPORTED_FOR_REQUEST = 17, - /// The provided report violates one or more constraints, which govern - /// incompatibilities and requirements between different report properties. Some - /// reasons for constraint violations include:
  • Not all Column objects requested are supported for the given set of Dimension objects.
  • The report's date range is not - /// compatible with the given set of Column objects.
  • - ///
  • The report's TimeZoneType is not compatible with - /// the given set of Column and Dimension - /// objects (version 201802 and later).
  • The report's currency is not - /// compatible with the given set of Column objects.
- /// For versions 201911 and later, this is only returned when some or all of the Column objects are not supported for the requested Dimension objects. - ///
- COLUMNS_NOT_SUPPORTED_FOR_REQUESTED_DIMENSIONS = 18, - /// The report's date range is not compatible with the requested Dimension and Column objects. - /// - DATE_RANGE_NOT_SUPPORTED_FOR_REQUESTED_REPORT = 29, - /// The report's TimeZoneType is not compatible with the - /// requested Column and Dimension - /// objects. - /// - TIME_ZONE_TYPE_NOT_SUPPORTED_FOR_REQUESTED_REPORT = 30, - /// The report's currency is not compatible with the requested Column objects. - /// - CURRENCY_CODE_NOT_SUPPORTED_FOR_REQUESTED_REPORT = 31, - /// Failed to store/cache a report. - /// - FAILED_TO_STORE_REPORT = 19, - /// The requested report does not exist. - /// - REPORT_NOT_FOUND = 20, - /// User has no permission to view in another network. - /// - SR_CANNOT_RUN_REPORT_IN_ANOTHER_NETWORK = 21, - /// The report's AdUnitView is not compatible with the - /// requested Dimension and Column - /// objects. - /// - AD_UNIT_VIEW_NOT_SUPPORTED_FOR_REQUESTED_REPORT = 32, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 25, - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", ConfigurationName = "Google.Api.Ads.AdManager.v202311.ReportServiceInterface")] - public interface ReportServiceInterface - { - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - string getReportDownloadURL(long reportJobId, Google.Api.Ads.AdManager.v202311.ExportFormat exportFormat); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getReportDownloadURLAsync(long reportJobId, Google.Api.Ads.AdManager.v202311.ExportFormat exportFormat); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - string getReportDownloadUrlWithOptions(long reportJobId, Google.Api.Ads.AdManager.v202311.ReportDownloadOptions reportDownloadOptions); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getReportDownloadUrlWithOptionsAsync(long reportJobId, Google.Api.Ads.AdManager.v202311.ReportDownloadOptions reportDownloadOptions); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v202311.ReportJobStatus getReportJobStatus(long reportJobId); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getReportJobStatusAsync(long reportJobId); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v202311.SavedQueryPage getSavedQueriesByStatement(Google.Api.Ads.AdManager.v202311.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getSavedQueriesByStatementAsync(Google.Api.Ads.AdManager.v202311.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v202311.ReportJob runReportJob(Google.Api.Ads.AdManager.v202311.ReportJob reportJob); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task runReportJobAsync(Google.Api.Ads.AdManager.v202311.ReportJob reportJob); - } - - - /// The file formats available for creating the report. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum ExportFormat { - /// The report file is generated as a list of Tab Separated Values. - /// - TSV = 0, - /// The report file is generated as a list of tab-separated values for Excel. - /// - TSV_EXCEL = 5, - /// The report file is generated as a list of Comma Separated Values, to be used - /// with automated machine processing.

  • There is no pretty printing for - /// the output, and no total row.
  • Column headers are the qualified name - /// e.g. "Dimension.ORDER_NAME".
  • Network currency Monetary amounts are - /// represented as micros in the currency of the - /// network.
  • Starting from v201705, local currency Monetary amounts are - /// represented as currency symbol + ' ' + micros.
  • Dates are formatted - /// according to the ISO 8601 standard YYYY-MM-DD
  • DateTimes are formatted - /// according to the ISO 8601 standard YYYY-MM-DDThh:mm:ss[+-]hh:mm

- ///
- CSV_DUMP = 2, - /// The report file is generated as XML. - /// - XML = 3, - /// The report file is generated as an Office Open XML spreadsheet designed for - /// Excel 2007+. - /// - XLSX = 4, - } - - - /// Represents the options for an API report download request. See ReportService#getReportDownloadUrlWithOptions. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ReportDownloadOptions { - private ExportFormat exportFormatField; - - private bool exportFormatFieldSpecified; - - private bool includeReportPropertiesField; - - private bool includeReportPropertiesFieldSpecified; - - private bool includeTotalsRowField; - - private bool includeTotalsRowFieldSpecified; - - private bool useGzipCompressionField; - - private bool useGzipCompressionFieldSpecified; - - /// The ExportFormat used to generate the report. Default - /// value is ExportFormat#CSV_DUMP. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public ExportFormat exportFormat { - get { - return this.exportFormatField; - } - set { - this.exportFormatField = value; - this.exportFormatSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool exportFormatSpecified { - get { - return this.exportFormatFieldSpecified; - } - set { - this.exportFormatFieldSpecified = value; - } - } - - /// Whether or not to include the report properties (e.g. network, user, date - /// generated...) in the generated report. Default is false. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public bool includeReportProperties { - get { - return this.includeReportPropertiesField; - } - set { - this.includeReportPropertiesField = value; - this.includeReportPropertiesSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool includeReportPropertiesSpecified { - get { - return this.includeReportPropertiesFieldSpecified; - } - set { - this.includeReportPropertiesFieldSpecified = value; - } - } - - /// Whether or not to include the totals row. Default is true for all formats except - /// ExportFormat#CSV_DUMP. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public bool includeTotalsRow { - get { - return this.includeTotalsRowField; - } - set { - this.includeTotalsRowField = value; - this.includeTotalsRowSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool includeTotalsRowSpecified { - get { - return this.includeTotalsRowFieldSpecified; - } - set { - this.includeTotalsRowFieldSpecified = value; - } - } - - /// Whether or not to compress the report file to a gzip file. Default is true. - ///

Regardless of value, gzip http compression is available from the URL by - /// normal means.

- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public bool useGzipCompression { - get { - return this.useGzipCompressionField; - } - set { - this.useGzipCompressionField = value; - this.useGzipCompressionSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool useGzipCompressionSpecified { - get { - return this.useGzipCompressionFieldSpecified; - } - set { - this.useGzipCompressionFieldSpecified = value; - } - } - } - - - /// Represents the status of a ReportJob running on the - /// server. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum ReportJobStatus { - /// The ReportJob has completed successfully and is ready to - /// download. - /// - COMPLETED = 0, - /// The ReportJob is still being executed. - /// - IN_PROGRESS = 1, - /// The ReportJob has failed to run to completion. - /// - FAILED = 2, - } - - - /// A page of SavedQuery objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class SavedQueryPage { - private int totalResultSetSizeField; - - private bool totalResultSetSizeFieldSpecified; - - private int startIndexField; - - private bool startIndexFieldSpecified; - - private SavedQuery[] resultsField; - - /// The size of the total result set to which this page belongs. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public int totalResultSetSize { - get { - return this.totalResultSetSizeField; - } - set { - this.totalResultSetSizeField = value; - this.totalResultSetSizeSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool totalResultSetSizeSpecified { - get { - return this.totalResultSetSizeFieldSpecified; - } - set { - this.totalResultSetSizeFieldSpecified = value; - } - } - - /// The absolute index in the total result set on which this page begins. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public int startIndex { - get { - return this.startIndexField; - } - set { - this.startIndexField = value; - this.startIndexSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool startIndexSpecified { - get { - return this.startIndexFieldSpecified; - } - set { - this.startIndexFieldSpecified = value; - } - } - - /// The collection of saved queries contained within this page. - /// - [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] - public SavedQuery[] results { - get { - return this.resultsField; - } - set { - this.resultsField = value; - } - } - } - - - /// A saved ReportQuery representing the selection - /// criteria for running a report. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class SavedQuery { - private long idField; - - private bool idFieldSpecified; - - private string nameField; - - private ReportQuery reportQueryField; - - private bool isCompatibleWithApiVersionField; - - private bool isCompatibleWithApiVersionFieldSpecified; - - /// The ID of the saved query. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public long id { - get { - return this.idField; - } - set { - this.idField = value; - this.idSpecified = true; - } - } - - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool idSpecified { - get { - return this.idFieldSpecified; - } - set { - this.idFieldSpecified = value; - } - } - - /// The name of the saved query. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public string name { - get { - return this.nameField; - } - set { - this.nameField = value; - } - } - - /// The ReportQuery representing the selection criteria - /// for the saved query. This will be non-null if and only if SavedQuery#isCompatibleWithApiVersion - /// is true. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public ReportQuery reportQuery { - get { - return this.reportQueryField; - } - set { - this.reportQueryField = value; - } - } - - /// Whether or not the saved query is compatible with the current API version. This - /// will be true if and only if SavedQuery#reportQuery is non-null. A saved - /// query will be incompatible with the API if it uses columns, dimensions, or other - /// reporting features from the UI that are not available in the ReportQuery entity. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public bool isCompatibleWithApiVersion { - get { - return this.isCompatibleWithApiVersionField; - } - set { - this.isCompatibleWithApiVersionField = value; - this.isCompatibleWithApiVersionSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool isCompatibleWithApiVersionSpecified { - get { - return this.isCompatibleWithApiVersionFieldSpecified; - } - set { - this.isCompatibleWithApiVersionFieldSpecified = value; - } - } - } - - - /// A ReportQuery object allows you to specify the selection criteria - /// for generating a report. Only reports with at least one Column are supported. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ReportQuery { - private Dimension[] dimensionsField; - - private ReportQueryAdUnitView adUnitViewField; - - private bool adUnitViewFieldSpecified; - - private Column[] columnsField; - - private DimensionAttribute[] dimensionAttributesField; - - private long[] customFieldIdsField; - - private long[] cmsMetadataKeyIdsField; - - private long[] customDimensionKeyIdsField; - - private Date startDateField; - - private Date endDateField; - - private DateRangeType dateRangeTypeField; - - private bool dateRangeTypeFieldSpecified; - - private Statement statementField; - - private string reportCurrencyField; - - private TimeZoneType timeZoneTypeField; - - private bool timeZoneTypeFieldSpecified; - - /// The list of break-down types being requested in the report. The generated report - /// will contain the dimensions in the same order as requested. This field is - /// required. - /// - [System.Xml.Serialization.XmlElementAttribute("dimensions", Order = 0)] - public Dimension[] dimensions { - get { - return this.dimensionsField; - } - set { - this.dimensionsField = value; - } - } - - /// The ad unit view for the report. Defaults to AdUnitView#TOP_LEVEL. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public ReportQueryAdUnitView adUnitView { - get { - return this.adUnitViewField; - } - set { - this.adUnitViewField = value; - this.adUnitViewSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool adUnitViewSpecified { - get { - return this.adUnitViewFieldSpecified; - } - set { - this.adUnitViewFieldSpecified = value; - } - } - - /// The list of trafficking statistics and revenue information being requested in - /// the report. The generated report will contain the columns in the same order as - /// requested. This field is required. - /// - [System.Xml.Serialization.XmlElementAttribute("columns", Order = 2)] - public Column[] columns { - get { - return this.columnsField; - } - set { - this.columnsField = value; - } - } - - /// The list of break-down attributes being requested in this report. Some DimensionAttribute values can only be used with - /// certain Dimension values that must be included in the #dimensions attribute. The generated report will contain - /// the attributes in the same order as requested. - /// - [System.Xml.Serialization.XmlElementAttribute("dimensionAttributes", Order = 3)] - public DimensionAttribute[] dimensionAttributes { - get { - return this.dimensionAttributesField; - } - set { - this.dimensionAttributesField = value; - } - } - - /// The list of CustomField#id being requested in this - /// report. To add a CustomField to the report, you must - /// include its corresponding Dimension, determined by the - /// CustomField#entityType, as a dimension. - /// - /// - /// - /// - ///
CustomFieldEntityType#entityType
CustomFieldEntityType#LINE_ITEMDimension#LINE_ITEM_NAME
CustomFieldEntityType#ORDER Dimension#ORDER_NAME
CustomFieldEntityType#CREATIVEDimension#CREATIVE_NAME
- ///
- [System.Xml.Serialization.XmlElementAttribute("customFieldIds", Order = 4)] - public long[] customFieldIds { - get { - return this.customFieldIdsField; - } - set { - this.customFieldIdsField = value; - } - } - - /// The list of content CMS metadata key IDs being - /// requested in this report. Each of these IDs must have been defined in the CMS metadata key. This will include dimensions in the - /// form of CMS_METADATA_KEY[id]_ID and where where - /// ID is the ID of the CMS metadata - /// value and is the name.

To add IDs, you must include Dimension#CMS_METADATA in #dimensions, and specify a non-empty list of content CMS - /// metadata key IDs. The order of content CMS metadata columns in the report - /// correspond to the place of Dimension#CMS_METADATA in #dimensions. For example, if #dimensions contains the following dimensions in the - /// order: Dimension#ADVERTISER_NAME, Dimension#CMS_METADATA and Dimension#COUNTRY_NAME, and #cmsMetadataKeyIds contains the following IDs in - /// the order: 1001 and 1002. The order of dimensions in the report will be: - /// Dimension.ADVERTISER_NAME, Dimension.CMS_METADATA_KEY[1001]_VALUE, - /// Dimension.CMS_METADATA_KEY[1002]_VALUE, Dimension.COUNTRY_NAME, - /// Dimension.ADVERTISER_ID, Dimension.CMS_METADATA_KEY[1001]_ID, - /// Dimension.CMS_METADATA_KEY[1002]_ID, Dimension.COUNTRY_CRITERIA_ID

- ///
- [System.Xml.Serialization.XmlElementAttribute("cmsMetadataKeyIds", Order = 5)] - public long[] cmsMetadataKeyIds { - get { - return this.cmsMetadataKeyIdsField; - } - set { - this.cmsMetadataKeyIdsField = value; - } - } - - /// The list of custom dimension custom targeting key IDs being requested in this report. This will - /// include dimensions in the form of and where - /// ID is the ID of the custom - /// targeting value and VALUE is the name.

To add IDs, you must include Dimension#CUSTOM_DIMENSION in #dimensions, and specify a non-empty list of custom - /// targeting key IDs. The order of cusotm dimension columns in the report - /// correspond to the place of Dimension#CUSTOM_DIMENSION in #dimensions. For example, if #dimensions contains the following dimensions in the - /// order: Dimension#ADVERTISER_NAME, Dimension#CUSTOM_DIMENSION and Dimension#COUNTRY_NAME, and #customCriteriaCustomTargetingKeyIds - /// contains the following IDs in the order: 1001 and 1002. The order of dimensions - /// in the report will be: Dimension.ADVERTISER_NAME, - /// Dimension.TOP_LEVEL_DIMENSION_KEY[1001]_VALUE, - /// Dimension.TOP_LEVEL_DIMENSION_KEY[1002]_VALUE, Dimension.COUNTRY_NAME, - /// Dimension.ADVERTISER_ID, Dimension.TOP_LEVEL_DIMENSION_KEY[1001]_ID, - /// Dimension.TOP_LEVEL_DIMENSION_KEY[1002]_ID, Dimension.COUNTRY_CRITERIA_ID.

- ///
- [System.Xml.Serialization.XmlElementAttribute("customDimensionKeyIds", Order = 6)] - public long[] customDimensionKeyIds { - get { - return this.customDimensionKeyIdsField; - } - set { - this.customDimensionKeyIdsField = value; - } - } - - /// The start date from which the reporting information is gathered. The - /// ReportQuery#dateRangeType field must be set to DateRangeType#CUSTOM_DATE in order to use - /// this. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 7)] - public Date startDate { - get { - return this.startDateField; - } - set { - this.startDateField = value; - } - } - - /// The end date upto which the reporting information is gathered. The - /// ReportQuery#dateRangeType field must be set to DateRangeType#CUSTOM_DATE in order to use - /// this. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 8)] - public Date endDate { - get { - return this.endDateField; - } - set { - this.endDateField = value; - } - } - - /// The period of time for which the reporting data is being generated. In order to - /// define custom time periods, set this to DateRangeType#CUSTOM_DATE. If set to DateRangeType#CUSTOM_DATE, then ReportQuery#startDate and ReportQuery#endDate will be used. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 9)] - public DateRangeType dateRangeType { - get { - return this.dateRangeTypeField; - } - set { - this.dateRangeTypeField = value; - this.dateRangeTypeSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool dateRangeTypeSpecified { - get { - return this.dateRangeTypeFieldSpecified; - } - set { - this.dateRangeTypeFieldSpecified = value; - } - } - - /// Specifies a filter to use for reporting on data. This filter will be used in - /// conjunction (joined with an AND statement) with the date range selected through - /// #dateRangeType, #startDate, and #endDate. The - /// syntax currently allowed for Statement#query is
[WHERE <condition> {AND <condition> ...}]
- ///

<condition>
#x160;#x160;#x160;#x160; := <property> = - /// <value>
<condition>
- /// #x160;#x160;#x160;#x160; := <property> = <bind - /// variable>
<condition> := <property> IN - /// <list>
<bind variable> := :<name>
where property is the enumeration name of a Dimension - /// that can be filtered.

For example, the statement "WHERE LINE_ITEM_ID IN - /// (34344, 23235)" can be used to generate a report for a specific set of line - /// items

Filtering on IDs is highly recommended over filtering on names, - /// especially for geographical entities. When filtering on names, matching is case - /// sensitive.

- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 10)] - public Statement statement { - get { - return this.statementField; - } - set { - this.statementField = value; - } - } - - /// The currency for revenue metrics. Defaults to the network currency if left - /// null. The supported currency codes can be found in this Help Center - /// article. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 11)] - public string reportCurrency { - get { - return this.reportCurrencyField; - } - set { - this.reportCurrencyField = value; - } - } - - [System.Xml.Serialization.XmlElementAttribute(Order = 12)] - public TimeZoneType timeZoneType { - get { - return this.timeZoneTypeField; - } - set { - this.timeZoneTypeField = value; - this.timeZoneTypeSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool timeZoneTypeSpecified { - get { - return this.timeZoneTypeFieldSpecified; - } - set { - this.timeZoneTypeFieldSpecified = value; - } - } - } - - - /// Dimension provides the break-down and filterable types available - /// for running a ReportJob. Aggregate and percentage - /// columns will be calculated based on these groupings. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum Dimension { - /// Breaks down reporting data by month and year in the network time zone. Can be - /// used to filter on month using ISO 4601 format 'YYYY-MM'.

Corresponds to - /// "Month and year" in the Ad Manager UI. Compatible with any of the following - /// report types: Historical, Future sell-through, Reach, Partner finance, YouTube - /// consolidated.

- ///
- MONTH_AND_YEAR = 0, - /// Breaks down reporting data by week of the year in the network time zone. Cannot - /// be used for filtering.

Corresponds to "Week" in the Ad Manager UI. Compatible - /// with any of the following report types: Historical, Future sell-through, Reach, - /// YouTube consolidated.

- ///
- WEEK = 1, - /// Breaks down reporting data by date in the network time zone. Can be used to - /// filter by date using ISO 8601's format 'YYYY-MM-DD'".

Corresponds to "Date" - /// in the Ad Manager UI. Compatible with any of the following report types: - /// Historical, Future sell-through, Reach, Ad speed, Real-time video, YouTube - /// consolidated.

- ///
- DATE = 2, - /// Breaks down reporting data by day of the week in the network time zone. Can be - /// used to filter by day of the week using the index of the day (from 1 for Monday - /// is 1 to 7 for Sunday).

Corresponds to "Day of week" in the Ad Manager UI. - /// Compatible with any of the following report types: Historical, Future - /// sell-through, Reach, YouTube consolidated.

- ///
- DAY = 3, - /// Breaks down reporting data by hour of the day in the network time zone. Can be - /// used to filter by hour of the day (from 0 to 23).

Corresponds to "Hour" in - /// the Ad Manager UI. Compatible with any of the following report types: - /// Historical, Real-time video.

- ///
- HOUR = 4, - /// Breaks down reporting data by date in the PT time zone. Can be used to filter by - /// date using ISO 8601's format 'YYYY-MM-DD'". Can only be used when time zone type - /// is PACIFIC.

Compatible with the "Historical" report type.

- ///
- DATE_PT = 308, - /// Breaks down reporting data by week of the year in the PT time zone. Cannot be - /// used for filtering. Can only be used when time zone type is PACIFIC. - ///

Compatible with the "Historical" report type.

- ///
- WEEK_PT = 309, - /// Breaks down reporting data by month and year in the PT time zone. Can be used to - /// filter on month using ISO 4601 format 'YYYY-MM'. Can only be used when time zone - /// type is PACIFIC.

Compatible with the "Historical" report type.

- ///
- MONTH_YEAR_PT = 310, - /// Breaks down reporting data by day of the week in the PT time zone. Can be used - /// to filter by day of the week using the index of the day (from 1 for Monday is 1 - /// to 7 for Sunday). Can only be used when time zone type is PACIFIC.

Compatible - /// with the "Historical" report type.

- ///
- DAY_OF_WEEK_PT = 311, - /// Breaks down reporting data by LineItem#id. Can be used - /// to filter by LineItem#id.

Compatible with any of - /// the following report types: Historical, Future sell-through, Reach, Ad speed, - /// Real-time video.

- ///
- LINE_ITEM_ID = 5, - /// Breaks down reporting data by line item. LineItem#name and LineItem#id - /// are automatically included as columns in the report. Can be used to filter by LineItem#name.

Corresponds to "Line item" in the Ad - /// Manager UI. Compatible with any of the following report types: Historical, - /// Future sell-through, Reach, Ad speed, Real-time video.

- ///
- LINE_ITEM_NAME = 6, - /// Breaks down reporting data by LineItem#lineItemType. Can be used to filter by - /// line item type using LineItemType enumeration names. - ///

Corresponds to "Line item type" in the Ad Manager UI. Compatible with any of - /// the following report types: Historical, Future sell-through, Reach, Ad speed, - /// Real-time video.

- ///
- LINE_ITEM_TYPE = 7, - /// Breaks down reporting data by Order#id. Can be used to - /// filter by Order#id.

Compatible with any of the - /// following report types: Historical, Future sell-through, Reach, Ad speed.

- ///
- ORDER_ID = 8, - /// Breaks down reporting data by order. Order#name and Order#id are automatically included as columns in the - /// report. Can be used to filter by Order#name. - ///

Corresponds to "Order" in the Ad Manager UI. Compatible with any of the - /// following report types: Historical, Future sell-through, Reach, Ad speed.

- ///
- ORDER_NAME = 9, - /// Delivery status of the order. Not available as a dimension to report on, but - /// exists as a dimension in order to filter on it using PQL. Valid values are - /// 'STARTED', 'NOT_STARTED' and 'COMPLETED'.

Compatible with the "Historical" - /// report type.

- ///
- ORDER_DELIVERY_STATUS = 142, - /// Breaks down reporting data by advertising company Company#id. Can be used to filter by Company#id.

Compatible with any of the following report - /// types: Historical, Future sell-through, Reach, Ad speed.

- ///
- ADVERTISER_ID = 10, - /// Breaks down reporting data by advertising company. Company#name and Company#id are - /// automatically included as columns in the report. Can be used to filter by Company#name.

Corresponds to "Advertiser" in the Ad - /// Manager UI. Compatible with any of the following report types: Historical, - /// Future sell-through, Reach, Ad speed.

- ///
- ADVERTISER_NAME = 11, - /// The network that provided the ad for SDK ad mediation.

If selected for a - /// report, that report will include only SDK mediation ads and will not contain - /// non-SDK mediation ads.

SDK mediation ads are ads for mobile devices. They - /// have a list of ad networks which can provide ads to serve. Not every ad network - /// will have an ad to serve so the device will try each network one-by-one until it - /// finds an ad network with an ad to serve. The ad network that ends up serving the - /// ad will appear here. Note that this id does not correlate to anything in the - /// companies table and is not the same id as is served by #ADVERTISER_ID.

Compatible with the - /// "Historical" report type.

- ///
- AD_NETWORK_ID = 12, - /// The name of the network defined in #AD_NETWORK_ID. - ///

Corresponds to "Ad network name" in the Ad Manager UI. Compatible with the - /// "Historical" report type.

- ///
- AD_NETWORK_NAME = 13, - /// Breaks down reporting data by salesperson User#id. Can be - /// used to filter by User#id.

Compatible with any of the - /// following report types: Historical, Future sell-through, Reach.

- ///
- SALESPERSON_ID = 14, - /// Breaks down reporting data by salesperson. User#name and - /// User#id of the salesperson are automatically included as - /// columns in the report. Can be used to filter by User#name.

Corresponds to "Salesperson" in the Ad - /// Manager UI. Compatible with any of the following report types: Historical, - /// Future sell-through, Reach.

+ ADSENSE_LINE_ITEM_LEVEL_WITHOUT_CPD_PERCENT_REVENUE = 43, + /// The ratio of revenue to the total revenue earned from the CPM, CPC and CPD ads + /// delivered by AdSense for line item-level dynamic allocation. Represented as a + /// percentage. /// - SALESPERSON_NAME = 15, - /// Breaks down reporting data by Creative#id or creative - /// set id (master's Creative#id) if the creative is part - /// of a creative set. Can be used to filter by Creative#id.

Compatible with any of the following - /// report types: Historical, Ad speed, Real-time video.

+ ADSENSE_LINE_ITEM_LEVEL_WITH_CPD_PERCENT_REVENUE = 44, + /// The number of impressions an Ad Exchange ad delivered for line item-level + /// dynamic allocation.

Corresponds to "Ad Exchange impressions" in the Ad + /// Manager UI. Compatible with the "Historical" report type.

///
- CREATIVE_ID = 16, - /// Breaks down reporting data by creative. Creative#name and Creative#id - /// are automatically included as columns in the report. Can be used to filter by Creative#name.

Corresponds to "Creative" in the Ad - /// Manager UI. Compatible with any of the following report types: Historical, Ad - /// speed, Real-time video.

+ AD_EXCHANGE_LINE_ITEM_LEVEL_IMPRESSIONS = 45, + /// The number of bids associated with the selected dimensions.

Corresponds to + /// "Bids" in the Ad Manager UI. Compatible with the "Historical" report type.

///
- CREATIVE_NAME = 17, - /// Breaks down reporting data by creative type.

Corresponds to "Creative type" - /// in the Ad Manager UI. Compatible with any of the following report types: - /// Historical, Ad speed.

+ BID_COUNT = 668, + /// The average CPM associated with these bids.

Corresponds to "Average bid CPM" + /// in the Ad Manager UI. Compatible with the "Historical" report type.

///
- CREATIVE_TYPE = 18, - /// Breaks down reporting data by creative billing type.

Corresponds to "Creative - /// billing type" in the Ad Manager UI. Compatible with the "Historical" report + BID_AVERAGE_CPM = 669, + ///

Number of times a yield partner is asked to return bid to fill a yield group + /// request.

Only applies to Open Bidding; not Mediation.

This data is + /// available for 45 days after the event.

Corresponds to "Yield group + /// callouts" in the Ad Manager UI. Compatible with the "Historical" report /// type.

///
- CREATIVE_BILLING_TYPE = 19, - /// Breaks down reporting data by custom event ID.

Compatible with the - /// "Historical" report type.

- ///
- CUSTOM_EVENT_ID = 20, - /// Breaks down reporting data by custom event name.

Corresponds to "Custom - /// event" in the Ad Manager UI. Compatible with the "Historical" report type.

+ YIELD_GROUP_CALLOUTS = 670, + /// Number of times a yield group buyer successfully returned a bid in response to a + /// yield group callout, even if that response is "no bids."

Only applies to Open + /// Bidding; not Mediation.

This data is available for 45 days after the + /// event.

Corresponds to "Yield group successful responses" in the Ad + /// Manager UI. Compatible with the "Historical" report type.

///
- CUSTOM_EVENT_NAME = 21, - /// Breaks down reporting data by custom event type (timer/exit/counter). - ///

Corresponds to "Custom event type" in the Ad Manager UI. Compatible with the - /// "Historical" report type.

+ YIELD_GROUP_SUCCESSFUL_RESPONSES = 671, + /// Number of bids received from Open Bidding buyers, regardless of whether the + /// returned bid competes in an auction. This number might be greater than Yield + /// group callouts because a buyer can return multiple bids.

Only applies to Open + /// Bidding; not Mediation.

This data is available for 45 days after the + /// event.

Corresponds to "Yield group bids" in the Ad Manager UI. Compatible + /// with the "Historical" report type.

///
- CUSTOM_EVENT_TYPE = 22, - /// Breaks down reporting data by Creative#size. Cannot - /// be used for filtering.

Corresponds to "Creative size" in the Ad Manager UI. + YIELD_GROUP_BIDS = 672, + ///

Number of bids received from Open Bidding buyers that competed in the auction. + ///

Some bids may be filtered out before the auction runs if the bidder's + /// response omits required fields or contains a creative that violates Google's + /// policies. Learn more about policies and enforcement.

Only applies to Open + /// Bidding; not Mediation.

This data is available for 45 days after the + /// event.

Corresponds to "Yield group bids in auction" in the Ad Manager UI. /// Compatible with the "Historical" report type.

///
- CREATIVE_SIZE = 23, - /// Breaks down reporting data by AdUnit#id. Can be used to - /// filter by AdUnit#id. #AD_UNIT_NAME, i.e. AdUnit#name, is automatically included as a dimension in - /// the report.

Compatible with any of the following report types: Historical, - /// Future sell-through, Ad speed, Real-time video.

- ///
- AD_UNIT_ID = 24, - /// Breaks down reporting data by ad unit. AdUnit#name and - /// AdUnit#id are automatically included as columns in the - /// report. Can be used to filter by AdUnit#name. - ///

Corresponds to "Ad unit" in the Ad Manager UI. Compatible with any of the - /// following report types: Historical, Future sell-through, Ad speed, Real-time - /// video.

- ///
- AD_UNIT_NAME = 25, - /// Used to filter on all the descendants of an ad unit by AdUnit#id. Not available as a dimension to report on. - ///

Compatible with any of the following report types: Historical, Future - /// sell-through, Reach, Ad speed, Real-time video.

- ///
- PARENT_AD_UNIT_ID = 26, - /// Used to filter on all the descendants of an ad unit by AdUnit#name. Not available as a dimension to report on. - ///

Compatible with any of the following report types: Historical, Future - /// sell-through, Reach, Ad speed, Real-time video.

- ///
- PARENT_AD_UNIT_NAME = 27, - /// Breaks down reporting data by Placement#id. Can be - /// used to filter by Placement#id.

Compatible with - /// any of the following report types: Historical, Future sell-through, Reach.

- ///
- PLACEMENT_ID = 28, - /// Breaks down reporting data by placement. Placement#name and Placement#id are automatically included as columns in - /// the report. Can be used to filter by Placement#name.

Corresponds to "Placement" in the - /// Ad Manager UI. Compatible with any of the following report types: Historical, - /// Future sell-through, Reach.

- ///
- PLACEMENT_NAME = 29, - /// Status of the placement. Not available as a dimension to report on, but exists - /// as a dimension in order to filter on it using PQL. Can be used to filter on Placement#status by using InventoryStatus enumeration names.

Compatible with - /// any of the following report types: Historical, Future sell-through.

- ///
- PLACEMENT_STATUS = 143, - /// Breaks down reporting data by criteria predefined by Ad Manager like the - /// operating system, browser etc. Cannot be used for filtering.

Corresponds to - /// "Targeting" in the Ad Manager UI. Compatible with the "Historical" report - /// type.

- ///
- TARGETING = 30, - /// Breaks down reporting data by browser criteria predefined by Ad Manager. - ///

Corresponds to "Browser" in the Ad Manager UI. Compatible with the - /// "Historical" report type.

- ///
- BROWSER_NAME = 246, - /// The ID of the device category to which an ad is being targeted. Can be used to - /// filter by device category ID.

Compatible with any of the following report - /// types: Historical, Ad speed, Real-time video.

- ///
- DEVICE_CATEGORY_ID = 31, - /// The category of device (smartphone, feature phone, tablet, or desktop) to which - /// an ad is being targeted. Can be used to filter by device category name. - ///

Corresponds to "Device category" in the Ad Manager UI. Compatible with any of - /// the following report types: Historical, Ad speed, Real-time video.

- ///
- DEVICE_CATEGORY_NAME = 32, - /// Breaks down reporting data by country criteria ID. Can be used to filter by - /// country criteria ID.

Compatible with any of the following report types: - /// Historical, Future sell-through, Reach, Ad speed, YouTube consolidated.

+ YIELD_GROUP_BIDS_IN_AUCTION = 673, + /// Number of winning bids received from Open Bidding buyers, even when the winning + /// bid is placed at the end of a mediation for mobile apps chain.

Only applies + /// to Open Bidding; not Mediation.

This data is available for 45 days after + /// the event.

Corresponds to "Yield group auctions won" in the Ad Manager + /// UI. Compatible with the "Historical" report type.

///
- COUNTRY_CRITERIA_ID = 33, - /// Breaks down reporting data by country code.

Compatible with the "Historical" + YIELD_GROUP_AUCTIONS_WON = 674, + ///

Number of bid requests sent for each deal.

Must be broken down by + /// PROGRAMMATIC_DEAL_ID or .

Not tracked for + /// Programmatic Guaranteed deals (will show zero on those rows).

Corresponds + /// to "Deals bid requests" in the Ad Manager UI. Compatible with the "Historical" /// report type.

///
- COUNTRY_CODE = 257, - /// Breaks down reporting data by country name. The country name and the country - /// criteria ID are automatically included as columns in the report. Can be used to - /// filter by country name using the US English name.

Corresponds to "Country" in - /// the Ad Manager UI. Compatible with any of the following report types: - /// Historical, Future sell-through, Reach, Ad speed, YouTube consolidated.

- ///
- COUNTRY_NAME = 34, - /// Breaks down reporting data by region criteria ID. Can be used to filter by - /// region criteria ID.

Compatible with the "Historical" report type.

- ///
- REGION_CRITERIA_ID = 35, - /// Breaks down reporting data by region name. The region name and the region - /// criteria ID are automatically included as columns in the report. Can be used to - /// filter by region name using the US English name.

Corresponds to "Region" in - /// the Ad Manager UI. Compatible with the "Historical" report type.

- ///
- REGION_NAME = 36, - /// Breaks down reporting data by city criteria ID. Can be used to filter by city - /// criteria ID.

Compatible with the "Historical" report type.

+ DEALS_BID_REQUESTS = 675, + /// Number of bids placed on each deal.

Not tracked for Programmatic Guaranteed + /// deals (will show zero on those rows).

Corresponds to "Deals bids" in the + /// Ad Manager UI. Compatible with the "Historical" report type.

///
- CITY_CRITERIA_ID = 37, - /// Breaks down reporting data by city name. The city name and the city criteria ID - /// are automatically included as columns in the report. Can be used to filter by - /// city name using the US English name.

Corresponds to "City" in the Ad Manager - /// UI. Compatible with the "Historical" report type.

+ DEALS_BIDS = 676, + /// Bid rate for each deal.

Must be broken down by + /// PROGRAMMATIC_DEAL_ID or .

Not tracked for + /// Programmatic Guaranteed deals (will show N/A on those rows).

Corresponds + /// to "Deals bid rate" in the Ad Manager UI. Compatible with the "Historical" + /// report type.

///
- CITY_NAME = 38, - /// Breaks down reporting data by metro criteria ID. Can be used to filter by metro - /// criteria ID.

Compatible with the "Historical" report type.

+ DEALS_BID_RATE = 677, + /// Number of winning bids for each deal.

Not tracked for Programmatic Guaranteed + /// deals (will show zero on those rows).

Corresponds to "Deals winning bids" + /// in the Ad Manager UI. Compatible with the "Historical" report type.

///
- METRO_CRITERIA_ID = 39, - /// Breaks down reporting data by metro name. The metro name and the metro criteria - /// ID are automatically included as columns in the report. Can be used to filter by - /// metro name using the US English name.

Corresponds to "Metro" in the Ad + DEALS_WINNING_BIDS = 678, + ///

Win rate for each deal.

Not tracked for Programmatic Guaranteed deals (will + /// show N/A on those rows).

Corresponds to "Deals win rate" in the Ad /// Manager UI. Compatible with the "Historical" report type.

///
- METRO_NAME = 40, - /// Breaks down reporting data by postal code criteria ID. Can be used to filter by - /// postal code criteria ID.

Compatible with the "Historical" report type.

- ///
- POSTAL_CODE_CRITERIA_ID = 41, - /// Breaks down reporting data by postal code. The postal code and the postal code - /// criteria ID are automatically included as columns in the report. Can be used to - /// filter by postal code.

Corresponds to "Postal code" in the Ad Manager UI. - /// Compatible with the "Historical" report type.

- ///
- POSTAL_CODE = 42, - /// Breaks down reporting data by CustomTargetingValue#id. Can be used to - /// filter by CustomTargetingValue#id. - ///

Compatible with the "Historical" report type.

- ///
- CUSTOM_TARGETING_VALUE_ID = 43, - /// Breaks down reporting data by custom criteria. The CustomTargetingValue is displayed in the form: - /// #CUSTOM_TARGETING_VALUE_ID, i.e. - /// CustomTargetingValue#id is automatically - /// included as a column in the report. Cannot be used for filtering; use #CUSTOM_TARGETING_VALUE_ID instead. - ///

When using this Dimension, metrics for freeform key values are - /// only reported on when they are registered with .

Corresponds - /// to "Key-values" in the Ad Manager UI. Compatible with the "Historical" report - /// type.

+ DEALS_WIN_RATE = 679, + /// Number of matched yield group requests where a yield partner delivered their ad + /// to publisher inventory.

Corresponds to "Yield group impressions" in the Ad + /// Manager UI. Compatible with the "Historical" report type.

///
- CUSTOM_CRITERIA = 44, - /// Breaks down reporting data by activity ID. Can be used to filter by activity ID. - ///

Compatible with the "Historical" report type.

+ YIELD_GROUP_IMPRESSIONS = 680, + /// Total net revenue earned by a yield group, based upon the yield group estimated + /// CPM and yield group impressions recorded. This revenue already excludes Google + /// revenue share.

Corresponds to "Yield group estimated revenue" in the Ad + /// Manager UI. Compatible with the "Historical" report type.

///
- ACTIVITY_ID = 45, - /// Breaks down reporting data by activity. The activity name and the activity ID - /// are automatically included as columns in the report. Can be used to filter by - /// activity name.

Corresponds to "Activity" in the Ad Manager UI. Compatible + YIELD_GROUP_ESTIMATED_REVENUE = 681, + ///

The estimated net rate for yield groups or individual yield group partners. + ///

Corresponds to "Yield group estimated CPM" in the Ad Manager UI. Compatible /// with the "Historical" report type.

///
- ACTIVITY_NAME = 46, - /// Breaks down reporting data by activity group ID. Can be used to filter by - /// activity group ID.

Compatible with the "Historical" report type.

- ///
- ACTIVITY_GROUP_ID = 47, - /// Breaks down reporting data by activity group. The activity group name and the - /// activity group ID are automatically included as columns in the report. Can be - /// used to filter by activity group name.

Corresponds to "Activity group" in the - /// Ad Manager UI. Compatible with the "Historical" report type.

+ YIELD_GROUP_ESTIMATED_CPM = 682, + /// Yield group Mediation fill rate indicating how often a network fills an ad + /// request.

Corresponds to "Mediation fill rate" in the Ad Manager UI. + /// Compatible with the "Historical" report type.

///
- ACTIVITY_GROUP_NAME = 48, - /// Breaks down reporting data by Content#id. Can be used - /// to filter by Content#id.

Compatible with any of the - /// following report types: Historical, Future sell-through, YouTube - /// consolidated.

+ YIELD_GROUP_MEDIATION_FILL_RATE = 683, + /// Passbacks are counted when an ad network is given a chance to serve but does not + /// deliver an impression, and Ad Manager Mediation moves on to the next ad network + /// in the mediation chain.

Passbacks are not currently counted for the "Ad + /// server" demand channel.

Corresponds to "Mediation passbacks" in the Ad + /// Manager UI. Compatible with the "Historical" report type.

///
- CONTENT_ID = 49, - /// Breaks down reporting data by content. Content#name - /// and Content#id are automatically included as columns in - /// the report. Can be used to filter by Content#name. - ///

Corresponds to "Content" in the Ad Manager UI. Compatible with any of the - /// following report types: Historical, Future sell-through, YouTube - /// consolidated.

+ YIELD_GROUP_MEDIATION_PASSBACKS = 684, + /// Revenue per thousand impressions based on data collected by Ad Manager from + /// third-party ad network reports. Displays zero if data collection is not enabled. + ///

Corresponds to "Mediation third-party eCPM" in the Ad Manager UI. Compatible + /// with the "Historical" report type.

///
- CONTENT_NAME = 50, - /// Breaks down reporting data by ContentBundle#id. - /// Can be used to filter by ContentBundle#id. - ///

Compatible with any of the following report types: Historical, Future - /// sell-through, YouTube consolidated.

+ YIELD_GROUP_MEDIATION_THIRD_PARTY_ECPM = 685, + /// Total requests where a Mediation chain was served, even if none of the ad + /// networks delivered an impression.

Corresponds to "Mediation chains served" in + /// the Ad Manager UI. Compatible with the "Historical" report type.

///
- CONTENT_BUNDLE_ID = 51, - /// Breaks down reporting data by content bundle. ContentBundle#name and ContentBundle#id are automatically included as - /// columns in the report. Can be used to filter by ContentBundle#name.

Corresponds to "Content - /// bundle" in the Ad Manager UI. Compatible with any of the following report types: - /// Historical, Future sell-through, YouTube consolidated.

+ YIELD_GROUP_MEDIATION_CHAINS_SERVED = 686, + /// Mediation third-party average cost-per-thousand-impressions.

Compatible with + /// the "Historical" report type.

///
- CONTENT_BUNDLE_NAME = 52, - /// Breaks down reporting data by CustomTargetingKey#id.

Compatible with the + MEDIATION_THIRD_PARTY_ECPM = 431, + ///

The number of impressions an Ad Exchange ad delivered for line item-level + /// dynamic allocation by explicit custom criteria targeting.

Corresponds to "Ad + /// Exchange targeted impressions" in the Ad Manager UI. Compatible with the /// "Historical" report type.

///
- VIDEO_METADATA_KEY_ID = 204, - /// Breaks down reporting data by custom targeting key. CustomTargetingKey#name and CustomTargetingKey#id are automatically - /// included as columns in the report.

Corresponds to "Metadata key" in the Ad - /// Manager UI. Compatible with the "Historical" report type.

+ AD_EXCHANGE_LINE_ITEM_LEVEL_TARGETED_IMPRESSIONS = 77, + /// The number of clicks an Ad Exchange ad delivered for line item-level dynamic + /// allocation.

Corresponds to "Ad Exchange clicks" in the Ad Manager UI. + /// Compatible with the "Historical" report type.

///
- VIDEO_METADATA_KEY_NAME = 205, - /// Breaks down reporting data by CMS metadata. To use this dimension in API, a list - /// of cms metadata key IDs must be specified in ReportQuery#cmsMetadataKeyIds.

This - /// dimension can be used as a filter in the Statement in - /// PQL syntax: CMS_METADATA_KEY[keyId]_ID = CMS metadata value ID

For - /// example: WHERE CMS_METADATA_KEY[4242]_ID = 53423

+ AD_EXCHANGE_LINE_ITEM_LEVEL_CLICKS = 78, + /// The number of clicks an Ad Exchange ad delivered for line item-level dynamic + /// allocation by explicit custom criteria targeting.

Corresponds to "Ad Exchange + /// targeted clicks" in the Ad Manager UI. Compatible with the "Historical" report + /// type.

///
- CMS_METADATA = 236, - /// Breaks down reporting data by the fallback position of the video ad, i.e., - /// NON_FALLBACK, FALLBACK_POSITION_1, , etc. - /// Can be used for filtering.

Corresponds to "Fallback position" in the Ad - /// Manager UI. Compatible with the "Historical" report type.

+ AD_EXCHANGE_LINE_ITEM_LEVEL_TARGETED_CLICKS = 79, + /// The ratio of clicks an Ad Exchange ad delivered to the number of impressions it + /// delivered for line item-level dynamic allocation.

Corresponds to "Ad Exchange + /// CTR" in the Ad Manager UI. Compatible with the "Historical" report type.

///
- VIDEO_FALLBACK_POSITION = 54, - /// Breaks down reporting data by the position of the video ad within the video - /// stream, i.e., UNKNOWN_POSITION, PREROLL, - /// POSTROLL, UNKNOWN_MIDROLL, MIDROLL_1, - /// MIDROLL_2, etc. UNKNOWN_MIDROLL represents a midroll, - /// but which specific midroll is unknown. Can be used for filtering.

Corresponds - /// to "Position of pod" in the Ad Manager UI. Compatible with any of the following - /// report types: Historical, Real-time video.

+ AD_EXCHANGE_LINE_ITEM_LEVEL_CTR = 80, + /// The ratio of the number of impressions delivered to the total impressions + /// delivered by Ad Exchange for line item-level dynamic allocation. Represented as + /// a percentage.

Corresponds to "Ad Exchange impressions (%)" in the Ad Manager + /// UI. Compatible with the "Historical" report type.

///
- POSITION_OF_POD = 55, - /// Breaks down reporting data by the position of the video ad within the pod, i.e., - /// UNKNOWN_POSITION, POSITION_1, , etc. Can - /// be used for filtering.

Corresponds to "Position in pod" in the Ad Manager UI. - /// Compatible with the "Historical" report type.

+ AD_EXCHANGE_LINE_ITEM_LEVEL_PERCENT_IMPRESSIONS = 81, + /// The ratio of the number of clicks delivered to the total clicks delivered by Ad + /// Exchange for line item-level dynamic allocation. Represented as a percentage. + ///

Corresponds to "Ad Exchange clicks (%)" in the Ad Manager UI. Compatible with + /// the "Historical" report type.

///
- POSITION_IN_POD = 56, - /// Breaks down reporting data by AdSpot#id. Can be used to - /// filter by AdSpot#id.

Compatible with the "Historical" + AD_EXCHANGE_LINE_ITEM_LEVEL_PERCENT_CLICKS = 82, + ///

Revenue generated from Ad Exchange ads delivered for line item-level dynamic + /// allocation. Represented in publisher currency and time zone.

Corresponds to + /// "Ad Exchange revenue" in the Ad Manager UI. Compatible with the "Historical" /// report type.

///
- CUSTOM_SPOT_ID = 239, - /// Breaks down reporting data by content. AdSpot#name and - /// AdSpot#id are automatically included as columns in the - /// report. Can be used to filter by AdSpot#name. - ///

Corresponds to "Custom spot" in the Ad Manager UI. Compatible with the - /// "Historical" report type.

+ AD_EXCHANGE_LINE_ITEM_LEVEL_REVENUE = 83, + /// The ratio of revenue generated by Ad Exchange to the total revenue earned by CPM + /// and CPC ads delivered for line item-level dynamic allocation. Represented as a + /// percentage.

Corresponds to "Ad Exchange revenue (%)" in the Ad Manager UI. + /// Compatible with the "Historical" report type.

///
- CUSTOM_SPOT_NAME = 240, - /// Breaks down reporting data by video redirect vendor.

Corresponds to "Video - /// redirect third party" in the Ad Manager UI. Compatible with the "Historical" + AD_EXCHANGE_LINE_ITEM_LEVEL_WITHOUT_CPD_PERCENT_REVENUE = 84, + ///

The ratio of revenue generated by Ad Exchange to the total revenue earned by + /// CPM, CPC and CPD ads delivered for line item-level dynamic allocation. + /// Represented as a percentage. + /// + AD_EXCHANGE_LINE_ITEM_LEVEL_WITH_CPD_PERCENT_REVENUE = 85, + /// The average estimated cost-per-thousand-impressions earned from the delivery of + /// Ad Exchange ads for line item-level dynamic allocation.

Corresponds to "Ad + /// Exchange average eCPM" in the Ad Manager UI. Compatible with the "Historical" /// report type.

///
- VIDEO_REDIRECT_THIRD_PARTY = 206, - /// The filter to break down reporting data by video break type. Not available as a - /// dimension to report on.

Compatible with the "Historical" report type.

+ AD_EXCHANGE_LINE_ITEM_LEVEL_AVERAGE_ECPM = 86, + /// The total number of impressions delivered including line item-level dynamic + /// allocation.

Corresponds to "Total impressions" in the Ad Manager UI. + /// Compatible with the "Historical" report type.

///
- VIDEO_BREAK_TYPE = 227, - /// The filter to break down reporting data by video break type. Can only be used - /// with the following string values: "Unknown", "Single ad video request", - /// "Optimized pod video request". Not available as a dimension to report on. - ///

Compatible with the "Historical" report type.

+ TOTAL_LINE_ITEM_LEVEL_IMPRESSIONS = 88, + /// The total number of impressions delivered including line item-level dynamic + /// allocation by explicit custom criteria targeting.

Corresponds to "Total + /// targeted impressions" in the Ad Manager UI. Compatible with the "Historical" + /// report type.

///
- VIDEO_BREAK_TYPE_NAME = 228, - /// Breaks down reporting data by vast version type name.

Corresponds to "VAST - /// version" in the Ad Manager UI. Compatible with the "Historical" report type.

+ TOTAL_LINE_ITEM_LEVEL_TARGETED_IMPRESSIONS = 89, + /// The total number of clicks delivered including line item-level dynamic + /// allocation.

Corresponds to "Total clicks" in the Ad Manager UI. Compatible + /// with the "Historical" report type.

///
- VIDEO_VAST_VERSION = 207, - /// Breaks down reporting data by video request duration bucket.

Compatible with - /// the "Historical" report type.

+ TOTAL_LINE_ITEM_LEVEL_CLICKS = 92, + /// The total number of clicks delivered including line item-level dynamic + /// allocation by explicit custom criteria targeting

Corresponds to "Total + /// targeted clicks" in the Ad Manager UI. Compatible with the "Historical" report + /// type.

///
- VIDEO_AD_REQUEST_DURATION_ID = 229, - /// Breaks down reporting data by video request duration bucket name.

Corresponds - /// to "Video ad request duration" in the Ad Manager UI. Compatible with the + TOTAL_LINE_ITEM_LEVEL_TARGETED_CLICKS = 93, + ///

The ratio of total clicks on ads delivered by the ad servers to the total number + /// of impressions delivered for an ad including line item-level dynamic allocation. + ///

Corresponds to "Total CTR" in the Ad Manager UI. Compatible with the /// "Historical" report type.

///
- VIDEO_AD_REQUEST_DURATION = 230, - /// Breaks down reporting data by video placement.

Corresponds to "Video - /// Placement" in the Ad Manager UI. Compatible with the "Historical" report - /// type.

+ TOTAL_LINE_ITEM_LEVEL_CTR = 95, + /// The total CPM and CPC revenue generated by the ad servers including line + /// item-level dynamic allocation.

Corresponds to "Total CPM and CPC revenue" in + /// the Ad Manager UI. Compatible with the "Historical" report type.

///
- VIDEO_PLACEMENT_NAME = 247, - /// Breaks down reporting data by partner Company#id. - ///

Compatible with any of the following report types: Historical, Partner - /// finance.

+ TOTAL_LINE_ITEM_LEVEL_CPM_AND_CPC_REVENUE = 98, + /// The total CPM, CPC and CPD revenue generated by the ad servers including line + /// item-level dynamic allocation.

Corresponds to "Total CPM, CPC, CPD, and vCPM + /// revenue" in the Ad Manager UI. Compatible with the "Historical" report type.

///
- PARTNER_MANAGEMENT_PARTNER_ID = 57, - /// Breaks down reporting data by partner Company#name - /// and Company#id are automatically included as columns in - /// the report.

Corresponds to "Partner" in the Ad Manager UI. Compatible with - /// any of the following report types: Historical, Partner finance.

+ TOTAL_LINE_ITEM_LEVEL_ALL_REVENUE = 99, + /// Estimated cost-per-thousand-impressions (eCPM) of CPM and CPC ads delivered by + /// the ad servers including line item-level dynamic allocation.

Corresponds to + /// "Total average eCPM" in the Ad Manager UI. Compatible with the "Historical" + /// report type.

///
- PARTNER_MANAGEMENT_PARTNER_NAME = 58, - /// Breaks down reporting data by partner label Label#id. - ///

Compatible with any of the following report types: Historical, Partner - /// finance.

+ TOTAL_LINE_ITEM_LEVEL_WITHOUT_CPD_AVERAGE_ECPM = 102, + /// Estimated cost-per-thousand-impressions (eCPM) of CPM, CPC and CPD ads delivered + /// by the ad servers including line item-level dynamic allocation. /// - PARTNER_MANAGEMENT_PARTNER_LABEL_ID = 59, - /// Breaks down reporting data by partner label. Label#name - /// and Label#id are automatically included as columns in the - /// report.

Corresponds to "Partner label" in the Ad Manager UI. Compatible with - /// any of the following report types: Historical, Partner finance.

+ TOTAL_LINE_ITEM_LEVEL_WITH_CPD_AVERAGE_ECPM = 103, + /// The total number of times that the code for an ad is served by the ad server + /// including inventory-level dynamic allocation.

Corresponds to "Total code + /// served count" in the Ad Manager UI. Compatible with the "Historical" report + /// type.

///
- PARTNER_MANAGEMENT_PARTNER_LABEL_NAME = 60, - /// Breaks down reporting data by partner assignment id.

Compatible with any of - /// the following report types: Historical, Partner finance.

+ TOTAL_CODE_SERVED_COUNT = 104, + /// The total number of times that an ad request is sent to the ad server including + /// dynamic allocation.

Corresponds to "Total ad requests" in the Ad Manager UI. + /// Compatible with the "Historical" report type.

///
- PARTNER_MANAGEMENT_ASSIGNMENT_ID = 195, - /// Breaks down reporting data by partner assignment name. PartnerAssignment name - /// and id are automatically included as columns in the report.

Corresponds to - /// "Assignment" in the Ad Manager UI. Compatible with any of the following report - /// types: Historical, Partner finance.

+ TOTAL_AD_REQUESTS = 508, + /// The total number of times that an ad is served by the ad server including + /// dynamic allocation.

Corresponds to "Total responses served" in the Ad Manager + /// UI. Compatible with the "Historical" report type.

///
- PARTNER_MANAGEMENT_ASSIGNMENT_NAME = 196, - /// Breaks down reporting data by inventory sharing assignment ID.

Compatible + TOTAL_RESPONSES_SERVED = 509, + ///

The total number of times that an ad is not returned by the ad server. + ///

Corresponds to "Total unmatched ad requests" in the Ad Manager UI. Compatible /// with the "Historical" report type.

///
- INVENTORY_SHARE_ASSIGNMENT_ID = 252, - /// Breaks down reporting data by inventory sharing assignment name.

Corresponds - /// to "Inventory share assignment" in the Ad Manager UI. Compatible with the + TOTAL_UNMATCHED_AD_REQUESTS = 510, + ///

The fill rate indicating how often an ad request is filled by the ad server + /// including dynamic allocation.

Corresponds to "Total fill rate" in the Ad + /// Manager UI. Compatible with the "Historical" report type.

+ ///
+ TOTAL_FILL_RATE = 511, + /// The total number of times that an ad is served by the ad server.

Corresponds + /// to "Ad server responses served" in the Ad Manager UI. Compatible with the /// "Historical" report type.

///
- INVENTORY_SHARE_ASSIGNMENT_NAME = 253, - /// Breaks down reporting data by inventory sharing outcome.

Corresponds to - /// "Inventory share outcome" in the Ad Manager UI. Compatible with the "Historical" - /// report type.

+ AD_SERVER_RESPONSES_SERVED = 512, + /// The total number of times that an AdSense ad is delivered.

Corresponds to + /// "AdSense responses served" in the Ad Manager UI. Compatible with the + /// "Historical" report type.

///
- INVENTORY_SHARE_OUTCOME = 254, - /// Breaks down reporting data by gender and age group, i.e., MALE_13_TO_17, - /// MALE_18_TO_24, MALE_25_TO_34, MALE_35_TO_44, MALE_45_TO_54, MALE_55_TO_64, - /// MALE_65_PLUS, FEMALE_13_TO_17, FEMALE_18_TO_24, FEMALE_25_TO_34, - /// FEMALE_35_TO_44, FEMALE_45_TO_54, FEMALE_55_TO_64, FEMALE_65_PLUS, - /// UNKNOWN_0_TO_17 and UNKNOWN. Whenever this dimension is selected, #COUNTRY_NAME must be selected.

This dimension is supported only - /// for GRP columns.

Can correspond to any of the following in the Ad Manager - /// UI: Demographics, comScore vCE demographics. Compatible with the "Reach" report - /// type.

+ ADSENSE_RESPONSES_SERVED = 513, + /// The total number of times that an Ad Exchange ad is delivered.

Corresponds to + /// "Ad Exchange responses served" in the Ad Manager UI. Compatible with the + /// "Historical" report type.

///
- GRP_DEMOGRAPHICS = 61, - /// Breaks down reporting data by the ad unit sizes specified in ad requests. - ///

Formatted as comma separated values, e.g. "300x250,300x250v,300x60".

- ///

This dimension is supported only for sell-through columns.

Corresponds - /// to "Ad request sizes" in the Ad Manager UI. Compatible with the "Future - /// sell-through" report type.

+ AD_EXCHANGE_RESPONSES_SERVED = 514, + /// Total number of ad responses served from programmatic demand sources. Includes + /// Ad Exchange, Open Bidding, and Preferred Deals.

Differs from Ad Exchange + /// responses served, which doesn't include Open Bidding matched ad requests.

+ ///

Corresponds to "Programmatic responses served" in the Ad Manager UI. + /// Compatible with the "Historical" report type.

///
- AD_REQUEST_AD_UNIT_SIZES = 63, - /// Breaks down reporting data by the custom criteria specified in ad requests. - ///

Formatted as comma separated key-values, where a key-value is formatted as - /// .

This dimension is supported only for sell-through - /// columns.

Corresponds to "Key-values" in the Ad Manager UI. Compatible - /// with the "Future sell-through" report type.

+ PROGRAMMATIC_RESPONSES_SERVED = 687, + /// The number of programmatic responses served divided by the number of requests + /// eligible for programmatic. Includes Ad Exchange, Open Bidding, and Preferred + /// Deals.

Corresponds to "Programmatic match rate" in the Ad Manager UI. + /// Compatible with the "Historical" report type.

///
- AD_REQUEST_CUSTOM_CRITERIA = 64, - /// Break down the report by a boolean indicator. It's TRUE for Ad Exchange traffic - /// fulfilled by First Look Deals. It can be used both as a dimension or dimension - /// filter. As a filter, it can only be used with the string values "true" and - /// "false".

Corresponds to "Is First Look" in the Ad Manager UI. Compatible with - /// the "Historical" report type.

+ PROGRAMMATIC_MATCH_RATE = 688, + /// The total number of ad requests eligible for programmatic inventory, including + /// Programmatic Guaranteed, Preferred Deals, backfill, and open auction.

For + /// optimized pods, this metric will count a single opportunity when the pod doesn't + /// fill with programmatic demand. When it does fill, it will count each matched + /// query.

Corresponds to "Programmatic eligible ad requests" in the Ad + /// Manager UI. Compatible with the "Historical" report type.

///
- IS_FIRST_LOOK_DEAL = 154, - /// Break down the report by a boolean indicator. It's TRUE for AdX Direct traffic. - /// It can be used both as a dimension or dimension filter. As a filter, it can only - /// be used with the string values "true" and "false".

Corresponds to "Is AdX - /// Direct" in the Ad Manager UI. Compatible with the "Historical" report type.

+ TOTAL_PROGRAMMATIC_ELIGIBLE_AD_REQUESTS = 689, + /// The total number of video opportunities.

Corresponds to "True opportunities" + /// in the Ad Manager UI. Compatible with the "Historical" report type.

///
- IS_ADX_DIRECT = 299, - /// Breaks down reporting data by yield group ID.

Compatible with the - /// "Historical" report type.

+ TOTAL_VIDEO_OPPORTUNITIES = 571, + /// The total number of video capped opportunities.

Corresponds to "Capped + /// opportunities" in the Ad Manager UI. Compatible with the "Historical" report + /// type.

///
- YIELD_GROUP_ID = 197, - /// Breaks down reporting data by yield group name.

Corresponds to "Yield group" - /// in the Ad Manager UI. Compatible with the "Historical" report type.

+ TOTAL_VIDEO_CAPPED_OPPORTUNITIES = 572, + /// The total number of video matched opportunities.

Corresponds to "Matched + /// opportunities" in the Ad Manager UI. Compatible with the "Historical" report + /// type.

///
- YIELD_GROUP_NAME = 198, - /// Breaks down reporting data by yield partner.

Corresponds to "Yield partner" - /// in the Ad Manager UI. Compatible with the "Historical" report type.

+ TOTAL_VIDEO_MATCHED_OPPORTUNITIES = 602, + /// The total filled duration in ad breaks.

Corresponds to "Matched duration + /// (seconds)" in the Ad Manager UI. Compatible with the "Historical" report + /// type.

///
- YIELD_PARTNER = 199, - /// Breaks down reporting data by the tag of a yield partner in a yield group. - ///

Corresponds to "Yield partner tag" in the Ad Manager UI. Compatible with the - /// "Historical" report type.

+ TOTAL_VIDEO_MATCHED_DURATION = 603, + /// The total duration in ad breaks.

Corresponds to "Total duration (seconds)" in + /// the Ad Manager UI. Compatible with the "Historical" report type.

///
- YIELD_PARTNER_TAG = 200, - /// The ID of an exchange bidding deal.

Corresponds to "Exchange bidding deal id" - /// in the Ad Manager UI. Compatible with the "Historical" report type.

+ TOTAL_VIDEO_DURATION = 604, + /// The total number of break starts.

Corresponds to "Break start" in the Ad + /// Manager UI. Compatible with the "Historical" report type.

///
- EXCHANGE_BIDDING_DEAL_ID = 297, - /// The type of an exchange bidding deal.

Corresponds to "Exchange bidding deal - /// type" in the Ad Manager UI. Compatible with the "Historical" report type.

+ TOTAL_VIDEO_BREAK_START = 605, + /// The total number of break ends.

Corresponds to "Break end" in the Ad Manager + /// UI. Compatible with the "Historical" report type.

///
- EXCHANGE_BIDDING_DEAL_TYPE = 298, - /// The ID of a classified advertiser.

Compatible with the "Ad speed" report - /// type.

+ TOTAL_VIDEO_BREAK_END = 606, + /// The total number of missed impressions due to the ad servers' inability to find + /// ads to serve, including inventory-level dynamic allocation.

Corresponds to + /// "Unfilled impressions" in the Ad Manager UI. Compatible with the "Historical" + /// report type.

///
- CLASSIFIED_ADVERTISER_ID = 231, - /// The name of a classified advertiser.

Corresponds to "Advertiser (classified)" - /// in the Ad Manager UI. Compatible with any of the following report types: - /// Historical, Ad speed.

+ TOTAL_INVENTORY_LEVEL_UNFILLED_IMPRESSIONS = 105, + ///

Corresponds to "Average impressions/unique visitor" in the Ad Manager UI. + /// Compatible with the "Reach" report type.

///
- CLASSIFIED_ADVERTISER_NAME = 232, - /// The ID of a classified brand.

Compatible with the "Ad speed" report type.

+ UNIQUE_REACH_FREQUENCY = 515, + ///

Corresponds to "Total reach impressions" in the Ad Manager UI. Compatible + /// with the "Reach" report type.

///
- CLASSIFIED_BRAND_ID = 233, - /// The name of a classified brand.

Corresponds to "Brand (classified)" in the Ad - /// Manager UI. Compatible with any of the following report types: Historical, Ad - /// speed.

+ UNIQUE_REACH_IMPRESSIONS = 516, + ///

Corresponds to "Total unique visitors" in the Ad Manager UI. Compatible with + /// the "Reach" report type.

///
- CLASSIFIED_BRAND_NAME = 234, - /// Breaks down reporting data by mediation type. A mediation type can be web, - /// mobile app or video.

Corresponds to "Mediation type" in the Ad Manager UI. + UNIQUE_REACH = 517, + ///

The number of impressions for a particular SDK mediation creative. + ///

Corresponds to "SDK mediation creative impressions" in the Ad Manager UI. /// Compatible with the "Historical" report type.

///
- MEDIATION_TYPE = 161, - /// Breaks down reporting data by native template (also known as creative template) - /// ID.

Compatible with the "Historical" report type.

+ SDK_MEDIATION_CREATIVE_IMPRESSIONS = 140, + /// The number of clicks for a particular SDK mediation creative.

Corresponds to + /// "SDK mediation creative clicks" in the Ad Manager UI. Compatible with the + /// "Historical" report type.

///
- NATIVE_TEMPLATE_ID = 155, - /// Breaks down reporting data by native template (also known as creative template) - /// name.

Corresponds to "Native ad format name" in the Ad Manager UI. Compatible - /// with the "Historical" report type.

+ SDK_MEDIATION_CREATIVE_CLICKS = 141, + /// The number of forecasted impressions for future sell-through reports.

This + /// metric is available for the next 90 days with a daily break down and for the + /// next 12 months with a monthly break down.

Corresponds to "Forecasted + /// impressions" in the Ad Manager UI. Compatible with the "Future sell-through" + /// report type.

///
- NATIVE_TEMPLATE_NAME = 156, - /// Breaks down reporting data by native style ID.

Compatible with the - /// "Historical" report type.

+ SELL_THROUGH_FORECASTED_IMPRESSIONS = 142, + /// The number of partner-sold impressions served to the YouTube partner ad + /// inventory.

Corresponds to "Partner-sold impressions" in the Ad Manager UI. + /// Compatible with the "YouTube consolidated" report type.

///
- NATIVE_STYLE_ID = 162, - /// Breaks down reporting data by native style name.

Corresponds to "Native style - /// name" in the Ad Manager UI. Compatible with the "Historical" report type.

+ PARTNER_SALES_PARTNER_IMPRESSIONS = 621, + /// The number of times the ad server responded to a request for the YouTube partner + /// ad inventory.

Corresponds to "Partner-sold code served count" in the Ad + /// Manager UI. Compatible with the "YouTube consolidated" report type.

///
- NATIVE_STYLE_NAME = 163, - /// Breaks down reporting data by child network code in MCM "Manage Inventory". - ///

This dimension only works for MCM "Manage Inventory" parent - /// publishers.

Corresponds to "Child network code" in the Ad Manager UI. - /// Compatible with the "Historical" report type.

+ PARTNER_SALES_PARTNER_CODE_SERVED = 622, + /// The number of Google-sold impressions served to the YouTube partner ad + /// inventory.

Corresponds to "Google-sold impressions" in the Ad Manager UI. + /// Compatible with the "YouTube consolidated" report type.

///
- CHILD_NETWORK_CODE = 238, - /// Breaks down reporting data by mobile app 'resolved' id - either the app store id - /// or '(Not applicable)' if the app is not registered in the app store. Note: app - /// ids are not guaranteed to be unique across different app stores. Can be used for - /// filtering.

Corresponds to "App ID" in the Ad Manager UI. Compatible with the - /// "Historical" report type.

+ PARTNER_SALES_GOOGLE_IMPRESSIONS = 623, + /// The number of Google-sold reservation impressions served to the YouTube partner + /// ad inventory.

Corresponds to "Google-sold reservation impressions" in the Ad + /// Manager UI. Compatible with the "YouTube consolidated" report type.

///
- MOBILE_APP_RESOLVED_ID = 243, - /// Breaks down reporting data by mobile app name. Can be used for filtering. - ///

Corresponds to "App names" in the Ad Manager UI. Compatible with the - /// "Historical" report type.

+ PARTNER_SALES_GOOGLE_RESERVATION_IMPRESSIONS = 624, + /// The number of Google-sold auction impressions served to the YouTube partner ad + /// inventory.

Corresponds to "Google-sold auction impressions" in the Ad Manager + /// UI. Compatible with the "YouTube consolidated" report type.

///
- MOBILE_APP_NAME = 164, - /// Breaks down reporting data by device name. Can be used for filtering. - ///

Corresponds to "Devices" in the Ad Manager UI. Compatible with the - /// "Historical" report type.

+ PARTNER_SALES_GOOGLE_AUCTION_IMPRESSIONS = 625, + /// The total number of ad requests that were eligible to serve to the YouTube + /// partner ad inventory.

Corresponds to "Total ad requests" in the Ad Manager + /// UI. Compatible with the "YouTube consolidated" report type.

///
- MOBILE_DEVICE_NAME = 165, - /// Breaks down reporting data by inventory type. Can be used for filtering. - ///

Corresponds to "Inventory types" in the Ad Manager UI. Compatible with any of - /// the following report types: Historical, Ad speed.

+ PARTNER_SALES_QUERIES = 626, + /// The number of ad requests for the YouTube partner ad inventory that were filled + /// with at least 1 ad. This includes both partner-sold and Google-sold requests. + ///

Google-sold can fill at most 2 ads, while partner-sold can fill at most 1 + /// ad.

Corresponds to "Filled ad requests" in the Ad Manager UI. Compatible + /// with the "YouTube consolidated" report type.

///
- MOBILE_INVENTORY_TYPE = 166, - /// Breaks down reporting data by OS version id.

Compatible with the "Historical" + PARTNER_SALES_FILLED_QUERIES = 627, + ///

The fill rate percentage of filled requests to total ad requests.

Corresponds + /// to "Fill rate" in the Ad Manager UI. Compatible with the "YouTube consolidated" /// report type.

///
- OPERATING_SYSTEM_VERSION_ID = 258, - /// Breaks down reporting data by OS version name.

Corresponds to "Operating - /// system" in the Ad Manager UI. Compatible with the "Historical" report type.

+ PARTNER_SALES_SELL_THROUGH_RATE = 628, + /// The number of available impressions for future sell-through reports.

This + /// metric is available for the next 90 days with a daily break down and for the + /// next 12 months with a monthly break down.

Corresponds to "Available + /// impressions" in the Ad Manager UI. Compatible with the "Future sell-through" + /// report type.

///
- OPERATING_SYSTEM_VERSION_NAME = 259, - /// Breaks down reporting data by request type. Can be used for filtering. - ///

Corresponds to "Request type" in the Ad Manager UI. Compatible with any of - /// the following report types: Historical, Ad speed.

+ SELL_THROUGH_AVAILABLE_IMPRESSIONS = 143, + /// The number of reserved impressions for future sell-through reports.

This + /// metric is available for the next 90 days with a daily break down and for the + /// next 12 months with a monthly break down.

Corresponds to "Reserved + /// impressions" in the Ad Manager UI. Compatible with the "Future sell-through" + /// report type.

///
- REQUEST_TYPE = 201, - /// Status of the ad unit. Not available as a dimension to report on, but exists as - /// a dimension in order to filter on it using PQL. Valid values correspond to InventoryStatus.

Compatible with any of the - /// following report types: Historical, Future sell-through, Ad speed, Real-time - /// video.

+ SELL_THROUGH_RESERVED_IMPRESSIONS = 144, + /// The sell-through rate for impressions for future sell-through reports.

This + /// metric is available for the next 90 days with a daily break down and for the + /// next 12 months with a monthly break down.

Corresponds to "Sell-through + /// rate" in the Ad Manager UI. Compatible with the "Future sell-through" report + /// type.

///
- AD_UNIT_STATUS = 144, - /// Breaks down reporting data by Creative#id. This - /// includes regular creatives, and master and companions in case of creative sets. - ///

Compatible with the "Historical" report type.

+ SELL_THROUGH_SELL_THROUGH_RATE = 145, + /// The total number of times a backup image is served in place of a rich media ad. + ///

Corresponds to "Backup image impressions" in the Ad Manager UI. Compatible + /// with the "Historical" report type.

///
- MASTER_COMPANION_CREATIVE_ID = 69, - /// Breaks down reporting data by creative. This includes regular creatives, and - /// master and companions in case of creative sets.

Corresponds to "Master and - /// Companion creative" in the Ad Manager UI. Compatible with the "Historical" - /// report type.

+ RICH_MEDIA_BACKUP_IMAGES = 146, + /// The amount of time(seconds) that each rich media ad is displayed to users. + ///

Corresponds to "Total display time" in the Ad Manager UI. Compatible with the + /// "Historical" report type.

+ ///
+ RICH_MEDIA_DISPLAY_TIME = 147, + /// The average amount of time(seconds) that each rich media ad is displayed to + /// users.

Corresponds to "Average display time" in the Ad Manager UI. Compatible + /// with the "Historical" report type.

///
- MASTER_COMPANION_CREATIVE_NAME = 70, - /// Breaks down reporting data by billable audience segment ID.

Compatible with - /// the "Historical" report type.

+ RICH_MEDIA_AVERAGE_DISPLAY_TIME = 148, + /// The number of times an expanding ad was expanded.

Corresponds to "Total + /// expansions" in the Ad Manager UI. Compatible with the "Historical" report + /// type.

///
- AUDIENCE_SEGMENT_ID = 87, - /// Breaks down reporting data by billable audience segment name.

Corresponds to - /// "Audience segment (billable)" in the Ad Manager UI. Compatible with the - /// "Historical" report type.

+ RICH_MEDIA_EXPANSIONS = 149, + /// The average amount of time(seconds) that an expanding ad is viewed in an + /// expanded state.

Corresponds to "Average expanding time" in the Ad Manager UI. + /// Compatible with the "Historical" report type.

///
- AUDIENCE_SEGMENT_NAME = 88, - /// Breaks down reporting data by audience segment data provider name. - ///

Corresponds to "Data partner" in the Ad Manager UI. Compatible with the + RICH_MEDIA_EXPANDING_TIME = 150, + ///

The average amount of time(seconds) that a user interacts with a rich media ad. + ///

Corresponds to "Interaction time" in the Ad Manager UI. Compatible with the /// "Historical" report type.

///
- AUDIENCE_SEGMENT_DATA_PROVIDER_NAME = 89, - /// Breaks down data by web property code.

Compatible with the "Historical" + RICH_MEDIA_INTERACTION_TIME = 151, + ///

The number of times that a user interacts with a rich media ad.

Corresponds + /// to "Total interactions" in the Ad Manager UI. Compatible with the "Historical" /// report type.

///
- WEB_PROPERTY_CODE = 260, - /// Breaks down reporting data by agency.

Corresponds to "Buying agency" in the - /// Ad Manager UI. Compatible with the "Historical" report type.

+ RICH_MEDIA_INTERACTION_COUNT = 152, + /// The ratio of rich media ad interactions to the number of times the ad was + /// displayed. Represented as a percentage.

Corresponds to "Interaction rate" in + /// the Ad Manager UI. Compatible with the "Historical" report type.

///
- BUYING_AGENCY_NAME = 261, - /// Breaks down reporting data by buyer network Id.

Compatible with the - /// "Historical" report type.

+ RICH_MEDIA_INTERACTION_RATE = 153, + /// The average amount of time(seconds) that a user interacts with a rich media ad. + ///

Corresponds to "Average interaction time" in the Ad Manager UI. Compatible + /// with the "Historical" report type.

///
- BUYER_NETWORK_ID = 262, - /// Breaks down reporting data by buyer network name.

Corresponds to "Buyer - /// network" in the Ad Manager UI. Compatible with the "Historical" report type.

+ RICH_MEDIA_AVERAGE_INTERACTION_TIME = 154, + /// The number of impressions where a user interacted with a rich media ad. + ///

Corresponds to "Interactive impressions" in the Ad Manager UI. Compatible + /// with the "Historical" report type.

///
- BUYER_NETWORK_NAME = 263, - /// Breaks down reporting data by Bidder ID.

Compatible with the "Historical" - /// report type.

+ RICH_MEDIA_INTERACTION_IMPRESSIONS = 155, + /// The number of times that a user manually closes a floating, expanding, in-page + /// with overlay, or in-page with floating ad.

Corresponds to "Manual closes" in + /// the Ad Manager UI. Compatible with the "Historical" report type.

///
- BIDDER_ID = 264, - /// Breaks down reporting data by Bidder name.

Corresponds to "Bidder" in the Ad - /// Manager UI. Compatible with the "Historical" report type.

+ RICH_MEDIA_MANUAL_CLOSES = 156, + /// A metric that measures an impression only once when a user opens an ad in full + /// screen mode.

Corresponds to "Full-screen impressions" in the Ad Manager UI. + /// Compatible with the "Historical" report type.

///
- BIDDER_NAME = 265, - /// Breaks down reporting data by advertiser domain.

Corresponds to "Advertiser - /// domain" in the Ad Manager UI. Compatible with the "Historical" report type.

+ RICH_MEDIA_FULL_SCREEN_IMPRESSIONS = 157, + /// The number of times a user clicked on the graphical controls of a video player. + ///

Corresponds to "Total video interactions" in the Ad Manager UI. Compatible + /// with the "Historical" report type.

///
- ADVERTISER_DOMAIN_NAME = 266, - /// Breaks down reporting data by optimization type.

Corresponds to "Optimization - /// type" in the Ad Manager UI. Compatible with any of the following report types: - /// Historical, Reach.

+ RICH_MEDIA_VIDEO_INTERACTIONS = 158, + /// The ratio of video interactions to video plays. Represented as a percentage. + ///

Corresponds to "Video interaction rate" in the Ad Manager UI. Compatible with + /// the "Historical" report type.

///
- AD_EXCHANGE_OPTIMIZATION_TYPE = 235, - /// Breaks down reporting data by advertiser vertical.

Corresponds to "Advertiser - /// vertical" in the Ad Manager UI. Compatible with the "Historical" report + RICH_MEDIA_VIDEO_INTERACTION_RATE = 159, + ///

The number of times a rich media video was muted.

Corresponds to "Mute" in + /// the Ad Manager UI. Compatible with the "Historical" report type.

+ ///
+ RICH_MEDIA_VIDEO_MUTES = 160, + /// The number of times a rich media video was paused.

Corresponds to "Pause" in + /// the Ad Manager UI. Compatible with the "Historical" report type.

+ ///
+ RICH_MEDIA_VIDEO_PAUSES = 161, + /// The number of times a rich media video was played.

Corresponds to "Plays" in + /// the Ad Manager UI. Compatible with the "Historical" report type.

+ ///
+ RICH_MEDIA_VIDEO_PLAYES = 162, + /// The number of times a rich media video was played up to midpoint.

Corresponds + /// to "Midpoint" in the Ad Manager UI. Compatible with the "Historical" report /// type.

///
- ADVERTISER_VERTICAL_NAME = 267, - /// Campaign date segment of Nielsen Digital Ad Ratings reporting.

Corresponds to - /// "Nielsen Digital Ad Ratings segment" in the Ad Manager UI. Compatible with the - /// "Reach" report type.

+ RICH_MEDIA_VIDEO_MIDPOINTS = 163, + /// The number of times a rich media video was fully played.

Corresponds to + /// "Complete" in the Ad Manager UI. Compatible with the "Historical" report + /// type.

///
- NIELSEN_SEGMENT = 151, - /// Breaks down reporting data by gender and age group, i.e., MALE_18_TO_20, - /// MALE_21_TO_24, MALE_25_TO_29, MALE_30_TO_35, MALE_35_TO_39, MALE_40_TO_44, - /// MALE_45_TO_49, MALE_50_TO_54, MALE_55_TO_64, MALE_65_PLUS, FEMALE_18_TO_20, - /// FEMALE_21_TO_24, FEMALE_25_TO_29, FEMALE_30_TO_34, FEMALE_35_TO_39, - /// FEMALE_40_TO_44, FEMALE_45_TO_49, FEMALE_50_TO_54, FEMALE_55_TO_64, - /// FEMALE_65_PLUS, and OTHER. + RICH_MEDIA_VIDEO_COMPLETES = 164, + /// The number of times a rich media video was restarted.

Corresponds to + /// "Replays" in the Ad Manager UI. Compatible with the "Historical" report + /// type.

///
- NIELSEN_DEMOGRAPHICS = 152, - /// Data restatement date of Nielsen Digital Ad Ratings data.

Corresponds to - /// "Nielsen Digital Ad Ratings restatement date" in the Ad Manager UI. Compatible - /// with the "Reach" report type.

+ RICH_MEDIA_VIDEO_REPLAYS = 165, + /// The number of times a rich media video was stopped.

Corresponds to "Stops" in + /// the Ad Manager UI. Compatible with the "Historical" report type.

///
- NIELSEN_RESTATEMENT_DATE = 153, - /// Breaks down reporting data by device type, i.e., Computer, Mobile and other - /// types.

This dimension is supported only for Nielsen columns.

- ///

Compatible with the "Reach" report type.

+ RICH_MEDIA_VIDEO_STOPS = 166, + /// The number of times a rich media video was unmuted.

Corresponds to "Unmute" + /// in the Ad Manager UI. Compatible with the "Historical" report type.

///
- NIELSEN_DEVICE_ID = 241, - /// Breaks down reporting data by device type, i.e., Computer, Mobile and other - /// types.

This dimension is supported only for Nielsen columns.

- ///

Corresponds to "Nielsen Digital Ad Ratings device" in the Ad Manager UI. - /// Compatible with the "Reach" report type.

+ RICH_MEDIA_VIDEO_UNMUTES = 167, + /// The average amount of time(seconds) that a rich media video was viewed per view. + ///

Corresponds to "Average view time" in the Ad Manager UI. Compatible with the + /// "Historical" report type.

///
- NIELSEN_DEVICE_NAME = 242, - /// Breaks down reporting data by ProposalMarketplaceInfo#buyerAccountId. - ///

Compatible with any of the following report types: Historical, Reach.

+ RICH_MEDIA_VIDEO_VIEW_TIME = 168, + /// The percentage of a video watched by a user.

Corresponds to "View rate" in + /// the Ad Manager UI. Compatible with the "Historical" report type.

///
- PROGRAMMATIC_BUYER_ID = 167, - /// Breaks down reporting data by programmatic buyer name.

Corresponds to - /// "Programmatic buyer" in the Ad Manager UI. Compatible with the "Historical" - /// report type.

+ RICH_MEDIA_VIDEO_VIEW_RATE = 169, + /// The amount of time (seconds) that a user interacts with a rich media ad. + ///

Corresponds to "Custom event - time" in the Ad Manager UI. Compatible with + /// the "Historical" report type.

///
- PROGRAMMATIC_BUYER_NAME = 168, - /// Breaks down reporting data by requested ad size(s). This can be a chain of sizes - /// or a single size.

Corresponds to "Requested ad sizes" in the Ad Manager UI. + RICH_MEDIA_CUSTOM_EVENT_TIME = 170, + ///

The number of times a user views and interacts with a specified part of a rich + /// media ad.

Corresponds to "Custom event - count" in the Ad Manager UI. /// Compatible with the "Historical" report type.

///
- REQUESTED_AD_SIZES = 169, - /// Breaks down reporting data by the creative size the ad was delivered to. - ///

Corresponds to "Creative size (delivered)" in the Ad Manager UI. Compatible - /// with any of the following report types: Historical, Ad speed.

+ RICH_MEDIA_CUSTOM_EVENT_COUNT = 171, + /// The number of impressions where the video was played.

Corresponds to "Start" + /// in the Ad Manager UI. Compatible with the "Historical" report type.

///
- CREATIVE_SIZE_DELIVERED = 170, - /// Breaks down reporting data by the type of transaction that occurred in Ad - /// Exchange.

Compatible with the "Historical" report type.

+ VIDEO_VIEWERSHIP_START = 172, + /// The number of times the video played to 25% of its length.

Corresponds to + /// "First quartile" in the Ad Manager UI. Compatible with the "Historical" report + /// type.

///
- PROGRAMMATIC_CHANNEL_ID = 222, - /// Breaks down reporting data by the type of transaction that occurred in Ad - /// Exchange.

Corresponds to "Programmatic channel" in the Ad Manager UI. - /// Compatible with any of the following report types: Historical, Reach.

+ VIDEO_VIEWERSHIP_FIRST_QUARTILE = 173, + /// The number of times the video reached its midpoint during play.

Corresponds + /// to "Midpoint" in the Ad Manager UI. Compatible with the "Historical" report + /// type.

///
- PROGRAMMATIC_CHANNEL_NAME = 223, - /// Breaks down data by detected yield partner name.

Corresponds to "Yield - /// partner (classified)" in the Ad Manager UI. Compatible with the "Historical" - /// report type.

+ VIDEO_VIEWERSHIP_MIDPOINT = 174, + /// The number of times the video played to 75% of its length.

Corresponds to + /// "Third quartile" in the Ad Manager UI. Compatible with the "Historical" report + /// type.

///
- CLASSIFIED_YIELD_PARTNER_NAME = 250, - /// Breaks down Demand reporting data by date in the network time zone. Can be used - /// to filter by date using ISO 8601's format 'YYYY-MM-DD'".

Corresponds to - /// "Date" in the Ad Manager UI. Compatible with the "Ad Connector" report type.

+ VIDEO_VIEWERSHIP_THIRD_QUARTILE = 175, + /// The number of times the video played to completion.

Corresponds to "Complete" + /// in the Ad Manager UI. Compatible with the "Historical" report type.

///
- DP_DATE = 208, - /// Breaks down Demand reporting data by week of the year in the network time zone. - /// Cannot be used for filtering.

Corresponds to "Week" in the Ad Manager UI. - /// Compatible with the "Ad Connector" report type.

+ VIDEO_VIEWERSHIP_COMPLETE = 176, + /// Average percentage of the video watched by users.

Corresponds to "Average + /// view rate" in the Ad Manager UI. Compatible with the "Historical" report + /// type.

///
- DP_WEEK = 219, - /// Breaks down Demand reporting data by month and year in the network time zone. - /// Cannot be used to filter.

Corresponds to "Month and year" in the Ad Manager - /// UI. Compatible with the "Ad Connector" report type.

+ VIDEO_VIEWERSHIP_AVERAGE_VIEW_RATE = 177, + /// Average time(seconds) users watched the video.

Corresponds to "Average view + /// time" in the Ad Manager UI. Compatible with the "Historical" report type.

///
- DP_MONTH_YEAR = 220, - /// Breaks down Demand reporting data by country criteria ID. Can be used to filter - /// by country criteria ID.

Compatible with the "Ad Connector" report type.

+ VIDEO_VIEWERSHIP_AVERAGE_VIEW_TIME = 178, + /// Percentage of times the video played to the end.

Corresponds to "Completion + /// rate" in the Ad Manager UI. Compatible with the "Historical" report type.

///
- DP_COUNTRY_CRITERIA_ID = 209, - /// Breaks down Demand reporting data by country name. The country name and the - /// country criteria ID are automatically included as columns in the report. Can be - /// used to filter by country name using the US English name.

Corresponds to - /// "Country" in the Ad Manager UI. Compatible with the "Ad Connector" report - /// type.

+ VIDEO_VIEWERSHIP_COMPLETION_RATE = 179, + /// The number of times an error occurred, such as a VAST redirect error, a video + /// playback error, or an invalid response error.

Corresponds to "Total error + /// count" in the Ad Manager UI. Compatible with the "Historical" report type.

///
- DP_COUNTRY_NAME = 210, - /// Breaks down Demand reporting data by inventory type.

Corresponds to - /// "Inventory type" in the Ad Manager UI. Compatible with the "Ad Connector" report + VIDEO_VIEWERSHIP_TOTAL_ERROR_COUNT = 180, + ///

Duration of the video creative.

Corresponds to "Video length" in the Ad + /// Manager UI. Compatible with the "Historical" report type.

+ ///
+ VIDEO_VIEWERSHIP_VIDEO_LENGTH = 181, + /// The number of times a skip button is shown in video.

Corresponds to "Skip + /// button shown" in the Ad Manager UI. Compatible with the "Historical" report /// type.

///
- DP_INVENTORY_TYPE = 211, - /// Breaks down Demand reporting data by the creative size the ad was delivered to. - ///

Corresponds to "Creative size" in the Ad Manager UI. Compatible with the "Ad - /// Connector" report type.

+ VIDEO_VIEWERSHIP_SKIP_BUTTON_SHOWN = 182, + /// The number of engaged views i.e. ad is viewed to completion or for 30s, + /// whichever comes first.

Corresponds to "Engaged view" in the Ad Manager UI. + /// Compatible with the "Historical" report type.

///
- DP_CREATIVE_SIZE = 212, - /// Breaks down Demand reporting data by the brand name that bids on ads. - ///

Corresponds to "Brand" in the Ad Manager UI. Compatible with the "Ad - /// Connector" report type.

+ VIDEO_VIEWERSHIP_ENGAGED_VIEW = 183, + /// View-through rate represented as a percentage.

Corresponds to "View-through + /// rate" in the Ad Manager UI. Compatible with the "Historical" report type.

///
- DP_BRAND_NAME = 213, - /// Breaks down Demand reporting data by the advertiser name that bid on ads. - ///

Corresponds to "Advertiser" in the Ad Manager UI. Compatible with the "Ad - /// Connector" report type.

+ VIDEO_VIEWERSHIP_VIEW_THROUGH_RATE = 184, + /// Number of times that the publisher specified a video ad played automatically. + ///

Corresponds to "Auto-plays" in the Ad Manager UI. Compatible with the + /// "Historical" report type.

///
- DP_ADVERTISER_NAME = 214, - /// Breaks down Demand reporting data by Ad Exchange ad network name. Example: - /// Google Adwords.

Corresponds to "Buyer network" in the Ad Manager UI. - /// Compatible with the "Ad Connector" report type.

+ VIDEO_VIEWERSHIP_AUTO_PLAYS = 185, + /// Number of times that the publisher specified a video ad was clicked to play. + ///

Corresponds to "Click-to-plays" in the Ad Manager UI. Compatible with the + /// "Historical" report type.

///
- DP_ADX_BUYER_NETWORK_NAME = 215, - /// Breaks down reporting data by device name.

Corresponds to "Device" in the Ad - /// Manager UI. Compatible with the "Ad Connector" report type.

+ VIDEO_VIEWERSHIP_CLICK_TO_PLAYS = 186, + /// Error rate is the percentage of video error count from (error count + total + /// impressions).

Corresponds to "Total error rate" in the Ad Manager UI. + /// Compatible with the "Historical" report type.

///
- DP_MOBILE_DEVICE_NAME = 216, - /// Breaks down reporting data by the category of device (smartphone, feature phone, - /// tablet, or desktop).

Corresponds to "Device category" in the Ad Manager UI. - /// Compatible with the "Ad Connector" report type.

+ VIDEO_VIEWERSHIP_TOTAL_ERROR_RATE = 187, + /// The drop-off rate.

Corresponds to "Drop-off rate" in the Ad Manager UI. + /// Compatible with the "Historical" report type.

///
- DP_DEVICE_CATEGORY_NAME = 217, - /// Breaks down reporting data by the tag id provided by the publisher in the ad - /// request.

Corresponds to "Tag ID" in the Ad Manager UI. Compatible with the - /// "Ad Connector" report type.

+ DROPOFF_RATE = 607, + /// Number of times a video ad has been viewed to completion or watched to 30 + /// seconds, whichever happens first.

Corresponds to "TrueView views" in the Ad + /// Manager UI. Compatible with the "Historical" report type.

///
- DP_TAG_ID = 221, - /// Breaks down reporting data by the deal id provided by the publisher in the ad - /// request.

Corresponds to "Deal IDs" in the Ad Manager UI. Compatible with the - /// "Ad Connector" report type.

+ VIDEO_TRUEVIEW_VIEWS = 608, + /// Percentage of times a user clicked Skip.

Corresponds to "TrueView skip rate" + /// in the Ad Manager UI. Compatible with the "Historical" report type.

///
- DP_DEAL_ID = 224, - /// Breaks down reporting data by mobile app ID.

Corresponds to "App ID" in the - /// Ad Manager UI. Compatible with the "Ad Connector" report type.

+ VIDEO_TRUEVIEW_SKIP_RATE = 609, + /// TrueView views divided by TrueView impressions.

Corresponds to "TrueView VTR" + /// in the Ad Manager UI. Compatible with the "Historical" report type.

///
- DP_APP_ID = 225, - /// Breaks down reporting data by the CustomTargetingKeys marked as dimensions in - /// inventory key-values setup. To use this dimension, a list of custom targeting - /// key IDs must be specified in ReportQuery#customDimensionKeyIds. + VIDEO_TRUEVIEW_VTR = 610, + /// Number of VAST video errors of type 100.

Corresponds to "VAST error 100 + /// count" in the Ad Manager UI. Compatible with the "Historical" report type.

///
- CUSTOM_DIMENSION = 226, - /// Breaks down reporting data by demand channels.

Compatible with any of the - /// following report types: Historical, Reach, Ad speed.

+ VIDEO_ERRORS_VAST_ERROR_100_COUNT = 461, + /// Number of VAST video errors of type 101.

Corresponds to "VAST error 101 + /// count" in the Ad Manager UI. Compatible with the "Historical" report type.

///
- DEMAND_CHANNEL_ID = 202, - /// Breaks down reporting data by demand channel name.

Corresponds to "Demand - /// channel" in the Ad Manager UI. Compatible with any of the following report - /// types: Historical, Reach, Ad speed.

+ VIDEO_ERRORS_VAST_ERROR_101_COUNT = 462, + /// Number of VAST video errors of type 102.

Corresponds to "VAST error 102 + /// count" in the Ad Manager UI. Compatible with the "Historical" report type.

///
- DEMAND_CHANNEL_NAME = 203, - /// Breaks down reporting data by top private domain.

Corresponds to "Domain" in - /// the Ad Manager UI. Compatible with the "Historical" report type.

+ VIDEO_ERRORS_VAST_ERROR_102_COUNT = 463, + /// Number of VAST video errors of type 200.

Corresponds to "VAST error 200 + /// count" in the Ad Manager UI. Compatible with the "Historical" report type.

///
- DOMAIN = 251, - /// Breaks down reporting data by serving restriction id.

Compatible with the - /// "Historical" report type.

+ VIDEO_ERRORS_VAST_ERROR_200_COUNT = 464, + /// Number of VAST video errors of type 201.

Corresponds to "VAST error 201 + /// count" in the Ad Manager UI. Compatible with the "Historical" report type.

///
- SERVING_RESTRICTION_ID = 255, - /// Breaks down reporting data by serving restriction name.

Corresponds to - /// "Serving restriction" in the Ad Manager UI. Compatible with the "Historical" - /// report type.

+ VIDEO_ERRORS_VAST_ERROR_201_COUNT = 465, + /// Number of VAST video errors of type 202.

Corresponds to "VAST error 202 + /// count" in the Ad Manager UI. Compatible with the "Historical" report type.

///
- SERVING_RESTRICTION_NAME = 256, - /// Breaks down reporting data by unified pricing rule id.

Compatible with the - /// "Historical" report type.

+ VIDEO_ERRORS_VAST_ERROR_202_COUNT = 466, + /// Number of VAST video errors of type 203.

Corresponds to "VAST error 203 + /// count" in the Ad Manager UI. Compatible with the "Historical" report type.

///
- UNIFIED_PRICING_RULE_ID = 244, - /// Breaks down reporting data by unified pricing rule name.

Corresponds to - /// "Unified pricing rule" in the Ad Manager UI. Compatible with the "Historical" - /// report type.

+ VIDEO_ERRORS_VAST_ERROR_203_COUNT = 467, + /// Number of VAST video errors of type 300.

Corresponds to "VAST error 300 + /// count" in the Ad Manager UI. Compatible with the "Historical" report type.

///
- UNIFIED_PRICING_RULE_NAME = 245, - /// Breaks down reporting data by first price pricing rule id.

Compatible with - /// the "Historical" report type.

+ VIDEO_ERRORS_VAST_ERROR_300_COUNT = 468, + /// Number of VAST video errors of type 301.

Corresponds to "VAST error 301 + /// count" in the Ad Manager UI. Compatible with the "Historical" report type.

///
- FIRST_LOOK_PRICING_RULE_ID = 268, - /// Breaks down reporting data by first price pricing rule name.

Corresponds to - /// "First look pricing rule" in the Ad Manager UI. Compatible with the "Historical" - /// report type.

+ VIDEO_ERRORS_VAST_ERROR_301_COUNT = 469, + /// Number of VAST video errors of type 302.

Corresponds to "VAST error 302 + /// count" in the Ad Manager UI. Compatible with the "Historical" report type.

///
- FIRST_LOOK_PRICING_RULE_NAME = 269, - /// Breaks down reporting data by the range within which the bid falls, divided into - /// $0.10 buckets.

Corresponds to "Bid range" in the Ad Manager UI. Compatible - /// with the "Historical" report type.

+ VIDEO_ERRORS_VAST_ERROR_302_COUNT = 470, + /// Number of VAST video errors of type 303.

Corresponds to "VAST error 303 + /// count" in the Ad Manager UI. Compatible with the "Historical" report type.

///
- BID_RANGE = 300, - /// Breaks down reporting data by the ID of the reason the bid lost or did not - /// participate in the auction.

Compatible with the "Historical" report type.

+ VIDEO_ERRORS_VAST_ERROR_303_COUNT = 471, + /// Number of VAST video errors of type 400.

Corresponds to "VAST error 400 + /// count" in the Ad Manager UI. Compatible with the "Historical" report type.

///
- BID_REJECTION_REASON = 301, - /// Breaks down reporting data by the reason the bid lost or did not participate in - /// the auction.

Corresponds to "Bid rejection reason" in the Ad Manager UI. - /// Compatible with the "Historical" report type.

+ VIDEO_ERRORS_VAST_ERROR_400_COUNT = 472, + /// Number of VAST video errors of type 401.

Corresponds to "VAST error 401 + /// count" in the Ad Manager UI. Compatible with the "Historical" report type.

///
- BID_REJECTION_REASON_NAME = 302, - /// Breaks down reporting data by the domain of the ad technology provider (ATP) - /// associated with the bid.

Corresponds to "Ad technology provider domain" in - /// the Ad Manager UI. Compatible with the "Historical" report type.

+ VIDEO_ERRORS_VAST_ERROR_401_COUNT = 473, + /// Number of VAST video errors of type 402.

Corresponds to "VAST error 402 + /// count" in the Ad Manager UI. Compatible with the "Historical" report type.

///
- AD_TECHNOLOGY_PROVIDER_DOMAIN = 303, - /// Breaks down reporting data by programmatic deal ID.

Corresponds to - /// "Programmatic deal ID" in the Ad Manager UI. Compatible with the "Historical" - /// report type.

+ VIDEO_ERRORS_VAST_ERROR_402_COUNT = 474, + /// Number of VAST video errors of type 403.

Corresponds to "VAST error 403 + /// count" in the Ad Manager UI. Compatible with the "Historical" report type.

///
- PROGRAMMATIC_DEAL_ID = 270, - /// Breaks down reporting data by programmatic deal name.

Corresponds to - /// "Programmatic deal name" in the Ad Manager UI. Compatible with the "Historical" - /// report type.

+ VIDEO_ERRORS_VAST_ERROR_403_COUNT = 475, + /// Number of VAST video errors of type 405.

Corresponds to "VAST error 405 + /// count" in the Ad Manager UI. Compatible with the "Historical" report type.

///
- PROGRAMMATIC_DEAL_NAME = 271, - /// Breaks down reporting data by the ID of the ad technology provider (ATP) - /// associated with the bid.

Corresponds to "Ad technology provider ID" in the Ad - /// Manager UI. Compatible with the "Historical" report type.

+ VIDEO_ERRORS_VAST_ERROR_405_COUNT = 476, + /// Number of VAST video errors of type 500.

Corresponds to "VAST error 500 + /// count" in the Ad Manager UI. Compatible with the "Historical" report type.

///
- AD_TECHNOLOGY_PROVIDER_ID = 304, - /// Breaks down reporting data by the ad technology provider (ATP) associated with - /// the bid.

Corresponds to "Ad technology provider" in the Ad Manager UI. - /// Compatible with the "Historical" report type.

+ VIDEO_ERRORS_VAST_ERROR_500_COUNT = 477, + /// Number of VAST video errors of type 501.

Corresponds to "VAST error 501 + /// count" in the Ad Manager UI. Compatible with the "Historical" report type.

///
- AD_TECHNOLOGY_PROVIDER_NAME = 305, - /// Breaks down reporting data by the ID of the ad technology provider as it appears - /// on the Global Vendor List (GVL).

Corresponds to "TCF vendor ID" in the Ad - /// Manager UI. Compatible with the "Historical" report type.

+ VIDEO_ERRORS_VAST_ERROR_501_COUNT = 478, + /// Number of VAST video errors of type 502.

Corresponds to "VAST error 502 + /// count" in the Ad Manager UI. Compatible with the "Historical" report type.

///
- TCF_VENDOR_ID = 306, - /// Breaks down reporting data by the name of the ad technology provider as it - /// appears on the Global Vendor List (GVL).

Corresponds to "TCF vendor" in the - /// Ad Manager UI. Compatible with the "Historical" report type.

+ VIDEO_ERRORS_VAST_ERROR_502_COUNT = 479, + /// Number of VAST video errors of type 503.

Corresponds to "VAST error 503 + /// count" in the Ad Manager UI. Compatible with the "Historical" report type.

///
- TCF_VENDOR_NAME = 307, - /// Breaks down reporting data by site.

Corresponds to "Site" in the Ad Manager - /// UI. Compatible with the "Historical" report type.

+ VIDEO_ERRORS_VAST_ERROR_503_COUNT = 480, + /// Number of VAST video errors of type 600.

Corresponds to "VAST error 600 + /// count" in the Ad Manager UI. Compatible with the "Historical" report type.

///
- SITE_NAME = 272, - /// Breaks down reporting data by channels.

Corresponds to "Channel" in the Ad - /// Manager UI. Compatible with the "Historical" report type.

+ VIDEO_ERRORS_VAST_ERROR_600_COUNT = 481, + /// Number of VAST video errors of type 601.

Corresponds to "VAST error 601 + /// count" in the Ad Manager UI. Compatible with the "Historical" report type.

///
- CHANNEL_NAME = 273, - /// Breaks down reporting data by URL ID.

Compatible with the "Historical" report - /// type.

+ VIDEO_ERRORS_VAST_ERROR_601_COUNT = 482, + /// Number of VAST video errors of type 602.

Corresponds to "VAST error 602 + /// count" in the Ad Manager UI. Compatible with the "Historical" report type.

///
- URL_ID = 274, - /// Breaks down reporting data by URL name.

Corresponds to "URL" in the Ad - /// Manager UI. Compatible with the "Historical" report type.

+ VIDEO_ERRORS_VAST_ERROR_602_COUNT = 483, + /// Number of VAST video errors of type 603.

Corresponds to "VAST error 603 + /// count" in the Ad Manager UI. Compatible with the "Historical" report type.

///
- URL_NAME = 275, - /// Breaks down reporting data by video ad duration.

Corresponds to "Video ad - /// duration" in the Ad Manager UI. Compatible with the "Historical" report + VIDEO_ERRORS_VAST_ERROR_603_COUNT = 484, + ///

Number of VAST video errors of type 604.

Corresponds to "VAST error 604 + /// count" in the Ad Manager UI. Compatible with the "Historical" report type.

+ ///
+ VIDEO_ERRORS_VAST_ERROR_604_COUNT = 485, + /// Number of VAST video errors of type 900.

Corresponds to "VAST error 900 + /// count" in the Ad Manager UI. Compatible with the "Historical" report type.

+ ///
+ VIDEO_ERRORS_VAST_ERROR_900_COUNT = 486, + /// Number of VAST video errors of type 901.

Corresponds to "VAST error 901 + /// count" in the Ad Manager UI. Compatible with the "Historical" report type.

+ ///
+ VIDEO_ERRORS_VAST_ERROR_901_COUNT = 487, + /// Video interaction event: The number of times user paused ad clip.

Corresponds + /// to "Pause" in the Ad Manager UI. Compatible with the "Historical" report /// type.

///
- VIDEO_AD_DURATION = 276, - /// Breaks down reporting data by video ad type Id.

Compatible with the + VIDEO_INTERACTION_PAUSE = 216, + ///

Video interaction event: The number of times the user unpaused the video. + ///

Corresponds to "Resume" in the Ad Manager UI. Compatible with the /// "Historical" report type.

///
- VIDEO_AD_TYPE_ID = 277, - /// Breaks down reporting data by video ad type.

Corresponds to "Video ad type" - /// in the Ad Manager UI. Compatible with the "Historical" report type.

+ VIDEO_INTERACTION_RESUME = 217, + /// Video interaction event: The number of times a user rewinds the video. + ///

Corresponds to "Rewind" in the Ad Manager UI. Compatible with the + /// "Historical" report type.

///
- VIDEO_AD_TYPE_NAME = 278, - /// Breaks down reporting data by Ad Exchange product code.

Compatible with the + VIDEO_INTERACTION_REWIND = 218, + ///

Video interaction event: The number of times video player was in mute state + /// during play of ad clip.

Corresponds to "Mute" in the Ad Manager UI. + /// Compatible with the "Historical" report type.

+ ///
+ VIDEO_INTERACTION_MUTE = 219, + /// Video interaction event: The number of times a user unmutes the video. + ///

Corresponds to "Unmute" in the Ad Manager UI. Compatible with the + /// "Historical" report type.

+ ///
+ VIDEO_INTERACTION_UNMUTE = 220, + /// Video interaction event: The number of times a user collapses a video, either to + /// its original size or to a different size.

Corresponds to "Collapse" in the Ad + /// Manager UI. Compatible with the "Historical" report type.

+ ///
+ VIDEO_INTERACTION_COLLAPSE = 221, + /// Video interaction event: The number of times a user expands a video. + ///

Corresponds to "Expand" in the Ad Manager UI. Compatible with the + /// "Historical" report type.

+ ///
+ VIDEO_INTERACTION_EXPAND = 222, + /// Video interaction event: The number of times ad clip played in full screen mode. + ///

Corresponds to "Full screen" in the Ad Manager UI. Compatible with the /// "Historical" report type.

///
- AD_EXCHANGE_PRODUCT_CODE = 177, - /// Breaks down reporting data by Ad Exchange product.

Corresponds to "Ad - /// Exchange product" in the Ad Manager UI. Compatible with the "Historical" report + VIDEO_INTERACTION_FULL_SCREEN = 223, + ///

Video interaction event: The number of user interactions with a video, on + /// average, such as pause, full screen, mute, etc.

Corresponds to "Average + /// interaction rate" in the Ad Manager UI. Compatible with the "Historical" report /// type.

///
- AD_EXCHANGE_PRODUCT_NAME = 100, - /// Breaks down reporting data by Dynamic allocation ID.

Compatible with the + VIDEO_INTERACTION_AVERAGE_INTERACTION_RATE = 224, + ///

Video interaction event: The number of times a skippable video is skipped. + ///

Corresponds to "Video skipped" in the Ad Manager UI. Compatible with the /// "Historical" report type.

///
- DYNAMIC_ALLOCATION_ID = 279, - /// Breaks down reporting data by Dynamic allocation.

Corresponds to "Dynamic - /// allocation" in the Ad Manager UI. Compatible with the "Historical" report - /// type.

- ///
- DYNAMIC_ALLOCATION_NAME = 280, - /// Breaks down reporting data by Ad type ID.

Compatible with the "Historical" - /// report type.

+ VIDEO_INTERACTION_VIDEO_SKIPS = 225, + /// The number of control starts.

Corresponds to "Control starts" in the Ad + /// Manager UI. Compatible with the "Historical" report type.

///
- AD_TYPE_ID = 281, - /// Breaks down reporting data by Ad type.

Corresponds to "Ad type" in the Ad + VIDEO_OPTIMIZATION_CONTROL_STARTS = 226, + ///

The number of optimized starts.

Corresponds to "Optimized starts" in the Ad /// Manager UI. Compatible with the "Historical" report type.

///
- AD_TYPE_NAME = 282, - /// Breaks down reporting data by Ad location ID.

Compatible with the - /// "Historical" report type.

+ VIDEO_OPTIMIZATION_OPTIMIZED_STARTS = 227, + /// The number of control completes.

Corresponds to "Control completes" in the Ad + /// Manager UI. Compatible with the "Historical" report type.

///
- AD_LOCATION_ID = 283, - /// Breaks down reporting data by Ad location.

Corresponds to "Ad location" in + VIDEO_OPTIMIZATION_CONTROL_COMPLETES = 228, + ///

The number of optimized completes.

Corresponds to "Optimized completes" in /// the Ad Manager UI. Compatible with the "Historical" report type.

///
- AD_LOCATION_NAME = 284, - /// Breaks down reporting data by Targeting type code.

Compatible with the - /// "Historical" report type.

+ VIDEO_OPTIMIZATION_OPTIMIZED_COMPLETES = 229, + /// The rate of control completions.

Corresponds to "Control completion rate" in + /// the Ad Manager UI. Compatible with the "Historical" report type.

///
- TARGETING_TYPE_CODE = 285, - /// Breaks down reporting data by Targeting type.

Corresponds to "Targeting type" + VIDEO_OPTIMIZATION_CONTROL_COMPLETION_RATE = 230, + ///

The rate of optimized completions.

Corresponds to "Optimized completion rate" /// in the Ad Manager UI. Compatible with the "Historical" report type.

///
- TARGETING_TYPE_NAME = 286, - /// Breaks down reporting data by Branding type code.

Compatible with the - /// "Historical" report type.

+ VIDEO_OPTIMIZATION_OPTIMIZED_COMPLETION_RATE = 231, + /// The percentage by which optimized completion rate is greater than the + /// unoptimized completion rate. This is calculated as (( Column#VIDEO_OPTIMIZATION_OPTIMIZED_COMPLETION_RATE/ + /// Column#VIDEO_OPTIMIZATION_CONTROL_COMPLETION_RATE) + /// - 1) * 100 for an ad for which the optimization feature has been enabled. + ///

Corresponds to "Completion rate lift" in the Ad Manager UI. Compatible with + /// the "Historical" report type.

///
- BRANDING_TYPE_CODE = 287, - /// Breaks down reporting data by Branding type.

Corresponds to "Branding type" - /// in the Ad Manager UI. Compatible with the "Historical" report type.

+ VIDEO_OPTIMIZATION_COMPLETION_RATE_LIFT = 232, + /// The number of control skip buttons shown.

Corresponds to "Control skip button + /// shown" in the Ad Manager UI. Compatible with the "Historical" report type.

///
- BRANDING_TYPE_NAME = 288, - /// Breaks down reporting data by Bandwidth Id.

Compatible with the "Historical" - /// report type.

+ VIDEO_OPTIMIZATION_CONTROL_SKIP_BUTTON_SHOWN = 233, + /// The number of optimized skip buttons shown.

Corresponds to "Optimized skip + /// button shown" in the Ad Manager UI. Compatible with the "Historical" report + /// type.

///
- BANDWIDTH_ID = 293, - /// Breaks down reporting data by Bandwidth name.

Corresponds to "Bandwidth" in + VIDEO_OPTIMIZATION_OPTIMIZED_SKIP_BUTTON_SHOWN = 234, + ///

The number of control engaged views.

Corresponds to "Control engaged view" in /// the Ad Manager UI. Compatible with the "Historical" report type.

///
- BANDWIDTH_NAME = 294, - /// Breaks down reporting data by Carrier Id.

Compatible with the "Historical" - /// report type.

+ VIDEO_OPTIMIZATION_CONTROL_ENGAGED_VIEW = 235, + /// The number of optimized engaged views.

Corresponds to "Optimized engaged + /// view" in the Ad Manager UI. Compatible with the "Historical" report type.

///
- CARRIER_ID = 295, - /// Breaks down reporting data by Carrier name.

Corresponds to "Carrier" in the - /// Ad Manager UI. Compatible with the "Historical" report type.

+ VIDEO_OPTIMIZATION_OPTIMIZED_ENGAGED_VIEW = 236, + /// The control view-through rate.

Corresponds to "Control view-through rate" in + /// the Ad Manager UI. Compatible with the "Historical" report type.

///
- CARRIER_NAME = 296, - } - - - /// A view for an ad unit report. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ReportQuery.AdUnitView", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum ReportQueryAdUnitView { - /// Only the top level ad units. Metrics include events for their descendants that - /// are not filtered out. + VIDEO_OPTIMIZATION_CONTROL_VIEW_THROUGH_RATE = 237, + /// The optimized view-through rate.

Corresponds to "Optimized view-through rate" + /// in the Ad Manager UI. Compatible with the "Historical" report type.

///
- TOP_LEVEL = 0, - /// All the ad units. Metrics do not include events for the descendants. + VIDEO_OPTIMIZATION_OPTIMIZED_VIEW_THROUGH_RATE = 238, + /// The percentage by which optimized view-through rate is greater than the + /// unoptimized view-through rate. This is calculated as (( Column#VIDEO_OPTIMIZATION_OPTIMIZED_VIEW_THROUGH_RATE/ Column#VIDEO_OPTIMIZATION_CONTROL_VIEW_THROUGH_RATE) - 1) * 100 for + /// an ad for which the optimization feature has been enabled.

Corresponds to + /// "View-through rate lift" in the Ad Manager UI. Compatible with the "Historical" + /// report type.

///
- FLAT = 1, - /// Use the ad unit hierarchy. There will be as many ad unit columns as levels of ad - /// units in the generated report:
  • The column Dimension#AD_UNIT_NAME is replaced with - /// columns "Ad unit 1", "Ad unit 2", ... "Ad unit n". If level is not applicable to - /// a row, "N/A" is returned as the value.
  • The column Dimension#AD_UNIT_ID is replaced with columns - /// "Ad unit ID 1", "Ad unit ID 2", ... "Ad unit ID n". If level is not applicable - /// to a row, "N/A" is returned as the value.

Metrics do not include - /// events for the descendants.

+ VIDEO_OPTIMIZATION_VIEW_THROUGH_RATE_LIFT = 239, + /// Total impressions from the Google Ad Manager server, AdSense, Ad Exchange, and + /// yield group partners.

Corresponds to "Total impressions" in the Ad Manager + /// UI. Compatible with the "Real-time video" report type.

///
- HIERARCHICAL = 2, - } - - - /// Column provides all the trafficking statistics and revenue - /// information available for the chosen Dimension objects. - ///

Columns with INVENTORY_LEVEL should not be used with dimensions - /// relating to line items, orders, companies and creatives, such as Dimension#LINE_ITEM_NAME. Columns with - /// LINE_ITEM_LEVEL can only be used if you have line item-level - /// dynamic allocation enabled on your network.

- ///
- [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum Column { - /// The number of impressions delivered by the ad server.

Corresponds to "Ad - /// server impressions" in the Ad Manager UI. Compatible with the "Historical" - /// report type.

+ VIDEO_IMPRESSIONS_REAL_TIME = 629, + /// Total number of matched queries.

Corresponds to "Total responses served" in + /// the Ad Manager UI. Compatible with the "Real-time video" report type.

///
- AD_SERVER_IMPRESSIONS = 0, - /// The number of begin-to-render impressions delivered by the ad server. - ///

Corresponds to "Ad server begin to render impressions" in the Ad Manager UI. - /// Compatible with the "Historical" report type.

+ VIDEO_MATCHED_QUERIES_REAL_TIME = 630, + /// Total number of unmatched queries.

Corresponds to "Total unmatched ad + /// requests" in the Ad Manager UI. Compatible with the "Real-time video" report + /// type.

///
- AD_SERVER_BEGIN_TO_RENDER_IMPRESSIONS = 619, - /// The number of impressions delivered by the ad server by explicit custom criteria - /// targeting.

Corresponds to "Ad server targeted impressions" in the Ad Manager - /// UI. Compatible with the "Historical" report type.

+ VIDEO_UNMATCHED_QUERIES_REAL_TIME = 631, + /// Total number of ad requests.

Corresponds to "Total ad requests" in the Ad + /// Manager UI. Compatible with the "Real-time video" report type.

///
- AD_SERVER_TARGETED_IMPRESSIONS = 1, - /// The number of clicks delivered by the ad server.

Corresponds to "Ad server - /// clicks" in the Ad Manager UI. Compatible with the "Historical" report type.

+ VIDEO_TOTAL_QUERIES_REAL_TIME = 632, + /// Total number of creatives served.

Corresponds to "Total creative serves" in + /// the Ad Manager UI. Compatible with the "Real-time video" report type.

///
- AD_SERVER_CLICKS = 2, - /// The number of clicks delivered by the ad server by explicit custom criteria - /// targeting.

Corresponds to "Ad server targeted clicks" in the Ad Manager UI. - /// Compatible with the "Historical" report type.

+ VIDEO_CREATIVE_SERVE_REAL_TIME = 633, + /// Number of VAST video errors of type 100.

Corresponds to "VAST error 100 + /// count" in the Ad Manager UI. Compatible with the "Real-time video" report + /// type.

///
- AD_SERVER_TARGETED_CLICKS = 3, - /// The CTR for an ad delivered by the ad server.

Corresponds to "Ad server CTR" - /// in the Ad Manager UI. Compatible with the "Historical" report type.

+ VIDEO_VAST3_ERROR_100_COUNT_REAL_TIME = 634, + /// Number of VAST video errors of type 101.

Corresponds to "VAST error 101 + /// count" in the Ad Manager UI. Compatible with the "Real-time video" report + /// type.

///
- AD_SERVER_CTR = 4, - /// The CPM and CPC revenue earned, calculated in publisher currency, for the ads - /// delivered by the ad server.

Corresponds to "Ad server CPM and CPC revenue" in - /// the Ad Manager UI. Compatible with the "Historical" report type.

+ VIDEO_VAST3_ERROR_101_COUNT_REAL_TIME = 635, + /// Number of VAST video errors of type 102.

Corresponds to "VAST error 102 + /// count" in the Ad Manager UI. Compatible with the "Real-time video" report + /// type.

///
- AD_SERVER_CPM_AND_CPC_REVENUE = 5, - /// The CPD revenue earned, calculated in publisher currency, for the ads delivered - /// by the ad server.

Corresponds to "Ad server CPD revenue" in the Ad Manager - /// UI. Compatible with the "Historical" report type.

+ VIDEO_VAST3_ERROR_102_COUNT_REAL_TIME = 636, + /// Number of VAST video errors of type 200.

Corresponds to "VAST error 200 + /// count" in the Ad Manager UI. Compatible with the "Real-time video" report + /// type.

///
- AD_SERVER_CPD_REVENUE = 6, - /// The CPA revenue earned, calculated in publisher currency, for the ads delivered - /// by the ad server.

Corresponds to "CPA revenue" in the Ad Manager UI. - /// Compatible with the "Historical" report type.

+ VIDEO_VAST3_ERROR_200_COUNT_REAL_TIME = 637, + /// Number of VAST video errors of type 201.

Corresponds to "VAST error 201 + /// count" in the Ad Manager UI. Compatible with the "Real-time video" report + /// type.

///
- AD_SERVER_CPA_REVENUE = 7, - /// The CPM, CPC and CPD revenue earned, calculated in publisher currency, for the - /// ads delivered by the ad server.

Corresponds to "Ad server CPM, CPC, CPD, and - /// vCPM revenue" in the Ad Manager UI. Compatible with the "Historical" report + VIDEO_VAST3_ERROR_201_COUNT_REAL_TIME = 638, + ///

Number of VAST video errors of type 202.

Corresponds to "VAST error 202 + /// count" in the Ad Manager UI. Compatible with the "Real-time video" report /// type.

///
- AD_SERVER_ALL_REVENUE = 8, - /// The average estimated cost-per-thousand-impressions earned from the CPM and CPC - /// ads delivered by the ad server.

Corresponds to "Ad server average eCPM" in - /// the Ad Manager UI. Compatible with the "Historical" report type.

+ VIDEO_VAST3_ERROR_202_COUNT_REAL_TIME = 639, + /// Number of VAST video errors of type 203.

Corresponds to "VAST error 203 + /// count" in the Ad Manager UI. Compatible with the "Real-time video" report + /// type.

///
- AD_SERVER_WITHOUT_CPD_AVERAGE_ECPM = 9, - /// The average estimated cost-per-thousand-impressions earned from the CPM, CPC and - /// CPD ads delivered by the ad server. + VIDEO_VAST3_ERROR_203_COUNT_REAL_TIME = 640, + /// Number of VAST video errors of type 300.

Corresponds to "VAST error 300 + /// count" in the Ad Manager UI. Compatible with the "Real-time video" report + /// type.

///
- AD_SERVER_WITH_CPD_AVERAGE_ECPM = 10, - /// The ratio of the number of impressions delivered to the total impressions - /// delivered by the ad server for line item-level dynamic allocation. Represented - /// as a percentage.

Corresponds to "Ad server impressions (%)" in the Ad Manager - /// UI. Compatible with the "Historical" report type.

+ VIDEO_VAST3_ERROR_300_COUNT_REAL_TIME = 641, + /// Number of VAST video errors of type 301.

Corresponds to "VAST error 301 + /// count" in the Ad Manager UI. Compatible with the "Real-time video" report + /// type.

///
- AD_SERVER_LINE_ITEM_LEVEL_PERCENT_IMPRESSIONS = 12, - /// The ratio of the number of clicks delivered to the total clicks delivered by the - /// ad server for line item-level dynamic allocation. Represented as a percentage. - ///

Corresponds to "Ad server clicks (%)" in the Ad Manager UI. Compatible with - /// the "Historical" report type.

+ VIDEO_VAST3_ERROR_301_COUNT_REAL_TIME = 642, + /// Number of VAST video errors of type 302.

Corresponds to "VAST error 302 + /// count" in the Ad Manager UI. Compatible with the "Real-time video" report + /// type.

///
- AD_SERVER_LINE_ITEM_LEVEL_PERCENT_CLICKS = 14, - /// The ratio of revenue generated by ad server to the total CPM and CPC revenue - /// earned by the ads delivered for line item-level dynamic allocation. Represented - /// as a percentage.

Corresponds to "Ad server revenue (%)" in the Ad Manager UI. - /// Compatible with the "Historical" report type.

+ VIDEO_VAST3_ERROR_302_COUNT_REAL_TIME = 643, + /// Number of VAST video errors of type 303.

Corresponds to "VAST error 303 + /// count" in the Ad Manager UI. Compatible with the "Real-time video" report + /// type.

///
- AD_SERVER_LINE_ITEM_LEVEL_WITHOUT_CPD_PERCENT_REVENUE = 17, - /// The ratio of revenue generated by ad server to the total CPM, CPC and CPD - /// revenue earned by the ads delivered for line item-level dynamic allocation. - /// Represented as a percentage. + VIDEO_VAST3_ERROR_303_COUNT_REAL_TIME = 644, + /// Number of VAST video errors of type 400.

Corresponds to "VAST error 400 + /// count" in the Ad Manager UI. Compatible with the "Real-time video" report + /// type.

///
- AD_SERVER_LINE_ITEM_LEVEL_WITH_CPD_PERCENT_REVENUE = 18, - /// The number of downloaded impressions delivered by the ad server including - /// impressions recognized as spam.

Corresponds to "Ad server unfiltered - /// downloaded impressions" in the Ad Manager UI. Compatible with the "Historical" - /// report type.

+ VIDEO_VAST3_ERROR_400_COUNT_REAL_TIME = 645, + /// Number of VAST video errors of type 401.

Corresponds to "VAST error 401 + /// count" in the Ad Manager UI. Compatible with the "Real-time video" report + /// type.

///
- AD_SERVER_UNFILTERED_IMPRESSIONS = 435, - /// The number of begin to render impressions delivered by the ad server including - /// impressions recognized as spam.

Corresponds to "Ad server unfiltered begin to - /// render impressions" in the Ad Manager UI. Compatible with the "Historical" - /// report type.

+ VIDEO_VAST3_ERROR_401_COUNT_REAL_TIME = 646, + /// Number of VAST video errors of type 402.

Corresponds to "VAST error 402 + /// count" in the Ad Manager UI. Compatible with the "Real-time video" report + /// type.

///
- AD_SERVER_UNFILTERED_BEGIN_TO_RENDER_IMPRESSIONS = 620, - /// The number of clicks delivered by the ad server including clicks recognized as - /// spam.

Corresponds to "Ad server unfiltered clicks" in the Ad Manager UI. - /// Compatible with the "Historical" report type.

+ VIDEO_VAST3_ERROR_402_COUNT_REAL_TIME = 647, + /// Number of VAST video errors of type 403.

Corresponds to "VAST error 403 + /// count" in the Ad Manager UI. Compatible with the "Real-time video" report + /// type.

///
- AD_SERVER_UNFILTERED_CLICKS = 436, - /// The number of impressions an AdSense ad delivered for line item-level dynamic - /// allocation.

Corresponds to "AdSense impressions" in the Ad Manager UI. - /// Compatible with the "Historical" report type.

+ VIDEO_VAST3_ERROR_403_COUNT_REAL_TIME = 648, + /// Number of VAST video errors of type 405.

Corresponds to "VAST error 405 + /// count" in the Ad Manager UI. Compatible with the "Real-time video" report + /// type.

///
- ADSENSE_LINE_ITEM_LEVEL_IMPRESSIONS = 26, - /// The number of impressions an AdSense ad delivered for line item-level dynamic - /// allocation by explicit custom criteria targeting.

Corresponds to "AdSense - /// targeted impressions" in the Ad Manager UI. Compatible with the "Historical" - /// report type.

+ VIDEO_VAST3_ERROR_405_COUNT_REAL_TIME = 649, + /// Number of VAST video errors of type 500.

Corresponds to "VAST error 500 + /// count" in the Ad Manager UI. Compatible with the "Real-time video" report + /// type.

///
- ADSENSE_LINE_ITEM_LEVEL_TARGETED_IMPRESSIONS = 27, - /// The number of clicks an AdSense ad delivered for line item-level dynamic - /// allocation.

Corresponds to "AdSense clicks" in the Ad Manager UI. Compatible - /// with the "Historical" report type.

+ VIDEO_VAST3_ERROR_500_COUNT_REAL_TIME = 650, + /// Number of VAST video errors of type 501.

Corresponds to "VAST error 501 + /// count" in the Ad Manager UI. Compatible with the "Real-time video" report + /// type.

///
- ADSENSE_LINE_ITEM_LEVEL_CLICKS = 29, - /// The number of clicks an AdSense ad delivered for line item-level dynamic - /// allocation by explicit custom criteria targeting.

Corresponds to "AdSense - /// targeted clicks" in the Ad Manager UI. Compatible with the "Historical" report + VIDEO_VAST3_ERROR_501_COUNT_REAL_TIME = 651, + ///

Number of VAST video errors of type 502.

Corresponds to "VAST error 502 + /// count" in the Ad Manager UI. Compatible with the "Real-time video" report /// type.

///
- ADSENSE_LINE_ITEM_LEVEL_TARGETED_CLICKS = 30, - /// The ratio of clicks an AdSense reservation ad delivered to the number of - /// impressions it delivered, including line item-level dynamic allocation. - ///

Corresponds to "AdSense CTR" in the Ad Manager UI. Compatible with the - /// "Historical" report type.

+ VIDEO_VAST3_ERROR_502_COUNT_REAL_TIME = 652, + /// Number of VAST video errors of type 503.

Corresponds to "VAST error 503 + /// count" in the Ad Manager UI. Compatible with the "Real-time video" report + /// type.

///
- ADSENSE_LINE_ITEM_LEVEL_CTR = 32, - /// Revenue generated from AdSense ads delivered for line item-level dynamic - /// allocation.

Corresponds to "AdSense revenue" in the Ad Manager UI. Compatible - /// with the "Historical" report type.

+ VIDEO_VAST3_ERROR_503_COUNT_REAL_TIME = 653, + /// Number of VAST video errors of type 600.

Corresponds to "VAST error 600 + /// count" in the Ad Manager UI. Compatible with the "Real-time video" report + /// type.

///
- ADSENSE_LINE_ITEM_LEVEL_REVENUE = 34, - /// The average estimated cost-per-thousand-impressions earned from the ads - /// delivered by AdSense for line item-level dynamic allocation.

Corresponds to - /// "AdSense average eCPM" in the Ad Manager UI. Compatible with the "Historical" - /// report type.

+ VIDEO_VAST3_ERROR_600_COUNT_REAL_TIME = 654, + /// Number of VAST video errors of type 601.

Corresponds to "VAST error 601 + /// count" in the Ad Manager UI. Compatible with the "Real-time video" report + /// type.

///
- ADSENSE_LINE_ITEM_LEVEL_AVERAGE_ECPM = 36, - /// The ratio of the number of impressions delivered by AdSense reservation ads to - /// the total impressions delivered for line item-level dynamic allocation. - /// Represented as a percentage.

Corresponds to "AdSense impressions (%)" in the - /// Ad Manager UI. Compatible with the "Historical" report type.

+ VIDEO_VAST3_ERROR_601_COUNT_REAL_TIME = 655, + /// Number of VAST video errors of type 602.

Corresponds to "VAST error 602 + /// count" in the Ad Manager UI. Compatible with the "Real-time video" report + /// type.

///
- ADSENSE_LINE_ITEM_LEVEL_PERCENT_IMPRESSIONS = 38, - /// The ratio of the number of clicks delivered by AdSense reservation ads to the - /// total clicks delivered for line item-level dynamic allocation. Represented as a - /// percentage.

Corresponds to "AdSense clicks (%)" in the Ad Manager UI. - /// Compatible with the "Historical" report type.

+ VIDEO_VAST3_ERROR_602_COUNT_REAL_TIME = 656, + /// Number of VAST video errors of type 603.

Corresponds to "VAST error 603 + /// count" in the Ad Manager UI. Compatible with the "Real-time video" report + /// type.

///
- ADSENSE_LINE_ITEM_LEVEL_PERCENT_CLICKS = 40, - /// The ratio of revenue to the total revenue earned from the CPM and CPC ads - /// delivered by AdSense for line item-level dynamic allocation. Represented as a - /// percentage.

Corresponds to "AdSense revenue (%)" in the Ad Manager UI. - /// Compatible with the "Historical" report type.

+ VIDEO_VAST3_ERROR_603_COUNT_REAL_TIME = 657, + /// Number of VAST video errors of type 604.

Corresponds to "VAST error 604 + /// count" in the Ad Manager UI. Compatible with the "Real-time video" report + /// type.

///
- ADSENSE_LINE_ITEM_LEVEL_WITHOUT_CPD_PERCENT_REVENUE = 43, - /// The ratio of revenue to the total revenue earned from the CPM, CPC and CPD ads - /// delivered by AdSense for line item-level dynamic allocation. Represented as a - /// percentage. + VIDEO_VAST3_ERROR_604_COUNT_REAL_TIME = 658, + /// Number of VAST video errors of type 900.

Corresponds to "VAST error 900 + /// count" in the Ad Manager UI. Compatible with the "Real-time video" report + /// type.

///
- ADSENSE_LINE_ITEM_LEVEL_WITH_CPD_PERCENT_REVENUE = 44, - /// The number of impressions an Ad Exchange ad delivered for line item-level - /// dynamic allocation.

Corresponds to "Ad Exchange impressions" in the Ad - /// Manager UI. Compatible with the "Historical" report type.

+ VIDEO_VAST3_ERROR_900_COUNT_REAL_TIME = 659, + /// Number of VAST video errors of type 901.

Corresponds to "VAST error 901 + /// count" in the Ad Manager UI. Compatible with the "Real-time video" report + /// type.

///
- AD_EXCHANGE_LINE_ITEM_LEVEL_IMPRESSIONS = 45, - /// The number of bids associated with the selected dimensions.

Corresponds to - /// "Bids" in the Ad Manager UI. Compatible with the "Historical" report type.

+ VIDEO_VAST3_ERROR_901_COUNT_REAL_TIME = 660, + /// Number of VAST video errors of type 406.

Corresponds to "VAST error 406 + /// count" in the Ad Manager UI. Compatible with the "Real-time video" report + /// type.

///
- BID_COUNT = 668, - /// The average CPM associated with these bids.

Corresponds to "Average bid CPM" - /// in the Ad Manager UI. Compatible with the "Historical" report type.

+ VIDEO_VAST4_ERROR_406_COUNT_REAL_TIME = 661, + /// Number of VAST video errors of type 407.

Corresponds to "VAST error 407 + /// count" in the Ad Manager UI. Compatible with the "Real-time video" report + /// type.

///
- BID_AVERAGE_CPM = 669, - /// Number of times a yield partner is asked to return bid to fill a yield group - /// request.

Only applies to Open Bidding; not Mediation.

This data is - /// available for 45 days after the event.

Corresponds to "Yield group - /// callouts" in the Ad Manager UI. Compatible with the "Historical" report + VIDEO_VAST4_ERROR_407_COUNT_REAL_TIME = 662, + ///

Number of VAST video errors of type 408.

Corresponds to "VAST error 408 + /// count" in the Ad Manager UI. Compatible with the "Real-time video" report /// type.

///
- YIELD_GROUP_CALLOUTS = 670, - /// Number of times a yield group buyer successfully returned a bid in response to a - /// yield group callout, even if that response is "no bids."

Only applies to Open - /// Bidding; not Mediation.

This data is available for 45 days after the - /// event.

Corresponds to "Yield group successful responses" in the Ad - /// Manager UI. Compatible with the "Historical" report type.

+ VIDEO_VAST4_ERROR_408_COUNT_REAL_TIME = 663, + /// Number of VAST video errors of type 409.

Corresponds to "VAST error 409 + /// count" in the Ad Manager UI. Compatible with the "Real-time video" report + /// type.

///
- YIELD_GROUP_SUCCESSFUL_RESPONSES = 671, - /// Number of bids received from Open Bidding buyers, regardless of whether the - /// returned bid competes in an auction. This number might be greater than Yield - /// group callouts because a buyer can return multiple bids.

Only applies to Open - /// Bidding; not Mediation.

This data is available for 45 days after the - /// event.

Corresponds to "Yield group bids" in the Ad Manager UI. Compatible - /// with the "Historical" report type.

+ VIDEO_VAST4_ERROR_409_COUNT_REAL_TIME = 664, + /// Number of VAST video errors of type 410.

Corresponds to "VAST error 410 + /// count" in the Ad Manager UI. Compatible with the "Real-time video" report + /// type.

///
- YIELD_GROUP_BIDS = 672, - /// Number of bids received from Open Bidding buyers that competed in the auction. - ///

Some bids may be filtered out before the auction runs if the bidder's - /// response omits required fields or contains a creative that violates Google's - /// policies. Learn more about policies and enforcement.

Only applies to Open - /// Bidding; not Mediation.

This data is available for 45 days after the - /// event.

Corresponds to "Yield group bids in auction" in the Ad Manager UI. - /// Compatible with the "Historical" report type.

+ VIDEO_VAST4_ERROR_410_COUNT_REAL_TIME = 665, + /// Number of total VAST video errors.

Corresponds to "Total error count" in the + /// Ad Manager UI. Compatible with the "Real-time video" report type.

///
- YIELD_GROUP_BIDS_IN_AUCTION = 673, - /// Number of winning bids received from Open Bidding buyers, even when the winning - /// bid is placed at the end of a mediation for mobile apps chain.

Only applies - /// to Open Bidding; not Mediation.

This data is available for 45 days after - /// the event.

Corresponds to "Yield group auctions won" in the Ad Manager + VIDEO_VAST_TOTAL_ERROR_COUNT_REAL_TIME = 666, + ///

The total number of impressions viewed on the user's screen.

Corresponds to + /// "Total Active View viewable impressions" in the Ad Manager UI. Compatible with + /// the "Historical" report type.

+ ///
+ TOTAL_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS = 240, + /// The total number of impressions that were sampled and measured by active view. + ///

Corresponds to "Total Active View measurable impressions" in the Ad Manager /// UI. Compatible with the "Historical" report type.

///
- YIELD_GROUP_AUCTIONS_WON = 674, - /// Number of bid requests sent for each deal.

Must be broken down by - /// PROGRAMMATIC_DEAL_ID or .

Not tracked for - /// Programmatic Guaranteed deals (will show zero on those rows).

Corresponds - /// to "Deals bid requests" in the Ad Manager UI. Compatible with the "Historical" - /// report type.

+ TOTAL_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS = 241, + /// The percentage of total impressions viewed on the user's screen (out of the + /// total impressions measurable by active view). /// - DEALS_BID_REQUESTS = 675, - /// Number of bids placed on each deal.

Not tracked for Programmatic Guaranteed - /// deals (will show zero on those rows).

Corresponds to "Deals bids" in the - /// Ad Manager UI. Compatible with the "Historical" report type.

+ TOTAL_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE = 242, + /// Total number of impressions that were eligible to measure viewability. + ///

Corresponds to "Total Active View eligible impressions" in the Ad Manager UI. + /// Compatible with the "Historical" report type.

///
- DEALS_BIDS = 676, - /// Bid rate for each deal.

Must be broken down by - /// PROGRAMMATIC_DEAL_ID or .

Not tracked for - /// Programmatic Guaranteed deals (will show N/A on those rows).

Corresponds - /// to "Deals bid rate" in the Ad Manager UI. Compatible with the "Historical" - /// report type.

+ TOTAL_ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS = 243, + /// The percentage of total impressions that were measurable by active view (out of + /// all the total impressions sampled for active view).

Corresponds to "Total + /// Active View % measurable impressions" in the Ad Manager UI. Compatible with the + /// "Historical" report type.

///
- DEALS_BID_RATE = 677, - /// Number of winning bids for each deal.

Not tracked for Programmatic Guaranteed - /// deals (will show zero on those rows).

Corresponds to "Deals winning bids" - /// in the Ad Manager UI. Compatible with the "Historical" report type.

+ TOTAL_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE = 244, + /// Active View total average time in seconds that specific impressions are reported + /// as being viewable.

Corresponds to "Total Active View average viewable time + /// (seconds)" in the Ad Manager UI. Compatible with the "Historical" report + /// type.

///
- DEALS_WINNING_BIDS = 678, - /// Win rate for each deal.

Not tracked for Programmatic Guaranteed deals (will - /// show N/A on those rows).

Corresponds to "Deals win rate" in the Ad + TOTAL_ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME = 488, + ///

The percentage of total impressions from video creatives with audible playback + /// at start, from all total measurable impressions for Active View.

Corresponds + /// to "Active View % audible at start" in the Ad Manager UI. Compatible with the + /// "Historical" report type.

+ ///
+ ACTIVE_VIEW_PERCENT_AUDIBLE_START_IMPRESSIONS = 690, + /// The percentage of total impressions from video creatives where volume > 0 at + /// any point, from all total impressions measurable for Active View.

Corresponds + /// to "Active View % ever audible" in the Ad Manager UI. Compatible with the + /// "Historical" report type.

+ ///
+ ACTIVE_VIEW_PERCENT_EVER_AUDIBLE_IMPRESSIONS = 691, + /// The number of impressions delivered by the ad server viewed on the user's + /// screen.

Corresponds to "Ad server Active View viewable impressions" in the Ad /// Manager UI. Compatible with the "Historical" report type.

///
- DEALS_WIN_RATE = 679, - /// Number of matched yield group requests where a yield partner delivered their ad - /// to publisher inventory.

Corresponds to "Yield group impressions" in the Ad + AD_SERVER_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS = 245, + ///

The number of impressions delivered by the ad server that were sampled, and + /// measurable by active view.

Corresponds to "Ad server Active View measurable + /// impressions" in the Ad Manager UI. Compatible with the "Historical" report + /// type.

+ ///
+ AD_SERVER_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS = 246, + /// The percentage of impressions delivered by the ad server viewed on the user's + /// screen (out of the ad server impressions measurable by active view). + ///

Corresponds to "Ad server Active View % viewable impressions" in the Ad /// Manager UI. Compatible with the "Historical" report type.

///
- YIELD_GROUP_IMPRESSIONS = 680, - /// Total net revenue earned by a yield group, based upon the yield group estimated - /// CPM and yield group impressions recorded. This revenue already excludes Google - /// revenue share.

Corresponds to "Yield group estimated revenue" in the Ad + AD_SERVER_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE = 247, + ///

Total number of impressions delivered by the ad server that were eligible to + /// measure viewability.

Corresponds to "Ad server Active View eligible + /// impressions" in the Ad Manager UI. Compatible with the "Historical" report + /// type.

+ ///
+ AD_SERVER_ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS = 248, + /// The percentage of impressions delivered by the ad server that were measurable by + /// active view ( out of all the ad server impressions sampled for active view). + ///

Corresponds to "Ad server Active View % measurable impressions" in the Ad /// Manager UI. Compatible with the "Historical" report type.

///
- YIELD_GROUP_ESTIMATED_REVENUE = 681, - /// The estimated net rate for yield groups or individual yield group partners. - ///

Corresponds to "Yield group estimated CPM" in the Ad Manager UI. Compatible - /// with the "Historical" report type.

+ AD_SERVER_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE = 249, + /// Active View ad server revenue.

Corresponds to "Ad server Active View revenue" + /// in the Ad Manager UI. Compatible with the "Historical" report type.

///
- YIELD_GROUP_ESTIMATED_CPM = 682, - /// Yield group Mediation fill rate indicating how often a network fills an ad - /// request.

Corresponds to "Mediation fill rate" in the Ad Manager UI. - /// Compatible with the "Historical" report type.

+ AD_SERVER_ACTIVE_VIEW_REVENUE = 422, + /// Active View ad server average time in seconds that specific impressions are + /// reported as being viewable.

Corresponds to "Ad server Active View average + /// viewable time (seconds)" in the Ad Manager UI. Compatible with the "Historical" + /// report type.

///
- YIELD_GROUP_MEDIATION_FILL_RATE = 683, - /// Passbacks are counted when an ad network is given a chance to serve but does not - /// deliver an impression, and Ad Manager Mediation moves on to the next ad network - /// in the mediation chain.

Passbacks are not currently counted for the "Ad - /// server" demand channel.

Corresponds to "Mediation passbacks" in the Ad - /// Manager UI. Compatible with the "Historical" report type.

+ AD_SERVER_ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME = 489, + /// The number of impressions delivered by AdSense viewed on the user's screen, + ///

Corresponds to "AdSense Active View viewable impressions" in the Ad Manager + /// UI. Compatible with the "Historical" report type.

///
- YIELD_GROUP_MEDIATION_PASSBACKS = 684, - /// Revenue per thousand impressions based on data collected by Ad Manager from - /// third-party ad network reports. Displays zero if data collection is not enabled. - ///

Corresponds to "Mediation third-party eCPM" in the Ad Manager UI. Compatible + ADSENSE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS = 250, + ///

The number of impressions delivered by AdSense that were sampled, and measurable + /// by active view.

Corresponds to "AdSense Active View measurable impressions" + /// in the Ad Manager UI. Compatible with the "Historical" report type.

+ ///
+ ADSENSE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS = 251, + /// The percentage of impressions delivered by AdSense viewed on the user's screen + /// (out of AdSense impressions measurable by active view).

Corresponds to + /// "AdSense Active View % viewable impressions" in the Ad Manager UI. Compatible /// with the "Historical" report type.

///
- YIELD_GROUP_MEDIATION_THIRD_PARTY_ECPM = 685, - /// Total requests where a Mediation chain was served, even if none of the ad - /// networks delivered an impression.

Corresponds to "Mediation chains served" in - /// the Ad Manager UI. Compatible with the "Historical" report type.

+ ADSENSE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE = 252, + /// Total number of impressions delivered by AdSense that were eligible to measure + /// viewability.

Corresponds to "AdSense Active View eligible impressions" in the + /// Ad Manager UI. Compatible with the "Historical" report type.

///
- YIELD_GROUP_MEDIATION_CHAINS_SERVED = 686, - /// Mediation third-party average cost-per-thousand-impressions.

Compatible with - /// the "Historical" report type.

+ ADSENSE_ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS = 253, + /// The percentage of impressions delivered by AdSense that were measurable by + /// active view ( out of all AdSense impressions sampled for active view). + ///

Corresponds to "AdSense Active View % measurable impressions" in the Ad + /// Manager UI. Compatible with the "Historical" report type.

///
- MEDIATION_THIRD_PARTY_ECPM = 431, - /// The number of impressions an Ad Exchange ad delivered for line item-level - /// dynamic allocation by explicit custom criteria targeting.

Corresponds to "Ad - /// Exchange targeted impressions" in the Ad Manager UI. Compatible with the - /// "Historical" report type.

+ ADSENSE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE = 254, + /// Active View AdSense average time in seconds that specific impressions are + /// reported as being viewable.

Corresponds to "AdSense Active View average + /// viewable time (seconds)" in the Ad Manager UI. Compatible with the "Historical" + /// report type.

///
- AD_EXCHANGE_LINE_ITEM_LEVEL_TARGETED_IMPRESSIONS = 77, - /// The number of clicks an Ad Exchange ad delivered for line item-level dynamic - /// allocation.

Corresponds to "Ad Exchange clicks" in the Ad Manager UI. - /// Compatible with the "Historical" report type.

+ ADSENSE_ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME = 490, + /// The number of impressions delivered by Ad Exchange viewed on the user's screen, + ///

Corresponds to "Ad Exchange Active View viewable impressions" in the Ad + /// Manager UI. Compatible with the "Historical" report type.

///
- AD_EXCHANGE_LINE_ITEM_LEVEL_CLICKS = 78, - /// The number of clicks an Ad Exchange ad delivered for line item-level dynamic - /// allocation by explicit custom criteria targeting.

Corresponds to "Ad Exchange - /// targeted clicks" in the Ad Manager UI. Compatible with the "Historical" report + AD_EXCHANGE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS = 255, + ///

The number of impressions delivered by Ad Exchange that were sampled, and + /// measurable by active view.

Corresponds to "Ad Exchange Active View measurable + /// impressions" in the Ad Manager UI. Compatible with the "Historical" report /// type.

///
- AD_EXCHANGE_LINE_ITEM_LEVEL_TARGETED_CLICKS = 79, - /// The ratio of clicks an Ad Exchange ad delivered to the number of impressions it - /// delivered for line item-level dynamic allocation.

Corresponds to "Ad Exchange - /// CTR" in the Ad Manager UI. Compatible with the "Historical" report type.

+ AD_EXCHANGE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS = 256, + /// The percentage of impressions delivered by Ad Exchange viewed on the user's + /// screen (out of Ad Exchange impressions measurable by active view). + ///

Corresponds to "Ad Exchange Active View % viewable impressions" in the Ad + /// Manager UI. Compatible with the "Historical" report type.

///
- AD_EXCHANGE_LINE_ITEM_LEVEL_CTR = 80, - /// The ratio of the number of impressions delivered to the total impressions - /// delivered by Ad Exchange for line item-level dynamic allocation. Represented as - /// a percentage.

Corresponds to "Ad Exchange impressions (%)" in the Ad Manager - /// UI. Compatible with the "Historical" report type.

+ AD_EXCHANGE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE = 257, + /// Total number of impressions delivered by Ad Exchange that were eligible to + /// measure viewability.

Corresponds to "Ad Exchange Active View eligible + /// impressions" in the Ad Manager UI. Compatible with the "Historical" report + /// type.

///
- AD_EXCHANGE_LINE_ITEM_LEVEL_PERCENT_IMPRESSIONS = 81, - /// The ratio of the number of clicks delivered to the total clicks delivered by Ad - /// Exchange for line item-level dynamic allocation. Represented as a percentage. - ///

Corresponds to "Ad Exchange clicks (%)" in the Ad Manager UI. Compatible with - /// the "Historical" report type.

+ AD_EXCHANGE_ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS = 258, + /// The percentage of impressions delivered by Ad Exchange that were measurable by + /// active view ( out of all Ad Exchange impressions sampled for active view). + ///

Corresponds to "Ad Exchange Active View % measurable impressions" in the Ad + /// Manager UI. Compatible with the "Historical" report type.

///
- AD_EXCHANGE_LINE_ITEM_LEVEL_PERCENT_CLICKS = 82, - /// Revenue generated from Ad Exchange ads delivered for line item-level dynamic - /// allocation. Represented in publisher currency and time zone.

Corresponds to - /// "Ad Exchange revenue" in the Ad Manager UI. Compatible with the "Historical" + AD_EXCHANGE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE = 259, + ///

Active View AdExchange average time in seconds that specific impressions are + /// reported as being viewable.

Corresponds to "Ad Exchange Active View average + /// viewable time (seconds)" in the Ad Manager UI. Compatible with the "Historical" /// report type.

///
- AD_EXCHANGE_LINE_ITEM_LEVEL_REVENUE = 83, - /// The ratio of revenue generated by Ad Exchange to the total revenue earned by CPM - /// and CPC ads delivered for line item-level dynamic allocation. Represented as a - /// percentage.

Corresponds to "Ad Exchange revenue (%)" in the Ad Manager UI. + AD_EXCHANGE_ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME = 491, + ///

The total number of queries sent to Ad Exchange.

Corresponds to "Ad Exchange + /// ad requests" in the Ad Manager UI. Compatible with the "Historical" report + /// type.

+ ///
+ AD_EXCHANGE_TOTAL_REQUESTS = 611, + /// The fraction of Ad Exchange queries that result in a matched query. Also known + /// as "Coverage".

Corresponds to "Ad Exchange match rate" in the Ad Manager UI. /// Compatible with the "Historical" report type.

///
- AD_EXCHANGE_LINE_ITEM_LEVEL_WITHOUT_CPD_PERCENT_REVENUE = 84, - /// The ratio of revenue generated by Ad Exchange to the total revenue earned by - /// CPM, CPC and CPD ads delivered for line item-level dynamic allocation. - /// Represented as a percentage. + AD_EXCHANGE_MATCH_RATE = 612, + /// The amount earned per click on Ad Exchange.

Corresponds to "Ad Exchange CPC" + /// in the Ad Manager UI. Compatible with the "Historical" report type.

///
- AD_EXCHANGE_LINE_ITEM_LEVEL_WITH_CPD_PERCENT_REVENUE = 85, - /// The average estimated cost-per-thousand-impressions earned from the delivery of - /// Ad Exchange ads for line item-level dynamic allocation.

Corresponds to "Ad - /// Exchange average eCPM" in the Ad Manager UI. Compatible with the "Historical" - /// report type.

+ AD_EXCHANGE_COST_PER_CLICK = 613, + /// The fraction of Ad Exchange requests that result in a click.

Corresponds to + /// "Ad Exchange ad request CTR" in the Ad Manager UI. Compatible with the + /// "Historical" report type.

///
- AD_EXCHANGE_LINE_ITEM_LEVEL_AVERAGE_ECPM = 86, - /// The total number of impressions delivered including line item-level dynamic - /// allocation.

Corresponds to "Total impressions" in the Ad Manager UI. + AD_EXCHANGE_TOTAL_REQUEST_CTR = 614, + ///

The fraction of Ad Exchange matched requests that result in a click. + ///

Corresponds to "Ad Exchange matched request CTR" in the Ad Manager UI. /// Compatible with the "Historical" report type.

///
- TOTAL_LINE_ITEM_LEVEL_IMPRESSIONS = 88, - /// The total number of impressions delivered including line item-level dynamic - /// allocation by explicit custom criteria targeting.

Corresponds to "Total - /// targeted impressions" in the Ad Manager UI. Compatible with the "Historical" + AD_EXCHANGE_MATCHED_REQUEST_CTR = 615, + ///

The amount earned per thousand Ad Exchange requests.

Corresponds to "Ad + /// Exchange ad request eCPM" in the Ad Manager UI. Compatible with the "Historical" /// report type.

///
- TOTAL_LINE_ITEM_LEVEL_TARGETED_IMPRESSIONS = 89, - /// The total number of clicks delivered including line item-level dynamic - /// allocation.

Corresponds to "Total clicks" in the Ad Manager UI. Compatible - /// with the "Historical" report type.

- ///
- TOTAL_LINE_ITEM_LEVEL_CLICKS = 92, - /// The total number of clicks delivered including line item-level dynamic - /// allocation by explicit custom criteria targeting

Corresponds to "Total - /// targeted clicks" in the Ad Manager UI. Compatible with the "Historical" report - /// type.

- ///
- TOTAL_LINE_ITEM_LEVEL_TARGETED_CLICKS = 93, - /// The ratio of total clicks on ads delivered by the ad servers to the total number - /// of impressions delivered for an ad including line item-level dynamic allocation. - ///

Corresponds to "Total CTR" in the Ad Manager UI. Compatible with the + AD_EXCHANGE_TOTAL_REQUEST_ECPM = 616, + ///

The amount earned per thousand Ad Exchange matched requests.

Corresponds to + /// "Ad Exchange matched request eCPM" in the Ad Manager UI. Compatible with the /// "Historical" report type.

///
- TOTAL_LINE_ITEM_LEVEL_CTR = 95, - /// The total CPM and CPC revenue generated by the ad servers including line - /// item-level dynamic allocation.

Corresponds to "Total CPM and CPC revenue" in - /// the Ad Manager UI. Compatible with the "Historical" report type.

+ AD_EXCHANGE_MATCHED_REQUEST_ECPM = 617, + /// The increase in Ad Exchange revenue gained for won impressions over the + /// applicable minimum CPM or the best price specified during dynamic allocation. + ///

Corresponds to "Ad Exchange lift" in the Ad Manager UI. Compatible with the + /// "Historical" report type.

///
- TOTAL_LINE_ITEM_LEVEL_CPM_AND_CPC_REVENUE = 98, - /// The total CPM, CPC and CPD revenue generated by the ad servers including line - /// item-level dynamic allocation.

Corresponds to "Total CPM, CPC, CPD, and vCPM - /// revenue" in the Ad Manager UI. Compatible with the "Historical" report type.

+ AD_EXCHANGE_LIFT_EARNINGS = 618, + /// Active View total revenue.

Corresponds to "Total Active View revenue" in the + /// Ad Manager UI. Compatible with the "Historical" report type.

///
- TOTAL_LINE_ITEM_LEVEL_ALL_REVENUE = 99, - /// Estimated cost-per-thousand-impressions (eCPM) of CPM and CPC ads delivered by - /// the ad servers including line item-level dynamic allocation.

Corresponds to - /// "Total average eCPM" in the Ad Manager UI. Compatible with the "Historical" - /// report type.

+ TOTAL_ACTIVE_VIEW_REVENUE = 425, + /// The number of impressions sent to Ad Exchange / AdSense, regardless of whether + /// they won or lost (total number of dynamic allocation impressions). + ///

Corresponds to "Impressions competing" in the Ad Manager UI. Compatible with + /// the "Historical" report type.

///
- TOTAL_LINE_ITEM_LEVEL_WITHOUT_CPD_AVERAGE_ECPM = 102, - /// Estimated cost-per-thousand-impressions (eCPM) of CPM, CPC and CPD ads delivered - /// by the ad servers including line item-level dynamic allocation. + DYNAMIC_ALLOCATION_OPPORTUNITY_IMPRESSIONS_COMPETING_TOTAL = 268, + /// The number of unfilled queries that attempted dynamic allocation by Ad Exchange + /// / AdSense.

Corresponds to "Unfilled competing impressions" in the Ad Manager + /// UI. Compatible with the "Historical" report type.

///
- TOTAL_LINE_ITEM_LEVEL_WITH_CPD_AVERAGE_ECPM = 103, - /// The total number of times that the code for an ad is served by the ad server - /// including inventory-level dynamic allocation.

Corresponds to "Total code - /// served count" in the Ad Manager UI. Compatible with the "Historical" report - /// type.

+ DYNAMIC_ALLOCATION_OPPORTUNITY_UNFILLED_IMPRESSIONS_COMPETING = 269, + /// The number of Ad Exchange / AdSense and Ad Manager impressions.

Corresponds + /// to "Eligible impressions" in the Ad Manager UI. Compatible with the "Historical" + /// report type.

///
- TOTAL_CODE_SERVED_COUNT = 104, - /// The total number of times that an ad request is sent to the ad server including - /// dynamic allocation.

Corresponds to "Total ad requests" in the Ad Manager UI. - /// Compatible with the "Historical" report type.

+ DYNAMIC_ALLOCATION_OPPORTUNITY_ELIGIBLE_IMPRESSIONS_TOTAL = 270, + /// The difference between eligible impressions and competing impressions in dynamic + /// allocation. /// - TOTAL_AD_REQUESTS = 508, - /// The total number of times that an ad is served by the ad server including - /// dynamic allocation.

Corresponds to "Total responses served" in the Ad Manager + DYNAMIC_ALLOCATION_OPPORTUNITY_IMPRESSIONS_NOT_COMPETING_TOTAL = 271, + ///

The percentage of eligible impressions that are not competing in dynamic + /// allocation.

Corresponds to "Impressions not competing (%)" in the Ad Manager /// UI. Compatible with the "Historical" report type.

///
- TOTAL_RESPONSES_SERVED = 509, - /// The total number of times that an ad is not returned by the ad server. - ///

Corresponds to "Total unmatched ad requests" in the Ad Manager UI. Compatible - /// with the "Historical" report type.

- ///
- TOTAL_UNMATCHED_AD_REQUESTS = 510, - /// The fill rate indicating how often an ad request is filled by the ad server - /// including dynamic allocation.

Corresponds to "Total fill rate" in the Ad - /// Manager UI. Compatible with the "Historical" report type.

+ DYNAMIC_ALLOCATION_OPPORTUNITY_IMPRESSIONS_NOT_COMPETING_PERCENT_TOTAL = 272, + /// The percent of eligible impressions participating in dynamic allocation. /// - TOTAL_FILL_RATE = 511, - /// The total number of times that an ad is served by the ad server.

Corresponds - /// to "Ad server responses served" in the Ad Manager UI. Compatible with the + DYNAMIC_ALLOCATION_OPPORTUNITY_SATURATION_RATE_TOTAL = 273, + ///

The percent of total dynamic allocation queries that won.

Corresponds to + /// "Dynamic allocation match rate" in the Ad Manager UI. Compatible with the /// "Historical" report type.

///
- AD_SERVER_RESPONSES_SERVED = 512, - /// The total number of times that an AdSense ad is delivered.

Corresponds to - /// "AdSense responses served" in the Ad Manager UI. Compatible with the - /// "Historical" report type.

+ DYNAMIC_ALLOCATION_OPPORTUNITY_MATCH_RATE_TOTAL = 274, + /// The number of invoiced impressions.

Corresponds to "Invoiced impressions" in + /// the Ad Manager UI. Compatible with the "Historical" report type.

///
- ADSENSE_RESPONSES_SERVED = 513, - /// The total number of times that an Ad Exchange ad is delivered.

Corresponds to - /// "Ad Exchange responses served" in the Ad Manager UI. Compatible with the - /// "Historical" report type.

+ INVOICED_IMPRESSIONS = 379, + /// The number of invoiced unfilled impressions.

Corresponds to "Invoiced + /// unfilled impressions" in the Ad Manager UI. Compatible with the "Historical" + /// report type.

///
- AD_EXCHANGE_RESPONSES_SERVED = 514, - /// Total number of ad responses served from programmatic demand sources. Includes - /// Ad Exchange, Open Bidding, and Preferred Deals.

Differs from Ad Exchange - /// responses served, which doesn't include Open Bidding matched ad requests.

- ///

Corresponds to "Programmatic responses served" in the Ad Manager UI. - /// Compatible with the "Historical" report type.

+ INVOICED_UNFILLED_IMPRESSIONS = 380, + /// The total number of impressions tracked for Nielsen Digital Ad Ratings + /// measurement.

Corresponds to "Impressions" in the Ad Manager UI. Compatible + /// with the "Reach" report type.

///
- PROGRAMMATIC_RESPONSES_SERVED = 687, - /// The number of programmatic responses served divided by the number of requests - /// eligible for programmatic. Includes Ad Exchange, Open Bidding, and Preferred - /// Deals.

Corresponds to "Programmatic match rate" in the Ad Manager UI. - /// Compatible with the "Historical" report type.

+ NIELSEN_IMPRESSIONS = 400, + /// The total number of impressions for in-target demographic tracked for Nielsen + /// Digital Ad Ratings measurement.

Corresponds to "In-target impressions" in the + /// Ad Manager UI. Compatible with the "Reach" report type.

///
- PROGRAMMATIC_MATCH_RATE = 688, - /// The total number of ad requests eligible for programmatic inventory, including - /// Programmatic Guaranteed, Preferred Deals, backfill, and open auction.

For - /// optimized pods, this metric will count a single opportunity when the pod doesn't - /// fill with programmatic demand. When it does fill, it will count each matched - /// query.

Corresponds to "Programmatic eligible ad requests" in the Ad - /// Manager UI. Compatible with the "Historical" report type.

+ NIELSEN_IN_TARGET_IMPRESSIONS = 411, + /// The population in the demographic.

Corresponds to "Population base" in the Ad + /// Manager UI. Compatible with the "Reach" report type.

///
- TOTAL_PROGRAMMATIC_ELIGIBLE_AD_REQUESTS = 689, - /// The total number of video opportunities.

Corresponds to "True opportunities" - /// in the Ad Manager UI. Compatible with the "Historical" report type.

+ NIELSEN_POPULATION_BASE = 401, + /// The total population for all in-target demographics.

Compatible with the + /// "Reach" report type.

///
- TOTAL_VIDEO_OPPORTUNITIES = 571, - /// The total number of video capped opportunities.

Corresponds to "Capped - /// opportunities" in the Ad Manager UI. Compatible with the "Historical" report - /// type.

+ NIELSEN_IN_TARGET_POPULATION_BASE = 412, + /// The total number of different people within the selected demographic who were + /// reached.

Corresponds to "Unique audience" in the Ad Manager UI. Compatible + /// with the "Reach" report type.

///
- TOTAL_VIDEO_CAPPED_OPPORTUNITIES = 572, - /// The total number of video matched opportunities.

Corresponds to "Matched - /// opportunities" in the Ad Manager UI. Compatible with the "Historical" report - /// type.

+ NIELSEN_UNIQUE_AUDIENCE = 402, + /// The total number of different people within all in-target demographics who were + /// reached.

Compatible with the "Reach" report type.

///
- TOTAL_VIDEO_MATCHED_OPPORTUNITIES = 602, - /// The total filled duration in ad breaks.

Corresponds to "Matched duration - /// (seconds)" in the Ad Manager UI. Compatible with the "Historical" report - /// type.

+ NIELSEN_IN_TARGET_UNIQUE_AUDIENCE = 413, + /// The unique audience reached as a percentage of the population base. + ///

Corresponds to "% audience reach" in the Ad Manager UI. Compatible with the + /// "Reach" report type.

///
- TOTAL_VIDEO_MATCHED_DURATION = 603, - /// The total duration in ad breaks.

Corresponds to "Total duration (seconds)" in - /// the Ad Manager UI. Compatible with the "Historical" report type.

+ NIELSEN_PERCENT_AUDIENCE_REACH = 403, + /// The unique audience reached as a percentage of the population base for all + /// in-target demographics.

Compatible with the "Reach" report type.

///
- TOTAL_VIDEO_DURATION = 604, - /// The total number of break starts.

Corresponds to "Break start" in the Ad - /// Manager UI. Compatible with the "Historical" report type.

+ NIELSEN_IN_TARGET_PERCENT_AUDIENCE_REACH = 414, + /// The average number of times that a person within the target audience sees an + /// advertisement.

Corresponds to "Average frequency" in the Ad Manager UI. + /// Compatible with the "Reach" report type.

///
- TOTAL_VIDEO_BREAK_START = 605, - /// The total number of break ends.

Corresponds to "Break end" in the Ad Manager - /// UI. Compatible with the "Historical" report type.

+ NIELSEN_AVERAGE_FREQUENCY = 404, + /// The average number of times that a person within the target audience sees an + /// advertisement for all in-target demographics.

Compatible with the "Reach" + /// report type.

///
- TOTAL_VIDEO_BREAK_END = 606, - /// The total number of missed impressions due to the ad servers' inability to find - /// ads to serve, including inventory-level dynamic allocation.

Corresponds to - /// "Unfilled impressions" in the Ad Manager UI. Compatible with the "Historical" + NIELSEN_IN_TARGET_AVERAGE_FREQUENCY = 415, + ///

The unit of audience volume, which is based on the percentage of the reached + /// target audience population multiplied by the average frequency.

Corresponds + /// to "Gross rating points" in the Ad Manager UI. Compatible with the "Reach" /// report type.

///
- TOTAL_INVENTORY_LEVEL_UNFILLED_IMPRESSIONS = 105, - ///

Corresponds to "Average impressions/unique visitor" in the Ad Manager UI. - /// Compatible with the "Reach" report type.

+ NIELSEN_GROSS_RATING_POINTS = 405, + /// The unit of audience volume, which is based on the percentage of the reached + /// target audience population multiplied by the average frequency, for all + /// in-target demographics.

Compatible with the "Reach" report type.

///
- UNIQUE_REACH_FREQUENCY = 515, - ///

Corresponds to "Total reach impressions" in the Ad Manager UI. Compatible - /// with the "Reach" report type.

+ NIELSEN_IN_TARGET_GROSS_RATING_POINTS = 416, + /// The share of impressions that reached the target demographic.

Corresponds to + /// "% impression share" in the Ad Manager UI. Compatible with the "Reach" report + /// type.

///
- UNIQUE_REACH_IMPRESSIONS = 516, - ///

Corresponds to "Total unique visitors" in the Ad Manager UI. Compatible with - /// the "Reach" report type.

+ NIELSEN_PERCENT_IMPRESSIONS_SHARE = 406, + /// The share of impressions that reached all in-target demographics.

Corresponds + /// to "In-target % impression share" in the Ad Manager UI. Compatible with the + /// "Reach" report type.

///
- UNIQUE_REACH = 517, - /// The number of impressions for a particular SDK mediation creative. - ///

Corresponds to "SDK mediation creative impressions" in the Ad Manager UI. - /// Compatible with the "Historical" report type.

+ NIELSEN_IN_TARGET_PERCENT_IMPRESSIONS_SHARE = 417, + /// The share of the total population represented by the population base. + ///

Corresponds to "% population share" in the Ad Manager UI. Compatible with the + /// "Reach" report type.

///
- SDK_MEDIATION_CREATIVE_IMPRESSIONS = 140, - /// The number of clicks for a particular SDK mediation creative.

Corresponds to - /// "SDK mediation creative clicks" in the Ad Manager UI. Compatible with the - /// "Historical" report type.

+ NIELSEN_PERCENT_POPULATION_SHARE = 407, + /// The share of the total population for all in-target demographics represented by + /// the population base.

Compatible with the "Reach" report type.

///
- SDK_MEDIATION_CREATIVE_CLICKS = 141, - /// The number of forecasted impressions for future sell-through reports.

This - /// metric is available for the next 90 days with a daily break down and for the - /// next 12 months with a monthly break down.

Corresponds to "Forecasted - /// impressions" in the Ad Manager UI. Compatible with the "Future sell-through" - /// report type.

+ NIELSEN_IN_TARGET_PERCENT_POPULATION_SHARE = 418, + /// The share of the unique audience in the demographic.

Corresponds to "% + /// audience share" in the Ad Manager UI. Compatible with the "Reach" report + /// type.

///
- SELL_THROUGH_FORECASTED_IMPRESSIONS = 142, - /// The number of partner-sold impressions served to the YouTube partner ad - /// inventory.

Corresponds to "Partner-sold impressions" in the Ad Manager UI. - /// Compatible with the "YouTube consolidated" report type.

+ NIELSEN_PERCENT_AUDIENCE_SHARE = 408, + /// The share of the unique audience for all in-target demographics.

Compatible + /// with the "Reach" report type.

///
- PARTNER_SALES_PARTNER_IMPRESSIONS = 621, - /// The number of times the ad server responded to a request for the YouTube partner - /// ad inventory.

Corresponds to "Partner-sold code served count" in the Ad - /// Manager UI. Compatible with the "YouTube consolidated" report type.

+ NIELSEN_IN_TARGET_PERCENT_AUDIENCE_SHARE = 419, + /// The relative unique audience in the demographic compared with its share of the + /// overall population.

Corresponds to "Audience index" in the Ad Manager UI. + /// Compatible with the "Reach" report type.

///
- PARTNER_SALES_PARTNER_CODE_SERVED = 622, - /// The number of Google-sold impressions served to the YouTube partner ad - /// inventory.

Corresponds to "Google-sold impressions" in the Ad Manager UI. - /// Compatible with the "YouTube consolidated" report type.

+ NIELSEN_AUDIENCE_INDEX = 409, + /// The relative unique audience for all in-target demographics compared with its + /// share of the overall population.

Compatible with the "Reach" report type.

///
- PARTNER_SALES_GOOGLE_IMPRESSIONS = 623, - /// The number of Google-sold reservation impressions served to the YouTube partner - /// ad inventory.

Corresponds to "Google-sold reservation impressions" in the Ad - /// Manager UI. Compatible with the "YouTube consolidated" report type.

+ NIELSEN_IN_TARGET_AUDIENCE_INDEX = 420, + /// The relative impressions per person in the demographic compared with the + /// impressions per person for the overall population.

Corresponds to + /// "Impressions index" in the Ad Manager UI. Compatible with the "Reach" report + /// type.

///
- PARTNER_SALES_GOOGLE_RESERVATION_IMPRESSIONS = 624, - /// The number of Google-sold auction impressions served to the YouTube partner ad - /// inventory.

Corresponds to "Google-sold auction impressions" in the Ad Manager - /// UI. Compatible with the "YouTube consolidated" report type.

+ NIELSEN_IMPRESSIONS_INDEX = 410, + /// The relative impressions per person for all in-target demographics compared with + /// the impressions per person for the overall population.

Compatible with the + /// "Reach" report type.

///
- PARTNER_SALES_GOOGLE_AUCTION_IMPRESSIONS = 625, - /// The total number of ad requests that were eligible to serve to the YouTube - /// partner ad inventory.

Corresponds to "Total ad requests" in the Ad Manager - /// UI. Compatible with the "YouTube consolidated" report type.

+ NIELSEN_IN_TARGET_IMPRESSIONS_INDEX = 421, + /// The adjusted in-target impression share used for pacing and billing, based on + /// the GRP pacing preferences indicated in your line item settings.

Corresponds + /// to "Processed Nielsen in-target rate" in the Ad Manager UI. Compatible with the + /// "Reach" report type.

///
- PARTNER_SALES_QUERIES = 626, - /// The number of ad requests for the YouTube partner ad inventory that were filled - /// with at least 1 ad. This includes both partner-sold and Google-sold requests. - ///

Google-sold can fill at most 2 ads, while partner-sold can fill at most 1 - /// ad.

Corresponds to "Filled ad requests" in the Ad Manager UI. Compatible - /// with the "YouTube consolidated" report type.

+ NIELSEN_IN_TARGET_RATIO = 667, + /// Number of impressions delivered.

Corresponds to "Impressions" in the Ad + /// Manager UI. Compatible with the "Ad Connector" report type.

///
- PARTNER_SALES_FILLED_QUERIES = 627, - /// The fill rate percentage of filled requests to total ad requests.

Corresponds - /// to "Fill rate" in the Ad Manager UI. Compatible with the "YouTube consolidated" - /// report type.

+ DP_IMPRESSIONS = 503, + /// Number of clicks delivered

Corresponds to "Clicks" in the Ad Manager UI. + /// Compatible with the "Ad Connector" report type.

///
- PARTNER_SALES_SELL_THROUGH_RATE = 628, - /// The number of available impressions for future sell-through reports.

This - /// metric is available for the next 90 days with a daily break down and for the - /// next 12 months with a monthly break down.

Corresponds to "Available - /// impressions" in the Ad Manager UI. Compatible with the "Future sell-through" - /// report type.

+ DP_CLICKS = 507, + /// Number of requests.

Corresponds to "Queries" in the Ad Manager UI. Compatible + /// with the "Ad Connector" report type.

///
- SELL_THROUGH_AVAILABLE_IMPRESSIONS = 143, - /// The number of reserved impressions for future sell-through reports.

This - /// metric is available for the next 90 days with a daily break down and for the - /// next 12 months with a monthly break down.

Corresponds to "Reserved - /// impressions" in the Ad Manager UI. Compatible with the "Future sell-through" + DP_QUERIES = 504, + ///

Number of requests where a buyer was matched with the Ad request.

Corresponds + /// to "Matched queries" in the Ad Manager UI. Compatible with the "Ad Connector" /// report type.

///
- SELL_THROUGH_RESERVED_IMPRESSIONS = 144, - /// The sell-through rate for impressions for future sell-through reports.

This - /// metric is available for the next 90 days with a daily break down and for the - /// next 12 months with a monthly break down.

Corresponds to "Sell-through - /// rate" in the Ad Manager UI. Compatible with the "Future sell-through" report - /// type.

+ DP_MATCHED_QUERIES = 505, + /// The revenue earned, calculated in publisher currency, for the ads delivered. + ///

Corresponds to "Cost" in the Ad Manager UI. Compatible with the "Ad + /// Connector" report type.

+ ///
+ DP_COST = 506, + /// The average estimated cost-per-thousand-impressions earned from ads delivered. + ///

Corresponds to "Total Average eCPM" in the Ad Manager UI. Compatible with the + /// "Ad Connector" report type.

+ ///
+ DP_ECPM = 570, + /// Total number of impressions delivered by the ad server that were eligible to + /// measure viewability.

Corresponds to "Total Active View eligible impressions" + /// in the Ad Manager UI. Compatible with the "Ad Connector" report type.

+ ///
+ DP_ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS = 518, + /// The number of impressions delivered that were sampled and measurable by active + /// view.

Corresponds to "Total Active View measurable impressions" in the Ad + /// Manager UI. Compatible with the "Ad Connector" report type.

///
- SELL_THROUGH_SELL_THROUGH_RATE = 145, - /// The total number of times a backup image is served in place of a rich media ad. - ///

Corresponds to "Backup image impressions" in the Ad Manager UI. Compatible - /// with the "Historical" report type.

+ DP_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS = 519, + /// The number of impressions delivered that were viewed on the user's screen. + ///

Corresponds to "Total Active View viewable impressions" in the Ad Manager UI. + /// Compatible with the "Ad Connector" report type.

///
- RICH_MEDIA_BACKUP_IMAGES = 146, - /// The amount of time(seconds) that each rich media ad is displayed to users. - ///

Corresponds to "Total display time" in the Ad Manager UI. Compatible with the - /// "Historical" report type.

+ DP_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS = 520, + /// The percentage of impressions delivered that were measurable by active view (out + /// of all the impressions sampled for active view).

Corresponds to "Total Active + /// View % measurable impressions" in the Ad Manager UI. Compatible with the "Ad + /// Connector" report type.

///
- RICH_MEDIA_DISPLAY_TIME = 147, - /// The average amount of time(seconds) that each rich media ad is displayed to - /// users.

Corresponds to "Average display time" in the Ad Manager UI. Compatible - /// with the "Historical" report type.

+ DP_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE = 521, + /// The percentage of impressions delivered thar were viewed on the user's screen + /// (out of the impressions measurable by active view).

Corresponds to "Total + /// Active View % viewable impressions" in the Ad Manager UI. Compatible with the + /// "Ad Connector" report type.

///
- RICH_MEDIA_AVERAGE_DISPLAY_TIME = 148, - /// The number of times an expanding ad was expanded.

Corresponds to "Total - /// expansions" in the Ad Manager UI. Compatible with the "Historical" report + DP_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE = 522, + ///

The host impressions in the partner management.

Corresponds to "Host + /// impressions" in the Ad Manager UI. Compatible with the "Historical" report /// type.

///
- RICH_MEDIA_EXPANSIONS = 149, - /// The average amount of time(seconds) that an expanding ad is viewed in an - /// expanded state.

Corresponds to "Average expanding time" in the Ad Manager UI. - /// Compatible with the "Historical" report type.

+ PARTNER_MANAGEMENT_HOST_IMPRESSIONS = 392, + /// The host clicks in the partner management.

Corresponds to "Host clicks" in + /// the Ad Manager UI. Compatible with the "Historical" report type.

///
- RICH_MEDIA_EXPANDING_TIME = 150, - /// The average amount of time(seconds) that a user interacts with a rich media ad. - ///

Corresponds to "Interaction time" in the Ad Manager UI. Compatible with the - /// "Historical" report type.

+ PARTNER_MANAGEMENT_HOST_CLICKS = 393, + /// The host CTR in the partner management.

Corresponds to "Host CTR" in the Ad + /// Manager UI. Compatible with the "Historical" report type.

///
- RICH_MEDIA_INTERACTION_TIME = 151, - /// The number of times that a user interacts with a rich media ad.

Corresponds - /// to "Total interactions" in the Ad Manager UI. Compatible with the "Historical" - /// report type.

+ PARTNER_MANAGEMENT_HOST_CTR = 394, + /// The unfilled impressions in the partner management.

Corresponds to "Unfilled + /// impressions" in the Ad Manager UI. Compatible with any of the following report + /// types: Historical, Partner finance.

///
- RICH_MEDIA_INTERACTION_COUNT = 152, - /// The ratio of rich media ad interactions to the number of times the ad was - /// displayed. Represented as a percentage.

Corresponds to "Interaction rate" in + PARTNER_MANAGEMENT_UNFILLED_IMPRESSIONS = 399, + ///

The partner impressions in the partner management.

Corresponds to "Partner + /// impressions" in the Ad Manager UI. Compatible with the "Historical" report + /// type.

+ ///
+ PARTNER_MANAGEMENT_PARTNER_IMPRESSIONS = 493, + /// The partner clicks in the partner management.

Corresponds to "Partner clicks" + /// in the Ad Manager UI. Compatible with the "Historical" report type.

+ ///
+ PARTNER_MANAGEMENT_PARTNER_CLICKS = 494, + /// The partner CTR in the partner management.

Corresponds to "Partner CTR" in /// the Ad Manager UI. Compatible with the "Historical" report type.

///
- RICH_MEDIA_INTERACTION_RATE = 153, - /// The average amount of time(seconds) that a user interacts with a rich media ad. - ///

Corresponds to "Average interaction time" in the Ad Manager UI. Compatible - /// with the "Historical" report type.

+ PARTNER_MANAGEMENT_PARTNER_CTR = 495, + /// The gross revenue in the partner management.

Corresponds to "Gross revenue" + /// in the Ad Manager UI. Compatible with the "Historical" report type.

///
- RICH_MEDIA_AVERAGE_INTERACTION_TIME = 154, - /// The number of impressions where a user interacted with a rich media ad. - ///

Corresponds to "Interactive impressions" in the Ad Manager UI. Compatible - /// with the "Historical" report type.

+ PARTNER_MANAGEMENT_GROSS_REVENUE = 496, + /// Monthly host impressions for partner finance reports.

Corresponds to "Host + /// impressions" in the Ad Manager UI. Compatible with the "Partner finance" report + /// type.

///
- RICH_MEDIA_INTERACTION_IMPRESSIONS = 155, - /// The number of times that a user manually closes a floating, expanding, in-page - /// with overlay, or in-page with floating ad.

Corresponds to "Manual closes" in - /// the Ad Manager UI. Compatible with the "Historical" report type.

+ PARTNER_FINANCE_HOST_IMPRESSIONS = 497, + /// Monthly host revenue for partner finance reports.

Corresponds to "Host + /// revenue" in the Ad Manager UI. Compatible with the "Partner finance" report + /// type.

///
- RICH_MEDIA_MANUAL_CLOSES = 156, - /// A metric that measures an impression only once when a user opens an ad in full - /// screen mode.

Corresponds to "Full-screen impressions" in the Ad Manager UI. - /// Compatible with the "Historical" report type.

+ PARTNER_FINANCE_HOST_REVENUE = 498, + /// Monthly host eCPM for partner finance reports.

Corresponds to "Host eCPM" in + /// the Ad Manager UI. Compatible with the "Partner finance" report type.

///
- RICH_MEDIA_FULL_SCREEN_IMPRESSIONS = 157, - /// The number of times a user clicked on the graphical controls of a video player. - ///

Corresponds to "Total video interactions" in the Ad Manager UI. Compatible - /// with the "Historical" report type.

+ PARTNER_FINANCE_HOST_ECPM = 499, + /// Monthly partner revenue for partner finance reports.

Corresponds to "Partner + /// revenue" in the Ad Manager UI. Compatible with the "Partner finance" report + /// type.

///
- RICH_MEDIA_VIDEO_INTERACTIONS = 158, - /// The ratio of video interactions to video plays. Represented as a percentage. - ///

Corresponds to "Video interaction rate" in the Ad Manager UI. Compatible with - /// the "Historical" report type.

+ PARTNER_FINANCE_PARTNER_REVENUE = 500, + /// Monthly partner eCPM for partner finance reports.

Corresponds to "Partner + /// eCPM" in the Ad Manager UI. Compatible with the "Partner finance" report + /// type.

///
- RICH_MEDIA_VIDEO_INTERACTION_RATE = 159, - /// The number of times a rich media video was muted.

Corresponds to "Mute" in - /// the Ad Manager UI. Compatible with the "Historical" report type.

+ PARTNER_FINANCE_PARTNER_ECPM = 501, + /// Monthly gross revenue for partner finance reports.

Corresponds to "Gross + /// revenue" in the Ad Manager UI. Compatible with the "Partner finance" report + /// type.

///
- RICH_MEDIA_VIDEO_MUTES = 160, - /// The number of times a rich media video was paused.

Corresponds to "Pause" in - /// the Ad Manager UI. Compatible with the "Historical" report type.

+ PARTNER_FINANCE_GROSS_REVENUE = 502, + /// The ratio of the number of impressions for which the creative load time is + /// between 0 and 500 ms to the total number of impressions that have ad latency + /// data, represented as a percentage.

Corresponds to "Creative load time 0 - + /// 500ms (%)" in the Ad Manager UI. Compatible with the "Ad speed" report type.

///
- RICH_MEDIA_VIDEO_PAUSES = 161, - /// The number of times a rich media video was played.

Corresponds to "Plays" in - /// the Ad Manager UI. Compatible with the "Historical" report type.

+ CREATIVE_LOAD_TIME_0_500_MS_PERCENT = 573, + /// The ratio of the number of impressions for which the creative load time is + /// between 500 milliseconds and 1 second to the total number of impressions that + /// have ad latency data, represented as a percentage.

Corresponds to "Creative + /// load time 500ms - 1s (%)" in the Ad Manager UI. Compatible with the "Ad speed" + /// report type.

///
- RICH_MEDIA_VIDEO_PLAYES = 162, - /// The number of times a rich media video was played up to midpoint.

Corresponds - /// to "Midpoint" in the Ad Manager UI. Compatible with the "Historical" report + CREATIVE_LOAD_TIME_500_1000_MS_PERCENT = 574, + ///

The ratio of the number of impressions for which the creative load time is + /// between 1 second and 2 seconds to the total number of impressions that have ad + /// latency data, represented as a percentage.

Corresponds to "Creative load time + /// 1s - 2s (%)" in the Ad Manager UI. Compatible with the "Ad speed" report /// type.

///
- RICH_MEDIA_VIDEO_MIDPOINTS = 163, - /// The number of times a rich media video was fully played.

Corresponds to - /// "Complete" in the Ad Manager UI. Compatible with the "Historical" report + CREATIVE_LOAD_TIME_1_2_S_PERCENT = 575, + ///

The ratio of the number of impressions for which the creative load time is + /// between 2 seconds and 4 seconds to the total number of impressions that have ad + /// latency data, represented as a percentage.

Corresponds to "Creative load time + /// 2s - 4s (%)" in the Ad Manager UI. Compatible with the "Ad speed" report /// type.

///
- RICH_MEDIA_VIDEO_COMPLETES = 164, - /// The number of times a rich media video was restarted.

Corresponds to - /// "Replays" in the Ad Manager UI. Compatible with the "Historical" report + CREATIVE_LOAD_TIME_2_4_S_PERCENT = 576, + ///

The ratio of the number of impressions for which the creative load time is + /// between 4 seconds and 8 seconds to the total number of impressions that have ad + /// latency data, represented as a percentage.

Corresponds to "Creative load time + /// 4s - 8s (%)" in the Ad Manager UI. Compatible with the "Ad speed" report /// type.

///
- RICH_MEDIA_VIDEO_REPLAYS = 165, - /// The number of times a rich media video was stopped.

Corresponds to "Stops" in - /// the Ad Manager UI. Compatible with the "Historical" report type.

+ CREATIVE_LOAD_TIME_4_8_S_PERCENT = 577, + /// The ratio of the number of impressions for which the creative load time is + /// greater than 8 seconds to the total number of impressions that have ad latency + /// data, represented as a percentage.

Corresponds to "Creative load time >8s + /// (%)" in the Ad Manager UI. Compatible with the "Ad speed" report type.

///
- RICH_MEDIA_VIDEO_STOPS = 166, - /// The number of times a rich media video was unmuted.

Corresponds to "Unmute" - /// in the Ad Manager UI. Compatible with the "Historical" report type.

+ CREATIVE_LOAD_TIME_GREATER_THAN_8_S_PERCENT = 578, + /// The ratio of the number of impressions which are unviewed because the ad slot + /// never entered the viewport to the total number of impressions that have ad + /// latency data, represented as a percentage.

Corresponds to "Slot never entered + /// viewport (%)" in the Ad Manager UI. Compatible with the "Ad speed" report + /// type.

///
- RICH_MEDIA_VIDEO_UNMUTES = 167, - /// The average amount of time(seconds) that a rich media video was viewed per view. - ///

Corresponds to "Average view time" in the Ad Manager UI. Compatible with the - /// "Historical" report type.

+ UNVIEWED_REASON_SLOT_NEVER_ENTERED_VIEWPORT_PERCENT = 579, + /// The ratio of the number of impressions which are unviewed because the user + /// scrolled before the ad filled to the total number of impressions that have ad + /// latency data, represented as a percentage.

Corresponds to "User scrolled + /// before ad filled (%)" in the Ad Manager UI. Compatible with the "Ad speed" + /// report type.

///
- RICH_MEDIA_VIDEO_VIEW_TIME = 168, - /// The percentage of a video watched by a user.

Corresponds to "View rate" in - /// the Ad Manager UI. Compatible with the "Historical" report type.

+ UNVIEWED_REASON_USER_SCROLLED_BEFORE_AD_FILLED_PERCENT = 580, + /// The ratio of the number of impressions which are unviewed because the user + /// scrolled or navigated before the ad loaded to the total number of impressions + /// that have ad latency data, represented as a percentage.

Corresponds to "User + /// scrolled/navigated before ad loaded (%)" in the Ad Manager UI. Compatible with + /// the "Ad speed" report type.

///
- RICH_MEDIA_VIDEO_VIEW_RATE = 169, - /// The amount of time (seconds) that a user interacts with a rich media ad. - ///

Corresponds to "Custom event - time" in the Ad Manager UI. Compatible with - /// the "Historical" report type.

+ UNVIEWED_REASON_USER_SCROLLED_BEFORE_AD_LOADED_PERCENT = 581, + /// The ratio of the number of impressions which are unviewed because the user + /// scrolled or navigated before one second to the total number of impressions that + /// have ad latency data, represented as a percentage.

Corresponds to "User + /// scrolled/navigated before 1 second (%)" in the Ad Manager UI. Compatible with + /// the "Ad speed" report type.

///
- RICH_MEDIA_CUSTOM_EVENT_TIME = 170, - /// The number of times a user views and interacts with a specified part of a rich - /// media ad.

Corresponds to "Custom event - count" in the Ad Manager UI. - /// Compatible with the "Historical" report type.

+ UNVIEWED_REASON_USER_SCROLLED_BEFORE_1_S_PERCENT = 582, + /// The ratio of the number of impressions which are unviewed because the of another + /// non-viewable-impression reason to the total number of impressions that have ad + /// latency data, represented as a percentage.

Corresponds to "Other non-viewable + /// impression reasons (%)" in the Ad Manager UI. Compatible with the "Ad speed" + /// report type.

///
- RICH_MEDIA_CUSTOM_EVENT_COUNT = 171, - /// The number of impressions where the video was played.

Corresponds to "Start" - /// in the Ad Manager UI. Compatible with the "Historical" report type.

+ UNVIEWED_REASON_OTHER_PERCENT = 583, + /// The ratio of the number of impressions for which the DOM load to tag log time is + /// between 0 and 500 milliseconds to the total number of impressions that have ad + /// latency data, represented as a percentage.

Corresponds to "Page navigation to + /// tag loaded time 0 - 500ms (%)" in the Ad Manager UI. Compatible with the "Ad + /// speed" report type.

///
- VIDEO_VIEWERSHIP_START = 172, - /// The number of times the video played to 25% of its length.

Corresponds to - /// "First quartile" in the Ad Manager UI. Compatible with the "Historical" report - /// type.

+ PAGE_NAVIGATION_TO_TAG_LOADED_TIME_0_500_MS_PERCENT = 584, + /// The ratio of the number of impressions for which the DOM load to tag log time is + /// between 500 milliseconds and 1 second to the total number of impressions that + /// have ad latency data, represented as a percentage.

Corresponds to "Page + /// navigation to tag loaded time 500ms - 1s (%)" in the Ad Manager UI. Compatible + /// with the "Ad speed" report type.

///
- VIDEO_VIEWERSHIP_FIRST_QUARTILE = 173, - /// The number of times the video reached its midpoint during play.

Corresponds - /// to "Midpoint" in the Ad Manager UI. Compatible with the "Historical" report - /// type.

+ PAGE_NAVIGATION_TO_TAG_LOADED_TIME_500_1000_MS_PERCENT = 585, + /// The ratio of the number of impressions for which the DOM load to tag log time is + /// between 1 second and 2 seconds to the total number of impressions that have ad + /// latency data, represented as a percentage.

Corresponds to "Page navigation to + /// tag loaded time 1s - 2s (%)" in the Ad Manager UI. Compatible with the "Ad + /// speed" report type.

///
- VIDEO_VIEWERSHIP_MIDPOINT = 174, - /// The number of times the video played to 75% of its length.

Corresponds to - /// "Third quartile" in the Ad Manager UI. Compatible with the "Historical" report - /// type.

+ PAGE_NAVIGATION_TO_TAG_LOADED_TIME_1_2_S_PERCENT = 586, + /// The ratio of the number of impressions for which the DOM load to tag log time is + /// between 2 seconds and 4 seconds to the total number of impressions that have ad + /// latency data, represented as a percentage.

Corresponds to "Page navigation to + /// tag loaded time 2s - 4s (%)" in the Ad Manager UI. Compatible with the "Ad + /// speed" report type.

///
- VIDEO_VIEWERSHIP_THIRD_QUARTILE = 175, - /// The number of times the video played to completion.

Corresponds to "Complete" - /// in the Ad Manager UI. Compatible with the "Historical" report type.

+ PAGE_NAVIGATION_TO_TAG_LOADED_TIME_2_4_S_PERCENT = 587, + /// The ratio of the number of impressions for which the DOM load to tag log time is + /// between 4 seconds and 8 seconds to the total number of impressions that have ad + /// latency data, represented as a percentage.

Corresponds to "Page navigation to + /// tag loaded time 4s - 8s (%)" in the Ad Manager UI. Compatible with the "Ad + /// speed" report type.

///
- VIDEO_VIEWERSHIP_COMPLETE = 176, - /// Average percentage of the video watched by users.

Corresponds to "Average - /// view rate" in the Ad Manager UI. Compatible with the "Historical" report - /// type.

+ PAGE_NAVIGATION_TO_TAG_LOADED_TIME_4_8_S_PERCENT = 588, + /// The ratio of the number of impressions for which the DOM load to tag log time is + /// greater than 8 seconds to the total number of impressions that have ad latency + /// data, represented as a percentage.

Corresponds to "Page navigation to tag + /// loaded time >8s (%)" in the Ad Manager UI. Compatible with the "Ad speed" + /// report type.

///
- VIDEO_VIEWERSHIP_AVERAGE_VIEW_RATE = 177, - /// Average time(seconds) users watched the video.

Corresponds to "Average view - /// time" in the Ad Manager UI. Compatible with the "Historical" report type.

+ PAGE_NAVIGATION_TO_TAG_LOADED_TIME_GREATER_THAN_8_S_PERCENT = 589, + /// The ratio of the number of impressions for which the DOM load to first ad + /// request time is between 0 and 500 milliseconds to the total number of + /// impressions that have ad latency data, represented as a percentage. + ///

Corresponds to "Page navigation to first ad request time 0 - 500ms (%)" in + /// the Ad Manager UI. Compatible with the "Ad speed" report type.

///
- VIDEO_VIEWERSHIP_AVERAGE_VIEW_TIME = 178, - /// Percentage of times the video played to the end.

Corresponds to "Completion - /// rate" in the Ad Manager UI. Compatible with the "Historical" report type.

+ PAGE_NAVIGATION_TO_FIRST_AD_REQUEST_TIME_0_500_MS_PERCENT = 590, + /// The ratio of the number of impressions for which the DOM load to first ad + /// request time is between 500 milliseconds and 1 second to the total number of + /// impressions that have ad latency data, represented as a percentage. + ///

Corresponds to "Page navigation to first ad request time 500ms - 1s (%)" in + /// the Ad Manager UI. Compatible with the "Ad speed" report type.

///
- VIDEO_VIEWERSHIP_COMPLETION_RATE = 179, - /// The number of times an error occurred, such as a VAST redirect error, a video - /// playback error, or an invalid response error.

Corresponds to "Total error - /// count" in the Ad Manager UI. Compatible with the "Historical" report type.

+ PAGE_NAVIGATION_TO_FIRST_AD_REQUEST_TIME_500_1000_MS_PERCENT = 591, + /// The ratio of the number of impressions for which the DOM load to first ad + /// request time is between 1 second and 2 seconds to the total number of + /// impressions that have ad latency data, represented as a percentage. + ///

Corresponds to "Page navigation to first ad request time 1s - 2s (%)" in the + /// Ad Manager UI. Compatible with the "Ad speed" report type.

///
- VIDEO_VIEWERSHIP_TOTAL_ERROR_COUNT = 180, - /// Duration of the video creative.

Corresponds to "Video length" in the Ad - /// Manager UI. Compatible with the "Historical" report type.

+ PAGE_NAVIGATION_TO_FIRST_AD_REQUEST_TIME_1_2_S_PERCENT = 592, + /// The ratio of the number of impressions for which the DOM load to first ad + /// request time is between 2 seconds and 4 seconds to the total number of + /// impressions that have ad latency data, represented as a percentage. + ///

Corresponds to "Page navigation to first ad request time 2s - 4s (%)" in the + /// Ad Manager UI. Compatible with the "Ad speed" report type.

///
- VIDEO_VIEWERSHIP_VIDEO_LENGTH = 181, - /// The number of times a skip button is shown in video.

Corresponds to "Skip - /// button shown" in the Ad Manager UI. Compatible with the "Historical" report - /// type.

+ PAGE_NAVIGATION_TO_FIRST_AD_REQUEST_TIME_2_4_S_PERCENT = 593, + /// The ratio of the number of impressions for which the DOM load to first ad + /// request time is between 4 seconds and 8 seconds to the total number of + /// impressions that have ad latency data, represented as a percentage. + ///

Corresponds to "Page navigation to first ad request time 4s - 8s (%)" in the + /// Ad Manager UI. Compatible with the "Ad speed" report type.

///
- VIDEO_VIEWERSHIP_SKIP_BUTTON_SHOWN = 182, - /// The number of engaged views i.e. ad is viewed to completion or for 30s, - /// whichever comes first.

Corresponds to "Engaged view" in the Ad Manager UI. - /// Compatible with the "Historical" report type.

+ PAGE_NAVIGATION_TO_FIRST_AD_REQUEST_TIME_4_8_S_PERCENT = 594, + /// The ratio of the number of impressions for which the DOM load to first ad + /// request time is greater than 8 seconds to the total number of impressions that + /// have ad latency data, represented as a percentage.

Corresponds to "Page + /// navigation to first ad request time >8s (%)" in the Ad Manager UI. Compatible + /// with the "Ad speed" report type.

///
- VIDEO_VIEWERSHIP_ENGAGED_VIEW = 183, - /// View-through rate represented as a percentage.

Corresponds to "View-through - /// rate" in the Ad Manager UI. Compatible with the "Historical" report type.

+ PAGE_NAVIGATION_TO_FIRST_AD_REQUEST_TIME_GREATER_THAN_8_S_PERCENT = 595, + /// The ratio of the number of impressions for which the tag load to first ad + /// request time is between 0 and 500 milliseconds to the total number of + /// impressions that have ad latency data, represented as a percentage. + ///

Corresponds to "Tag loaded to first ad request time 0 - 500ms (%)" in the Ad + /// Manager UI. Compatible with the "Ad speed" report type.

///
- VIDEO_VIEWERSHIP_VIEW_THROUGH_RATE = 184, - /// Number of times that the publisher specified a video ad played automatically. - ///

Corresponds to "Auto-plays" in the Ad Manager UI. Compatible with the - /// "Historical" report type.

+ TAG_LOAD_TO_FIRST_AD_REQUEST_TIME_0_500_MS_PERCENT = 596, + /// The ratio of the number of impressions for which the tag load to first ad + /// request time is between 500 milliseconds and 1 second to the total number of + /// impressions that have ad latency data, represented as a percentage. + ///

Corresponds to "Tag loaded to first ad request time 500ms - 1s (%)" in the Ad + /// Manager UI. Compatible with the "Ad speed" report type.

///
- VIDEO_VIEWERSHIP_AUTO_PLAYS = 185, - /// Number of times that the publisher specified a video ad was clicked to play. - ///

Corresponds to "Click-to-plays" in the Ad Manager UI. Compatible with the - /// "Historical" report type.

+ TAG_LOAD_TO_FIRST_AD_REQUEST_TIME_500_1000_MS_PERCENT = 597, + /// The ratio of the number of impressions for which the tag load to first ad + /// request time is between 1 second and 2 seconds to the total number of + /// impressions that have ad latency data, represented as a percentage. + ///

Corresponds to "Tag loaded to first ad request time 1s - 2s (%)" in the Ad + /// Manager UI. Compatible with the "Ad speed" report type.

///
- VIDEO_VIEWERSHIP_CLICK_TO_PLAYS = 186, - /// Error rate is the percentage of video error count from (error count + total - /// impressions).

Corresponds to "Total error rate" in the Ad Manager UI. - /// Compatible with the "Historical" report type.

+ TAG_LOAD_TO_FIRST_AD_REQUEST_TIME_1_2_S_PERCENT = 598, + /// The ratio of the number of impressions for which the tag load to first ad + /// request time is between 2 seconds and 4 seconds to the total number of + /// impressions that have ad latency data, represented as a percentage. + ///

Corresponds to "Tag loaded to first ad request time 2s - 4s (%)" in the Ad + /// Manager UI. Compatible with the "Ad speed" report type.

///
- VIDEO_VIEWERSHIP_TOTAL_ERROR_RATE = 187, - /// The drop-off rate.

Corresponds to "Drop-off rate" in the Ad Manager UI. - /// Compatible with the "Historical" report type.

+ TAG_LOAD_TO_FIRST_AD_REQUEST_TIME_2_4_S_PERCENT = 599, + /// The ratio of the number of impressions for which the tag load to first ad + /// request time is between 4 seconds and 8 seconds to the total number of + /// impressions that have ad latency data, represented as a percentage. + ///

Corresponds to "Tag loaded to first ad request time 4s - 8s (%)" in the Ad + /// Manager UI. Compatible with the "Ad speed" report type.

///
- DROPOFF_RATE = 607, - /// Number of times a video ad has been viewed to completion or watched to 30 - /// seconds, whichever happens first.

Corresponds to "TrueView views" in the Ad - /// Manager UI. Compatible with the "Historical" report type.

+ TAG_LOAD_TO_FIRST_AD_REQUEST_TIME_4_8_S_PERCENT = 600, + /// The ratio of the number of impressions for which the tag load to first ad + /// request time is greater than 8 seconds to the total number of impressions that + /// have ad latency data, represented as a percentage.

Corresponds to "Tag loaded + /// to first ad request time >8s (%)" in the Ad Manager UI. Compatible with the + /// "Ad speed" report type.

///
- VIDEO_TRUEVIEW_VIEWS = 608, - /// Percentage of times a user clicked Skip.

Corresponds to "TrueView skip rate" - /// in the Ad Manager UI. Compatible with the "Historical" report type.

+ TAG_LOAD_TO_FIRST_AD_REQUEST_TIME_GREATER_THAN_8_S_PERCENT = 601, + } + + + /// DimensionAttribute provides additional fields associated with a Dimension. It can only be selected with its corresponding + /// Dimension. For example, DimensionAttribute#ORDER_PO_NUMBER can only be used if the ReportQuery#dimensions contains Dimension#ORDER_NAME. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum DimensionAttribute { + /// Represents LineItem#effectiveAppliedLabels as a + /// comma separated list of Label#name for Dimension#LINE_ITEM_NAME.

Corresponds to + /// "Line item labels" in the Ad Manager UI. Compatible with any of the following + /// report types: Historical, Reach.

///
- VIDEO_TRUEVIEW_SKIP_RATE = 609, - /// TrueView views divided by TrueView impressions.

Corresponds to "TrueView VTR" - /// in the Ad Manager UI. Compatible with the "Historical" report type.

+ LINE_ITEM_LABELS = 0, + /// Represents LineItem#effectiveAppliedLabels as a + /// comma separated list of Label#id for Dimension#LINE_ITEM_NAME.

Compatible with + /// any of the following report types: Historical, Reach.

///
- VIDEO_TRUEVIEW_VTR = 610, - /// Number of VAST video errors of type 100.

Corresponds to "VAST error 100 - /// count" in the Ad Manager UI. Compatible with the "Historical" report type.

+ LINE_ITEM_LABEL_IDS = 1, + /// Generated as true for Dimension#LINE_ITEM_NAME which is eligible + /// for optimization, false otherwise. Can be used for filtering. + ///

Corresponds to "Optimizable" in the Ad Manager UI. Compatible with any of the + /// following report types: Historical, Reach.

///
- VIDEO_ERRORS_VAST_ERROR_100_COUNT = 461, - /// Number of VAST video errors of type 101.

Corresponds to "VAST error 101 - /// count" in the Ad Manager UI. Compatible with the "Historical" report type.

+ LINE_ITEM_OPTIMIZABLE = 2, + /// Indicates the progress made for the delivery of the Dimension#LINE_ITEM_NAME. + /// + /// + ///
Progress Definition
100% The LineItem is on track to deliver in + /// full as per LineItem#unitsBought.
> 100% The LineItem is on track to + /// overdeliver.
< 100% The LineItem is on track to underdeliver.
N/A The LineItem does not have any quantity + /// goals, or there is insufficient information about the LineItem.

Corresponds to "Delivery + /// Indicator" in the Ad Manager UI. Compatible with any of the following report + /// types: Historical, Reach, Real-time video.

///
- VIDEO_ERRORS_VAST_ERROR_101_COUNT = 462, - /// Number of VAST video errors of type 102.

Corresponds to "VAST error 102 - /// count" in the Ad Manager UI. Compatible with the "Historical" report type.

+ LINE_ITEM_DELIVERY_INDICATOR = 139, + /// Represents LineItem#deliveryRateType for + /// Dimension#LINE_ITEM_NAME.

Corresponds + /// to "Delivery pacing" in the Ad Manager UI. Compatible with any of the following + /// report types: Historical, Future sell-through, Reach, Ad speed, Real-time + /// video.

///
- VIDEO_ERRORS_VAST_ERROR_102_COUNT = 463, - /// Number of VAST video errors of type 200.

Corresponds to "VAST error 200 - /// count" in the Ad Manager UI. Compatible with the "Historical" report type.

+ LINE_ITEM_DELIVERY_PACING = 3, + /// Represents LineItem#frequencyCaps as a + /// comma separated list of " FrequencyCap#maxImpressions impressions + /// per/every FrequencyCap#numTimeUnits FrequencyCap#timeUnit" (e.g. "10 impressions every day,500 + /// impressions per lifetime") for Dimension#LINE_ITEM_NAME.

Corresponds to + /// "Frequency cap" in the Ad Manager UI. Compatible with any of the following + /// report types: Historical, Reach.

///
- VIDEO_ERRORS_VAST_ERROR_200_COUNT = 464, - /// Number of VAST video errors of type 201.

Corresponds to "VAST error 201 - /// count" in the Ad Manager UI. Compatible with the "Historical" report type.

+ LINE_ITEM_FREQUENCY_CAP = 4, + /// Represents the monthly reconciliation status of the line item for Dimension#LINE_ITEM_NAME and Dimension#MONTH_YEAR.

Corresponds to "Line + /// item reconciliation status" in the Ad Manager UI. Compatible with any of the + /// following report types: Historical, Future sell-through, Reach.

///
- VIDEO_ERRORS_VAST_ERROR_201_COUNT = 465, - /// Number of VAST video errors of type 202.

Corresponds to "VAST error 202 - /// count" in the Ad Manager UI. Compatible with the "Historical" report type.

+ LINE_ITEM_RECONCILIATION_STATUS = 119, + /// Represents the monthly last reconciliation date time of the line item for Dimension#LINE_ITEM_NAME and Dimension#MONTH_YEAR.

Corresponds to "Line + /// item last reconciliation time" in the Ad Manager UI. Compatible with any of the + /// following report types: Historical, Future sell-through, Reach.

+ ///
+ LINE_ITEM_LAST_RECONCILIATION_DATE_TIME = 120, + /// Represents Company#externalId for Dimension#ADVERTISER_NAME.

Corresponds + /// to "External advertiser ID" in the Ad Manager UI. Compatible with any of the + /// following report types: Historical, Reach.

+ ///
+ ADVERTISER_EXTERNAL_ID = 5, + /// Represents Company#type for Dimension#ADVERTISER_NAME. Can be used for + /// filtering.

Corresponds to "Advertiser type" in the Ad Manager UI. Compatible + /// with any of the following report types: Historical, Future sell-through, Reach, + /// Ad speed.

///
- VIDEO_ERRORS_VAST_ERROR_202_COUNT = 466, - /// Number of VAST video errors of type 203.

Corresponds to "VAST error 203 - /// count" in the Ad Manager UI. Compatible with the "Historical" report type.

+ ADVERTISER_TYPE = 121, + /// Represents Company#creditStatus for Dimension#ADVERTISER_NAME. Can be used for + /// filtering.

Corresponds to "Advertiser credit status" in the Ad Manager UI. + /// Compatible with any of the following report types: Historical, Future + /// sell-through, Reach, Ad speed.

///
- VIDEO_ERRORS_VAST_ERROR_203_COUNT = 467, - /// Number of VAST video errors of type 300.

Corresponds to "VAST error 300 - /// count" in the Ad Manager UI. Compatible with the "Historical" report type.

+ ADVERTISER_CREDIT_STATUS = 122, + /// Represents name and email address in the form of name(email) of primary contact + /// for Dimension#ADVERTISER_NAME.

Corresponds to "Advertiser + /// primary contact" in the Ad Manager UI. Compatible with any of the following + /// report types: Historical, Reach.

///
- VIDEO_ERRORS_VAST_ERROR_300_COUNT = 468, - /// Number of VAST video errors of type 301.

Corresponds to "VAST error 301 - /// count" in the Ad Manager UI. Compatible with the "Historical" report type.

+ ADVERTISER_PRIMARY_CONTACT = 6, + /// Represents the start date (in YYYY-MM-DD format) for Dimension#ORDER_NAME. Can be used for filtering. + ///

Corresponds to "Order start date" in the Ad Manager UI. Compatible with any + /// of the following report types: Historical, Future sell-through, Reach, Ad + /// speed.

///
- VIDEO_ERRORS_VAST_ERROR_301_COUNT = 469, - /// Number of VAST video errors of type 302.

Corresponds to "VAST error 302 - /// count" in the Ad Manager UI. Compatible with the "Historical" report type.

+ ORDER_START_DATE_TIME = 7, + /// Represents the end date (in YYYY-MM-DD format) for Dimension#ORDER_NAME. Can be used for filtering. + ///

Corresponds to "Order end date" in the Ad Manager UI. Compatible with any of + /// the following report types: Historical, Future sell-through, Reach, Ad + /// speed.

///
- VIDEO_ERRORS_VAST_ERROR_302_COUNT = 470, - /// Number of VAST video errors of type 303.

Corresponds to "VAST error 303 - /// count" in the Ad Manager UI. Compatible with the "Historical" report type.

+ ORDER_END_DATE_TIME = 8, + /// Represents Order#externalOrderId for Dimension#ORDER_NAME.

Corresponds to + /// "External order ID" in the Ad Manager UI. Compatible with any of the following + /// report types: Historical, Reach.

///
- VIDEO_ERRORS_VAST_ERROR_303_COUNT = 471, - /// Number of VAST video errors of type 400.

Corresponds to "VAST error 400 - /// count" in the Ad Manager UI. Compatible with the "Historical" report type.

+ ORDER_EXTERNAL_ID = 9, + /// Represents Order#poNumber for Dimension#ORDER_NAME. Can be used for filtering. + ///

Corresponds to "Order PO number" in the Ad Manager UI. Compatible with any of + /// the following report types: Historical, Future sell-through, Reach, Ad + /// speed.

///
- VIDEO_ERRORS_VAST_ERROR_400_COUNT = 472, - /// Number of VAST video errors of type 401.

Corresponds to "VAST error 401 - /// count" in the Ad Manager UI. Compatible with the "Historical" report type.

+ ORDER_PO_NUMBER = 10, + /// Represents Order#orderIsProgrammatic for + /// Dimension#ORDER_NAME. Can be used for + /// filtering.

Corresponds to "Programmatic order" in the Ad Manager UI. + /// Compatible with any of the following report types: Historical, Reach.

///
- VIDEO_ERRORS_VAST_ERROR_401_COUNT = 473, - /// Number of VAST video errors of type 402.

Corresponds to "VAST error 402 - /// count" in the Ad Manager UI. Compatible with the "Historical" report type.

+ ORDER_IS_PROGRAMMATIC = 11, + /// Represents the name of Order#agencyId for Dimension#ORDER_NAME.

Corresponds to "Agency" + /// in the Ad Manager UI. Compatible with any of the following report types: + /// Historical, Reach.

///
- VIDEO_ERRORS_VAST_ERROR_402_COUNT = 474, - /// Number of VAST video errors of type 403.

Corresponds to "VAST error 403 - /// count" in the Ad Manager UI. Compatible with the "Historical" report type.

+ ORDER_AGENCY = 12, + /// Represents Order#agencyId for Dimension#ORDER_NAME. Can be used for filtering. + ///

Corresponds to "Agency ID" in the Ad Manager UI. Compatible with any of the + /// following report types: Historical, Reach.

///
- VIDEO_ERRORS_VAST_ERROR_403_COUNT = 475, - /// Number of VAST video errors of type 405.

Corresponds to "VAST error 405 - /// count" in the Ad Manager UI. Compatible with the "Historical" report type.

+ ORDER_AGENCY_ID = 13, + /// Represents Order#effectiveAppliedLabels as a comma + /// separated list of Label#name for Dimension#ORDER_NAME.

Corresponds to "Order + /// labels" in the Ad Manager UI. Compatible with any of the following report types: + /// Historical, Reach.

///
- VIDEO_ERRORS_VAST_ERROR_405_COUNT = 476, - /// Number of VAST video errors of type 500.

Corresponds to "VAST error 500 - /// count" in the Ad Manager UI. Compatible with the "Historical" report type.

+ ORDER_LABELS = 14, + /// Represents Order#effectiveAppliedLabels as a comma + /// separated list of Label#id for Dimension#ORDER_NAME.

Compatible with any of + /// the following report types: Historical, Reach.

///
- VIDEO_ERRORS_VAST_ERROR_500_COUNT = 477, - /// Number of VAST video errors of type 501.

Corresponds to "VAST error 501 - /// count" in the Ad Manager UI. Compatible with the "Historical" report type.

+ ORDER_LABEL_IDS = 15, + /// The name and email address in the form of name(email) of the trafficker for Dimension#ORDER_NAME

Corresponds to "Trafficker" in the Ad + /// Manager UI. Compatible with any of the following report types: Historical, + /// Reach.

///
- VIDEO_ERRORS_VAST_ERROR_501_COUNT = 478, - /// Number of VAST video errors of type 502.

Corresponds to "VAST error 502 - /// count" in the Ad Manager UI. Compatible with the "Historical" report type.

+ ORDER_TRAFFICKER = 16, + /// Represents Order#traffickerId for Dimension#ORDER_NAME. Can be used for filtering. + ///

Compatible with any of the following report types: Historical, Reach.

///
- VIDEO_ERRORS_VAST_ERROR_502_COUNT = 479, - /// Number of VAST video errors of type 503.

Corresponds to "VAST error 503 - /// count" in the Ad Manager UI. Compatible with the "Historical" report type.

+ ORDER_TRAFFICKER_ID = 17, + /// The names and email addresses as a comma separated list of name(email) of the Order#secondaryTraffickerIds for Dimension#ORDER_NAME.

Corresponds to + /// "Secondary traffickers" in the Ad Manager UI. Compatible with any of the + /// following report types: Historical, Reach.

///
- VIDEO_ERRORS_VAST_ERROR_503_COUNT = 480, - /// Number of VAST video errors of type 600.

Corresponds to "VAST error 600 - /// count" in the Ad Manager UI. Compatible with the "Historical" report type.

+ ORDER_SECONDARY_TRAFFICKERS = 18, + /// The name and email address in the form of name(email) of the Order#salespersonId for Dimension#ORDER_NAME.

Corresponds to + /// "Salesperson" in the Ad Manager UI. Compatible with any of the following report + /// types: Historical, Reach.

///
- VIDEO_ERRORS_VAST_ERROR_600_COUNT = 481, - /// Number of VAST video errors of type 601.

Corresponds to "VAST error 601 - /// count" in the Ad Manager UI. Compatible with the "Historical" report type.

+ ORDER_SALESPERSON = 19, + /// The names and email addresses as a comma separated list of name(email) of the Order#secondarySalespersonIds for Dimension#ORDER_NAME.

Corresponds to + /// "Secondary salespeople" in the Ad Manager UI. Compatible with any of the + /// following report types: Historical, Reach.

///
- VIDEO_ERRORS_VAST_ERROR_601_COUNT = 482, - /// Number of VAST video errors of type 602.

Corresponds to "VAST error 602 - /// count" in the Ad Manager UI. Compatible with the "Historical" report type.

+ ORDER_SECONDARY_SALESPEOPLE = 20, + /// The total number of impressions delivered over the lifetime of an Dimension#ORDER_NAME.

Corresponds to "Order + /// lifetime impressions" in the Ad Manager UI. Compatible with any of the following + /// report types: Historical, Future sell-through, Reach, Ad speed.

///
- VIDEO_ERRORS_VAST_ERROR_602_COUNT = 483, - /// Number of VAST video errors of type 603.

Corresponds to "VAST error 603 - /// count" in the Ad Manager UI. Compatible with the "Historical" report type.

+ ORDER_LIFETIME_IMPRESSIONS = 21, + /// The total number of clicks delivered over the lifetime of an Dimension#ORDER_NAME.

Corresponds to "Order + /// lifetime clicks" in the Ad Manager UI. Compatible with any of the following + /// report types: Historical, Future sell-through, Reach, Ad speed.

///
- VIDEO_ERRORS_VAST_ERROR_603_COUNT = 484, - /// Number of VAST video errors of type 604.

Corresponds to "VAST error 604 - /// count" in the Ad Manager UI. Compatible with the "Historical" report type.

+ ORDER_LIFETIME_CLICKS = 22, + /// The cost of booking all the CPM ads for Dimension#ORDER_NAME.

Corresponds to "Booked + /// CPM" in the Ad Manager UI. Compatible with any of the following report types: + /// Historical, Reach.

///
- VIDEO_ERRORS_VAST_ERROR_604_COUNT = 485, - /// Number of VAST video errors of type 900.

Corresponds to "VAST error 900 - /// count" in the Ad Manager UI. Compatible with the "Historical" report type.

+ ORDER_BOOKED_CPM = 23, + /// The cost of booking all the CPC ads for Dimension#ORDER_NAME.

Corresponds to "Booked + /// CPC" in the Ad Manager UI. Compatible with any of the following report types: + /// Historical, Reach.

///
- VIDEO_ERRORS_VAST_ERROR_900_COUNT = 486, - /// Number of VAST video errors of type 901.

Corresponds to "VAST error 901 - /// count" in the Ad Manager UI. Compatible with the "Historical" report type.

+ ORDER_BOOKED_CPC = 24, + /// Represents the start date (in YYYY-MM-DD format) for Dimension#LINE_ITEM_NAME. Can be used for + /// filtering.

Corresponds to "Line item start date" in the Ad Manager UI. + /// Compatible with any of the following report types: Historical, Future + /// sell-through, Reach, Ad speed, Real-time video.

///
- VIDEO_ERRORS_VAST_ERROR_901_COUNT = 487, - /// Video interaction event: The number of times user paused ad clip.

Corresponds - /// to "Pause" in the Ad Manager UI. Compatible with the "Historical" report - /// type.

+ LINE_ITEM_START_DATE_TIME = 25, + /// Represents the end date (in YYYY-MM-DD format) for Dimension#LINE_ITEM_NAME. Can be used for + /// filtering.

Corresponds to "Line item end date" in the Ad Manager UI. + /// Compatible with any of the following report types: Historical, Future + /// sell-through, Reach, Ad speed, Real-time video.

///
- VIDEO_INTERACTION_PAUSE = 216, - /// Video interaction event: The number of times the user unpaused the video. - ///

Corresponds to "Resume" in the Ad Manager UI. Compatible with the - /// "Historical" report type.

+ LINE_ITEM_END_DATE_TIME = 26, + /// Represents LineItem#externalId for Dimension#LINE_ITEM_NAME. Can be used for + /// filtering.

Corresponds to "External Line Item ID" in the Ad Manager UI. + /// Compatible with any of the following report types: Historical, Reach.

///
- VIDEO_INTERACTION_RESUME = 217, - /// Video interaction event: The number of times a user rewinds the video. - ///

Corresponds to "Rewind" in the Ad Manager UI. Compatible with the - /// "Historical" report type.

+ LINE_ITEM_EXTERNAL_ID = 27, + /// Represents LineItem#costType for Dimension#LINE_ITEM_NAME. Can be used for + /// filtering.

Corresponds to "Cost type" in the Ad Manager UI. Compatible with + /// any of the following report types: Historical, Future sell-through, Reach, Ad + /// speed, Real-time video.

///
- VIDEO_INTERACTION_REWIND = 218, - /// Video interaction event: The number of times video player was in mute state - /// during play of ad clip.

Corresponds to "Mute" in the Ad Manager UI. - /// Compatible with the "Historical" report type.

+ LINE_ITEM_COST_TYPE = 28, + /// Represents LineItem#costPerUnit for Dimension#LINE_ITEM_NAME.

Corresponds to + /// "Rate" in the Ad Manager UI. Compatible with any of the following report types: + /// Historical, Future sell-through, Reach, Ad speed, Real-time video.

///
- VIDEO_INTERACTION_MUTE = 219, - /// Video interaction event: The number of times a user unmutes the video. - ///

Corresponds to "Unmute" in the Ad Manager UI. Compatible with the - /// "Historical" report type.

+ LINE_ITEM_COST_PER_UNIT = 29, + /// Represents the 3 letter currency code for Dimension#LINE_ITEM_NAME.

Corresponds to + /// "Currency code" in the Ad Manager UI. Compatible with any of the following + /// report types: Historical, Future sell-through, Reach, Ad speed, Real-time + /// video.

///
- VIDEO_INTERACTION_UNMUTE = 220, - /// Video interaction event: The number of times a user collapses a video, either to - /// its original size or to a different size.

Corresponds to "Collapse" in the Ad - /// Manager UI. Compatible with the "Historical" report type.

+ LINE_ITEM_CURRENCY_CODE = 30, + /// The total number of impressions, clicks or days that is reserved for Dimension#LINE_ITEM_NAME.

Corresponds to "Goal quantity" in the + /// Ad Manager UI. Compatible with any of the following report types: Historical, + /// Future sell-through, Reach, Ad speed, Real-time video.

///
- VIDEO_INTERACTION_COLLAPSE = 221, - /// Video interaction event: The number of times a user expands a video. - ///

Corresponds to "Expand" in the Ad Manager UI. Compatible with the - /// "Historical" report type.

+ LINE_ITEM_GOAL_QUANTITY = 31, + ///

Corresponds to "Nielsen Average Number Of Viewers" in the Ad Manager UI. + /// Compatible with the "Reach" report type.

///
- VIDEO_INTERACTION_EXPAND = 222, - /// Video interaction event: The number of times ad clip played in full screen mode. - ///

Corresponds to "Full screen" in the Ad Manager UI. Compatible with the - /// "Historical" report type.

+ LINE_ITEM_AVERAGE_NUMBER_OF_VIEWERS = 143, + /// The ratio between the goal quantity for Dimension#LINE_ITEM_NAME of LineItemType#SPONSORSHIP and the #LINE_ITEM_GOAL_QUANTITY. Represented as a + /// number between 0..100.

Corresponds to "Sponsorship goal (%)" in the Ad + /// Manager UI. Compatible with any of the following report types: Historical, + /// Reach.

///
- VIDEO_INTERACTION_FULL_SCREEN = 223, - /// Video interaction event: The number of user interactions with a video, on - /// average, such as pause, full screen, mute, etc.

Corresponds to "Average - /// interaction rate" in the Ad Manager UI. Compatible with the "Historical" report - /// type.

+ LINE_ITEM_SPONSORSHIP_GOAL_PERCENTAGE = 32, + /// The total number of impressions delivered over the lifetime of a Dimension#LINE_ITEM_NAME.

Corresponds to "Line item lifetime + /// impressions" in the Ad Manager UI. Compatible with any of the following report + /// types: Historical, Future sell-through, Reach, Ad speed, Real-time video.

///
- VIDEO_INTERACTION_AVERAGE_INTERACTION_RATE = 224, - /// Video interaction event: The number of times a skippable video is skipped. - ///

Corresponds to "Video skipped" in the Ad Manager UI. Compatible with the - /// "Historical" report type.

+ LINE_ITEM_LIFETIME_IMPRESSIONS = 33, + /// The total number of clicks delivered over the lifetime of a Dimension#LINE_ITEM_NAME.

Corresponds to + /// "Line item lifetime clicks" in the Ad Manager UI. Compatible with any of the + /// following report types: Historical, Future sell-through, Reach, Ad speed, + /// Real-time video.

///
- VIDEO_INTERACTION_VIDEO_SKIPS = 225, - /// The number of control starts.

Corresponds to "Control starts" in the Ad - /// Manager UI. Compatible with the "Historical" report type.

+ LINE_ITEM_LIFETIME_CLICKS = 34, + /// Represents LineItem#priority for Dimension#LINE_ITEM_NAME as a value between + /// 1 and 16. Can be used for filtering.

Corresponds to "Line item priority" in + /// the Ad Manager UI. Compatible with any of the following report types: + /// Historical, Future sell-through, Reach, Ad speed, Real-time video.

///
- VIDEO_OPTIMIZATION_CONTROL_STARTS = 226, - /// The number of optimized starts.

Corresponds to "Optimized starts" in the Ad - /// Manager UI. Compatible with the "Historical" report type.

+ LINE_ITEM_PRIORITY = 35, + /// Describes the computed LineItem status that is derived + /// from the current state of the line item.

Compatible with any of the following + /// report types: Historical, Future sell-through, Reach, Ad speed, Real-time + /// video.

///
- VIDEO_OPTIMIZATION_OPTIMIZED_STARTS = 227, - /// The number of control completes.

Corresponds to "Control completes" in the Ad - /// Manager UI. Compatible with the "Historical" report type.

+ LINE_ITEM_COMPUTED_STATUS = 145, + /// Indicates if a creative is a regular creative or creative set. Values will be + /// 'Creative' or 'Creative set'

Compatible with the "Historical" report + /// type.

///
- VIDEO_OPTIMIZATION_CONTROL_COMPLETES = 228, - /// The number of optimized completes.

Corresponds to "Optimized completes" in - /// the Ad Manager UI. Compatible with the "Historical" report type.

+ CREATIVE_OR_CREATIVE_SET = 36, + /// The type of creative in a creative set - master or companion.

Corresponds to + /// "Master or Companion" in the Ad Manager UI. Compatible with the "Historical" + /// report type.

///
- VIDEO_OPTIMIZATION_OPTIMIZED_COMPLETES = 229, - /// The rate of control completions.

Corresponds to "Control completion rate" in - /// the Ad Manager UI. Compatible with the "Historical" report type.

+ MASTER_COMPANION_TYPE = 37, + /// Represents the LineItem#contractedUnitsBought + /// quantity for Dimension#LINE_ITEM_NAME.

Corresponds to + /// "Contracted quantity" in the Ad Manager UI. Compatible with any of the following + /// report types: Historical, Reach.

///
- VIDEO_OPTIMIZATION_CONTROL_COMPLETION_RATE = 230, - /// The rate of optimized completions.

Corresponds to "Optimized completion rate" - /// in the Ad Manager UI. Compatible with the "Historical" report type.

+ LINE_ITEM_CONTRACTED_QUANTITY = 38, + /// Represents the LineItem#discount for Dimension#LINE_ITEM_NAME. The number is + /// either a percentage or an absolute value depending on LineItem#discountType.

Corresponds to + /// "Discount" in the Ad Manager UI. Compatible with any of the following report + /// types: Historical, Reach.

///
- VIDEO_OPTIMIZATION_OPTIMIZED_COMPLETION_RATE = 231, - /// The percentage by which optimized completion rate is greater than the - /// unoptimized completion rate. This is calculated as (( Column#VIDEO_OPTIMIZATION_OPTIMIZED_COMPLETION_RATE/ - /// Column#VIDEO_OPTIMIZATION_CONTROL_COMPLETION_RATE) - /// - 1) * 100 for an ad for which the optimization feature has been enabled. - ///

Corresponds to "Completion rate lift" in the Ad Manager UI. Compatible with - /// the "Historical" report type.

+ LINE_ITEM_DISCOUNT = 39, + /// The cost of booking for a non-CPD Dimension#LINE_ITEM_NAME.

Corresponds to + /// "Booked revenue (exclude CPD)" in the Ad Manager UI. Compatible with any of the + /// following report types: Historical, Reach.

///
- VIDEO_OPTIMIZATION_COMPLETION_RATE_LIFT = 232, - /// The number of control skip buttons shown.

Corresponds to "Control skip button - /// shown" in the Ad Manager UI. Compatible with the "Historical" report type.

+ LINE_ITEM_NON_CPD_BOOKED_REVENUE = 40, + /// Represents Company#appliedLabels as a comma + /// separated list of Label#name for Dimension#ADVERTISER_NAME.

Corresponds + /// to "Advertiser labels" in the Ad Manager UI. Compatible with any of the + /// following report types: Historical, Reach.

///
- VIDEO_OPTIMIZATION_CONTROL_SKIP_BUTTON_SHOWN = 233, - /// The number of optimized skip buttons shown.

Corresponds to "Optimized skip - /// button shown" in the Ad Manager UI. Compatible with the "Historical" report - /// type.

+ ADVERTISER_LABELS = 41, + /// Represents Company#appliedLabels as a comma + /// separated list of Label#id for Dimension#ADVERTISER_NAME.

Compatible + /// with any of the following report types: Historical, Reach.

///
- VIDEO_OPTIMIZATION_OPTIMIZED_SKIP_BUTTON_SHOWN = 234, - /// The number of control engaged views.

Corresponds to "Control engaged view" in - /// the Ad Manager UI. Compatible with the "Historical" report type.

+ ADVERTISER_LABEL_IDS = 42, + /// Represents the click-through URL for Dimension#CREATIVE_NAME.

Corresponds to + /// "Click-through URL" in the Ad Manager UI. Compatible with the "Historical" + /// report type.

///
- VIDEO_OPTIMIZATION_CONTROL_ENGAGED_VIEW = 235, - /// The number of optimized engaged views.

Corresponds to "Optimized engaged - /// view" in the Ad Manager UI. Compatible with the "Historical" report type.

+ CREATIVE_CLICK_THROUGH_URL = 43, + /// Represents whether a creative is SSL-compliant.

Corresponds to "Creative SSL + /// scan result" in the Ad Manager UI. Compatible with the "Historical" report + /// type.

///
- VIDEO_OPTIMIZATION_OPTIMIZED_ENGAGED_VIEW = 236, - /// The control view-through rate.

Corresponds to "Control view-through rate" in - /// the Ad Manager UI. Compatible with the "Historical" report type.

+ CREATIVE_SSL_SCAN_RESULT = 44, + /// Represents whether a creative's SSL status was overridden.

Corresponds to + /// "Creative SSL compliance override" in the Ad Manager UI. Compatible with the + /// "Historical" report type.

///
- VIDEO_OPTIMIZATION_CONTROL_VIEW_THROUGH_RATE = 237, - /// The optimized view-through rate.

Corresponds to "Optimized view-through rate" - /// in the Ad Manager UI. Compatible with the "Historical" report type.

+ CREATIVE_SSL_COMPLIANCE_OVERRIDE = 45, + /// Represents a LineItemCreativeAssociation#startDateTime + /// for a Dimension#LINE_ITEM_NAME and a Dimension#CREATIVE_NAME. Includes the date + /// without the time.

Corresponds to "Creative start date" in the Ad Manager UI. + /// Compatible with the "Historical" report type.

///
- VIDEO_OPTIMIZATION_OPTIMIZED_VIEW_THROUGH_RATE = 238, - /// The percentage by which optimized view-through rate is greater than the - /// unoptimized view-through rate. This is calculated as (( Column#VIDEO_OPTIMIZATION_OPTIMIZED_VIEW_THROUGH_RATE/ Column#VIDEO_OPTIMIZATION_CONTROL_VIEW_THROUGH_RATE) - 1) * 100 for - /// an ad for which the optimization feature has been enabled.

Corresponds to - /// "View-through rate lift" in the Ad Manager UI. Compatible with the "Historical" - /// report type.

+ LINE_ITEM_CREATIVE_START_DATE = 46, + /// Represents a LineItemCreativeAssociation#endDateTime + /// for a Dimension#LINE_ITEM_NAME and a Dimension#CREATIVE_NAME. Includes the date + /// without the time.

Corresponds to "Creative end date" in the Ad Manager UI. + /// Compatible with the "Historical" report type.

///
- VIDEO_OPTIMIZATION_VIEW_THROUGH_RATE_LIFT = 239, - /// Total impressions from the Google Ad Manager server, AdSense, Ad Exchange, and - /// yield group partners.

Corresponds to "Total impressions" in the Ad Manager - /// UI. Compatible with the "Real-time video" report type.

+ LINE_ITEM_CREATIVE_END_DATE = 47, + /// Represents the CmsContent#displayName + /// within the first element of Content#cmsContent for Dimension#CONTENT_NAME.

Corresponds to + /// "Content source name" in the Ad Manager UI. Compatible with any of the following + /// report types: Historical, YouTube consolidated.

///
- VIDEO_IMPRESSIONS_REAL_TIME = 629, - /// Total number of matched queries.

Corresponds to "Total responses served" in - /// the Ad Manager UI. Compatible with the "Real-time video" report type.

+ CONTENT_CMS_NAME = 116, + /// Represents the CmsContent#cmsContentId + /// within the first element of Content#cmsContent for Dimension#CONTENT_NAME.

Corresponds to "ID + /// of the video in the content source" in the Ad Manager UI. Compatible with any of + /// the following report types: Historical, YouTube consolidated.

///
- VIDEO_MATCHED_QUERIES_REAL_TIME = 630, - /// Total number of unmatched queries.

Corresponds to "Total unmatched ad - /// requests" in the Ad Manager UI. Compatible with the "Real-time video" report - /// type.

+ CONTENT_CMS_VIDEO_ID = 117, + /// Breaks down reporting data by child partner name in MCM "Manage Inventory". By + /// default, this attribute is ordered by Dimension#CHILD_NETWORK_CODE.

This + /// dimension only works for MCM "Manage Inventory" parent publishers.

+ ///

Corresponds to "Child partner name" in the Ad Manager UI. Compatible with the + /// "Historical" report type.

///
- VIDEO_UNMATCHED_QUERIES_REAL_TIME = 631, - /// Total number of ad requests.

Corresponds to "Total ad requests" in the Ad - /// Manager UI. Compatible with the "Real-time video" report type.

+ CHILD_PARTNER_NAME = 144, + /// Represents AdUnit#adUnitCode for Dimension#AD_UNIT_NAME.

Corresponds to "Ad + /// unit code" in the Ad Manager UI. Compatible with any of the following report + /// types: Historical, Future sell-through, Ad speed, Real-time video.

///
- VIDEO_TOTAL_QUERIES_REAL_TIME = 632, - /// Total number of creatives served.

Corresponds to "Total creative serves" in - /// the Ad Manager UI. Compatible with the "Real-time video" report type.

+ AD_UNIT_CODE = 118, + } + + + /// Represents a period of time. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum DateRangeType { + /// The current day. /// - VIDEO_CREATIVE_SERVE_REAL_TIME = 633, - /// Number of VAST video errors of type 100.

Corresponds to "VAST error 100 - /// count" in the Ad Manager UI. Compatible with the "Real-time video" report - /// type.

+ TODAY = 0, + /// The previous day. /// - VIDEO_VAST3_ERROR_100_COUNT_REAL_TIME = 634, - /// Number of VAST video errors of type 101.

Corresponds to "VAST error 101 - /// count" in the Ad Manager UI. Compatible with the "Real-time video" report - /// type.

+ YESTERDAY = 1, + /// The last week, from monday to sunday. /// - VIDEO_VAST3_ERROR_101_COUNT_REAL_TIME = 635, - /// Number of VAST video errors of type 102.

Corresponds to "VAST error 102 - /// count" in the Ad Manager UI. Compatible with the "Real-time video" report - /// type.

+ LAST_WEEK = 2, + /// The previous month. /// - VIDEO_VAST3_ERROR_102_COUNT_REAL_TIME = 636, - /// Number of VAST video errors of type 200.

Corresponds to "VAST error 200 - /// count" in the Ad Manager UI. Compatible with the "Real-time video" report - /// type.

+ LAST_MONTH = 3, + /// The last 3 full months. For example, if today is May 5, 2017, then LAST_3_MONTHS + /// would go from February 1 to April 30. /// - VIDEO_VAST3_ERROR_200_COUNT_REAL_TIME = 637, - /// Number of VAST video errors of type 201.

Corresponds to "VAST error 201 - /// count" in the Ad Manager UI. Compatible with the "Real-time video" report - /// type.

+ LAST_3_MONTHS = 14, + /// This will report on the last 93 days for the following columns: Column#UNIQUE_REACH_IMPRESSIONS, Column#UNIQUE_REACH_FREQUENCY, and Column#UNIQUE_REACH. /// - VIDEO_VAST3_ERROR_201_COUNT_REAL_TIME = 638, - /// Number of VAST video errors of type 202.

Corresponds to "VAST error 202 - /// count" in the Ad Manager UI. Compatible with the "Real-time video" report - /// type.

+ REACH_LIFETIME = 4, + /// Specifying this value will enable the user to specify ReportQuery#startDate and ReportQuery#endDate. /// - VIDEO_VAST3_ERROR_202_COUNT_REAL_TIME = 639, - /// Number of VAST video errors of type 203.

Corresponds to "VAST error 203 - /// count" in the Ad Manager UI. Compatible with the "Real-time video" report - /// type.

+ CUSTOM_DATE = 5, + /// The next day. /// - VIDEO_VAST3_ERROR_203_COUNT_REAL_TIME = 640, - /// Number of VAST video errors of type 300.

Corresponds to "VAST error 300 - /// count" in the Ad Manager UI. Compatible with the "Real-time video" report - /// type.

+ NEXT_DAY = 6, + /// The next ninety days. /// - VIDEO_VAST3_ERROR_300_COUNT_REAL_TIME = 641, - /// Number of VAST video errors of type 301.

Corresponds to "VAST error 301 - /// count" in the Ad Manager UI. Compatible with the "Real-time video" report - /// type.

+ NEXT_90_DAYS = 7, + /// The next week, from monday to sunday. /// - VIDEO_VAST3_ERROR_301_COUNT_REAL_TIME = 642, - /// Number of VAST video errors of type 302.

Corresponds to "VAST error 302 - /// count" in the Ad Manager UI. Compatible with the "Real-time video" report - /// type.

+ NEXT_WEEK = 8, + /// The next month. /// - VIDEO_VAST3_ERROR_302_COUNT_REAL_TIME = 643, - /// Number of VAST video errors of type 303.

Corresponds to "VAST error 303 - /// count" in the Ad Manager UI. Compatible with the "Real-time video" report - /// type.

+ NEXT_MONTH = 9, + /// Beginning of the next day until the end of the next month. /// - VIDEO_VAST3_ERROR_303_COUNT_REAL_TIME = 644, - /// Number of VAST video errors of type 400.

Corresponds to "VAST error 400 - /// count" in the Ad Manager UI. Compatible with the "Real-time video" report - /// type.

+ CURRENT_AND_NEXT_MONTH = 10, + /// The next quarter. /// - VIDEO_VAST3_ERROR_400_COUNT_REAL_TIME = 645, - /// Number of VAST video errors of type 401.

Corresponds to "VAST error 401 - /// count" in the Ad Manager UI. Compatible with the "Real-time video" report - /// type.

+ NEXT_QUARTER = 11, + /// The next three months. /// - VIDEO_VAST3_ERROR_401_COUNT_REAL_TIME = 646, - /// Number of VAST video errors of type 402.

Corresponds to "VAST error 402 - /// count" in the Ad Manager UI. Compatible with the "Real-time video" report - /// type.

+ NEXT_3_MONTHS = 12, + /// The next twelve months. /// - VIDEO_VAST3_ERROR_402_COUNT_REAL_TIME = 647, - /// Number of VAST video errors of type 403.

Corresponds to "VAST error 403 - /// count" in the Ad Manager UI. Compatible with the "Real-time video" report - /// type.

+ NEXT_12_MONTHS = 13, + } + + + /// Enumerates all allowed time zones that can be used in reports. Note that some + /// time zones are only compatible with specific fields. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum TimeZoneType { + /// The value returned if the actual value is not exposed by the requested API + /// version. /// - VIDEO_VAST3_ERROR_403_COUNT_REAL_TIME = 648, - /// Number of VAST video errors of type 405.

Corresponds to "VAST error 405 - /// count" in the Ad Manager UI. Compatible with the "Real-time video" report - /// type.

+ UNKNOWN = 0, + /// Use the publisher's time zone. For Ad Manager reports, this time zone is + /// compatible with all metrics. For Ad Exchange reports, this time zone is not + /// compatible with "Bids" and "Deals" metrics.

Note: if your report + /// includes "time unit" dimensions, only the Ad Manager "time unit" dimensions are + /// compatible with this timezone, e.g.:

///
- VIDEO_VAST3_ERROR_405_COUNT_REAL_TIME = 649, - /// Number of VAST video errors of type 500.

Corresponds to "VAST error 500 - /// count" in the Ad Manager UI. Compatible with the "Real-time video" report - /// type.

+ PUBLISHER = 2, + /// Use the PT time zone. This time zone is only compatible with Ad Exchange metrics + /// in Historical report type.

Note: if your report includes "time unit" + /// dimensions, only the PT "time unit" dimensions are compatible with this + /// timezone, e.g.:

///
- VIDEO_VAST3_ERROR_500_COUNT_REAL_TIME = 650, - /// Number of VAST video errors of type 501.

Corresponds to "VAST error 501 - /// count" in the Ad Manager UI. Compatible with the "Real-time video" report - /// type.

+ PACIFIC = 4, + } + + + /// Represents a report job that will be run to retrieve performance and statistics + /// information about ad campaigns, networks, inventory and sales. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ReportJob { + private long idField; + + private bool idFieldSpecified; + + private ReportQuery reportQueryField; + + /// The unique ID of the ReportJob. This value is read-only and is + /// assigned by Google. /// - VIDEO_VAST3_ERROR_501_COUNT_REAL_TIME = 651, - /// Number of VAST video errors of type 502.

Corresponds to "VAST error 502 - /// count" in the Ad Manager UI. Compatible with the "Real-time video" report - /// type.

+ [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public long id { + get { + return this.idField; + } + set { + this.idField = value; + this.idSpecified = true; + } + } + + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool idSpecified { + get { + return this.idFieldSpecified; + } + set { + this.idFieldSpecified = value; + } + } + + /// Holds the filtering criteria. /// - VIDEO_VAST3_ERROR_502_COUNT_REAL_TIME = 652, - /// Number of VAST video errors of type 503.

Corresponds to "VAST error 503 - /// count" in the Ad Manager UI. Compatible with the "Real-time video" report - /// type.

+ [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public ReportQuery reportQuery { + get { + return this.reportQueryField; + } + set { + this.reportQueryField = value; + } + } + } + + + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + public interface ReportServiceInterfaceChannel : Google.Api.Ads.AdManager.v202411.ReportServiceInterface, System.ServiceModel.IClientChannel + { + } + + + /// Provides methods for executing a ReportJob and + /// retrieving performance and statistics about ad campaigns, networks, inventory + /// and sales.

Follow the steps outlined below:

Test network + /// behavior

The networks created using NetworkService#makeTestNetwork are + /// unable to provide reports that would be comparable to the production environment + /// because reports require traffic history. In the test networks, reports will + /// consistently return no data for all reports.

+ ///
+ [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + public partial class ReportService : AdManagerSoapClient, IReportService { + /// Creates a new instance of the class. /// - VIDEO_VAST3_ERROR_503_COUNT_REAL_TIME = 653, - /// Number of VAST video errors of type 600.

Corresponds to "VAST error 600 - /// count" in the Ad Manager UI. Compatible with the "Real-time video" report - /// type.

+ public ReportService() { + } + + /// Creates a new instance of the class. /// - VIDEO_VAST3_ERROR_600_COUNT_REAL_TIME = 654, - /// Number of VAST video errors of type 601.

Corresponds to "VAST error 601 - /// count" in the Ad Manager UI. Compatible with the "Real-time video" report - /// type.

+ public ReportService(string endpointConfigurationName) + : base(endpointConfigurationName) { + } + + /// Creates a new instance of the class. /// - VIDEO_VAST3_ERROR_601_COUNT_REAL_TIME = 655, - /// Number of VAST video errors of type 602.

Corresponds to "VAST error 602 - /// count" in the Ad Manager UI. Compatible with the "Real-time video" report - /// type.

+ public ReportService(string endpointConfigurationName, string remoteAddress) + : base(endpointConfigurationName, remoteAddress) { + } + + /// Creates a new instance of the class. /// - VIDEO_VAST3_ERROR_602_COUNT_REAL_TIME = 656, - /// Number of VAST video errors of type 603.

Corresponds to "VAST error 603 - /// count" in the Ad Manager UI. Compatible with the "Real-time video" report - /// type.

+ public ReportService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) + : base(endpointConfigurationName, remoteAddress) { + } + + /// Creates a new instance of the class. /// - VIDEO_VAST3_ERROR_603_COUNT_REAL_TIME = 657, - /// Number of VAST video errors of type 604.

Corresponds to "VAST error 604 - /// count" in the Ad Manager UI. Compatible with the "Real-time video" report - /// type.

+ public ReportService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) + : base(binding, remoteAddress) { + } + + /// Returns the URL at which the report file can be downloaded.

The report will + /// be generated as a gzip archive, containing the report file itself.

///
- VIDEO_VAST3_ERROR_604_COUNT_REAL_TIME = 658, - /// Number of VAST video errors of type 900.

Corresponds to "VAST error 900 - /// count" in the Ad Manager UI. Compatible with the "Real-time video" report - /// type.

+ public virtual string getReportDownloadURL(long reportJobId, Google.Api.Ads.AdManager.v202411.ExportFormat exportFormat) { + return base.Channel.getReportDownloadURL(reportJobId, exportFormat); + } + + public virtual System.Threading.Tasks.Task getReportDownloadURLAsync(long reportJobId, Google.Api.Ads.AdManager.v202411.ExportFormat exportFormat) { + return base.Channel.getReportDownloadURLAsync(reportJobId, exportFormat); + } + + /// Returns the URL at which the report file can be downloaded, and allows for + /// customization of the downloaded report.

By default, the report will be + /// generated as a gzip archive, containing the report file itself. This can be + /// changed by setting ReportDownloadOptions#useGzipCompression + /// to false.

///
- VIDEO_VAST3_ERROR_900_COUNT_REAL_TIME = 659, - /// Number of VAST video errors of type 901.

Corresponds to "VAST error 901 - /// count" in the Ad Manager UI. Compatible with the "Real-time video" report - /// type.

+ public virtual string getReportDownloadUrlWithOptions(long reportJobId, Google.Api.Ads.AdManager.v202411.ReportDownloadOptions reportDownloadOptions) { + return base.Channel.getReportDownloadUrlWithOptions(reportJobId, reportDownloadOptions); + } + + public virtual System.Threading.Tasks.Task getReportDownloadUrlWithOptionsAsync(long reportJobId, Google.Api.Ads.AdManager.v202411.ReportDownloadOptions reportDownloadOptions) { + return base.Channel.getReportDownloadUrlWithOptionsAsync(reportJobId, reportDownloadOptions); + } + + /// Returns the ReportJobStatus of the report job with + /// the specified ID. /// - VIDEO_VAST3_ERROR_901_COUNT_REAL_TIME = 660, - /// Number of VAST video errors of type 406.

Corresponds to "VAST error 406 - /// count" in the Ad Manager UI. Compatible with the "Real-time video" report - /// type.

+ public virtual Google.Api.Ads.AdManager.v202411.ReportJobStatus getReportJobStatus(long reportJobId) { + return base.Channel.getReportJobStatus(reportJobId); + } + + public virtual System.Threading.Tasks.Task getReportJobStatusAsync(long reportJobId) { + return base.Channel.getReportJobStatusAsync(reportJobId); + } + + /// Retrieves a page of the saved queries either created by or shared with the + /// current user. Each SavedQuery in the page, if it is + /// compatible with the current API version, will contain a ReportQuery object which can be optionally modified and + /// used to create a ReportJob. This can then be passed to ReportService#runReportJob. The following + /// fields are supported for filtering: + /// + ///
PQL + /// Property Object Property
id SavedQuery#id
name SavedQuery#name
///
- VIDEO_VAST4_ERROR_406_COUNT_REAL_TIME = 661, - /// Number of VAST video errors of type 407.

Corresponds to "VAST error 407 - /// count" in the Ad Manager UI. Compatible with the "Real-time video" report - /// type.

+ public virtual Google.Api.Ads.AdManager.v202411.SavedQueryPage getSavedQueriesByStatement(Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.getSavedQueriesByStatement(filterStatement); + } + + public virtual System.Threading.Tasks.Task getSavedQueriesByStatementAsync(Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.getSavedQueriesByStatementAsync(filterStatement); + } + + /// Initiates the execution of a ReportQuery on the + /// server.

The following fields are required:

///
- VIDEO_VAST4_ERROR_407_COUNT_REAL_TIME = 662, - /// Number of VAST video errors of type 408.

Corresponds to "VAST error 408 - /// count" in the Ad Manager UI. Compatible with the "Real-time video" report - /// type.

+ public virtual Google.Api.Ads.AdManager.v202411.ReportJob runReportJob(Google.Api.Ads.AdManager.v202411.ReportJob reportJob) { + return base.Channel.runReportJob(reportJob); + } + + public virtual System.Threading.Tasks.Task runReportJobAsync(Google.Api.Ads.AdManager.v202411.ReportJob reportJob) { + return base.Channel.runReportJobAsync(reportJob); + } + } + namespace Wrappers.SuggestedAdUnitService + { + } + /// A SuggestedAdUnit represents a suggestion for a new ad unit, based + /// on an ad tag that has been served at least ten times in the past week, but which + /// does not correspond to a defined ad unit. This type is read-only. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class SuggestedAdUnit { + private string idField; + + private long numRequestsField; + + private bool numRequestsFieldSpecified; + + private string[] pathField; + + private AdUnitParent[] parentPathField; + + private AdUnitTargetWindow targetWindowField; + + private bool targetWindowFieldSpecified; + + private TargetPlatform targetPlatformField; + + private bool targetPlatformFieldSpecified; + + private AdUnitSize[] suggestedAdUnitSizesField; + + /// The unique ID of the suggested ad unit. After API version 201311 this field will + /// be a numerical ID. Earlier versions will return a string value which is the + /// complete path to the suggested ad unit with path elements separated by '/' + /// characters. This attribute is read-only and is populated by Google. /// - VIDEO_VAST4_ERROR_408_COUNT_REAL_TIME = 663, - /// Number of VAST video errors of type 409.

Corresponds to "VAST error 409 - /// count" in the Ad Manager UI. Compatible with the "Real-time video" report - /// type.

+ [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public string id { + get { + return this.idField; + } + set { + this.idField = value; + } + } + + /// Returns the number of times the ad tag corresponding to this suggested ad unit + /// has been served in the previous week. Suggested ad units are only created when + /// they have been served at least ten times in that period. This attribute is + /// read-only and is populated by Google. /// - VIDEO_VAST4_ERROR_409_COUNT_REAL_TIME = 664, - /// Number of VAST video errors of type 410.

Corresponds to "VAST error 410 - /// count" in the Ad Manager UI. Compatible with the "Real-time video" report - /// type.

+ [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public long numRequests { + get { + return this.numRequestsField; + } + set { + this.numRequestsField = value; + this.numRequestsSpecified = true; + } + } + + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool numRequestsSpecified { + get { + return this.numRequestsFieldSpecified; + } + set { + this.numRequestsFieldSpecified = value; + } + } + + /// The hierarchical path from the last existing ad unit + /// after this and all suggested parent ad units have been created. Each path + /// element is a separate ad unit code in the returned list. This attribute is + /// read-only and is populated by Google. /// - VIDEO_VAST4_ERROR_410_COUNT_REAL_TIME = 665, - /// Number of total VAST video errors.

Corresponds to "Total error count" in the - /// Ad Manager UI. Compatible with the "Real-time video" report type.

+ [System.Xml.Serialization.XmlElementAttribute("path", Order = 2)] + public string[] path { + get { + return this.pathField; + } + set { + this.pathField = value; + } + } + + /// The existing hierarchical path leading up to, and including, the parent of the + /// first suggested ad unit in the ad unit hierarchy. The parentPath + /// and the path make up the full path of the suggested ad unit after + /// it is approved. This attribute is read-only and is populated by Google. + ///

Note: The ad unit code for each of the parent ad units will + /// not be provided.

///
- VIDEO_VAST_TOTAL_ERROR_COUNT_REAL_TIME = 666, - /// The total number of impressions viewed on the user's screen.

Corresponds to - /// "Total Active View viewable impressions" in the Ad Manager UI. Compatible with - /// the "Historical" report type.

+ [System.Xml.Serialization.XmlElementAttribute("parentPath", Order = 3)] + public AdUnitParent[] parentPath { + get { + return this.parentPathField; + } + set { + this.parentPathField = value; + } + } + + /// The target attribute of the underlying ad tag, as defined in the AdUnit. This attribute is read-only and is populated by + /// Google. /// - TOTAL_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS = 240, - /// The total number of impressions that were sampled and measured by active view. - ///

Corresponds to "Total Active View measurable impressions" in the Ad Manager - /// UI. Compatible with the "Historical" report type.

+ [System.Xml.Serialization.XmlElementAttribute(Order = 4)] + public AdUnitTargetWindow targetWindow { + get { + return this.targetWindowField; + } + set { + this.targetWindowField = value; + this.targetWindowSpecified = true; + } + } + + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool targetWindowSpecified { + get { + return this.targetWindowFieldSpecified; + } + set { + this.targetWindowFieldSpecified = value; + } + } + + /// The target platform for the browser that clicked the underlying ad tag. This + /// attribute is read-only and is populated by Google. /// - TOTAL_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS = 241, - /// The percentage of total impressions viewed on the user's screen (out of the - /// total impressions measurable by active view). + [System.Xml.Serialization.XmlElementAttribute(Order = 5)] + public TargetPlatform targetPlatform { + get { + return this.targetPlatformField; + } + set { + this.targetPlatformField = value; + this.targetPlatformSpecified = true; + } + } + + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool targetPlatformSpecified { + get { + return this.targetPlatformFieldSpecified; + } + set { + this.targetPlatformFieldSpecified = value; + } + } + + /// The target sizes associated with this SuggestedAdUnit. This + /// attribute is read-only and is populated by Google. /// - TOTAL_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE = 242, - /// Total number of impressions that were eligible to measure viewability. - ///

Corresponds to "Total Active View eligible impressions" in the Ad Manager UI. - /// Compatible with the "Historical" report type.

+ [System.Xml.Serialization.XmlElementAttribute("suggestedAdUnitSizes", Order = 6)] + public AdUnitSize[] suggestedAdUnitSizes { + get { + return this.suggestedAdUnitSizesField; + } + set { + this.suggestedAdUnitSizesField = value; + } + } + } + + + /// Indicates the target platform. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum TargetPlatform { + /// The desktop web. /// - TOTAL_ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS = 243, - /// The percentage of total impressions that were measurable by active view (out of - /// all the total impressions sampled for active view).

Corresponds to "Total - /// Active View % measurable impressions" in the Ad Manager UI. Compatible with the - /// "Historical" report type.

+ WEB = 0, + /// Mobile devices. /// - TOTAL_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE = 244, - /// Active View total average time in seconds that specific impressions are reported - /// as being viewable.

Corresponds to "Total Active View average viewable time - /// (seconds)" in the Ad Manager UI. Compatible with the "Historical" report - /// type.

+ MOBILE = 1, + /// An universal target platform that combines mobile and desktop features. /// - TOTAL_ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME = 488, - /// The number of impressions delivered by the ad server viewed on the user's - /// screen.

Corresponds to "Ad server Active View viewable impressions" in the Ad - /// Manager UI. Compatible with the "Historical" report type.

+ ANY = 2, + } + + + /// Contains a page of SuggestedAdUnit objects. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class SuggestedAdUnitPage { + private int totalResultSetSizeField; + + private bool totalResultSetSizeFieldSpecified; + + private int startIndexField; + + private bool startIndexFieldSpecified; + + private SuggestedAdUnit[] resultsField; + + /// The size of the total result set to which this page belongs. /// - AD_SERVER_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS = 245, - /// The number of impressions delivered by the ad server that were sampled, and - /// measurable by active view.

Corresponds to "Ad server Active View measurable - /// impressions" in the Ad Manager UI. Compatible with the "Historical" report - /// type.

+ [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public int totalResultSetSize { + get { + return this.totalResultSetSizeField; + } + set { + this.totalResultSetSizeField = value; + this.totalResultSetSizeSpecified = true; + } + } + + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool totalResultSetSizeSpecified { + get { + return this.totalResultSetSizeFieldSpecified; + } + set { + this.totalResultSetSizeFieldSpecified = value; + } + } + + /// The absolute index in the total result set on which this page begins. /// - AD_SERVER_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS = 246, - /// The percentage of impressions delivered by the ad server viewed on the user's - /// screen (out of the ad server impressions measurable by active view). - ///

Corresponds to "Ad server Active View % viewable impressions" in the Ad - /// Manager UI. Compatible with the "Historical" report type.

+ [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public int startIndex { + get { + return this.startIndexField; + } + set { + this.startIndexField = value; + this.startIndexSpecified = true; + } + } + + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool startIndexSpecified { + get { + return this.startIndexFieldSpecified; + } + set { + this.startIndexFieldSpecified = value; + } + } + + /// The collection of suggested ad units contained within this page. /// - AD_SERVER_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE = 247, - /// Total number of impressions delivered by the ad server that were eligible to - /// measure viewability.

Corresponds to "Ad server Active View eligible - /// impressions" in the Ad Manager UI. Compatible with the "Historical" report - /// type.

+ [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] + public SuggestedAdUnit[] results { + get { + return this.resultsField; + } + set { + this.resultsField = value; + } + } + } + + + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", ConfigurationName = "Google.Api.Ads.AdManager.v202411.SuggestedAdUnitServiceInterface")] + public interface SuggestedAdUnitServiceInterface + { + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v202411.SuggestedAdUnitPage getSuggestedAdUnitsByStatement(Google.Api.Ads.AdManager.v202411.Statement filterStatement); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task getSuggestedAdUnitsByStatementAsync(Google.Api.Ads.AdManager.v202411.Statement filterStatement); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v202411.SuggestedAdUnitUpdateResult performSuggestedAdUnitAction(Google.Api.Ads.AdManager.v202411.SuggestedAdUnitAction suggestedAdUnitAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task performSuggestedAdUnitActionAsync(Google.Api.Ads.AdManager.v202411.SuggestedAdUnitAction suggestedAdUnitAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement); + } + + + /// Represents the actions that can be performed on SuggestedAdUnit objects. + /// + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ApproveSuggestedAdUnits))] + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public abstract partial class SuggestedAdUnitAction { + } + + + /// Action to approve SuggestedAdUnit objects. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ApproveSuggestedAdUnits : SuggestedAdUnitAction { + } + + + /// Represents the result of performing an action on SuggestedAdUnit objects. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class SuggestedAdUnitUpdateResult { + private string[] newAdUnitIdsField; + + private int numChangesField; + + private bool numChangesFieldSpecified; + + /// The ids of the AdUnit objects that were created in response + /// to a performSuggestedAdUnitAction call. /// - AD_SERVER_ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS = 248, - /// The percentage of impressions delivered by the ad server that were measurable by - /// active view ( out of all the ad server impressions sampled for active view). - ///

Corresponds to "Ad server Active View % measurable impressions" in the Ad - /// Manager UI. Compatible with the "Historical" report type.

+ [System.Xml.Serialization.XmlElementAttribute("newAdUnitIds", Order = 0)] + public string[] newAdUnitIds { + get { + return this.newAdUnitIdsField; + } + set { + this.newAdUnitIdsField = value; + } + } + + /// The number of objects that were changed as a result of performing the action. /// - AD_SERVER_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE = 249, - /// Active View ad server revenue.

Corresponds to "Ad server Active View revenue" - /// in the Ad Manager UI. Compatible with the "Historical" report type.

+ [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public int numChanges { + get { + return this.numChangesField; + } + set { + this.numChangesField = value; + this.numChangesSpecified = true; + } + } + + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool numChangesSpecified { + get { + return this.numChangesFieldSpecified; + } + set { + this.numChangesFieldSpecified = value; + } + } + } + + + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + public interface SuggestedAdUnitServiceInterfaceChannel : Google.Api.Ads.AdManager.v202411.SuggestedAdUnitServiceInterface, System.ServiceModel.IClientChannel + { + } + + + /// This service provides operations for retrieving and approving SuggestedAdUnit objects.

Publishers may create ad + /// tags that lack a corresponding ad unit defined in DFP, in order to gather + /// information about potential ads without needing to create dummy ad units and + /// make them available for targeting in line items. Any undefined ad unit to + /// receive more than ten serving requests in the past week is treated as a + /// 'suggested ad unit'. These can be queried by the client and selectively + /// approved. Approval causes a new ad unit to be created based on the suggested ad + /// unit. Unapproved suggested ad units cease to exist whenever their corresponding + /// ad tag has been served fewer than ten times in the past seven days.

This + /// service is only available to Premium publishers. Before use, suggested ad units + /// must be enabled for the client's network. This can be done in the UI: in the + /// Inventory tab, click "Network settings" in the left-hand panel, then enable the + /// checkbox "Get suggestions for new ad units." If suggested ad units are not + /// enabled, then #getSuggestedAdUnitsByStatement will + /// always return an empty page.

+ ///
+ [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + public partial class SuggestedAdUnitService : AdManagerSoapClient, ISuggestedAdUnitService { + /// Creates a new instance of the + /// class. + public SuggestedAdUnitService() { + } + + /// Creates a new instance of the + /// class. + public SuggestedAdUnitService(string endpointConfigurationName) + : base(endpointConfigurationName) { + } + + /// Creates a new instance of the + /// class. + public SuggestedAdUnitService(string endpointConfigurationName, string remoteAddress) + : base(endpointConfigurationName, remoteAddress) { + } + + /// Creates a new instance of the + /// class. + public SuggestedAdUnitService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) + : base(endpointConfigurationName, remoteAddress) { + } + + /// Creates a new instance of the + /// class. + public SuggestedAdUnitService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) + : base(binding, remoteAddress) { + } + + /// Gets a SuggestedAdUnitPage of SuggestedAdUnit objects that satisfy the filter + /// query. There is a system-enforced limit of 1000 on the number of suggested ad + /// units that are suggested at any one time. + /// + /// + ///
PQL + /// Property Object Property
id SuggestedAdUnit#id
numRequests SuggestedAdUnit#numRequests

Note: After API version 201311, the id + /// field will only be numerical.

///
- AD_SERVER_ACTIVE_VIEW_REVENUE = 422, - /// Active View ad server average time in seconds that specific impressions are - /// reported as being viewable.

Corresponds to "Ad server Active View average - /// viewable time (seconds)" in the Ad Manager UI. Compatible with the "Historical" - /// report type.

+ public virtual Google.Api.Ads.AdManager.v202411.SuggestedAdUnitPage getSuggestedAdUnitsByStatement(Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.getSuggestedAdUnitsByStatement(filterStatement); + } + + public virtual System.Threading.Tasks.Task getSuggestedAdUnitsByStatementAsync(Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.getSuggestedAdUnitsByStatementAsync(filterStatement); + } + + /// Performs actions on SuggestedAdUnit objects that + /// match the given Statement#query. The following fields are + /// supported for filtering: + /// + ///
PQL Property Object Property
id SuggestedAdUnit#id
numRequests SuggestedAdUnit#numRequests
///
- AD_SERVER_ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME = 489, - /// The number of impressions delivered by AdSense viewed on the user's screen, - ///

Corresponds to "AdSense Active View viewable impressions" in the Ad Manager - /// UI. Compatible with the "Historical" report type.

+ public virtual Google.Api.Ads.AdManager.v202411.SuggestedAdUnitUpdateResult performSuggestedAdUnitAction(Google.Api.Ads.AdManager.v202411.SuggestedAdUnitAction suggestedAdUnitAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.performSuggestedAdUnitAction(suggestedAdUnitAction, filterStatement); + } + + public virtual System.Threading.Tasks.Task performSuggestedAdUnitActionAsync(Google.Api.Ads.AdManager.v202411.SuggestedAdUnitAction suggestedAdUnitAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.performSuggestedAdUnitActionAsync(suggestedAdUnitAction, filterStatement); + } + } + namespace Wrappers.DaiAuthenticationKeyService + { + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "createDaiAuthenticationKeys", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class createDaiAuthenticationKeysRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("daiAuthenticationKeys")] + public Google.Api.Ads.AdManager.v202411.DaiAuthenticationKey[] daiAuthenticationKeys; + + /// Creates a new instance of the class. + public createDaiAuthenticationKeysRequest() { + } + + /// Creates a new instance of the class. + public createDaiAuthenticationKeysRequest(Google.Api.Ads.AdManager.v202411.DaiAuthenticationKey[] daiAuthenticationKeys) { + this.daiAuthenticationKeys = daiAuthenticationKeys; + } + } + + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "createDaiAuthenticationKeysResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class createDaiAuthenticationKeysResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("rval")] + public Google.Api.Ads.AdManager.v202411.DaiAuthenticationKey[] rval; + + /// Creates a new instance of the class. + public createDaiAuthenticationKeysResponse() { + } + + /// Creates a new instance of the class. + public createDaiAuthenticationKeysResponse(Google.Api.Ads.AdManager.v202411.DaiAuthenticationKey[] rval) { + this.rval = rval; + } + } + + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "updateDaiAuthenticationKeys", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class updateDaiAuthenticationKeysRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("daiAuthenticationKeys")] + public Google.Api.Ads.AdManager.v202411.DaiAuthenticationKey[] daiAuthenticationKeys; + + /// Creates a new instance of the class. + public updateDaiAuthenticationKeysRequest() { + } + + /// Creates a new instance of the class. + public updateDaiAuthenticationKeysRequest(Google.Api.Ads.AdManager.v202411.DaiAuthenticationKey[] daiAuthenticationKeys) { + this.daiAuthenticationKeys = daiAuthenticationKeys; + } + } + + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "updateDaiAuthenticationKeysResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class updateDaiAuthenticationKeysResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("rval")] + public Google.Api.Ads.AdManager.v202411.DaiAuthenticationKey[] rval; + + /// Creates a new instance of the class. + public updateDaiAuthenticationKeysResponse() { + } + + /// Creates a new instance of the class. + public updateDaiAuthenticationKeysResponse(Google.Api.Ads.AdManager.v202411.DaiAuthenticationKey[] rval) { + this.rval = rval; + } + } + } + /// A DaiAuthenticationKey is used to authenticate stream requests to + /// the IMA SDK API. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class DaiAuthenticationKey { + private long idField; + + private bool idFieldSpecified; + + private string keyField; + + private DateTime creationDateTimeField; + + private DaiAuthenticationKeyStatus statusField; + + private bool statusFieldSpecified; + + private string nameField; + + private DaiAuthenticationKeyType keyTypeField; + + private bool keyTypeFieldSpecified; + + /// The unique ID of the DaiAuthenticationKey. + /// This value is read-only and is assigned by Google. /// - ADSENSE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS = 250, - /// The number of impressions delivered by AdSense that were sampled, and measurable - /// by active view.

Corresponds to "AdSense Active View measurable impressions" - /// in the Ad Manager UI. Compatible with the "Historical" report type.

+ [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public long id { + get { + return this.idField; + } + set { + this.idField = value; + this.idSpecified = true; + } + } + + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool idSpecified { + get { + return this.idFieldSpecified; + } + set { + this.idFieldSpecified = value; + } + } + + /// The value of the secure key. This value is read-only and is assigned by Google. /// - ADSENSE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS = 251, - /// The percentage of impressions delivered by AdSense viewed on the user's screen - /// (out of AdSense impressions measurable by active view).

Corresponds to - /// "AdSense Active View % viewable impressions" in the Ad Manager UI. Compatible - /// with the "Historical" report type.

+ [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public string key { + get { + return this.keyField; + } + set { + this.keyField = value; + } + } + + /// The date and time this DaiAuthenticationKey + /// was created. This value is read-only and is assigned by Google. /// - ADSENSE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE = 252, - /// Total number of impressions delivered by AdSense that were eligible to measure - /// viewability.

Corresponds to "AdSense Active View eligible impressions" in the - /// Ad Manager UI. Compatible with the "Historical" report type.

+ [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public DateTime creationDateTime { + get { + return this.creationDateTimeField; + } + set { + this.creationDateTimeField = value; + } + } + + /// The status of this DaiAuthenticationKey. This + /// value is read-only and is assigned by Google.

DAI authentication keys are + /// created in the DaiAuthenticationKeyStatus#ACTIVE + /// state. The status can only be modified through the DaiAuthenticationKeyService#performDaiAuthenticationKeyAction + /// method.

Only active keys will be accepted by the IMA SDK API as + /// valid.

///
- ADSENSE_ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS = 253, - /// The percentage of impressions delivered by AdSense that were measurable by - /// active view ( out of all AdSense impressions sampled for active view). - ///

Corresponds to "AdSense Active View % measurable impressions" in the Ad - /// Manager UI. Compatible with the "Historical" report type.

+ [System.Xml.Serialization.XmlElementAttribute(Order = 3)] + public DaiAuthenticationKeyStatus status { + get { + return this.statusField; + } + set { + this.statusField = value; + this.statusSpecified = true; + } + } + + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool statusSpecified { + get { + return this.statusFieldSpecified; + } + set { + this.statusFieldSpecified = value; + } + } + + /// The name for this DaiAuthenticationKey. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 4)] + public string name { + get { + return this.nameField; + } + set { + this.nameField = value; + } + } + + /// The type of this key, which determines how it should be used on stream create + /// requests. /// - ADSENSE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE = 254, - /// Active View AdSense average time in seconds that specific impressions are - /// reported as being viewable.

Corresponds to "AdSense Active View average - /// viewable time (seconds)" in the Ad Manager UI. Compatible with the "Historical" - /// report type.

+ [System.Xml.Serialization.XmlElementAttribute(Order = 5)] + public DaiAuthenticationKeyType keyType { + get { + return this.keyTypeField; + } + set { + this.keyTypeField = value; + this.keyTypeSpecified = true; + } + } + + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool keyTypeSpecified { + get { + return this.keyTypeFieldSpecified; + } + set { + this.keyTypeFieldSpecified = value; + } + } + } + + + /// Statuses associated with DaiAuthenticationKey + /// objects. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum DaiAuthenticationKeyStatus { + /// The value returned if the actual value is not exposed by the requested API + /// version. /// - ADSENSE_ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME = 490, - /// The number of impressions delivered by Ad Exchange viewed on the user's screen, - ///

Corresponds to "Ad Exchange Active View viewable impressions" in the Ad - /// Manager UI. Compatible with the "Historical" report type.

+ UNKNOWN = 0, + /// Indicates that the API key is actively in use and that the IMA SDK API should + /// accept it as a valid key in requests. /// - AD_EXCHANGE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS = 255, - /// The number of impressions delivered by Ad Exchange that were sampled, and - /// measurable by active view.

Corresponds to "Ad Exchange Active View measurable - /// impressions" in the Ad Manager UI. Compatible with the "Historical" report - /// type.

+ ACTIVE = 1, + /// Indicates that the API key is no longer is use and that the IMA SDK API should + /// not accept it as a valid key in requests. /// - AD_EXCHANGE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS = 256, - /// The percentage of impressions delivered by Ad Exchange viewed on the user's - /// screen (out of Ad Exchange impressions measurable by active view). - ///

Corresponds to "Ad Exchange Active View % viewable impressions" in the Ad - /// Manager UI. Compatible with the "Historical" report type.

+ INACTIVE = 2, + } + + + /// Key types associated with DaiAuthenticationKey objects. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum DaiAuthenticationKeyType { + /// The value returned if the actual value is not exposed by the requested API + /// version. /// - AD_EXCHANGE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE = 257, - /// Total number of impressions delivered by Ad Exchange that were eligible to - /// measure viewability.

Corresponds to "Ad Exchange Active View eligible - /// impressions" in the Ad Manager UI. Compatible with the "Historical" report - /// type.

+ UNKNOWN = 0, + /// Indicates that the key is a standard API key and should be used with the api-key + /// SDK parameter when authenticating stream create requests. /// - AD_EXCHANGE_ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS = 258, - /// The percentage of impressions delivered by Ad Exchange that were measurable by - /// active view ( out of all Ad Exchange impressions sampled for active view). - ///

Corresponds to "Ad Exchange Active View % measurable impressions" in the Ad - /// Manager UI. Compatible with the "Historical" report type.

+ API = 1, + /// Indicates that the key is an HMAC key and should be used to generate a signature + /// for the stream create request with the auth-token SDK parameter. /// - AD_EXCHANGE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE = 259, - /// Active View AdExchange average time in seconds that specific impressions are - /// reported as being viewable.

Corresponds to "Ad Exchange Active View average - /// viewable time (seconds)" in the Ad Manager UI. Compatible with the "Historical" - /// report type.

+ HMAC = 2, + } + + + /// Lists all errors associated with DAI authentication key actions. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class DaiAuthenticationKeyActionError : ApiError { + private DaiAuthenticationKeyActionErrorReason reasonField; + + private bool reasonFieldSpecified; + + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public DaiAuthenticationKeyActionErrorReason reason { + get { + return this.reasonField; + } + set { + this.reasonField = value; + this.reasonSpecified = true; + } + } + + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool reasonSpecified { + get { + return this.reasonFieldSpecified; + } + set { + this.reasonFieldSpecified = value; + } + } + } + + + /// Describes reasons for DaiAuthenticationKeyActionError. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "DaiAuthenticationKeyActionError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum DaiAuthenticationKeyActionErrorReason { + /// The operation is not applicable to the current status. /// - AD_EXCHANGE_ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME = 491, - /// The total number of queries sent to Ad Exchange.

Corresponds to "Ad Exchange - /// ad requests" in the Ad Manager UI. Compatible with the "Historical" report - /// type.

+ INVALID_STATUS_TRANSITION = 0, + /// A DAI authentication key cannot be deactivated if it is used by active content + /// sources. /// - AD_EXCHANGE_TOTAL_REQUESTS = 611, - /// The fraction of Ad Exchange queries that result in a matched query. Also known - /// as "Coverage".

Corresponds to "Ad Exchange match rate" in the Ad Manager UI. - /// Compatible with the "Historical" report type.

+ CANNOT_DEACTIVATE_IF_USED_BY_ACTIVE_CONTENT_SOURCES = 1, + /// A DAI authentication key cannot be deactivated if it is used by active live + /// streams. /// - AD_EXCHANGE_MATCH_RATE = 612, - /// The amount earned per click on Ad Exchange.

Corresponds to "Ad Exchange CPC" - /// in the Ad Manager UI. Compatible with the "Historical" report type.

+ CANNOT_DEACTIVATE_IF_USED_BY_ACTIVE_LIVE_STREAMS = 2, + /// The value returned if the actual value is not exposed by the requested API + /// version. /// - AD_EXCHANGE_COST_PER_CLICK = 613, - /// The fraction of Ad Exchange requests that result in a click.

Corresponds to - /// "Ad Exchange ad request CTR" in the Ad Manager UI. Compatible with the - /// "Historical" report type.

+ UNKNOWN = 3, + } + + + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", ConfigurationName = "Google.Api.Ads.AdManager.v202411.DaiAuthenticationKeyServiceInterface")] + public interface DaiAuthenticationKeyServiceInterface + { + // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Wrappers.DaiAuthenticationKeyService.createDaiAuthenticationKeysResponse createDaiAuthenticationKeys(Wrappers.DaiAuthenticationKeyService.createDaiAuthenticationKeysRequest request); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + System.Threading.Tasks.Task createDaiAuthenticationKeysAsync(Wrappers.DaiAuthenticationKeyService.createDaiAuthenticationKeysRequest request); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v202411.DaiAuthenticationKeyPage getDaiAuthenticationKeysByStatement(Google.Api.Ads.AdManager.v202411.Statement filterStatement); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task getDaiAuthenticationKeysByStatementAsync(Google.Api.Ads.AdManager.v202411.Statement filterStatement); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v202411.UpdateResult performDaiAuthenticationKeyAction(Google.Api.Ads.AdManager.v202411.DaiAuthenticationKeyAction daiAuthenticationKeyAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task performDaiAuthenticationKeyActionAsync(Google.Api.Ads.AdManager.v202411.DaiAuthenticationKeyAction daiAuthenticationKeyAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement); + + // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Wrappers.DaiAuthenticationKeyService.updateDaiAuthenticationKeysResponse updateDaiAuthenticationKeys(Wrappers.DaiAuthenticationKeyService.updateDaiAuthenticationKeysRequest request); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + System.Threading.Tasks.Task updateDaiAuthenticationKeysAsync(Wrappers.DaiAuthenticationKeyService.updateDaiAuthenticationKeysRequest request); + } + + + /// Captures a page of DaiAuthenticationKey + /// objects. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class DaiAuthenticationKeyPage { + private int totalResultSetSizeField; + + private bool totalResultSetSizeFieldSpecified; + + private int startIndexField; + + private bool startIndexFieldSpecified; + + private DaiAuthenticationKey[] resultsField; + + /// The size of the total result set to which this page belongs. /// - AD_EXCHANGE_TOTAL_REQUEST_CTR = 614, - /// The fraction of Ad Exchange matched requests that result in a click. - ///

Corresponds to "Ad Exchange matched request CTR" in the Ad Manager UI. - /// Compatible with the "Historical" report type.

+ [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public int totalResultSetSize { + get { + return this.totalResultSetSizeField; + } + set { + this.totalResultSetSizeField = value; + this.totalResultSetSizeSpecified = true; + } + } + + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool totalResultSetSizeSpecified { + get { + return this.totalResultSetSizeFieldSpecified; + } + set { + this.totalResultSetSizeFieldSpecified = value; + } + } + + /// The absolute index in the total result set on which this page begins. /// - AD_EXCHANGE_MATCHED_REQUEST_CTR = 615, - /// The amount earned per thousand Ad Exchange requests.

Corresponds to "Ad - /// Exchange ad request eCPM" in the Ad Manager UI. Compatible with the "Historical" - /// report type.

+ [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public int startIndex { + get { + return this.startIndexField; + } + set { + this.startIndexField = value; + this.startIndexSpecified = true; + } + } + + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool startIndexSpecified { + get { + return this.startIndexFieldSpecified; + } + set { + this.startIndexFieldSpecified = value; + } + } + + /// The collection of live stream events contained within this page. /// - AD_EXCHANGE_TOTAL_REQUEST_ECPM = 616, - /// The amount earned per thousand Ad Exchange matched requests.

Corresponds to - /// "Ad Exchange matched request eCPM" in the Ad Manager UI. Compatible with the - /// "Historical" report type.

+ [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] + public DaiAuthenticationKey[] results { + get { + return this.resultsField; + } + set { + this.resultsField = value; + } + } + } + + + /// Represents the actions that can be performed on DaiAuthenticationKey objects. + /// + [System.Xml.Serialization.XmlIncludeAttribute(typeof(DeactivateDaiAuthenticationKeys))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ActivateDaiAuthenticationKeys))] + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public abstract partial class DaiAuthenticationKeyAction { + } + + + /// The action used for deactivating DaiAuthenticationKey objects. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class DeactivateDaiAuthenticationKeys : DaiAuthenticationKeyAction { + } + + + /// The action used for activating DaiAuthenticationKey objects. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ActivateDaiAuthenticationKeys : DaiAuthenticationKeyAction { + } + + + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + public interface DaiAuthenticationKeyServiceInterfaceChannel : Google.Api.Ads.AdManager.v202411.DaiAuthenticationKeyServiceInterface, System.ServiceModel.IClientChannel + { + } + + + /// Provides methods for creating, updating and retrieving DaiAuthenticationKey objects. + /// + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + public partial class DaiAuthenticationKeyService : AdManagerSoapClient, IDaiAuthenticationKeyService { + /// Creates a new instance of the class. + public DaiAuthenticationKeyService() { + } + + /// Creates a new instance of the class. + public DaiAuthenticationKeyService(string endpointConfigurationName) + : base(endpointConfigurationName) { + } + + /// Creates a new instance of the class. + public DaiAuthenticationKeyService(string endpointConfigurationName, string remoteAddress) + : base(endpointConfigurationName, remoteAddress) { + } + + /// Creates a new instance of the class. + public DaiAuthenticationKeyService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) + : base(endpointConfigurationName, remoteAddress) { + } + + /// Creates a new instance of the class. + public DaiAuthenticationKeyService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) + : base(binding, remoteAddress) { + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + Wrappers.DaiAuthenticationKeyService.createDaiAuthenticationKeysResponse Google.Api.Ads.AdManager.v202411.DaiAuthenticationKeyServiceInterface.createDaiAuthenticationKeys(Wrappers.DaiAuthenticationKeyService.createDaiAuthenticationKeysRequest request) { + return base.Channel.createDaiAuthenticationKeys(request); + } + + /// Creates new DaiAuthenticationKey objects. + ///

The following fields are required:

///
- AD_EXCHANGE_MATCHED_REQUEST_ECPM = 617, - /// The increase in Ad Exchange revenue gained for won impressions over the - /// applicable minimum CPM or the best price specified during dynamic allocation. - ///

Corresponds to "Ad Exchange lift" in the Ad Manager UI. Compatible with the - /// "Historical" report type.

+ public virtual Google.Api.Ads.AdManager.v202411.DaiAuthenticationKey[] createDaiAuthenticationKeys(Google.Api.Ads.AdManager.v202411.DaiAuthenticationKey[] daiAuthenticationKeys) { + Wrappers.DaiAuthenticationKeyService.createDaiAuthenticationKeysRequest inValue = new Wrappers.DaiAuthenticationKeyService.createDaiAuthenticationKeysRequest(); + inValue.daiAuthenticationKeys = daiAuthenticationKeys; + Wrappers.DaiAuthenticationKeyService.createDaiAuthenticationKeysResponse retVal = ((Google.Api.Ads.AdManager.v202411.DaiAuthenticationKeyServiceInterface)(this)).createDaiAuthenticationKeys(inValue); + return retVal.rval; + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202411.DaiAuthenticationKeyServiceInterface.createDaiAuthenticationKeysAsync(Wrappers.DaiAuthenticationKeyService.createDaiAuthenticationKeysRequest request) { + return base.Channel.createDaiAuthenticationKeysAsync(request); + } + + public virtual System.Threading.Tasks.Task createDaiAuthenticationKeysAsync(Google.Api.Ads.AdManager.v202411.DaiAuthenticationKey[] daiAuthenticationKeys) { + Wrappers.DaiAuthenticationKeyService.createDaiAuthenticationKeysRequest inValue = new Wrappers.DaiAuthenticationKeyService.createDaiAuthenticationKeysRequest(); + inValue.daiAuthenticationKeys = daiAuthenticationKeys; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202411.DaiAuthenticationKeyServiceInterface)(this)).createDaiAuthenticationKeysAsync(inValue)).Result.rval); + } + + /// Gets a DaiAuthenticationKeyPage of DaiAuthenticationKey objects that satisfy the + /// given Statement#query. The following fields are + /// supported for filtering: + /// + /// + ///
PQL Property Object Property
id DaiAuthenticationKey#id
status DaiAuthenticationKey#status
name DaiAuthenticationKey#name
///
- AD_EXCHANGE_LIFT_EARNINGS = 618, - /// Active View total revenue.

Corresponds to "Total Active View revenue" in the - /// Ad Manager UI. Compatible with the "Historical" report type.

+ public virtual Google.Api.Ads.AdManager.v202411.DaiAuthenticationKeyPage getDaiAuthenticationKeysByStatement(Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.getDaiAuthenticationKeysByStatement(filterStatement); + } + + public virtual System.Threading.Tasks.Task getDaiAuthenticationKeysByStatementAsync(Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.getDaiAuthenticationKeysByStatementAsync(filterStatement); + } + + /// Performs actions on DaiAuthenticationKey + /// objects that match the given Statement#query.

DAI + /// authentication keys cannot be deactivated if there are active LiveStreamEvents or Content Sources that are using + /// them.

///
- TOTAL_ACTIVE_VIEW_REVENUE = 425, - /// Number of view-through conversions. + public virtual Google.Api.Ads.AdManager.v202411.UpdateResult performDaiAuthenticationKeyAction(Google.Api.Ads.AdManager.v202411.DaiAuthenticationKeyAction daiAuthenticationKeyAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.performDaiAuthenticationKeyAction(daiAuthenticationKeyAction, filterStatement); + } + + public virtual System.Threading.Tasks.Task performDaiAuthenticationKeyActionAsync(Google.Api.Ads.AdManager.v202411.DaiAuthenticationKeyAction daiAuthenticationKeyAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.performDaiAuthenticationKeyActionAsync(daiAuthenticationKeyAction, filterStatement); + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + Wrappers.DaiAuthenticationKeyService.updateDaiAuthenticationKeysResponse Google.Api.Ads.AdManager.v202411.DaiAuthenticationKeyServiceInterface.updateDaiAuthenticationKeys(Wrappers.DaiAuthenticationKeyService.updateDaiAuthenticationKeysRequest request) { + return base.Channel.updateDaiAuthenticationKeys(request); + } + + /// Updates the specified DaiAuthenticationKey + /// objects. + /// + public virtual Google.Api.Ads.AdManager.v202411.DaiAuthenticationKey[] updateDaiAuthenticationKeys(Google.Api.Ads.AdManager.v202411.DaiAuthenticationKey[] daiAuthenticationKeys) { + Wrappers.DaiAuthenticationKeyService.updateDaiAuthenticationKeysRequest inValue = new Wrappers.DaiAuthenticationKeyService.updateDaiAuthenticationKeysRequest(); + inValue.daiAuthenticationKeys = daiAuthenticationKeys; + Wrappers.DaiAuthenticationKeyService.updateDaiAuthenticationKeysResponse retVal = ((Google.Api.Ads.AdManager.v202411.DaiAuthenticationKeyServiceInterface)(this)).updateDaiAuthenticationKeys(inValue); + return retVal.rval; + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202411.DaiAuthenticationKeyServiceInterface.updateDaiAuthenticationKeysAsync(Wrappers.DaiAuthenticationKeyService.updateDaiAuthenticationKeysRequest request) { + return base.Channel.updateDaiAuthenticationKeysAsync(request); + } + + public virtual System.Threading.Tasks.Task updateDaiAuthenticationKeysAsync(Google.Api.Ads.AdManager.v202411.DaiAuthenticationKey[] daiAuthenticationKeys) { + Wrappers.DaiAuthenticationKeyService.updateDaiAuthenticationKeysRequest inValue = new Wrappers.DaiAuthenticationKeyService.updateDaiAuthenticationKeysRequest(); + inValue.daiAuthenticationKeys = daiAuthenticationKeys; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202411.DaiAuthenticationKeyServiceInterface)(this)).updateDaiAuthenticationKeysAsync(inValue)).Result.rval); + } + } + namespace Wrappers.TeamService + { + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "createTeams", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class createTeamsRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("teams")] + public Google.Api.Ads.AdManager.v202411.Team[] teams; + + /// Creates a new instance of the class. + /// + public createTeamsRequest() { + } + + /// Creates a new instance of the class. + /// + public createTeamsRequest(Google.Api.Ads.AdManager.v202411.Team[] teams) { + this.teams = teams; + } + } + + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "createTeamsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class createTeamsResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("rval")] + public Google.Api.Ads.AdManager.v202411.Team[] rval; + + /// Creates a new instance of the class. + /// + public createTeamsResponse() { + } + + /// Creates a new instance of the class. + /// + public createTeamsResponse(Google.Api.Ads.AdManager.v202411.Team[] rval) { + this.rval = rval; + } + } + + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "updateTeams", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class updateTeamsRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("teams")] + public Google.Api.Ads.AdManager.v202411.Team[] teams; + + /// Creates a new instance of the class. + /// + public updateTeamsRequest() { + } + + /// Creates a new instance of the class. + /// + public updateTeamsRequest(Google.Api.Ads.AdManager.v202411.Team[] teams) { + this.teams = teams; + } + } + + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "updateTeamsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class updateTeamsResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("rval")] + public Google.Api.Ads.AdManager.v202411.Team[] rval; + + /// Creates a new instance of the class. + /// + public updateTeamsResponse() { + } + + /// Creates a new instance of the class. + /// + public updateTeamsResponse(Google.Api.Ads.AdManager.v202411.Team[] rval) { + this.rval = rval; + } + } + } + /// A Team defines a grouping of users and what entities they have + /// access to. Users are added to teams with UserTeamAssociation objects. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class Team { + private long idField; + + private bool idFieldSpecified; + + private string nameField; + + private string descriptionField; + + private TeamStatus statusField; + + private bool statusFieldSpecified; + + private bool hasAllCompaniesField; + + private bool hasAllCompaniesFieldSpecified; + + private bool hasAllInventoryField; + + private bool hasAllInventoryFieldSpecified; + + private TeamAccessType teamAccessTypeField; + + private bool teamAccessTypeFieldSpecified; + + /// The unique ID of the Team. This value is readonly and is assigned + /// by Google. Teams that are created by Google will have negative IDs. /// - VIEW_THROUGH_CONVERSIONS = 260, - /// Number of view-through conversions per thousand impressions.

Corresponds to - /// "Conversions per thousand impressions" in the Ad Manager UI. Compatible with the - /// "Historical" report type.

+ [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public long id { + get { + return this.idField; + } + set { + this.idField = value; + this.idSpecified = true; + } + } + + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool idSpecified { + get { + return this.idFieldSpecified; + } + set { + this.idFieldSpecified = value; + } + } + + /// The name of the Team. This value is required to create a team and + /// has a maximum length of 106 characters. /// - CONVERSIONS_PER_THOUSAND_IMPRESSIONS = 261, - /// Number of click-through conversions.

Corresponds to "Click-through - /// conversions" in the Ad Manager UI. Compatible with the "Historical" report - /// type.

+ [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public string name { + get { + return this.nameField; + } + set { + this.nameField = value; + } + } + + /// The description of the Team. This value is optional and has a + /// maximum length of 255 characters. /// - CLICK_THROUGH_CONVERSIONS = 262, - /// Number of click-through conversions per click.

Corresponds to "Conversions - /// per click" in the Ad Manager UI. Compatible with the "Historical" report - /// type.

+ [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public string description { + get { + return this.descriptionField; + } + set { + this.descriptionField = value; + } + } + + /// The status of the Team. This value can be TeamStatus#ACTIVE (default) or TeamStatus#INACTIVE and determines the visibility of the team in the + /// UI. /// - CONVERSIONS_PER_CLICK = 263, - /// Revenue for view-through conversions.

Corresponds to "Advertiser view-through - /// sales" in the Ad Manager UI. Compatible with the "Historical" report type.

+ [System.Xml.Serialization.XmlElementAttribute(Order = 3)] + public TeamStatus status { + get { + return this.statusField; + } + set { + this.statusField = value; + this.statusSpecified = true; + } + } + + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool statusSpecified { + get { + return this.statusFieldSpecified; + } + set { + this.statusFieldSpecified = value; + } + } + + /// Whether or not users on this team have access to all companies. If this value is + /// true, then an error will be thrown if an attempt is made to associate this team + /// with a Company. /// - VIEW_THROUGH_REVENUE = 264, - /// Revenue for click-through conversions.

Corresponds to "Advertiser - /// click-through sales" in the Ad Manager UI. Compatible with the "Historical" - /// report type.

+ [System.Xml.Serialization.XmlElementAttribute(Order = 4)] + public bool hasAllCompanies { + get { + return this.hasAllCompaniesField; + } + set { + this.hasAllCompaniesField = value; + this.hasAllCompaniesSpecified = true; + } + } + + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool hasAllCompaniesSpecified { + get { + return this.hasAllCompaniesFieldSpecified; + } + set { + this.hasAllCompaniesFieldSpecified = value; + } + } + + /// Whether or not users on this team have access to all inventory. If this value is + /// true, then an error will be thrown if an attempt is made to associate this team + /// with an AdUnit. /// - CLICK_THROUGH_REVENUE = 265, - /// Total number of conversions.

Corresponds to "Total conversions" in the Ad - /// Manager UI. Compatible with the "Historical" report type.

+ [System.Xml.Serialization.XmlElementAttribute(Order = 5)] + public bool hasAllInventory { + get { + return this.hasAllInventoryField; + } + set { + this.hasAllInventoryField = value; + this.hasAllInventorySpecified = true; + } + } + + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool hasAllInventorySpecified { + get { + return this.hasAllInventoryFieldSpecified; + } + set { + this.hasAllInventoryFieldSpecified = value; + } + } + + /// The default access to orders, for users on this team. /// - TOTAL_CONVERSIONS = 266, - /// Total revenue for conversions.

Corresponds to "Total advertiser sales" in the - /// Ad Manager UI. Compatible with the "Historical" report type.

+ [System.Xml.Serialization.XmlElementAttribute(Order = 6)] + public TeamAccessType teamAccessType { + get { + return this.teamAccessTypeField; + } + set { + this.teamAccessTypeField = value; + this.teamAccessTypeSpecified = true; + } + } + + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool teamAccessTypeSpecified { + get { + return this.teamAccessTypeFieldSpecified; + } + set { + this.teamAccessTypeFieldSpecified = value; + } + } + } + + + /// Represents the status of a team, whether it is active or inactive. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum TeamStatus { + /// The status of an active team. (i.e. visible in the UI) /// - TOTAL_CONVERSION_REVENUE = 267, - /// The number of impressions sent to Ad Exchange / AdSense, regardless of whether - /// they won or lost (total number of dynamic allocation impressions). - ///

Corresponds to "Impressions competing" in the Ad Manager UI. Compatible with - /// the "Historical" report type.

+ ACTIVE = 0, + /// The status of an inactive team. (i.e. hidden in the UI) /// - DYNAMIC_ALLOCATION_OPPORTUNITY_IMPRESSIONS_COMPETING_TOTAL = 268, - /// The number of unfilled queries that attempted dynamic allocation by Ad Exchange - /// / AdSense.

Corresponds to "Unfilled competing impressions" in the Ad Manager - /// UI. Compatible with the "Historical" report type.

+ INACTIVE = 1, + /// The value returned if the actual value is not exposed by the requested API + /// version. /// - DYNAMIC_ALLOCATION_OPPORTUNITY_UNFILLED_IMPRESSIONS_COMPETING = 269, - /// The number of Ad Exchange / AdSense and Ad Manager impressions.

Corresponds - /// to "Eligible impressions" in the Ad Manager UI. Compatible with the "Historical" - /// report type.

+ UNKNOWN = 2, + } + + + /// Represents the types of team access supported for orders. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum TeamAccessType { + /// The level of access in which team members cannot view or edit a team's orders. /// - DYNAMIC_ALLOCATION_OPPORTUNITY_ELIGIBLE_IMPRESSIONS_TOTAL = 270, - /// The difference between eligible impressions and competing impressions in dynamic - /// allocation. + NONE = 0, + /// The level of access in which team members can only view a team's orders. /// - DYNAMIC_ALLOCATION_OPPORTUNITY_IMPRESSIONS_NOT_COMPETING_TOTAL = 271, - /// The percentage of eligible impressions that are not competing in dynamic - /// allocation.

Corresponds to "Impressions not competing (%)" in the Ad Manager - /// UI. Compatible with the "Historical" report type.

+ READ_ONLY = 1, + /// The level of access in which team members can view and edit a team's orders. /// - DYNAMIC_ALLOCATION_OPPORTUNITY_IMPRESSIONS_NOT_COMPETING_PERCENT_TOTAL = 272, - /// The percent of eligible impressions participating in dynamic allocation. + READ_WRITE = 2, + } + + + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", ConfigurationName = "Google.Api.Ads.AdManager.v202411.TeamServiceInterface")] + public interface TeamServiceInterface + { + // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Wrappers.TeamService.createTeamsResponse createTeams(Wrappers.TeamService.createTeamsRequest request); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + System.Threading.Tasks.Task createTeamsAsync(Wrappers.TeamService.createTeamsRequest request); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v202411.TeamPage getTeamsByStatement(Google.Api.Ads.AdManager.v202411.Statement filterStatement); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task getTeamsByStatementAsync(Google.Api.Ads.AdManager.v202411.Statement filterStatement); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v202411.UpdateResult performTeamAction(Google.Api.Ads.AdManager.v202411.TeamAction teamAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task performTeamActionAsync(Google.Api.Ads.AdManager.v202411.TeamAction teamAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement); + + // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Wrappers.TeamService.updateTeamsResponse updateTeams(Wrappers.TeamService.updateTeamsRequest request); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + System.Threading.Tasks.Task updateTeamsAsync(Wrappers.TeamService.updateTeamsRequest request); + } + + + /// Captures a page of Team objects. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class TeamPage { + private int totalResultSetSizeField; + + private bool totalResultSetSizeFieldSpecified; + + private int startIndexField; + + private bool startIndexFieldSpecified; + + private Team[] resultsField; + + /// The size of the total result set to which this page belongs. /// - DYNAMIC_ALLOCATION_OPPORTUNITY_SATURATION_RATE_TOTAL = 273, - /// The percent of total dynamic allocation queries that won.

Corresponds to - /// "Dynamic allocation match rate" in the Ad Manager UI. Compatible with the - /// "Historical" report type.

+ [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public int totalResultSetSize { + get { + return this.totalResultSetSizeField; + } + set { + this.totalResultSetSizeField = value; + this.totalResultSetSizeSpecified = true; + } + } + + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool totalResultSetSizeSpecified { + get { + return this.totalResultSetSizeFieldSpecified; + } + set { + this.totalResultSetSizeFieldSpecified = value; + } + } + + /// The absolute index in the total result set on which this page begins. /// - DYNAMIC_ALLOCATION_OPPORTUNITY_MATCH_RATE_TOTAL = 274, - /// The number of invoiced impressions.

Corresponds to "Invoiced impressions" in - /// the Ad Manager UI. Compatible with the "Historical" report type.

+ [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public int startIndex { + get { + return this.startIndexField; + } + set { + this.startIndexField = value; + this.startIndexSpecified = true; + } + } + + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool startIndexSpecified { + get { + return this.startIndexFieldSpecified; + } + set { + this.startIndexFieldSpecified = value; + } + } + + /// The collection of teams contained within this page. /// - INVOICED_IMPRESSIONS = 379, - /// The number of invoiced unfilled impressions.

Corresponds to "Invoiced - /// unfilled impressions" in the Ad Manager UI. Compatible with the "Historical" - /// report type.

+ [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] + public Team[] results { + get { + return this.resultsField; + } + set { + this.resultsField = value; + } + } + } + + + /// Represents the actions that can be performed on Team objects. + /// + [System.Xml.Serialization.XmlIncludeAttribute(typeof(DeactivateTeams))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ActivateTeams))] + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public abstract partial class TeamAction { + } + + + /// The action used for deactivating Team objects. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class DeactivateTeams : TeamAction { + } + + + /// The action used for activating Team objects. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ActivateTeams : TeamAction { + } + + + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + public interface TeamServiceInterfaceChannel : Google.Api.Ads.AdManager.v202411.TeamServiceInterface, System.ServiceModel.IClientChannel + { + } + + + /// Provides methods for creating, updating, and retrieving Team + /// objects.

Teams are used to group users in order to define access to entities + /// such as companies, inventory and orders.

+ ///
+ [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + public partial class TeamService : AdManagerSoapClient, ITeamService { + /// Creates a new instance of the class. /// - INVOICED_UNFILLED_IMPRESSIONS = 380, - /// The total number of impressions tracked for Nielsen Digital Ad Ratings - /// measurement.

Corresponds to "Impressions" in the Ad Manager UI. Compatible - /// with the "Reach" report type.

+ public TeamService() { + } + + /// Creates a new instance of the class. /// - NIELSEN_IMPRESSIONS = 400, - /// The total number of impressions for in-target demographic tracked for Nielsen - /// Digital Ad Ratings measurement.

Corresponds to "In-target impressions" in the - /// Ad Manager UI. Compatible with the "Reach" report type.

+ public TeamService(string endpointConfigurationName) + : base(endpointConfigurationName) { + } + + /// Creates a new instance of the class. /// - NIELSEN_IN_TARGET_IMPRESSIONS = 411, - /// The population in the demographic.

Corresponds to "Population base" in the Ad - /// Manager UI. Compatible with the "Reach" report type.

+ public TeamService(string endpointConfigurationName, string remoteAddress) + : base(endpointConfigurationName, remoteAddress) { + } + + /// Creates a new instance of the class. /// - NIELSEN_POPULATION_BASE = 401, - /// The total population for all in-target demographics.

Compatible with the - /// "Reach" report type.

+ public TeamService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) + : base(endpointConfigurationName, remoteAddress) { + } + + /// Creates a new instance of the class. /// - NIELSEN_IN_TARGET_POPULATION_BASE = 412, - /// The total number of different people within the selected demographic who were - /// reached.

Corresponds to "Unique audience" in the Ad Manager UI. Compatible - /// with the "Reach" report type.

+ public TeamService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) + : base(binding, remoteAddress) { + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + Wrappers.TeamService.createTeamsResponse Google.Api.Ads.AdManager.v202411.TeamServiceInterface.createTeams(Wrappers.TeamService.createTeamsRequest request) { + return base.Channel.createTeams(request); + } + + /// Creates new Team objects.

The following fields are + /// required:

///
- NIELSEN_UNIQUE_AUDIENCE = 402, - /// The total number of different people within all in-target demographics who were - /// reached.

Compatible with the "Reach" report type.

+ public virtual Google.Api.Ads.AdManager.v202411.Team[] createTeams(Google.Api.Ads.AdManager.v202411.Team[] teams) { + Wrappers.TeamService.createTeamsRequest inValue = new Wrappers.TeamService.createTeamsRequest(); + inValue.teams = teams; + Wrappers.TeamService.createTeamsResponse retVal = ((Google.Api.Ads.AdManager.v202411.TeamServiceInterface)(this)).createTeams(inValue); + return retVal.rval; + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202411.TeamServiceInterface.createTeamsAsync(Wrappers.TeamService.createTeamsRequest request) { + return base.Channel.createTeamsAsync(request); + } + + public virtual System.Threading.Tasks.Task createTeamsAsync(Google.Api.Ads.AdManager.v202411.Team[] teams) { + Wrappers.TeamService.createTeamsRequest inValue = new Wrappers.TeamService.createTeamsRequest(); + inValue.teams = teams; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202411.TeamServiceInterface)(this)).createTeamsAsync(inValue)).Result.rval); + } + + /// Gets a TeamPage of Team objects that satisfy the given + /// Statement#query. The following fields are + /// supported for filtering: + ///
PQL Property Object Property
id Team#id
name Team#name
descriptionTeam#description
///
- NIELSEN_IN_TARGET_UNIQUE_AUDIENCE = 413, - /// The unique audience reached as a percentage of the population base. - ///

Corresponds to "% audience reach" in the Ad Manager UI. Compatible with the - /// "Reach" report type.

+ public virtual Google.Api.Ads.AdManager.v202411.TeamPage getTeamsByStatement(Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.getTeamsByStatement(filterStatement); + } + + public virtual System.Threading.Tasks.Task getTeamsByStatementAsync(Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.getTeamsByStatementAsync(filterStatement); + } + + /// Performs actions on Team objects that match the given Statement#query. /// - NIELSEN_PERCENT_AUDIENCE_REACH = 403, - /// The unique audience reached as a percentage of the population base for all - /// in-target demographics.

Compatible with the "Reach" report type.

+ public virtual Google.Api.Ads.AdManager.v202411.UpdateResult performTeamAction(Google.Api.Ads.AdManager.v202411.TeamAction teamAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.performTeamAction(teamAction, filterStatement); + } + + public virtual System.Threading.Tasks.Task performTeamActionAsync(Google.Api.Ads.AdManager.v202411.TeamAction teamAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.performTeamActionAsync(teamAction, filterStatement); + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + Wrappers.TeamService.updateTeamsResponse Google.Api.Ads.AdManager.v202411.TeamServiceInterface.updateTeams(Wrappers.TeamService.updateTeamsRequest request) { + return base.Channel.updateTeams(request); + } + + /// Updates the specified Team objects. /// - NIELSEN_IN_TARGET_PERCENT_AUDIENCE_REACH = 414, - /// The average number of times that a person within the target audience sees an - /// advertisement.

Corresponds to "Average frequency" in the Ad Manager UI. - /// Compatible with the "Reach" report type.

+ public virtual Google.Api.Ads.AdManager.v202411.Team[] updateTeams(Google.Api.Ads.AdManager.v202411.Team[] teams) { + Wrappers.TeamService.updateTeamsRequest inValue = new Wrappers.TeamService.updateTeamsRequest(); + inValue.teams = teams; + Wrappers.TeamService.updateTeamsResponse retVal = ((Google.Api.Ads.AdManager.v202411.TeamServiceInterface)(this)).updateTeams(inValue); + return retVal.rval; + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202411.TeamServiceInterface.updateTeamsAsync(Wrappers.TeamService.updateTeamsRequest request) { + return base.Channel.updateTeamsAsync(request); + } + + public virtual System.Threading.Tasks.Task updateTeamsAsync(Google.Api.Ads.AdManager.v202411.Team[] teams) { + Wrappers.TeamService.updateTeamsRequest inValue = new Wrappers.TeamService.updateTeamsRequest(); + inValue.teams = teams; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202411.TeamServiceInterface)(this)).updateTeamsAsync(inValue)).Result.rval); + } + } + namespace Wrappers.UserService + { + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "createUsers", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class createUsersRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("users")] + public Google.Api.Ads.AdManager.v202411.User[] users; + + /// Creates a new instance of the class. + /// + public createUsersRequest() { + } + + /// Creates a new instance of the class. + /// + public createUsersRequest(Google.Api.Ads.AdManager.v202411.User[] users) { + this.users = users; + } + } + + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "createUsersResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class createUsersResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("rval")] + public Google.Api.Ads.AdManager.v202411.User[] rval; + + /// Creates a new instance of the class. + /// + public createUsersResponse() { + } + + /// Creates a new instance of the class. + /// + public createUsersResponse(Google.Api.Ads.AdManager.v202411.User[] rval) { + this.rval = rval; + } + } + + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "getAllRoles", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class getAllRolesRequest { + /// Creates a new instance of the class. + /// + public getAllRolesRequest() { + } + } + + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "getAllRolesResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class getAllRolesResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("rval")] + public Google.Api.Ads.AdManager.v202411.Role[] rval; + + /// Creates a new instance of the class. + /// + public getAllRolesResponse() { + } + + /// Creates a new instance of the class. + /// + public getAllRolesResponse(Google.Api.Ads.AdManager.v202411.Role[] rval) { + this.rval = rval; + } + } + + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "updateUsers", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class updateUsersRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("users")] + public Google.Api.Ads.AdManager.v202411.User[] users; + + /// Creates a new instance of the class. + /// + public updateUsersRequest() { + } + + /// Creates a new instance of the class. + /// + public updateUsersRequest(Google.Api.Ads.AdManager.v202411.User[] users) { + this.users = users; + } + } + + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "updateUsersResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class updateUsersResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("rval")] + public Google.Api.Ads.AdManager.v202411.User[] rval; + + /// Creates a new instance of the class. + /// + public updateUsersResponse() { + } + + /// Creates a new instance of the class. + /// + public updateUsersResponse(Google.Api.Ads.AdManager.v202411.User[] rval) { + this.rval = rval; + } + } + } + /// The UserRecord represents the base class from which a + /// User is derived. + /// + [System.Xml.Serialization.XmlIncludeAttribute(typeof(User))] + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class UserRecord { + private long idField; + + private bool idFieldSpecified; + + private string nameField; + + private string emailField; + + private long roleIdField; + + private bool roleIdFieldSpecified; + + private string roleNameField; + + /// The unique ID of the User. This attribute is readonly and is + /// assigned by Google. /// - NIELSEN_AVERAGE_FREQUENCY = 404, - /// The average number of times that a person within the target audience sees an - /// advertisement for all in-target demographics.

Compatible with the "Reach" - /// report type.

+ [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public long id { + get { + return this.idField; + } + set { + this.idField = value; + this.idSpecified = true; + } + } + + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool idSpecified { + get { + return this.idFieldSpecified; + } + set { + this.idFieldSpecified = value; + } + } + + /// The name of the User. It has a maximum length of 128 characters. /// - NIELSEN_IN_TARGET_AVERAGE_FREQUENCY = 415, - /// The unit of audience volume, which is based on the percentage of the reached - /// target audience population multiplied by the average frequency.

Corresponds - /// to "Gross rating points" in the Ad Manager UI. Compatible with the "Reach" - /// report type.

+ [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public string name { + get { + return this.nameField; + } + set { + this.nameField = value; + } + } + + /// The email or login of the User. In order to create a new user, you + /// must already have a Google Account. /// - NIELSEN_GROSS_RATING_POINTS = 405, - /// The unit of audience volume, which is based on the percentage of the reached - /// target audience population multiplied by the average frequency, for all - /// in-target demographics.

Compatible with the "Reach" report type.

+ [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public string email { + get { + return this.emailField; + } + set { + this.emailField = value; + } + } + + /// The unique role ID of the User. Roles that are created by Google + /// will have negative IDs. /// - NIELSEN_IN_TARGET_GROSS_RATING_POINTS = 416, - /// The share of impressions that reached the target demographic.

Corresponds to - /// "% impression share" in the Ad Manager UI. Compatible with the "Reach" report - /// type.

+ [System.Xml.Serialization.XmlElementAttribute(Order = 3)] + public long roleId { + get { + return this.roleIdField; + } + set { + this.roleIdField = value; + this.roleIdSpecified = true; + } + } + + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool roleIdSpecified { + get { + return this.roleIdFieldSpecified; + } + set { + this.roleIdFieldSpecified = value; + } + } + + /// The name of the role assigned to the User. This attribute is + /// readonly. /// - NIELSEN_PERCENT_IMPRESSIONS_SHARE = 406, - /// The share of impressions that reached all in-target demographics.

Corresponds - /// to "In-target % impression share" in the Ad Manager UI. Compatible with the - /// "Reach" report type.

+ [System.Xml.Serialization.XmlElementAttribute(Order = 4)] + public string roleName { + get { + return this.roleNameField; + } + set { + this.roleNameField = value; + } + } + } + + + /// Represents a user of the system.

Users may be assigned at most one Role per network. Each role provides a user with permissions to + /// perform specific operations. Without a role, they will not be able to perform + /// any actions.

+ ///
+ [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class User : UserRecord { + private bool isActiveField; + + private bool isActiveFieldSpecified; + + private string externalIdField; + + private bool isServiceAccountField; + + private bool isServiceAccountFieldSpecified; + + private string ordersUiLocalTimeZoneIdField; + + /// Specifies whether or not the User is active. An inactive user + /// cannot log in to the system or perform any operations. This attribute is + /// read-only. /// - NIELSEN_IN_TARGET_PERCENT_IMPRESSIONS_SHARE = 417, - /// The share of the total population represented by the population base. - ///

Corresponds to "% population share" in the Ad Manager UI. Compatible with the - /// "Reach" report type.

+ [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public bool isActive { + get { + return this.isActiveField; + } + set { + this.isActiveField = value; + this.isActiveSpecified = true; + } + } + + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool isActiveSpecified { + get { + return this.isActiveFieldSpecified; + } + set { + this.isActiveFieldSpecified = value; + } + } + + /// An identifier for the User that is meaningful to the publisher. + /// This attribute is optional and has a maximum length of 255 characters. /// - NIELSEN_PERCENT_POPULATION_SHARE = 407, - /// The share of the total population for all in-target demographics represented by - /// the population base.

Compatible with the "Reach" report type.

+ [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public string externalId { + get { + return this.externalIdField; + } + set { + this.externalIdField = value; + } + } + + /// Whether the user is an OAuth2 service account user. This attribute is read-only. + /// Service account users can only be added through the UI. /// - NIELSEN_IN_TARGET_PERCENT_POPULATION_SHARE = 418, - /// The share of the unique audience in the demographic.

Corresponds to "% - /// audience share" in the Ad Manager UI. Compatible with the "Reach" report - /// type.

+ [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public bool isServiceAccount { + get { + return this.isServiceAccountField; + } + set { + this.isServiceAccountField = value; + this.isServiceAccountSpecified = true; + } + } + + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool isServiceAccountSpecified { + get { + return this.isServiceAccountFieldSpecified; + } + set { + this.isServiceAccountFieldSpecified = value; + } + } + + /// The long format timezone id (e.g. "America/Los_Angeles") used in the orders and + /// line items UI for this User. Set this to null to + /// indicate that no such value is defined for the User - UI then + /// defaults to using the Network's timezone.

This setting only affects the UI + /// for this user and does not in particular affect the timezone of any dates and + /// times returned in API responses.

///
- NIELSEN_PERCENT_AUDIENCE_SHARE = 408, - /// The share of the unique audience for all in-target demographics.

Compatible - /// with the "Reach" report type.

+ [System.Xml.Serialization.XmlElementAttribute(Order = 3)] + public string ordersUiLocalTimeZoneId { + get { + return this.ordersUiLocalTimeZoneIdField; + } + set { + this.ordersUiLocalTimeZoneIdField = value; + } + } + } + + + /// An error for an exception that occurred when using a token. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class TokenError : ApiError { + private TokenErrorReason reasonField; + + private bool reasonFieldSpecified; + + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public TokenErrorReason reason { + get { + return this.reasonField; + } + set { + this.reasonField = value; + this.reasonSpecified = true; + } + } + + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool reasonSpecified { + get { + return this.reasonFieldSpecified; + } + set { + this.reasonFieldSpecified = value; + } + } + } + + + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "TokenError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum TokenErrorReason { + INVALID = 0, + EXPIRED = 1, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 2, + } + + + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", ConfigurationName = "Google.Api.Ads.AdManager.v202411.UserServiceInterface")] + public interface UserServiceInterface + { + // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UserRecord))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Wrappers.UserService.createUsersResponse createUsers(Wrappers.UserService.createUsersRequest request); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + System.Threading.Tasks.Task createUsersAsync(Wrappers.UserService.createUsersRequest request); + + // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UserRecord))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Wrappers.UserService.getAllRolesResponse getAllRoles(Wrappers.UserService.getAllRolesRequest request); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + System.Threading.Tasks.Task getAllRolesAsync(Wrappers.UserService.getAllRolesRequest request); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UserRecord))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v202411.User getCurrentUser(); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task getCurrentUserAsync(); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UserRecord))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v202411.UserPage getUsersByStatement(Google.Api.Ads.AdManager.v202411.Statement filterStatement); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task getUsersByStatementAsync(Google.Api.Ads.AdManager.v202411.Statement filterStatement); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UserRecord))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v202411.UpdateResult performUserAction(Google.Api.Ads.AdManager.v202411.UserAction userAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task performUserActionAsync(Google.Api.Ads.AdManager.v202411.UserAction userAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement); + + // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UserRecord))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Wrappers.UserService.updateUsersResponse updateUsers(Wrappers.UserService.updateUsersRequest request); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + System.Threading.Tasks.Task updateUsersAsync(Wrappers.UserService.updateUsersRequest request); + } + + + /// Each Role provides a user with permissions to perform specific + /// operations in the system. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class Role { + private long idField; + + private bool idFieldSpecified; + + private string nameField; + + private string descriptionField; + + private RoleStatus statusField; + + private bool statusFieldSpecified; + + /// The unique ID of the role. This value is readonly and is assigned by Google. + /// Roles that are created by Google will have negative IDs. /// - NIELSEN_IN_TARGET_PERCENT_AUDIENCE_SHARE = 419, - /// The relative unique audience in the demographic compared with its share of the - /// overall population.

Corresponds to "Audience index" in the Ad Manager UI. - /// Compatible with the "Reach" report type.

+ [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public long id { + get { + return this.idField; + } + set { + this.idField = value; + this.idSpecified = true; + } + } + + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool idSpecified { + get { + return this.idFieldSpecified; + } + set { + this.idFieldSpecified = value; + } + } + + /// The name of the role. This value is readonly and is assigned by Google. /// - NIELSEN_AUDIENCE_INDEX = 409, - /// The relative unique audience for all in-target demographics compared with its - /// share of the overall population.

Compatible with the "Reach" report type.

+ [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public string name { + get { + return this.nameField; + } + set { + this.nameField = value; + } + } + + /// The description of the role. This value is readonly and is assigned by Google. /// - NIELSEN_IN_TARGET_AUDIENCE_INDEX = 420, - /// The relative impressions per person in the demographic compared with the - /// impressions per person for the overall population.

Corresponds to - /// "Impressions index" in the Ad Manager UI. Compatible with the "Reach" report - /// type.

+ [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public string description { + get { + return this.descriptionField; + } + set { + this.descriptionField = value; + } + } + + /// The status of the Role. This field is read-only and can have + /// the values RoleStatus#ACTIVE (default) or RoleStatus#INACTIVE, which determines the + /// visibility of the role in the UI. /// - NIELSEN_IMPRESSIONS_INDEX = 410, - /// The relative impressions per person for all in-target demographics compared with - /// the impressions per person for the overall population.

Compatible with the - /// "Reach" report type.

+ [System.Xml.Serialization.XmlElementAttribute(Order = 3)] + public RoleStatus status { + get { + return this.statusField; + } + set { + this.statusField = value; + this.statusSpecified = true; + } + } + + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool statusSpecified { + get { + return this.statusFieldSpecified; + } + set { + this.statusFieldSpecified = value; + } + } + } + + + /// Represents the status of the role, weather the role is active or inactive. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum RoleStatus { + /// The status of an active role. (i.e. visible in the UI) /// - NIELSEN_IN_TARGET_IMPRESSIONS_INDEX = 421, - /// The adjusted in-target impression share used for pacing and billing, based on - /// the GRP pacing preferences indicated in your line item settings.

Corresponds - /// to "Processed Nielsen in-target rate" in the Ad Manager UI. Compatible with the - /// "Reach" report type.

+ ACTIVE = 0, + /// The status of an inactive role. (i.e. hidden in the UI) /// - NIELSEN_IN_TARGET_RATIO = 667, - /// Number of impressions delivered.

Corresponds to "Impressions" in the Ad - /// Manager UI. Compatible with the "Ad Connector" report type.

+ INACTIVE = 1, + /// The value returned if the actual value is not exposed by the requested API + /// version. /// - DP_IMPRESSIONS = 503, - /// Number of clicks delivered

Corresponds to "Clicks" in the Ad Manager UI. - /// Compatible with the "Ad Connector" report type.

+ UNKNOWN = 2, + } + + + /// Captures a page of User objects + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class UserPage { + private int totalResultSetSizeField; + + private bool totalResultSetSizeFieldSpecified; + + private int startIndexField; + + private bool startIndexFieldSpecified; + + private User[] resultsField; + + /// The size of the total result set to which this page belongs. /// - DP_CLICKS = 507, - /// Number of requests.

Corresponds to "Queries" in the Ad Manager UI. Compatible - /// with the "Ad Connector" report type.

+ [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public int totalResultSetSize { + get { + return this.totalResultSetSizeField; + } + set { + this.totalResultSetSizeField = value; + this.totalResultSetSizeSpecified = true; + } + } + + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool totalResultSetSizeSpecified { + get { + return this.totalResultSetSizeFieldSpecified; + } + set { + this.totalResultSetSizeFieldSpecified = value; + } + } + + /// The absolute index in the total result set on which this page begins. /// - DP_QUERIES = 504, - /// Number of requests where a buyer was matched with the Ad request.

Corresponds - /// to "Matched queries" in the Ad Manager UI. Compatible with the "Ad Connector" - /// report type.

+ [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public int startIndex { + get { + return this.startIndexField; + } + set { + this.startIndexField = value; + this.startIndexSpecified = true; + } + } + + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool startIndexSpecified { + get { + return this.startIndexFieldSpecified; + } + set { + this.startIndexFieldSpecified = value; + } + } + + /// The collection of users contained within this page. /// - DP_MATCHED_QUERIES = 505, - /// The revenue earned, calculated in publisher currency, for the ads delivered. - ///

Corresponds to "Cost" in the Ad Manager UI. Compatible with the "Ad - /// Connector" report type.

+ [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] + public User[] results { + get { + return this.resultsField; + } + set { + this.resultsField = value; + } + } + } + + + /// Represents the actions that can be performed on User objects. + /// + [System.Xml.Serialization.XmlIncludeAttribute(typeof(DeactivateUsers))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ActivateUsers))] + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public abstract partial class UserAction { + } + + + /// The action used for deactivating User objects. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class DeactivateUsers : UserAction { + } + + + /// The action used for activating User objects. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ActivateUsers : UserAction { + } + + + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + public interface UserServiceInterfaceChannel : Google.Api.Ads.AdManager.v202411.UserServiceInterface, System.ServiceModel.IClientChannel + { + } + + + /// Provides operations for creating, updating and retrieving User objects.

A user is assigned one of several different + /// roles. Each Role type has a unique ID that is used to + /// identify that role in an organization. Role types and their IDs can be retrieved + /// by invoking #getAllRoles.

+ ///
+ [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + public partial class UserService : AdManagerSoapClient, IUserService { + /// Creates a new instance of the class. /// - DP_COST = 506, - /// The average estimated cost-per-thousand-impressions earned from ads delivered. - ///

Corresponds to "Total Average eCPM" in the Ad Manager UI. Compatible with the - /// "Ad Connector" report type.

+ public UserService() { + } + + /// Creates a new instance of the class. /// - DP_ECPM = 570, - /// Total number of impressions delivered by the ad server that were eligible to - /// measure viewability.

Corresponds to "Total Active View eligible impressions" - /// in the Ad Manager UI. Compatible with the "Ad Connector" report type.

+ public UserService(string endpointConfigurationName) + : base(endpointConfigurationName) { + } + + /// Creates a new instance of the class. /// - DP_ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS = 518, - /// The number of impressions delivered that were sampled and measurable by active - /// view.

Corresponds to "Total Active View measurable impressions" in the Ad - /// Manager UI. Compatible with the "Ad Connector" report type.

+ public UserService(string endpointConfigurationName, string remoteAddress) + : base(endpointConfigurationName, remoteAddress) { + } + + /// Creates a new instance of the class. /// - DP_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS = 519, - /// The number of impressions delivered that were viewed on the user's screen. - ///

Corresponds to "Total Active View viewable impressions" in the Ad Manager UI. - /// Compatible with the "Ad Connector" report type.

+ public UserService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) + : base(endpointConfigurationName, remoteAddress) { + } + + /// Creates a new instance of the class. /// - DP_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS = 520, - /// The percentage of impressions delivered that were measurable by active view (out - /// of all the impressions sampled for active view).

Corresponds to "Total Active - /// View % measurable impressions" in the Ad Manager UI. Compatible with the "Ad - /// Connector" report type.

+ public UserService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) + : base(binding, remoteAddress) { + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + Wrappers.UserService.createUsersResponse Google.Api.Ads.AdManager.v202411.UserServiceInterface.createUsers(Wrappers.UserService.createUsersRequest request) { + return base.Channel.createUsers(request); + } + + /// Creates new User objects. /// - DP_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE = 521, - /// The percentage of impressions delivered thar were viewed on the user's screen - /// (out of the impressions measurable by active view).

Corresponds to "Total - /// Active View % viewable impressions" in the Ad Manager UI. Compatible with the - /// "Ad Connector" report type.

+ public virtual Google.Api.Ads.AdManager.v202411.User[] createUsers(Google.Api.Ads.AdManager.v202411.User[] users) { + Wrappers.UserService.createUsersRequest inValue = new Wrappers.UserService.createUsersRequest(); + inValue.users = users; + Wrappers.UserService.createUsersResponse retVal = ((Google.Api.Ads.AdManager.v202411.UserServiceInterface)(this)).createUsers(inValue); + return retVal.rval; + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202411.UserServiceInterface.createUsersAsync(Wrappers.UserService.createUsersRequest request) { + return base.Channel.createUsersAsync(request); + } + + public virtual System.Threading.Tasks.Task createUsersAsync(Google.Api.Ads.AdManager.v202411.User[] users) { + Wrappers.UserService.createUsersRequest inValue = new Wrappers.UserService.createUsersRequest(); + inValue.users = users; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202411.UserServiceInterface)(this)).createUsersAsync(inValue)).Result.rval); + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + Wrappers.UserService.getAllRolesResponse Google.Api.Ads.AdManager.v202411.UserServiceInterface.getAllRoles(Wrappers.UserService.getAllRolesRequest request) { + return base.Channel.getAllRoles(request); + } + + /// Returns the Role objects that are defined for the users of + /// the network. /// - DP_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE = 522, - /// The host impressions in the partner management.

Corresponds to "Host - /// impressions" in the Ad Manager UI. Compatible with the "Historical" report - /// type.

+ public virtual Google.Api.Ads.AdManager.v202411.Role[] getAllRoles() { + Wrappers.UserService.getAllRolesRequest inValue = new Wrappers.UserService.getAllRolesRequest(); + Wrappers.UserService.getAllRolesResponse retVal = ((Google.Api.Ads.AdManager.v202411.UserServiceInterface)(this)).getAllRoles(inValue); + return retVal.rval; + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202411.UserServiceInterface.getAllRolesAsync(Wrappers.UserService.getAllRolesRequest request) { + return base.Channel.getAllRolesAsync(request); + } + + public virtual System.Threading.Tasks.Task getAllRolesAsync() { + Wrappers.UserService.getAllRolesRequest inValue = new Wrappers.UserService.getAllRolesRequest(); + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202411.UserServiceInterface)(this)).getAllRolesAsync(inValue)).Result.rval); + } + + /// Returns the current User. /// - PARTNER_MANAGEMENT_HOST_IMPRESSIONS = 392, - /// The host clicks in the partner management.

Corresponds to "Host clicks" in - /// the Ad Manager UI. Compatible with the "Historical" report type.

+ public virtual Google.Api.Ads.AdManager.v202411.User getCurrentUser() { + return base.Channel.getCurrentUser(); + } + + public virtual System.Threading.Tasks.Task getCurrentUserAsync() { + return base.Channel.getCurrentUserAsync(); + } + + /// Gets a UserPage of User objects that + /// satisfy the given Statement#query. The following + /// fields are supported for filtering: + /// + /// + /// + /// + /// + ///
PQL + /// Property Object Property
email User#email
id User#id
name User#name
roleId User#roleId
rolename User#roleName
status ACTIVE if User#isActive is true; INACTIVE + /// otherwise
///
- PARTNER_MANAGEMENT_HOST_CLICKS = 393, - /// The host CTR in the partner management.

Corresponds to "Host CTR" in the Ad - /// Manager UI. Compatible with the "Historical" report type.

+ public virtual Google.Api.Ads.AdManager.v202411.UserPage getUsersByStatement(Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.getUsersByStatement(filterStatement); + } + + public virtual System.Threading.Tasks.Task getUsersByStatementAsync(Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.getUsersByStatementAsync(filterStatement); + } + + /// Performs actions on User objects that match the given Statement#query. /// - PARTNER_MANAGEMENT_HOST_CTR = 394, - /// The unfilled impressions in the partner management.

Corresponds to "Unfilled - /// impressions" in the Ad Manager UI. Compatible with any of the following report - /// types: Historical, Partner finance.

+ public virtual Google.Api.Ads.AdManager.v202411.UpdateResult performUserAction(Google.Api.Ads.AdManager.v202411.UserAction userAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.performUserAction(userAction, filterStatement); + } + + public virtual System.Threading.Tasks.Task performUserActionAsync(Google.Api.Ads.AdManager.v202411.UserAction userAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.performUserActionAsync(userAction, filterStatement); + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + Wrappers.UserService.updateUsersResponse Google.Api.Ads.AdManager.v202411.UserServiceInterface.updateUsers(Wrappers.UserService.updateUsersRequest request) { + return base.Channel.updateUsers(request); + } + + /// Updates the specified User objects. /// - PARTNER_MANAGEMENT_UNFILLED_IMPRESSIONS = 399, - /// The partner impressions in the partner management.

Corresponds to "Partner - /// impressions" in the Ad Manager UI. Compatible with the "Historical" report - /// type.

+ public virtual Google.Api.Ads.AdManager.v202411.User[] updateUsers(Google.Api.Ads.AdManager.v202411.User[] users) { + Wrappers.UserService.updateUsersRequest inValue = new Wrappers.UserService.updateUsersRequest(); + inValue.users = users; + Wrappers.UserService.updateUsersResponse retVal = ((Google.Api.Ads.AdManager.v202411.UserServiceInterface)(this)).updateUsers(inValue); + return retVal.rval; + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202411.UserServiceInterface.updateUsersAsync(Wrappers.UserService.updateUsersRequest request) { + return base.Channel.updateUsersAsync(request); + } + + public virtual System.Threading.Tasks.Task updateUsersAsync(Google.Api.Ads.AdManager.v202411.User[] users) { + Wrappers.UserService.updateUsersRequest inValue = new Wrappers.UserService.updateUsersRequest(); + inValue.users = users; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202411.UserServiceInterface)(this)).updateUsersAsync(inValue)).Result.rval); + } + } + namespace Wrappers.UserTeamAssociationService + { + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "createUserTeamAssociations", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class createUserTeamAssociationsRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("userTeamAssociations")] + public Google.Api.Ads.AdManager.v202411.UserTeamAssociation[] userTeamAssociations; + + /// Creates a new instance of the class. + public createUserTeamAssociationsRequest() { + } + + /// Creates a new instance of the class. + public createUserTeamAssociationsRequest(Google.Api.Ads.AdManager.v202411.UserTeamAssociation[] userTeamAssociations) { + this.userTeamAssociations = userTeamAssociations; + } + } + + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "createUserTeamAssociationsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class createUserTeamAssociationsResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("rval")] + public Google.Api.Ads.AdManager.v202411.UserTeamAssociation[] rval; + + /// Creates a new instance of the class. + public createUserTeamAssociationsResponse() { + } + + /// Creates a new instance of the class. + public createUserTeamAssociationsResponse(Google.Api.Ads.AdManager.v202411.UserTeamAssociation[] rval) { + this.rval = rval; + } + } + + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "updateUserTeamAssociations", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class updateUserTeamAssociationsRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("userTeamAssociations")] + public Google.Api.Ads.AdManager.v202411.UserTeamAssociation[] userTeamAssociations; + + /// Creates a new instance of the class. + public updateUserTeamAssociationsRequest() { + } + + /// Creates a new instance of the class. + public updateUserTeamAssociationsRequest(Google.Api.Ads.AdManager.v202411.UserTeamAssociation[] userTeamAssociations) { + this.userTeamAssociations = userTeamAssociations; + } + } + + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "updateUserTeamAssociationsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class updateUserTeamAssociationsResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("rval")] + public Google.Api.Ads.AdManager.v202411.UserTeamAssociation[] rval; + + /// Creates a new instance of the class. + public updateUserTeamAssociationsResponse() { + } + + /// Creates a new instance of the class. + public updateUserTeamAssociationsResponse(Google.Api.Ads.AdManager.v202411.UserTeamAssociation[] rval) { + this.rval = rval; + } + } + } + /// UserRecordTeamAssociation represents the association between a UserRecord and a Team. + /// + [System.Xml.Serialization.XmlIncludeAttribute(typeof(UserTeamAssociation))] + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public abstract partial class UserRecordTeamAssociation { + private long teamIdField; + + private bool teamIdFieldSpecified; + + private TeamAccessType overriddenTeamAccessTypeField; + + private bool overriddenTeamAccessTypeFieldSpecified; + + private TeamAccessType defaultTeamAccessTypeField; + + private bool defaultTeamAccessTypeFieldSpecified; + + /// The Team#id of the team. /// - PARTNER_MANAGEMENT_PARTNER_IMPRESSIONS = 493, - /// The partner clicks in the partner management.

Corresponds to "Partner clicks" - /// in the Ad Manager UI. Compatible with the "Historical" report type.

+ [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public long teamId { + get { + return this.teamIdField; + } + set { + this.teamIdField = value; + this.teamIdSpecified = true; + } + } + + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool teamIdSpecified { + get { + return this.teamIdFieldSpecified; + } + set { + this.teamIdFieldSpecified = value; + } + } + + /// The overridden team access type. This field is null if team access + /// type is not overridden. /// - PARTNER_MANAGEMENT_PARTNER_CLICKS = 494, - /// The partner CTR in the partner management.

Corresponds to "Partner CTR" in - /// the Ad Manager UI. Compatible with the "Historical" report type.

+ [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public TeamAccessType overriddenTeamAccessType { + get { + return this.overriddenTeamAccessTypeField; + } + set { + this.overriddenTeamAccessTypeField = value; + this.overriddenTeamAccessTypeSpecified = true; + } + } + + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool overriddenTeamAccessTypeSpecified { + get { + return this.overriddenTeamAccessTypeFieldSpecified; + } + set { + this.overriddenTeamAccessTypeFieldSpecified = value; + } + } + + /// The default team access type Team#teamAccessType. This field is read-only and + /// is populated by Google. /// - PARTNER_MANAGEMENT_PARTNER_CTR = 495, - /// The gross revenue in the partner management.

Corresponds to "Gross revenue" - /// in the Ad Manager UI. Compatible with the "Historical" report type.

+ [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public TeamAccessType defaultTeamAccessType { + get { + return this.defaultTeamAccessTypeField; + } + set { + this.defaultTeamAccessTypeField = value; + this.defaultTeamAccessTypeSpecified = true; + } + } + + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool defaultTeamAccessTypeSpecified { + get { + return this.defaultTeamAccessTypeFieldSpecified; + } + set { + this.defaultTeamAccessTypeFieldSpecified = value; + } + } + } + + + /// UserTeamAssociation associates a User with a Team to provide the user access to the entities that belong to + /// the team. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class UserTeamAssociation : UserRecordTeamAssociation { + private long userIdField; + + private bool userIdFieldSpecified; + + /// Refers to the User#id. /// - PARTNER_MANAGEMENT_GROSS_REVENUE = 496, - /// Monthly host impressions for partner finance reports.

Corresponds to "Host - /// impressions" in the Ad Manager UI. Compatible with the "Partner finance" report - /// type.

+ [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public long userId { + get { + return this.userIdField; + } + set { + this.userIdField = value; + this.userIdSpecified = true; + } + } + + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool userIdSpecified { + get { + return this.userIdFieldSpecified; + } + set { + this.userIdFieldSpecified = value; + } + } + } + + + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", ConfigurationName = "Google.Api.Ads.AdManager.v202411.UserTeamAssociationServiceInterface")] + public interface UserTeamAssociationServiceInterface + { + // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UserRecordTeamAssociation))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Wrappers.UserTeamAssociationService.createUserTeamAssociationsResponse createUserTeamAssociations(Wrappers.UserTeamAssociationService.createUserTeamAssociationsRequest request); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + System.Threading.Tasks.Task createUserTeamAssociationsAsync(Wrappers.UserTeamAssociationService.createUserTeamAssociationsRequest request); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UserRecordTeamAssociation))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v202411.UserTeamAssociationPage getUserTeamAssociationsByStatement(Google.Api.Ads.AdManager.v202411.Statement filterStatement); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task getUserTeamAssociationsByStatementAsync(Google.Api.Ads.AdManager.v202411.Statement filterStatement); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UserRecordTeamAssociation))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v202411.UpdateResult performUserTeamAssociationAction(Google.Api.Ads.AdManager.v202411.UserTeamAssociationAction userTeamAssociationAction, Google.Api.Ads.AdManager.v202411.Statement statement); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task performUserTeamAssociationActionAsync(Google.Api.Ads.AdManager.v202411.UserTeamAssociationAction userTeamAssociationAction, Google.Api.Ads.AdManager.v202411.Statement statement); + + // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UserRecordTeamAssociation))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Wrappers.UserTeamAssociationService.updateUserTeamAssociationsResponse updateUserTeamAssociations(Wrappers.UserTeamAssociationService.updateUserTeamAssociationsRequest request); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + System.Threading.Tasks.Task updateUserTeamAssociationsAsync(Wrappers.UserTeamAssociationService.updateUserTeamAssociationsRequest request); + } + + + /// Captures a page of UserTeamAssociation + /// objects. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class UserTeamAssociationPage { + private int totalResultSetSizeField; + + private bool totalResultSetSizeFieldSpecified; + + private int startIndexField; + + private bool startIndexFieldSpecified; + + private UserTeamAssociation[] resultsField; + + /// The size of the total result set to which this page belongs. /// - PARTNER_FINANCE_HOST_IMPRESSIONS = 497, - /// Monthly host revenue for partner finance reports.

Corresponds to "Host - /// revenue" in the Ad Manager UI. Compatible with the "Partner finance" report - /// type.

+ [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public int totalResultSetSize { + get { + return this.totalResultSetSizeField; + } + set { + this.totalResultSetSizeField = value; + this.totalResultSetSizeSpecified = true; + } + } + + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool totalResultSetSizeSpecified { + get { + return this.totalResultSetSizeFieldSpecified; + } + set { + this.totalResultSetSizeFieldSpecified = value; + } + } + + /// The absolute index in the total result set on which this page begins. /// - PARTNER_FINANCE_HOST_REVENUE = 498, - /// Monthly host eCPM for partner finance reports.

Corresponds to "Host eCPM" in - /// the Ad Manager UI. Compatible with the "Partner finance" report type.

+ [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public int startIndex { + get { + return this.startIndexField; + } + set { + this.startIndexField = value; + this.startIndexSpecified = true; + } + } + + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool startIndexSpecified { + get { + return this.startIndexFieldSpecified; + } + set { + this.startIndexFieldSpecified = value; + } + } + + /// The collection of user team associations contained within this page. /// - PARTNER_FINANCE_HOST_ECPM = 499, - /// Monthly partner revenue for partner finance reports.

Corresponds to "Partner - /// revenue" in the Ad Manager UI. Compatible with the "Partner finance" report - /// type.

+ [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] + public UserTeamAssociation[] results { + get { + return this.resultsField; + } + set { + this.resultsField = value; + } + } + } + + + /// Represents the actions that can be performed on UserTeamAssociation objects. + /// + [System.Xml.Serialization.XmlIncludeAttribute(typeof(DeleteUserTeamAssociations))] + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public abstract partial class UserTeamAssociationAction { + } + + + /// Action to delete the association between a User and a Team. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class DeleteUserTeamAssociations : UserTeamAssociationAction { + } + + + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + public interface UserTeamAssociationServiceInterfaceChannel : Google.Api.Ads.AdManager.v202411.UserTeamAssociationServiceInterface, System.ServiceModel.IClientChannel + { + } + + + /// Provides methods for creating, updating, and retrieving UserTeamAssociation objects. + ///

UserTeamAssociation objects are used to add users to teams in order to define + /// access to entities such as companies, inventory and orders and to override the + /// team's access type to orders for a user.

+ ///
+ [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + public partial class UserTeamAssociationService : AdManagerSoapClient, IUserTeamAssociationService { + /// Creates a new instance of the + /// class. + public UserTeamAssociationService() { + } + + /// Creates a new instance of the + /// class. + public UserTeamAssociationService(string endpointConfigurationName) + : base(endpointConfigurationName) { + } + + /// Creates a new instance of the + /// class. + public UserTeamAssociationService(string endpointConfigurationName, string remoteAddress) + : base(endpointConfigurationName, remoteAddress) { + } + + /// Creates a new instance of the + /// class. + public UserTeamAssociationService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) + : base(endpointConfigurationName, remoteAddress) { + } + + /// Creates a new instance of the + /// class. + public UserTeamAssociationService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) + : base(binding, remoteAddress) { + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + Wrappers.UserTeamAssociationService.createUserTeamAssociationsResponse Google.Api.Ads.AdManager.v202411.UserTeamAssociationServiceInterface.createUserTeamAssociations(Wrappers.UserTeamAssociationService.createUserTeamAssociationsRequest request) { + return base.Channel.createUserTeamAssociations(request); + } + + /// Creates new UserTeamAssociation objects. /// - PARTNER_FINANCE_PARTNER_REVENUE = 500, - /// Monthly partner eCPM for partner finance reports.

Corresponds to "Partner - /// eCPM" in the Ad Manager UI. Compatible with the "Partner finance" report - /// type.

+ public virtual Google.Api.Ads.AdManager.v202411.UserTeamAssociation[] createUserTeamAssociations(Google.Api.Ads.AdManager.v202411.UserTeamAssociation[] userTeamAssociations) { + Wrappers.UserTeamAssociationService.createUserTeamAssociationsRequest inValue = new Wrappers.UserTeamAssociationService.createUserTeamAssociationsRequest(); + inValue.userTeamAssociations = userTeamAssociations; + Wrappers.UserTeamAssociationService.createUserTeamAssociationsResponse retVal = ((Google.Api.Ads.AdManager.v202411.UserTeamAssociationServiceInterface)(this)).createUserTeamAssociations(inValue); + return retVal.rval; + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202411.UserTeamAssociationServiceInterface.createUserTeamAssociationsAsync(Wrappers.UserTeamAssociationService.createUserTeamAssociationsRequest request) { + return base.Channel.createUserTeamAssociationsAsync(request); + } + + public virtual System.Threading.Tasks.Task createUserTeamAssociationsAsync(Google.Api.Ads.AdManager.v202411.UserTeamAssociation[] userTeamAssociations) { + Wrappers.UserTeamAssociationService.createUserTeamAssociationsRequest inValue = new Wrappers.UserTeamAssociationService.createUserTeamAssociationsRequest(); + inValue.userTeamAssociations = userTeamAssociations; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202411.UserTeamAssociationServiceInterface)(this)).createUserTeamAssociationsAsync(inValue)).Result.rval); + } + + /// Gets a UserTeamAssociationPage of UserTeamAssociation objects that satisfy the + /// given Statement#query. The following fields are + /// supported for filtering: + /// + ///
PQL Property Object Property
userId UserTeamAssociation#userId
teamId UserTeamAssociation#teamId
///
- PARTNER_FINANCE_PARTNER_ECPM = 501, - /// Monthly gross revenue for partner finance reports.

Corresponds to "Gross - /// revenue" in the Ad Manager UI. Compatible with the "Partner finance" report - /// type.

+ public virtual Google.Api.Ads.AdManager.v202411.UserTeamAssociationPage getUserTeamAssociationsByStatement(Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.getUserTeamAssociationsByStatement(filterStatement); + } + + public virtual System.Threading.Tasks.Task getUserTeamAssociationsByStatementAsync(Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.getUserTeamAssociationsByStatementAsync(filterStatement); + } + + /// Performs actions on UserTeamAssociation + /// objects that match the given Statement#query. /// - PARTNER_FINANCE_GROSS_REVENUE = 502, - /// The ratio of the number of impressions for which the creative load time is - /// between 0 and 500 ms to the total number of impressions that have ad latency - /// data, represented as a percentage.

Corresponds to "Creative load time 0 - - /// 500ms (%)" in the Ad Manager UI. Compatible with the "Ad speed" report type.

+ public virtual Google.Api.Ads.AdManager.v202411.UpdateResult performUserTeamAssociationAction(Google.Api.Ads.AdManager.v202411.UserTeamAssociationAction userTeamAssociationAction, Google.Api.Ads.AdManager.v202411.Statement statement) { + return base.Channel.performUserTeamAssociationAction(userTeamAssociationAction, statement); + } + + public virtual System.Threading.Tasks.Task performUserTeamAssociationActionAsync(Google.Api.Ads.AdManager.v202411.UserTeamAssociationAction userTeamAssociationAction, Google.Api.Ads.AdManager.v202411.Statement statement) { + return base.Channel.performUserTeamAssociationActionAsync(userTeamAssociationAction, statement); + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + Wrappers.UserTeamAssociationService.updateUserTeamAssociationsResponse Google.Api.Ads.AdManager.v202411.UserTeamAssociationServiceInterface.updateUserTeamAssociations(Wrappers.UserTeamAssociationService.updateUserTeamAssociationsRequest request) { + return base.Channel.updateUserTeamAssociations(request); + } + + /// Updates the specified UserTeamAssociation + /// objects. /// - CREATIVE_LOAD_TIME_0_500_MS_PERCENT = 573, - /// The ratio of the number of impressions for which the creative load time is - /// between 500 milliseconds and 1 second to the total number of impressions that - /// have ad latency data, represented as a percentage.

Corresponds to "Creative - /// load time 500ms - 1s (%)" in the Ad Manager UI. Compatible with the "Ad speed" - /// report type.

+ public virtual Google.Api.Ads.AdManager.v202411.UserTeamAssociation[] updateUserTeamAssociations(Google.Api.Ads.AdManager.v202411.UserTeamAssociation[] userTeamAssociations) { + Wrappers.UserTeamAssociationService.updateUserTeamAssociationsRequest inValue = new Wrappers.UserTeamAssociationService.updateUserTeamAssociationsRequest(); + inValue.userTeamAssociations = userTeamAssociations; + Wrappers.UserTeamAssociationService.updateUserTeamAssociationsResponse retVal = ((Google.Api.Ads.AdManager.v202411.UserTeamAssociationServiceInterface)(this)).updateUserTeamAssociations(inValue); + return retVal.rval; + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202411.UserTeamAssociationServiceInterface.updateUserTeamAssociationsAsync(Wrappers.UserTeamAssociationService.updateUserTeamAssociationsRequest request) { + return base.Channel.updateUserTeamAssociationsAsync(request); + } + + public virtual System.Threading.Tasks.Task updateUserTeamAssociationsAsync(Google.Api.Ads.AdManager.v202411.UserTeamAssociation[] userTeamAssociations) { + Wrappers.UserTeamAssociationService.updateUserTeamAssociationsRequest inValue = new Wrappers.UserTeamAssociationService.updateUserTeamAssociationsRequest(); + inValue.userTeamAssociations = userTeamAssociations; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202411.UserTeamAssociationServiceInterface)(this)).updateUserTeamAssociationsAsync(inValue)).Result.rval); + } + } + namespace Wrappers.NativeStyleService + { + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "createNativeStyles", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class createNativeStylesRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("nativeStyles")] + public Google.Api.Ads.AdManager.v202411.NativeStyle[] nativeStyles; + + /// Creates a new instance of the + /// class. + public createNativeStylesRequest() { + } + + /// Creates a new instance of the + /// class. + public createNativeStylesRequest(Google.Api.Ads.AdManager.v202411.NativeStyle[] nativeStyles) { + this.nativeStyles = nativeStyles; + } + } + + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "createNativeStylesResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class createNativeStylesResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("rval")] + public Google.Api.Ads.AdManager.v202411.NativeStyle[] rval; + + /// Creates a new instance of the + /// class. + public createNativeStylesResponse() { + } + + /// Creates a new instance of the + /// class. + public createNativeStylesResponse(Google.Api.Ads.AdManager.v202411.NativeStyle[] rval) { + this.rval = rval; + } + } + + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "updateNativeStyles", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class updateNativeStylesRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("nativeStyles")] + public Google.Api.Ads.AdManager.v202411.NativeStyle[] nativeStyles; + + /// Creates a new instance of the + /// class. + public updateNativeStylesRequest() { + } + + /// Creates a new instance of the + /// class. + public updateNativeStylesRequest(Google.Api.Ads.AdManager.v202411.NativeStyle[] nativeStyles) { + this.nativeStyles = nativeStyles; + } + } + + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "updateNativeStylesResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class updateNativeStylesResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("rval")] + public Google.Api.Ads.AdManager.v202411.NativeStyle[] rval; + + /// Creates a new instance of the + /// class. + public updateNativeStylesResponse() { + } + + /// Creates a new instance of the + /// class. + public updateNativeStylesResponse(Google.Api.Ads.AdManager.v202411.NativeStyle[] rval) { + this.rval = rval; + } + } + } + /// Used to define the look and feel of native ads, for both web and apps. Native + /// styles determine how native creatives look for a segment of inventory. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class NativeStyle { + private long idField; + + private bool idFieldSpecified; + + private string nameField; + + private string htmlSnippetField; + + private string cssSnippetField; + + private long creativeTemplateIdField; + + private bool creativeTemplateIdFieldSpecified; + + private bool isFluidField; + + private bool isFluidFieldSpecified; + + private Targeting targetingField; + + private NativeStyleStatus statusField; + + private bool statusFieldSpecified; + + private Size sizeField; + + /// Uniquely identifies the NativeStyle. This attribute is read-only + /// and is assigned by Google when a native style is created. /// - CREATIVE_LOAD_TIME_500_1000_MS_PERCENT = 574, - /// The ratio of the number of impressions for which the creative load time is - /// between 1 second and 2 seconds to the total number of impressions that have ad - /// latency data, represented as a percentage.

Corresponds to "Creative load time - /// 1s - 2s (%)" in the Ad Manager UI. Compatible with the "Ad speed" report - /// type.

+ [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public long id { + get { + return this.idField; + } + set { + this.idField = value; + this.idSpecified = true; + } + } + + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool idSpecified { + get { + return this.idFieldSpecified; + } + set { + this.idFieldSpecified = value; + } + } + + /// The name of the native style. This attribute is required and has a maximum + /// length of 255 characters. /// - CREATIVE_LOAD_TIME_1_2_S_PERCENT = 575, - /// The ratio of the number of impressions for which the creative load time is - /// between 2 seconds and 4 seconds to the total number of impressions that have ad - /// latency data, represented as a percentage.

Corresponds to "Creative load time - /// 2s - 4s (%)" in the Ad Manager UI. Compatible with the "Ad speed" report - /// type.

+ [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public string name { + get { + return this.nameField; + } + set { + this.nameField = value; + } + } + + /// The HTML snippet of the native style with placeholders for the associated + /// variables. This attribute is required. /// - CREATIVE_LOAD_TIME_2_4_S_PERCENT = 576, - /// The ratio of the number of impressions for which the creative load time is - /// between 4 seconds and 8 seconds to the total number of impressions that have ad - /// latency data, represented as a percentage.

Corresponds to "Creative load time - /// 4s - 8s (%)" in the Ad Manager UI. Compatible with the "Ad speed" report - /// type.

+ [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public string htmlSnippet { + get { + return this.htmlSnippetField; + } + set { + this.htmlSnippetField = value; + } + } + + /// The CSS snippet of the native style, with placeholders for the associated + /// variables. This attribute is required. /// - CREATIVE_LOAD_TIME_4_8_S_PERCENT = 577, - /// The ratio of the number of impressions for which the creative load time is - /// greater than 8 seconds to the total number of impressions that have ad latency - /// data, represented as a percentage.

Corresponds to "Creative load time >8s - /// (%)" in the Ad Manager UI. Compatible with the "Ad speed" report type.

+ [System.Xml.Serialization.XmlElementAttribute(Order = 3)] + public string cssSnippet { + get { + return this.cssSnippetField; + } + set { + this.cssSnippetField = value; + } + } + + /// The creative template ID this native style associated with. This attribute is + /// required on creation and is read-only afterwards. /// - CREATIVE_LOAD_TIME_GREATER_THAN_8_S_PERCENT = 578, - /// The ratio of the number of impressions which are unviewed because the ad slot - /// never entered the viewport to the total number of impressions that have ad - /// latency data, represented as a percentage.

Corresponds to "Slot never entered - /// viewport (%)" in the Ad Manager UI. Compatible with the "Ad speed" report - /// type.

+ [System.Xml.Serialization.XmlElementAttribute(Order = 4)] + public long creativeTemplateId { + get { + return this.creativeTemplateIdField; + } + set { + this.creativeTemplateIdField = value; + this.creativeTemplateIdSpecified = true; + } + } + + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool creativeTemplateIdSpecified { + get { + return this.creativeTemplateIdFieldSpecified; + } + set { + this.creativeTemplateIdFieldSpecified = value; + } + } + + /// Whether this is a fluid size native style. If true, this must be + /// used with 1x1 size. /// - UNVIEWED_REASON_SLOT_NEVER_ENTERED_VIEWPORT_PERCENT = 579, - /// The ratio of the number of impressions which are unviewed because the user - /// scrolled before the ad filled to the total number of impressions that have ad - /// latency data, represented as a percentage.

Corresponds to "User scrolled - /// before ad filled (%)" in the Ad Manager UI. Compatible with the "Ad speed" - /// report type.

+ [System.Xml.Serialization.XmlElementAttribute(Order = 5)] + public bool isFluid { + get { + return this.isFluidField; + } + set { + this.isFluidField = value; + this.isFluidSpecified = true; + } + } + + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool isFluidSpecified { + get { + return this.isFluidFieldSpecified; + } + set { + this.isFluidFieldSpecified = value; + } + } + + /// The targeting criteria for this native style. Only ad unit and key-value + /// targeting are supported at this time. /// - UNVIEWED_REASON_USER_SCROLLED_BEFORE_AD_FILLED_PERCENT = 580, - /// The ratio of the number of impressions which are unviewed because the user - /// scrolled or navigated before the ad loaded to the total number of impressions - /// that have ad latency data, represented as a percentage.

Corresponds to "User - /// scrolled/navigated before ad loaded (%)" in the Ad Manager UI. Compatible with - /// the "Ad speed" report type.

+ [System.Xml.Serialization.XmlElementAttribute(Order = 6)] + public Targeting targeting { + get { + return this.targetingField; + } + set { + this.targetingField = value; + } + } + + /// The status of the native style. This attribute is read-only. /// - UNVIEWED_REASON_USER_SCROLLED_BEFORE_AD_LOADED_PERCENT = 581, - /// The ratio of the number of impressions which are unviewed because the user - /// scrolled or navigated before one second to the total number of impressions that - /// have ad latency data, represented as a percentage.

Corresponds to "User - /// scrolled/navigated before 1 second (%)" in the Ad Manager UI. Compatible with - /// the "Ad speed" report type.

+ [System.Xml.Serialization.XmlElementAttribute(Order = 7)] + public NativeStyleStatus status { + get { + return this.statusField; + } + set { + this.statusField = value; + this.statusSpecified = true; + } + } + + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool statusSpecified { + get { + return this.statusFieldSpecified; + } + set { + this.statusFieldSpecified = value; + } + } + + /// The size of the native style. This attribute is required. /// - UNVIEWED_REASON_USER_SCROLLED_BEFORE_1_S_PERCENT = 582, - /// The ratio of the number of impressions which are unviewed because the of another - /// non-viewable-impression reason to the total number of impressions that have ad - /// latency data, represented as a percentage.

Corresponds to "Other non-viewable - /// impression reasons (%)" in the Ad Manager UI. Compatible with the "Ad speed" - /// report type.

+ [System.Xml.Serialization.XmlElementAttribute(Order = 8)] + public Size size { + get { + return this.sizeField; + } + set { + this.sizeField = value; + } + } + } + + + /// Describes status of the native style. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum NativeStyleStatus { + /// The native style is active. Active native styles are used in ad serving. /// - UNVIEWED_REASON_OTHER_PERCENT = 583, - /// The ratio of the number of impressions for which the DOM load to tag log time is - /// between 0 and 500 milliseconds to the total number of impressions that have ad - /// latency data, represented as a percentage.

Corresponds to "Page navigation to - /// tag loaded time 0 - 500ms (%)" in the Ad Manager UI. Compatible with the "Ad - /// speed" report type.

+ ACTIVE = 0, + /// The native style is archived. Archived native styles are not visible in the UI + /// and not used in ad serving. /// - PAGE_NAVIGATION_TO_TAG_LOADED_TIME_0_500_MS_PERCENT = 584, - /// The ratio of the number of impressions for which the DOM load to tag log time is - /// between 500 milliseconds and 1 second to the total number of impressions that - /// have ad latency data, represented as a percentage.

Corresponds to "Page - /// navigation to tag loaded time 500ms - 1s (%)" in the Ad Manager UI. Compatible - /// with the "Ad speed" report type.

+ ARCHIVED = 1, + /// The native style is inactive. Inactive native styles are not used in ad serving, + /// but visible in the UI. /// - PAGE_NAVIGATION_TO_TAG_LOADED_TIME_500_1000_MS_PERCENT = 585, - /// The ratio of the number of impressions for which the DOM load to tag log time is - /// between 1 second and 2 seconds to the total number of impressions that have ad - /// latency data, represented as a percentage.

Corresponds to "Page navigation to - /// tag loaded time 1s - 2s (%)" in the Ad Manager UI. Compatible with the "Ad - /// speed" report type.

+ INACTIVE = 3, + /// The value returned if the actual value is not exposed by the requested API + /// version. /// - PAGE_NAVIGATION_TO_TAG_LOADED_TIME_1_2_S_PERCENT = 586, - /// The ratio of the number of impressions for which the DOM load to tag log time is - /// between 2 seconds and 4 seconds to the total number of impressions that have ad - /// latency data, represented as a percentage.

Corresponds to "Page navigation to - /// tag loaded time 2s - 4s (%)" in the Ad Manager UI. Compatible with the "Ad - /// speed" report type.

+ UNKNOWN = 2, + } + + + /// Errors for native styles. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class NativeStyleError : ApiError { + private NativeStyleErrorReason reasonField; + + private bool reasonFieldSpecified; + + /// The error reason represented by an enum. /// - PAGE_NAVIGATION_TO_TAG_LOADED_TIME_2_4_S_PERCENT = 587, - /// The ratio of the number of impressions for which the DOM load to tag log time is - /// between 4 seconds and 8 seconds to the total number of impressions that have ad - /// latency data, represented as a percentage.

Corresponds to "Page navigation to - /// tag loaded time 4s - 8s (%)" in the Ad Manager UI. Compatible with the "Ad - /// speed" report type.

+ [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public NativeStyleErrorReason reason { + get { + return this.reasonField; + } + set { + this.reasonField = value; + this.reasonSpecified = true; + } + } + + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool reasonSpecified { + get { + return this.reasonFieldSpecified; + } + set { + this.reasonFieldSpecified = value; + } + } + } + + + /// The reasons for the target error. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "NativeStyleError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum NativeStyleErrorReason { + /// Native styles can only be created under active creative templates. /// - PAGE_NAVIGATION_TO_TAG_LOADED_TIME_4_8_S_PERCENT = 588, - /// The ratio of the number of impressions for which the DOM load to tag log time is - /// greater than 8 seconds to the total number of impressions that have ad latency - /// data, represented as a percentage.

Corresponds to "Page navigation to tag - /// loaded time >8s (%)" in the Ad Manager UI. Compatible with the "Ad speed" - /// report type.

+ ACTIVE_CREATIVE_TEMPLATE_REQUIRED = 2, + /// Targeting expressions on the NativeStyle can only have custom criteria targeting + /// with CustomTargetingValue.MatchType#EXACT. /// - PAGE_NAVIGATION_TO_TAG_LOADED_TIME_GREATER_THAN_8_S_PERCENT = 589, - /// The ratio of the number of impressions for which the DOM load to first ad - /// request time is between 0 and 500 milliseconds to the total number of - /// impressions that have ad latency data, represented as a percentage. - ///

Corresponds to "Page navigation to first ad request time 0 - 500ms (%)" in - /// the Ad Manager UI. Compatible with the "Ad speed" report type.

+ INVALID_CUSTOM_TARGETING_MATCH_TYPE = 4, + /// Native styles only allows inclusion of inventory units. /// - PAGE_NAVIGATION_TO_FIRST_AD_REQUEST_TIME_0_500_MS_PERCENT = 590, - /// The ratio of the number of impressions for which the DOM load to first ad - /// request time is between 500 milliseconds and 1 second to the total number of - /// impressions that have ad latency data, represented as a percentage. - ///

Corresponds to "Page navigation to first ad request time 500ms - 1s (%)" in - /// the Ad Manager UI. Compatible with the "Ad speed" report type.

+ INVALID_INVENTORY_TARTGETING_TYPE = 6, + /// The status of a native style cannot be null. /// - PAGE_NAVIGATION_TO_FIRST_AD_REQUEST_TIME_500_1000_MS_PERCENT = 591, - /// The ratio of the number of impressions for which the DOM load to first ad - /// request time is between 1 second and 2 seconds to the total number of - /// impressions that have ad latency data, represented as a percentage. - ///

Corresponds to "Page navigation to first ad request time 1s - 2s (%)" in the - /// Ad Manager UI. Compatible with the "Ad speed" report type.

+ INVALID_STATUS = 10, + /// Targeting expressions on the native style can only have inventory targeting + /// and/or custom targeting. /// - PAGE_NAVIGATION_TO_FIRST_AD_REQUEST_TIME_1_2_S_PERCENT = 592, - /// The ratio of the number of impressions for which the DOM load to first ad - /// request time is between 2 seconds and 4 seconds to the total number of - /// impressions that have ad latency data, represented as a percentage. - ///

Corresponds to "Page navigation to first ad request time 2s - 4s (%)" in the - /// Ad Manager UI. Compatible with the "Ad speed" report type.

+ INVALID_TARGETING_TYPE = 5, + /// Native styles can only be created under native creative templates. /// - PAGE_NAVIGATION_TO_FIRST_AD_REQUEST_TIME_2_4_S_PERCENT = 593, - /// The ratio of the number of impressions for which the DOM load to first ad - /// request time is between 4 seconds and 8 seconds to the total number of - /// impressions that have ad latency data, represented as a percentage. - ///

Corresponds to "Page navigation to first ad request time 4s - 8s (%)" in the - /// Ad Manager UI. Compatible with the "Ad speed" report type.

+ NATIVE_CREATIVE_TEMPLATE_REQUIRED = 1, + /// Targeting expressions on native styles can have a maximum of 20 key-value pairs. /// - PAGE_NAVIGATION_TO_FIRST_AD_REQUEST_TIME_4_8_S_PERCENT = 594, - /// The ratio of the number of impressions for which the DOM load to first ad - /// request time is greater than 8 seconds to the total number of impressions that - /// have ad latency data, represented as a percentage.

Corresponds to "Page - /// navigation to first ad request time >8s (%)" in the Ad Manager UI. Compatible - /// with the "Ad speed" report type.

+ TOO_MANY_CUSTOM_TARGETING_KEY_VALUES = 9, + /// Native styles must have an HTML snippet. /// - PAGE_NAVIGATION_TO_FIRST_AD_REQUEST_TIME_GREATER_THAN_8_S_PERCENT = 595, - /// The ratio of the number of impressions for which the tag load to first ad - /// request time is between 0 and 500 milliseconds to the total number of - /// impressions that have ad latency data, represented as a percentage. - ///

Corresponds to "Tag loaded to first ad request time 0 - 500ms (%)" in the Ad - /// Manager UI. Compatible with the "Ad speed" report type.

+ UNIQUE_SNIPPET_REQUIRED = 3, + /// The macro referenced in the snippet is not valid. /// - TAG_LOAD_TO_FIRST_AD_REQUEST_TIME_0_500_MS_PERCENT = 596, - /// The ratio of the number of impressions for which the tag load to first ad - /// request time is between 500 milliseconds and 1 second to the total number of - /// impressions that have ad latency data, represented as a percentage. - ///

Corresponds to "Tag loaded to first ad request time 500ms - 1s (%)" in the Ad - /// Manager UI. Compatible with the "Ad speed" report type.

+ UNRECOGNIZED_MACRO = 7, + /// The snippet of the native style contains a placeholder which is not defined as a + /// variable on the creative template of this native style. /// - TAG_LOAD_TO_FIRST_AD_REQUEST_TIME_500_1000_MS_PERCENT = 597, - /// The ratio of the number of impressions for which the tag load to first ad - /// request time is between 1 second and 2 seconds to the total number of - /// impressions that have ad latency data, represented as a percentage. - ///

Corresponds to "Tag loaded to first ad request time 1s - 2s (%)" in the Ad - /// Manager UI. Compatible with the "Ad speed" report type.

+ UNRECOGNIZED_PLACEHOLDER = 0, + /// The value returned if the actual value is not exposed by the requested API + /// version. /// - TAG_LOAD_TO_FIRST_AD_REQUEST_TIME_1_2_S_PERCENT = 598, - /// The ratio of the number of impressions for which the tag load to first ad - /// request time is between 2 seconds and 4 seconds to the total number of - /// impressions that have ad latency data, represented as a percentage. - ///

Corresponds to "Tag loaded to first ad request time 2s - 4s (%)" in the Ad - /// Manager UI. Compatible with the "Ad speed" report type.

+ UNKNOWN = 8, + } + + + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", ConfigurationName = "Google.Api.Ads.AdManager.v202411.NativeStyleServiceInterface")] + public interface NativeStyleServiceInterface + { + // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Wrappers.NativeStyleService.createNativeStylesResponse createNativeStyles(Wrappers.NativeStyleService.createNativeStylesRequest request); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + System.Threading.Tasks.Task createNativeStylesAsync(Wrappers.NativeStyleService.createNativeStylesRequest request); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v202411.NativeStylePage getNativeStylesByStatement(Google.Api.Ads.AdManager.v202411.Statement filterStatement); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task getNativeStylesByStatementAsync(Google.Api.Ads.AdManager.v202411.Statement filterStatement); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v202411.UpdateResult performNativeStyleAction(Google.Api.Ads.AdManager.v202411.NativeStyleAction nativeStyleAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task performNativeStyleActionAsync(Google.Api.Ads.AdManager.v202411.NativeStyleAction nativeStyleAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement); + + // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Wrappers.NativeStyleService.updateNativeStylesResponse updateNativeStyles(Wrappers.NativeStyleService.updateNativeStylesRequest request); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + System.Threading.Tasks.Task updateNativeStylesAsync(Wrappers.NativeStyleService.updateNativeStylesRequest request); + } + + + /// Captures a page of NativeStyle objects. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class NativeStylePage { + private int totalResultSetSizeField; + + private bool totalResultSetSizeFieldSpecified; + + private int startIndexField; + + private bool startIndexFieldSpecified; + + private NativeStyle[] resultsField; + + /// The size of the total result set to which this page belongs. /// - TAG_LOAD_TO_FIRST_AD_REQUEST_TIME_2_4_S_PERCENT = 599, - /// The ratio of the number of impressions for which the tag load to first ad - /// request time is between 4 seconds and 8 seconds to the total number of - /// impressions that have ad latency data, represented as a percentage. - ///

Corresponds to "Tag loaded to first ad request time 4s - 8s (%)" in the Ad - /// Manager UI. Compatible with the "Ad speed" report type.

+ [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public int totalResultSetSize { + get { + return this.totalResultSetSizeField; + } + set { + this.totalResultSetSizeField = value; + this.totalResultSetSizeSpecified = true; + } + } + + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool totalResultSetSizeSpecified { + get { + return this.totalResultSetSizeFieldSpecified; + } + set { + this.totalResultSetSizeFieldSpecified = value; + } + } + + /// The absolute index in the total result set on which this page begins. /// - TAG_LOAD_TO_FIRST_AD_REQUEST_TIME_4_8_S_PERCENT = 600, - /// The ratio of the number of impressions for which the tag load to first ad - /// request time is greater than 8 seconds to the total number of impressions that - /// have ad latency data, represented as a percentage.

Corresponds to "Tag loaded - /// to first ad request time >8s (%)" in the Ad Manager UI. Compatible with the - /// "Ad speed" report type.

+ [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public int startIndex { + get { + return this.startIndexField; + } + set { + this.startIndexField = value; + this.startIndexSpecified = true; + } + } + + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool startIndexSpecified { + get { + return this.startIndexFieldSpecified; + } + set { + this.startIndexFieldSpecified = value; + } + } + + /// The collection of native styles contained within this page. /// - TAG_LOAD_TO_FIRST_AD_REQUEST_TIME_GREATER_THAN_8_S_PERCENT = 601, + [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] + public NativeStyle[] results { + get { + return this.resultsField; + } + set { + this.resultsField = value; + } + } } - /// DimensionAttribute provides additional fields associated with a Dimension. It can only be selected with its corresponding - /// Dimension. For example, DimensionAttribute#ORDER_PO_NUMBER can only be used if the ReportQuery#dimensions contains Dimension#ORDER_NAME. + /// Represents an action that can be performed on native styles. /// + [System.Xml.Serialization.XmlIncludeAttribute(typeof(DeactivateNativeStyles))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ArchiveNativeStyles))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ActivateNativeStyles))] [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum DimensionAttribute { - /// Represents LineItem#effectiveAppliedLabels as a - /// comma separated list of Label#name for Dimension#LINE_ITEM_NAME.

Corresponds to - /// "Line item labels" in the Ad Manager UI. Compatible with any of the following - /// report types: Historical, Reach.

- ///
- LINE_ITEM_LABELS = 0, - /// Represents LineItem#effectiveAppliedLabels as a - /// comma separated list of Label#id for Dimension#LINE_ITEM_NAME.

Compatible with - /// any of the following report types: Historical, Reach.

- ///
- LINE_ITEM_LABEL_IDS = 1, - /// Generated as true for Dimension#LINE_ITEM_NAME which is eligible - /// for optimization, false otherwise. Can be used for filtering. - ///

Corresponds to "Optimizable" in the Ad Manager UI. Compatible with any of the - /// following report types: Historical, Reach.

- ///
- LINE_ITEM_OPTIMIZABLE = 2, - /// Indicates the progress made for the delivery of the Dimension#LINE_ITEM_NAME. - /// - /// - ///
Progress Definition
100% The LineItem is on track to deliver in - /// full as per LineItem#unitsBought.
> 100% The LineItem is on track to - /// overdeliver.
< 100% The LineItem is on track to underdeliver.
N/A The LineItem does not have any quantity - /// goals, or there is insufficient information about the LineItem.

Corresponds to "Delivery - /// Indicator" in the Ad Manager UI. Compatible with any of the following report - /// types: Historical, Reach, Real-time video.

- ///
- LINE_ITEM_DELIVERY_INDICATOR = 139, - /// Represents LineItem#deliveryRateType for - /// Dimension#LINE_ITEM_NAME.

Corresponds - /// to "Delivery pacing" in the Ad Manager UI. Compatible with any of the following - /// report types: Historical, Future sell-through, Reach, Ad speed, Real-time - /// video.

- ///
- LINE_ITEM_DELIVERY_PACING = 3, - /// Represents LineItem#frequencyCaps as a - /// comma separated list of " FrequencyCap#maxImpressions impressions - /// per/every FrequencyCap#numTimeUnits FrequencyCap#timeUnit" (e.g. "10 impressions every day,500 - /// impressions per lifetime") for Dimension#LINE_ITEM_NAME.

Corresponds to - /// "Frequency cap" in the Ad Manager UI. Compatible with any of the following - /// report types: Historical, Reach.

- ///
- LINE_ITEM_FREQUENCY_CAP = 4, - /// Represents the monthly reconciliation status of the line item for Dimension#LINE_ITEM_NAME and Dimension#MONTH_YEAR.

Corresponds to "Line - /// item reconciliation status" in the Ad Manager UI. Compatible with any of the - /// following report types: Historical, Future sell-through, Reach.

+ [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public abstract partial class NativeStyleAction { + } + + + /// Action to deactivate native styles. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class DeactivateNativeStyles : NativeStyleAction { + } + + + /// Action to archive native styles. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ArchiveNativeStyles : NativeStyleAction { + } + + + /// Action to activate native styles. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ActivateNativeStyles : NativeStyleAction { + } + + + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + public interface NativeStyleServiceInterfaceChannel : Google.Api.Ads.AdManager.v202411.NativeStyleServiceInterface, System.ServiceModel.IClientChannel + { + } + + + /// Provides methods for creating and retrieving NativeStyle objects. + /// + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + public partial class NativeStyleService : AdManagerSoapClient, INativeStyleService { + /// Creates a new instance of the class. /// - LINE_ITEM_RECONCILIATION_STATUS = 119, - /// Represents the monthly last reconciliation date time of the line item for Dimension#LINE_ITEM_NAME and Dimension#MONTH_YEAR.

Corresponds to "Line - /// item last reconciliation time" in the Ad Manager UI. Compatible with any of the - /// following report types: Historical, Future sell-through, Reach.

+ public NativeStyleService() { + } + + /// Creates a new instance of the class. /// - LINE_ITEM_LAST_RECONCILIATION_DATE_TIME = 120, - /// Represents Company#externalId for Dimension#ADVERTISER_NAME.

Corresponds - /// to "External advertiser ID" in the Ad Manager UI. Compatible with any of the - /// following report types: Historical, Reach.

+ public NativeStyleService(string endpointConfigurationName) + : base(endpointConfigurationName) { + } + + /// Creates a new instance of the class. /// - ADVERTISER_EXTERNAL_ID = 5, - /// Represents Company#type for Dimension#ADVERTISER_NAME. Can be used for - /// filtering.

Corresponds to "Advertiser type" in the Ad Manager UI. Compatible - /// with any of the following report types: Historical, Future sell-through, Reach, - /// Ad speed.

+ public NativeStyleService(string endpointConfigurationName, string remoteAddress) + : base(endpointConfigurationName, remoteAddress) { + } + + /// Creates a new instance of the class. /// - ADVERTISER_TYPE = 121, - /// Represents Company#creditStatus for Dimension#ADVERTISER_NAME. Can be used for - /// filtering.

Corresponds to "Advertiser credit status" in the Ad Manager UI. - /// Compatible with any of the following report types: Historical, Future - /// sell-through, Reach, Ad speed.

+ public NativeStyleService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) + : base(endpointConfigurationName, remoteAddress) { + } + + /// Creates a new instance of the class. /// - ADVERTISER_CREDIT_STATUS = 122, - /// Represents name and email address in the form of name(email) of primary contact - /// for Dimension#ADVERTISER_NAME.

Corresponds to "Advertiser - /// primary contact" in the Ad Manager UI. Compatible with any of the following - /// report types: Historical, Reach.

+ public NativeStyleService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) + : base(binding, remoteAddress) { + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + Wrappers.NativeStyleService.createNativeStylesResponse Google.Api.Ads.AdManager.v202411.NativeStyleServiceInterface.createNativeStyles(Wrappers.NativeStyleService.createNativeStylesRequest request) { + return base.Channel.createNativeStyles(request); + } + + /// Creates new NativeStyle objects. /// - ADVERTISER_PRIMARY_CONTACT = 6, - /// Represents the start date (in YYYY-MM-DD format) for Dimension#ORDER_NAME. Can be used for filtering. - ///

Corresponds to "Order start date" in the Ad Manager UI. Compatible with any - /// of the following report types: Historical, Future sell-through, Reach, Ad - /// speed.

+ public virtual Google.Api.Ads.AdManager.v202411.NativeStyle[] createNativeStyles(Google.Api.Ads.AdManager.v202411.NativeStyle[] nativeStyles) { + Wrappers.NativeStyleService.createNativeStylesRequest inValue = new Wrappers.NativeStyleService.createNativeStylesRequest(); + inValue.nativeStyles = nativeStyles; + Wrappers.NativeStyleService.createNativeStylesResponse retVal = ((Google.Api.Ads.AdManager.v202411.NativeStyleServiceInterface)(this)).createNativeStyles(inValue); + return retVal.rval; + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202411.NativeStyleServiceInterface.createNativeStylesAsync(Wrappers.NativeStyleService.createNativeStylesRequest request) { + return base.Channel.createNativeStylesAsync(request); + } + + public virtual System.Threading.Tasks.Task createNativeStylesAsync(Google.Api.Ads.AdManager.v202411.NativeStyle[] nativeStyles) { + Wrappers.NativeStyleService.createNativeStylesRequest inValue = new Wrappers.NativeStyleService.createNativeStylesRequest(); + inValue.nativeStyles = nativeStyles; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202411.NativeStyleServiceInterface)(this)).createNativeStylesAsync(inValue)).Result.rval); + } + + /// Gets a NativeStylePage of NativeStyle objects that satisfy the given Statement. The following fields are supported for + /// filtering: + ///
PQL Property Object + /// Property
id NativeStyle#id
name NativeStyle#name
///
- ORDER_START_DATE_TIME = 7, - /// Represents the end date (in YYYY-MM-DD format) for Dimension#ORDER_NAME. Can be used for filtering. - ///

Corresponds to "Order end date" in the Ad Manager UI. Compatible with any of - /// the following report types: Historical, Future sell-through, Reach, Ad - /// speed.

+ public virtual Google.Api.Ads.AdManager.v202411.NativeStylePage getNativeStylesByStatement(Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.getNativeStylesByStatement(filterStatement); + } + + public virtual System.Threading.Tasks.Task getNativeStylesByStatementAsync(Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.getNativeStylesByStatementAsync(filterStatement); + } + + /// Performs actions on native styles that match the given + /// Statement. /// - ORDER_END_DATE_TIME = 8, - /// Represents Order#externalOrderId for Dimension#ORDER_NAME.

Corresponds to - /// "External order ID" in the Ad Manager UI. Compatible with any of the following - /// report types: Historical, Reach.

+ public virtual Google.Api.Ads.AdManager.v202411.UpdateResult performNativeStyleAction(Google.Api.Ads.AdManager.v202411.NativeStyleAction nativeStyleAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.performNativeStyleAction(nativeStyleAction, filterStatement); + } + + public virtual System.Threading.Tasks.Task performNativeStyleActionAsync(Google.Api.Ads.AdManager.v202411.NativeStyleAction nativeStyleAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.performNativeStyleActionAsync(nativeStyleAction, filterStatement); + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + Wrappers.NativeStyleService.updateNativeStylesResponse Google.Api.Ads.AdManager.v202411.NativeStyleServiceInterface.updateNativeStyles(Wrappers.NativeStyleService.updateNativeStylesRequest request) { + return base.Channel.updateNativeStyles(request); + } + + /// Updates the specified NativeStyle objects. /// - ORDER_EXTERNAL_ID = 9, - /// Represents Order#poNumber for Dimension#ORDER_NAME. Can be used for filtering. - ///

Corresponds to "Order PO number" in the Ad Manager UI. Compatible with any of - /// the following report types: Historical, Future sell-through, Reach, Ad - /// speed.

+ public virtual Google.Api.Ads.AdManager.v202411.NativeStyle[] updateNativeStyles(Google.Api.Ads.AdManager.v202411.NativeStyle[] nativeStyles) { + Wrappers.NativeStyleService.updateNativeStylesRequest inValue = new Wrappers.NativeStyleService.updateNativeStylesRequest(); + inValue.nativeStyles = nativeStyles; + Wrappers.NativeStyleService.updateNativeStylesResponse retVal = ((Google.Api.Ads.AdManager.v202411.NativeStyleServiceInterface)(this)).updateNativeStyles(inValue); + return retVal.rval; + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202411.NativeStyleServiceInterface.updateNativeStylesAsync(Wrappers.NativeStyleService.updateNativeStylesRequest request) { + return base.Channel.updateNativeStylesAsync(request); + } + + public virtual System.Threading.Tasks.Task updateNativeStylesAsync(Google.Api.Ads.AdManager.v202411.NativeStyle[] nativeStyles) { + Wrappers.NativeStyleService.updateNativeStylesRequest inValue = new Wrappers.NativeStyleService.updateNativeStylesRequest(); + inValue.nativeStyles = nativeStyles; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202411.NativeStyleServiceInterface)(this)).updateNativeStylesAsync(inValue)).Result.rval); + } + } + namespace Wrappers.AdjustmentService + { + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "createForecastAdjustments", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class createForecastAdjustmentsRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("forecastAdjustments")] + public Google.Api.Ads.AdManager.v202411.ForecastAdjustment[] forecastAdjustments; + + /// Creates a new instance of the class. + public createForecastAdjustmentsRequest() { + } + + /// Creates a new instance of the class. + public createForecastAdjustmentsRequest(Google.Api.Ads.AdManager.v202411.ForecastAdjustment[] forecastAdjustments) { + this.forecastAdjustments = forecastAdjustments; + } + } + + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "createForecastAdjustmentsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class createForecastAdjustmentsResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("rval")] + public Google.Api.Ads.AdManager.v202411.ForecastAdjustment[] rval; + + /// Creates a new instance of the class. + public createForecastAdjustmentsResponse() { + } + + /// Creates a new instance of the class. + public createForecastAdjustmentsResponse(Google.Api.Ads.AdManager.v202411.ForecastAdjustment[] rval) { + this.rval = rval; + } + } + + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "createTrafficForecastSegments", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class createTrafficForecastSegmentsRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("trafficForecastSegments")] + public Google.Api.Ads.AdManager.v202411.TrafficForecastSegment[] trafficForecastSegments; + + /// Creates a new instance of the class. + public createTrafficForecastSegmentsRequest() { + } + + /// Creates a new instance of the class. + public createTrafficForecastSegmentsRequest(Google.Api.Ads.AdManager.v202411.TrafficForecastSegment[] trafficForecastSegments) { + this.trafficForecastSegments = trafficForecastSegments; + } + } + + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "createTrafficForecastSegmentsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class createTrafficForecastSegmentsResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("rval")] + public Google.Api.Ads.AdManager.v202411.TrafficForecastSegment[] rval; + + /// Creates a new instance of the class. + public createTrafficForecastSegmentsResponse() { + } + + /// Creates a new instance of the class. + public createTrafficForecastSegmentsResponse(Google.Api.Ads.AdManager.v202411.TrafficForecastSegment[] rval) { + this.rval = rval; + } + } + + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "updateForecastAdjustments", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class updateForecastAdjustmentsRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("forecastAdjustments")] + public Google.Api.Ads.AdManager.v202411.ForecastAdjustment[] forecastAdjustments; + + /// Creates a new instance of the class. + public updateForecastAdjustmentsRequest() { + } + + /// Creates a new instance of the class. + public updateForecastAdjustmentsRequest(Google.Api.Ads.AdManager.v202411.ForecastAdjustment[] forecastAdjustments) { + this.forecastAdjustments = forecastAdjustments; + } + } + + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "updateForecastAdjustmentsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class updateForecastAdjustmentsResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("rval")] + public Google.Api.Ads.AdManager.v202411.ForecastAdjustment[] rval; + + /// Creates a new instance of the class. + public updateForecastAdjustmentsResponse() { + } + + /// Creates a new instance of the class. + public updateForecastAdjustmentsResponse(Google.Api.Ads.AdManager.v202411.ForecastAdjustment[] rval) { + this.rval = rval; + } + } + + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "updateTrafficForecastSegments", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class updateTrafficForecastSegmentsRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("trafficForecastSegments")] + public Google.Api.Ads.AdManager.v202411.TrafficForecastSegment[] trafficForecastSegments; + + /// Creates a new instance of the class. + public updateTrafficForecastSegmentsRequest() { + } + + /// Creates a new instance of the class. + public updateTrafficForecastSegmentsRequest(Google.Api.Ads.AdManager.v202411.TrafficForecastSegment[] trafficForecastSegments) { + this.trafficForecastSegments = trafficForecastSegments; + } + } + + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "updateTrafficForecastSegmentsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class updateTrafficForecastSegmentsResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("rval")] + public Google.Api.Ads.AdManager.v202411.TrafficForecastSegment[] rval; + + /// Creates a new instance of the class. + public updateTrafficForecastSegmentsResponse() { + } + + /// Creates a new instance of the class. + public updateTrafficForecastSegmentsResponse(Google.Api.Ads.AdManager.v202411.TrafficForecastSegment[] rval) { + this.rval = rval; + } + } + } + /// Settings to specify the volume of ad opportunities per day over the ForecastAdjustment date range based on the traffic + /// volume of a historical reference period.

The daily historical traffic for the + /// provided targeting and date range is fetched, multiplied by the provided + /// multiplier, and used as the daily expected traffic for the adjustment.

+ ///

The number of days included in the historical date range does *not* need to + /// be the same as the number of days included in the adjustment date range.

+ ///
+ [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class HistoricalBasisVolumeSettings { + private bool useParentTrafficForecastSegmentTargetingField; + + private bool useParentTrafficForecastSegmentTargetingFieldSpecified; + + private Targeting targetingField; + + private DateRange historicalDateRangeField; + + private long multiplierMilliPercentField; + + private bool multiplierMilliPercentFieldSpecified; + + /// Whether the parent traffic forecast segment targeting's or the + /// targeting's historical volume data should be used. This attribute is required. /// - ORDER_PO_NUMBER = 10, - /// Represents Order#orderIsProgrammatic for - /// Dimension#ORDER_NAME. Can be used for - /// filtering.

Corresponds to "Programmatic order" in the Ad Manager UI. - /// Compatible with any of the following report types: Historical, Reach.

+ [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public bool useParentTrafficForecastSegmentTargeting { + get { + return this.useParentTrafficForecastSegmentTargetingField; + } + set { + this.useParentTrafficForecastSegmentTargetingField = value; + this.useParentTrafficForecastSegmentTargetingSpecified = true; + } + } + + /// true, if a value is specified for , false + /// otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool useParentTrafficForecastSegmentTargetingSpecified { + get { + return this.useParentTrafficForecastSegmentTargetingFieldSpecified; + } + set { + this.useParentTrafficForecastSegmentTargetingFieldSpecified = value; + } + } + + /// The targeting criteria to use as the source of the historical volume data. This + /// field is required if is false and ignored otherwise. /// - ORDER_IS_PROGRAMMATIC = 11, - /// Represents the name of Order#agencyId for Dimension#ORDER_NAME.

Corresponds to "Agency" - /// in the Ad Manager UI. Compatible with any of the following report types: - /// Historical, Reach.

+ [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public Targeting targeting { + get { + return this.targetingField; + } + set { + this.targetingField = value; + } + } + + /// The date range to use for the historical ad opportunity volume. This attribute is required. /// - ORDER_AGENCY = 12, - /// Represents Order#agencyId for Dimension#ORDER_NAME. Can be used for filtering. - ///

Corresponds to "Agency ID" in the Ad Manager UI. Compatible with any of the - /// following report types: Historical, Reach.

+ [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public DateRange historicalDateRange { + get { + return this.historicalDateRangeField; + } + set { + this.historicalDateRangeField = value; + } + } + + /// The multiplier to apply to the historical traffic volume, expressed in + /// thousandths of a percent. For example, to set the forecasted traffic as 130% of + /// the historical traffic, this value would be 130,000. This attribute is required. /// - ORDER_AGENCY_ID = 13, - /// Represents Order#effectiveAppliedLabels as a comma - /// separated list of Label#name for Dimension#ORDER_NAME.

Corresponds to "Order - /// labels" in the Ad Manager UI. Compatible with any of the following report types: - /// Historical, Reach.

+ [System.Xml.Serialization.XmlElementAttribute(Order = 3)] + public long multiplierMilliPercent { + get { + return this.multiplierMilliPercentField; + } + set { + this.multiplierMilliPercentField = value; + this.multiplierMilliPercentSpecified = true; + } + } + + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool multiplierMilliPercentSpecified { + get { + return this.multiplierMilliPercentFieldSpecified; + } + set { + this.multiplierMilliPercentFieldSpecified = value; + } + } + } + + + /// Settings to specify a single total traffic volume that will be used as the + /// expected total future volume for a forecast adjustment.

For example, an + /// adOpportunityCount of 3,000 indicates a forecast goal for the + /// targeting specified on the parent traffic forecast segment of 3,000 ad + /// opportunities over the entire duration of the adjustment.

+ ///
+ [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class TotalVolumeSettings { + private long adOpportunityCountField; + + private bool adOpportunityCountFieldSpecified; + + /// The total ad opportunity count over the entire forecast adjustment date range. + /// This attribute is required. /// - ORDER_LABELS = 14, - /// Represents Order#effectiveAppliedLabels as a comma - /// separated list of Label#id for Dimension#ORDER_NAME.

Compatible with any of - /// the following report types: Historical, Reach.

+ [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public long adOpportunityCount { + get { + return this.adOpportunityCountField; + } + set { + this.adOpportunityCountField = value; + this.adOpportunityCountSpecified = true; + } + } + + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool adOpportunityCountSpecified { + get { + return this.adOpportunityCountFieldSpecified; + } + set { + this.adOpportunityCountFieldSpecified = value; + } + } + } + + + /// Provides information about the expected volume and composition of traffic over a + /// date range for a traffic forecast segment. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ForecastAdjustment { + private long idField; + + private bool idFieldSpecified; + + private long trafficForecastSegmentIdField; + + private bool trafficForecastSegmentIdFieldSpecified; + + private string nameField; + + private DateRange dateRangeField; + + private ForecastAdjustmentStatus statusField; + + private bool statusFieldSpecified; + + private ForecastAdjustmentVolumeType volumeTypeField; + + private bool volumeTypeFieldSpecified; + + private bool allowAdjustingForecastAboveRecommendedLimitField; + + private bool allowAdjustingForecastAboveRecommendedLimitFieldSpecified; + + private long[] dailyVolumeSettingsField; + + private TotalVolumeSettings totalVolumeSettingsField; + + private HistoricalBasisVolumeSettings historicalBasisVolumeSettingsField; + + private long[] calculatedDailyAdOpportunityCountsField; + + /// The unique ID of the ForecastAdjustment. This field is read-only. This attribute + /// is read-only. /// - ORDER_LABEL_IDS = 15, - /// The name and email address in the form of name(email) of the trafficker for Dimension#ORDER_NAME

Corresponds to "Trafficker" in the Ad - /// Manager UI. Compatible with any of the following report types: Historical, - /// Reach.

+ [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public long id { + get { + return this.idField; + } + set { + this.idField = value; + this.idSpecified = true; + } + } + + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool idSpecified { + get { + return this.idFieldSpecified; + } + set { + this.idFieldSpecified = value; + } + } + + /// The ID of the parent TrafficForecastSegment. This field is required and + /// immutable after creation. This attribute is + /// required. /// - ORDER_TRAFFICKER = 16, - /// Represents Order#traffickerId for Dimension#ORDER_NAME. Can be used for filtering. - ///

Compatible with any of the following report types: Historical, Reach.

+ [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public long trafficForecastSegmentId { + get { + return this.trafficForecastSegmentIdField; + } + set { + this.trafficForecastSegmentIdField = value; + this.trafficForecastSegmentIdSpecified = true; + } + } + + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool trafficForecastSegmentIdSpecified { + get { + return this.trafficForecastSegmentIdFieldSpecified; + } + set { + this.trafficForecastSegmentIdFieldSpecified = value; + } + } + + /// Name of the ForecastAdjustment. This attribute + /// is required. /// - ORDER_TRAFFICKER_ID = 17, - /// The names and email addresses as a comma separated list of name(email) of the Order#secondaryTraffickerIds for Dimension#ORDER_NAME.

Corresponds to - /// "Secondary traffickers" in the Ad Manager UI. Compatible with any of the - /// following report types: Historical, Reach.

+ [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public string name { + get { + return this.nameField; + } + set { + this.nameField = value; + } + } + + /// The start and end date range of the adjustment. This attribute is required. /// - ORDER_SECONDARY_TRAFFICKERS = 18, - /// The name and email address in the form of name(email) of the Order#salespersonId for Dimension#ORDER_NAME.

Corresponds to - /// "Salesperson" in the Ad Manager UI. Compatible with any of the following report - /// types: Historical, Reach.

+ [System.Xml.Serialization.XmlElementAttribute(Order = 3)] + public DateRange dateRange { + get { + return this.dateRangeField; + } + set { + this.dateRangeField = value; + } + } + + /// The status of the adjustment. Changes to this field should be made via + /// performForecastAdjustmentAction This attribute is read-only. /// - ORDER_SALESPERSON = 19, - /// The names and email addresses as a comma separated list of name(email) of the Order#secondarySalespersonIds for Dimension#ORDER_NAME.

Corresponds to - /// "Secondary salespeople" in the Ad Manager UI. Compatible with any of the - /// following report types: Historical, Reach.

+ [System.Xml.Serialization.XmlElementAttribute(Order = 4)] + public ForecastAdjustmentStatus status { + get { + return this.statusField; + } + set { + this.statusField = value; + this.statusSpecified = true; + } + } + + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool statusSpecified { + get { + return this.statusFieldSpecified; + } + set { + this.statusFieldSpecified = value; + } + } + + /// The volume type of the adjustment. This + /// attribute is required. /// - ORDER_SECONDARY_SALESPEOPLE = 20, - /// The total number of impressions delivered over the lifetime of an Dimension#ORDER_NAME.

Corresponds to "Order - /// lifetime impressions" in the Ad Manager UI. Compatible with any of the following - /// report types: Historical, Future sell-through, Reach, Ad speed.

+ [System.Xml.Serialization.XmlElementAttribute(Order = 5)] + public ForecastAdjustmentVolumeType volumeType { + get { + return this.volumeTypeField; + } + set { + this.volumeTypeField = value; + this.volumeTypeSpecified = true; + } + } + + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool volumeTypeSpecified { + get { + return this.volumeTypeFieldSpecified; + } + set { + this.volumeTypeFieldSpecified = value; + } + } + + /// Whether to allow provided volume settings to increase the current forecast by + /// more than 300%. Due to system constraints, adjusting the forecast by more than + /// 300% may have unintended consequences for other parts of the forecast.

Note + /// that this field will not persist on the adjustment itself, and will only affect + /// the current request.

///
- ORDER_LIFETIME_IMPRESSIONS = 21, - /// The total number of clicks delivered over the lifetime of an Dimension#ORDER_NAME.

Corresponds to "Order - /// lifetime clicks" in the Ad Manager UI. Compatible with any of the following - /// report types: Historical, Future sell-through, Reach, Ad speed.

+ [System.Xml.Serialization.XmlElementAttribute(Order = 6)] + public bool allowAdjustingForecastAboveRecommendedLimit { + get { + return this.allowAdjustingForecastAboveRecommendedLimitField; + } + set { + this.allowAdjustingForecastAboveRecommendedLimitField = value; + this.allowAdjustingForecastAboveRecommendedLimitSpecified = true; + } + } + + /// true, if a value is specified for , false + /// otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool allowAdjustingForecastAboveRecommendedLimitSpecified { + get { + return this.allowAdjustingForecastAboveRecommendedLimitFieldSpecified; + } + set { + this.allowAdjustingForecastAboveRecommendedLimitFieldSpecified = value; + } + } + + /// The daily number of ad opportunities for each day in the adjustment date range. + /// This field is required if volumeType is and ignored + /// othewise. /// - ORDER_LIFETIME_CLICKS = 22, - /// The cost of booking all the CPM ads for Dimension#ORDER_NAME.

Corresponds to "Booked - /// CPM" in the Ad Manager UI. Compatible with any of the following report types: - /// Historical, Reach.

+ [System.Xml.Serialization.XmlArrayAttribute(Order = 7)] + [System.Xml.Serialization.XmlArrayItemAttribute("adOpportunityCounts", IsNullable = false)] + public long[] dailyVolumeSettings { + get { + return this.dailyVolumeSettingsField; + } + set { + this.dailyVolumeSettingsField = value; + } + } + + /// The total number of ad opportunities for the entire adjustment date range. This + /// field is required if volumeType is and ignored + /// othewise. /// - ORDER_BOOKED_CPM = 23, - /// The cost of booking all the CPC ads for Dimension#ORDER_NAME.

Corresponds to "Booked - /// CPC" in the Ad Manager UI. Compatible with any of the following report types: - /// Historical, Reach.

+ [System.Xml.Serialization.XmlElementAttribute(Order = 8)] + public TotalVolumeSettings totalVolumeSettings { + get { + return this.totalVolumeSettingsField; + } + set { + this.totalVolumeSettingsField = value; + } + } + + /// The daily number of ad opportunities for each day in the adjustment date range, + /// determined by reference to the ad opportunity volume of a historical reference + /// period. This field is required if is and ignored + /// othewise. /// - ORDER_BOOKED_CPC = 24, - /// Represents the start date (in YYYY-MM-DD format) for Dimension#LINE_ITEM_NAME. Can be used for - /// filtering.

Corresponds to "Line item start date" in the Ad Manager UI. - /// Compatible with any of the following report types: Historical, Future - /// sell-through, Reach, Ad speed, Real-time video.

+ [System.Xml.Serialization.XmlElementAttribute(Order = 9)] + public HistoricalBasisVolumeSettings historicalBasisVolumeSettings { + get { + return this.historicalBasisVolumeSettingsField; + } + set { + this.historicalBasisVolumeSettingsField = value; + } + } + + /// The daily number of ad opportunities calculated to satisfy the provided volume + /// settings. Each value in this list represents the calculated ad opportunities on + /// the corresponding day of the adjustment date range. For example: for a + /// dateRange of 2001-8-15 to 2001-8-17, this field will contain one + /// value for 2001-8-15, one value for 2001-8-16, and one value for 2001-8-17. + ///

This field is read-only and is populated by Google after forecast adjustment + /// creation or update. This attribute is read-only.

///
- LINE_ITEM_START_DATE_TIME = 25, - /// Represents the end date (in YYYY-MM-DD format) for Dimension#LINE_ITEM_NAME. Can be used for - /// filtering.

Corresponds to "Line item end date" in the Ad Manager UI. - /// Compatible with any of the following report types: Historical, Future - /// sell-through, Reach, Ad speed, Real-time video.

+ [System.Xml.Serialization.XmlElementAttribute("calculatedDailyAdOpportunityCounts", Order = 10)] + public long[] calculatedDailyAdOpportunityCounts { + get { + return this.calculatedDailyAdOpportunityCountsField; + } + set { + this.calculatedDailyAdOpportunityCountsField = value; + } + } + } + + + /// The status of a forecast adjustment. Inactive adjustments are not applied during + /// forecasting. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum ForecastAdjustmentStatus { + /// The value returned if the actual value is not exposed by the requested API + /// version. /// - LINE_ITEM_END_DATE_TIME = 26, - /// Represents LineItem#externalId for Dimension#LINE_ITEM_NAME. Can be used for - /// filtering.

Corresponds to "External Line Item ID" in the Ad Manager UI. - /// Compatible with any of the following report types: Historical, Reach.

+ UNKNOWN = 0, + /// Indicates the current adjustment is active. /// - LINE_ITEM_EXTERNAL_ID = 27, - /// Represents LineItem#costType for Dimension#LINE_ITEM_NAME. Can be used for - /// filtering.

Corresponds to "Cost type" in the Ad Manager UI. Compatible with - /// any of the following report types: Historical, Future sell-through, Reach, Ad - /// speed, Real-time video.

+ ACTIVE = 1, + /// Indicates the current adjustment is inactive. /// - LINE_ITEM_COST_TYPE = 28, - /// Represents LineItem#costPerUnit for Dimension#LINE_ITEM_NAME.

Corresponds to - /// "Rate" in the Ad Manager UI. Compatible with any of the following report types: - /// Historical, Future sell-through, Reach, Ad speed, Real-time video.

+ INACTIVE = 2, + } + + + /// Options for how the volume settings of a ForecastAdjustment are defined. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum ForecastAdjustmentVolumeType { + /// The value returned if the actual value is not exposed by the requested API + /// version. /// - LINE_ITEM_COST_PER_UNIT = 29, - /// Represents the 3 letter currency code for Dimension#LINE_ITEM_NAME.

Corresponds to - /// "Currency code" in the Ad Manager UI. Compatible with any of the following - /// report types: Historical, Future sell-through, Reach, Ad speed, Real-time - /// video.

+ UNKNOWN = 0, + /// Volume is defined by a series of daily ad opportunity counts. /// - LINE_ITEM_CURRENCY_CODE = 30, - /// The total number of impressions, clicks or days that is reserved for Dimension#LINE_ITEM_NAME.

Corresponds to "Goal quantity" in the - /// Ad Manager UI. Compatible with any of the following report types: Historical, - /// Future sell-through, Reach, Ad speed, Real-time video.

+ DAILY_VOLUME = 1, + /// Volume is defined by a single total ad opportunity count. /// - LINE_ITEM_GOAL_QUANTITY = 31, - ///

Corresponds to "Nielsen Average Number Of Viewers" in the Ad Manager UI. - /// Compatible with the "Reach" report type.

+ TOTAL_VOLUME = 2, + /// Volume is defined by historical volume data. /// - LINE_ITEM_AVERAGE_NUMBER_OF_VIEWERS = 143, - /// The ratio between the goal quantity for Dimension#LINE_ITEM_NAME of LineItemType#SPONSORSHIP and the #LINE_ITEM_GOAL_QUANTITY. Represented as a - /// number between 0..100.

Corresponds to "Sponsorship goal (%)" in the Ad - /// Manager UI. Compatible with any of the following report types: Historical, - /// Reach.

+ HISTORICAL_BASIS_VOLUME = 3, + } + + + /// Lists all errors associated with traffic forecast segments. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class TrafficForecastSegmentError : ApiError { + private TrafficForecastSegmentErrorReason reasonField; + + private bool reasonFieldSpecified; + + /// The error reason represented by an enum. /// - LINE_ITEM_SPONSORSHIP_GOAL_PERCENTAGE = 32, - /// The total number of impressions delivered over the lifetime of a Dimension#LINE_ITEM_NAME.

Corresponds to "Line item lifetime - /// impressions" in the Ad Manager UI. Compatible with any of the following report - /// types: Historical, Future sell-through, Reach, Ad speed, Real-time video.

+ [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public TrafficForecastSegmentErrorReason reason { + get { + return this.reasonField; + } + set { + this.reasonField = value; + this.reasonSpecified = true; + } + } + + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool reasonSpecified { + get { + return this.reasonFieldSpecified; + } + set { + this.reasonFieldSpecified = value; + } + } + } + + + /// Error reason types for TrafficForecastSegmentError. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "TrafficForecastSegmentError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum TrafficForecastSegmentErrorReason { + /// Segment targeting cannot be changed after segment creation. /// - LINE_ITEM_LIFETIME_IMPRESSIONS = 33, - /// The total number of clicks delivered over the lifetime of a Dimension#LINE_ITEM_NAME.

Corresponds to - /// "Line item lifetime clicks" in the Ad Manager UI. Compatible with any of the - /// following report types: Historical, Future sell-through, Reach, Ad speed, - /// Real-time video.

+ CANNOT_UPDATE_TARGETING_AFTER_CREATION = 2, + /// The targeting expression that defines the segment is not unique within the given + /// network's segments.

The ID of the colliding segment will be provided in the + /// ApiError#trigger.

///
- LINE_ITEM_LIFETIME_CLICKS = 34, - /// Represents LineItem#priority for Dimension#LINE_ITEM_NAME as a value between - /// 1 and 16. Can be used for filtering.

Corresponds to "Line item priority" in - /// the Ad Manager UI. Compatible with any of the following report types: - /// Historical, Future sell-through, Reach, Ad speed, Real-time video.

+ TARGETING_NOT_UNIQUE = 0, + /// The value returned if the actual value is not exposed by the requested API + /// version. /// - LINE_ITEM_PRIORITY = 35, - /// Describes the computed LineItem status that is derived - /// from the current state of the line item.

Compatible with any of the following - /// report types: Historical, Future sell-through, Reach, Ad speed, Real-time - /// video.

+ UNKNOWN = 1, + } + + + /// Lists all errors associated with forecast adjustments. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ForecastAdjustmentError : ApiError { + private ForecastAdjustmentErrorReason reasonField; + + private bool reasonFieldSpecified; + + /// The error reason represented by an enum. /// - LINE_ITEM_COMPUTED_STATUS = 145, - /// Indicates if a creative is a regular creative or creative set. Values will be - /// 'Creative' or 'Creative set'

Compatible with the "Historical" report - /// type.

+ [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public ForecastAdjustmentErrorReason reason { + get { + return this.reasonField; + } + set { + this.reasonField = value; + this.reasonSpecified = true; + } + } + + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool reasonSpecified { + get { + return this.reasonFieldSpecified; + } + set { + this.reasonFieldSpecified = value; + } + } + } + + + /// Error reason types for ForecastAdjustmentError. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ForecastAdjustmentError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum ForecastAdjustmentErrorReason { + /// The adjustment has ad request source settings with a targeting expression that + /// contains request platform targeting that is not equal to the request platform + /// targeting of the targeting expression of the parent traffic forecast segment. /// - CREATIVE_OR_CREATIVE_SET = 36, - /// The type of creative in a creative set - master or companion.

Corresponds to - /// "Master or Companion" in the Ad Manager UI. Compatible with the "Historical" - /// report type.

+ AD_REQUEST_SOURCE_PLATFORMS_MUST_MATCH_SEGMENT_PLATFORMS = 15, + /// The adjustment has ad request historical basis settings with a source time + /// duration that is too short given the adjustment date range. /// - MASTER_COMPANION_TYPE = 37, - /// Represents the LineItem#contractedUnitsBought - /// quantity for Dimension#LINE_ITEM_NAME.

Corresponds to - /// "Contracted quantity" in the Ad Manager UI. Compatible with any of the following - /// report types: Historical, Reach.

+ AD_REQUEST_HISTORICAL_BASIS_DATE_RANGE_TOO_SHORT_RELATIVE_TO_ADJUSTMENT = 16, + /// The adjustment contains at least one daily value above the recommended limit + /// relative to the current forecast. This error will only be thrown if adjusting + /// the forecast above the recommended limit is disallowed in the current request. /// - LINE_ITEM_CONTRACTED_QUANTITY = 38, - /// Represents the LineItem#discount for Dimension#LINE_ITEM_NAME. The number is - /// either a percentage or an absolute value depending on LineItem#discountType.

Corresponds to - /// "Discount" in the Ad Manager UI. Compatible with any of the following report - /// types: Historical, Reach.

+ ADJUSTED_VALUE_ABOVE_RECOMMENDED_RELATIVE_LIMIT = 11, + /// The adjustment contains at least one daily value above the allowed maximum + /// percentage of the current forecast. /// - LINE_ITEM_DISCOUNT = 39, - /// The cost of booking for a non-CPD Dimension#LINE_ITEM_NAME.

Corresponds to - /// "Booked revenue (exclude CPD)" in the Ad Manager UI. Compatible with any of the - /// following report types: Historical, Reach.

+ ADJUSTED_VALUE_TOO_HIGH_RELATIVE_TO_FORECAST = 0, + /// The adjustment contains at least one daily value below the allowed minimum. /// - LINE_ITEM_NON_CPD_BOOKED_REVENUE = 40, - /// Represents Company#appliedLabels as a comma - /// separated list of Label#name for Dimension#ADVERTISER_NAME.

Corresponds - /// to "Advertiser labels" in the Ad Manager UI. Compatible with any of the - /// following report types: Historical, Reach.

+ ADJUSTED_VALUE_TOO_LOW = 1, + /// The adjustment contains at least one daily value below the allowed minimum + /// percentage of the current forecast. /// - ADVERTISER_LABELS = 41, - /// Represents Company#appliedLabels as a comma - /// separated list of Label#id for Dimension#ADVERTISER_NAME.

Compatible - /// with any of the following report types: Historical, Reach.

+ ADJUSTED_VALUE_TOO_LOW_RELATIVE_TO_FORECAST = 2, + /// The adjustment is attempting to adjust cross-sell inventory. /// - ADVERTISER_LABEL_IDS = 42, - /// Represents the click-through URL for Dimension#CREATIVE_NAME.

Corresponds to - /// "Click-through URL" in the Ad Manager UI. Compatible with the "Historical" - /// report type.

+ ADJUSTS_CROSS_SELL_INVENTORY = 3, + /// The date range of the adjustment overlaps the date range of another adjustment + /// within the same traffic forecast segment. /// - CREATIVE_CLICK_THROUGH_URL = 43, - /// Represents whether a creative is SSL-compliant.

Corresponds to "Creative SSL - /// scan result" in the Ad Manager UI. Compatible with the "Historical" report - /// type.

+ DATE_RANGE_OVERLAPS_ANOTHER_ADJUSTMENT = 4, + /// The adjustment's end date is after the furthest available date in the forecast. /// - CREATIVE_SSL_SCAN_RESULT = 44, - /// Represents whether a creative's SSL status was overridden.

Corresponds to - /// "Creative SSL compliance override" in the Ad Manager UI. Compatible with the - /// "Historical" report type.

+ END_DATE_AFTER_FURTHEST_AVAILABLE_FORECAST_DATE = 12, + /// A provided date range has an end date that is not on or after its start date. /// - CREATIVE_SSL_COMPLIANCE_OVERRIDE = 45, - /// Represents a LineItemCreativeAssociation#startDateTime - /// for a Dimension#LINE_ITEM_NAME and a Dimension#CREATIVE_NAME. Includes the date - /// without the time.

Corresponds to "Creative start date" in the Ad Manager UI. - /// Compatible with the "Historical" report type.

+ END_DATE_NOT_ON_OR_AFTER_START_DATE = 5, + /// A historical date range is shorter than the minimum allowed length. /// - LINE_ITEM_CREATIVE_START_DATE = 46, - /// Represents a LineItemCreativeAssociation#endDateTime - /// for a Dimension#LINE_ITEM_NAME and a Dimension#CREATIVE_NAME. Includes the date - /// without the time.

Corresponds to "Creative end date" in the Ad Manager UI. - /// Compatible with the "Historical" report type.

+ HISTORICAL_BASIS_DATE_RANGE_TOO_SHORT = 13, + /// A historical date range has an end date not in the past. /// - LINE_ITEM_CREATIVE_END_DATE = 47, - /// Represents the CmsContent#displayName - /// within the first element of Content#cmsContent for Dimension#CONTENT_NAME.

Corresponds to - /// "Content source name" in the Ad Manager UI. Compatible with any of the following - /// report types: Historical, YouTube consolidated.

+ HISTORICAL_END_DATE_NOT_IN_PAST = 6, + /// A historical date range has a start date more than the allowed number of days + /// before the adjustment end date. /// - CONTENT_CMS_NAME = 116, - /// Represents the CmsContent#cmsContentId - /// within the first element of Content#cmsContent for Dimension#CONTENT_NAME.

Corresponds to "ID - /// of the video in the content source" in the Ad Manager UI. Compatible with any of - /// the following report types: Historical, YouTube consolidated.

+ HISTORICAL_START_DATE_TOO_FAR_BEFORE_ADJUSTMENT_END_DATE = 7, + /// No volume settings were provided. /// - CONTENT_CMS_VIDEO_ID = 117, - /// Breaks down reporting data by child partner name in MCM "Manage Inventory". By - /// default, this attribute is ordered by Dimension#CHILD_NETWORK_CODE.

This - /// dimension only works for MCM "Manage Inventory" parent publishers.

- ///

Corresponds to "Child partner name" in the Ad Manager UI. Compatible with the - /// "Historical" report type.

+ NO_VOLUME_SETTINGS_PROVIDED = 8, + /// The values provided do not span the provided date range. /// - CHILD_PARTNER_NAME = 144, - /// Represents AdUnit#adUnitCode for Dimension#AD_UNIT_NAME.

Corresponds to "Ad - /// unit code" in the Ad Manager UI. Compatible with any of the following report - /// types: Historical, Future sell-through, Ad speed, Real-time video.

+ NUMBER_OF_VALUES_DOES_NOT_MATCH_DATE_RANGE = 9, + /// The adjustment provides historical basis ad request source settings, but the + /// targeting of the adjustment's parent traffic forecast segment is incompatible + /// with that use. /// - AD_UNIT_CODE = 118, + PARENT_SEGMENT_TARGETING_INCOMPATIBLE_WITH_HISTORICAL_BASIS_AD_REQUEST_SOURCE_SETTINGS = 14, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 10, } - /// Represents a period of time. + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", ConfigurationName = "Google.Api.Ads.AdManager.v202411.AdjustmentServiceInterface")] + public interface AdjustmentServiceInterface + { + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v202411.ForecastAdjustment calculateDailyAdOpportunityCounts(Google.Api.Ads.AdManager.v202411.ForecastAdjustment forecastAdjustment); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task calculateDailyAdOpportunityCountsAsync(Google.Api.Ads.AdManager.v202411.ForecastAdjustment forecastAdjustment); + + // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Wrappers.AdjustmentService.createForecastAdjustmentsResponse createForecastAdjustments(Wrappers.AdjustmentService.createForecastAdjustmentsRequest request); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + System.Threading.Tasks.Task createForecastAdjustmentsAsync(Wrappers.AdjustmentService.createForecastAdjustmentsRequest request); + + // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Wrappers.AdjustmentService.createTrafficForecastSegmentsResponse createTrafficForecastSegments(Wrappers.AdjustmentService.createTrafficForecastSegmentsRequest request); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + System.Threading.Tasks.Task createTrafficForecastSegmentsAsync(Wrappers.AdjustmentService.createTrafficForecastSegmentsRequest request); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v202411.ForecastAdjustmentPage getForecastAdjustmentsByStatement(Google.Api.Ads.AdManager.v202411.Statement filterStatement); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task getForecastAdjustmentsByStatementAsync(Google.Api.Ads.AdManager.v202411.Statement filterStatement); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v202411.TrafficForecastSegmentPage getTrafficForecastSegmentsByStatement(Google.Api.Ads.AdManager.v202411.Statement filterStatement); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task getTrafficForecastSegmentsByStatementAsync(Google.Api.Ads.AdManager.v202411.Statement filterStatement); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v202411.UpdateResult performForecastAdjustmentAction(Google.Api.Ads.AdManager.v202411.ForecastAdjustmentAction forecastAdjustmentAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task performForecastAdjustmentActionAsync(Google.Api.Ads.AdManager.v202411.ForecastAdjustmentAction forecastAdjustmentAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement); + + // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Wrappers.AdjustmentService.updateForecastAdjustmentsResponse updateForecastAdjustments(Wrappers.AdjustmentService.updateForecastAdjustmentsRequest request); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + System.Threading.Tasks.Task updateForecastAdjustmentsAsync(Wrappers.AdjustmentService.updateForecastAdjustmentsRequest request); + + // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Wrappers.AdjustmentService.updateTrafficForecastSegmentsResponse updateTrafficForecastSegments(Wrappers.AdjustmentService.updateTrafficForecastSegmentsRequest request); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + System.Threading.Tasks.Task updateTrafficForecastSegmentsAsync(Wrappers.AdjustmentService.updateTrafficForecastSegmentsRequest request); + } + + + /// An entity that defines a segment of traffic that will be adjusted or explored. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum DateRangeType { - /// The current day. - /// - TODAY = 0, - /// The previous day. - /// - YESTERDAY = 1, - /// The last week, from monday to sunday. - /// - LAST_WEEK = 2, - /// The previous month. - /// - LAST_MONTH = 3, - /// The last 3 full months. For example, if today is May 5, 2017, then LAST_3_MONTHS - /// would go from February 1 to April 30. - /// - LAST_3_MONTHS = 14, - /// This will report on the last 93 days for the following columns: Column#UNIQUE_REACH_IMPRESSIONS, Column#UNIQUE_REACH_FREQUENCY, and Column#UNIQUE_REACH. - /// - REACH_LIFETIME = 4, - /// Specifying this value will enable the user to specify ReportQuery#startDate and ReportQuery#endDate. - /// - CUSTOM_DATE = 5, - /// The next day. + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class TrafficForecastSegment { + private long idField; + + private bool idFieldSpecified; + + private string nameField; + + private Targeting targetingField; + + private int activeForecastAdjustmentCountField; + + private bool activeForecastAdjustmentCountFieldSpecified; + + private DateTime creationDateTimeField; + + /// The unique ID of the TrafficForecastSegment. This field is read-only and set by + /// Google. This attribute is read-only. /// - NEXT_DAY = 6, - /// The next ninety days. + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public long id { + get { + return this.idField; + } + set { + this.idField = value; + this.idSpecified = true; + } + } + + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool idSpecified { + get { + return this.idFieldSpecified; + } + set { + this.idFieldSpecified = value; + } + } + + /// Name of the TrafficForecastSegment. This field must be unique among all segments + /// for this network. This attribute is + /// required. /// - NEXT_90_DAYS = 7, - /// The next week, from monday to sunday. + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public string name { + get { + return this.nameField; + } + set { + this.nameField = value; + } + } + + /// The targeting that defines a segment of traffic. Targeting cannot be changed + /// after segment creation. This attribute is + /// required. /// - NEXT_WEEK = 8, - /// The next month. + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public Targeting targeting { + get { + return this.targetingField; + } + set { + this.targetingField = value; + } + } + + /// The number of active forecast adjustments associated with the + /// TrafficForecastSegment. This attribute is read-only. /// - NEXT_MONTH = 9, - /// Beginning of the next day until the end of the next month. + [System.Xml.Serialization.XmlElementAttribute(Order = 3)] + public int activeForecastAdjustmentCount { + get { + return this.activeForecastAdjustmentCountField; + } + set { + this.activeForecastAdjustmentCountField = value; + this.activeForecastAdjustmentCountSpecified = true; + } + } + + /// true, if a value is specified for , false otherwise. /// - CURRENT_AND_NEXT_MONTH = 10, - /// The next quarter. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool activeForecastAdjustmentCountSpecified { + get { + return this.activeForecastAdjustmentCountFieldSpecified; + } + set { + this.activeForecastAdjustmentCountFieldSpecified = value; + } + } + + /// The date and time that the TrafficForecastSegment was created. This attribute is + /// read-only. /// - NEXT_QUARTER = 11, - /// The next three months. + [System.Xml.Serialization.XmlElementAttribute(Order = 4)] + public DateTime creationDateTime { + get { + return this.creationDateTimeField; + } + set { + this.creationDateTimeField = value; + } + } + } + + + /// A page of ForecastAdjustmentDto objects. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ForecastAdjustmentPage { + private int totalResultSetSizeField; + + private bool totalResultSetSizeFieldSpecified; + + private int startIndexField; + + private bool startIndexFieldSpecified; + + private ForecastAdjustment[] resultsField; + + /// The size of the total result set to which this page belongs. /// - NEXT_3_MONTHS = 12, - /// The next twelve months. + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public int totalResultSetSize { + get { + return this.totalResultSetSizeField; + } + set { + this.totalResultSetSizeField = value; + this.totalResultSetSizeSpecified = true; + } + } + + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool totalResultSetSizeSpecified { + get { + return this.totalResultSetSizeFieldSpecified; + } + set { + this.totalResultSetSizeFieldSpecified = value; + } + } + + /// The absolute index in the total result set on which this page begins. /// - NEXT_12_MONTHS = 13, - } + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public int startIndex { + get { + return this.startIndexField; + } + set { + this.startIndexField = value; + this.startIndexSpecified = true; + } + } + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool startIndexSpecified { + get { + return this.startIndexFieldSpecified; + } + set { + this.startIndexFieldSpecified = value; + } + } - /// Enumerates all allowed time zones that can be used in reports. Note that some - /// time zones are only compatible with specific fields. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum TimeZoneType { - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 0, - /// Use the publisher's time zone. For Ad Manager reports, this time zone is - /// compatible with all metrics. For Ad Exchange reports, this time zone is not - /// compatible with "Bids" and "Deals" metrics.

Note: if your report - /// includes "time unit" dimensions, only the Ad Manager "time unit" dimensions are - /// compatible with this timezone, e.g.:

- ///
- PUBLISHER = 2, - /// Use the PT time zone. This time zone is only compatible with Ad Exchange metrics - /// in Historical report type.

Note: if your report includes "time unit" - /// dimensions, only the PT "time unit" dimensions are compatible with this - /// timezone, e.g.:

+ /// The collection of forecast adjustments contained within this page. /// - PACIFIC = 4, + [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] + public ForecastAdjustment[] results { + get { + return this.resultsField; + } + set { + this.resultsField = value; + } + } } - /// Represents a report job that will be run to retrieve performance and statistics - /// information about ad campaigns, networks, inventory and sales. + /// A page of TrafficForecastSegmentDto + /// objects. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ReportJob { - private long idField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class TrafficForecastSegmentPage { + private int totalResultSetSizeField; - private bool idFieldSpecified; + private bool totalResultSetSizeFieldSpecified; - private ReportQuery reportQueryField; + private int startIndexField; - /// The unique ID of the ReportJob. This value is read-only and is - /// assigned by Google. + private bool startIndexFieldSpecified; + + private TrafficForecastSegment[] resultsField; + + /// The size of the total result set to which this page belongs. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public long id { + public int totalResultSetSize { get { - return this.idField; + return this.totalResultSetSizeField; } set { - this.idField = value; - this.idSpecified = true; + this.totalResultSetSizeField = value; + this.totalResultSetSizeSpecified = true; } } - /// true, if a value is specified for , - /// false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool idSpecified { + public bool totalResultSetSizeSpecified { get { - return this.idFieldSpecified; + return this.totalResultSetSizeFieldSpecified; } set { - this.idFieldSpecified = value; + this.totalResultSetSizeFieldSpecified = value; } } - /// Holds the filtering criteria. + /// The absolute index in the total result set on which this page begins. /// [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public ReportQuery reportQuery { + public int startIndex { get { - return this.reportQueryField; + return this.startIndexField; } set { - this.reportQueryField = value; + this.startIndexField = value; + this.startIndexSpecified = true; + } + } + + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool startIndexSpecified { + get { + return this.startIndexFieldSpecified; + } + set { + this.startIndexFieldSpecified = value; + } + } + + /// The collection of traffic forecast segments contained within this page. + /// + [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] + public TrafficForecastSegment[] results { + get { + return this.resultsField; + } + set { + this.resultsField = value; } } } + /// Represents the actions that can be performed on com.google.ads.publisher.api.service.adjustment.ForecastAdjustment + /// objects. + /// + [System.Xml.Serialization.XmlIncludeAttribute(typeof(DeactivateForecastAdjustments))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ActivateForecastAdjustments))] + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public abstract partial class ForecastAdjustmentAction { + } + + + /// The action used for deactivating ForecastAdjustment objects. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class DeactivateForecastAdjustments : ForecastAdjustmentAction { + } + + + /// The action used for activating ForecastAdjustment objects. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ActivateForecastAdjustments : ForecastAdjustmentAction { + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public interface ReportServiceInterfaceChannel : Google.Api.Ads.AdManager.v202311.ReportServiceInterface, System.ServiceModel.IClientChannel + public interface AdjustmentServiceInterfaceChannel : Google.Api.Ads.AdManager.v202411.AdjustmentServiceInterface, System.ServiceModel.IClientChannel { } - /// Provides methods for executing a ReportJob and - /// retrieving performance and statistics about ad campaigns, networks, inventory - /// and sales.

Follow the steps outlined below:

Test network - /// behavior

The networks created using NetworkService#makeTestNetwork are - /// unable to provide reports that would be comparable to the production environment - /// because reports require traffic history. In the test networks, reports will - /// consistently return no data for all reports.

+ /// Provides methods for creating, updating, and retrieving ForecastAdjustments and TrafficForecastSegments.

Forecast adjustments allow editing the + /// volume and traffic composition of forecasted inventory. Traffic forecast + /// segments divide forecasted inventory into segments to which forecast adjustments + /// can be applied.

///
[System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public partial class ReportService : AdManagerSoapClient, IReportService { - /// Creates a new instance of the class. + public partial class AdjustmentService : AdManagerSoapClient, IAdjustmentService { + /// Creates a new instance of the class. /// - public ReportService() { + public AdjustmentService() { } - /// Creates a new instance of the class. + /// Creates a new instance of the class. /// - public ReportService(string endpointConfigurationName) + public AdjustmentService(string endpointConfigurationName) : base(endpointConfigurationName) { } - /// Creates a new instance of the class. + /// Creates a new instance of the class. /// - public ReportService(string endpointConfigurationName, string remoteAddress) + public AdjustmentService(string endpointConfigurationName, string remoteAddress) : base(endpointConfigurationName, remoteAddress) { } - /// Creates a new instance of the class. + /// Creates a new instance of the class. /// - public ReportService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) + public AdjustmentService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) : base(endpointConfigurationName, remoteAddress) { } - /// Creates a new instance of the class. + /// Creates a new instance of the class. /// - public ReportService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) + public AdjustmentService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) : base(binding, remoteAddress) { } - /// Returns the URL at which the report file can be downloaded.

The report will - /// be generated as a gzip archive, containing the report file itself.

+ /// Takes a prospective forecast adjustment and calculates the daily ad opportunity + /// counts corresponding to its provided volume settings. /// - public virtual string getReportDownloadURL(long reportJobId, Google.Api.Ads.AdManager.v202311.ExportFormat exportFormat) { - return base.Channel.getReportDownloadURL(reportJobId, exportFormat); + public virtual Google.Api.Ads.AdManager.v202411.ForecastAdjustment calculateDailyAdOpportunityCounts(Google.Api.Ads.AdManager.v202411.ForecastAdjustment forecastAdjustment) { + return base.Channel.calculateDailyAdOpportunityCounts(forecastAdjustment); } - public virtual System.Threading.Tasks.Task getReportDownloadURLAsync(long reportJobId, Google.Api.Ads.AdManager.v202311.ExportFormat exportFormat) { - return base.Channel.getReportDownloadURLAsync(reportJobId, exportFormat); + public virtual System.Threading.Tasks.Task calculateDailyAdOpportunityCountsAsync(Google.Api.Ads.AdManager.v202411.ForecastAdjustment forecastAdjustment) { + return base.Channel.calculateDailyAdOpportunityCountsAsync(forecastAdjustment); } - /// Returns the URL at which the report file can be downloaded, and allows for - /// customization of the downloaded report.

By default, the report will be - /// generated as a gzip archive, containing the report file itself. This can be - /// changed by setting ReportDownloadOptions#useGzipCompression - /// to false.

+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + Wrappers.AdjustmentService.createForecastAdjustmentsResponse Google.Api.Ads.AdManager.v202411.AdjustmentServiceInterface.createForecastAdjustments(Wrappers.AdjustmentService.createForecastAdjustmentsRequest request) { + return base.Channel.createForecastAdjustments(request); + } + + /// Creates new ForecastAdjustment objects. /// - public virtual string getReportDownloadUrlWithOptions(long reportJobId, Google.Api.Ads.AdManager.v202311.ReportDownloadOptions reportDownloadOptions) { - return base.Channel.getReportDownloadUrlWithOptions(reportJobId, reportDownloadOptions); + public virtual Google.Api.Ads.AdManager.v202411.ForecastAdjustment[] createForecastAdjustments(Google.Api.Ads.AdManager.v202411.ForecastAdjustment[] forecastAdjustments) { + Wrappers.AdjustmentService.createForecastAdjustmentsRequest inValue = new Wrappers.AdjustmentService.createForecastAdjustmentsRequest(); + inValue.forecastAdjustments = forecastAdjustments; + Wrappers.AdjustmentService.createForecastAdjustmentsResponse retVal = ((Google.Api.Ads.AdManager.v202411.AdjustmentServiceInterface)(this)).createForecastAdjustments(inValue); + return retVal.rval; } - public virtual System.Threading.Tasks.Task getReportDownloadUrlWithOptionsAsync(long reportJobId, Google.Api.Ads.AdManager.v202311.ReportDownloadOptions reportDownloadOptions) { - return base.Channel.getReportDownloadUrlWithOptionsAsync(reportJobId, reportDownloadOptions); + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202411.AdjustmentServiceInterface.createForecastAdjustmentsAsync(Wrappers.AdjustmentService.createForecastAdjustmentsRequest request) { + return base.Channel.createForecastAdjustmentsAsync(request); } - /// Returns the ReportJobStatus of the report job with - /// the specified ID. + public virtual System.Threading.Tasks.Task createForecastAdjustmentsAsync(Google.Api.Ads.AdManager.v202411.ForecastAdjustment[] forecastAdjustments) { + Wrappers.AdjustmentService.createForecastAdjustmentsRequest inValue = new Wrappers.AdjustmentService.createForecastAdjustmentsRequest(); + inValue.forecastAdjustments = forecastAdjustments; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202411.AdjustmentServiceInterface)(this)).createForecastAdjustmentsAsync(inValue)).Result.rval); + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + Wrappers.AdjustmentService.createTrafficForecastSegmentsResponse Google.Api.Ads.AdManager.v202411.AdjustmentServiceInterface.createTrafficForecastSegments(Wrappers.AdjustmentService.createTrafficForecastSegmentsRequest request) { + return base.Channel.createTrafficForecastSegments(request); + } + + /// Creates new TrafficForecastSegment objects. /// - public virtual Google.Api.Ads.AdManager.v202311.ReportJobStatus getReportJobStatus(long reportJobId) { - return base.Channel.getReportJobStatus(reportJobId); + public virtual Google.Api.Ads.AdManager.v202411.TrafficForecastSegment[] createTrafficForecastSegments(Google.Api.Ads.AdManager.v202411.TrafficForecastSegment[] trafficForecastSegments) { + Wrappers.AdjustmentService.createTrafficForecastSegmentsRequest inValue = new Wrappers.AdjustmentService.createTrafficForecastSegmentsRequest(); + inValue.trafficForecastSegments = trafficForecastSegments; + Wrappers.AdjustmentService.createTrafficForecastSegmentsResponse retVal = ((Google.Api.Ads.AdManager.v202411.AdjustmentServiceInterface)(this)).createTrafficForecastSegments(inValue); + return retVal.rval; } - public virtual System.Threading.Tasks.Task getReportJobStatusAsync(long reportJobId) { - return base.Channel.getReportJobStatusAsync(reportJobId); + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202411.AdjustmentServiceInterface.createTrafficForecastSegmentsAsync(Wrappers.AdjustmentService.createTrafficForecastSegmentsRequest request) { + return base.Channel.createTrafficForecastSegmentsAsync(request); } - /// Retrieves a page of the saved queries either created by or shared with the - /// current user. Each SavedQuery in the page, if it is - /// compatible with the current API version, will contain a ReportQuery object which can be optionally modified and - /// used to create a ReportJob. This can then be passed to ReportService#runReportJob. The following - /// fields are supported for filtering: - /// + public virtual System.Threading.Tasks.Task createTrafficForecastSegmentsAsync(Google.Api.Ads.AdManager.v202411.TrafficForecastSegment[] trafficForecastSegments) { + Wrappers.AdjustmentService.createTrafficForecastSegmentsRequest inValue = new Wrappers.AdjustmentService.createTrafficForecastSegmentsRequest(); + inValue.trafficForecastSegments = trafficForecastSegments; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202411.AdjustmentServiceInterface)(this)).createTrafficForecastSegmentsAsync(inValue)).Result.rval); + } + + /// Gets a ForecastAdjustmentPage of ForecastAdjustment objects that satisfy the given + /// Statement#query.

The following fields are + /// supported for filtering:

PQL - /// Property Object Property
id SavedQuery#id
+ /// ///
PQL Property Object Property
id ForecastAdjustment#id
trafficForecastSegmentId ForecastAdjustment#trafficForecastSegmentId
name SavedQuery#name
+ /// href='ForecastAdjustment#name'>ForecastAdjustment#name + /// startDate ForecastAdjustment#startDate + /// endDate ForecastAdjustment#endDate + /// status ForecastAdjustment#status + /// ///
- public virtual Google.Api.Ads.AdManager.v202311.SavedQueryPage getSavedQueriesByStatement(Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.getSavedQueriesByStatement(filterStatement); + public virtual Google.Api.Ads.AdManager.v202411.ForecastAdjustmentPage getForecastAdjustmentsByStatement(Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.getForecastAdjustmentsByStatement(filterStatement); } - public virtual System.Threading.Tasks.Task getSavedQueriesByStatementAsync(Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.getSavedQueriesByStatementAsync(filterStatement); + public virtual System.Threading.Tasks.Task getForecastAdjustmentsByStatementAsync(Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.getForecastAdjustmentsByStatementAsync(filterStatement); } - /// Initiates the execution of a ReportQuery on the - /// server.

The following fields are required:

+ /// Gets a TrafficForecastSegmentPage of TrafficForecastSegment objects that satisfy + /// the given Statement#query.

The following fields + /// are supported for filtering:

+ /// + /// + /// + ///
PQL PropertyObject Property
id TrafficForecastSegment#id
name TrafficForecastSegment#name
creationTime TrafficForecastSegment#creationTime
///
- public virtual Google.Api.Ads.AdManager.v202311.ReportJob runReportJob(Google.Api.Ads.AdManager.v202311.ReportJob reportJob) { - return base.Channel.runReportJob(reportJob); + public virtual Google.Api.Ads.AdManager.v202411.TrafficForecastSegmentPage getTrafficForecastSegmentsByStatement(Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.getTrafficForecastSegmentsByStatement(filterStatement); } - public virtual System.Threading.Tasks.Task runReportJobAsync(Google.Api.Ads.AdManager.v202311.ReportJob reportJob) { - return base.Channel.runReportJobAsync(reportJob); + public virtual System.Threading.Tasks.Task getTrafficForecastSegmentsByStatementAsync(Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.getTrafficForecastSegmentsByStatementAsync(filterStatement); + } + + /// Performs actions on ForecastAdjustment objects + /// that match the given Statement#query. + /// + public virtual Google.Api.Ads.AdManager.v202411.UpdateResult performForecastAdjustmentAction(Google.Api.Ads.AdManager.v202411.ForecastAdjustmentAction forecastAdjustmentAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.performForecastAdjustmentAction(forecastAdjustmentAction, filterStatement); + } + + public virtual System.Threading.Tasks.Task performForecastAdjustmentActionAsync(Google.Api.Ads.AdManager.v202411.ForecastAdjustmentAction forecastAdjustmentAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.performForecastAdjustmentActionAsync(forecastAdjustmentAction, filterStatement); + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + Wrappers.AdjustmentService.updateForecastAdjustmentsResponse Google.Api.Ads.AdManager.v202411.AdjustmentServiceInterface.updateForecastAdjustments(Wrappers.AdjustmentService.updateForecastAdjustmentsRequest request) { + return base.Channel.updateForecastAdjustments(request); + } + + /// Updates the specified ForecastAdjustment + /// objects. + /// + public virtual Google.Api.Ads.AdManager.v202411.ForecastAdjustment[] updateForecastAdjustments(Google.Api.Ads.AdManager.v202411.ForecastAdjustment[] forecastAdjustments) { + Wrappers.AdjustmentService.updateForecastAdjustmentsRequest inValue = new Wrappers.AdjustmentService.updateForecastAdjustmentsRequest(); + inValue.forecastAdjustments = forecastAdjustments; + Wrappers.AdjustmentService.updateForecastAdjustmentsResponse retVal = ((Google.Api.Ads.AdManager.v202411.AdjustmentServiceInterface)(this)).updateForecastAdjustments(inValue); + return retVal.rval; + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202411.AdjustmentServiceInterface.updateForecastAdjustmentsAsync(Wrappers.AdjustmentService.updateForecastAdjustmentsRequest request) { + return base.Channel.updateForecastAdjustmentsAsync(request); + } + + public virtual System.Threading.Tasks.Task updateForecastAdjustmentsAsync(Google.Api.Ads.AdManager.v202411.ForecastAdjustment[] forecastAdjustments) { + Wrappers.AdjustmentService.updateForecastAdjustmentsRequest inValue = new Wrappers.AdjustmentService.updateForecastAdjustmentsRequest(); + inValue.forecastAdjustments = forecastAdjustments; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202411.AdjustmentServiceInterface)(this)).updateForecastAdjustmentsAsync(inValue)).Result.rval); + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + Wrappers.AdjustmentService.updateTrafficForecastSegmentsResponse Google.Api.Ads.AdManager.v202411.AdjustmentServiceInterface.updateTrafficForecastSegments(Wrappers.AdjustmentService.updateTrafficForecastSegmentsRequest request) { + return base.Channel.updateTrafficForecastSegments(request); + } + + /// Updates the specified TrafficForecastSegment objects. + /// + public virtual Google.Api.Ads.AdManager.v202411.TrafficForecastSegment[] updateTrafficForecastSegments(Google.Api.Ads.AdManager.v202411.TrafficForecastSegment[] trafficForecastSegments) { + Wrappers.AdjustmentService.updateTrafficForecastSegmentsRequest inValue = new Wrappers.AdjustmentService.updateTrafficForecastSegmentsRequest(); + inValue.trafficForecastSegments = trafficForecastSegments; + Wrappers.AdjustmentService.updateTrafficForecastSegmentsResponse retVal = ((Google.Api.Ads.AdManager.v202411.AdjustmentServiceInterface)(this)).updateTrafficForecastSegments(inValue); + return retVal.rval; + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202411.AdjustmentServiceInterface.updateTrafficForecastSegmentsAsync(Wrappers.AdjustmentService.updateTrafficForecastSegmentsRequest request) { + return base.Channel.updateTrafficForecastSegmentsAsync(request); + } + + public virtual System.Threading.Tasks.Task updateTrafficForecastSegmentsAsync(Google.Api.Ads.AdManager.v202411.TrafficForecastSegment[] trafficForecastSegments) { + Wrappers.AdjustmentService.updateTrafficForecastSegmentsRequest inValue = new Wrappers.AdjustmentService.updateTrafficForecastSegmentsRequest(); + inValue.trafficForecastSegments = trafficForecastSegments; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202411.AdjustmentServiceInterface)(this)).updateTrafficForecastSegmentsAsync(inValue)).Result.rval); } } - namespace Wrappers.SuggestedAdUnitService + namespace Wrappers.CmsMetadataService { } - /// A SuggestedAdUnit represents a suggestion for a new ad unit, based - /// on an ad tag that has been served at least ten times in the past week, but which - /// does not correspond to a defined ad unit. This type is read-only. + /// Key associated with a piece of content from a publisher's CMS. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class SuggestedAdUnit { - private string idField; - - private long numRequestsField; - - private bool numRequestsFieldSpecified; - - private string[] pathField; - - private AdUnitParent[] parentPathField; - - private AdUnitTargetWindow targetWindowField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class CmsMetadataKey { + private long idField; - private bool targetWindowFieldSpecified; + private bool idFieldSpecified; - private TargetPlatform targetPlatformField; + private string nameField; - private bool targetPlatformFieldSpecified; + private CmsMetadataKeyStatus statusField; - private AdUnitSize[] suggestedAdUnitSizesField; + private bool statusFieldSpecified; - /// The unique ID of the suggested ad unit. After API version 201311 this field will - /// be a numerical ID. Earlier versions will return a string value which is the - /// complete path to the suggested ad unit with path elements separated by '/' - /// characters. This attribute is read-only and is populated by Google. + /// The ID of this CMS metadata key. This field is read-only and provided by Google. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public string id { + public long id { get { return this.idField; } set { this.idField = value; + this.idSpecified = true; } } - /// Returns the number of times the ad tag corresponding to this suggested ad unit - /// has been served in the previous week. Suggested ad units are only created when - /// they have been served at least ten times in that period. This attribute is - /// read-only and is populated by Google. + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool idSpecified { + get { + return this.idFieldSpecified; + } + set { + this.idFieldSpecified = value; + } + } + + /// The key of a key-value pair. /// [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public long numRequests { + public string name { get { - return this.numRequestsField; + return this.nameField; } set { - this.numRequestsField = value; - this.numRequestsSpecified = true; + this.nameField = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool numRequestsSpecified { + /// The status of this CMS metadata key. This attribute is read-only. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public CmsMetadataKeyStatus status { get { - return this.numRequestsFieldSpecified; + return this.statusField; } set { - this.numRequestsFieldSpecified = value; + this.statusField = value; + this.statusSpecified = true; } } - /// The hierarchical path from the last existing ad unit - /// after this and all suggested parent ad units have been created. Each path - /// element is a separate ad unit code in the returned list. This attribute is - /// read-only and is populated by Google. - /// - [System.Xml.Serialization.XmlElementAttribute("path", Order = 2)] - public string[] path { + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool statusSpecified { get { - return this.pathField; + return this.statusFieldSpecified; } set { - this.pathField = value; + this.statusFieldSpecified = value; } } + } - /// The existing hierarchical path leading up to, and including, the parent of the - /// first suggested ad unit in the ad unit hierarchy. The parentPath - /// and the path make up the full path of the suggested ad unit after - /// it is approved. This attribute is read-only and is populated by Google. - ///

Note: The ad unit code for each of the parent ad units will - /// not be provided.

+ + /// Status for CmsMetadataKey objects. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum CmsMetadataKeyStatus { + ACTIVE = 0, + INACTIVE = 1, + /// The value returned if the actual value is not exposed by the requested API + /// version. /// - [System.Xml.Serialization.XmlElementAttribute("parentPath", Order = 3)] - public AdUnitParent[] parentPath { + UNKNOWN = 2, + } + + + /// Captures a page of CMS metadata key objects. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class CmsMetadataKeyPage { + private int totalResultSetSizeField; + + private bool totalResultSetSizeFieldSpecified; + + private int startIndexField; + + private bool startIndexFieldSpecified; + + private CmsMetadataKey[] resultsField; + + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public int totalResultSetSize { + get { + return this.totalResultSetSizeField; + } + set { + this.totalResultSetSizeField = value; + this.totalResultSetSizeSpecified = true; + } + } + + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool totalResultSetSizeSpecified { get { - return this.parentPathField; + return this.totalResultSetSizeFieldSpecified; } set { - this.parentPathField = value; + this.totalResultSetSizeFieldSpecified = value; } } - /// The target attribute of the underlying ad tag, as defined in the AdUnit. This attribute is read-only and is populated by - /// Google. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public AdUnitTargetWindow targetWindow { + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public int startIndex { get { - return this.targetWindowField; + return this.startIndexField; } set { - this.targetWindowField = value; - this.targetWindowSpecified = true; + this.startIndexField = value; + this.startIndexSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool targetWindowSpecified { + public bool startIndexSpecified { get { - return this.targetWindowFieldSpecified; + return this.startIndexFieldSpecified; } set { - this.targetWindowFieldSpecified = value; + this.startIndexFieldSpecified = value; } } - /// The target platform for the browser that clicked the underlying ad tag. This - /// attribute is read-only and is populated by Google. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 5)] - public TargetPlatform targetPlatform { + [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] + public CmsMetadataKey[] results { get { - return this.targetPlatformField; + return this.resultsField; } set { - this.targetPlatformField = value; - this.targetPlatformSpecified = true; + this.resultsField = value; } } + } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool targetPlatformSpecified { + + /// Errors associated with metadata merge specs. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class MetadataMergeSpecError : ApiError { + private MetadataMergeSpecErrorReason reasonField; + + private bool reasonFieldSpecified; + + /// The error reason represented by an enum. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public MetadataMergeSpecErrorReason reason { get { - return this.targetPlatformFieldSpecified; + return this.reasonField; } set { - this.targetPlatformFieldSpecified = value; + this.reasonField = value; + this.reasonSpecified = true; } } - /// The target sizes associated with this SuggestedAdUnit. This - /// attribute is read-only and is populated by Google. - /// - [System.Xml.Serialization.XmlElementAttribute("suggestedAdUnitSizes", Order = 6)] - public AdUnitSize[] suggestedAdUnitSizes { + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool reasonSpecified { get { - return this.suggestedAdUnitSizesField; + return this.reasonFieldSpecified; } set { - this.suggestedAdUnitSizesField = value; + this.reasonFieldSpecified = value; } } } - /// Indicates the target platform. + /// The reason of the error. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum TargetPlatform { - /// The desktop web. + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "MetadataMergeSpecError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum MetadataMergeSpecErrorReason { + /// The merge rule has an input id that is already used by another merge rule. /// - WEB = 0, - /// Mobile devices. + INPUT_ID_ALREADY_USED = 0, + /// The merge rule has an bucket where a bound type was specified without a min/max. /// - MOBILE = 1, - /// An universal target platform that combines mobile and desktop features. + BOUND_SPECIFIED_WITHOUT_VALUE = 1, + /// The merge rule has an bucket where a min/max was specified without a bound type. /// - ANY = 2, + VALUE_SPECIFIED_WITHOUT_BOUND = 2, + /// The merge rule has an bucket range where the min exceeds the max. + /// + MIN_EXCEEDS_MAX = 3, + /// Tried to merge two or more rules which have value rules. + /// + MORE_THAN_ONE_INPUT_KEY_HAS_VALUE_RULES = 4, + /// Tried to set a rule for a value that does not match rule output namespace. + /// + VALUE_SPECIFIED_DOES_NOT_MATCH_OUTPUT_KEY = 5, + /// Tried to merge values on an existing rule that has value bucketing. + /// + CANNOT_MERGE_VALUES_WHERE_VALUE_BUCKET_EXISTS = 6, + /// Tried to create a rule that depends on a reserved key. + /// + CANNOT_MODIFY_RESERVED_KEY = 7, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 8, } - /// Contains a page of SuggestedAdUnit objects. + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", ConfigurationName = "Google.Api.Ads.AdManager.v202411.CmsMetadataServiceInterface")] + public interface CmsMetadataServiceInterface + { + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v202411.CmsMetadataKeyPage getCmsMetadataKeysByStatement(Google.Api.Ads.AdManager.v202411.Statement statement); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task getCmsMetadataKeysByStatementAsync(Google.Api.Ads.AdManager.v202411.Statement statement); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v202411.CmsMetadataValuePage getCmsMetadataValuesByStatement(Google.Api.Ads.AdManager.v202411.Statement statement); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task getCmsMetadataValuesByStatementAsync(Google.Api.Ads.AdManager.v202411.Statement statement); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v202411.UpdateResult performCmsMetadataKeyAction(Google.Api.Ads.AdManager.v202411.CmsMetadataKeyAction keyAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task performCmsMetadataKeyActionAsync(Google.Api.Ads.AdManager.v202411.CmsMetadataKeyAction keyAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v202411.UpdateResult performCmsMetadataValueAction(Google.Api.Ads.AdManager.v202411.CmsMetadataValueAction valueAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task performCmsMetadataValueActionAsync(Google.Api.Ads.AdManager.v202411.CmsMetadataValueAction valueAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement); + } + + + /// Captures a page of CMS metadata value objects. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class SuggestedAdUnitPage { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class CmsMetadataValuePage { private int totalResultSetSizeField; private bool totalResultSetSizeFieldSpecified; @@ -53280,10 +52396,8 @@ public partial class SuggestedAdUnitPage { private bool startIndexFieldSpecified; - private SuggestedAdUnit[] resultsField; + private CmsMetadataValue[] resultsField; - /// The size of the total result set to which this page belongs. - /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] public int totalResultSetSize { get { @@ -53308,8 +52422,6 @@ public bool totalResultSetSizeSpecified { } } - /// The absolute index in the total result set on which this page begins. - /// [System.Xml.Serialization.XmlElementAttribute(Order = 1)] public int startIndex { get { @@ -53334,10 +52446,8 @@ public bool startIndexSpecified { } } - /// The collection of suggested ad units contained within this page. - /// [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] - public SuggestedAdUnit[] results { + public CmsMetadataValue[] results { get { return this.resultsField; } @@ -53348,227 +52458,319 @@ public SuggestedAdUnit[] results { } - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", ConfigurationName = "Google.Api.Ads.AdManager.v202311.SuggestedAdUnitServiceInterface")] - public interface SuggestedAdUnitServiceInterface - { - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v202311.SuggestedAdUnitPage getSuggestedAdUnitsByStatement(Google.Api.Ads.AdManager.v202311.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getSuggestedAdUnitsByStatementAsync(Google.Api.Ads.AdManager.v202311.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v202311.SuggestedAdUnitUpdateResult performSuggestedAdUnitAction(Google.Api.Ads.AdManager.v202311.SuggestedAdUnitAction suggestedAdUnitAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task performSuggestedAdUnitActionAsync(Google.Api.Ads.AdManager.v202311.SuggestedAdUnitAction suggestedAdUnitAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement); - } - - - /// Represents the actions that can be performed on SuggestedAdUnit objects. + /// Key value pair associated with a piece of content from a publisher's CMS. /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ApproveSuggestedAdUnits))] [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public abstract partial class SuggestedAdUnitAction { - } - + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class CmsMetadataValue { + private long cmsMetadataValueIdField; - /// Action to approve SuggestedAdUnit objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ApproveSuggestedAdUnits : SuggestedAdUnitAction { - } + private bool cmsMetadataValueIdFieldSpecified; + private string valueNameField; - /// Represents the result of performing an action on SuggestedAdUnit objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class SuggestedAdUnitUpdateResult { - private string[] newAdUnitIdsField; + private CmsMetadataKey keyField; - private int numChangesField; + private CmsMetadataValueStatus statusField; - private bool numChangesFieldSpecified; + private bool statusFieldSpecified; - /// The ids of the AdUnit objects that were created in response - /// to a performSuggestedAdUnitAction call. + /// The ID of this CMS metadata value, to be used in targeting. This field is + /// read-only and provided by Google. /// - [System.Xml.Serialization.XmlElementAttribute("newAdUnitIds", Order = 0)] - public string[] newAdUnitIds { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public long cmsMetadataValueId { get { - return this.newAdUnitIdsField; + return this.cmsMetadataValueIdField; } set { - this.newAdUnitIdsField = value; + this.cmsMetadataValueIdField = value; + this.cmsMetadataValueIdSpecified = true; } } - /// The number of objects that were changed as a result of performing the action. + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool cmsMetadataValueIdSpecified { + get { + return this.cmsMetadataValueIdFieldSpecified; + } + set { + this.cmsMetadataValueIdFieldSpecified = value; + } + } + + /// The value of this key-value pair. /// [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public int numChanges { + public string valueName { get { - return this.numChangesField; + return this.valueNameField; } set { - this.numChangesField = value; - this.numChangesSpecified = true; + this.valueNameField = value; } } - /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public CmsMetadataKey key { + get { + return this.keyField; + } + set { + this.keyField = value; + } + } + + /// The status of this CMS metadata value. This attribute is read-only. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 3)] + public CmsMetadataValueStatus status { + get { + return this.statusField; + } + set { + this.statusField = value; + this.statusSpecified = true; + } + } + + /// true, if a value is specified for , + /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool numChangesSpecified { + public bool statusSpecified { get { - return this.numChangesFieldSpecified; + return this.statusFieldSpecified; } set { - this.numChangesFieldSpecified = value; + this.statusFieldSpecified = value; } } } + /// Status for CmsMetadataValue objects. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum CmsMetadataValueStatus { + ACTIVE = 0, + INACTIVE = 1, + ARCHIVED = 2, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 3, + } + + + /// Represents the actions that can be performed on CmsMetadataKey objects. + /// + [System.Xml.Serialization.XmlIncludeAttribute(typeof(DeactivateCmsMetadataKeys))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ActivateCmsMetadataKeys))] + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public abstract partial class CmsMetadataKeyAction { + } + + + /// The action used for deactivating CmsMetadataKey + /// objects. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class DeactivateCmsMetadataKeys : CmsMetadataKeyAction { + } + + + /// The action used for activating CmsMetadataKey + /// objects. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ActivateCmsMetadataKeys : CmsMetadataKeyAction { + } + + + /// Represents the actions that can be performed on CmsMetadataValue objects. + /// + [System.Xml.Serialization.XmlIncludeAttribute(typeof(DeactivateCmsMetadataValues))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ActivateCmsMetadataValues))] + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public abstract partial class CmsMetadataValueAction { + } + + + /// The action used for deactivating CmsMetadataValue + /// objects. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class DeactivateCmsMetadataValues : CmsMetadataValueAction { + } + + + /// The action used for activating CmsMetadataValue + /// objects. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ActivateCmsMetadataValues : CmsMetadataValueAction { + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public interface SuggestedAdUnitServiceInterfaceChannel : Google.Api.Ads.AdManager.v202311.SuggestedAdUnitServiceInterface, System.ServiceModel.IClientChannel + public interface CmsMetadataServiceInterfaceChannel : Google.Api.Ads.AdManager.v202411.CmsMetadataServiceInterface, System.ServiceModel.IClientChannel { } - /// This service provides operations for retrieving and approving SuggestedAdUnit objects.

Publishers may create ad - /// tags that lack a corresponding ad unit defined in DFP, in order to gather - /// information about potential ads without needing to create dummy ad units and - /// make them available for targeting in line items. Any undefined ad unit to - /// receive more than ten serving requests in the past week is treated as a - /// 'suggested ad unit'. These can be queried by the client and selectively - /// approved. Approval causes a new ad unit to be created based on the suggested ad - /// unit. Unapproved suggested ad units cease to exist whenever their corresponding - /// ad tag has been served fewer than ten times in the past seven days.

This - /// service is only available to Premium publishers. Before use, suggested ad units - /// must be enabled for the client's network. This can be done in the UI: in the - /// Inventory tab, click "Network settings" in the left-hand panel, then enable the - /// checkbox "Get suggestions for new ad units." If suggested ad units are not - /// enabled, then #getSuggestedAdUnitsByStatement will - /// always return an empty page.

+ /// Provides methods for querying CMS metadata keys and values.

A CMS metadata + /// value corresponds to one key value pair ingested from a publisher's CMS and is + /// used to target all the content with which it is associated in the CMS.

///
[System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public partial class SuggestedAdUnitService : AdManagerSoapClient, ISuggestedAdUnitService { - /// Creates a new instance of the - /// class. - public SuggestedAdUnitService() { + public partial class CmsMetadataService : AdManagerSoapClient, ICmsMetadataService { + /// Creates a new instance of the class. + /// + public CmsMetadataService() { } - /// Creates a new instance of the - /// class. - public SuggestedAdUnitService(string endpointConfigurationName) + /// Creates a new instance of the class. + /// + public CmsMetadataService(string endpointConfigurationName) : base(endpointConfigurationName) { } - /// Creates a new instance of the - /// class. - public SuggestedAdUnitService(string endpointConfigurationName, string remoteAddress) + /// Creates a new instance of the class. + /// + public CmsMetadataService(string endpointConfigurationName, string remoteAddress) : base(endpointConfigurationName, remoteAddress) { } - /// Creates a new instance of the - /// class. - public SuggestedAdUnitService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) + /// Creates a new instance of the class. + /// + public CmsMetadataService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) : base(endpointConfigurationName, remoteAddress) { } - /// Creates a new instance of the - /// class. - public SuggestedAdUnitService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) + /// Creates a new instance of the class. + /// + public CmsMetadataService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) : base(binding, remoteAddress) { } - /// Gets a SuggestedAdUnitPage of SuggestedAdUnit objects that satisfy the filter - /// query. There is a system-enforced limit of 1000 on the number of suggested ad - /// units that are suggested at any one time. - /// - /// - ///
PQL - /// Property Object Property
id SuggestedAdUnit#id
numRequests SuggestedAdUnit#numRequests

Note: After API version 201311, the id - /// field will only be numerical.

+ /// Returns a page of CmsMetadataKeys matching the + /// specified Statement. The following fields are supported + /// for filtering: + /// + ///
PQL Property Object Property
id CmsMetadataKey#cmsMetadataKeyId
cmsKey CmsMetadataKey#keyName
status CmsMetadataKey#status
///
- public virtual Google.Api.Ads.AdManager.v202311.SuggestedAdUnitPage getSuggestedAdUnitsByStatement(Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.getSuggestedAdUnitsByStatement(filterStatement); + public virtual Google.Api.Ads.AdManager.v202411.CmsMetadataKeyPage getCmsMetadataKeysByStatement(Google.Api.Ads.AdManager.v202411.Statement statement) { + return base.Channel.getCmsMetadataKeysByStatement(statement); } - public virtual System.Threading.Tasks.Task getSuggestedAdUnitsByStatementAsync(Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.getSuggestedAdUnitsByStatementAsync(filterStatement); + public virtual System.Threading.Tasks.Task getCmsMetadataKeysByStatementAsync(Google.Api.Ads.AdManager.v202411.Statement statement) { + return base.Channel.getCmsMetadataKeysByStatementAsync(statement); } - /// Performs actions on SuggestedAdUnit objects that - /// match the given Statement#query. The following fields are - /// supported for filtering: + /// + /// + ///
PQL Property Returns a page of CmsMetadataValues matching the + /// specified Statement. The following fields are supported + /// for filtering: - /// - ///
PQL Property Object Property
id SuggestedAdUnit#id
numRequests SuggestedAdUnit#numRequests
+ /// href='CmsMetadataValue#cmsMetadataValueId'>CmsMetadataValue#cmsMetadataValueId + ///
cmsValue CmsMetadataValue#valueName
cmsKey CmsMetadataValue#key#name
cmsKeyId CmsMetadataValue#key#id
status CmsMetadataValue#status
///
- public virtual Google.Api.Ads.AdManager.v202311.SuggestedAdUnitUpdateResult performSuggestedAdUnitAction(Google.Api.Ads.AdManager.v202311.SuggestedAdUnitAction suggestedAdUnitAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.performSuggestedAdUnitAction(suggestedAdUnitAction, filterStatement); + public virtual Google.Api.Ads.AdManager.v202411.CmsMetadataValuePage getCmsMetadataValuesByStatement(Google.Api.Ads.AdManager.v202411.Statement statement) { + return base.Channel.getCmsMetadataValuesByStatement(statement); } - public virtual System.Threading.Tasks.Task performSuggestedAdUnitActionAsync(Google.Api.Ads.AdManager.v202311.SuggestedAdUnitAction suggestedAdUnitAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.performSuggestedAdUnitActionAsync(suggestedAdUnitAction, filterStatement); + public virtual System.Threading.Tasks.Task getCmsMetadataValuesByStatementAsync(Google.Api.Ads.AdManager.v202411.Statement statement) { + return base.Channel.getCmsMetadataValuesByStatementAsync(statement); + } + + /// Performs actions on CmsMetadataKey objects that + /// match the given Statement#query. + /// + public virtual Google.Api.Ads.AdManager.v202411.UpdateResult performCmsMetadataKeyAction(Google.Api.Ads.AdManager.v202411.CmsMetadataKeyAction keyAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.performCmsMetadataKeyAction(keyAction, filterStatement); + } + + public virtual System.Threading.Tasks.Task performCmsMetadataKeyActionAsync(Google.Api.Ads.AdManager.v202411.CmsMetadataKeyAction keyAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.performCmsMetadataKeyActionAsync(keyAction, filterStatement); + } + + /// Performs actions on CmsMetadataValue objects that + /// match the given Statement#query. + /// + public virtual Google.Api.Ads.AdManager.v202411.UpdateResult performCmsMetadataValueAction(Google.Api.Ads.AdManager.v202411.CmsMetadataValueAction valueAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.performCmsMetadataValueAction(valueAction, filterStatement); + } + + public virtual System.Threading.Tasks.Task performCmsMetadataValueActionAsync(Google.Api.Ads.AdManager.v202411.CmsMetadataValueAction valueAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.performCmsMetadataValueActionAsync(valueAction, filterStatement); } } - namespace Wrappers.TeamService + namespace Wrappers.TargetingPresetService { [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "createTeams", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class createTeamsRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("teams")] - public Google.Api.Ads.AdManager.v202311.Team[] teams; + [System.ServiceModel.MessageContractAttribute(WrapperName = "createTargetingPresets", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class createTargetingPresetsRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("targetingPresets")] + public Google.Api.Ads.AdManager.v202411.TargetingPreset[] targetingPresets; - /// Creates a new instance of the class. - /// - public createTeamsRequest() { + /// Creates a new instance of the class. + public createTargetingPresetsRequest() { } - /// Creates a new instance of the class. - /// - public createTeamsRequest(Google.Api.Ads.AdManager.v202311.Team[] teams) { - this.teams = teams; + /// Creates a new instance of the class. + public createTargetingPresetsRequest(Google.Api.Ads.AdManager.v202411.TargetingPreset[] targetingPresets) { + this.targetingPresets = targetingPresets; } } @@ -53576,20 +52778,20 @@ public createTeamsRequest(Google.Api.Ads.AdManager.v202311.Team[] teams) { [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "createTeamsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class createTeamsResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "createTargetingPresetsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class createTargetingPresetsResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v202311.Team[] rval; + public Google.Api.Ads.AdManager.v202411.TargetingPreset[] rval; - /// Creates a new instance of the class. - /// - public createTeamsResponse() { + /// Creates a new instance of the class. + public createTargetingPresetsResponse() { } - /// Creates a new instance of the class. - /// - public createTeamsResponse(Google.Api.Ads.AdManager.v202311.Team[] rval) { + /// Creates a new instance of the class. + public createTargetingPresetsResponse(Google.Api.Ads.AdManager.v202411.TargetingPreset[] rval) { this.rval = rval; } } @@ -53598,21 +52800,21 @@ public createTeamsResponse(Google.Api.Ads.AdManager.v202311.Team[] rval) { [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "updateTeams", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class updateTeamsRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("teams")] - public Google.Api.Ads.AdManager.v202311.Team[] teams; + [System.ServiceModel.MessageContractAttribute(WrapperName = "updateTargetingPresets", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class updateTargetingPresetsRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("targetingPresets")] + public Google.Api.Ads.AdManager.v202411.TargetingPreset[] targetingPresets; - /// Creates a new instance of the class. - /// - public updateTeamsRequest() { + /// Creates a new instance of the class. + public updateTargetingPresetsRequest() { } - /// Creates a new instance of the class. - /// - public updateTeamsRequest(Google.Api.Ads.AdManager.v202311.Team[] teams) { - this.teams = teams; + /// Creates a new instance of the class. + public updateTargetingPresetsRequest(Google.Api.Ads.AdManager.v202411.TargetingPreset[] targetingPresets) { + this.targetingPresets = targetingPresets; } } @@ -53620,60 +52822,42 @@ public updateTeamsRequest(Google.Api.Ads.AdManager.v202311.Team[] teams) { [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "updateTeamsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class updateTeamsResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "updateTargetingPresetsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class updateTargetingPresetsResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v202311.Team[] rval; + public Google.Api.Ads.AdManager.v202411.TargetingPreset[] rval; - /// Creates a new instance of the class. - /// - public updateTeamsResponse() { + /// Creates a new instance of the class. + public updateTargetingPresetsResponse() { } - /// Creates a new instance of the class. - /// - public updateTeamsResponse(Google.Api.Ads.AdManager.v202311.Team[] rval) { + /// Creates a new instance of the class. + public updateTargetingPresetsResponse(Google.Api.Ads.AdManager.v202411.TargetingPreset[] rval) { this.rval = rval; } } } - /// A Team defines a grouping of users and what entities they have - /// access to. Users are added to teams with UserTeamAssociation objects. + /// User-defined preset targeting criteria. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class Team { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class TargetingPreset { private long idField; private bool idFieldSpecified; private string nameField; - private string descriptionField; - - private TeamStatus statusField; - - private bool statusFieldSpecified; - - private bool hasAllCompaniesField; - - private bool hasAllCompaniesFieldSpecified; - - private bool hasAllInventoryField; - - private bool hasAllInventoryFieldSpecified; - - private TeamAccessType teamAccessTypeField; - - private bool teamAccessTypeFieldSpecified; + private Targeting targetingField; - /// The unique ID of the Team. This value is readonly and is assigned - /// by Google. Teams that are created by Google will have negative IDs. + /// The unique ID of the TargetingPreset. This value is readonly and is + /// assigned by Google. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] public long id { @@ -53699,8 +52883,8 @@ public bool idSpecified { } } - /// The name of the Team. This value is required to create a team and - /// has a maximum length of 106 characters. + /// The name of the TargetingPreset. This value is required to create a + /// targeting preset and has a maximum length of 255 characters. /// [System.Xml.Serialization.XmlElementAttribute(Order = 1)] public string name { @@ -53712,227 +52896,80 @@ public string name { } } - /// The description of the Team. This value is optional and has a - /// maximum length of 255 characters. + /// Contains the targeting criteria for the TargetingPreset. This + /// attribute is required. /// [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public string description { - get { - return this.descriptionField; - } - set { - this.descriptionField = value; - } - } - - /// The status of the Team. This value can be TeamStatus#ACTIVE (default) or TeamStatus#INACTIVE and determines the visibility of the team in the - /// UI. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public TeamStatus status { - get { - return this.statusField; - } - set { - this.statusField = value; - this.statusSpecified = true; - } - } - - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool statusSpecified { - get { - return this.statusFieldSpecified; - } - set { - this.statusFieldSpecified = value; - } - } - - /// Whether or not users on this team have access to all companies. If this value is - /// true, then an error will be thrown if an attempt is made to associate this team - /// with a Company. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public bool hasAllCompanies { - get { - return this.hasAllCompaniesField; - } - set { - this.hasAllCompaniesField = value; - this.hasAllCompaniesSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool hasAllCompaniesSpecified { - get { - return this.hasAllCompaniesFieldSpecified; - } - set { - this.hasAllCompaniesFieldSpecified = value; - } - } - - /// Whether or not users on this team have access to all inventory. If this value is - /// true, then an error will be thrown if an attempt is made to associate this team - /// with an AdUnit. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 5)] - public bool hasAllInventory { - get { - return this.hasAllInventoryField; - } - set { - this.hasAllInventoryField = value; - this.hasAllInventorySpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool hasAllInventorySpecified { - get { - return this.hasAllInventoryFieldSpecified; - } - set { - this.hasAllInventoryFieldSpecified = value; - } - } - - /// The default access to orders, for users on this team. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 6)] - public TeamAccessType teamAccessType { - get { - return this.teamAccessTypeField; - } - set { - this.teamAccessTypeField = value; - this.teamAccessTypeSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool teamAccessTypeSpecified { + public Targeting targeting { get { - return this.teamAccessTypeFieldSpecified; + return this.targetingField; } set { - this.teamAccessTypeFieldSpecified = value; + this.targetingField = value; } } } - /// Represents the status of a team, whether it is active or inactive. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum TeamStatus { - /// The status of an active team. (i.e. visible in the UI) - /// - ACTIVE = 0, - /// The status of an inactive team. (i.e. hidden in the UI) - /// - INACTIVE = 1, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 2, - } - - - /// Represents the types of team access supported for orders. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum TeamAccessType { - /// The level of access in which team members cannot view or edit a team's orders. - /// - NONE = 0, - /// The level of access in which team members can only view a team's orders. - /// - READ_ONLY = 1, - /// The level of access in which team members can view and edit a team's orders. - /// - READ_WRITE = 2, - } - - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", ConfigurationName = "Google.Api.Ads.AdManager.v202311.TeamServiceInterface")] - public interface TeamServiceInterface + [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", ConfigurationName = "Google.Api.Ads.AdManager.v202411.TargetingPresetServiceInterface")] + public interface TargetingPresetServiceInterface { // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Wrappers.TeamService.createTeamsResponse createTeams(Wrappers.TeamService.createTeamsRequest request); + Wrappers.TargetingPresetService.createTargetingPresetsResponse createTargetingPresets(Wrappers.TargetingPresetService.createTargetingPresetsRequest request); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task createTeamsAsync(Wrappers.TeamService.createTeamsRequest request); + System.Threading.Tasks.Task createTargetingPresetsAsync(Wrappers.TargetingPresetService.createTargetingPresetsRequest request); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v202311.TeamPage getTeamsByStatement(Google.Api.Ads.AdManager.v202311.Statement filterStatement); + Google.Api.Ads.AdManager.v202411.TargetingPresetPage getTargetingPresetsByStatement(Google.Api.Ads.AdManager.v202411.Statement filterStatement); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getTeamsByStatementAsync(Google.Api.Ads.AdManager.v202311.Statement filterStatement); + System.Threading.Tasks.Task getTargetingPresetsByStatementAsync(Google.Api.Ads.AdManager.v202411.Statement filterStatement); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v202311.UpdateResult performTeamAction(Google.Api.Ads.AdManager.v202311.TeamAction teamAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement); + Google.Api.Ads.AdManager.v202411.UpdateResult performTargetingPresetAction(Google.Api.Ads.AdManager.v202411.TargetingPresetAction targetingPresetAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task performTeamActionAsync(Google.Api.Ads.AdManager.v202311.TeamAction teamAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement); + System.Threading.Tasks.Task performTargetingPresetActionAsync(Google.Api.Ads.AdManager.v202411.TargetingPresetAction targetingPresetAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement); // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Wrappers.TeamService.updateTeamsResponse updateTeams(Wrappers.TeamService.updateTeamsRequest request); + Wrappers.TargetingPresetService.updateTargetingPresetsResponse updateTargetingPresets(Wrappers.TargetingPresetService.updateTargetingPresetsRequest request); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task updateTeamsAsync(Wrappers.TeamService.updateTeamsRequest request); + System.Threading.Tasks.Task updateTargetingPresetsAsync(Wrappers.TargetingPresetService.updateTargetingPresetsRequest request); } - /// Captures a page of Team objects. + /// Captures a paged query of TargetingPresetDto + /// objects. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class TeamPage { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class TargetingPresetPage { private int totalResultSetSizeField; private bool totalResultSetSizeFieldSpecified; @@ -53941,7 +52978,7 @@ public partial class TeamPage { private bool startIndexFieldSpecified; - private Team[] resultsField; + private TargetingPreset[] resultsField; /// The size of the total result set to which this page belongs. /// @@ -53995,10 +53032,10 @@ public bool startIndexSpecified { } } - /// The collection of teams contained within this page. + /// The collection of line items contained within this page. /// [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] - public Team[] results { + public TargetingPreset[] results { get { return this.resultsField; } @@ -54009,215 +53046,167 @@ public Team[] results { } - /// Represents the actions that can be performed on Team objects. - /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(DeactivateTeams))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ActivateTeams))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public abstract partial class TeamAction { - } - - - /// The action used for deactivating Team objects. + /// Represents the actions that can be performed on TargetingPresetDto objects. /// + [System.Xml.Serialization.XmlIncludeAttribute(typeof(DeleteTargetingPresetAction))] [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class DeactivateTeams : TeamAction { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public abstract partial class TargetingPresetAction { } - /// The action used for activating Team objects. + /// Action to delete saved targeting expressions. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ActivateTeams : TeamAction { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class DeleteTargetingPresetAction : TargetingPresetAction { } [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public interface TeamServiceInterfaceChannel : Google.Api.Ads.AdManager.v202311.TeamServiceInterface, System.ServiceModel.IClientChannel + public interface TargetingPresetServiceInterfaceChannel : Google.Api.Ads.AdManager.v202411.TargetingPresetServiceInterface, System.ServiceModel.IClientChannel { } - /// Provides methods for creating, updating, and retrieving Team - /// objects.

Teams are used to group users in order to define access to entities - /// such as companies, inventory and orders.

+ /// Service for interacting with Targeting Presets. /// [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public partial class TeamService : AdManagerSoapClient, ITeamService { - /// Creates a new instance of the class. - /// - public TeamService() { + public partial class TargetingPresetService : AdManagerSoapClient, ITargetingPresetService { + /// Creates a new instance of the + /// class. + public TargetingPresetService() { } - /// Creates a new instance of the class. - /// - public TeamService(string endpointConfigurationName) + /// Creates a new instance of the + /// class. + public TargetingPresetService(string endpointConfigurationName) : base(endpointConfigurationName) { } - /// Creates a new instance of the class. - /// - public TeamService(string endpointConfigurationName, string remoteAddress) + /// Creates a new instance of the + /// class. + public TargetingPresetService(string endpointConfigurationName, string remoteAddress) : base(endpointConfigurationName, remoteAddress) { } - /// Creates a new instance of the class. - /// - public TeamService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) + /// Creates a new instance of the + /// class. + public TargetingPresetService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) : base(endpointConfigurationName, remoteAddress) { } - /// Creates a new instance of the class. - /// - public TeamService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) + /// Creates a new instance of the + /// class. + public TargetingPresetService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) : base(binding, remoteAddress) { } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.TeamService.createTeamsResponse Google.Api.Ads.AdManager.v202311.TeamServiceInterface.createTeams(Wrappers.TeamService.createTeamsRequest request) { - return base.Channel.createTeams(request); + Wrappers.TargetingPresetService.createTargetingPresetsResponse Google.Api.Ads.AdManager.v202411.TargetingPresetServiceInterface.createTargetingPresets(Wrappers.TargetingPresetService.createTargetingPresetsRequest request) { + return base.Channel.createTargetingPresets(request); } - /// Creates new Team objects.

The following fields are - /// required:

+ /// Creates new TargetingPreset objects. /// - public virtual Google.Api.Ads.AdManager.v202311.Team[] createTeams(Google.Api.Ads.AdManager.v202311.Team[] teams) { - Wrappers.TeamService.createTeamsRequest inValue = new Wrappers.TeamService.createTeamsRequest(); - inValue.teams = teams; - Wrappers.TeamService.createTeamsResponse retVal = ((Google.Api.Ads.AdManager.v202311.TeamServiceInterface)(this)).createTeams(inValue); + public virtual Google.Api.Ads.AdManager.v202411.TargetingPreset[] createTargetingPresets(Google.Api.Ads.AdManager.v202411.TargetingPreset[] targetingPresets) { + Wrappers.TargetingPresetService.createTargetingPresetsRequest inValue = new Wrappers.TargetingPresetService.createTargetingPresetsRequest(); + inValue.targetingPresets = targetingPresets; + Wrappers.TargetingPresetService.createTargetingPresetsResponse retVal = ((Google.Api.Ads.AdManager.v202411.TargetingPresetServiceInterface)(this)).createTargetingPresets(inValue); return retVal.rval; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202311.TeamServiceInterface.createTeamsAsync(Wrappers.TeamService.createTeamsRequest request) { - return base.Channel.createTeamsAsync(request); + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202411.TargetingPresetServiceInterface.createTargetingPresetsAsync(Wrappers.TargetingPresetService.createTargetingPresetsRequest request) { + return base.Channel.createTargetingPresetsAsync(request); } - public virtual System.Threading.Tasks.Task createTeamsAsync(Google.Api.Ads.AdManager.v202311.Team[] teams) { - Wrappers.TeamService.createTeamsRequest inValue = new Wrappers.TeamService.createTeamsRequest(); - inValue.teams = teams; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202311.TeamServiceInterface)(this)).createTeamsAsync(inValue)).Result.rval); + public virtual System.Threading.Tasks.Task createTargetingPresetsAsync(Google.Api.Ads.AdManager.v202411.TargetingPreset[] targetingPresets) { + Wrappers.TargetingPresetService.createTargetingPresetsRequest inValue = new Wrappers.TargetingPresetService.createTargetingPresetsRequest(); + inValue.targetingPresets = targetingPresets; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202411.TargetingPresetServiceInterface)(this)).createTargetingPresetsAsync(inValue)).Result.rval); } - /// Gets a TeamPage of Team objects that satisfy the given - /// Statement#query. The following fields are - /// supported for filtering: + ///
PQL Property Gets a TargetingPresetPage of TargetingPreset objects that satisfy the given Statement#query. The following fields are supported + /// for filtering: - ///
PQL Property Object Property
id Team#id
name Team#name
descriptionTeam#description
+ /// href='TargetingPreset#id'>TargetingPreset#id
name TargetingPreset#name
///
- public virtual Google.Api.Ads.AdManager.v202311.TeamPage getTeamsByStatement(Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.getTeamsByStatement(filterStatement); + public virtual Google.Api.Ads.AdManager.v202411.TargetingPresetPage getTargetingPresetsByStatement(Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.getTargetingPresetsByStatement(filterStatement); } - public virtual System.Threading.Tasks.Task getTeamsByStatementAsync(Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.getTeamsByStatementAsync(filterStatement); + public virtual System.Threading.Tasks.Task getTargetingPresetsByStatementAsync(Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.getTargetingPresetsByStatementAsync(filterStatement); } - /// Performs actions on Team objects that match the given Statement#query. + /// Performs actions on the saved targeting objects that match the given + /// filterStatement. /// - public virtual Google.Api.Ads.AdManager.v202311.UpdateResult performTeamAction(Google.Api.Ads.AdManager.v202311.TeamAction teamAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.performTeamAction(teamAction, filterStatement); + public virtual Google.Api.Ads.AdManager.v202411.UpdateResult performTargetingPresetAction(Google.Api.Ads.AdManager.v202411.TargetingPresetAction targetingPresetAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.performTargetingPresetAction(targetingPresetAction, filterStatement); } - public virtual System.Threading.Tasks.Task performTeamActionAsync(Google.Api.Ads.AdManager.v202311.TeamAction teamAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.performTeamActionAsync(teamAction, filterStatement); + public virtual System.Threading.Tasks.Task performTargetingPresetActionAsync(Google.Api.Ads.AdManager.v202411.TargetingPresetAction targetingPresetAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.performTargetingPresetActionAsync(targetingPresetAction, filterStatement); } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.TeamService.updateTeamsResponse Google.Api.Ads.AdManager.v202311.TeamServiceInterface.updateTeams(Wrappers.TeamService.updateTeamsRequest request) { - return base.Channel.updateTeams(request); + Wrappers.TargetingPresetService.updateTargetingPresetsResponse Google.Api.Ads.AdManager.v202411.TargetingPresetServiceInterface.updateTargetingPresets(Wrappers.TargetingPresetService.updateTargetingPresetsRequest request) { + return base.Channel.updateTargetingPresets(request); } - /// Updates the specified Team objects. + /// Updates the specified TargetingPreset objects. /// - public virtual Google.Api.Ads.AdManager.v202311.Team[] updateTeams(Google.Api.Ads.AdManager.v202311.Team[] teams) { - Wrappers.TeamService.updateTeamsRequest inValue = new Wrappers.TeamService.updateTeamsRequest(); - inValue.teams = teams; - Wrappers.TeamService.updateTeamsResponse retVal = ((Google.Api.Ads.AdManager.v202311.TeamServiceInterface)(this)).updateTeams(inValue); + public virtual Google.Api.Ads.AdManager.v202411.TargetingPreset[] updateTargetingPresets(Google.Api.Ads.AdManager.v202411.TargetingPreset[] targetingPresets) { + Wrappers.TargetingPresetService.updateTargetingPresetsRequest inValue = new Wrappers.TargetingPresetService.updateTargetingPresetsRequest(); + inValue.targetingPresets = targetingPresets; + Wrappers.TargetingPresetService.updateTargetingPresetsResponse retVal = ((Google.Api.Ads.AdManager.v202411.TargetingPresetServiceInterface)(this)).updateTargetingPresets(inValue); return retVal.rval; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202311.TeamServiceInterface.updateTeamsAsync(Wrappers.TeamService.updateTeamsRequest request) { - return base.Channel.updateTeamsAsync(request); + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202411.TargetingPresetServiceInterface.updateTargetingPresetsAsync(Wrappers.TargetingPresetService.updateTargetingPresetsRequest request) { + return base.Channel.updateTargetingPresetsAsync(request); } - public virtual System.Threading.Tasks.Task updateTeamsAsync(Google.Api.Ads.AdManager.v202311.Team[] teams) { - Wrappers.TeamService.updateTeamsRequest inValue = new Wrappers.TeamService.updateTeamsRequest(); - inValue.teams = teams; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202311.TeamServiceInterface)(this)).updateTeamsAsync(inValue)).Result.rval); + public virtual System.Threading.Tasks.Task updateTargetingPresetsAsync(Google.Api.Ads.AdManager.v202411.TargetingPreset[] targetingPresets) { + Wrappers.TargetingPresetService.updateTargetingPresetsRequest inValue = new Wrappers.TargetingPresetService.updateTargetingPresetsRequest(); + inValue.targetingPresets = targetingPresets; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202411.TargetingPresetServiceInterface)(this)).updateTargetingPresetsAsync(inValue)).Result.rval); } } - namespace Wrappers.UserService + namespace Wrappers.StreamActivityMonitorService { [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "createUsers", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class createUsersRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("users")] - public Google.Api.Ads.AdManager.v202311.User[] users; - - /// Creates a new instance of the class. - /// - public createUsersRequest() { - } - - /// Creates a new instance of the class. - /// - public createUsersRequest(Google.Api.Ads.AdManager.v202311.User[] users) { - this.users = users; - } - } - - - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "createUsersResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class createUsersResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v202311.User[] rval; - - /// Creates a new instance of the class. - /// - public createUsersResponse() { - } + [System.ServiceModel.MessageContractAttribute(WrapperName = "getSamSessionsByStatement", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class getSamSessionsByStatementRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + public Google.Api.Ads.AdManager.v202411.Statement statement; - /// Creates a new instance of the class. - /// - public createUsersResponse(Google.Api.Ads.AdManager.v202311.User[] rval) { - this.rval = rval; + /// Creates a new instance of the class. + public getSamSessionsByStatementRequest() { } - } - - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "getAllRoles", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class getAllRolesRequest { - /// Creates a new instance of the class. - /// - public getAllRolesRequest() { + /// Creates a new instance of the class. + public getSamSessionsByStatementRequest(Google.Api.Ads.AdManager.v202411.Statement statement) { + this.statement = statement; } } @@ -54225,20 +53214,20 @@ public getAllRolesRequest() { [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "getAllRolesResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class getAllRolesResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "getSamSessionsByStatementResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class getSamSessionsByStatementResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v202311.Role[] rval; + public Google.Api.Ads.AdManager.v202411.SamSession[] rval; - /// Creates a new instance of the class. - /// - public getAllRolesResponse() { + /// Creates a new instance of the class. + public getSamSessionsByStatementResponse() { } - /// Creates a new instance of the class. - /// - public getAllRolesResponse(Google.Api.Ads.AdManager.v202311.Role[] rval) { + /// Creates a new instance of the class. + public getSamSessionsByStatementResponse(Google.Api.Ads.AdManager.v202411.SamSession[] rval) { this.rval = rval; } } @@ -54247,21 +53236,21 @@ public getAllRolesResponse(Google.Api.Ads.AdManager.v202311.Role[] rval) { [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "updateUsers", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class updateUsersRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("users")] - public Google.Api.Ads.AdManager.v202311.User[] users; + [System.ServiceModel.MessageContractAttribute(WrapperName = "registerSessionsForMonitoring", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class registerSessionsForMonitoringRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("sessionIds")] + public string[] sessionIds; - /// Creates a new instance of the class. - /// - public updateUsersRequest() { + /// Creates a new instance of the class. + public registerSessionsForMonitoringRequest() { } - /// Creates a new instance of the class. - /// - public updateUsersRequest(Google.Api.Ads.AdManager.v202311.User[] users) { - this.users = users; + /// Creates a new instance of the class. + public registerSessionsForMonitoringRequest(string[] sessionIds) { + this.sessionIds = sessionIds; } } @@ -54269,1677 +53258,1278 @@ public updateUsersRequest(Google.Api.Ads.AdManager.v202311.User[] users) { [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "updateUsersResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class updateUsersResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "registerSessionsForMonitoringResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class registerSessionsForMonitoringResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v202311.User[] rval; + public string[] rval; - /// Creates a new instance of the class. - /// - public updateUsersResponse() { + /// Creates a new instance of the class. + public registerSessionsForMonitoringResponse() { } - /// Creates a new instance of the class. - /// - public updateUsersResponse(Google.Api.Ads.AdManager.v202311.User[] rval) { + /// Creates a new instance of the class. + public registerSessionsForMonitoringResponse(string[] rval) { this.rval = rval; } } } - /// The UserRecord represents the base class from which a - /// User is derived. - /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(User))] [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class UserRecord { - private long idField; - - private bool idFieldSpecified; - - private string nameField; - - private string emailField; - - private long roleIdField; + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "TrackingEvent.Ping", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class TrackingEventPing { + private string uriField; - private bool roleIdFieldSpecified; + private bool hasErrorField; - private string roleNameField; + private bool hasErrorFieldSpecified; - /// The unique ID of the User. This attribute is readonly and is - /// assigned by Google. - /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public long id { + public string uri { get { - return this.idField; + return this.uriField; } set { - this.idField = value; - this.idSpecified = true; + this.uriField = value; } } - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool idSpecified { + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public bool hasError { get { - return this.idFieldSpecified; + return this.hasErrorField; } set { - this.idFieldSpecified = value; + this.hasErrorField = value; + this.hasErrorSpecified = true; } } - /// The name of the User. It has a maximum length of 128 characters. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public string name { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool hasErrorSpecified { get { - return this.nameField; + return this.hasErrorFieldSpecified; } set { - this.nameField = value; + this.hasErrorFieldSpecified = value; } } + } - /// The email or login of the User. In order to create a new user, you - /// must already have a Google Account. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public string email { + + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class CreativeTranscode { + private string adServerField; + + private CreativeTranscodeIdType creativeIdTypeField; + + private bool creativeIdTypeFieldSpecified; + + private string creativeIdField; + + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public string adServer { get { - return this.emailField; + return this.adServerField; } set { - this.emailField = value; + this.adServerField = value; } } - /// The unique role ID of the User. Roles that are created by Google - /// will have negative IDs. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public long roleId { + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public CreativeTranscodeIdType creativeIdType { get { - return this.roleIdField; + return this.creativeIdTypeField; } set { - this.roleIdField = value; - this.roleIdSpecified = true; + this.creativeIdTypeField = value; + this.creativeIdTypeSpecified = true; } } - /// true, if a value is specified for , - /// false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool roleIdSpecified { + public bool creativeIdTypeSpecified { get { - return this.roleIdFieldSpecified; + return this.creativeIdTypeFieldSpecified; } set { - this.roleIdFieldSpecified = value; + this.creativeIdTypeFieldSpecified = value; } } - /// The name of the role assigned to the User. This attribute is - /// readonly. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public string roleName { + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public string creativeId { get { - return this.roleNameField; + return this.creativeIdField; } set { - this.roleNameField = value; + this.creativeIdField = value; } } } - /// Represents a user of the system.

Users may be assigned at most one Role per network. Each role provides a user with permissions to - /// perform specific operations. Without a role, they will not be able to perform - /// any actions.

- ///
+ [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CreativeTranscode.IdType", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum CreativeTranscodeIdType { + AD_ID = 0, + CREATIVE_ID = 1, + CREATIVE_ADID = 2, + UNIVERSAL_AD_ID = 3, + MEDIA_URI = 4, + MEDIA_URI_PATH = 6, + CREATIVE_ADID_WITH_FALLBACK = 7, + CANONICALIZED_MEDIA_URI = 8, + GV_REGISTRY_ID = 9, + UNKNOWN_ID_TYPE = 10, + MEDIA_URI_HASH = 11, + UNKNOWN = 5, + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class User : UserRecord { - private bool isActiveField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class AdDecisionCreative { + private int sequenceField; - private bool isActiveFieldSpecified; + private bool sequenceFieldSpecified; - private bool isEmailNotificationAllowedField; + private long slateDurationMillsField; - private bool isEmailNotificationAllowedFieldSpecified; + private bool slateDurationMillsFieldSpecified; - private string externalIdField; + private long creativeDurationMillsField; - private bool isServiceAccountField; + private bool creativeDurationMillsFieldSpecified; - private bool isServiceAccountFieldSpecified; + private CreativeTranscode creativeTranscodeField; - private string ordersUiLocalTimeZoneIdField; + private string googleVideoIdField; + + private SamError samErrorField; + + private bool isTranscodedField; + + private bool isTranscodedFieldSpecified; + + private bool isDroppedField; + + private bool isDroppedFieldSpecified; - /// Specifies whether or not the User is active. An inactive user - /// cannot log in to the system or perform any operations. This attribute is - /// read-only. - /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public bool isActive { + public int sequence { get { - return this.isActiveField; + return this.sequenceField; } set { - this.isActiveField = value; - this.isActiveSpecified = true; + this.sequenceField = value; + this.sequenceSpecified = true; } } - /// true, if a value is specified for true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool isActiveSpecified { + public bool sequenceSpecified { get { - return this.isActiveFieldSpecified; + return this.sequenceFieldSpecified; } set { - this.isActiveFieldSpecified = value; + this.sequenceFieldSpecified = value; } } - /// Specifies whether or not the User wants to permit the Publisher - /// Display Ads system to send email notifications to their email address. This - /// attribute is optional and defaults to . - /// [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public bool isEmailNotificationAllowed { + public long slateDurationMills { get { - return this.isEmailNotificationAllowedField; + return this.slateDurationMillsField; } set { - this.isEmailNotificationAllowedField = value; - this.isEmailNotificationAllowedSpecified = true; + this.slateDurationMillsField = value; + this.slateDurationMillsSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="slateDurationMills" />, false otherwise.
[System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool isEmailNotificationAllowedSpecified { + public bool slateDurationMillsSpecified { get { - return this.isEmailNotificationAllowedFieldSpecified; + return this.slateDurationMillsFieldSpecified; } set { - this.isEmailNotificationAllowedFieldSpecified = value; + this.slateDurationMillsFieldSpecified = value; } } - /// An identifier for the User that is meaningful to the publisher. - /// This attribute is optional and has a maximum length of 255 characters. - /// [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public string externalId { - get { - return this.externalIdField; - } - set { - this.externalIdField = value; - } - } - - /// Whether the user is an OAuth2 service account user. This attribute is read-only. - /// Service account users can only be added through the UI. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public bool isServiceAccount { + public long creativeDurationMills { get { - return this.isServiceAccountField; + return this.creativeDurationMillsField; } set { - this.isServiceAccountField = value; - this.isServiceAccountSpecified = true; + this.creativeDurationMillsField = value; + this.creativeDurationMillsSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="creativeDurationMills" />, false otherwise.
[System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool isServiceAccountSpecified { + public bool creativeDurationMillsSpecified { get { - return this.isServiceAccountFieldSpecified; + return this.creativeDurationMillsFieldSpecified; } set { - this.isServiceAccountFieldSpecified = value; + this.creativeDurationMillsFieldSpecified = value; } } - /// The long format timezone id (e.g. "America/Los_Angeles") used in the orders and - /// line items UI for this User. Set this to null to - /// indicate that no such value is defined for the User - UI then - /// defaults to using the Network's timezone.

This setting only affects the UI - /// for this user and does not in particular affect the timezone of any dates and - /// times returned in API responses.

- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public string ordersUiLocalTimeZoneId { + [System.Xml.Serialization.XmlElementAttribute(Order = 3)] + public CreativeTranscode creativeTranscode { get { - return this.ordersUiLocalTimeZoneIdField; + return this.creativeTranscodeField; } set { - this.ordersUiLocalTimeZoneIdField = value; + this.creativeTranscodeField = value; } } - } - - - /// An error for an exception that occurred when using a token. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class TokenError : ApiError { - private TokenErrorReason reasonField; - - private bool reasonFieldSpecified; - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public TokenErrorReason reason { + [System.Xml.Serialization.XmlElementAttribute(Order = 4)] + public string googleVideoId { get { - return this.reasonField; + return this.googleVideoIdField; } set { - this.reasonField = value; - this.reasonSpecified = true; + this.googleVideoIdField = value; } } - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { + [System.Xml.Serialization.XmlElementAttribute(Order = 5)] + public SamError samError { get { - return this.reasonFieldSpecified; + return this.samErrorField; } set { - this.reasonFieldSpecified = value; + this.samErrorField = value; } } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "TokenError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum TokenErrorReason { - INVALID = 0, - EXPIRED = 1, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 2, - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", ConfigurationName = "Google.Api.Ads.AdManager.v202311.UserServiceInterface")] - public interface UserServiceInterface - { - // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UserRecord))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Wrappers.UserService.createUsersResponse createUsers(Wrappers.UserService.createUsersRequest request); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task createUsersAsync(Wrappers.UserService.createUsersRequest request); - - // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UserRecord))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Wrappers.UserService.getAllRolesResponse getAllRoles(Wrappers.UserService.getAllRolesRequest request); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task getAllRolesAsync(Wrappers.UserService.getAllRolesRequest request); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UserRecord))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v202311.User getCurrentUser(); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getCurrentUserAsync(); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UserRecord))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v202311.UserPage getUsersByStatement(Google.Api.Ads.AdManager.v202311.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getUsersByStatementAsync(Google.Api.Ads.AdManager.v202311.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UserRecord))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v202311.UpdateResult performUserAction(Google.Api.Ads.AdManager.v202311.UserAction userAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task performUserActionAsync(Google.Api.Ads.AdManager.v202311.UserAction userAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement); - - // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UserRecord))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Wrappers.UserService.updateUsersResponse updateUsers(Wrappers.UserService.updateUsersRequest request); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task updateUsersAsync(Wrappers.UserService.updateUsersRequest request); - } - - - /// Each Role provides a user with permissions to perform specific - /// operations in the system. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class Role { - private long idField; - - private bool idFieldSpecified; - - private string nameField; - - private string descriptionField; - - private RoleStatus statusField; - - private bool statusFieldSpecified; - /// The unique ID of the role. This value is readonly and is assigned by Google. - /// Roles that are created by Google will have negative IDs. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public long id { + [System.Xml.Serialization.XmlElementAttribute(Order = 6)] + public bool isTranscoded { get { - return this.idField; + return this.isTranscodedField; } set { - this.idField = value; - this.idSpecified = true; + this.isTranscodedField = value; + this.isTranscodedSpecified = true; } } - /// true, if a value is specified for , - /// false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool idSpecified { + public bool isTranscodedSpecified { get { - return this.idFieldSpecified; + return this.isTranscodedFieldSpecified; } set { - this.idFieldSpecified = value; + this.isTranscodedFieldSpecified = value; } } - /// The name of the role. This value is readonly and is assigned by Google. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public string name { + [System.Xml.Serialization.XmlElementAttribute(Order = 7)] + public bool isDropped { get { - return this.nameField; + return this.isDroppedField; } set { - this.nameField = value; + this.isDroppedField = value; + this.isDroppedSpecified = true; } } - /// The description of the role. This value is readonly and is assigned by Google. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public string description { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool isDroppedSpecified { get { - return this.descriptionField; + return this.isDroppedFieldSpecified; } set { - this.descriptionField = value; + this.isDroppedFieldSpecified = value; } } + } - /// The status of the Role. This field is read-only and can have - /// the values RoleStatus#ACTIVE (default) or RoleStatus#INACTIVE, which determines the - /// visibility of the role in the UI. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public RoleStatus status { + + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class SamError { + private SamErrorType samErrorTypeField; + + private bool samErrorTypeFieldSpecified; + + private string errorDetailsField; + + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public SamErrorType samErrorType { get { - return this.statusField; + return this.samErrorTypeField; } set { - this.statusField = value; - this.statusSpecified = true; + this.samErrorTypeField = value; + this.samErrorTypeSpecified = true; } } - /// true, if a value is specified for , - /// false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool statusSpecified { + public bool samErrorTypeSpecified { get { - return this.statusFieldSpecified; + return this.samErrorTypeFieldSpecified; } set { - this.statusFieldSpecified = value; + this.samErrorTypeFieldSpecified = value; + } + } + + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public string errorDetails { + get { + return this.errorDetailsField; + } + set { + this.errorDetailsField = value; } } } - /// Represents the status of the role, weather the role is active or inactive. - /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum RoleStatus { - /// The status of an active role. (i.e. visible in the UI) - /// - ACTIVE = 0, - /// The status of an inactive role. (i.e. hidden in the UI) - /// - INACTIVE = 1, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 2, + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum SamErrorType { + INTERNAL_ERROR = 0, + AD_REQUEST_ERROR = 1, + VAST_PARSE_ERROR = 2, + UNSUPPORTED_AD_SYSTEM = 3, + CANNOT_FIND_UNIQUE_TRANSCODE_ID = 4, + CANNOT_FIND_MEDIA_FILE_PATH = 5, + MISSING_INLINE_ELEMENTS = 6, + MAX_WRAPPER_DEPTH_REACHED = 7, + INVALID_AD_SEQUENCE_NUMBER = 8, + FAILED_PING = 9, + AD_TAG_PARSE_ERROR = 10, + VMAP_PARSE_ERROR = 11, + INVALID_VMAP_RESPONSE = 12, + NO_AD_BREAKS_IN_VMAP = 13, + CUSTOM_AD_SOURCE_IN_VMAP = 14, + AD_BREAK_TYPE_NOT_SUPPORTED = 15, + NEITHER_AD_SOURCE_NOR_TRACKING = 16, + UNKNOWN_ERROR = 17, + AD_POD_DROPPED_TO_MANY_AD_PODS = 18, + AD_POD_DROPPED_EMPTY_ADS = 19, + AD_BREAK_WITHOUT_AD_POD = 20, + TRANSCODING_IN_PROGRESS = 21, + UNSUPPORTED_VAST_VERSION = 22, + AD_POD_DROPPED_BUMPER_ERROR = 23, + NO_VALID_MEDIAFILES_FOUND = 24, + EXCEEDS_MAX_FILLER = 25, + SKIPPABLE_AD_NOT_SUPPORTED = 26, + AD_REQUEST_TIMEOUT = 28, + AD_POD_DROPPED_UNSUPPORTED_TYPE = 29, + DUPLICATE_AD_TAG = 30, + FOLLOW_REDIRECTS_IS_FALSE = 31, + AD_POD_DROPPED_INCOMPATIBLE_TIMEOFFSET = 32, + UNKNOWN = 27, } - /// Captures a page of User objects - /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class UserPage { - private int totalResultSetSizeField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class AdResponse { + private string requestUrlField; - private bool totalResultSetSizeFieldSpecified; + private bool isVmapRequestField; - private int startIndexField; + private bool isVmapRequestFieldSpecified; - private bool startIndexFieldSpecified; + private string responseBodyField; - private User[] resultsField; + private AdResponse[] redirectResponsesField; + + private SamError samErrorField; + + private SamError[] adErrorsField; - /// The size of the total result set to which this page belongs. - /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public int totalResultSetSize { + public string requestUrl { get { - return this.totalResultSetSizeField; + return this.requestUrlField; } set { - this.totalResultSetSizeField = value; - this.totalResultSetSizeSpecified = true; + this.requestUrlField = value; + } + } + + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public bool isVmapRequest { + get { + return this.isVmapRequestField; + } + set { + this.isVmapRequestField = value; + this.isVmapRequestSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="isVmapRequest" />, false otherwise.
[System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool totalResultSetSizeSpecified { + public bool isVmapRequestSpecified { get { - return this.totalResultSetSizeFieldSpecified; + return this.isVmapRequestFieldSpecified; } set { - this.totalResultSetSizeFieldSpecified = value; + this.isVmapRequestFieldSpecified = value; } } - /// The absolute index in the total result set on which this page begins. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public int startIndex { + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public string responseBody { get { - return this.startIndexField; + return this.responseBodyField; } set { - this.startIndexField = value; - this.startIndexSpecified = true; + this.responseBodyField = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool startIndexSpecified { + [System.Xml.Serialization.XmlElementAttribute("redirectResponses", Order = 3)] + public AdResponse[] redirectResponses { get { - return this.startIndexFieldSpecified; + return this.redirectResponsesField; } set { - this.startIndexFieldSpecified = value; + this.redirectResponsesField = value; } } - /// The collection of users contained within this page. - /// - [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] - public User[] results { + [System.Xml.Serialization.XmlElementAttribute(Order = 4)] + public SamError samError { get { - return this.resultsField; + return this.samErrorField; } set { - this.resultsField = value; + this.samErrorField = value; } } - } - - /// Represents the actions that can be performed on User objects. - /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(DeactivateUsers))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ActivateUsers))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public abstract partial class UserAction { + [System.Xml.Serialization.XmlElementAttribute("adErrors", Order = 5)] + public SamError[] adErrors { + get { + return this.adErrorsField; + } + set { + this.adErrorsField = value; + } + } } - /// The action used for deactivating User objects. - /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class DeactivateUsers : UserAction { - } + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class AdBreak { + private AdResponse[] rootAdResponsesField; + private AdDecisionCreative[] adDecisionCreativesField; - /// The action used for activating User objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ActivateUsers : UserAction { - } + private int podNumField; + private bool podNumFieldSpecified; - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public interface UserServiceInterfaceChannel : Google.Api.Ads.AdManager.v202311.UserServiceInterface, System.ServiceModel.IClientChannel - { - } + private int linearAbsolutePodNumField; + private bool linearAbsolutePodNumFieldSpecified; - /// Provides operations for creating, updating and retrieving User objects.

A user is assigned one of several different - /// roles. Each Role type has a unique ID that is used to - /// identify that role in an organization. Role types and their IDs can be retrieved - /// by invoking #getAllRoles.

- ///
- [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public partial class UserService : AdManagerSoapClient, IUserService { - /// Creates a new instance of the class. - /// - public UserService() { - } + private long adBreakDurationMillisField; - /// Creates a new instance of the class. - /// - public UserService(string endpointConfigurationName) - : base(endpointConfigurationName) { - } + private bool adBreakDurationMillisFieldSpecified; - /// Creates a new instance of the class. - /// - public UserService(string endpointConfigurationName, string remoteAddress) - : base(endpointConfigurationName, remoteAddress) { - } + private long filledDurationMillisField; - /// Creates a new instance of the class. - /// - public UserService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) - : base(endpointConfigurationName, remoteAddress) { - } + private bool filledDurationMillisFieldSpecified; - /// Creates a new instance of the class. - /// - public UserService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) - : base(binding, remoteAddress) { - } + private long servedDurationMillisField; - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.UserService.createUsersResponse Google.Api.Ads.AdManager.v202311.UserServiceInterface.createUsers(Wrappers.UserService.createUsersRequest request) { - return base.Channel.createUsers(request); - } + private bool servedDurationMillisFieldSpecified; - /// Creates new User objects. - /// - public virtual Google.Api.Ads.AdManager.v202311.User[] createUsers(Google.Api.Ads.AdManager.v202311.User[] users) { - Wrappers.UserService.createUsersRequest inValue = new Wrappers.UserService.createUsersRequest(); - inValue.users = users; - Wrappers.UserService.createUsersResponse retVal = ((Google.Api.Ads.AdManager.v202311.UserServiceInterface)(this)).createUsers(inValue); - return retVal.rval; - } + private DateTime startDateTimeField; - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202311.UserServiceInterface.createUsersAsync(Wrappers.UserService.createUsersRequest request) { - return base.Channel.createUsersAsync(request); - } + private long startTimeOffsetMillisField; - public virtual System.Threading.Tasks.Task createUsersAsync(Google.Api.Ads.AdManager.v202311.User[] users) { - Wrappers.UserService.createUsersRequest inValue = new Wrappers.UserService.createUsersRequest(); - inValue.users = users; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202311.UserServiceInterface)(this)).createUsersAsync(inValue)).Result.rval); - } + private bool startTimeOffsetMillisFieldSpecified; - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.UserService.getAllRolesResponse Google.Api.Ads.AdManager.v202311.UserServiceInterface.getAllRoles(Wrappers.UserService.getAllRolesRequest request) { - return base.Channel.getAllRoles(request); - } + private SamError samErrorField; - /// Returns the Role objects that are defined for the users of - /// the network. - /// - public virtual Google.Api.Ads.AdManager.v202311.Role[] getAllRoles() { - Wrappers.UserService.getAllRolesRequest inValue = new Wrappers.UserService.getAllRolesRequest(); - Wrappers.UserService.getAllRolesResponse retVal = ((Google.Api.Ads.AdManager.v202311.UserServiceInterface)(this)).getAllRoles(inValue); - return retVal.rval; - } + private int midrollIndexField; - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202311.UserServiceInterface.getAllRolesAsync(Wrappers.UserService.getAllRolesRequest request) { - return base.Channel.getAllRolesAsync(request); - } + private bool midrollIndexFieldSpecified; - public virtual System.Threading.Tasks.Task getAllRolesAsync() { - Wrappers.UserService.getAllRolesRequest inValue = new Wrappers.UserService.getAllRolesRequest(); - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202311.UserServiceInterface)(this)).getAllRolesAsync(inValue)).Result.rval); - } + private bool decisionedAdsField; - /// Returns the current User. - /// - public virtual Google.Api.Ads.AdManager.v202311.User getCurrentUser() { - return base.Channel.getCurrentUser(); - } + private bool decisionedAdsFieldSpecified; - public virtual System.Threading.Tasks.Task getCurrentUserAsync() { - return base.Channel.getCurrentUserAsync(); - } + private TrackingEventPing[][] trackingEventsField; - /// Gets a UserPage of User objects that - /// satisfy the given Statement#query. The following - /// fields are supported for filtering: - /// - /// - /// - /// - /// - ///
PQL - /// Property Object Property
email User#email
id User#id
name User#name
roleId User#roleId
rolename User#roleName
status ACTIVE if User#isActive is true; INACTIVE - /// otherwise
- ///
- public virtual Google.Api.Ads.AdManager.v202311.UserPage getUsersByStatement(Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.getUsersByStatement(filterStatement); + [System.Xml.Serialization.XmlElementAttribute("rootAdResponses", Order = 0)] + public AdResponse[] rootAdResponses { + get { + return this.rootAdResponsesField; + } + set { + this.rootAdResponsesField = value; + } } - public virtual System.Threading.Tasks.Task getUsersByStatementAsync(Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.getUsersByStatementAsync(filterStatement); + [System.Xml.Serialization.XmlElementAttribute("adDecisionCreatives", Order = 1)] + public AdDecisionCreative[] adDecisionCreatives { + get { + return this.adDecisionCreativesField; + } + set { + this.adDecisionCreativesField = value; + } } - /// Performs actions on User objects that match the given Statement#query. - /// - public virtual Google.Api.Ads.AdManager.v202311.UpdateResult performUserAction(Google.Api.Ads.AdManager.v202311.UserAction userAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.performUserAction(userAction, filterStatement); + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public int podNum { + get { + return this.podNumField; + } + set { + this.podNumField = value; + this.podNumSpecified = true; + } } - public virtual System.Threading.Tasks.Task performUserActionAsync(Google.Api.Ads.AdManager.v202311.UserAction userAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.performUserActionAsync(userAction, filterStatement); + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool podNumSpecified { + get { + return this.podNumFieldSpecified; + } + set { + this.podNumFieldSpecified = value; + } } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.UserService.updateUsersResponse Google.Api.Ads.AdManager.v202311.UserServiceInterface.updateUsers(Wrappers.UserService.updateUsersRequest request) { - return base.Channel.updateUsers(request); + [System.Xml.Serialization.XmlElementAttribute(Order = 3)] + public int linearAbsolutePodNum { + get { + return this.linearAbsolutePodNumField; + } + set { + this.linearAbsolutePodNumField = value; + this.linearAbsolutePodNumSpecified = true; + } } - /// Updates the specified User objects. - /// - public virtual Google.Api.Ads.AdManager.v202311.User[] updateUsers(Google.Api.Ads.AdManager.v202311.User[] users) { - Wrappers.UserService.updateUsersRequest inValue = new Wrappers.UserService.updateUsersRequest(); - inValue.users = users; - Wrappers.UserService.updateUsersResponse retVal = ((Google.Api.Ads.AdManager.v202311.UserServiceInterface)(this)).updateUsers(inValue); - return retVal.rval; + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool linearAbsolutePodNumSpecified { + get { + return this.linearAbsolutePodNumFieldSpecified; + } + set { + this.linearAbsolutePodNumFieldSpecified = value; + } } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202311.UserServiceInterface.updateUsersAsync(Wrappers.UserService.updateUsersRequest request) { - return base.Channel.updateUsersAsync(request); + [System.Xml.Serialization.XmlElementAttribute(Order = 4)] + public long adBreakDurationMillis { + get { + return this.adBreakDurationMillisField; + } + set { + this.adBreakDurationMillisField = value; + this.adBreakDurationMillisSpecified = true; + } } - public virtual System.Threading.Tasks.Task updateUsersAsync(Google.Api.Ads.AdManager.v202311.User[] users) { - Wrappers.UserService.updateUsersRequest inValue = new Wrappers.UserService.updateUsersRequest(); - inValue.users = users; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202311.UserServiceInterface)(this)).updateUsersAsync(inValue)).Result.rval); + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool adBreakDurationMillisSpecified { + get { + return this.adBreakDurationMillisFieldSpecified; + } + set { + this.adBreakDurationMillisFieldSpecified = value; + } } - } - namespace Wrappers.UserTeamAssociationService - { - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "createUserTeamAssociations", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class createUserTeamAssociationsRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("userTeamAssociations")] - public Google.Api.Ads.AdManager.v202311.UserTeamAssociation[] userTeamAssociations; - /// Creates a new instance of the class. - public createUserTeamAssociationsRequest() { + [System.Xml.Serialization.XmlElementAttribute(Order = 5)] + public long filledDurationMillis { + get { + return this.filledDurationMillisField; } - - /// Creates a new instance of the class. - public createUserTeamAssociationsRequest(Google.Api.Ads.AdManager.v202311.UserTeamAssociation[] userTeamAssociations) { - this.userTeamAssociations = userTeamAssociations; + set { + this.filledDurationMillisField = value; + this.filledDurationMillisSpecified = true; } } - - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "createUserTeamAssociationsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class createUserTeamAssociationsResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v202311.UserTeamAssociation[] rval; - - /// Creates a new instance of the class. - public createUserTeamAssociationsResponse() { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool filledDurationMillisSpecified { + get { + return this.filledDurationMillisFieldSpecified; } - - /// Creates a new instance of the class. - public createUserTeamAssociationsResponse(Google.Api.Ads.AdManager.v202311.UserTeamAssociation[] rval) { - this.rval = rval; + set { + this.filledDurationMillisFieldSpecified = value; } } - - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "updateUserTeamAssociations", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class updateUserTeamAssociationsRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("userTeamAssociations")] - public Google.Api.Ads.AdManager.v202311.UserTeamAssociation[] userTeamAssociations; - - /// Creates a new instance of the class. - public updateUserTeamAssociationsRequest() { + [System.Xml.Serialization.XmlElementAttribute(Order = 6)] + public long servedDurationMillis { + get { + return this.servedDurationMillisField; } - - /// Creates a new instance of the class. - public updateUserTeamAssociationsRequest(Google.Api.Ads.AdManager.v202311.UserTeamAssociation[] userTeamAssociations) { - this.userTeamAssociations = userTeamAssociations; + set { + this.servedDurationMillisField = value; + this.servedDurationMillisSpecified = true; } } - - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "updateUserTeamAssociationsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class updateUserTeamAssociationsResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v202311.UserTeamAssociation[] rval; - - /// Creates a new instance of the class. - public updateUserTeamAssociationsResponse() { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool servedDurationMillisSpecified { + get { + return this.servedDurationMillisFieldSpecified; } - - /// Creates a new instance of the class. - public updateUserTeamAssociationsResponse(Google.Api.Ads.AdManager.v202311.UserTeamAssociation[] rval) { - this.rval = rval; + set { + this.servedDurationMillisFieldSpecified = value; } } - } - /// UserRecordTeamAssociation represents the association between a UserRecord and a Team. - /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(UserTeamAssociation))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public abstract partial class UserRecordTeamAssociation { - private long teamIdField; - - private bool teamIdFieldSpecified; - - private TeamAccessType overriddenTeamAccessTypeField; - - private bool overriddenTeamAccessTypeFieldSpecified; - - private TeamAccessType defaultTeamAccessTypeField; - private bool defaultTeamAccessTypeFieldSpecified; + [System.Xml.Serialization.XmlElementAttribute(Order = 7)] + public DateTime startDateTime { + get { + return this.startDateTimeField; + } + set { + this.startDateTimeField = value; + } + } - /// The Team#id of the team. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public long teamId { + [System.Xml.Serialization.XmlElementAttribute(Order = 8)] + public long startTimeOffsetMillis { get { - return this.teamIdField; + return this.startTimeOffsetMillisField; } set { - this.teamIdField = value; - this.teamIdSpecified = true; + this.startTimeOffsetMillisField = value; + this.startTimeOffsetMillisSpecified = true; } } - /// true, if a value is specified for , - /// false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool teamIdSpecified { + public bool startTimeOffsetMillisSpecified { get { - return this.teamIdFieldSpecified; + return this.startTimeOffsetMillisFieldSpecified; } set { - this.teamIdFieldSpecified = value; + this.startTimeOffsetMillisFieldSpecified = value; } } - /// The overridden team access type. This field is null if team access - /// type is not overridden. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public TeamAccessType overriddenTeamAccessType { + [System.Xml.Serialization.XmlElementAttribute(Order = 9)] + public SamError samError { get { - return this.overriddenTeamAccessTypeField; + return this.samErrorField; } set { - this.overriddenTeamAccessTypeField = value; - this.overriddenTeamAccessTypeSpecified = true; + this.samErrorField = value; + } + } + + [System.Xml.Serialization.XmlElementAttribute(Order = 10)] + public int midrollIndex { + get { + return this.midrollIndexField; + } + set { + this.midrollIndexField = value; + this.midrollIndexSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="midrollIndex" />, false otherwise.
[System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool overriddenTeamAccessTypeSpecified { + public bool midrollIndexSpecified { get { - return this.overriddenTeamAccessTypeFieldSpecified; + return this.midrollIndexFieldSpecified; } set { - this.overriddenTeamAccessTypeFieldSpecified = value; + this.midrollIndexFieldSpecified = value; } } - /// The default team access type Team#teamAccessType. This field is read-only and - /// is populated by Google. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public TeamAccessType defaultTeamAccessType { + [System.Xml.Serialization.XmlElementAttribute(Order = 11)] + public bool decisionedAds { get { - return this.defaultTeamAccessTypeField; + return this.decisionedAdsField; } set { - this.defaultTeamAccessTypeField = value; - this.defaultTeamAccessTypeSpecified = true; + this.decisionedAdsField = value; + this.decisionedAdsSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="decisionedAds" />, false otherwise.
[System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool defaultTeamAccessTypeSpecified { + public bool decisionedAdsSpecified { get { - return this.defaultTeamAccessTypeFieldSpecified; + return this.decisionedAdsFieldSpecified; } set { - this.defaultTeamAccessTypeFieldSpecified = value; + this.decisionedAdsFieldSpecified = value; + } + } + + [System.Xml.Serialization.XmlArrayAttribute(Order = 12)] + [System.Xml.Serialization.XmlArrayItemAttribute("pings", typeof(TrackingEventPing), IsNullable = false)] + public TrackingEventPing[][] trackingEvents { + get { + return this.trackingEventsField; + } + set { + this.trackingEventsField = value; } } } - /// UserTeamAssociation associates a User with a Team to provide the user access to the entities that belong to - /// the team. - /// + [System.Xml.Serialization.XmlIncludeAttribute(typeof(VodStreamCreateRequest))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(LinearStreamCreateRequest))] [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class UserTeamAssociation : UserRecordTeamAssociation { - private long userIdField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public abstract partial class StreamCreateRequest { + private string urlField; - private bool userIdFieldSpecified; + private string userAgentField; + + private ReportingType reportingTypeField; + + private bool reportingTypeFieldSpecified; - /// Refers to the User#id. - /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public long userId { + public string url { get { - return this.userIdField; + return this.urlField; } set { - this.userIdField = value; - this.userIdSpecified = true; + this.urlField = value; } } - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool userIdSpecified { + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public string userAgent { get { - return this.userIdFieldSpecified; + return this.userAgentField; } set { - this.userIdFieldSpecified = value; + this.userAgentField = value; } } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", ConfigurationName = "Google.Api.Ads.AdManager.v202311.UserTeamAssociationServiceInterface")] - public interface UserTeamAssociationServiceInterface - { - // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UserRecordTeamAssociation))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Wrappers.UserTeamAssociationService.createUserTeamAssociationsResponse createUserTeamAssociations(Wrappers.UserTeamAssociationService.createUserTeamAssociationsRequest request); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task createUserTeamAssociationsAsync(Wrappers.UserTeamAssociationService.createUserTeamAssociationsRequest request); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UserRecordTeamAssociation))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v202311.UserTeamAssociationPage getUserTeamAssociationsByStatement(Google.Api.Ads.AdManager.v202311.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getUserTeamAssociationsByStatementAsync(Google.Api.Ads.AdManager.v202311.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UserRecordTeamAssociation))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v202311.UpdateResult performUserTeamAssociationAction(Google.Api.Ads.AdManager.v202311.UserTeamAssociationAction userTeamAssociationAction, Google.Api.Ads.AdManager.v202311.Statement statement); - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task performUserTeamAssociationActionAsync(Google.Api.Ads.AdManager.v202311.UserTeamAssociationAction userTeamAssociationAction, Google.Api.Ads.AdManager.v202311.Statement statement); + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public ReportingType reportingType { + get { + return this.reportingTypeField; + } + set { + this.reportingTypeField = value; + this.reportingTypeSpecified = true; + } + } - // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UserRecordTeamAssociation))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Wrappers.UserTeamAssociationService.updateUserTeamAssociationsResponse updateUserTeamAssociations(Wrappers.UserTeamAssociationService.updateUserTeamAssociationsRequest request); + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool reportingTypeSpecified { + get { + return this.reportingTypeFieldSpecified; + } + set { + this.reportingTypeFieldSpecified = value; + } + } + } - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task updateUserTeamAssociationsAsync(Wrappers.UserTeamAssociationService.updateUserTeamAssociationsRequest request); + + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum ReportingType { + DISABLED = 0, + CLIENT = 1, + SERVER = 2, + AD_MEDIA = 3, + UNKNOWN = 4, } - /// Captures a page of UserTeamAssociation - /// objects. - /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class UserTeamAssociationPage { - private int totalResultSetSizeField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class VodStreamCreateRequest : StreamCreateRequest { + private long contentSourceIdField; - private bool totalResultSetSizeFieldSpecified; + private bool contentSourceIdFieldSpecified; - private int startIndexField; + private string videoIdField; - private bool startIndexFieldSpecified; + private long contentIdField; - private UserTeamAssociation[] resultsField; + private bool contentIdFieldSpecified; + + private string contentNameField; + + private long[] cuePointsField; - /// The size of the total result set to which this page belongs. - /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public int totalResultSetSize { + public long contentSourceId { get { - return this.totalResultSetSizeField; + return this.contentSourceIdField; } set { - this.totalResultSetSizeField = value; - this.totalResultSetSizeSpecified = true; + this.contentSourceIdField = value; + this.contentSourceIdSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="contentSourceId" />, false otherwise.
[System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool totalResultSetSizeSpecified { + public bool contentSourceIdSpecified { get { - return this.totalResultSetSizeFieldSpecified; + return this.contentSourceIdFieldSpecified; } set { - this.totalResultSetSizeFieldSpecified = value; + this.contentSourceIdFieldSpecified = value; } } - /// The absolute index in the total result set on which this page begins. - /// [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public int startIndex { + public string videoId { get { - return this.startIndexField; + return this.videoIdField; } set { - this.startIndexField = value; - this.startIndexSpecified = true; + this.videoIdField = value; } } - /// true, if a value is specified for true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool startIndexSpecified { + public bool contentIdSpecified { get { - return this.startIndexFieldSpecified; + return this.contentIdFieldSpecified; } set { - this.startIndexFieldSpecified = value; + this.contentIdFieldSpecified = value; } } - /// The collection of user team associations contained within this page. - /// - [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] - public UserTeamAssociation[] results { + [System.Xml.Serialization.XmlElementAttribute(Order = 3)] + public string contentName { get { - return this.resultsField; + return this.contentNameField; } set { - this.resultsField = value; + this.contentNameField = value; } } - } - - /// Represents the actions that can be performed on UserTeamAssociation objects. - /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(DeleteUserTeamAssociations))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public abstract partial class UserTeamAssociationAction { + [System.Xml.Serialization.XmlElementAttribute("cuePoints", Order = 4)] + public long[] cuePoints { + get { + return this.cuePointsField; + } + set { + this.cuePointsField = value; + } + } } - /// Action to delete the association between a User and a Team. - /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class DeleteUserTeamAssociations : UserTeamAssociationAction { - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public interface UserTeamAssociationServiceInterfaceChannel : Google.Api.Ads.AdManager.v202311.UserTeamAssociationServiceInterface, System.ServiceModel.IClientChannel - { - } - - - /// Provides methods for creating, updating, and retrieving UserTeamAssociation objects. - ///

UserTeamAssociation objects are used to add users to teams in order to define - /// access to entities such as companies, inventory and orders and to override the - /// team's access type to orders for a user.

- ///
- [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public partial class UserTeamAssociationService : AdManagerSoapClient, IUserTeamAssociationService { - /// Creates a new instance of the - /// class. - public UserTeamAssociationService() { - } - - /// Creates a new instance of the - /// class. - public UserTeamAssociationService(string endpointConfigurationName) - : base(endpointConfigurationName) { - } + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class LinearStreamCreateRequest : StreamCreateRequest { + private string liveStreamEventAssetKeyField; - /// Creates a new instance of the - /// class. - public UserTeamAssociationService(string endpointConfigurationName, string remoteAddress) - : base(endpointConfigurationName, remoteAddress) { - } + private string eventNameField; - /// Creates a new instance of the - /// class. - public UserTeamAssociationService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) - : base(endpointConfigurationName, remoteAddress) { - } + private long liveStreamEventIdField; - /// Creates a new instance of the - /// class. - public UserTeamAssociationService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) - : base(binding, remoteAddress) { - } + private bool liveStreamEventIdFieldSpecified; - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.UserTeamAssociationService.createUserTeamAssociationsResponse Google.Api.Ads.AdManager.v202311.UserTeamAssociationServiceInterface.createUserTeamAssociations(Wrappers.UserTeamAssociationService.createUserTeamAssociationsRequest request) { - return base.Channel.createUserTeamAssociations(request); - } + private DateTime eventStartDateTimeField; - /// Creates new UserTeamAssociation objects. - /// - public virtual Google.Api.Ads.AdManager.v202311.UserTeamAssociation[] createUserTeamAssociations(Google.Api.Ads.AdManager.v202311.UserTeamAssociation[] userTeamAssociations) { - Wrappers.UserTeamAssociationService.createUserTeamAssociationsRequest inValue = new Wrappers.UserTeamAssociationService.createUserTeamAssociationsRequest(); - inValue.userTeamAssociations = userTeamAssociations; - Wrappers.UserTeamAssociationService.createUserTeamAssociationsResponse retVal = ((Google.Api.Ads.AdManager.v202311.UserTeamAssociationServiceInterface)(this)).createUserTeamAssociations(inValue); - return retVal.rval; - } + private DateTime eventEndDateTimeField; - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202311.UserTeamAssociationServiceInterface.createUserTeamAssociationsAsync(Wrappers.UserTeamAssociationService.createUserTeamAssociationsRequest request) { - return base.Channel.createUserTeamAssociationsAsync(request); - } + private bool prefetchEnabledField; - public virtual System.Threading.Tasks.Task createUserTeamAssociationsAsync(Google.Api.Ads.AdManager.v202311.UserTeamAssociation[] userTeamAssociations) { - Wrappers.UserTeamAssociationService.createUserTeamAssociationsRequest inValue = new Wrappers.UserTeamAssociationService.createUserTeamAssociationsRequest(); - inValue.userTeamAssociations = userTeamAssociations; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202311.UserTeamAssociationServiceInterface)(this)).createUserTeamAssociationsAsync(inValue)).Result.rval); - } + private bool prefetchEnabledFieldSpecified; - /// Gets a UserTeamAssociationPage of UserTeamAssociation objects that satisfy the - /// given Statement#query. The following fields are - /// supported for filtering: - /// - ///
PQL Property Object Property
userId UserTeamAssociation#userId
teamId UserTeamAssociation#teamId
- ///
- public virtual Google.Api.Ads.AdManager.v202311.UserTeamAssociationPage getUserTeamAssociationsByStatement(Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.getUserTeamAssociationsByStatement(filterStatement); - } + private bool podTrimmingEnabledField; - public virtual System.Threading.Tasks.Task getUserTeamAssociationsByStatementAsync(Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.getUserTeamAssociationsByStatementAsync(filterStatement); - } + private bool podTrimmingEnabledFieldSpecified; - /// Performs actions on UserTeamAssociation - /// objects that match the given Statement#query. - /// - public virtual Google.Api.Ads.AdManager.v202311.UpdateResult performUserTeamAssociationAction(Google.Api.Ads.AdManager.v202311.UserTeamAssociationAction userTeamAssociationAction, Google.Api.Ads.AdManager.v202311.Statement statement) { - return base.Channel.performUserTeamAssociationAction(userTeamAssociationAction, statement); + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public string liveStreamEventAssetKey { + get { + return this.liveStreamEventAssetKeyField; + } + set { + this.liveStreamEventAssetKeyField = value; + } } - public virtual System.Threading.Tasks.Task performUserTeamAssociationActionAsync(Google.Api.Ads.AdManager.v202311.UserTeamAssociationAction userTeamAssociationAction, Google.Api.Ads.AdManager.v202311.Statement statement) { - return base.Channel.performUserTeamAssociationActionAsync(userTeamAssociationAction, statement); + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public string eventName { + get { + return this.eventNameField; + } + set { + this.eventNameField = value; + } } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.UserTeamAssociationService.updateUserTeamAssociationsResponse Google.Api.Ads.AdManager.v202311.UserTeamAssociationServiceInterface.updateUserTeamAssociations(Wrappers.UserTeamAssociationService.updateUserTeamAssociationsRequest request) { - return base.Channel.updateUserTeamAssociations(request); + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public long liveStreamEventId { + get { + return this.liveStreamEventIdField; + } + set { + this.liveStreamEventIdField = value; + this.liveStreamEventIdSpecified = true; + } } - /// Updates the specified UserTeamAssociation - /// objects. - /// - public virtual Google.Api.Ads.AdManager.v202311.UserTeamAssociation[] updateUserTeamAssociations(Google.Api.Ads.AdManager.v202311.UserTeamAssociation[] userTeamAssociations) { - Wrappers.UserTeamAssociationService.updateUserTeamAssociationsRequest inValue = new Wrappers.UserTeamAssociationService.updateUserTeamAssociationsRequest(); - inValue.userTeamAssociations = userTeamAssociations; - Wrappers.UserTeamAssociationService.updateUserTeamAssociationsResponse retVal = ((Google.Api.Ads.AdManager.v202311.UserTeamAssociationServiceInterface)(this)).updateUserTeamAssociations(inValue); - return retVal.rval; + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool liveStreamEventIdSpecified { + get { + return this.liveStreamEventIdFieldSpecified; + } + set { + this.liveStreamEventIdFieldSpecified = value; + } } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202311.UserTeamAssociationServiceInterface.updateUserTeamAssociationsAsync(Wrappers.UserTeamAssociationService.updateUserTeamAssociationsRequest request) { - return base.Channel.updateUserTeamAssociationsAsync(request); + [System.Xml.Serialization.XmlElementAttribute(Order = 3)] + public DateTime eventStartDateTime { + get { + return this.eventStartDateTimeField; + } + set { + this.eventStartDateTimeField = value; + } } - public virtual System.Threading.Tasks.Task updateUserTeamAssociationsAsync(Google.Api.Ads.AdManager.v202311.UserTeamAssociation[] userTeamAssociations) { - Wrappers.UserTeamAssociationService.updateUserTeamAssociationsRequest inValue = new Wrappers.UserTeamAssociationService.updateUserTeamAssociationsRequest(); - inValue.userTeamAssociations = userTeamAssociations; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202311.UserTeamAssociationServiceInterface)(this)).updateUserTeamAssociationsAsync(inValue)).Result.rval); + [System.Xml.Serialization.XmlElementAttribute(Order = 4)] + public DateTime eventEndDateTime { + get { + return this.eventEndDateTimeField; + } + set { + this.eventEndDateTimeField = value; + } } - } - namespace Wrappers.NativeStyleService - { - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "createNativeStyles", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class createNativeStylesRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("nativeStyles")] - public Google.Api.Ads.AdManager.v202311.NativeStyle[] nativeStyles; - /// Creates a new instance of the - /// class. - public createNativeStylesRequest() { + [System.Xml.Serialization.XmlElementAttribute(Order = 5)] + public bool prefetchEnabled { + get { + return this.prefetchEnabledField; } - - /// Creates a new instance of the - /// class. - public createNativeStylesRequest(Google.Api.Ads.AdManager.v202311.NativeStyle[] nativeStyles) { - this.nativeStyles = nativeStyles; + set { + this.prefetchEnabledField = value; + this.prefetchEnabledSpecified = true; } } - - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "createNativeStylesResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class createNativeStylesResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v202311.NativeStyle[] rval; - - /// Creates a new instance of the - /// class. - public createNativeStylesResponse() { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool prefetchEnabledSpecified { + get { + return this.prefetchEnabledFieldSpecified; } - - /// Creates a new instance of the - /// class. - public createNativeStylesResponse(Google.Api.Ads.AdManager.v202311.NativeStyle[] rval) { - this.rval = rval; + set { + this.prefetchEnabledFieldSpecified = value; } } - - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "updateNativeStyles", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class updateNativeStylesRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("nativeStyles")] - public Google.Api.Ads.AdManager.v202311.NativeStyle[] nativeStyles; - - /// Creates a new instance of the - /// class. - public updateNativeStylesRequest() { + [System.Xml.Serialization.XmlElementAttribute(Order = 6)] + public bool podTrimmingEnabled { + get { + return this.podTrimmingEnabledField; } - - /// Creates a new instance of the - /// class. - public updateNativeStylesRequest(Google.Api.Ads.AdManager.v202311.NativeStyle[] nativeStyles) { - this.nativeStyles = nativeStyles; + set { + this.podTrimmingEnabledField = value; + this.podTrimmingEnabledSpecified = true; } } - - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "updateNativeStylesResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class updateNativeStylesResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v202311.NativeStyle[] rval; - - /// Creates a new instance of the - /// class. - public updateNativeStylesResponse() { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool podTrimmingEnabledSpecified { + get { + return this.podTrimmingEnabledFieldSpecified; } - - /// Creates a new instance of the - /// class. - public updateNativeStylesResponse(Google.Api.Ads.AdManager.v202311.NativeStyle[] rval) { - this.rval = rval; + set { + this.podTrimmingEnabledFieldSpecified = value; } } } - /// Used to define the look and feel of native ads, for both web and apps. Native - /// styles determine how native creatives look for a segment of inventory. - /// + + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class NativeStyle { - private long idField; - - private bool idFieldSpecified; - - private string nameField; - - private string htmlSnippetField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class SamSession { + private string sessionIdField; - private string cssSnippetField; + private bool isVodSessionField; - private long creativeTemplateIdField; + private bool isVodSessionFieldSpecified; - private bool creativeTemplateIdFieldSpecified; + private StreamCreateRequest streamCreateRequestField; - private bool isFluidField; + private AdBreak[] adBreaksField; - private bool isFluidFieldSpecified; + private DateTime startDateTimeField; - private Targeting targetingField; + private long sessionDurationMillisField; - private NativeStyleStatus statusField; + private bool sessionDurationMillisFieldSpecified; - private bool statusFieldSpecified; + private long contentDurationMillisField; - private Size sizeField; + private bool contentDurationMillisFieldSpecified; - /// Uniquely identifies the NativeStyle. This attribute is read-only - /// and is assigned by Google when a native style is created. - /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public long id { + public string sessionId { get { - return this.idField; + return this.sessionIdField; } set { - this.idField = value; - this.idSpecified = true; + this.sessionIdField = value; } } - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool idSpecified { + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public bool isVodSession { get { - return this.idFieldSpecified; + return this.isVodSessionField; } set { - this.idFieldSpecified = value; + this.isVodSessionField = value; + this.isVodSessionSpecified = true; } } - /// The name of the native style. This attribute is required and has a maximum - /// length of 255 characters. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public string name { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool isVodSessionSpecified { get { - return this.nameField; + return this.isVodSessionFieldSpecified; } set { - this.nameField = value; + this.isVodSessionFieldSpecified = value; } } - /// The HTML snippet of the native style with placeholders for the associated - /// variables. This attribute is required. - /// [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public string htmlSnippet { + public StreamCreateRequest streamCreateRequest { get { - return this.htmlSnippetField; + return this.streamCreateRequestField; } set { - this.htmlSnippetField = value; + this.streamCreateRequestField = value; } } - /// The CSS snippet of the native style, with placeholders for the associated - /// variables. This attribute is required. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public string cssSnippet { + [System.Xml.Serialization.XmlElementAttribute("adBreaks", Order = 3)] + public AdBreak[] adBreaks { get { - return this.cssSnippetField; + return this.adBreaksField; } set { - this.cssSnippetField = value; + this.adBreaksField = value; } } - /// The creative template ID this native style associated with. This attribute is - /// required on creation and is read-only afterwards. - /// [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public long creativeTemplateId { - get { - return this.creativeTemplateIdField; - } - set { - this.creativeTemplateIdField = value; - this.creativeTemplateIdSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool creativeTemplateIdSpecified { + public DateTime startDateTime { get { - return this.creativeTemplateIdFieldSpecified; + return this.startDateTimeField; } set { - this.creativeTemplateIdFieldSpecified = value; + this.startDateTimeField = value; } } - /// Whether this is a fluid size native style. If true, this must be - /// used with 1x1 size. - /// [System.Xml.Serialization.XmlElementAttribute(Order = 5)] - public bool isFluid { + public long sessionDurationMillis { get { - return this.isFluidField; + return this.sessionDurationMillisField; } set { - this.isFluidField = value; - this.isFluidSpecified = true; + this.sessionDurationMillisField = value; + this.sessionDurationMillisSpecified = true; } } - /// true, if a value is specified for , - /// false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool isFluidSpecified { - get { - return this.isFluidFieldSpecified; - } - set { - this.isFluidFieldSpecified = value; - } - } - - /// The targeting criteria for this native style. Only ad unit and key-value - /// targeting are supported at this time. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 6)] - public Targeting targeting { - get { - return this.targetingField; - } - set { - this.targetingField = value; - } - } - - /// The status of the native style. This attribute is read-only. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 7)] - public NativeStyleStatus status { + public bool sessionDurationMillisSpecified { get { - return this.statusField; + return this.sessionDurationMillisFieldSpecified; } set { - this.statusField = value; - this.statusSpecified = true; + this.sessionDurationMillisFieldSpecified = value; } } - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool statusSpecified { + [System.Xml.Serialization.XmlElementAttribute(Order = 6)] + public long contentDurationMillis { get { - return this.statusFieldSpecified; + return this.contentDurationMillisField; } set { - this.statusFieldSpecified = value; + this.contentDurationMillisField = value; + this.contentDurationMillisSpecified = true; } } - /// The size of the native style. This attribute is required. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 8)] - public Size size { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool contentDurationMillisSpecified { get { - return this.sizeField; + return this.contentDurationMillisFieldSpecified; } set { - this.sizeField = value; + this.contentDurationMillisFieldSpecified = value; } } } - /// Describes status of the native style. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum NativeStyleStatus { - /// The native style is active. Active native styles are used in ad serving. - /// - ACTIVE = 0, - /// The native style is archived. Archived native styles are not visible in the UI - /// and not used in ad serving. - /// - ARCHIVED = 1, - /// The native style is inactive. Inactive native styles are not used in ad serving, - /// but visible in the UI. - /// - INACTIVE = 3, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 2, - } - - - /// Errors for native styles. - /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class NativeStyleError : ApiError { - private NativeStyleErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class SamSessionError : ApiError { + private SamSessionErrorReason reasonField; private bool reasonFieldSpecified; - /// The error reason represented by an enum. - /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public NativeStyleErrorReason reason { + public SamSessionErrorReason reason { get { return this.reasonField; } @@ -55964,461 +54554,165 @@ public bool reasonSpecified { } - /// The reasons for the target error. - /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "NativeStyleError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum NativeStyleErrorReason { - /// Native styles can only be created under active creative templates. - /// - ACTIVE_CREATIVE_TEMPLATE_REQUIRED = 2, - /// Targeting expressions on the NativeStyle can only have custom criteria targeting - /// with CustomTargetingValue.MatchType#EXACT. - /// - INVALID_CUSTOM_TARGETING_MATCH_TYPE = 4, - /// Native styles only allows inclusion of inventory units. - /// - INVALID_INVENTORY_TARTGETING_TYPE = 6, - /// The status of a native style cannot be null. - /// - INVALID_STATUS = 10, - /// Targeting expressions on the native style can only have inventory targeting - /// and/or custom targeting. - /// - INVALID_TARGETING_TYPE = 5, - /// Native styles can only be created under native creative templates. - /// - NATIVE_CREATIVE_TEMPLATE_REQUIRED = 1, - /// Targeting expressions on native styles can have a maximum of 20 key-value pairs. - /// - TOO_MANY_CUSTOM_TARGETING_KEY_VALUES = 9, - /// Native styles must have an HTML snippet. - /// - UNIQUE_SNIPPET_REQUIRED = 3, - /// The macro referenced in the snippet is not valid. - /// - UNRECOGNIZED_MACRO = 7, - /// The snippet of the native style contains a placeholder which is not defined as a - /// variable on the creative template of this native style. - /// - UNRECOGNIZED_PLACEHOLDER = 0, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 8, + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "SamSessionError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum SamSessionErrorReason { + COULD_NOT_REGISTER_SESSION = 0, + MALFORMED_SESSION_ID = 1, + INVALID_SESSION_ID = 3, + INVALID_DEBUG_KEY = 4, + REQUEST_EXCEEDS_SESSION_LIMIT = 5, + UNKNOWN = 2, } [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", ConfigurationName = "Google.Api.Ads.AdManager.v202311.NativeStyleServiceInterface")] - public interface NativeStyleServiceInterface + [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", ConfigurationName = "Google.Api.Ads.AdManager.v202411.StreamActivityMonitorServiceInterface")] + public interface StreamActivityMonitorServiceInterface { // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Wrappers.NativeStyleService.createNativeStylesResponse createNativeStyles(Wrappers.NativeStyleService.createNativeStylesRequest request); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task createNativeStylesAsync(Wrappers.NativeStyleService.createNativeStylesRequest request); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v202311.NativeStylePage getNativeStylesByStatement(Google.Api.Ads.AdManager.v202311.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getNativeStylesByStatementAsync(Google.Api.Ads.AdManager.v202311.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v202311.UpdateResult performNativeStyleAction(Google.Api.Ads.AdManager.v202311.NativeStyleAction nativeStyleAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement); + Wrappers.StreamActivityMonitorService.getSamSessionsByStatementResponse getSamSessionsByStatement(Wrappers.StreamActivityMonitorService.getSamSessionsByStatementRequest request); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task performNativeStyleActionAsync(Google.Api.Ads.AdManager.v202311.NativeStyleAction nativeStyleAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement); + System.Threading.Tasks.Task getSamSessionsByStatementAsync(Wrappers.StreamActivityMonitorService.getSamSessionsByStatementRequest request); // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Wrappers.NativeStyleService.updateNativeStylesResponse updateNativeStyles(Wrappers.NativeStyleService.updateNativeStylesRequest request); + Wrappers.StreamActivityMonitorService.registerSessionsForMonitoringResponse registerSessionsForMonitoring(Wrappers.StreamActivityMonitorService.registerSessionsForMonitoringRequest request); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task updateNativeStylesAsync(Wrappers.NativeStyleService.updateNativeStylesRequest request); - } - - - /// Captures a page of NativeStyle objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class NativeStylePage { - private int totalResultSetSizeField; - - private bool totalResultSetSizeFieldSpecified; - - private int startIndexField; - - private bool startIndexFieldSpecified; - - private NativeStyle[] resultsField; - - /// The size of the total result set to which this page belongs. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public int totalResultSetSize { - get { - return this.totalResultSetSizeField; - } - set { - this.totalResultSetSizeField = value; - this.totalResultSetSizeSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool totalResultSetSizeSpecified { - get { - return this.totalResultSetSizeFieldSpecified; - } - set { - this.totalResultSetSizeFieldSpecified = value; - } - } - - /// The absolute index in the total result set on which this page begins. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public int startIndex { - get { - return this.startIndexField; - } - set { - this.startIndexField = value; - this.startIndexSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool startIndexSpecified { - get { - return this.startIndexFieldSpecified; - } - set { - this.startIndexFieldSpecified = value; - } - } - - /// The collection of native styles contained within this page. - /// - [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] - public NativeStyle[] results { - get { - return this.resultsField; - } - set { - this.resultsField = value; - } - } - } - - - /// Represents an action that can be performed on native styles. - /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(DeactivateNativeStyles))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ArchiveNativeStyles))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ActivateNativeStyles))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public abstract partial class NativeStyleAction { - } - - - /// Action to deactivate native styles. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class DeactivateNativeStyles : NativeStyleAction { - } - - - /// Action to archive native styles. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ArchiveNativeStyles : NativeStyleAction { - } - - - /// Action to activate native styles. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ActivateNativeStyles : NativeStyleAction { + System.Threading.Tasks.Task registerSessionsForMonitoringAsync(Wrappers.StreamActivityMonitorService.registerSessionsForMonitoringRequest request); } [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public interface NativeStyleServiceInterfaceChannel : Google.Api.Ads.AdManager.v202311.NativeStyleServiceInterface, System.ServiceModel.IClientChannel + public interface StreamActivityMonitorServiceInterfaceChannel : Google.Api.Ads.AdManager.v202411.StreamActivityMonitorServiceInterface, System.ServiceModel.IClientChannel { } - /// Provides methods for creating and retrieving NativeStyle objects. - /// [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public partial class NativeStyleService : AdManagerSoapClient, INativeStyleService { - /// Creates a new instance of the class. - /// - public NativeStyleService() { + public partial class StreamActivityMonitorService : AdManagerSoapClient, IStreamActivityMonitorService { + /// Creates a new instance of the class. + public StreamActivityMonitorService() { } - /// Creates a new instance of the class. - /// - public NativeStyleService(string endpointConfigurationName) + /// Creates a new instance of the class. + public StreamActivityMonitorService(string endpointConfigurationName) : base(endpointConfigurationName) { } - /// Creates a new instance of the class. - /// - public NativeStyleService(string endpointConfigurationName, string remoteAddress) + /// Creates a new instance of the class. + public StreamActivityMonitorService(string endpointConfigurationName, string remoteAddress) : base(endpointConfigurationName, remoteAddress) { } - /// Creates a new instance of the class. - /// - public NativeStyleService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) + /// Creates a new instance of the class. + public StreamActivityMonitorService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) : base(endpointConfigurationName, remoteAddress) { } - /// Creates a new instance of the class. - /// - public NativeStyleService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) + /// Creates a new instance of the class. + public StreamActivityMonitorService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) : base(binding, remoteAddress) { } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.NativeStyleService.createNativeStylesResponse Google.Api.Ads.AdManager.v202311.NativeStyleServiceInterface.createNativeStyles(Wrappers.NativeStyleService.createNativeStylesRequest request) { - return base.Channel.createNativeStyles(request); + Wrappers.StreamActivityMonitorService.getSamSessionsByStatementResponse Google.Api.Ads.AdManager.v202411.StreamActivityMonitorServiceInterface.getSamSessionsByStatement(Wrappers.StreamActivityMonitorService.getSamSessionsByStatementRequest request) { + return base.Channel.getSamSessionsByStatement(request); } - /// Creates new NativeStyle objects. + /// Returns the logging information for a DAI session. A DAI session can be + /// identified by it's session id or debug key. The session ID must be registered + /// via the registerSessionsForMonitoring method before it can be + /// accessed. There may be some delay before the session is available.

The number + /// of sessions requested is limited to 25. The following fields are supported for + /// filtering:

+ ///
Entity property PQL filter
Session id 'sessionId'
Debug + /// key 'debugKey"
///
- public virtual Google.Api.Ads.AdManager.v202311.NativeStyle[] createNativeStyles(Google.Api.Ads.AdManager.v202311.NativeStyle[] nativeStyles) { - Wrappers.NativeStyleService.createNativeStylesRequest inValue = new Wrappers.NativeStyleService.createNativeStylesRequest(); - inValue.nativeStyles = nativeStyles; - Wrappers.NativeStyleService.createNativeStylesResponse retVal = ((Google.Api.Ads.AdManager.v202311.NativeStyleServiceInterface)(this)).createNativeStyles(inValue); + public virtual Google.Api.Ads.AdManager.v202411.SamSession[] getSamSessionsByStatement(Google.Api.Ads.AdManager.v202411.Statement statement) { + Wrappers.StreamActivityMonitorService.getSamSessionsByStatementRequest inValue = new Wrappers.StreamActivityMonitorService.getSamSessionsByStatementRequest(); + inValue.statement = statement; + Wrappers.StreamActivityMonitorService.getSamSessionsByStatementResponse retVal = ((Google.Api.Ads.AdManager.v202411.StreamActivityMonitorServiceInterface)(this)).getSamSessionsByStatement(inValue); return retVal.rval; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202311.NativeStyleServiceInterface.createNativeStylesAsync(Wrappers.NativeStyleService.createNativeStylesRequest request) { - return base.Channel.createNativeStylesAsync(request); - } - - public virtual System.Threading.Tasks.Task createNativeStylesAsync(Google.Api.Ads.AdManager.v202311.NativeStyle[] nativeStyles) { - Wrappers.NativeStyleService.createNativeStylesRequest inValue = new Wrappers.NativeStyleService.createNativeStylesRequest(); - inValue.nativeStyles = nativeStyles; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202311.NativeStyleServiceInterface)(this)).createNativeStylesAsync(inValue)).Result.rval); - } - - /// Gets a NativeStylePage of NativeStyle objects that satisfy the given Statement. The following fields are supported for - /// filtering: - ///
PQL Property Object - /// Property
id NativeStyle#id
name NativeStyle#name
- ///
- public virtual Google.Api.Ads.AdManager.v202311.NativeStylePage getNativeStylesByStatement(Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.getNativeStylesByStatement(filterStatement); - } - - public virtual System.Threading.Tasks.Task getNativeStylesByStatementAsync(Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.getNativeStylesByStatementAsync(filterStatement); - } - - /// Performs actions on native styles that match the given - /// Statement. - /// - public virtual Google.Api.Ads.AdManager.v202311.UpdateResult performNativeStyleAction(Google.Api.Ads.AdManager.v202311.NativeStyleAction nativeStyleAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.performNativeStyleAction(nativeStyleAction, filterStatement); + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202411.StreamActivityMonitorServiceInterface.getSamSessionsByStatementAsync(Wrappers.StreamActivityMonitorService.getSamSessionsByStatementRequest request) { + return base.Channel.getSamSessionsByStatementAsync(request); } - public virtual System.Threading.Tasks.Task performNativeStyleActionAsync(Google.Api.Ads.AdManager.v202311.NativeStyleAction nativeStyleAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.performNativeStyleActionAsync(nativeStyleAction, filterStatement); + public virtual System.Threading.Tasks.Task getSamSessionsByStatementAsync(Google.Api.Ads.AdManager.v202411.Statement statement) { + Wrappers.StreamActivityMonitorService.getSamSessionsByStatementRequest inValue = new Wrappers.StreamActivityMonitorService.getSamSessionsByStatementRequest(); + inValue.statement = statement; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202411.StreamActivityMonitorServiceInterface)(this)).getSamSessionsByStatementAsync(inValue)).Result.rval); } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.NativeStyleService.updateNativeStylesResponse Google.Api.Ads.AdManager.v202311.NativeStyleServiceInterface.updateNativeStyles(Wrappers.NativeStyleService.updateNativeStylesRequest request) { - return base.Channel.updateNativeStyles(request); + Wrappers.StreamActivityMonitorService.registerSessionsForMonitoringResponse Google.Api.Ads.AdManager.v202411.StreamActivityMonitorServiceInterface.registerSessionsForMonitoring(Wrappers.StreamActivityMonitorService.registerSessionsForMonitoringRequest request) { + return base.Channel.registerSessionsForMonitoring(request); } - /// Updates the specified NativeStyle objects. + /// Registers the specified list of sessionIds for monitoring. Once the + /// session IDs have been registered, all logged information about the sessions will + /// be persisted and can be viewed via the Ad Manager UI.

A session ID is a + /// unique identifier of a single user watching a live stream event.

///
- public virtual Google.Api.Ads.AdManager.v202311.NativeStyle[] updateNativeStyles(Google.Api.Ads.AdManager.v202311.NativeStyle[] nativeStyles) { - Wrappers.NativeStyleService.updateNativeStylesRequest inValue = new Wrappers.NativeStyleService.updateNativeStylesRequest(); - inValue.nativeStyles = nativeStyles; - Wrappers.NativeStyleService.updateNativeStylesResponse retVal = ((Google.Api.Ads.AdManager.v202311.NativeStyleServiceInterface)(this)).updateNativeStyles(inValue); + public virtual string[] registerSessionsForMonitoring(string[] sessionIds) { + Wrappers.StreamActivityMonitorService.registerSessionsForMonitoringRequest inValue = new Wrappers.StreamActivityMonitorService.registerSessionsForMonitoringRequest(); + inValue.sessionIds = sessionIds; + Wrappers.StreamActivityMonitorService.registerSessionsForMonitoringResponse retVal = ((Google.Api.Ads.AdManager.v202411.StreamActivityMonitorServiceInterface)(this)).registerSessionsForMonitoring(inValue); return retVal.rval; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202311.NativeStyleServiceInterface.updateNativeStylesAsync(Wrappers.NativeStyleService.updateNativeStylesRequest request) { - return base.Channel.updateNativeStylesAsync(request); + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202411.StreamActivityMonitorServiceInterface.registerSessionsForMonitoringAsync(Wrappers.StreamActivityMonitorService.registerSessionsForMonitoringRequest request) { + return base.Channel.registerSessionsForMonitoringAsync(request); } - public virtual System.Threading.Tasks.Task updateNativeStylesAsync(Google.Api.Ads.AdManager.v202311.NativeStyle[] nativeStyles) { - Wrappers.NativeStyleService.updateNativeStylesRequest inValue = new Wrappers.NativeStyleService.updateNativeStylesRequest(); - inValue.nativeStyles = nativeStyles; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202311.NativeStyleServiceInterface)(this)).updateNativeStylesAsync(inValue)).Result.rval); + public virtual System.Threading.Tasks.Task registerSessionsForMonitoringAsync(string[] sessionIds) { + Wrappers.StreamActivityMonitorService.registerSessionsForMonitoringRequest inValue = new Wrappers.StreamActivityMonitorService.registerSessionsForMonitoringRequest(); + inValue.sessionIds = sessionIds; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202411.StreamActivityMonitorServiceInterface)(this)).registerSessionsForMonitoringAsync(inValue)).Result.rval); } } - namespace Wrappers.AdjustmentService + namespace Wrappers.DaiEncodingProfileService { [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "createForecastAdjustments", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class createForecastAdjustmentsRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("forecastAdjustments")] - public Google.Api.Ads.AdManager.v202311.ForecastAdjustment[] forecastAdjustments; - - /// Creates a new instance of the class. - public createForecastAdjustmentsRequest() { - } - - /// Creates a new instance of the class. - public createForecastAdjustmentsRequest(Google.Api.Ads.AdManager.v202311.ForecastAdjustment[] forecastAdjustments) { - this.forecastAdjustments = forecastAdjustments; - } - } - - - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "createForecastAdjustmentsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class createForecastAdjustmentsResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v202311.ForecastAdjustment[] rval; - - /// Creates a new instance of the class. - public createForecastAdjustmentsResponse() { - } - - /// Creates a new instance of the class. - public createForecastAdjustmentsResponse(Google.Api.Ads.AdManager.v202311.ForecastAdjustment[] rval) { - this.rval = rval; - } - } - - - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "createTrafficForecastSegments", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class createTrafficForecastSegmentsRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("trafficForecastSegments")] - public Google.Api.Ads.AdManager.v202311.TrafficForecastSegment[] trafficForecastSegments; - - /// Creates a new instance of the class. - public createTrafficForecastSegmentsRequest() { - } - - /// Creates a new instance of the class. - public createTrafficForecastSegmentsRequest(Google.Api.Ads.AdManager.v202311.TrafficForecastSegment[] trafficForecastSegments) { - this.trafficForecastSegments = trafficForecastSegments; - } - } - - - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "createTrafficForecastSegmentsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class createTrafficForecastSegmentsResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v202311.TrafficForecastSegment[] rval; - - /// Creates a new instance of the class. - public createTrafficForecastSegmentsResponse() { - } - - /// Creates a new instance of the class. - public createTrafficForecastSegmentsResponse(Google.Api.Ads.AdManager.v202311.TrafficForecastSegment[] rval) { - this.rval = rval; - } - } - - - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "updateForecastAdjustments", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class updateForecastAdjustmentsRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("forecastAdjustments")] - public Google.Api.Ads.AdManager.v202311.ForecastAdjustment[] forecastAdjustments; + [System.ServiceModel.MessageContractAttribute(WrapperName = "createDaiEncodingProfiles", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class createDaiEncodingProfilesRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("daiEncodingProfiles")] + public Google.Api.Ads.AdManager.v202411.DaiEncodingProfile[] daiEncodingProfiles; /// Creates a new instance of the class. - public updateForecastAdjustmentsRequest() { + /// cref="createDaiEncodingProfilesRequest"/> class.
+ public createDaiEncodingProfilesRequest() { } /// Creates a new instance of the class. - public updateForecastAdjustmentsRequest(Google.Api.Ads.AdManager.v202311.ForecastAdjustment[] forecastAdjustments) { - this.forecastAdjustments = forecastAdjustments; + /// cref="createDaiEncodingProfilesRequest"/> class.
+ public createDaiEncodingProfilesRequest(Google.Api.Ads.AdManager.v202411.DaiEncodingProfile[] daiEncodingProfiles) { + this.daiEncodingProfiles = daiEncodingProfiles; } } @@ -56426,20 +54720,20 @@ public updateForecastAdjustmentsRequest(Google.Api.Ads.AdManager.v202311.Forecas [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "updateForecastAdjustmentsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class updateForecastAdjustmentsResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "createDaiEncodingProfilesResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class createDaiEncodingProfilesResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v202311.ForecastAdjustment[] rval; + public Google.Api.Ads.AdManager.v202411.DaiEncodingProfile[] rval; /// Creates a new instance of the class. - public updateForecastAdjustmentsResponse() { + /// cref="createDaiEncodingProfilesResponse"/> class.
+ public createDaiEncodingProfilesResponse() { } /// Creates a new instance of the class. - public updateForecastAdjustmentsResponse(Google.Api.Ads.AdManager.v202311.ForecastAdjustment[] rval) { + /// cref="createDaiEncodingProfilesResponse"/> class.
+ public createDaiEncodingProfilesResponse(Google.Api.Ads.AdManager.v202411.DaiEncodingProfile[] rval) { this.rval = rval; } } @@ -56448,21 +54742,21 @@ public updateForecastAdjustmentsResponse(Google.Api.Ads.AdManager.v202311.Foreca [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "updateTrafficForecastSegments", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class updateTrafficForecastSegmentsRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("trafficForecastSegments")] - public Google.Api.Ads.AdManager.v202311.TrafficForecastSegment[] trafficForecastSegments; + [System.ServiceModel.MessageContractAttribute(WrapperName = "updateDaiEncodingProfiles", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class updateDaiEncodingProfilesRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("daiEncodingProfiles")] + public Google.Api.Ads.AdManager.v202411.DaiEncodingProfile[] daiEncodingProfiles; /// Creates a new instance of the class. - public updateTrafficForecastSegmentsRequest() { + /// cref="updateDaiEncodingProfilesRequest"/> class.
+ public updateDaiEncodingProfilesRequest() { } /// Creates a new instance of the class. - public updateTrafficForecastSegmentsRequest(Google.Api.Ads.AdManager.v202311.TrafficForecastSegment[] trafficForecastSegments) { - this.trafficForecastSegments = trafficForecastSegments; + /// cref="updateDaiEncodingProfilesRequest"/> class.
+ public updateDaiEncodingProfilesRequest(Google.Api.Ads.AdManager.v202411.DaiEncodingProfile[] daiEncodingProfiles) { + this.daiEncodingProfiles = daiEncodingProfiles; } } @@ -56470,224 +54764,275 @@ public updateTrafficForecastSegmentsRequest(Google.Api.Ads.AdManager.v202311.Tra [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "updateTrafficForecastSegmentsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class updateTrafficForecastSegmentsResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "updateDaiEncodingProfilesResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class updateDaiEncodingProfilesResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v202311.TrafficForecastSegment[] rval; + public Google.Api.Ads.AdManager.v202411.DaiEncodingProfile[] rval; /// Creates a new instance of the class. - public updateTrafficForecastSegmentsResponse() { + /// cref="updateDaiEncodingProfilesResponse"/> class.
+ public updateDaiEncodingProfilesResponse() { } /// Creates a new instance of the class. - public updateTrafficForecastSegmentsResponse(Google.Api.Ads.AdManager.v202311.TrafficForecastSegment[] rval) { + /// cref="updateDaiEncodingProfilesResponse"/> class.
+ public updateDaiEncodingProfilesResponse(Google.Api.Ads.AdManager.v202411.DaiEncodingProfile[] rval) { this.rval = rval; } } } - /// Settings to specify the volume of ad opportunities per day over the ForecastAdjustment date range based on the traffic - /// volume of a historical reference period.

The daily historical traffic for the - /// provided targeting and date range is fetched, multiplied by the provided - /// multiplier, and used as the daily expected traffic for the adjustment.

- ///

The number of days included in the historical date range does *not* need to - /// be the same as the number of days included in the adjustment date range.

+ /// Information about the audio settings of an encoding profile. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class HistoricalBasisVolumeSettings { - private bool useParentTrafficForecastSegmentTargetingField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class AudioSettings { + private string codecField; - private bool useParentTrafficForecastSegmentTargetingFieldSpecified; + private long bitrateField; - private Targeting targetingField; + private bool bitrateFieldSpecified; - private DateRange historicalDateRangeField; + private long channelsField; - private long multiplierMilliPercentField; + private bool channelsFieldSpecified; - private bool multiplierMilliPercentFieldSpecified; + private long sampleRateHertzField; - /// Whether the parent traffic forecast segment targeting's or the - /// targeting's historical volume data should be used. This attribute is required. + private bool sampleRateHertzFieldSpecified; + + /// The RFC6381 codec string of the audio. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public string codec { + get { + return this.codecField; + } + set { + this.codecField = value; + } + } + + /// The bitrate of the audio, in bits per second. Required. This value must be + /// between 8kbps and 250 Mbps. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public bool useParentTrafficForecastSegmentTargeting { + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public long bitrate { get { - return this.useParentTrafficForecastSegmentTargetingField; + return this.bitrateField; } set { - this.useParentTrafficForecastSegmentTargetingField = value; - this.useParentTrafficForecastSegmentTargetingSpecified = true; + this.bitrateField = value; + this.bitrateSpecified = true; } } - /// true, if a value is specified for , false - /// otherwise. + /// true, if a value is specified for , + /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool useParentTrafficForecastSegmentTargetingSpecified { + public bool bitrateSpecified { get { - return this.useParentTrafficForecastSegmentTargetingFieldSpecified; + return this.bitrateFieldSpecified; } set { - this.useParentTrafficForecastSegmentTargetingFieldSpecified = value; + this.bitrateFieldSpecified = value; } } - /// The targeting criteria to use as the source of the historical volume data. This - /// field is required if is false and ignored otherwise. + /// The number of audio channels, including low frequency channels. This value has a + /// maximum of 8. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public Targeting targeting { + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public long channels { get { - return this.targetingField; + return this.channelsField; } set { - this.targetingField = value; + this.channelsField = value; + this.channelsSpecified = true; } } - /// The date range to use for the historical ad opportunity volume. This attribute is required. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public DateRange historicalDateRange { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool channelsSpecified { get { - return this.historicalDateRangeField; + return this.channelsFieldSpecified; } set { - this.historicalDateRangeField = value; + this.channelsFieldSpecified = value; } } - /// The multiplier to apply to the historical traffic volume, expressed in - /// thousandths of a percent. For example, to set the forecasted traffic as 130% of - /// the historical traffic, this value would be 130,000. This attribute is required. + /// The audio sample rate in hertz. Must be between 44kHz and 100kHz. /// [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public long multiplierMilliPercent { + public long sampleRateHertz { get { - return this.multiplierMilliPercentField; + return this.sampleRateHertzField; } set { - this.multiplierMilliPercentField = value; - this.multiplierMilliPercentSpecified = true; + this.sampleRateHertzField = value; + this.sampleRateHertzSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="sampleRateHertz" />, false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool multiplierMilliPercentSpecified { + public bool sampleRateHertzSpecified { get { - return this.multiplierMilliPercentFieldSpecified; + return this.sampleRateHertzFieldSpecified; } set { - this.multiplierMilliPercentFieldSpecified = value; + this.sampleRateHertzFieldSpecified = value; } } } - /// Settings to specify a single total traffic volume that will be used as the - /// expected total future volume for a forecast adjustment.

For example, an - /// adOpportunityCount of 3,000 indicates a forecast goal for the - /// targeting specified on the parent traffic forecast segment of 3,000 ad - /// opportunities over the entire duration of the adjustment.

+ /// Information about the video settings of an encoding profile. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class TotalVolumeSettings { - private long adOpportunityCountField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class VideoSettings { + private string codecField; - private bool adOpportunityCountFieldSpecified; + private long bitrateField; - /// The total ad opportunity count over the entire forecast adjustment date range. - /// This attribute is required. + private bool bitrateFieldSpecified; + + private double framesPerSecondField; + + private bool framesPerSecondFieldSpecified; + + private Size resolutionField; + + /// The RFC6381 codec string of the audio. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public long adOpportunityCount { + public string codec { get { - return this.adOpportunityCountField; + return this.codecField; } set { - this.adOpportunityCountField = value; - this.adOpportunityCountSpecified = true; + this.codecField = value; + } + } + + /// The bitrate of the video, in bits per second. This value must be between 32kbps + /// and 250 Mbps. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public long bitrate { + get { + return this.bitrateField; + } + set { + this.bitrateField = value; + this.bitrateSpecified = true; + } + } + + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool bitrateSpecified { + get { + return this.bitrateFieldSpecified; + } + set { + this.bitrateFieldSpecified = value; + } + } + + /// The frames per second of the video. This value will be truncated to three + /// decimal places. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public double framesPerSecond { + get { + return this.framesPerSecondField; + } + set { + this.framesPerSecondField = value; + this.framesPerSecondSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="framesPerSecond" />, false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool adOpportunityCountSpecified { + public bool framesPerSecondSpecified { get { - return this.adOpportunityCountFieldSpecified; + return this.framesPerSecondFieldSpecified; } set { - this.adOpportunityCountFieldSpecified = value; + this.framesPerSecondFieldSpecified = value; + } + } + + /// The resolution of the video, in pixels. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 3)] + public Size resolution { + get { + return this.resolutionField; + } + set { + this.resolutionField = value; } } } - /// Provides information about the expected volume and composition of traffic over a - /// date range for a traffic forecast segment. + /// A DaiEncodingProfile contains data about a + /// publisher's encoding profiles. Ad Manager Dynamic Ad Insertion (DAI) uses the + /// profile information about the content to select an appropriate ad transcode to + /// play for the particular video. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ForecastAdjustment { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class DaiEncodingProfile { private long idField; private bool idFieldSpecified; - private long trafficForecastSegmentIdField; - - private bool trafficForecastSegmentIdFieldSpecified; - private string nameField; - private DateRange dateRangeField; - - private ForecastAdjustmentStatus statusField; + private DaiEncodingProfileStatus statusField; private bool statusFieldSpecified; - private ForecastAdjustmentVolumeType volumeTypeField; - - private bool volumeTypeFieldSpecified; - - private bool allowAdjustingForecastAboveRecommendedLimitField; + private VariantType variantTypeField; - private bool allowAdjustingForecastAboveRecommendedLimitFieldSpecified; + private bool variantTypeFieldSpecified; - private long[] dailyVolumeSettingsField; + private ContainerType containerTypeField; - private TotalVolumeSettings totalVolumeSettingsField; + private bool containerTypeFieldSpecified; - private HistoricalBasisVolumeSettings historicalBasisVolumeSettingsField; + private VideoSettings videoSettingsField; - private long[] calculatedDailyAdOpportunityCountsField; + private AudioSettings audioSettingsField; - /// The unique ID of the ForecastAdjustment. This field is read-only. This attribute - /// is read-only. + /// The unique ID of the DaiEncodingProfile. This + /// value is read-only and is assigned by Google. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] public long id { @@ -56713,268 +55058,391 @@ public bool idSpecified { } } - /// The ID of the parent TrafficForecastSegment. This field is required and - /// immutable after creation. This attribute is - /// required. + /// The name of the DaiEncodingProfile. This value + /// is required to create an encoding profile and may be at most 64 characters. The + /// name field can contain alphanumeric characters and symbols other than the + /// following: ", ', =, !, +, #, *, ~, ;, ^, (, ), <, >, [, ], the white space + /// character. /// [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public long trafficForecastSegmentId { + public string name { get { - return this.trafficForecastSegmentIdField; + return this.nameField; } set { - this.trafficForecastSegmentIdField = value; - this.trafficForecastSegmentIdSpecified = true; + this.nameField = value; } } - /// true, if a value is specified for , false otherwise. + /// The status of this DaiEncodingProfile.

DAI + /// encoding profiles are created in the DaiEncodingProfileStatus#ACTIVE + /// state. The status can only be modified through the DaiEncodingProfileService#performDaiEncodingProfileAction + /// method.

Only active profiles will be allowed to be associated with live + /// streams.

+ ///
+ [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public DaiEncodingProfileStatus status { + get { + return this.statusField; + } + set { + this.statusField = value; + this.statusSpecified = true; + } + } + + /// true, if a value is specified for , + /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool trafficForecastSegmentIdSpecified { + public bool statusSpecified { get { - return this.trafficForecastSegmentIdFieldSpecified; + return this.statusFieldSpecified; } set { - this.trafficForecastSegmentIdFieldSpecified = value; + this.statusFieldSpecified = value; } } - /// Name of the ForecastAdjustment. This attribute - /// is required. + /// The variant playlist type that this DaiEncodingProfile represents. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public string name { + [System.Xml.Serialization.XmlElementAttribute(Order = 3)] + public VariantType variantType { get { - return this.nameField; + return this.variantTypeField; } set { - this.nameField = value; + this.variantTypeField = value; + this.variantTypeSpecified = true; } } - /// The start and end date range of the adjustment. This attribute is required. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public DateRange dateRange { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool variantTypeSpecified { get { - return this.dateRangeField; + return this.variantTypeFieldSpecified; } set { - this.dateRangeField = value; + this.variantTypeFieldSpecified = value; } } - /// The status of the adjustment. Changes to this field should be made via - /// performForecastAdjustmentAction This attribute is read-only. + /// The digital container type of the underlying media. This is required for + /// MEDIA and IFRAME variant types. /// [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public ForecastAdjustmentStatus status { + public ContainerType containerType { get { - return this.statusField; + return this.containerTypeField; } set { - this.statusField = value; - this.statusSpecified = true; + this.containerTypeField = value; + this.containerTypeSpecified = true; } } - /// true, if a value is specified for , - /// false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool statusSpecified { + public bool containerTypeSpecified { get { - return this.statusFieldSpecified; + return this.containerTypeFieldSpecified; } set { - this.statusFieldSpecified = value; + this.containerTypeFieldSpecified = value; } } - /// The volume type of the adjustment. This - /// attribute is required. + /// Information about the video media, if present. This field will only be set if + /// the media contains video, or is an IFRAME variant type. /// [System.Xml.Serialization.XmlElementAttribute(Order = 5)] - public ForecastAdjustmentVolumeType volumeType { + public VideoSettings videoSettings { get { - return this.volumeTypeField; + return this.videoSettingsField; } set { - this.volumeTypeField = value; - this.volumeTypeSpecified = true; + this.videoSettingsField = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool volumeTypeSpecified { + /// Information about the audio media, if present. This field will only be set if + /// the media contains audio. Only MEDIA and variant + /// types can set audio. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 6)] + public AudioSettings audioSettings { get { - return this.volumeTypeFieldSpecified; + return this.audioSettingsField; } set { - this.volumeTypeFieldSpecified = value; + this.audioSettingsField = value; } } + } - /// Whether to allow provided volume settings to increase the current forecast by - /// more than 300%. Due to system constraints, adjusting the forecast by more than - /// 300% may have unintended consequences for other parts of the forecast.

Note - /// that this field will not persist on the adjustment itself, and will only affect - /// the current request.

+ + /// Describes the status of a DaiEncodingProfile + /// object. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum DaiEncodingProfileStatus { + /// Indicates the DaiEncodingProfile has been + /// created and is eligible for streaming. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 6)] - public bool allowAdjustingForecastAboveRecommendedLimit { + ACTIVE = 0, + /// Indicates the DaiEncodingProfile has been + /// archived. + /// + ARCHIVED = 1, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 2, + } + + + /// Describes the variant playlist type that the profile represents. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum VariantType { + /// Media variant playlist type. Media playlists may: contain audio only, video + /// only, or audio and video. + /// + MEDIA = 0, + /// iFrame variant playlist type. iFrame playlists may: contain video or contain + /// audio and video (i.e. video must be present). + /// + IFRAME = 1, + /// Subtitles variant playlist type. + /// + SUBTITLES = 2, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 3, + } + + + /// Describes the digital media container type of the underlying media. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum ContainerType { + /// Transport stream (TS) container. + /// + TS = 0, + /// Fragmented MPEG-4 (fMP4) output container. + /// + FMP4 = 1, + /// HTTP live streaming (HLS) packed audio container. + /// + HLS_AUDIO = 2, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 3, + } + + + /// Lists all errors associated with encoding profile variant settings. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class DaiEncodingProfileVariantSettingsError : ApiError { + private DaiEncodingProfileVariantSettingsErrorReason reasonField; + + private bool reasonFieldSpecified; + + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public DaiEncodingProfileVariantSettingsErrorReason reason { get { - return this.allowAdjustingForecastAboveRecommendedLimitField; + return this.reasonField; } set { - this.allowAdjustingForecastAboveRecommendedLimitField = value; - this.allowAdjustingForecastAboveRecommendedLimitSpecified = true; + this.reasonField = value; + this.reasonSpecified = true; } } - /// true, if a value is specified for , false - /// otherwise. + /// true, if a value is specified for , + /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool allowAdjustingForecastAboveRecommendedLimitSpecified { + public bool reasonSpecified { get { - return this.allowAdjustingForecastAboveRecommendedLimitFieldSpecified; + return this.reasonFieldSpecified; } set { - this.allowAdjustingForecastAboveRecommendedLimitFieldSpecified = value; + this.reasonFieldSpecified = value; } } + } - /// The daily number of ad opportunities for each day in the adjustment date range. - /// This field is required if volumeType is and ignored - /// othewise. + + /// Describes reasons for . + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "DaiEncodingProfileVariantSettingsError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum DaiEncodingProfileVariantSettingsErrorReason { + /// Container type is required for a MEDIA or IFRAME + /// variant. /// - [System.Xml.Serialization.XmlArrayAttribute(Order = 7)] - [System.Xml.Serialization.XmlArrayItemAttribute("adOpportunityCounts", IsNullable = false)] - public long[] dailyVolumeSettings { + CONTAINER_TYPE_REQUIRED = 0, + /// Video settings are only allowed for MEDIA or IFRAME + /// variant types. + /// + VIDEO_SETTINGS_NOT_ALLOWED = 1, + /// Audio settings are only allowed for MEDIA or IFRAME + /// variant types. + /// + AUDIO_SETTINGS_NOT_ALLOWED = 2, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 3, + } + + + /// Lists all errors associated with encoding profile updates. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class DaiEncodingProfileUpdateError : ApiError { + private DaiEncodingProfileUpdateErrorReason reasonField; + + private bool reasonFieldSpecified; + + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public DaiEncodingProfileUpdateErrorReason reason { get { - return this.dailyVolumeSettingsField; + return this.reasonField; } set { - this.dailyVolumeSettingsField = value; + this.reasonField = value; + this.reasonSpecified = true; } } - /// The total number of ad opportunities for the entire adjustment date range. This - /// field is required if volumeType is and ignored - /// othewise. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 8)] - public TotalVolumeSettings totalVolumeSettings { + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool reasonSpecified { get { - return this.totalVolumeSettingsField; + return this.reasonFieldSpecified; } set { - this.totalVolumeSettingsField = value; + this.reasonFieldSpecified = value; } } + } - /// The daily number of ad opportunities for each day in the adjustment date range, - /// determined by reference to the ad opportunity volume of a historical reference - /// period. This field is required if is and ignored - /// othewise. + + /// Describes reasons for DaiEncodingProfileNameError. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "DaiEncodingProfileUpdateError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum DaiEncodingProfileUpdateErrorReason { + /// Profiles cannot be updated if they are associated with running live stream + /// events. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 9)] - public HistoricalBasisVolumeSettings historicalBasisVolumeSettings { + CANNOT_UPDATE_IF_USED_BY_RUNNING_LIVE_STREAMS = 0, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 1, + } + + + /// Lists all errors associated with encoding profile names. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class DaiEncodingProfileNameError : ApiError { + private DaiEncodingProfileNameErrorReason reasonField; + + private bool reasonFieldSpecified; + + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public DaiEncodingProfileNameErrorReason reason { get { - return this.historicalBasisVolumeSettingsField; + return this.reasonField; } set { - this.historicalBasisVolumeSettingsField = value; + this.reasonField = value; + this.reasonSpecified = true; } } - /// The daily number of ad opportunities calculated to satisfy the provided volume - /// settings. Each value in this list represents the calculated ad opportunities on - /// the corresponding day of the adjustment date range. For example: for a - /// dateRange of 2001-8-15 to 2001-8-17, this field will contain one - /// value for 2001-8-15, one value for 2001-8-16, and one value for 2001-8-17. - ///

This field is read-only and is populated by Google after forecast adjustment - /// creation or update. This attribute is read-only.

- ///
- [System.Xml.Serialization.XmlElementAttribute("calculatedDailyAdOpportunityCounts", Order = 10)] - public long[] calculatedDailyAdOpportunityCounts { + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool reasonSpecified { get { - return this.calculatedDailyAdOpportunityCountsField; + return this.reasonFieldSpecified; } set { - this.calculatedDailyAdOpportunityCountsField = value; + this.reasonFieldSpecified = value; } } } - /// The status of a forecast adjustment. Inactive adjustments are not applied during - /// forecasting. + /// Describes reasons for DaiEncodingProfileNameError. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum ForecastAdjustmentStatus { - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 0, - /// Indicates the current adjustment is active. - /// - ACTIVE = 1, - /// Indicates the current adjustment is inactive. + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "DaiEncodingProfileNameError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum DaiEncodingProfileNameErrorReason { + /// Name contains invalid characters. /// - INACTIVE = 2, - } - - - /// Options for how the volume settings of a ForecastAdjustment are defined. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum ForecastAdjustmentVolumeType { + CONTAINS_INVALID_CHARACTERS = 0, /// The value returned if the actual value is not exposed by the requested API /// version. /// - UNKNOWN = 0, - /// Volume is defined by a series of daily ad opportunity counts. - /// - DAILY_VOLUME = 1, - /// Volume is defined by a single total ad opportunity count. - /// - TOTAL_VOLUME = 2, - /// Volume is defined by historical volume data. - /// - HISTORICAL_BASIS_VOLUME = 3, + UNKNOWN = 1, } - /// Lists all errors associated with traffic forecast segments. + /// Lists all errors associated with encoding profile container settings. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class TrafficForecastSegmentError : ApiError { - private TrafficForecastSegmentErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class DaiEncodingProfileContainerSettingsError : ApiError { + private DaiEncodingProfileContainerSettingsErrorReason reasonField; private bool reasonFieldSpecified; - /// The error reason represented by an enum. - /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public TrafficForecastSegmentErrorReason reason { + public DaiEncodingProfileContainerSettingsErrorReason reason { get { return this.reasonField; } @@ -56999,44 +55467,45 @@ public bool reasonSpecified { } - /// Error reason types for TrafficForecastSegmentError. + /// Describes reasons for . /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "TrafficForecastSegmentError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum TrafficForecastSegmentErrorReason { - /// Segment targeting cannot be changed after segment creation. + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "DaiEncodingProfileContainerSettingsError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum DaiEncodingProfileContainerSettingsErrorReason { + /// Profiles with TS container type must have at least one of audio or + /// video settings present. /// - CANNOT_UPDATE_TARGETING_AFTER_CREATION = 2, - /// The targeting expression that defines the segment is not unique within the given - /// network's segments.

The ID of the colliding segment will be provided in the - /// ApiError#trigger.

+ TS_MUST_HAVE_AUDIO_OR_VIDEO_SETTINGS = 0, + /// Profiles with FMP4 container type must have at exactly one of audio + /// or video settings present. /// - TARGETING_NOT_UNIQUE = 0, + FMP4_MUST_HAVE_EITHER_AUDIO_OR_VIDEO_SETTINGS = 1, + /// Profiles with HLS_AUDIO container type must only have audio + /// settings present. + /// + HLS_AUDIO_MUST_HAVE_ONLY_AUDIO_SETTINGS = 2, /// The value returned if the actual value is not exposed by the requested API /// version. /// - UNKNOWN = 1, + UNKNOWN = 3, } - /// Lists all errors associated with forecast adjustments. + /// Lists all warnings associated with validating encoding profiles. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ForecastAdjustmentError : ApiError { - private ForecastAdjustmentErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class DaiEncodingProfileAdMatchingError : ApiError { + private DaiEncodingProfileAdMatchingErrorReason reasonField; private bool reasonFieldSpecified; - /// The error reason represented by an enum. - /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public ForecastAdjustmentErrorReason reason { + public DaiEncodingProfileAdMatchingErrorReason reason { get { return this.reasonField; } @@ -57061,198 +55530,488 @@ public bool reasonSpecified { } - /// Error reason types for ForecastAdjustmentError. + /// Describes reasons for DaiEncodingProfileNameError. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ForecastAdjustmentError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum ForecastAdjustmentErrorReason { - /// The adjustment has ad request source settings with a targeting expression that - /// contains request platform targeting that is not equal to the request platform - /// targeting of the targeting expression of the parent traffic forecast segment. - /// - AD_REQUEST_SOURCE_PLATFORMS_MUST_MATCH_SEGMENT_PLATFORMS = 15, - /// The adjustment has ad request historical basis settings with a source time - /// duration that is too short given the adjustment date range. - /// - AD_REQUEST_HISTORICAL_BASIS_DATE_RANGE_TOO_SHORT_RELATIVE_TO_ADJUSTMENT = 16, - /// The adjustment contains at least one daily value above the recommended limit - /// relative to the current forecast. This error will only be thrown if adjusting - /// the forecast above the recommended limit is disallowed in the current request. - /// - ADJUSTED_VALUE_ABOVE_RECOMMENDED_RELATIVE_LIMIT = 11, - /// The adjustment contains at least one daily value above the allowed maximum - /// percentage of the current forecast. - /// - ADJUSTED_VALUE_TOO_HIGH_RELATIVE_TO_FORECAST = 0, - /// The adjustment contains at least one daily value below the allowed minimum. - /// - ADJUSTED_VALUE_TOO_LOW = 1, - /// The adjustment contains at least one daily value below the allowed minimum - /// percentage of the current forecast. - /// - ADJUSTED_VALUE_TOO_LOW_RELATIVE_TO_FORECAST = 2, - /// The adjustment is attempting to adjust cross-sell inventory. - /// - ADJUSTS_CROSS_SELL_INVENTORY = 3, - /// The date range of the adjustment overlaps the date range of another adjustment - /// within the same traffic forecast segment. - /// - DATE_RANGE_OVERLAPS_ANOTHER_ADJUSTMENT = 4, - /// The adjustment's end date is after the furthest available date in the forecast. - /// - END_DATE_AFTER_FURTHEST_AVAILABLE_FORECAST_DATE = 12, - /// A provided date range has an end date that is not on or after its start date. - /// - END_DATE_NOT_ON_OR_AFTER_START_DATE = 5, - /// A historical date range is shorter than the minimum allowed length. - /// - HISTORICAL_BASIS_DATE_RANGE_TOO_SHORT = 13, - /// A historical date range has an end date not in the past. - /// - HISTORICAL_END_DATE_NOT_IN_PAST = 6, - /// A historical date range has a start date more than the allowed number of days - /// before the adjustment end date. - /// - HISTORICAL_START_DATE_TOO_FAR_BEFORE_ADJUSTMENT_END_DATE = 7, - /// No volume settings were provided. - /// - NO_VOLUME_SETTINGS_PROVIDED = 8, - /// The values provided do not span the provided date range. - /// - NUMBER_OF_VALUES_DOES_NOT_MATCH_DATE_RANGE = 9, - /// The adjustment provides historical basis ad request source settings, but the - /// targeting of the adjustment's parent traffic forecast segment is incompatible - /// with that use. + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "DaiEncodingProfileAdMatchingError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum DaiEncodingProfileAdMatchingErrorReason { + /// Encoding profile does not match any existing creative profiles. /// - PARENT_SEGMENT_TARGETING_INCOMPATIBLE_WITH_HISTORICAL_BASIS_AD_REQUEST_SOURCE_SETTINGS = 14, + NO_CREATIVE_PROFILES_MATCHED = 0, /// The value returned if the actual value is not exposed by the requested API /// version. /// - UNKNOWN = 10, + UNKNOWN = 1, } [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", ConfigurationName = "Google.Api.Ads.AdManager.v202311.AdjustmentServiceInterface")] - public interface AdjustmentServiceInterface + [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", ConfigurationName = "Google.Api.Ads.AdManager.v202411.DaiEncodingProfileServiceInterface")] + public interface DaiEncodingProfileServiceInterface { - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v202311.ForecastAdjustment calculateDailyAdOpportunityCounts(Google.Api.Ads.AdManager.v202311.ForecastAdjustment forecastAdjustment); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task calculateDailyAdOpportunityCountsAsync(Google.Api.Ads.AdManager.v202311.ForecastAdjustment forecastAdjustment); - // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Wrappers.AdjustmentService.createForecastAdjustmentsResponse createForecastAdjustments(Wrappers.AdjustmentService.createForecastAdjustmentsRequest request); + Wrappers.DaiEncodingProfileService.createDaiEncodingProfilesResponse createDaiEncodingProfiles(Wrappers.DaiEncodingProfileService.createDaiEncodingProfilesRequest request); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task createForecastAdjustmentsAsync(Wrappers.AdjustmentService.createForecastAdjustmentsRequest request); + System.Threading.Tasks.Task createDaiEncodingProfilesAsync(Wrappers.DaiEncodingProfileService.createDaiEncodingProfilesRequest request); - // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Wrappers.AdjustmentService.createTrafficForecastSegmentsResponse createTrafficForecastSegments(Wrappers.AdjustmentService.createTrafficForecastSegmentsRequest request); + Google.Api.Ads.AdManager.v202411.DaiEncodingProfilePage getDaiEncodingProfilesByStatement(Google.Api.Ads.AdManager.v202411.Statement filterStatement); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task createTrafficForecastSegmentsAsync(Wrappers.AdjustmentService.createTrafficForecastSegmentsRequest request); + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task getDaiEncodingProfilesByStatementAsync(Google.Api.Ads.AdManager.v202411.Statement filterStatement); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v202311.ForecastAdjustmentPage getForecastAdjustmentsByStatement(Google.Api.Ads.AdManager.v202311.Statement filterStatement); + Google.Api.Ads.AdManager.v202411.UpdateResult performDaiEncodingProfileAction(Google.Api.Ads.AdManager.v202411.DaiEncodingProfileAction daiEncodingProfileAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getForecastAdjustmentsByStatementAsync(Google.Api.Ads.AdManager.v202311.Statement filterStatement); + System.Threading.Tasks.Task performDaiEncodingProfileActionAsync(Google.Api.Ads.AdManager.v202411.DaiEncodingProfileAction daiEncodingProfileAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement); + // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v202311.TrafficForecastSegmentPage getTrafficForecastSegmentsByStatement(Google.Api.Ads.AdManager.v202311.Statement filterStatement); + Wrappers.DaiEncodingProfileService.updateDaiEncodingProfilesResponse updateDaiEncodingProfiles(Wrappers.DaiEncodingProfileService.updateDaiEncodingProfilesRequest request); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getTrafficForecastSegmentsByStatementAsync(Google.Api.Ads.AdManager.v202311.Statement filterStatement); + System.Threading.Tasks.Task updateDaiEncodingProfilesAsync(Wrappers.DaiEncodingProfileService.updateDaiEncodingProfilesRequest request); + } - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v202311.UpdateResult performForecastAdjustmentAction(Google.Api.Ads.AdManager.v202311.ForecastAdjustmentAction forecastAdjustmentAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement); - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task performForecastAdjustmentActionAsync(Google.Api.Ads.AdManager.v202311.ForecastAdjustmentAction forecastAdjustmentAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement); + /// Captures a page of DaiEncodingProfile objects. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class DaiEncodingProfilePage { + private int totalResultSetSizeField; + + private bool totalResultSetSizeFieldSpecified; + + private int startIndexField; + + private bool startIndexFieldSpecified; + + private DaiEncodingProfile[] resultsField; + + /// The size of the total result set to which this page belongs. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public int totalResultSetSize { + get { + return this.totalResultSetSizeField; + } + set { + this.totalResultSetSizeField = value; + this.totalResultSetSizeSpecified = true; + } + } + + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool totalResultSetSizeSpecified { + get { + return this.totalResultSetSizeFieldSpecified; + } + set { + this.totalResultSetSizeFieldSpecified = value; + } + } + + /// The absolute index in the total result set on which this page begins. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public int startIndex { + get { + return this.startIndexField; + } + set { + this.startIndexField = value; + this.startIndexSpecified = true; + } + } + + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool startIndexSpecified { + get { + return this.startIndexFieldSpecified; + } + set { + this.startIndexFieldSpecified = value; + } + } + + /// The collection of profiles contained within this page. + /// + [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] + public DaiEncodingProfile[] results { + get { + return this.resultsField; + } + set { + this.resultsField = value; + } + } + } + + + /// Represents the actions that can be performed on DaiEncodingProfile objects. + /// + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ArchiveDaiEncodingProfiles))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ActivateDaiEncodingProfiles))] + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public abstract partial class DaiEncodingProfileAction { + } + + + /// The action used for archiving DaiEncodingProfile objects. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ArchiveDaiEncodingProfiles : DaiEncodingProfileAction { + } + + + /// The action used for activating DaiEncodingProfile objects. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ActivateDaiEncodingProfiles : DaiEncodingProfileAction { + } + + + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + public interface DaiEncodingProfileServiceInterfaceChannel : Google.Api.Ads.AdManager.v202411.DaiEncodingProfileServiceInterface, System.ServiceModel.IClientChannel + { + } + + + /// Provides methods for creating, updating and retrieving DaiEncodingProfile objects.

This feature is not + /// yet openly available for GAM Video publishers. Publishers will need to apply for + /// access for this feature through their account managers.

+ ///
+ [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + public partial class DaiEncodingProfileService : AdManagerSoapClient, IDaiEncodingProfileService { + /// Creates a new instance of the + /// class. + public DaiEncodingProfileService() { + } + + /// Creates a new instance of the + /// class. + public DaiEncodingProfileService(string endpointConfigurationName) + : base(endpointConfigurationName) { + } + + /// Creates a new instance of the + /// class. + public DaiEncodingProfileService(string endpointConfigurationName, string remoteAddress) + : base(endpointConfigurationName, remoteAddress) { + } + + /// Creates a new instance of the + /// class. + public DaiEncodingProfileService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) + : base(endpointConfigurationName, remoteAddress) { + } + + /// Creates a new instance of the + /// class. + public DaiEncodingProfileService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) + : base(binding, remoteAddress) { + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + Wrappers.DaiEncodingProfileService.createDaiEncodingProfilesResponse Google.Api.Ads.AdManager.v202411.DaiEncodingProfileServiceInterface.createDaiEncodingProfiles(Wrappers.DaiEncodingProfileService.createDaiEncodingProfilesRequest request) { + return base.Channel.createDaiEncodingProfiles(request); + } + + /// Creates new DaiEncodingProfile objects. + /// + public virtual Google.Api.Ads.AdManager.v202411.DaiEncodingProfile[] createDaiEncodingProfiles(Google.Api.Ads.AdManager.v202411.DaiEncodingProfile[] daiEncodingProfiles) { + Wrappers.DaiEncodingProfileService.createDaiEncodingProfilesRequest inValue = new Wrappers.DaiEncodingProfileService.createDaiEncodingProfilesRequest(); + inValue.daiEncodingProfiles = daiEncodingProfiles; + Wrappers.DaiEncodingProfileService.createDaiEncodingProfilesResponse retVal = ((Google.Api.Ads.AdManager.v202411.DaiEncodingProfileServiceInterface)(this)).createDaiEncodingProfiles(inValue); + return retVal.rval; + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202411.DaiEncodingProfileServiceInterface.createDaiEncodingProfilesAsync(Wrappers.DaiEncodingProfileService.createDaiEncodingProfilesRequest request) { + return base.Channel.createDaiEncodingProfilesAsync(request); + } + + public virtual System.Threading.Tasks.Task createDaiEncodingProfilesAsync(Google.Api.Ads.AdManager.v202411.DaiEncodingProfile[] daiEncodingProfiles) { + Wrappers.DaiEncodingProfileService.createDaiEncodingProfilesRequest inValue = new Wrappers.DaiEncodingProfileService.createDaiEncodingProfilesRequest(); + inValue.daiEncodingProfiles = daiEncodingProfiles; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202411.DaiEncodingProfileServiceInterface)(this)).createDaiEncodingProfilesAsync(inValue)).Result.rval); + } + + /// Gets a DaiEncodingProfilePage of DaiEncodingProfile objects that satisfy the given + /// Statement#query. The following fields are + /// supported for filtering: + /// + ///
PQL Property Object Property
id DaiEncodingProfile#id
status DaiEncodingProfile#status
name DaiEncodingProfile#name
+ ///
+ public virtual Google.Api.Ads.AdManager.v202411.DaiEncodingProfilePage getDaiEncodingProfilesByStatement(Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.getDaiEncodingProfilesByStatement(filterStatement); + } + + public virtual System.Threading.Tasks.Task getDaiEncodingProfilesByStatementAsync(Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.getDaiEncodingProfilesByStatementAsync(filterStatement); + } + + /// Performs actions on DaiEncodingProfile objects + /// that match the given Statement#query. + /// + public virtual Google.Api.Ads.AdManager.v202411.UpdateResult performDaiEncodingProfileAction(Google.Api.Ads.AdManager.v202411.DaiEncodingProfileAction daiEncodingProfileAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.performDaiEncodingProfileAction(daiEncodingProfileAction, filterStatement); + } + + public virtual System.Threading.Tasks.Task performDaiEncodingProfileActionAsync(Google.Api.Ads.AdManager.v202411.DaiEncodingProfileAction daiEncodingProfileAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.performDaiEncodingProfileActionAsync(daiEncodingProfileAction, filterStatement); + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + Wrappers.DaiEncodingProfileService.updateDaiEncodingProfilesResponse Google.Api.Ads.AdManager.v202411.DaiEncodingProfileServiceInterface.updateDaiEncodingProfiles(Wrappers.DaiEncodingProfileService.updateDaiEncodingProfilesRequest request) { + return base.Channel.updateDaiEncodingProfiles(request); + } + + /// Updates the specified DaiEncodingProfile + /// objects. + /// + public virtual Google.Api.Ads.AdManager.v202411.DaiEncodingProfile[] updateDaiEncodingProfiles(Google.Api.Ads.AdManager.v202411.DaiEncodingProfile[] daiEncodingProfiles) { + Wrappers.DaiEncodingProfileService.updateDaiEncodingProfilesRequest inValue = new Wrappers.DaiEncodingProfileService.updateDaiEncodingProfilesRequest(); + inValue.daiEncodingProfiles = daiEncodingProfiles; + Wrappers.DaiEncodingProfileService.updateDaiEncodingProfilesResponse retVal = ((Google.Api.Ads.AdManager.v202411.DaiEncodingProfileServiceInterface)(this)).updateDaiEncodingProfiles(inValue); + return retVal.rval; + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202411.DaiEncodingProfileServiceInterface.updateDaiEncodingProfilesAsync(Wrappers.DaiEncodingProfileService.updateDaiEncodingProfilesRequest request) { + return base.Channel.updateDaiEncodingProfilesAsync(request); + } + + public virtual System.Threading.Tasks.Task updateDaiEncodingProfilesAsync(Google.Api.Ads.AdManager.v202411.DaiEncodingProfile[] daiEncodingProfiles) { + Wrappers.DaiEncodingProfileService.updateDaiEncodingProfilesRequest inValue = new Wrappers.DaiEncodingProfileService.updateDaiEncodingProfilesRequest(); + inValue.daiEncodingProfiles = daiEncodingProfiles; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202411.DaiEncodingProfileServiceInterface)(this)).updateDaiEncodingProfilesAsync(inValue)).Result.rval); + } + } + namespace Wrappers.SiteService + { + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "createSites", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class createSitesRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("sites")] + public Google.Api.Ads.AdManager.v202411.Site[] sites; + + /// Creates a new instance of the class. + /// + public createSitesRequest() { + } + + /// Creates a new instance of the class. + /// + public createSitesRequest(Google.Api.Ads.AdManager.v202411.Site[] sites) { + this.sites = sites; + } + } + + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "createSitesResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class createSitesResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("rval")] + public Google.Api.Ads.AdManager.v202411.Site[] rval; + + /// Creates a new instance of the class. + /// + public createSitesResponse() { + } + + /// Creates a new instance of the class. + /// + public createSitesResponse(Google.Api.Ads.AdManager.v202411.Site[] rval) { + this.rval = rval; + } + } + + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "updateSites", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class updateSitesRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("sites")] + public Google.Api.Ads.AdManager.v202411.Site[] sites; + + /// Creates a new instance of the class. + /// + public updateSitesRequest() { + } + + /// Creates a new instance of the class. + /// + public updateSitesRequest(Google.Api.Ads.AdManager.v202411.Site[] sites) { + this.sites = sites; + } + } + + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "updateSitesResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class updateSitesResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("rval")] + public Google.Api.Ads.AdManager.v202411.Site[] rval; + + /// Creates a new instance of the class. + /// + public updateSitesResponse() { + } + + /// Creates a new instance of the class. + /// + public updateSitesResponse(Google.Api.Ads.AdManager.v202411.Site[] rval) { + this.rval = rval; + } + } + } + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class DisapprovalReason { + private DisapprovalReasonType typeField; + + private bool typeFieldSpecified; + + private string detailsField; + + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public DisapprovalReasonType type { + get { + return this.typeField; + } + set { + this.typeField = value; + this.typeSpecified = true; + } + } - // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Wrappers.AdjustmentService.updateForecastAdjustmentsResponse updateForecastAdjustments(Wrappers.AdjustmentService.updateForecastAdjustmentsRequest request); + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool typeSpecified { + get { + return this.typeFieldSpecified; + } + set { + this.typeFieldSpecified = value; + } + } - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task updateForecastAdjustmentsAsync(Wrappers.AdjustmentService.updateForecastAdjustmentsRequest request); + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public string details { + get { + return this.detailsField; + } + set { + this.detailsField = value; + } + } + } - // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Wrappers.AdjustmentService.updateTrafficForecastSegmentsResponse updateTrafficForecastSegments(Wrappers.AdjustmentService.updateTrafficForecastSegmentsRequest request); - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task updateTrafficForecastSegmentsAsync(Wrappers.AdjustmentService.updateTrafficForecastSegmentsRequest request); + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "DisapprovalReason.Type", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum DisapprovalReasonType { + CONTENT = 0, + OWNERSHIP = 1, + OTHER = 2, + UNKNOWN = 3, } - /// An entity that defines a segment of traffic that will be adjusted or explored. - /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class TrafficForecastSegment { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class Site { private long idField; private bool idFieldSpecified; - private string nameField; + private string urlField; - private Targeting targetingField; + private string childNetworkCodeField; - private int activeForecastAdjustmentCountField; + private ApprovalStatus approvalStatusField; - private bool activeForecastAdjustmentCountFieldSpecified; + private bool approvalStatusFieldSpecified; - private DateTime creationDateTimeField; + private DateTime approvalStatusUpdateTimeField; + + private DisapprovalReason[] disapprovalReasonsField; - /// The unique ID of the TrafficForecastSegment. This field is read-only and set by - /// Google. This attribute is read-only. - /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] public long id { get { @@ -57277,170 +56036,218 @@ public bool idSpecified { } } - /// Name of the TrafficForecastSegment. This field must be unique among all segments - /// for this network. This attribute is - /// required. - /// [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public string name { + public string url { get { - return this.nameField; + return this.urlField; } set { - this.nameField = value; + this.urlField = value; } } - /// The targeting that defines a segment of traffic. Targeting cannot be changed - /// after segment creation. This attribute is - /// required. - /// [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public Targeting targeting { + public string childNetworkCode { get { - return this.targetingField; + return this.childNetworkCodeField; } set { - this.targetingField = value; + this.childNetworkCodeField = value; } } - /// The number of active forecast adjustments associated with the - /// TrafficForecastSegment. This attribute is read-only. - /// [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public int activeForecastAdjustmentCount { + public ApprovalStatus approvalStatus { get { - return this.activeForecastAdjustmentCountField; + return this.approvalStatusField; } set { - this.activeForecastAdjustmentCountField = value; - this.activeForecastAdjustmentCountSpecified = true; + this.approvalStatusField = value; + this.approvalStatusSpecified = true; } } /// true, if a value is specified for , false otherwise. - /// + /// cref="approvalStatus" />, false otherwise.
[System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool activeForecastAdjustmentCountSpecified { + public bool approvalStatusSpecified { get { - return this.activeForecastAdjustmentCountFieldSpecified; + return this.approvalStatusFieldSpecified; } set { - this.activeForecastAdjustmentCountFieldSpecified = value; + this.approvalStatusFieldSpecified = value; } } - /// The date and time that the TrafficForecastSegment was created. This attribute is - /// read-only. - /// [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public DateTime creationDateTime { + public DateTime approvalStatusUpdateTime { get { - return this.creationDateTimeField; + return this.approvalStatusUpdateTimeField; } set { - this.creationDateTimeField = value; + this.approvalStatusUpdateTimeField = value; + } + } + + [System.Xml.Serialization.XmlElementAttribute("disapprovalReasons", Order = 5)] + public DisapprovalReason[] disapprovalReasons { + get { + return this.disapprovalReasonsField; + } + set { + this.disapprovalReasonsField = value; } } } - /// A page of ForecastAdjustmentDto objects. + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum ApprovalStatus { + DRAFT = 0, + UNCHECKED = 1, + APPROVED = 2, + DISAPPROVED = 3, + REQUIRES_REVIEW = 4, + UNKNOWN = 5, + } + + + /// Errors associated with the Site. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ForecastAdjustmentPage { - private int totalResultSetSizeField; - - private bool totalResultSetSizeFieldSpecified; - - private int startIndexField; - - private bool startIndexFieldSpecified; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class SiteError : ApiError { + private SiteErrorReason reasonField; - private ForecastAdjustment[] resultsField; + private bool reasonFieldSpecified; - /// The size of the total result set to which this page belongs. - /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public int totalResultSetSize { + public SiteErrorReason reason { get { - return this.totalResultSetSizeField; + return this.reasonField; } set { - this.totalResultSetSizeField = value; - this.totalResultSetSizeSpecified = true; + this.reasonField = value; + this.reasonSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , + /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool totalResultSetSizeSpecified { + public bool reasonSpecified { get { - return this.totalResultSetSizeFieldSpecified; + return this.reasonFieldSpecified; } set { - this.totalResultSetSizeFieldSpecified = value; + this.reasonFieldSpecified = value; } } + } - /// The absolute index in the total result set on which this page begins. + + /// The reasons for the target error. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "SiteError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum SiteErrorReason { + /// The network code must belong to an MCM child network. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public int startIndex { - get { - return this.startIndexField; - } - set { - this.startIndexField = value; - this.startIndexSpecified = true; - } - } + INVALID_CHILD_NETWORK_CODE = 0, + /// Archive all subsites before archiving the site. + /// + CANNOT_ARCHIVE_SITE_WITH_SUBSITES = 7, + /// The URL is invalid for a top-level site. + /// + INVALID_URL_FOR_SITE = 1, + /// The batch of sites could not be updated because the same site was updated + /// multiple times in the batch. + /// + MULTIPLE_UPDATES_FOR_SAME_SITE = 6, + /// Too many sites in the request to submit them for review. + /// + TOO_MANY_SITES_PER_REVIEW_REQUEST = 3, + /// The site has been submitted for review too many times. + /// + TOO_MANY_REVIEW_REQUESTS_FOR_SITE = 4, + /// Only sites with approval status ApprovalStatus#DRAFT, ApprovalStatus#DISAPPROVED and ApprovalStatus#REQUIRES_REVIEW can be + /// submitted for review. + /// + INVALID_APPROVAL_STATUS_FOR_REVIEW = 5, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 2, + } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool startIndexSpecified { - get { - return this.startIndexFieldSpecified; - } - set { - this.startIndexFieldSpecified = value; - } - } - /// The collection of forecast adjustments contained within this page. - /// - [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] - public ForecastAdjustment[] results { - get { - return this.resultsField; - } - set { - this.resultsField = value; - } - } + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", ConfigurationName = "Google.Api.Ads.AdManager.v202411.SiteServiceInterface")] + public interface SiteServiceInterface + { + // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Wrappers.SiteService.createSitesResponse createSites(Wrappers.SiteService.createSitesRequest request); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + System.Threading.Tasks.Task createSitesAsync(Wrappers.SiteService.createSitesRequest request); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v202411.SitePage getSitesByStatement(Google.Api.Ads.AdManager.v202411.Statement filterStatement); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task getSitesByStatementAsync(Google.Api.Ads.AdManager.v202411.Statement filterStatement); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v202411.UpdateResult performSiteAction(Google.Api.Ads.AdManager.v202411.SiteAction siteAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task performSiteActionAsync(Google.Api.Ads.AdManager.v202411.SiteAction siteAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement); + + // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Wrappers.SiteService.updateSitesResponse updateSites(Wrappers.SiteService.updateSitesRequest request); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + System.Threading.Tasks.Task updateSitesAsync(Wrappers.SiteService.updateSitesRequest request); } - /// A page of TrafficForecastSegmentDto - /// objects. - /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class TrafficForecastSegmentPage { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class SitePage { private int totalResultSetSizeField; private bool totalResultSetSizeFieldSpecified; @@ -57449,10 +56256,8 @@ public partial class TrafficForecastSegmentPage { private bool startIndexFieldSpecified; - private TrafficForecastSegment[] resultsField; + private Site[] resultsField; - /// The size of the total result set to which this page belongs. - /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] public int totalResultSetSize { get { @@ -57477,8 +56282,6 @@ public bool totalResultSetSizeSpecified { } } - /// The absolute index in the total result set on which this page begins. - /// [System.Xml.Serialization.XmlElementAttribute(Order = 1)] public int startIndex { get { @@ -57503,10 +56306,8 @@ public bool startIndexSpecified { } } - /// The collection of traffic forecast segments contained within this page. - /// [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] - public TrafficForecastSegment[] results { + public Site[] results { get { return this.resultsField; } @@ -57517,280 +56318,395 @@ public TrafficForecastSegment[] results { } - /// Represents the actions that can be performed on com.google.ads.publisher.api.service.adjustment.ForecastAdjustment - /// objects. - /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(DeactivateForecastAdjustments))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ActivateForecastAdjustments))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(SubmitSiteForApproval))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(DeactivateSite))] [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public abstract partial class ForecastAdjustmentAction { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public abstract partial class SiteAction { } - /// The action used for deactivating ForecastAdjustment objects. - /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class DeactivateForecastAdjustments : ForecastAdjustmentAction { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class SubmitSiteForApproval : SiteAction { } - /// The action used for activating ForecastAdjustment objects. - /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ActivateForecastAdjustments : ForecastAdjustmentAction { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class DeactivateSite : SiteAction { } [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public interface AdjustmentServiceInterfaceChannel : Google.Api.Ads.AdManager.v202311.AdjustmentServiceInterface, System.ServiceModel.IClientChannel + public interface SiteServiceInterfaceChannel : Google.Api.Ads.AdManager.v202411.SiteServiceInterface, System.ServiceModel.IClientChannel { } - /// Provides methods for creating, updating, and retrieving ForecastAdjustments and TrafficForecastSegments.

Forecast adjustments allow editing the - /// volume and traffic composition of forecasted inventory. Traffic forecast - /// segments divide forecasted inventory into segments to which forecast adjustments - /// can be applied.

- ///
[System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public partial class AdjustmentService : AdManagerSoapClient, IAdjustmentService { - /// Creates a new instance of the class. + public partial class SiteService : AdManagerSoapClient, ISiteService { + /// Creates a new instance of the class. /// - public AdjustmentService() { + public SiteService() { } - /// Creates a new instance of the class. + /// Creates a new instance of the class. /// - public AdjustmentService(string endpointConfigurationName) + public SiteService(string endpointConfigurationName) : base(endpointConfigurationName) { } - /// Creates a new instance of the class. + /// Creates a new instance of the class. /// - public AdjustmentService(string endpointConfigurationName, string remoteAddress) + public SiteService(string endpointConfigurationName, string remoteAddress) : base(endpointConfigurationName, remoteAddress) { } - /// Creates a new instance of the class. + /// Creates a new instance of the class. /// - public AdjustmentService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) + public SiteService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) : base(endpointConfigurationName, remoteAddress) { } - /// Creates a new instance of the class. + /// Creates a new instance of the class. /// - public AdjustmentService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) + public SiteService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) : base(binding, remoteAddress) { } - /// Takes a prospective forecast adjustment and calculates the daily ad opportunity - /// counts corresponding to its provided volume settings. - /// - public virtual Google.Api.Ads.AdManager.v202311.ForecastAdjustment calculateDailyAdOpportunityCounts(Google.Api.Ads.AdManager.v202311.ForecastAdjustment forecastAdjustment) { - return base.Channel.calculateDailyAdOpportunityCounts(forecastAdjustment); + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + Wrappers.SiteService.createSitesResponse Google.Api.Ads.AdManager.v202411.SiteServiceInterface.createSites(Wrappers.SiteService.createSitesRequest request) { + return base.Channel.createSites(request); } - public virtual System.Threading.Tasks.Task calculateDailyAdOpportunityCountsAsync(Google.Api.Ads.AdManager.v202311.ForecastAdjustment forecastAdjustment) { - return base.Channel.calculateDailyAdOpportunityCountsAsync(forecastAdjustment); + /// Creates new Site objects. + /// + public virtual Google.Api.Ads.AdManager.v202411.Site[] createSites(Google.Api.Ads.AdManager.v202411.Site[] sites) { + Wrappers.SiteService.createSitesRequest inValue = new Wrappers.SiteService.createSitesRequest(); + inValue.sites = sites; + Wrappers.SiteService.createSitesResponse retVal = ((Google.Api.Ads.AdManager.v202411.SiteServiceInterface)(this)).createSites(inValue); + return retVal.rval; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.AdjustmentService.createForecastAdjustmentsResponse Google.Api.Ads.AdManager.v202311.AdjustmentServiceInterface.createForecastAdjustments(Wrappers.AdjustmentService.createForecastAdjustmentsRequest request) { - return base.Channel.createForecastAdjustments(request); + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202411.SiteServiceInterface.createSitesAsync(Wrappers.SiteService.createSitesRequest request) { + return base.Channel.createSitesAsync(request); } - /// Creates new ForecastAdjustment objects. + public virtual System.Threading.Tasks.Task createSitesAsync(Google.Api.Ads.AdManager.v202411.Site[] sites) { + Wrappers.SiteService.createSitesRequest inValue = new Wrappers.SiteService.createSitesRequest(); + inValue.sites = sites; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202411.SiteServiceInterface)(this)).createSitesAsync(inValue)).Result.rval); + } + + /// Gets a SitePage of Site objects that + /// satisfy the given Statement#query. The following + /// fields are supported for filtering: + /// + /// + /// + /// + /// + ///
PQL + /// Property Object Property
id Site#id
url Site#url
childNetworkCode Site#childNetworkCode
approvalStatus Site#approvalStatus
lastModifiedApprovalStatusDateTime
Restriction: The lastModifiedApprovalStatusDateTime PQL + /// property can only be used in a top-level expression scoping the + /// filterStatement to Sites whose was + /// modified on or after a specified date and time. (e.x. "WHERE + /// lastModifiedApprovalStatusDateTime >= '2022-01-01T00:00:00'"). ///
- public virtual Google.Api.Ads.AdManager.v202311.ForecastAdjustment[] createForecastAdjustments(Google.Api.Ads.AdManager.v202311.ForecastAdjustment[] forecastAdjustments) { - Wrappers.AdjustmentService.createForecastAdjustmentsRequest inValue = new Wrappers.AdjustmentService.createForecastAdjustmentsRequest(); - inValue.forecastAdjustments = forecastAdjustments; - Wrappers.AdjustmentService.createForecastAdjustmentsResponse retVal = ((Google.Api.Ads.AdManager.v202311.AdjustmentServiceInterface)(this)).createForecastAdjustments(inValue); - return retVal.rval; + public virtual Google.Api.Ads.AdManager.v202411.SitePage getSitesByStatement(Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.getSitesByStatement(filterStatement); } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202311.AdjustmentServiceInterface.createForecastAdjustmentsAsync(Wrappers.AdjustmentService.createForecastAdjustmentsRequest request) { - return base.Channel.createForecastAdjustmentsAsync(request); + public virtual System.Threading.Tasks.Task getSitesByStatementAsync(Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.getSitesByStatementAsync(filterStatement); } - public virtual System.Threading.Tasks.Task createForecastAdjustmentsAsync(Google.Api.Ads.AdManager.v202311.ForecastAdjustment[] forecastAdjustments) { - Wrappers.AdjustmentService.createForecastAdjustmentsRequest inValue = new Wrappers.AdjustmentService.createForecastAdjustmentsRequest(); - inValue.forecastAdjustments = forecastAdjustments; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202311.AdjustmentServiceInterface)(this)).createForecastAdjustmentsAsync(inValue)).Result.rval); + /// Performs actions on Site objects that match the given Statement#query. + /// + public virtual Google.Api.Ads.AdManager.v202411.UpdateResult performSiteAction(Google.Api.Ads.AdManager.v202411.SiteAction siteAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.performSiteAction(siteAction, filterStatement); + } + + public virtual System.Threading.Tasks.Task performSiteActionAsync(Google.Api.Ads.AdManager.v202411.SiteAction siteAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.performSiteActionAsync(siteAction, filterStatement); } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.AdjustmentService.createTrafficForecastSegmentsResponse Google.Api.Ads.AdManager.v202311.AdjustmentServiceInterface.createTrafficForecastSegments(Wrappers.AdjustmentService.createTrafficForecastSegmentsRequest request) { - return base.Channel.createTrafficForecastSegments(request); + Wrappers.SiteService.updateSitesResponse Google.Api.Ads.AdManager.v202411.SiteServiceInterface.updateSites(Wrappers.SiteService.updateSitesRequest request) { + return base.Channel.updateSites(request); } - /// Creates new TrafficForecastSegment objects. + /// Updates the specified Site objects.

The Site#childNetworkCode can be updated in order + /// to 1) change the child network, 2) move a site from O&O to represented, or + /// 3) move a site from represented to O&O.

///
- public virtual Google.Api.Ads.AdManager.v202311.TrafficForecastSegment[] createTrafficForecastSegments(Google.Api.Ads.AdManager.v202311.TrafficForecastSegment[] trafficForecastSegments) { - Wrappers.AdjustmentService.createTrafficForecastSegmentsRequest inValue = new Wrappers.AdjustmentService.createTrafficForecastSegmentsRequest(); - inValue.trafficForecastSegments = trafficForecastSegments; - Wrappers.AdjustmentService.createTrafficForecastSegmentsResponse retVal = ((Google.Api.Ads.AdManager.v202311.AdjustmentServiceInterface)(this)).createTrafficForecastSegments(inValue); + public virtual Google.Api.Ads.AdManager.v202411.Site[] updateSites(Google.Api.Ads.AdManager.v202411.Site[] sites) { + Wrappers.SiteService.updateSitesRequest inValue = new Wrappers.SiteService.updateSitesRequest(); + inValue.sites = sites; + Wrappers.SiteService.updateSitesResponse retVal = ((Google.Api.Ads.AdManager.v202411.SiteServiceInterface)(this)).updateSites(inValue); return retVal.rval; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202311.AdjustmentServiceInterface.createTrafficForecastSegmentsAsync(Wrappers.AdjustmentService.createTrafficForecastSegmentsRequest request) { - return base.Channel.createTrafficForecastSegmentsAsync(request); + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202411.SiteServiceInterface.updateSitesAsync(Wrappers.SiteService.updateSitesRequest request) { + return base.Channel.updateSitesAsync(request); } - public virtual System.Threading.Tasks.Task createTrafficForecastSegmentsAsync(Google.Api.Ads.AdManager.v202311.TrafficForecastSegment[] trafficForecastSegments) { - Wrappers.AdjustmentService.createTrafficForecastSegmentsRequest inValue = new Wrappers.AdjustmentService.createTrafficForecastSegmentsRequest(); - inValue.trafficForecastSegments = trafficForecastSegments; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202311.AdjustmentServiceInterface)(this)).createTrafficForecastSegmentsAsync(inValue)).Result.rval); + public virtual System.Threading.Tasks.Task updateSitesAsync(Google.Api.Ads.AdManager.v202411.Site[] sites) { + Wrappers.SiteService.updateSitesRequest inValue = new Wrappers.SiteService.updateSitesRequest(); + inValue.sites = sites; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202411.SiteServiceInterface)(this)).updateSitesAsync(inValue)).Result.rval); } + } + namespace Wrappers.AudienceSegmentService + { + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "createAudienceSegments", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class createAudienceSegmentsRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("segments")] + public Google.Api.Ads.AdManager.v202411.FirstPartyAudienceSegment[] segments; - /// Gets a ForecastAdjustmentPage of ForecastAdjustment objects that satisfy the given - /// Statement#query.

The following fields are - /// supported for filtering:

- /// - /// - /// - /// - /// - ///
PQL Property Object Property
id ForecastAdjustment#id
trafficForecastSegmentId ForecastAdjustment#trafficForecastSegmentId
name ForecastAdjustment#name
startDate ForecastAdjustment#startDate
endDate ForecastAdjustment#endDate
status ForecastAdjustment#status
- ///
- public virtual Google.Api.Ads.AdManager.v202311.ForecastAdjustmentPage getForecastAdjustmentsByStatement(Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.getForecastAdjustmentsByStatement(filterStatement); - } + /// Creates a new instance of the class. + public createAudienceSegmentsRequest() { + } - public virtual System.Threading.Tasks.Task getForecastAdjustmentsByStatementAsync(Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.getForecastAdjustmentsByStatementAsync(filterStatement); + /// Creates a new instance of the class. + public createAudienceSegmentsRequest(Google.Api.Ads.AdManager.v202411.FirstPartyAudienceSegment[] segments) { + this.segments = segments; + } } - /// Gets a TrafficForecastSegmentPage of TrafficForecastSegment objects that satisfy - /// the given Statement#query.

The following fields - /// are supported for filtering:

- /// - /// - /// - ///
PQL PropertyObject Property
id TrafficForecastSegment#id
name TrafficForecastSegment#name
creationTime TrafficForecastSegment#creationTime
- ///
- public virtual Google.Api.Ads.AdManager.v202311.TrafficForecastSegmentPage getTrafficForecastSegmentsByStatement(Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.getTrafficForecastSegmentsByStatement(filterStatement); - } - public virtual System.Threading.Tasks.Task getTrafficForecastSegmentsByStatementAsync(Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.getTrafficForecastSegmentsByStatementAsync(filterStatement); + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "createAudienceSegmentsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class createAudienceSegmentsResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("rval")] + public Google.Api.Ads.AdManager.v202411.FirstPartyAudienceSegment[] rval; + + /// Creates a new instance of the class. + public createAudienceSegmentsResponse() { + } + + /// Creates a new instance of the class. + public createAudienceSegmentsResponse(Google.Api.Ads.AdManager.v202411.FirstPartyAudienceSegment[] rval) { + this.rval = rval; + } } - /// Performs actions on ForecastAdjustment objects - /// that match the given Statement#query. - /// - public virtual Google.Api.Ads.AdManager.v202311.UpdateResult performForecastAdjustmentAction(Google.Api.Ads.AdManager.v202311.ForecastAdjustmentAction forecastAdjustmentAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.performForecastAdjustmentAction(forecastAdjustmentAction, filterStatement); + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "updateAudienceSegments", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class updateAudienceSegmentsRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("segments")] + public Google.Api.Ads.AdManager.v202411.FirstPartyAudienceSegment[] segments; + + /// Creates a new instance of the class. + public updateAudienceSegmentsRequest() { + } + + /// Creates a new instance of the class. + public updateAudienceSegmentsRequest(Google.Api.Ads.AdManager.v202411.FirstPartyAudienceSegment[] segments) { + this.segments = segments; + } } - public virtual System.Threading.Tasks.Task performForecastAdjustmentActionAsync(Google.Api.Ads.AdManager.v202311.ForecastAdjustmentAction forecastAdjustmentAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.performForecastAdjustmentActionAsync(forecastAdjustmentAction, filterStatement); + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "updateAudienceSegmentsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class updateAudienceSegmentsResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("rval")] + public Google.Api.Ads.AdManager.v202411.FirstPartyAudienceSegment[] rval; + + /// Creates a new instance of the class. + public updateAudienceSegmentsResponse() { + } + + /// Creates a new instance of the class. + public updateAudienceSegmentsResponse(Google.Api.Ads.AdManager.v202411.FirstPartyAudienceSegment[] rval) { + this.rval = rval; + } } + } + /// Rule of a FirstPartyAudienceSegment that + /// defines user's eligibility criteria to be part of a segment. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class FirstPartyAudienceSegmentRule { + private InventoryTargeting inventoryRuleField; - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.AdjustmentService.updateForecastAdjustmentsResponse Google.Api.Ads.AdManager.v202311.AdjustmentServiceInterface.updateForecastAdjustments(Wrappers.AdjustmentService.updateForecastAdjustmentsRequest request) { - return base.Channel.updateForecastAdjustments(request); - } + private CustomCriteriaSet customCriteriaRuleField; - /// Updates the specified ForecastAdjustment - /// objects. + /// Specifies the inventory (i.e. ad units and placements) that are part of the rule + /// of a FirstPartyAudienceSegment. This attribute is required. /// - public virtual Google.Api.Ads.AdManager.v202311.ForecastAdjustment[] updateForecastAdjustments(Google.Api.Ads.AdManager.v202311.ForecastAdjustment[] forecastAdjustments) { - Wrappers.AdjustmentService.updateForecastAdjustmentsRequest inValue = new Wrappers.AdjustmentService.updateForecastAdjustmentsRequest(); - inValue.forecastAdjustments = forecastAdjustments; - Wrappers.AdjustmentService.updateForecastAdjustmentsResponse retVal = ((Google.Api.Ads.AdManager.v202311.AdjustmentServiceInterface)(this)).updateForecastAdjustments(inValue); - return retVal.rval; + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public InventoryTargeting inventoryRule { + get { + return this.inventoryRuleField; + } + set { + this.inventoryRuleField = value; + } } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202311.AdjustmentServiceInterface.updateForecastAdjustmentsAsync(Wrappers.AdjustmentService.updateForecastAdjustmentsRequest request) { - return base.Channel.updateForecastAdjustmentsAsync(request); + /// Specifies the collection of custom criteria that are part of the rule of a FirstPartyAudienceSegment.

Once the FirstPartyAudienceSegment is updated or + /// modified with custom criteria, the server may return a normalized, but + /// equivalent representation of the custom criteria rule.

The resulting + /// custom criteria rule would be of the form:

+ ///
+ [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public CustomCriteriaSet customCriteriaRule { + get { + return this.customCriteriaRuleField; + } + set { + this.customCriteriaRuleField = value; + } } + } - public virtual System.Threading.Tasks.Task updateForecastAdjustmentsAsync(Google.Api.Ads.AdManager.v202311.ForecastAdjustment[] forecastAdjustments) { - Wrappers.AdjustmentService.updateForecastAdjustmentsRequest inValue = new Wrappers.AdjustmentService.updateForecastAdjustmentsRequest(); - inValue.forecastAdjustments = forecastAdjustments; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202311.AdjustmentServiceInterface)(this)).updateForecastAdjustmentsAsync(inValue)).Result.rval); - } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.AdjustmentService.updateTrafficForecastSegmentsResponse Google.Api.Ads.AdManager.v202311.AdjustmentServiceInterface.updateTrafficForecastSegments(Wrappers.AdjustmentService.updateTrafficForecastSegmentsRequest request) { - return base.Channel.updateTrafficForecastSegments(request); - } + /// Data provider that owns this segment. For a FirstPartyAudienceSegment, it would be the + /// publisher network. For a SharedAudienceSegment or a ThirdPartyAudienceSegment, it would be the + /// entity that provides that AudienceSegment. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class AudienceSegmentDataProvider { + private string nameField; - /// Updates the specified TrafficForecastSegment objects. + /// Name of the data provider. This attribute is readonly and is assigned by Google. /// - public virtual Google.Api.Ads.AdManager.v202311.TrafficForecastSegment[] updateTrafficForecastSegments(Google.Api.Ads.AdManager.v202311.TrafficForecastSegment[] trafficForecastSegments) { - Wrappers.AdjustmentService.updateTrafficForecastSegmentsRequest inValue = new Wrappers.AdjustmentService.updateTrafficForecastSegmentsRequest(); - inValue.trafficForecastSegments = trafficForecastSegments; - Wrappers.AdjustmentService.updateTrafficForecastSegmentsResponse retVal = ((Google.Api.Ads.AdManager.v202311.AdjustmentServiceInterface)(this)).updateTrafficForecastSegments(inValue); - return retVal.rval; + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public string name { + get { + return this.nameField; + } + set { + this.nameField = value; + } } + } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202311.AdjustmentServiceInterface.updateTrafficForecastSegmentsAsync(Wrappers.AdjustmentService.updateTrafficForecastSegmentsRequest request) { - return base.Channel.updateTrafficForecastSegmentsAsync(request); - } - public virtual System.Threading.Tasks.Task updateTrafficForecastSegmentsAsync(Google.Api.Ads.AdManager.v202311.TrafficForecastSegment[] trafficForecastSegments) { - Wrappers.AdjustmentService.updateTrafficForecastSegmentsRequest inValue = new Wrappers.AdjustmentService.updateTrafficForecastSegmentsRequest(); - inValue.trafficForecastSegments = trafficForecastSegments; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202311.AdjustmentServiceInterface)(this)).updateTrafficForecastSegmentsAsync(inValue)).Result.rval); - } - } - namespace Wrappers.CmsMetadataService - { - } - /// Key associated with a piece of content from a publisher's CMS. + /// An AudienceSegment represents audience segment + /// object. /// + [System.Xml.Serialization.XmlIncludeAttribute(typeof(SharedAudienceSegment))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ThirdPartyAudienceSegment))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(FirstPartyAudienceSegment))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(RuleBasedFirstPartyAudienceSegmentSummary))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(RuleBasedFirstPartyAudienceSegment))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(NonRuleBasedFirstPartyAudienceSegment))] [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class CmsMetadataKey { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class AudienceSegment { private long idField; private bool idFieldSpecified; private string nameField; - private CmsMetadataKeyStatus statusField; + private long[] categoryIdsField; + + private string descriptionField; + + private AudienceSegmentStatus statusField; private bool statusFieldSpecified; - /// The ID of this CMS metadata key. This field is read-only and provided by Google. + private long sizeField; + + private bool sizeFieldSpecified; + + private long mobileWebSizeField; + + private bool mobileWebSizeFieldSpecified; + + private long idfaSizeField; + + private bool idfaSizeFieldSpecified; + + private long adIdSizeField; + + private bool adIdSizeFieldSpecified; + + private long ppidSizeField; + + private bool ppidSizeFieldSpecified; + + private AudienceSegmentDataProvider dataProviderField; + + private AudienceSegmentType typeField; + + private bool typeFieldSpecified; + + /// Id of the AudienceSegment. This attribute is + /// readonly and is populated by Google. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] public long id { @@ -57816,7 +56732,8 @@ public bool idSpecified { } } - /// The key of a key-value pair. + /// Name of the AudienceSegment. This attribute is + /// required and has a maximum length of 255 characters. /// [System.Xml.Serialization.XmlElementAttribute(Order = 1)] public string name { @@ -57828,933 +56745,729 @@ public string name { } } - /// The status of this CMS metadata key. This attribute is read-only. + /// The ids of the categories this segment belongs to. This field is optional, it + /// may be empty. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public CmsMetadataKeyStatus status { + [System.Xml.Serialization.XmlElementAttribute("categoryIds", Order = 2)] + public long[] categoryIds { get { - return this.statusField; + return this.categoryIdsField; } set { - this.statusField = value; - this.statusSpecified = true; + this.categoryIdsField = value; } } - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool statusSpecified { + /// Description of the AudienceSegment. This attribute + /// is optional and has a maximum length of 8192 characters. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 3)] + public string description { get { - return this.statusFieldSpecified; + return this.descriptionField; } set { - this.statusFieldSpecified = value; + this.descriptionField = value; } } - } - - /// Status for CmsMetadataKey objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum CmsMetadataKeyStatus { - ACTIVE = 0, - INACTIVE = 1, - /// The value returned if the actual value is not exposed by the requested API - /// version. + /// Status of the AudienceSegment. This controls + /// whether the given segment is available for targeting or not. During creation + /// this attribute is optional and defaults to ACTIVE. This attribute + /// is readonly for updates. /// - UNKNOWN = 2, - } - - - /// Captures a page of CMS metadata key objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class CmsMetadataKeyPage { - private int totalResultSetSizeField; - - private bool totalResultSetSizeFieldSpecified; - - private int startIndexField; - - private bool startIndexFieldSpecified; - - private CmsMetadataKey[] resultsField; - - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public int totalResultSetSize { + [System.Xml.Serialization.XmlElementAttribute(Order = 4)] + public AudienceSegmentStatus status { get { - return this.totalResultSetSizeField; + return this.statusField; } set { - this.totalResultSetSizeField = value; - this.totalResultSetSizeSpecified = true; + this.statusField = value; + this.statusSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , + /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool totalResultSetSizeSpecified { + public bool statusSpecified { get { - return this.totalResultSetSizeFieldSpecified; + return this.statusFieldSpecified; } set { - this.totalResultSetSizeFieldSpecified = value; + this.statusFieldSpecified = value; } } - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public int startIndex { + /// Number of unique identifiers in the AudienceSegment. This attribute is readonly and is + /// populated by Google. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 5)] + public long size { get { - return this.startIndexField; + return this.sizeField; } set { - this.startIndexField = value; - this.startIndexSpecified = true; + this.sizeField = value; + this.sizeSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , + /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool startIndexSpecified { - get { - return this.startIndexFieldSpecified; - } - set { - this.startIndexFieldSpecified = value; - } - } - - [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] - public CmsMetadataKey[] results { + public bool sizeSpecified { get { - return this.resultsField; + return this.sizeFieldSpecified; } set { - this.resultsField = value; + this.sizeFieldSpecified = value; } } - } - - - /// Errors associated with metadata merge specs. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class MetadataMergeSpecError : ApiError { - private MetadataMergeSpecErrorReason reasonField; - - private bool reasonFieldSpecified; - /// The error reason represented by an enum. + /// Number of unique identifiers in the AudienceSegment for mobile web. This attribute is + /// read-only. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public MetadataMergeSpecErrorReason reason { + [System.Xml.Serialization.XmlElementAttribute(Order = 6)] + public long mobileWebSize { get { - return this.reasonField; + return this.mobileWebSizeField; } set { - this.reasonField = value; - this.reasonSpecified = true; + this.mobileWebSizeField = value; + this.mobileWebSizeSpecified = true; } } - /// true, if a value is specified for , - /// false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { + public bool mobileWebSizeSpecified { get { - return this.reasonFieldSpecified; + return this.mobileWebSizeFieldSpecified; } set { - this.reasonFieldSpecified = value; + this.mobileWebSizeFieldSpecified = value; } } - } - - /// The reason of the error. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "MetadataMergeSpecError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum MetadataMergeSpecErrorReason { - /// The merge rule has an input id that is already used by another merge rule. - /// - INPUT_ID_ALREADY_USED = 0, - /// The merge rule has an bucket where a bound type was specified without a min/max. - /// - BOUND_SPECIFIED_WITHOUT_VALUE = 1, - /// The merge rule has an bucket where a min/max was specified without a bound type. - /// - VALUE_SPECIFIED_WITHOUT_BOUND = 2, - /// The merge rule has an bucket range where the min exceeds the max. - /// - MIN_EXCEEDS_MAX = 3, - /// Tried to merge two or more rules which have value rules. - /// - MORE_THAN_ONE_INPUT_KEY_HAS_VALUE_RULES = 4, - /// Tried to set a rule for a value that does not match rule output namespace. - /// - VALUE_SPECIFIED_DOES_NOT_MATCH_OUTPUT_KEY = 5, - /// Tried to merge values on an existing rule that has value bucketing. - /// - CANNOT_MERGE_VALUES_WHERE_VALUE_BUCKET_EXISTS = 6, - /// Tried to create a rule that depends on a reserved key. - /// - CANNOT_MODIFY_RESERVED_KEY = 7, - /// The value returned if the actual value is not exposed by the requested API - /// version. + /// Number of unique IDFA identifiers in the AudienceSegment. This attribute is read-only. /// - UNKNOWN = 8, - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", ConfigurationName = "Google.Api.Ads.AdManager.v202311.CmsMetadataServiceInterface")] - public interface CmsMetadataServiceInterface - { - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v202311.CmsMetadataKeyPage getCmsMetadataKeysByStatement(Google.Api.Ads.AdManager.v202311.Statement statement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getCmsMetadataKeysByStatementAsync(Google.Api.Ads.AdManager.v202311.Statement statement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v202311.CmsMetadataValuePage getCmsMetadataValuesByStatement(Google.Api.Ads.AdManager.v202311.Statement statement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getCmsMetadataValuesByStatementAsync(Google.Api.Ads.AdManager.v202311.Statement statement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v202311.UpdateResult performCmsMetadataKeyAction(Google.Api.Ads.AdManager.v202311.CmsMetadataKeyAction keyAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task performCmsMetadataKeyActionAsync(Google.Api.Ads.AdManager.v202311.CmsMetadataKeyAction keyAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v202311.UpdateResult performCmsMetadataValueAction(Google.Api.Ads.AdManager.v202311.CmsMetadataValueAction valueAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task performCmsMetadataValueActionAsync(Google.Api.Ads.AdManager.v202311.CmsMetadataValueAction valueAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement); - } - - - /// Captures a page of CMS metadata value objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class CmsMetadataValuePage { - private int totalResultSetSizeField; - - private bool totalResultSetSizeFieldSpecified; - - private int startIndexField; - - private bool startIndexFieldSpecified; - - private CmsMetadataValue[] resultsField; - - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public int totalResultSetSize { + [System.Xml.Serialization.XmlElementAttribute(Order = 7)] + public long idfaSize { get { - return this.totalResultSetSizeField; + return this.idfaSizeField; } set { - this.totalResultSetSizeField = value; - this.totalResultSetSizeSpecified = true; + this.idfaSizeField = value; + this.idfaSizeSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool totalResultSetSizeSpecified { + public bool idfaSizeSpecified { get { - return this.totalResultSetSizeFieldSpecified; + return this.idfaSizeFieldSpecified; } set { - this.totalResultSetSizeFieldSpecified = value; + this.idfaSizeFieldSpecified = value; } } - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public int startIndex { + /// Number of unique AdID identifiers in the AudienceSegment. This attribute is read-only. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 8)] + public long adIdSize { get { - return this.startIndexField; + return this.adIdSizeField; } set { - this.startIndexField = value; - this.startIndexSpecified = true; + this.adIdSizeField = value; + this.adIdSizeSpecified = true; } } - /// true, if a value is specified for true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool startIndexSpecified { - get { - return this.startIndexFieldSpecified; - } - set { - this.startIndexFieldSpecified = value; - } - } - - [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] - public CmsMetadataValue[] results { + public bool adIdSizeSpecified { get { - return this.resultsField; + return this.adIdSizeFieldSpecified; } set { - this.resultsField = value; + this.adIdSizeFieldSpecified = value; } } - } - - - /// Key value pair associated with a piece of content from a publisher's CMS. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class CmsMetadataValue { - private long cmsMetadataValueIdField; - - private bool cmsMetadataValueIdFieldSpecified; - - private string valueNameField; - - private CmsMetadataKey keyField; - - private CmsMetadataValueStatus statusField; - - private bool statusFieldSpecified; - /// The ID of this CMS metadata value, to be used in targeting. This field is - /// read-only and provided by Google. + /// Number of unique PPID (publisher provided identifiers) in the AudienceSegment. This attribute is read-only. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public long cmsMetadataValueId { + [System.Xml.Serialization.XmlElementAttribute(Order = 9)] + public long ppidSize { get { - return this.cmsMetadataValueIdField; + return this.ppidSizeField; } set { - this.cmsMetadataValueIdField = value; - this.cmsMetadataValueIdSpecified = true; + this.ppidSizeField = value; + this.ppidSizeSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool cmsMetadataValueIdSpecified { - get { - return this.cmsMetadataValueIdFieldSpecified; - } - set { - this.cmsMetadataValueIdFieldSpecified = value; - } - } - - /// The value of this key-value pair. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public string valueName { + public bool ppidSizeSpecified { get { - return this.valueNameField; + return this.ppidSizeFieldSpecified; } set { - this.valueNameField = value; + this.ppidSizeFieldSpecified = value; } } - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public CmsMetadataKey key { + /// Owner data provider of this segment. This attribute is readonly and is assigned + /// by Google. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 10)] + public AudienceSegmentDataProvider dataProvider { get { - return this.keyField; + return this.dataProviderField; } set { - this.keyField = value; + this.dataProviderField = value; } } - /// The status of this CMS metadata value. This attribute is read-only. + /// Type of the segment. This attribute is readonly and is assigned by Google. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public CmsMetadataValueStatus status { + [System.Xml.Serialization.XmlElementAttribute(Order = 11)] + public AudienceSegmentType type { get { - return this.statusField; + return this.typeField; } set { - this.statusField = value; - this.statusSpecified = true; + this.typeField = value; + this.typeSpecified = true; } } - /// true, if a value is specified for , + /// true, if a value is specified for , /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool statusSpecified { + public bool typeSpecified { get { - return this.statusFieldSpecified; + return this.typeFieldSpecified; } set { - this.statusFieldSpecified = value; + this.typeFieldSpecified = value; } } } - /// Status for CmsMetadataValue objects. + /// Specifies the statuses for AudienceSegment + /// objects. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum CmsMetadataValueStatus { - ACTIVE = 0, - INACTIVE = 1, - ARCHIVED = 2, + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AudienceSegment.Status", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum AudienceSegmentStatus { /// The value returned if the actual value is not exposed by the requested API /// version. /// UNKNOWN = 3, + /// Active status means this audience segment is available for targeting. + /// + ACTIVE = 0, + /// Inactive status means this audience segment is not available for targeting. + /// + INACTIVE = 1, + /// Unused status means this audience segment was deactivated by Google because it + /// is unused. + /// + UNUSED = 2, } - /// Represents the actions that can be performed on CmsMetadataKey objects. - /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(DeactivateCmsMetadataKeys))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ActivateCmsMetadataKeys))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public abstract partial class CmsMetadataKeyAction { - } - - - /// The action used for deactivating CmsMetadataKey - /// objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class DeactivateCmsMetadataKeys : CmsMetadataKeyAction { - } - - - /// The action used for activating CmsMetadataKey - /// objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ActivateCmsMetadataKeys : CmsMetadataKeyAction { - } - - - /// Represents the actions that can be performed on CmsMetadataValue objects. + /// Specifies types for AudienceSegment objects. /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(DeactivateCmsMetadataValues))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ActivateCmsMetadataValues))] [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public abstract partial class CmsMetadataValueAction { + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AudienceSegment.Type", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum AudienceSegmentType { + /// First party segments created and owned by the publisher. + /// + FIRST_PARTY = 0, + /// First party segments shared by other clients. + /// + SHARED = 1, + /// Third party segments licensed by the publisher from data providers. This doesn't + /// include Google-provided licensed segments. + /// + THIRD_PARTY = 2, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 3, } - /// The action used for deactivating CmsMetadataValue - /// objects. + /// A SharedAudienceSegment is an AudienceSegment owned by another entity and shared + /// with the publisher network. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class DeactivateCmsMetadataValues : CmsMetadataValueAction { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class SharedAudienceSegment : AudienceSegment { } - /// The action used for activating CmsMetadataValue - /// objects. + /// A ThirdPartyAudienceSegment is an AudienceSegment owned by a data provider and licensed + /// to the Ad Manager publisher. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ActivateCmsMetadataValues : CmsMetadataValueAction { - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public interface CmsMetadataServiceInterfaceChannel : Google.Api.Ads.AdManager.v202311.CmsMetadataServiceInterface, System.ServiceModel.IClientChannel - { - } - - - /// Provides methods for querying CMS metadata keys and values.

A CMS metadata - /// value corresponds to one key value pair ingested from a publisher's CMS and is - /// used to target all the content with which it is associated in the CMS.

- ///
- [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public partial class CmsMetadataService : AdManagerSoapClient, ICmsMetadataService { - /// Creates a new instance of the class. - /// - public CmsMetadataService() { - } - - /// Creates a new instance of the class. - /// - public CmsMetadataService(string endpointConfigurationName) - : base(endpointConfigurationName) { - } - - /// Creates a new instance of the class. - /// - public CmsMetadataService(string endpointConfigurationName, string remoteAddress) - : base(endpointConfigurationName, remoteAddress) { - } + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ThirdPartyAudienceSegment : AudienceSegment { + private AudienceSegmentApprovalStatus approvalStatusField; - /// Creates a new instance of the class. - /// - public CmsMetadataService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) - : base(endpointConfigurationName, remoteAddress) { - } + private bool approvalStatusFieldSpecified; - /// Creates a new instance of the class. - /// - public CmsMetadataService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) - : base(binding, remoteAddress) { - } + private Money costField; - /// Returns a page of CmsMetadataKeys matching the - /// specified Statement. The following fields are supported - /// for filtering: - /// - ///
PQL Property Object Property
id CmsMetadataKey#cmsMetadataKeyId
cmsKey CmsMetadataKey#keyName
status CmsMetadataKey#status
- ///
- public virtual Google.Api.Ads.AdManager.v202311.CmsMetadataKeyPage getCmsMetadataKeysByStatement(Google.Api.Ads.AdManager.v202311.Statement statement) { - return base.Channel.getCmsMetadataKeysByStatement(statement); - } + private LicenseType licenseTypeField; - public virtual System.Threading.Tasks.Task getCmsMetadataKeysByStatementAsync(Google.Api.Ads.AdManager.v202311.Statement statement) { - return base.Channel.getCmsMetadataKeysByStatementAsync(statement); - } + private bool licenseTypeFieldSpecified; - /// Returns a page of CmsMetadataValues matching the - /// specified Statement. The following fields are supported - /// for filtering: - /// - /// - /// - ///
PQL Property Object Property
id CmsMetadataValue#cmsMetadataValueId
cmsValue CmsMetadataValue#valueName
cmsKey CmsMetadataValue#key#name
cmsKeyId CmsMetadataValue#key#id
status CmsMetadataValue#status
- ///
- public virtual Google.Api.Ads.AdManager.v202311.CmsMetadataValuePage getCmsMetadataValuesByStatement(Google.Api.Ads.AdManager.v202311.Statement statement) { - return base.Channel.getCmsMetadataValuesByStatement(statement); - } + private DateTime startDateTimeField; - public virtual System.Threading.Tasks.Task getCmsMetadataValuesByStatementAsync(Google.Api.Ads.AdManager.v202311.Statement statement) { - return base.Channel.getCmsMetadataValuesByStatementAsync(statement); - } + private DateTime endDateTimeField; - /// Performs actions on CmsMetadataKey objects that - /// match the given Statement#query. + /// Specifies if the publisher has approved or rejected the segment. /// - public virtual Google.Api.Ads.AdManager.v202311.UpdateResult performCmsMetadataKeyAction(Google.Api.Ads.AdManager.v202311.CmsMetadataKeyAction keyAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.performCmsMetadataKeyAction(keyAction, filterStatement); + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public AudienceSegmentApprovalStatus approvalStatus { + get { + return this.approvalStatusField; + } + set { + this.approvalStatusField = value; + this.approvalStatusSpecified = true; + } } - public virtual System.Threading.Tasks.Task performCmsMetadataKeyActionAsync(Google.Api.Ads.AdManager.v202311.CmsMetadataKeyAction keyAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.performCmsMetadataKeyActionAsync(keyAction, filterStatement); + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool approvalStatusSpecified { + get { + return this.approvalStatusFieldSpecified; + } + set { + this.approvalStatusFieldSpecified = value; + } } - /// Performs actions on CmsMetadataValue objects that - /// match the given Statement#query. + /// Specifies CPM cost for the given segment. This attribute is readonly and is + /// assigned by the data provider.

The CPM cost comes from the active pricing, if + /// there is one; otherwise it comes from the latest pricing.

///
- public virtual Google.Api.Ads.AdManager.v202311.UpdateResult performCmsMetadataValueAction(Google.Api.Ads.AdManager.v202311.CmsMetadataValueAction valueAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.performCmsMetadataValueAction(valueAction, filterStatement); - } - - public virtual System.Threading.Tasks.Task performCmsMetadataValueActionAsync(Google.Api.Ads.AdManager.v202311.CmsMetadataValueAction valueAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.performCmsMetadataValueActionAsync(valueAction, filterStatement); + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public Money cost { + get { + return this.costField; + } + set { + this.costField = value; + } } - } - namespace Wrappers.TargetingPresetService - { - } - /// User-defined preset targeting criteria. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class TargetingPreset { - private long idField; - private bool idFieldSpecified; - - private string nameField; - - private Targeting targetingField; - - /// The unique ID of the TargetingPreset. This value is readonly and is - /// assigned by Google. + /// Specifies the license type of the external segment. This attribute is read-only. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public long id { + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public LicenseType licenseType { get { - return this.idField; + return this.licenseTypeField; } set { - this.idField = value; - this.idSpecified = true; + this.licenseTypeField = value; + this.licenseTypeSpecified = true; } } - /// true, if a value is specified for , - /// false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool idSpecified { + public bool licenseTypeSpecified { get { - return this.idFieldSpecified; + return this.licenseTypeFieldSpecified; } set { - this.idFieldSpecified = value; + this.licenseTypeFieldSpecified = value; } } - /// The name of the TargetingPreset. This value is required to create a - /// targeting preset and has a maximum length of 255 characters. + /// Specifies the date and time at which this segment becomes available for use. + /// This attribute is readonly and is assigned by the data provider. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public string name { + [System.Xml.Serialization.XmlElementAttribute(Order = 3)] + public DateTime startDateTime { get { - return this.nameField; + return this.startDateTimeField; } set { - this.nameField = value; + this.startDateTimeField = value; } } - /// Contains the targeting criteria for the TargetingPreset. This - /// attribute is required. + /// Specifies the date and time at which this segment ceases to be available for + /// use. This attribute is readonly and is assigned by the data provider. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public Targeting targeting { + [System.Xml.Serialization.XmlElementAttribute(Order = 4)] + public DateTime endDateTime { get { - return this.targetingField; + return this.endDateTimeField; } set { - this.targetingField = value; + this.endDateTimeField = value; } } } - /// Captures a paged query of TargetingPresetDto - /// objects. + /// Approval status values for ThirdPartyAudienceSegment objects. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum AudienceSegmentApprovalStatus { + /// Specifies that this segment is waiting to be approved or rejected. It cannot be + /// targeted. + /// + UNAPPROVED = 0, + /// Specifies that this segment is approved and can be targeted. + /// + APPROVED = 1, + /// Specifies that this segment is rejected and cannot be targeted. + /// + REJECTED = 2, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 3, + } + + + /// Specifies the license type of a ThirdPartyAudienceSegment. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum LicenseType { + /// A direct license is the result of a direct contract between the data provider + /// and the publisher. + /// + DIRECT_LICENSE = 0, + /// A global license is the result of an agreement between Google and the data + /// provider, which agrees to license their audience segments to all the publishers + /// and/or advertisers of the Google ecosystem. + /// + GLOBAL_LICENSE = 1, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 2, + } + + + /// A FirstPartyAudienceSegment is an AudienceSegment owned by the publisher network. /// + [System.Xml.Serialization.XmlIncludeAttribute(typeof(RuleBasedFirstPartyAudienceSegmentSummary))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(RuleBasedFirstPartyAudienceSegment))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(NonRuleBasedFirstPartyAudienceSegment))] [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class TargetingPresetPage { - private int totalResultSetSizeField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public abstract partial class FirstPartyAudienceSegment : AudienceSegment { + } - private bool totalResultSetSizeFieldSpecified; - private int startIndexField; + /// A RuleBasedFirstPartyAudienceSegmentSummary + /// is a FirstPartyAudienceSegment owned by + /// the publisher network. + /// + [System.Xml.Serialization.XmlIncludeAttribute(typeof(RuleBasedFirstPartyAudienceSegment))] + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class RuleBasedFirstPartyAudienceSegmentSummary : FirstPartyAudienceSegment { + private int pageViewsField; - private bool startIndexFieldSpecified; + private bool pageViewsFieldSpecified; - private TargetingPreset[] resultsField; + private int recencyDaysField; - /// The size of the total result set to which this page belongs. + private bool recencyDaysFieldSpecified; + + private int membershipExpirationDaysField; + + private bool membershipExpirationDaysFieldSpecified; + + /// Specifies the number of times a user's cookie must match the segment rule before + /// it's associated with the audience segment. This is used in combination with FirstPartyAudienceSegment#recencyDays to determine eligibility of + /// the association. This attribute is required and can be between 1 and 12. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public int totalResultSetSize { + public int pageViews { get { - return this.totalResultSetSizeField; + return this.pageViewsField; } set { - this.totalResultSetSizeField = value; - this.totalResultSetSizeSpecified = true; + this.pageViewsField = value; + this.pageViewsSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool totalResultSetSizeSpecified { + public bool pageViewsSpecified { get { - return this.totalResultSetSizeFieldSpecified; + return this.pageViewsFieldSpecified; } set { - this.totalResultSetSizeFieldSpecified = value; + this.pageViewsFieldSpecified = value; } } - /// The absolute index in the total result set on which this page begins. + /// Specifies the number of days within which a user's cookie must match the segment + /// rule before it's associated with the audience segment. This is used in + /// combination with FirstPartyAudienceSegment#pageViews to determine + /// eligibility of the association. This attribute is required only if FirstPartyAudienceSegment#pageViews + /// is greater than 1. When required, it can be between 1 and 90. /// [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public int startIndex { + public int recencyDays { get { - return this.startIndexField; + return this.recencyDaysField; } set { - this.startIndexField = value; - this.startIndexSpecified = true; + this.recencyDaysField = value; + this.recencyDaysSpecified = true; } } - /// true, if a value is specified for true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool startIndexSpecified { - get { - return this.startIndexFieldSpecified; - } - set { - this.startIndexFieldSpecified = value; - } - } - - /// The collection of line items contained within this page. - /// - [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] - public TargetingPreset[] results { + public bool recencyDaysSpecified { get { - return this.resultsField; + return this.recencyDaysFieldSpecified; } set { - this.resultsField = value; + this.recencyDaysFieldSpecified = value; } } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", ConfigurationName = "Google.Api.Ads.AdManager.v202311.TargetingPresetServiceInterface")] - public interface TargetingPresetServiceInterface - { - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v202311.TargetingPresetPage getTargetingPresetsByStatement(Google.Api.Ads.AdManager.v202311.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getTargetingPresetsByStatementAsync(Google.Api.Ads.AdManager.v202311.Statement filterStatement); - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public interface TargetingPresetServiceInterfaceChannel : Google.Api.Ads.AdManager.v202311.TargetingPresetServiceInterface, System.ServiceModel.IClientChannel - { - } - - - /// Service for interacting with Targeting Presets. - /// - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public partial class TargetingPresetService : AdManagerSoapClient, ITargetingPresetService { - /// Creates a new instance of the - /// class. - public TargetingPresetService() { - } - - /// Creates a new instance of the - /// class. - public TargetingPresetService(string endpointConfigurationName) - : base(endpointConfigurationName) { - } - - /// Creates a new instance of the - /// class. - public TargetingPresetService(string endpointConfigurationName, string remoteAddress) - : base(endpointConfigurationName, remoteAddress) { - } - - /// Creates a new instance of the - /// class. - public TargetingPresetService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) - : base(endpointConfigurationName, remoteAddress) { - } - - /// Creates a new instance of the - /// class. - public TargetingPresetService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) - : base(binding, remoteAddress) { - } - /// Gets a TargetingPresetPage of TargetingPreset objects that satisfy the given Statement#query. The following fields are supported - /// for filtering: - ///
PQL Property Object Property
id TargetingPreset#id
name TargetingPreset#name
+ /// Specifies the number of days after which a user's cookie will be removed from + /// the audience segment due to inactivity. This attribute is required and can be + /// between 1 and 540. /// - public virtual Google.Api.Ads.AdManager.v202311.TargetingPresetPage getTargetingPresetsByStatement(Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.getTargetingPresetsByStatement(filterStatement); + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public int membershipExpirationDays { + get { + return this.membershipExpirationDaysField; + } + set { + this.membershipExpirationDaysField = value; + this.membershipExpirationDaysSpecified = true; + } } - public virtual System.Threading.Tasks.Task getTargetingPresetsByStatementAsync(Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.getTargetingPresetsByStatementAsync(filterStatement); + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool membershipExpirationDaysSpecified { + get { + return this.membershipExpirationDaysFieldSpecified; + } + set { + this.membershipExpirationDaysFieldSpecified = value; + } } } - namespace Wrappers.CreativeReviewService - { - } + + + /// A RuleBasedFirstPartyAudienceSegment + /// is a FirstPartyAudienceSegment owned by + /// the publisher network. It contains a rule. + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class CreativeReview { - private string idField; - - private string reviewableUrlField; - - private long impressionsField; - - private bool impressionsFieldSpecified; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class RuleBasedFirstPartyAudienceSegment : RuleBasedFirstPartyAudienceSegmentSummary { + private FirstPartyAudienceSegmentRule ruleField; - /// This attribute is read-only. + /// Specifies the rule of the segment which determines user's eligibility criteria + /// to be part of the segment. This attribute is required. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public string id { + public FirstPartyAudienceSegmentRule rule { get { - return this.idField; + return this.ruleField; } set { - this.idField = value; + this.ruleField = value; } } + } - /// This attribute is read-only. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public string reviewableUrl { - get { - return this.reviewableUrlField; - } - set { - this.reviewableUrlField = value; - } - } - /// This attribute is read-only. + /// A NonRuleBasedFirstPartyAudienceSegment + /// is a FirstPartyAudienceSegment owned by + /// the publisher network. It doesn't contain a rule. Cookies are usually added to + /// this segment via cookie upload. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class NonRuleBasedFirstPartyAudienceSegment : FirstPartyAudienceSegment { + private int membershipExpirationDaysField; + + private bool membershipExpirationDaysFieldSpecified; + + /// Specifies the number of days after which a user's cookie will be removed from + /// the audience segment due to inactivity. This attribute is required and can be + /// between 1 and 540. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public long impressions { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public int membershipExpirationDays { get { - return this.impressionsField; + return this.membershipExpirationDaysField; } set { - this.impressionsField = value; - this.impressionsSpecified = true; + this.membershipExpirationDaysField = value; + this.membershipExpirationDaysSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool impressionsSpecified { + public bool membershipExpirationDaysSpecified { get { - return this.impressionsFieldSpecified; + return this.membershipExpirationDaysFieldSpecified; } set { - this.impressionsFieldSpecified = value; + this.membershipExpirationDaysFieldSpecified = value; } } } + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", ConfigurationName = "Google.Api.Ads.AdManager.v202411.AudienceSegmentServiceInterface")] + public interface AudienceSegmentServiceInterface + { + // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(AudienceSegment))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Wrappers.AudienceSegmentService.createAudienceSegmentsResponse createAudienceSegments(Wrappers.AudienceSegmentService.createAudienceSegmentsRequest request); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + System.Threading.Tasks.Task createAudienceSegmentsAsync(Wrappers.AudienceSegmentService.createAudienceSegmentsRequest request); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(AudienceSegment))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v202411.AudienceSegmentPage getAudienceSegmentsByStatement(Google.Api.Ads.AdManager.v202411.Statement filterStatement); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task getAudienceSegmentsByStatementAsync(Google.Api.Ads.AdManager.v202411.Statement filterStatement); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(AudienceSegment))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v202411.UpdateResult performAudienceSegmentAction(Google.Api.Ads.AdManager.v202411.AudienceSegmentAction action, Google.Api.Ads.AdManager.v202411.Statement filterStatement); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task performAudienceSegmentActionAsync(Google.Api.Ads.AdManager.v202411.AudienceSegmentAction action, Google.Api.Ads.AdManager.v202411.Statement filterStatement); + + // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(AudienceSegment))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Wrappers.AudienceSegmentService.updateAudienceSegmentsResponse updateAudienceSegments(Wrappers.AudienceSegmentService.updateAudienceSegmentsRequest request); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + System.Threading.Tasks.Task updateAudienceSegmentsAsync(Wrappers.AudienceSegmentService.updateAudienceSegmentsRequest request); + } + + + /// Represents a page of AudienceSegment objects. + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class CreativeReviewPage { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class AudienceSegmentPage { private int totalResultSetSizeField; private bool totalResultSetSizeFieldSpecified; @@ -58763,8 +57476,10 @@ public partial class CreativeReviewPage { private bool startIndexFieldSpecified; - private CreativeReview[] resultsField; + private AudienceSegment[] resultsField; + /// The size of the total result set to which this page belongs. + /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] public int totalResultSetSize { get { @@ -58789,6 +57504,8 @@ public bool totalResultSetSizeSpecified { } } + /// The absolute index in the total result set on which this page begins. + /// [System.Xml.Serialization.XmlElementAttribute(Order = 1)] public int startIndex { get { @@ -58813,8 +57530,10 @@ public bool startIndexSpecified { } } + /// The collection of audience segments contained within this page. + /// [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] - public CreativeReview[] results { + public AudienceSegment[] results { get { return this.resultsField; } @@ -58825,165 +57544,248 @@ public CreativeReview[] results { } - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", ConfigurationName = "Google.Api.Ads.AdManager.v202311.CreativeReviewServiceInterface")] - public interface CreativeReviewServiceInterface - { - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v202311.CreativeReviewPage getCreativeReviewsByStatement(Google.Api.Ads.AdManager.v202311.Statement statement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getCreativeReviewsByStatementAsync(Google.Api.Ads.AdManager.v202311.Statement statement); + /// Action that can be performed on AudienceSegment + /// objects. + /// + [System.Xml.Serialization.XmlIncludeAttribute(typeof(RejectAudienceSegments))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(PopulateAudienceSegments))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(DeactivateAudienceSegments))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ApproveAudienceSegments))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ActivateAudienceSegments))] + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public abstract partial class AudienceSegmentAction { + } - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v202311.UpdateResult performCreativeReviewAction(Google.Api.Ads.AdManager.v202311.CreativeReviewAction creativeReviewAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement); - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task performCreativeReviewActionAsync(Google.Api.Ads.AdManager.v202311.CreativeReviewAction creativeReviewAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement); + /// Action that can be performed on ThirdPartyAudienceSegment objects to reject + /// them. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class RejectAudienceSegments : AudienceSegmentAction { } - [System.Xml.Serialization.XmlIncludeAttribute(typeof(DisapproveCreativeReviews))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ArchiveCreativeReviews))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ApproveCreativeReviews))] + /// Action that can be performed on FirstPartyAudienceSegment objects to + /// populate them based on last 30 days of traffic. + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public abstract partial class CreativeReviewAction { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class PopulateAudienceSegments : AudienceSegmentAction { } + /// Action that can be performed on FirstPartyAudienceSegment objects to + /// deactivate them. + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class DisapproveCreativeReviews : CreativeReviewAction { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class DeactivateAudienceSegments : AudienceSegmentAction { } + /// Action that can be performed on ThirdPartyAudienceSegment objects to + /// approve them. + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ArchiveCreativeReviews : CreativeReviewAction { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ApproveAudienceSegments : AudienceSegmentAction { } + /// Action that can be performed on FirstPartyAudienceSegment objects to + /// activate them. + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ApproveCreativeReviews : CreativeReviewAction { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ActivateAudienceSegments : AudienceSegmentAction { } [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public interface CreativeReviewServiceInterfaceChannel : Google.Api.Ads.AdManager.v202311.CreativeReviewServiceInterface, System.ServiceModel.IClientChannel + public interface AudienceSegmentServiceInterfaceChannel : Google.Api.Ads.AdManager.v202411.AudienceSegmentServiceInterface, System.ServiceModel.IClientChannel { } + /// Provides operations for creating, updating and retrieving AudienceSegment objects. + /// [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public partial class CreativeReviewService : AdManagerSoapClient, ICreativeReviewService { - /// Creates a new instance of the + public partial class AudienceSegmentService : AdManagerSoapClient, IAudienceSegmentService { + /// Creates a new instance of the /// class. - public CreativeReviewService() { + public AudienceSegmentService() { } - /// Creates a new instance of the + /// Creates a new instance of the /// class. - public CreativeReviewService(string endpointConfigurationName) + public AudienceSegmentService(string endpointConfigurationName) : base(endpointConfigurationName) { } - /// Creates a new instance of the + /// Creates a new instance of the /// class. - public CreativeReviewService(string endpointConfigurationName, string remoteAddress) + public AudienceSegmentService(string endpointConfigurationName, string remoteAddress) : base(endpointConfigurationName, remoteAddress) { } - /// Creates a new instance of the + /// Creates a new instance of the /// class. - public CreativeReviewService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) + public AudienceSegmentService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) : base(endpointConfigurationName, remoteAddress) { } - /// Creates a new instance of the + /// Creates a new instance of the /// class. - public CreativeReviewService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) + public AudienceSegmentService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) : base(binding, remoteAddress) { } - /// Gets a CreativeReviewPage of CreativeReview objects that satisfy the given Statement#query. This will allow you to review - /// creatives that have displayed (or could have displayed) on your pages or apps in - /// the last 30 days. To ensure that you are always reviewing the most important - /// creatives first, the CreativeReview objects are - /// ranked according to the number of impressions that they've received.

This - /// feature is not yet openly available. Publishers will need to apply for access - /// for this feature through their account managers.

+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + Wrappers.AudienceSegmentService.createAudienceSegmentsResponse Google.Api.Ads.AdManager.v202411.AudienceSegmentServiceInterface.createAudienceSegments(Wrappers.AudienceSegmentService.createAudienceSegmentsRequest request) { + return base.Channel.createAudienceSegments(request); + } + + /// Creates new FirstPartyAudienceSegment + /// objects. /// - public virtual Google.Api.Ads.AdManager.v202311.CreativeReviewPage getCreativeReviewsByStatement(Google.Api.Ads.AdManager.v202311.Statement statement) { - return base.Channel.getCreativeReviewsByStatement(statement); + public virtual Google.Api.Ads.AdManager.v202411.FirstPartyAudienceSegment[] createAudienceSegments(Google.Api.Ads.AdManager.v202411.FirstPartyAudienceSegment[] segments) { + Wrappers.AudienceSegmentService.createAudienceSegmentsRequest inValue = new Wrappers.AudienceSegmentService.createAudienceSegmentsRequest(); + inValue.segments = segments; + Wrappers.AudienceSegmentService.createAudienceSegmentsResponse retVal = ((Google.Api.Ads.AdManager.v202411.AudienceSegmentServiceInterface)(this)).createAudienceSegments(inValue); + return retVal.rval; } - public virtual System.Threading.Tasks.Task getCreativeReviewsByStatementAsync(Google.Api.Ads.AdManager.v202311.Statement statement) { - return base.Channel.getCreativeReviewsByStatementAsync(statement); + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202411.AudienceSegmentServiceInterface.createAudienceSegmentsAsync(Wrappers.AudienceSegmentService.createAudienceSegmentsRequest request) { + return base.Channel.createAudienceSegmentsAsync(request); } - /// Performs actions on CreativeReview objects that - /// match the given Statement#query. You can use actions to approve - /// (allow) or disapprove (block) creatives, as seen in the corresponding CreativeReview objects. You can also archive creatives - /// to allow you to retrieve new CreativeReview objects - /// while previously retrieved CreativeReview objects are in pending - /// approval. + public virtual System.Threading.Tasks.Task createAudienceSegmentsAsync(Google.Api.Ads.AdManager.v202411.FirstPartyAudienceSegment[] segments) { + Wrappers.AudienceSegmentService.createAudienceSegmentsRequest inValue = new Wrappers.AudienceSegmentService.createAudienceSegmentsRequest(); + inValue.segments = segments; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202411.AudienceSegmentServiceInterface)(this)).createAudienceSegmentsAsync(inValue)).Result.rval); + } + + /// Gets an AudienceSegmentPage of AudienceSegment objects that satisfy the given Statement#query. The following fields are supported + /// for filtering: + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + ///
PQL Property Object Property
id AudienceSegment#id
name AudienceSegment#name
status AudienceSegment#status
type AudienceSegment#type
size AudienceSegment#size
dataProviderName AudienceSegmentDataProvider#name
segmentType AudienceSegment#type
approvalStatus ThirdPartyAudienceSegment#approvalStatus
cost ThirdPartyAudienceSegment#cost
startDateTime ThirdPartyAudienceSegment#startDateTime
endDateTime ThirdPartyAudienceSegment#endDateTime
+ ///
+ public virtual Google.Api.Ads.AdManager.v202411.AudienceSegmentPage getAudienceSegmentsByStatement(Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.getAudienceSegmentsByStatement(filterStatement); + } + + public virtual System.Threading.Tasks.Task getAudienceSegmentsByStatementAsync(Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.getAudienceSegmentsByStatementAsync(filterStatement); + } + + /// Performs the given AudienceSegmentAction on + /// the set of segments identified by the given statement. + /// + public virtual Google.Api.Ads.AdManager.v202411.UpdateResult performAudienceSegmentAction(Google.Api.Ads.AdManager.v202411.AudienceSegmentAction action, Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.performAudienceSegmentAction(action, filterStatement); + } + + public virtual System.Threading.Tasks.Task performAudienceSegmentActionAsync(Google.Api.Ads.AdManager.v202411.AudienceSegmentAction action, Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.performAudienceSegmentActionAsync(action, filterStatement); + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + Wrappers.AudienceSegmentService.updateAudienceSegmentsResponse Google.Api.Ads.AdManager.v202411.AudienceSegmentServiceInterface.updateAudienceSegments(Wrappers.AudienceSegmentService.updateAudienceSegmentsRequest request) { + return base.Channel.updateAudienceSegments(request); + } + + /// Updates the given FirstPartyAudienceSegment objects. /// - public virtual Google.Api.Ads.AdManager.v202311.UpdateResult performCreativeReviewAction(Google.Api.Ads.AdManager.v202311.CreativeReviewAction creativeReviewAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.performCreativeReviewAction(creativeReviewAction, filterStatement); + public virtual Google.Api.Ads.AdManager.v202411.FirstPartyAudienceSegment[] updateAudienceSegments(Google.Api.Ads.AdManager.v202411.FirstPartyAudienceSegment[] segments) { + Wrappers.AudienceSegmentService.updateAudienceSegmentsRequest inValue = new Wrappers.AudienceSegmentService.updateAudienceSegmentsRequest(); + inValue.segments = segments; + Wrappers.AudienceSegmentService.updateAudienceSegmentsResponse retVal = ((Google.Api.Ads.AdManager.v202411.AudienceSegmentServiceInterface)(this)).updateAudienceSegments(inValue); + return retVal.rval; + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202411.AudienceSegmentServiceInterface.updateAudienceSegmentsAsync(Wrappers.AudienceSegmentService.updateAudienceSegmentsRequest request) { + return base.Channel.updateAudienceSegmentsAsync(request); } - public virtual System.Threading.Tasks.Task performCreativeReviewActionAsync(Google.Api.Ads.AdManager.v202311.CreativeReviewAction creativeReviewAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.performCreativeReviewActionAsync(creativeReviewAction, filterStatement); + public virtual System.Threading.Tasks.Task updateAudienceSegmentsAsync(Google.Api.Ads.AdManager.v202411.FirstPartyAudienceSegment[] segments) { + Wrappers.AudienceSegmentService.updateAudienceSegmentsRequest inValue = new Wrappers.AudienceSegmentService.updateAudienceSegmentsRequest(); + inValue.segments = segments; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202411.AudienceSegmentServiceInterface)(this)).updateAudienceSegmentsAsync(inValue)).Result.rval); } } - namespace Wrappers.ContactService + namespace Wrappers.YieldGroupService { [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "createContacts", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class createContactsRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("contacts")] - public Google.Api.Ads.AdManager.v202311.Contact[] contacts; + [System.ServiceModel.MessageContractAttribute(WrapperName = "createYieldGroups", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class createYieldGroupsRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("yieldGroups")] + public Google.Api.Ads.AdManager.v202411.YieldGroup[] yieldGroups; - /// Creates a new instance of the + /// Creates a new instance of the /// class. - public createContactsRequest() { + public createYieldGroupsRequest() { } - /// Creates a new instance of the + /// Creates a new instance of the /// class. - public createContactsRequest(Google.Api.Ads.AdManager.v202311.Contact[] contacts) { - this.contacts = contacts; + public createYieldGroupsRequest(Google.Api.Ads.AdManager.v202411.YieldGroup[] yieldGroups) { + this.yieldGroups = yieldGroups; } } @@ -58991,20 +57793,20 @@ public createContactsRequest(Google.Api.Ads.AdManager.v202311.Contact[] contacts [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "createContactsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class createContactsResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "createYieldGroupsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class createYieldGroupsResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v202311.Contact[] rval; + public Google.Api.Ads.AdManager.v202411.YieldGroup[] rval; - /// Creates a new instance of the + /// Creates a new instance of the /// class. - public createContactsResponse() { + public createYieldGroupsResponse() { } - /// Creates a new instance of the + /// Creates a new instance of the /// class. - public createContactsResponse(Google.Api.Ads.AdManager.v202311.Contact[] rval) { + public createYieldGroupsResponse(Google.Api.Ads.AdManager.v202411.YieldGroup[] rval) { this.rval = rval; } } @@ -59013,21 +57815,11 @@ public createContactsResponse(Google.Api.Ads.AdManager.v202311.Contact[] rval) { [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "updateContacts", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class updateContactsRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("contacts")] - public Google.Api.Ads.AdManager.v202311.Contact[] contacts; - - /// Creates a new instance of the - /// class. - public updateContactsRequest() { - } - - /// Creates a new instance of the + [System.ServiceModel.MessageContractAttribute(WrapperName = "getYieldPartners", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class getYieldPartnersRequest { + /// Creates a new instance of the /// class. - public updateContactsRequest(Google.Api.Ads.AdManager.v202311.Contact[] contacts) { - this.contacts = contacts; + public getYieldPartnersRequest() { } } @@ -59035,782 +57827,434 @@ public updateContactsRequest(Google.Api.Ads.AdManager.v202311.Contact[] contacts [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "updateContactsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class updateContactsResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "getYieldPartnersResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class getYieldPartnersResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v202311.Contact[] rval; + public Google.Api.Ads.AdManager.v202411.YieldPartner[] rval; - /// Creates a new instance of the + /// Creates a new instance of the /// class. - public updateContactsResponse() { + public getYieldPartnersResponse() { } - /// Creates a new instance of the + /// Creates a new instance of the /// class. - public updateContactsResponse(Google.Api.Ads.AdManager.v202311.Contact[] rval) { + public getYieldPartnersResponse(Google.Api.Ads.AdManager.v202411.YieldPartner[] rval) { this.rval = rval; } } - } - /// Base class for a Contact. - /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(Contact))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class BaseContact { - } - - - /// A Contact represents a person who is affiliated with a single Company. A contact can have a variety of contact information - /// associated to it, and can be invited to view their company's orders, line items, - /// creatives, and reports. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class Contact : BaseContact { - private long idField; - - private bool idFieldSpecified; - - private string nameField; - - private long companyIdField; - - private bool companyIdFieldSpecified; - - private ContactStatus statusField; - - private bool statusFieldSpecified; - - private string addressField; - - private string cellPhoneField; - - private string commentField; - - private string emailField; - - private string faxPhoneField; - - private string titleField; - - private string workPhoneField; - - /// The unique ID of the Contact. This value is readonly and is - /// assigned by Google. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public long id { - get { - return this.idField; - } - set { - this.idField = value; - this.idSpecified = true; - } - } - - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool idSpecified { - get { - return this.idFieldSpecified; - } - set { - this.idFieldSpecified = value; - } - } - - /// The name of the contact. This attribute is required and has a maximum length of - /// 127 characters. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public string name { - get { - return this.nameField; - } - set { - this.nameField = value; - } - } - - /// The ID of the Company that this contact is associated - /// with. This attribute is required and immutable. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public long companyId { - get { - return this.companyIdField; - } - set { - this.companyIdField = value; - this.companyIdSpecified = true; - } - } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool companyIdSpecified { - get { - return this.companyIdFieldSpecified; - } - set { - this.companyIdFieldSpecified = value; - } - } - /// The status of the contact. This attribute is readonly and is assigned by Google. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public ContactStatus status { - get { - return this.statusField; - } - set { - this.statusField = value; - this.statusSpecified = true; - } - } + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "updateYieldGroups", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class updateYieldGroupsRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("yieldGroups")] + public Google.Api.Ads.AdManager.v202411.YieldGroup[] yieldGroups; - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool statusSpecified { - get { - return this.statusFieldSpecified; - } - set { - this.statusFieldSpecified = value; + /// Creates a new instance of the + /// class. + public updateYieldGroupsRequest() { } - } - /// The address of the contact. This attribute is optional and has a maximum length - /// of 1024 characters. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public string address { - get { - return this.addressField; - } - set { - this.addressField = value; + /// Creates a new instance of the + /// class. + public updateYieldGroupsRequest(Google.Api.Ads.AdManager.v202411.YieldGroup[] yieldGroups) { + this.yieldGroups = yieldGroups; } } - /// The cell phone number where the contact can be reached. This attribute is - /// optional. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 5)] - public string cellPhone { - get { - return this.cellPhoneField; - } - set { - this.cellPhoneField = value; - } - } - /// A free-form text comment for the contact. This attribute is optional and has a - /// maximum length of 1024 characters. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 6)] - public string comment { - get { - return this.commentField; - } - set { - this.commentField = value; - } - } + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "updateYieldGroupsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class updateYieldGroupsResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("rval")] + public Google.Api.Ads.AdManager.v202411.YieldGroup[] rval; - /// The e-mail address where the contact can be reached. This attribute is optional. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 7)] - public string email { - get { - return this.emailField; + /// Creates a new instance of the + /// class. + public updateYieldGroupsResponse() { } - set { - this.emailField = value; + + /// Creates a new instance of the + /// class. + public updateYieldGroupsResponse(Google.Api.Ads.AdManager.v202411.YieldGroup[] rval) { + this.rval = rval; } } + } + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class YieldParameter { + private string nameField; - /// The fax number where the contact can be reached. This attribute is optional. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 8)] - public string faxPhone { + private bool isOptionalField; + + private bool isOptionalFieldSpecified; + + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public string name { get { - return this.faxPhoneField; + return this.nameField; } set { - this.faxPhoneField = value; + this.nameField = value; } } - /// The job title of the contact. This attribute is optional and has a maximum - /// length of 1024 characters. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 9)] - public string title { + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public bool isOptional { get { - return this.titleField; + return this.isOptionalField; } set { - this.titleField = value; + this.isOptionalField = value; + this.isOptionalSpecified = true; } } - /// The work phone number where the contact can be reached. This attribute is - /// optional. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 10)] - public string workPhone { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool isOptionalSpecified { get { - return this.workPhoneField; + return this.isOptionalFieldSpecified; } set { - this.workPhoneField = value; + this.isOptionalFieldSpecified = value; } } } - /// Describes the contact statuses. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "Contact.Status", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum ContactStatus { - /// The contact has not been invited to see their orders. - /// - UNINVITED = 0, - /// The contact has been invited to see their orders, but has not yet accepted the - /// invitation. - /// - INVITE_PENDNG = 1, - /// The contact has been invited to see their orders, but the invitation has already - /// expired. - /// - INVITE_EXPIRED = 2, - /// The contact was invited to see their orders, but the invitation was cancelled. - /// - INVITE_CANCELED = 3, - /// The contact has access to login and view their orders. - /// - USER_ACTIVE = 4, - /// The contact accepted an invitation to see their orders, but their access was - /// later revoked. - /// - USER_DISABLED = 5, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 6, - } - - - /// Errors associated with Contact. + /// This represents an entry in a map with a key of type YieldParameter and value of + /// type String. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ContactError : ApiError { - private ContactErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class YieldParameter_StringMapEntry { + private YieldParameter keyField; - private bool reasonFieldSpecified; + private string valueField; [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public ContactErrorReason reason { + public YieldParameter key { get { - return this.reasonField; + return this.keyField; } set { - this.reasonField = value; - this.reasonSpecified = true; + this.keyField = value; } } - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public string value { get { - return this.reasonFieldSpecified; + return this.valueField; } set { - this.reasonFieldSpecified = value; + this.valueField = value; } } } - /// The reasons for the target error. - /// + [System.Xml.Serialization.XmlIncludeAttribute(typeof(SdkMediationSettings))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(OpenBiddingSetting))] [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ContactError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum ContactErrorReason { - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 0, - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", ConfigurationName = "Google.Api.Ads.AdManager.v202311.ContactServiceInterface")] - public interface ContactServiceInterface - { - // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(BaseContact))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Wrappers.ContactService.createContactsResponse createContacts(Wrappers.ContactService.createContactsRequest request); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task createContactsAsync(Wrappers.ContactService.createContactsRequest request); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(BaseContact))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v202311.ContactPage getContactsByStatement(Google.Api.Ads.AdManager.v202311.Statement statement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getContactsByStatementAsync(Google.Api.Ads.AdManager.v202311.Statement statement); - - // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(BaseContact))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Wrappers.ContactService.updateContactsResponse updateContacts(Wrappers.ContactService.updateContactsRequest request); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task updateContactsAsync(Wrappers.ContactService.updateContactsRequest request); + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public abstract partial class AbstractDisplaySettings { } - /// Captures a page of Contact objects. - /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ContactPage { - private int totalResultSetSizeField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class SdkMediationSettings : AbstractDisplaySettings { + private YieldParameter_StringMapEntry[] parametersField; - private bool totalResultSetSizeFieldSpecified; + private YieldIntegrationType yieldIntegrationTypeField; - private int startIndexField; + private bool yieldIntegrationTypeFieldSpecified; - private bool startIndexFieldSpecified; + private YieldPlatform platformField; - private Contact[] resultsField; + private bool platformFieldSpecified; - /// The size of the total result set to which this page belongs. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public int totalResultSetSize { + [System.Xml.Serialization.XmlElementAttribute("parameters", Order = 0)] + public YieldParameter_StringMapEntry[] parameters { get { - return this.totalResultSetSizeField; + return this.parametersField; } set { - this.totalResultSetSizeField = value; - this.totalResultSetSizeSpecified = true; + this.parametersField = value; + } + } + + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public YieldIntegrationType yieldIntegrationType { + get { + return this.yieldIntegrationTypeField; + } + set { + this.yieldIntegrationTypeField = value; + this.yieldIntegrationTypeSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="yieldIntegrationType" />, false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool totalResultSetSizeSpecified { + public bool yieldIntegrationTypeSpecified { get { - return this.totalResultSetSizeFieldSpecified; + return this.yieldIntegrationTypeFieldSpecified; } set { - this.totalResultSetSizeFieldSpecified = value; + this.yieldIntegrationTypeFieldSpecified = value; } } - /// The absolute index in the total result set on which this page begins. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public int startIndex { + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public YieldPlatform platform { get { - return this.startIndexField; + return this.platformField; } set { - this.startIndexField = value; - this.startIndexSpecified = true; + this.platformField = value; + this.platformSpecified = true; } } - /// true, if a value is specified for true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool startIndexSpecified { + public bool platformSpecified { get { - return this.startIndexFieldSpecified; + return this.platformFieldSpecified; } set { - this.startIndexFieldSpecified = value; + this.platformFieldSpecified = value; } } + } - /// The collection of contacts contained within this page. - /// - [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] - public Contact[] results { - get { - return this.resultsField; - } - set { - this.resultsField = value; - } - } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum YieldIntegrationType { + UNKNOWN = 0, + CUSTOM_EVENT = 1, + SDK = 2, + OPEN_BIDDING = 3, } - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public interface ContactServiceInterfaceChannel : Google.Api.Ads.AdManager.v202311.ContactServiceInterface, System.ServiceModel.IClientChannel - { + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum YieldPlatform { + UNKNOWN = 0, + ANDROID = 1, + IOS = 2, } - /// Provides methods for creating, updating and retrieving Contact objects. - /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public partial class ContactService : AdManagerSoapClient, IContactService { - /// Creates a new instance of the class. - /// - public ContactService() { - } + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class OpenBiddingSetting : AbstractDisplaySettings { + private YieldIntegrationType yieldIntegrationTypeField; - /// Creates a new instance of the class. - /// - public ContactService(string endpointConfigurationName) - : base(endpointConfigurationName) { - } + private bool yieldIntegrationTypeFieldSpecified; - /// Creates a new instance of the class. - /// - public ContactService(string endpointConfigurationName, string remoteAddress) - : base(endpointConfigurationName, remoteAddress) { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public YieldIntegrationType yieldIntegrationType { + get { + return this.yieldIntegrationTypeField; + } + set { + this.yieldIntegrationTypeField = value; + this.yieldIntegrationTypeSpecified = true; + } } - /// Creates a new instance of the class. - /// - public ContactService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) - : base(endpointConfigurationName, remoteAddress) { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool yieldIntegrationTypeSpecified { + get { + return this.yieldIntegrationTypeFieldSpecified; + } + set { + this.yieldIntegrationTypeFieldSpecified = value; + } } + } - /// Creates a new instance of the class. - /// - public ContactService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) - : base(binding, remoteAddress) { - } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.ContactService.createContactsResponse Google.Api.Ads.AdManager.v202311.ContactServiceInterface.createContacts(Wrappers.ContactService.createContactsRequest request) { - return base.Channel.createContacts(request); - } + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class YieldAdSource { + private long adSourceIdField; - /// Creates new Contact objects. - /// - public virtual Google.Api.Ads.AdManager.v202311.Contact[] createContacts(Google.Api.Ads.AdManager.v202311.Contact[] contacts) { - Wrappers.ContactService.createContactsRequest inValue = new Wrappers.ContactService.createContactsRequest(); - inValue.contacts = contacts; - Wrappers.ContactService.createContactsResponse retVal = ((Google.Api.Ads.AdManager.v202311.ContactServiceInterface)(this)).createContacts(inValue); - return retVal.rval; - } + private bool adSourceIdFieldSpecified; - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202311.ContactServiceInterface.createContactsAsync(Wrappers.ContactService.createContactsRequest request) { - return base.Channel.createContactsAsync(request); - } + private long companyIdField; - public virtual System.Threading.Tasks.Task createContactsAsync(Google.Api.Ads.AdManager.v202311.Contact[] contacts) { - Wrappers.ContactService.createContactsRequest inValue = new Wrappers.ContactService.createContactsRequest(); - inValue.contacts = contacts; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202311.ContactServiceInterface)(this)).createContactsAsync(inValue)).Result.rval); - } + private bool companyIdFieldSpecified; - /// Gets a ContactPage of Contact - /// objects that satisfy the given Statement#query. The following - /// fields are supported for filtering: - /// - /// - /// - /// - /// - /// - /// - /// - /// - ///
PQL - /// Property Object Property
name Contact#name
email Contact#email
idContact#id
comment Contact#comment
companyId Contact#companyId
title Contact#title
cellPhone Contact#cellPhone
workPhone Contact#workPhone
faxPhone Contact#faxPhone
status Contact#status
- ///
- public virtual Google.Api.Ads.AdManager.v202311.ContactPage getContactsByStatement(Google.Api.Ads.AdManager.v202311.Statement statement) { - return base.Channel.getContactsByStatement(statement); - } + private AbstractDisplaySettings displaySettingsField; - public virtual System.Threading.Tasks.Task getContactsByStatementAsync(Google.Api.Ads.AdManager.v202311.Statement statement) { - return base.Channel.getContactsByStatementAsync(statement); - } + private YieldEntityStatus statusField; - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.ContactService.updateContactsResponse Google.Api.Ads.AdManager.v202311.ContactServiceInterface.updateContacts(Wrappers.ContactService.updateContactsRequest request) { - return base.Channel.updateContacts(request); - } + private bool statusFieldSpecified; - /// Updates the specified Contact objects. - /// - public virtual Google.Api.Ads.AdManager.v202311.Contact[] updateContacts(Google.Api.Ads.AdManager.v202311.Contact[] contacts) { - Wrappers.ContactService.updateContactsRequest inValue = new Wrappers.ContactService.updateContactsRequest(); - inValue.contacts = contacts; - Wrappers.ContactService.updateContactsResponse retVal = ((Google.Api.Ads.AdManager.v202311.ContactServiceInterface)(this)).updateContacts(inValue); - return retVal.rval; - } + private Money manualCpmField; - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202311.ContactServiceInterface.updateContactsAsync(Wrappers.ContactService.updateContactsRequest request) { - return base.Channel.updateContactsAsync(request); - } + private bool overrideDynamicCpmField; - public virtual System.Threading.Tasks.Task updateContactsAsync(Google.Api.Ads.AdManager.v202311.Contact[] contacts) { - Wrappers.ContactService.updateContactsRequest inValue = new Wrappers.ContactService.updateContactsRequest(); - inValue.contacts = contacts; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202311.ContactServiceInterface)(this)).updateContactsAsync(inValue)).Result.rval); - } - } - namespace Wrappers.StreamActivityMonitorService - { - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "getSamSessionsByStatement", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class getSamSessionsByStatementRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - public Google.Api.Ads.AdManager.v202311.Statement statement; + private bool overrideDynamicCpmFieldSpecified; - /// Creates a new instance of the class. - public getSamSessionsByStatementRequest() { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public long adSourceId { + get { + return this.adSourceIdField; } - - /// Creates a new instance of the class. - public getSamSessionsByStatementRequest(Google.Api.Ads.AdManager.v202311.Statement statement) { - this.statement = statement; + set { + this.adSourceIdField = value; + this.adSourceIdSpecified = true; } } - - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "getSamSessionsByStatementResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class getSamSessionsByStatementResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v202311.SamSession[] rval; - - /// Creates a new instance of the class. - public getSamSessionsByStatementResponse() { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool adSourceIdSpecified { + get { + return this.adSourceIdFieldSpecified; } - - /// Creates a new instance of the class. - public getSamSessionsByStatementResponse(Google.Api.Ads.AdManager.v202311.SamSession[] rval) { - this.rval = rval; + set { + this.adSourceIdFieldSpecified = value; } } - - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "registerSessionsForMonitoring", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class registerSessionsForMonitoringRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("sessionIds")] - public string[] sessionIds; - - /// Creates a new instance of the class. - public registerSessionsForMonitoringRequest() { + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public long companyId { + get { + return this.companyIdField; } - - /// Creates a new instance of the class. - public registerSessionsForMonitoringRequest(string[] sessionIds) { - this.sessionIds = sessionIds; + set { + this.companyIdField = value; + this.companyIdSpecified = true; } } - - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "registerSessionsForMonitoringResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class registerSessionsForMonitoringResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public string[] rval; - - /// Creates a new instance of the class. - public registerSessionsForMonitoringResponse() { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool companyIdSpecified { + get { + return this.companyIdFieldSpecified; } - - /// Creates a new instance of the class. - public registerSessionsForMonitoringResponse(string[] rval) { - this.rval = rval; + set { + this.companyIdFieldSpecified = value; } } - } - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "TrackingEvent.Ping", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class TrackingEventPing { - private string uriField; - - private bool hasErrorField; - private bool hasErrorFieldSpecified; - - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public string uri { + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public AbstractDisplaySettings displaySettings { get { - return this.uriField; + return this.displaySettingsField; } set { - this.uriField = value; + this.displaySettingsField = value; } } - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public bool hasError { + [System.Xml.Serialization.XmlElementAttribute(Order = 3)] + public YieldEntityStatus status { get { - return this.hasErrorField; + return this.statusField; } set { - this.hasErrorField = value; - this.hasErrorSpecified = true; + this.statusField = value; + this.statusSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , + /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool hasErrorSpecified { + public bool statusSpecified { get { - return this.hasErrorFieldSpecified; + return this.statusFieldSpecified; } set { - this.hasErrorFieldSpecified = value; + this.statusFieldSpecified = value; } } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class CreativeTranscode { - private string adServerField; - - private CreativeTranscodeIdType creativeIdTypeField; - - private bool creativeIdTypeFieldSpecified; - - private string creativeIdField; - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public string adServer { + [System.Xml.Serialization.XmlElementAttribute(Order = 4)] + public Money manualCpm { get { - return this.adServerField; + return this.manualCpmField; } set { - this.adServerField = value; + this.manualCpmField = value; } } - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public CreativeTranscodeIdType creativeIdType { + [System.Xml.Serialization.XmlElementAttribute(Order = 5)] + public bool overrideDynamicCpm { get { - return this.creativeIdTypeField; + return this.overrideDynamicCpmField; } set { - this.creativeIdTypeField = value; - this.creativeIdTypeSpecified = true; + this.overrideDynamicCpmField = value; + this.overrideDynamicCpmSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="overrideDynamicCpm" />, false otherwise.
[System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool creativeIdTypeSpecified { - get { - return this.creativeIdTypeFieldSpecified; - } - set { - this.creativeIdTypeFieldSpecified = value; - } - } - - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public string creativeId { + public bool overrideDynamicCpmSpecified { get { - return this.creativeIdField; + return this.overrideDynamicCpmFieldSpecified; } set { - this.creativeIdField = value; + this.overrideDynamicCpmFieldSpecified = value; } } } @@ -59818,20 +58262,13 @@ public string creativeId { [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CreativeTranscode.IdType", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum CreativeTranscodeIdType { - AD_ID = 0, - CREATIVE_ID = 1, - CREATIVE_ADID = 2, - UNIVERSAL_AD_ID = 3, - MEDIA_URI = 4, - MEDIA_URI_PATH = 6, - CREATIVE_ADID_WITH_FALLBACK = 7, - CANONICALIZED_MEDIA_URI = 8, - GV_REGISTRY_ID = 9, - UNKNOWN_ID_TYPE = 10, - MEDIA_URI_HASH = 11, - UNKNOWN = 5, + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum YieldEntityStatus { + UNKNOWN = 0, + EXPERIMENTING = 4, + ACTIVE = 1, + INACTIVE = 2, + DELETED = 3, } @@ -59839,229 +58276,215 @@ public enum CreativeTranscodeIdType { [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class AdDecisionCreative { - private int sequenceField; - - private bool sequenceFieldSpecified; - - private long slateDurationMillsField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class YieldGroup { + private long yieldGroupIdField; - private bool slateDurationMillsFieldSpecified; + private bool yieldGroupIdFieldSpecified; - private long creativeDurationMillsField; + private string yieldGroupNameField; - private bool creativeDurationMillsFieldSpecified; + private YieldEntityStatus exchangeStatusField; - private CreativeTranscode creativeTranscodeField; + private bool exchangeStatusFieldSpecified; - private string googleVideoIdField; + private YieldFormat formatField; - private SamError samErrorField; + private bool formatFieldSpecified; - private bool isTranscodedField; + private YieldEnvironmentType environmentTypeField; - private bool isTranscodedFieldSpecified; + private bool environmentTypeFieldSpecified; - private bool isDroppedField; + private Targeting targetingField; - private bool isDroppedFieldSpecified; + private YieldAdSource[] adSourcesField; [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public int sequence { + public long yieldGroupId { get { - return this.sequenceField; + return this.yieldGroupIdField; } set { - this.sequenceField = value; - this.sequenceSpecified = true; + this.yieldGroupIdField = value; + this.yieldGroupIdSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool sequenceSpecified { + public bool yieldGroupIdSpecified { get { - return this.sequenceFieldSpecified; + return this.yieldGroupIdFieldSpecified; } set { - this.sequenceFieldSpecified = value; + this.yieldGroupIdFieldSpecified = value; } } [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public long slateDurationMills { - get { - return this.slateDurationMillsField; - } - set { - this.slateDurationMillsField = value; - this.slateDurationMillsSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool slateDurationMillsSpecified { + public string yieldGroupName { get { - return this.slateDurationMillsFieldSpecified; + return this.yieldGroupNameField; } set { - this.slateDurationMillsFieldSpecified = value; + this.yieldGroupNameField = value; } } [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public long creativeDurationMills { + public YieldEntityStatus exchangeStatus { get { - return this.creativeDurationMillsField; + return this.exchangeStatusField; } set { - this.creativeDurationMillsField = value; - this.creativeDurationMillsSpecified = true; + this.exchangeStatusField = value; + this.exchangeStatusSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="exchangeStatus" />, false otherwise.
[System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool creativeDurationMillsSpecified { + public bool exchangeStatusSpecified { get { - return this.creativeDurationMillsFieldSpecified; + return this.exchangeStatusFieldSpecified; } set { - this.creativeDurationMillsFieldSpecified = value; + this.exchangeStatusFieldSpecified = value; } } [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public CreativeTranscode creativeTranscode { - get { - return this.creativeTranscodeField; - } - set { - this.creativeTranscodeField = value; - } - } - - [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public string googleVideoId { + public YieldFormat format { get { - return this.googleVideoIdField; + return this.formatField; } set { - this.googleVideoIdField = value; + this.formatField = value; + this.formatSpecified = true; } } - [System.Xml.Serialization.XmlElementAttribute(Order = 5)] - public SamError samError { + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool formatSpecified { get { - return this.samErrorField; + return this.formatFieldSpecified; } set { - this.samErrorField = value; + this.formatFieldSpecified = value; } } - [System.Xml.Serialization.XmlElementAttribute(Order = 6)] - public bool isTranscoded { + [System.Xml.Serialization.XmlElementAttribute(Order = 4)] + public YieldEnvironmentType environmentType { get { - return this.isTranscodedField; + return this.environmentTypeField; } set { - this.isTranscodedField = value; - this.isTranscodedSpecified = true; + this.environmentTypeField = value; + this.environmentTypeSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="environmentType" />, false otherwise.
[System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool isTranscodedSpecified { + public bool environmentTypeSpecified { get { - return this.isTranscodedFieldSpecified; + return this.environmentTypeFieldSpecified; } set { - this.isTranscodedFieldSpecified = value; + this.environmentTypeFieldSpecified = value; } } - [System.Xml.Serialization.XmlElementAttribute(Order = 7)] - public bool isDropped { + [System.Xml.Serialization.XmlElementAttribute(Order = 5)] + public Targeting targeting { get { - return this.isDroppedField; + return this.targetingField; } set { - this.isDroppedField = value; - this.isDroppedSpecified = true; + this.targetingField = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool isDroppedSpecified { + [System.Xml.Serialization.XmlElementAttribute("adSources", Order = 6)] + public YieldAdSource[] adSources { get { - return this.isDroppedFieldSpecified; + return this.adSourcesField; } set { - this.isDroppedFieldSpecified = value; + this.adSourcesField = value; } } } + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum YieldFormat { + UNKNOWN = 0, + BANNER = 1, + INTERSTITIAL = 2, + NATIVE = 3, + VIDEO_VAST = 4, + REWARDED = 5, + REWARDED_INTERSTITIAL = 6, + APP_OPEN = 7, + } + + + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum YieldEnvironmentType { + UNKNOWN = 0, + MOBILE = 1, + VIDEO_VAST = 2, + WEB = 3, + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class SamError { - private SamErrorType samErrorTypeField; - - private bool samErrorTypeFieldSpecified; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class YieldError : ApiError { + private YieldErrorReason reasonField; - private string errorDetailsField; + private bool reasonFieldSpecified; [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public SamErrorType samErrorType { + public YieldErrorReason reason { get { - return this.samErrorTypeField; + return this.reasonField; } set { - this.samErrorTypeField = value; - this.samErrorTypeSpecified = true; + this.reasonField = value; + this.reasonSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , + /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool samErrorTypeSpecified { - get { - return this.samErrorTypeFieldSpecified; - } - set { - this.samErrorTypeFieldSpecified = value; - } - } - - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public string errorDetails { + public bool reasonSpecified { get { - return this.errorDetailsField; + return this.reasonFieldSpecified; } set { - this.errorDetailsField = value; + this.reasonFieldSpecified = value; } } } @@ -60069,41 +58492,26 @@ public string errorDetails { [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum SamErrorType { - INTERNAL_ERROR = 0, - AD_REQUEST_ERROR = 1, - VAST_PARSE_ERROR = 2, - UNSUPPORTED_AD_SYSTEM = 3, - CANNOT_FIND_UNIQUE_TRANSCODE_ID = 4, - CANNOT_FIND_MEDIA_FILE_PATH = 5, - MISSING_INLINE_ELEMENTS = 6, - MAX_WRAPPER_DEPTH_REACHED = 7, - INVALID_AD_SEQUENCE_NUMBER = 8, - FAILED_PING = 9, - AD_TAG_PARSE_ERROR = 10, - VMAP_PARSE_ERROR = 11, - INVALID_VMAP_RESPONSE = 12, - NO_AD_BREAKS_IN_VMAP = 13, - CUSTOM_AD_SOURCE_IN_VMAP = 14, - AD_BREAK_TYPE_NOT_SUPPORTED = 15, - NEITHER_AD_SOURCE_NOR_TRACKING = 16, - UNKNOWN_ERROR = 17, - AD_POD_DROPPED_TO_MANY_AD_PODS = 18, - AD_POD_DROPPED_EMPTY_ADS = 19, - AD_BREAK_WITHOUT_AD_POD = 20, - TRANSCODING_IN_PROGRESS = 21, - UNSUPPORTED_VAST_VERSION = 22, - AD_POD_DROPPED_BUMPER_ERROR = 23, - NO_VALID_MEDIAFILES_FOUND = 24, - EXCEEDS_MAX_FILLER = 25, - SKIPPABLE_AD_NOT_SUPPORTED = 26, - AD_REQUEST_TIMEOUT = 28, - AD_POD_DROPPED_UNSUPPORTED_TYPE = 29, - DUPLICATE_AD_TAG = 30, - FOLLOW_REDIRECTS_IS_FALSE = 31, - AD_POD_DROPPED_INCOMPATIBLE_TIMEOFFSET = 32, - UNKNOWN = 27, + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "YieldError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum YieldErrorReason { + INVALID_BACKEND_DATA = 0, + INVALID_REQUEST_DATA = 1, + AD_SOURCE_COMPANY_CHANGE = 2, + UNSUPPORTED_COMPANY_INTEGRATION_TYPE = 11, + UNSUPPORTED_BUYER_SETTINGS = 15, + DEPRECATED_AD_NETWORK_ADAPTER = 3, + TOO_MANY_UPDATES = 4, + DUPLICATE_YIELD_PARTNER = 5, + DUPLICATE_HEADER_BIDDER = 12, + INTERNAL_ERROR = 6, + INVALID_EXCHANGE_STATUS = 7, + INVALID_AD_SOURCE_STATUS = 13, + INVALID_SDK_ADAPTER_KEY_NAME = 14, + INVENTORY_UNIT_MAPPING_NOT_FOUND = 8, + NO_COMPANIES_PERMISSION = 9, + INVENTORY_UNIT_MAPPING_INVALID_PARAMETER = 16, + UNSUPPORTED_FORMAT_AND_ENVIRONMENT = 17, + UNKNOWN = 10, } @@ -60111,93 +58519,77 @@ public enum SamErrorType { [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class AdResponse { - private string requestUrlField; - - private bool isVmapRequestField; - - private bool isVmapRequestFieldSpecified; - - private string responseBodyField; - - private AdResponse[] redirectResponsesField; - - private SamError samErrorField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class IdError : ApiError { + private IdErrorReason reasonField; - private SamError[] adErrorsField; + private bool reasonFieldSpecified; [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public string requestUrl { - get { - return this.requestUrlField; - } - set { - this.requestUrlField = value; - } - } - - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public bool isVmapRequest { + public IdErrorReason reason { get { - return this.isVmapRequestField; + return this.reasonField; } set { - this.isVmapRequestField = value; - this.isVmapRequestSpecified = true; + this.reasonField = value; + this.reasonSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , + /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool isVmapRequestSpecified { + public bool reasonSpecified { get { - return this.isVmapRequestFieldSpecified; + return this.reasonFieldSpecified; } set { - this.isVmapRequestFieldSpecified = value; + this.reasonFieldSpecified = value; } } + } - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public string responseBody { - get { - return this.responseBodyField; - } - set { - this.responseBodyField = value; - } - } - [System.Xml.Serialization.XmlElementAttribute("redirectResponses", Order = 3)] - public AdResponse[] redirectResponses { - get { - return this.redirectResponsesField; - } - set { - this.redirectResponsesField = value; - } - } + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "IdError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum IdErrorReason { + NOT_FOUND = 0, + } - [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public SamError samError { + + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class DistinctError : ApiError { + private DistinctErrorReason reasonField; + + private bool reasonFieldSpecified; + + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public DistinctErrorReason reason { get { - return this.samErrorField; + return this.reasonField; } set { - this.samErrorField = value; + this.reasonField = value; + this.reasonSpecified = true; } } - [System.Xml.Serialization.XmlElementAttribute("adErrors", Order = 5)] - public SamError[] adErrors { + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool reasonSpecified { get { - return this.adErrorsField; + return this.reasonFieldSpecified; } set { - this.adErrorsField = value; + this.reasonFieldSpecified = value; } } } @@ -60205,946 +58597,1258 @@ public SamError[] adErrors { [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class AdBreak { - private AdResponse[] rootAdResponsesField; - - private AdDecisionCreative[] adDecisionCreativesField; - - private int podNumField; - - private bool podNumFieldSpecified; - - private int linearAbsolutePodNumField; - - private bool linearAbsolutePodNumFieldSpecified; + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "DistinctError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum DistinctErrorReason { + DUPLICATE_ELEMENT = 0, + DUPLICATE_TYPE = 1, + } - private long adBreakDurationMillisField; - private bool adBreakDurationMillisFieldSpecified; + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", ConfigurationName = "Google.Api.Ads.AdManager.v202411.YieldGroupServiceInterface")] + public interface YieldGroupServiceInterface + { + // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Wrappers.YieldGroupService.createYieldGroupsResponse createYieldGroups(Wrappers.YieldGroupService.createYieldGroupsRequest request); - private long filledDurationMillisField; + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + System.Threading.Tasks.Task createYieldGroupsAsync(Wrappers.YieldGroupService.createYieldGroupsRequest request); - private bool filledDurationMillisFieldSpecified; + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v202411.YieldGroupPage getYieldGroupsByStatement(Google.Api.Ads.AdManager.v202411.Statement statement); - private long servedDurationMillisField; + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task getYieldGroupsByStatementAsync(Google.Api.Ads.AdManager.v202411.Statement statement); - private bool servedDurationMillisFieldSpecified; + // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Wrappers.YieldGroupService.getYieldPartnersResponse getYieldPartners(Wrappers.YieldGroupService.getYieldPartnersRequest request); - private DateTime startDateTimeField; + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + System.Threading.Tasks.Task getYieldPartnersAsync(Wrappers.YieldGroupService.getYieldPartnersRequest request); - private long startTimeOffsetMillisField; + // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Wrappers.YieldGroupService.updateYieldGroupsResponse updateYieldGroups(Wrappers.YieldGroupService.updateYieldGroupsRequest request); - private bool startTimeOffsetMillisFieldSpecified; + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + System.Threading.Tasks.Task updateYieldGroupsAsync(Wrappers.YieldGroupService.updateYieldGroupsRequest request); + } - private SamError samErrorField; - private int midrollIndexField; + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class YieldGroupPage { + private int totalResultSetSizeField; - private bool midrollIndexFieldSpecified; + private bool totalResultSetSizeFieldSpecified; - private bool decisionedAdsField; + private int startIndexField; - private bool decisionedAdsFieldSpecified; + private bool startIndexFieldSpecified; - private TrackingEventPing[][] trackingEventsField; + private YieldGroup[] resultsField; - [System.Xml.Serialization.XmlElementAttribute("rootAdResponses", Order = 0)] - public AdResponse[] rootAdResponses { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public int totalResultSetSize { get { - return this.rootAdResponsesField; + return this.totalResultSetSizeField; } set { - this.rootAdResponsesField = value; + this.totalResultSetSizeField = value; + this.totalResultSetSizeSpecified = true; } } - [System.Xml.Serialization.XmlElementAttribute("adDecisionCreatives", Order = 1)] - public AdDecisionCreative[] adDecisionCreatives { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool totalResultSetSizeSpecified { get { - return this.adDecisionCreativesField; + return this.totalResultSetSizeFieldSpecified; } set { - this.adDecisionCreativesField = value; + this.totalResultSetSizeFieldSpecified = value; } } - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public int podNum { + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public int startIndex { get { - return this.podNumField; + return this.startIndexField; } set { - this.podNumField = value; - this.podNumSpecified = true; + this.startIndexField = value; + this.startIndexSpecified = true; } } - /// true, if a value is specified for , - /// false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool podNumSpecified { + public bool startIndexSpecified { get { - return this.podNumFieldSpecified; + return this.startIndexFieldSpecified; } set { - this.podNumFieldSpecified = value; + this.startIndexFieldSpecified = value; } } - [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public int linearAbsolutePodNum { + [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] + public YieldGroup[] results { get { - return this.linearAbsolutePodNumField; + return this.resultsField; } set { - this.linearAbsolutePodNumField = value; - this.linearAbsolutePodNumSpecified = true; + this.resultsField = value; } } + } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool linearAbsolutePodNumSpecified { - get { - return this.linearAbsolutePodNumFieldSpecified; - } - set { - this.linearAbsolutePodNumFieldSpecified = value; - } - } - [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public long adBreakDurationMillis { + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class YieldPartner { + private long companyIdField; + + private bool companyIdFieldSpecified; + + private YieldPartnerSettings[] settingsField; + + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public long companyId { get { - return this.adBreakDurationMillisField; + return this.companyIdField; } set { - this.adBreakDurationMillisField = value; - this.adBreakDurationMillisSpecified = true; + this.companyIdField = value; + this.companyIdSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool adBreakDurationMillisSpecified { + public bool companyIdSpecified { get { - return this.adBreakDurationMillisFieldSpecified; + return this.companyIdFieldSpecified; } set { - this.adBreakDurationMillisFieldSpecified = value; + this.companyIdFieldSpecified = value; } } - [System.Xml.Serialization.XmlElementAttribute(Order = 5)] - public long filledDurationMillis { + [System.Xml.Serialization.XmlElementAttribute("settings", Order = 1)] + public YieldPartnerSettings[] settings { get { - return this.filledDurationMillisField; + return this.settingsField; } set { - this.filledDurationMillisField = value; - this.filledDurationMillisSpecified = true; + this.settingsField = value; } } + } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool filledDurationMillisSpecified { - get { - return this.filledDurationMillisFieldSpecified; - } - set { - this.filledDurationMillisFieldSpecified = value; - } - } - [System.Xml.Serialization.XmlElementAttribute(Order = 6)] - public long servedDurationMillis { + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class YieldPartnerSettings { + private PartnerSettingStatus statusField; + + private bool statusFieldSpecified; + + private YieldEnvironmentType environmentField; + + private bool environmentFieldSpecified; + + private YieldFormat formatField; + + private bool formatFieldSpecified; + + private YieldIntegrationType integrationTypeField; + + private bool integrationTypeFieldSpecified; + + private YieldPlatform platformField; + + private bool platformFieldSpecified; + + private YieldParameter[] parametersField; + + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public PartnerSettingStatus status { get { - return this.servedDurationMillisField; + return this.statusField; } set { - this.servedDurationMillisField = value; - this.servedDurationMillisSpecified = true; + this.statusField = value; + this.statusSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , + /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool servedDurationMillisSpecified { + public bool statusSpecified { get { - return this.servedDurationMillisFieldSpecified; + return this.statusFieldSpecified; } set { - this.servedDurationMillisFieldSpecified = value; + this.statusFieldSpecified = value; } } - [System.Xml.Serialization.XmlElementAttribute(Order = 7)] - public DateTime startDateTime { + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public YieldEnvironmentType environment { get { - return this.startDateTimeField; + return this.environmentField; } set { - this.startDateTimeField = value; + this.environmentField = value; + this.environmentSpecified = true; } } - [System.Xml.Serialization.XmlElementAttribute(Order = 8)] - public long startTimeOffsetMillis { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool environmentSpecified { get { - return this.startTimeOffsetMillisField; + return this.environmentFieldSpecified; } set { - this.startTimeOffsetMillisField = value; - this.startTimeOffsetMillisSpecified = true; + this.environmentFieldSpecified = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool startTimeOffsetMillisSpecified { + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public YieldFormat format { get { - return this.startTimeOffsetMillisFieldSpecified; + return this.formatField; } set { - this.startTimeOffsetMillisFieldSpecified = value; + this.formatField = value; + this.formatSpecified = true; } } - [System.Xml.Serialization.XmlElementAttribute(Order = 9)] - public SamError samError { + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool formatSpecified { get { - return this.samErrorField; + return this.formatFieldSpecified; } set { - this.samErrorField = value; + this.formatFieldSpecified = value; } } - [System.Xml.Serialization.XmlElementAttribute(Order = 10)] - public int midrollIndex { + [System.Xml.Serialization.XmlElementAttribute(Order = 3)] + public YieldIntegrationType integrationType { get { - return this.midrollIndexField; + return this.integrationTypeField; } set { - this.midrollIndexField = value; - this.midrollIndexSpecified = true; + this.integrationTypeField = value; + this.integrationTypeSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="integrationType" />, false otherwise.
[System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool midrollIndexSpecified { + public bool integrationTypeSpecified { get { - return this.midrollIndexFieldSpecified; + return this.integrationTypeFieldSpecified; } set { - this.midrollIndexFieldSpecified = value; + this.integrationTypeFieldSpecified = value; } } - [System.Xml.Serialization.XmlElementAttribute(Order = 11)] - public bool decisionedAds { + [System.Xml.Serialization.XmlElementAttribute(Order = 4)] + public YieldPlatform platform { get { - return this.decisionedAdsField; + return this.platformField; } set { - this.decisionedAdsField = value; - this.decisionedAdsSpecified = true; + this.platformField = value; + this.platformSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool decisionedAdsSpecified { + public bool platformSpecified { get { - return this.decisionedAdsFieldSpecified; + return this.platformFieldSpecified; } set { - this.decisionedAdsFieldSpecified = value; + this.platformFieldSpecified = value; } } - [System.Xml.Serialization.XmlArrayAttribute(Order = 12)] - [System.Xml.Serialization.XmlArrayItemAttribute("pings", typeof(TrackingEventPing), IsNullable = false)] - public TrackingEventPing[][] trackingEvents { + [System.Xml.Serialization.XmlElementAttribute("parameters", Order = 5)] + public YieldParameter[] parameters { get { - return this.trackingEventsField; + return this.parametersField; } set { - this.trackingEventsField = value; + this.parametersField = value; } } } - [System.Xml.Serialization.XmlIncludeAttribute(typeof(VodStreamCreateRequest))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(LinearStreamCreateRequest))] [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public abstract partial class StreamCreateRequest { - private string urlField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum PartnerSettingStatus { + UNKNOWN = 0, + PENDING = 1, + ACTIVE = 2, + DEPRECATED = 3, + } - private string userAgentField; - private ReportingType reportingTypeField; + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + public interface YieldGroupServiceInterfaceChannel : Google.Api.Ads.AdManager.v202411.YieldGroupServiceInterface, System.ServiceModel.IClientChannel + { + } - private bool reportingTypeFieldSpecified; - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public string url { - get { - return this.urlField; - } - set { - this.urlField = value; - } + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + public partial class YieldGroupService : AdManagerSoapClient, IYieldGroupService { + /// Creates a new instance of the class. + /// + public YieldGroupService() { } - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public string userAgent { - get { - return this.userAgentField; - } - set { - this.userAgentField = value; - } + /// Creates a new instance of the class. + /// + public YieldGroupService(string endpointConfigurationName) + : base(endpointConfigurationName) { } - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public ReportingType reportingType { - get { - return this.reportingTypeField; - } - set { - this.reportingTypeField = value; - this.reportingTypeSpecified = true; - } + /// Creates a new instance of the class. + /// + public YieldGroupService(string endpointConfigurationName, string remoteAddress) + : base(endpointConfigurationName, remoteAddress) { } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reportingTypeSpecified { - get { - return this.reportingTypeFieldSpecified; - } - set { - this.reportingTypeFieldSpecified = value; - } + /// Creates a new instance of the class. + /// + public YieldGroupService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) + : base(endpointConfigurationName, remoteAddress) { } - } + /// Creates a new instance of the class. + /// + public YieldGroupService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) + : base(binding, remoteAddress) { + } - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum ReportingType { - DISABLED = 0, - CLIENT = 1, - SERVER = 2, - AD_MEDIA = 3, - UNKNOWN = 4, - } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + Wrappers.YieldGroupService.createYieldGroupsResponse Google.Api.Ads.AdManager.v202411.YieldGroupServiceInterface.createYieldGroups(Wrappers.YieldGroupService.createYieldGroupsRequest request) { + return base.Channel.createYieldGroups(request); + } + /// Creates yield groups in bulk. + /// + public virtual Google.Api.Ads.AdManager.v202411.YieldGroup[] createYieldGroups(Google.Api.Ads.AdManager.v202411.YieldGroup[] yieldGroups) { + Wrappers.YieldGroupService.createYieldGroupsRequest inValue = new Wrappers.YieldGroupService.createYieldGroupsRequest(); + inValue.yieldGroups = yieldGroups; + Wrappers.YieldGroupService.createYieldGroupsResponse retVal = ((Google.Api.Ads.AdManager.v202411.YieldGroupServiceInterface)(this)).createYieldGroups(inValue); + return retVal.rval; + } - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class VodStreamCreateRequest : StreamCreateRequest { - private long contentSourceIdField; + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202411.YieldGroupServiceInterface.createYieldGroupsAsync(Wrappers.YieldGroupService.createYieldGroupsRequest request) { + return base.Channel.createYieldGroupsAsync(request); + } - private bool contentSourceIdFieldSpecified; + public virtual System.Threading.Tasks.Task createYieldGroupsAsync(Google.Api.Ads.AdManager.v202411.YieldGroup[] yieldGroups) { + Wrappers.YieldGroupService.createYieldGroupsRequest inValue = new Wrappers.YieldGroupService.createYieldGroupsRequest(); + inValue.yieldGroups = yieldGroups; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202411.YieldGroupServiceInterface)(this)).createYieldGroupsAsync(inValue)).Result.rval); + } - private string videoIdField; + /// Gets a page of yield groups, with child tags, filtered by the given statement. + /// + public virtual Google.Api.Ads.AdManager.v202411.YieldGroupPage getYieldGroupsByStatement(Google.Api.Ads.AdManager.v202411.Statement statement) { + return base.Channel.getYieldGroupsByStatement(statement); + } - private long contentIdField; + public virtual System.Threading.Tasks.Task getYieldGroupsByStatementAsync(Google.Api.Ads.AdManager.v202411.Statement statement) { + return base.Channel.getYieldGroupsByStatementAsync(statement); + } - private bool contentIdFieldSpecified; + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + Wrappers.YieldGroupService.getYieldPartnersResponse Google.Api.Ads.AdManager.v202411.YieldGroupServiceInterface.getYieldPartners(Wrappers.YieldGroupService.getYieldPartnersRequest request) { + return base.Channel.getYieldPartners(request); + } - private string contentNameField; + /// Returns the available partners for yield groups, each one of them is backed by a + /// company. + /// + public virtual Google.Api.Ads.AdManager.v202411.YieldPartner[] getYieldPartners() { + Wrappers.YieldGroupService.getYieldPartnersRequest inValue = new Wrappers.YieldGroupService.getYieldPartnersRequest(); + Wrappers.YieldGroupService.getYieldPartnersResponse retVal = ((Google.Api.Ads.AdManager.v202411.YieldGroupServiceInterface)(this)).getYieldPartners(inValue); + return retVal.rval; + } - private long[] cuePointsField; + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202411.YieldGroupServiceInterface.getYieldPartnersAsync(Wrappers.YieldGroupService.getYieldPartnersRequest request) { + return base.Channel.getYieldPartnersAsync(request); + } - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public long contentSourceId { - get { - return this.contentSourceIdField; - } - set { - this.contentSourceIdField = value; - this.contentSourceIdSpecified = true; - } + public virtual System.Threading.Tasks.Task getYieldPartnersAsync() { + Wrappers.YieldGroupService.getYieldPartnersRequest inValue = new Wrappers.YieldGroupService.getYieldPartnersRequest(); + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202411.YieldGroupServiceInterface)(this)).getYieldPartnersAsync(inValue)).Result.rval); } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool contentSourceIdSpecified { - get { - return this.contentSourceIdFieldSpecified; - } - set { - this.contentSourceIdFieldSpecified = value; - } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + Wrappers.YieldGroupService.updateYieldGroupsResponse Google.Api.Ads.AdManager.v202411.YieldGroupServiceInterface.updateYieldGroups(Wrappers.YieldGroupService.updateYieldGroupsRequest request) { + return base.Channel.updateYieldGroups(request); } - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public string videoId { - get { - return this.videoIdField; + /// Updates a list of yield groups. + /// + public virtual Google.Api.Ads.AdManager.v202411.YieldGroup[] updateYieldGroups(Google.Api.Ads.AdManager.v202411.YieldGroup[] yieldGroups) { + Wrappers.YieldGroupService.updateYieldGroupsRequest inValue = new Wrappers.YieldGroupService.updateYieldGroupsRequest(); + inValue.yieldGroups = yieldGroups; + Wrappers.YieldGroupService.updateYieldGroupsResponse retVal = ((Google.Api.Ads.AdManager.v202411.YieldGroupServiceInterface)(this)).updateYieldGroups(inValue); + return retVal.rval; + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202411.YieldGroupServiceInterface.updateYieldGroupsAsync(Wrappers.YieldGroupService.updateYieldGroupsRequest request) { + return base.Channel.updateYieldGroupsAsync(request); + } + + public virtual System.Threading.Tasks.Task updateYieldGroupsAsync(Google.Api.Ads.AdManager.v202411.YieldGroup[] yieldGroups) { + Wrappers.YieldGroupService.updateYieldGroupsRequest inValue = new Wrappers.YieldGroupService.updateYieldGroupsRequest(); + inValue.yieldGroups = yieldGroups; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202411.YieldGroupServiceInterface)(this)).updateYieldGroupsAsync(inValue)).Result.rval); + } + } + namespace Wrappers.SegmentPopulationService + { + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "getSegmentPopulationResultsByIds", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class getSegmentPopulationResultsByIdsRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("batchUploadIds")] + public long[] batchUploadIds; + + /// Creates a new instance of the class. + public getSegmentPopulationResultsByIdsRequest() { } - set { - this.videoIdField = value; + + /// Creates a new instance of the class. + public getSegmentPopulationResultsByIdsRequest(long[] batchUploadIds) { + this.batchUploadIds = batchUploadIds; } } - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public long contentId { - get { - return this.contentIdField; + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "getSegmentPopulationResultsByIdsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class getSegmentPopulationResultsByIdsResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("rval")] + public Google.Api.Ads.AdManager.v202411.SegmentPopulationResults[] rval; + + /// Creates a new instance of the class. + public getSegmentPopulationResultsByIdsResponse() { } - set { - this.contentIdField = value; - this.contentIdSpecified = true; + + /// Creates a new instance of the class. + public getSegmentPopulationResultsByIdsResponse(Google.Api.Ads.AdManager.v202411.SegmentPopulationResults[] rval) { + this.rval = rval; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool contentIdSpecified { - get { - return this.contentIdFieldSpecified; + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "performSegmentPopulationAction", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class performSegmentPopulationActionRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + public Google.Api.Ads.AdManager.v202411.SegmentPopulationAction action; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 1)] + [System.Xml.Serialization.XmlElementAttribute("batchUploadIds")] + public long[] batchUploadIds; + + /// Creates a new instance of the class. + public performSegmentPopulationActionRequest() { } - set { - this.contentIdFieldSpecified = value; + + /// Creates a new instance of the class. + public performSegmentPopulationActionRequest(Google.Api.Ads.AdManager.v202411.SegmentPopulationAction action, long[] batchUploadIds) { + this.action = action; + this.batchUploadIds = batchUploadIds; } } - [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public string contentName { - get { - return this.contentNameField; - } - set { - this.contentNameField = value; + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "performSegmentPopulationActionResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class performSegmentPopulationActionResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + public Google.Api.Ads.AdManager.v202411.UpdateResult rval; + + /// Creates a new instance of the class. + public performSegmentPopulationActionResponse() { } - } - [System.Xml.Serialization.XmlElementAttribute("cuePoints", Order = 4)] - public long[] cuePoints { - get { - return this.cuePointsField; - } - set { - this.cuePointsField = value; + /// Creates a new instance of the class. + public performSegmentPopulationActionResponse(Google.Api.Ads.AdManager.v202411.UpdateResult rval) { + this.rval = rval; } } } + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "IdError.IdErrorType", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum IdErrorIdErrorType { + INVALID_PUBLISHER_PROVIDED_ID_FORMAT = 0, + UNKNOWN = 1, + } [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class LinearStreamCreateRequest : StreamCreateRequest { - private string liveStreamEventAssetKeyField; - - private string eventNameField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class SegmentPopulationResults { + private long batchUploadIdField; - private long liveStreamEventIdField; + private bool batchUploadIdFieldSpecified; - private bool liveStreamEventIdFieldSpecified; + private long segmentIdField; - private DateTime eventStartDateTimeField; + private bool segmentIdFieldSpecified; - private DateTime eventEndDateTimeField; + private SegmentPopulationStatus statusField; - private bool prefetchEnabledField; + private bool statusFieldSpecified; - private bool prefetchEnabledFieldSpecified; + private long numSuccessfulIdsProcessedField; - private bool podTrimmingEnabledField; + private bool numSuccessfulIdsProcessedFieldSpecified; - private bool podTrimmingEnabledFieldSpecified; + private IdError[] errorsField; [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public string liveStreamEventAssetKey { + public long batchUploadId { get { - return this.liveStreamEventAssetKeyField; + return this.batchUploadIdField; } set { - this.liveStreamEventAssetKeyField = value; + this.batchUploadIdField = value; + this.batchUploadIdSpecified = true; } } - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public string eventName { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool batchUploadIdSpecified { get { - return this.eventNameField; + return this.batchUploadIdFieldSpecified; } set { - this.eventNameField = value; + this.batchUploadIdFieldSpecified = value; } } - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public long liveStreamEventId { + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public long segmentId { get { - return this.liveStreamEventIdField; + return this.segmentIdField; } set { - this.liveStreamEventIdField = value; - this.liveStreamEventIdSpecified = true; + this.segmentIdField = value; + this.segmentIdSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool liveStreamEventIdSpecified { + public bool segmentIdSpecified { get { - return this.liveStreamEventIdFieldSpecified; + return this.segmentIdFieldSpecified; } set { - this.liveStreamEventIdFieldSpecified = value; + this.segmentIdFieldSpecified = value; } } - [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public DateTime eventStartDateTime { + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public SegmentPopulationStatus status { get { - return this.eventStartDateTimeField; + return this.statusField; } set { - this.eventStartDateTimeField = value; + this.statusField = value; + this.statusSpecified = true; } } - [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public DateTime eventEndDateTime { + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool statusSpecified { get { - return this.eventEndDateTimeField; + return this.statusFieldSpecified; } set { - this.eventEndDateTimeField = value; + this.statusFieldSpecified = value; } } - [System.Xml.Serialization.XmlElementAttribute(Order = 5)] - public bool prefetchEnabled { + [System.Xml.Serialization.XmlElementAttribute(Order = 3)] + public long numSuccessfulIdsProcessed { get { - return this.prefetchEnabledField; + return this.numSuccessfulIdsProcessedField; } set { - this.prefetchEnabledField = value; - this.prefetchEnabledSpecified = true; + this.numSuccessfulIdsProcessedField = value; + this.numSuccessfulIdsProcessedSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="numSuccessfulIdsProcessed" />, false otherwise.
[System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool prefetchEnabledSpecified { + public bool numSuccessfulIdsProcessedSpecified { get { - return this.prefetchEnabledFieldSpecified; + return this.numSuccessfulIdsProcessedFieldSpecified; } set { - this.prefetchEnabledFieldSpecified = value; + this.numSuccessfulIdsProcessedFieldSpecified = value; } } - [System.Xml.Serialization.XmlElementAttribute(Order = 6)] - public bool podTrimmingEnabled { + [System.Xml.Serialization.XmlElementAttribute("errors", Order = 4)] + public IdError[] errors { get { - return this.podTrimmingEnabledField; + return this.errorsField; } set { - this.podTrimmingEnabledField = value; - this.podTrimmingEnabledSpecified = true; + this.errorsField = value; } } + } - /// true, if a value is specified for , false otherwise. + + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum SegmentPopulationStatus { + FAILED = 0, + SUCCESS = 1, + PROCESSING = 2, + PREPARING = 3, + EXPIRED = 4, + UNKNOWN = 5, + } + + + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class SegmentPopulationError : ApiError { + private SegmentPopulationErrorReason reasonField; + + private bool reasonFieldSpecified; + + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public SegmentPopulationErrorReason reason { + get { + return this.reasonField; + } + set { + this.reasonField = value; + this.reasonSpecified = true; + } + } + + /// true, if a value is specified for , + /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool podTrimmingEnabledSpecified { + public bool reasonSpecified { get { - return this.podTrimmingEnabledFieldSpecified; + return this.reasonFieldSpecified; } set { - this.podTrimmingEnabledFieldSpecified = value; + this.reasonFieldSpecified = value; } } } + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "SegmentPopulationError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum SegmentPopulationErrorReason { + TOO_MANY_IDENTIFIERS = 0, + INVALID_SEGMENT = 1, + JOB_ALREADY_STARTED = 3, + NO_IDENTIFIERS = 4, + NO_CONSENT = 5, + UNKNOWN = 2, + } + + + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", ConfigurationName = "Google.Api.Ads.AdManager.v202411.SegmentPopulationServiceInterface")] + public interface SegmentPopulationServiceInterface + { + // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Wrappers.SegmentPopulationService.getSegmentPopulationResultsByIdsResponse getSegmentPopulationResultsByIds(Wrappers.SegmentPopulationService.getSegmentPopulationResultsByIdsRequest request); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + System.Threading.Tasks.Task getSegmentPopulationResultsByIdsAsync(Wrappers.SegmentPopulationService.getSegmentPopulationResultsByIdsRequest request); + + // CODEGEN: Parameter 'batchUploadIds' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Wrappers.SegmentPopulationService.performSegmentPopulationActionResponse performSegmentPopulationAction(Wrappers.SegmentPopulationService.performSegmentPopulationActionRequest request); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + System.Threading.Tasks.Task performSegmentPopulationActionAsync(Wrappers.SegmentPopulationService.performSegmentPopulationActionRequest request); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v202411.SegmentPopulationResponse updateSegmentMemberships(Google.Api.Ads.AdManager.v202411.SegmentPopulationRequest updateRequest); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task updateSegmentMembershipsAsync(Google.Api.Ads.AdManager.v202411.SegmentPopulationRequest updateRequest); + } + + + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ProcessAction))] [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class SamSession { - private string sessionIdField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public abstract partial class SegmentPopulationAction { + } - private bool isVodSessionField; - private bool isVodSessionFieldSpecified; + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ProcessAction : SegmentPopulationAction { + } - private StreamCreateRequest streamCreateRequestField; - private AdBreak[] adBreaksField; + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class SegmentPopulationRequest { + private long batchUploadIdField; - private DateTime startDateTimeField; + private bool batchUploadIdFieldSpecified; - private long sessionDurationMillisField; + private long segmentIdField; - private bool sessionDurationMillisFieldSpecified; + private bool segmentIdFieldSpecified; - private long contentDurationMillisField; + private bool isDeletionField; - private bool contentDurationMillisFieldSpecified; + private bool isDeletionFieldSpecified; + + private IdentifierType identifierTypeField; + + private bool identifierTypeFieldSpecified; + + private string[] idsField; + + private ConsentType consentTypeField; + + private bool consentTypeFieldSpecified; [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public string sessionId { + public long batchUploadId { get { - return this.sessionIdField; + return this.batchUploadIdField; } set { - this.sessionIdField = value; + this.batchUploadIdField = value; + this.batchUploadIdSpecified = true; + } + } + + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool batchUploadIdSpecified { + get { + return this.batchUploadIdFieldSpecified; + } + set { + this.batchUploadIdFieldSpecified = value; } } [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public bool isVodSession { + public long segmentId { get { - return this.isVodSessionField; + return this.segmentIdField; } set { - this.isVodSessionField = value; - this.isVodSessionSpecified = true; + this.segmentIdField = value; + this.segmentIdSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool isVodSessionSpecified { + public bool segmentIdSpecified { get { - return this.isVodSessionFieldSpecified; + return this.segmentIdFieldSpecified; } set { - this.isVodSessionFieldSpecified = value; + this.segmentIdFieldSpecified = value; } } [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public StreamCreateRequest streamCreateRequest { + public bool isDeletion { get { - return this.streamCreateRequestField; + return this.isDeletionField; } set { - this.streamCreateRequestField = value; + this.isDeletionField = value; + this.isDeletionSpecified = true; } } - [System.Xml.Serialization.XmlElementAttribute("adBreaks", Order = 3)] - public AdBreak[] adBreaks { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool isDeletionSpecified { get { - return this.adBreaksField; + return this.isDeletionFieldSpecified; } set { - this.adBreaksField = value; + this.isDeletionFieldSpecified = value; } } - [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public DateTime startDateTime { + [System.Xml.Serialization.XmlElementAttribute(Order = 3)] + public IdentifierType identifierType { get { - return this.startDateTimeField; + return this.identifierTypeField; } set { - this.startDateTimeField = value; + this.identifierTypeField = value; + this.identifierTypeSpecified = true; } } - [System.Xml.Serialization.XmlElementAttribute(Order = 5)] - public long sessionDurationMillis { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool identifierTypeSpecified { get { - return this.sessionDurationMillisField; + return this.identifierTypeFieldSpecified; } set { - this.sessionDurationMillisField = value; - this.sessionDurationMillisSpecified = true; + this.identifierTypeFieldSpecified = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool sessionDurationMillisSpecified { + [System.Xml.Serialization.XmlElementAttribute("ids", Order = 4)] + public string[] ids { get { - return this.sessionDurationMillisFieldSpecified; + return this.idsField; } set { - this.sessionDurationMillisFieldSpecified = value; + this.idsField = value; } } - [System.Xml.Serialization.XmlElementAttribute(Order = 6)] - public long contentDurationMillis { + [System.Xml.Serialization.XmlElementAttribute(Order = 5)] + public ConsentType consentType { get { - return this.contentDurationMillisField; + return this.consentTypeField; } set { - this.contentDurationMillisField = value; - this.contentDurationMillisSpecified = true; + this.consentTypeField = value; + this.consentTypeSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool contentDurationMillisSpecified { + public bool consentTypeSpecified { get { - return this.contentDurationMillisFieldSpecified; + return this.consentTypeFieldSpecified; } set { - this.contentDurationMillisFieldSpecified = value; + this.consentTypeFieldSpecified = value; } } } + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum IdentifierType { + PUBLISHER_PROVIDED_IDENTIFIER = 0, + UNKNOWN = 1, + } + + + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum ConsentType { + UNSET = 0, + GRANTED = 1, + DENIED = 2, + UNKNOWN = 3, + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class SamSessionError : ApiError { - private SamSessionErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class SegmentPopulationResponse { + private long batchUploadIdField; - private bool reasonFieldSpecified; + private bool batchUploadIdFieldSpecified; + + private IdError[] idErrorsField; [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public SamSessionErrorReason reason { + public long batchUploadId { get { - return this.reasonField; + return this.batchUploadIdField; } set { - this.reasonField = value; - this.reasonSpecified = true; + this.batchUploadIdField = value; + this.batchUploadIdSpecified = true; + } + } + + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool batchUploadIdSpecified { + get { + return this.batchUploadIdFieldSpecified; + } + set { + this.batchUploadIdFieldSpecified = value; + } + } + + [System.Xml.Serialization.XmlElementAttribute("idErrors", Order = 1)] + public IdError[] idErrors { + get { + return this.idErrorsField; + } + set { + this.idErrorsField = value; } } + } + + + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + public interface SegmentPopulationServiceInterfaceChannel : Google.Api.Ads.AdManager.v202411.SegmentPopulationServiceInterface, System.ServiceModel.IClientChannel + { + } + + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + public partial class SegmentPopulationService : AdManagerSoapClient, ISegmentPopulationService { + /// Creates a new instance of the + /// class. + public SegmentPopulationService() { + } + + /// Creates a new instance of the + /// class. + public SegmentPopulationService(string endpointConfigurationName) + : base(endpointConfigurationName) { + } + + /// Creates a new instance of the + /// class. + public SegmentPopulationService(string endpointConfigurationName, string remoteAddress) + : base(endpointConfigurationName, remoteAddress) { + } + + /// Creates a new instance of the + /// class. + public SegmentPopulationService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) + : base(endpointConfigurationName, remoteAddress) { + } + + /// Creates a new instance of the + /// class. + public SegmentPopulationService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) + : base(binding, remoteAddress) { + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + Wrappers.SegmentPopulationService.getSegmentPopulationResultsByIdsResponse Google.Api.Ads.AdManager.v202411.SegmentPopulationServiceInterface.getSegmentPopulationResultsByIds(Wrappers.SegmentPopulationService.getSegmentPopulationResultsByIdsRequest request) { + return base.Channel.getSegmentPopulationResultsByIds(request); + } + + /// Returns a list of SegmentPopulationResults for the given + /// batchUploadIds. + /// + public virtual Google.Api.Ads.AdManager.v202411.SegmentPopulationResults[] getSegmentPopulationResultsByIds(long[] batchUploadIds) { + Wrappers.SegmentPopulationService.getSegmentPopulationResultsByIdsRequest inValue = new Wrappers.SegmentPopulationService.getSegmentPopulationResultsByIdsRequest(); + inValue.batchUploadIds = batchUploadIds; + Wrappers.SegmentPopulationService.getSegmentPopulationResultsByIdsResponse retVal = ((Google.Api.Ads.AdManager.v202411.SegmentPopulationServiceInterface)(this)).getSegmentPopulationResultsByIds(inValue); + return retVal.rval; + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202411.SegmentPopulationServiceInterface.getSegmentPopulationResultsByIdsAsync(Wrappers.SegmentPopulationService.getSegmentPopulationResultsByIdsRequest request) { + return base.Channel.getSegmentPopulationResultsByIdsAsync(request); + } + + public virtual System.Threading.Tasks.Task getSegmentPopulationResultsByIdsAsync(long[] batchUploadIds) { + Wrappers.SegmentPopulationService.getSegmentPopulationResultsByIdsRequest inValue = new Wrappers.SegmentPopulationService.getSegmentPopulationResultsByIdsRequest(); + inValue.batchUploadIds = batchUploadIds; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202411.SegmentPopulationServiceInterface)(this)).getSegmentPopulationResultsByIdsAsync(inValue)).Result.rval); + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + Wrappers.SegmentPopulationService.performSegmentPopulationActionResponse Google.Api.Ads.AdManager.v202411.SegmentPopulationServiceInterface.performSegmentPopulationAction(Wrappers.SegmentPopulationService.performSegmentPopulationActionRequest request) { + return base.Channel.performSegmentPopulationAction(request); + } + + /// Performs an action on the uploads denoted by . + /// + public virtual Google.Api.Ads.AdManager.v202411.UpdateResult performSegmentPopulationAction(Google.Api.Ads.AdManager.v202411.SegmentPopulationAction action, long[] batchUploadIds) { + Wrappers.SegmentPopulationService.performSegmentPopulationActionRequest inValue = new Wrappers.SegmentPopulationService.performSegmentPopulationActionRequest(); + inValue.action = action; + inValue.batchUploadIds = batchUploadIds; + Wrappers.SegmentPopulationService.performSegmentPopulationActionResponse retVal = ((Google.Api.Ads.AdManager.v202411.SegmentPopulationServiceInterface)(this)).performSegmentPopulationAction(inValue); + return retVal.rval; + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202411.SegmentPopulationServiceInterface.performSegmentPopulationActionAsync(Wrappers.SegmentPopulationService.performSegmentPopulationActionRequest request) { + return base.Channel.performSegmentPopulationActionAsync(request); + } + + public virtual System.Threading.Tasks.Task performSegmentPopulationActionAsync(Google.Api.Ads.AdManager.v202411.SegmentPopulationAction action, long[] batchUploadIds) { + Wrappers.SegmentPopulationService.performSegmentPopulationActionRequest inValue = new Wrappers.SegmentPopulationService.performSegmentPopulationActionRequest(); + inValue.action = action; + inValue.batchUploadIds = batchUploadIds; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202411.SegmentPopulationServiceInterface)(this)).performSegmentPopulationActionAsync(inValue)).Result.rval); + } + + /// Updates identifiers in an audience segment.

The returned SegmentPopulationRequest#batchUploadId + /// can be used in subsequent requests to group them together as part of the same + /// batch. The identifiers associated with a batch will not be processed until #performSegmentPopulationAction is + /// called with a ProcessAction. The batch will expire if ProcessAction is not + /// called within the TTL of 5 days.

+ ///
+ public virtual Google.Api.Ads.AdManager.v202411.SegmentPopulationResponse updateSegmentMemberships(Google.Api.Ads.AdManager.v202411.SegmentPopulationRequest updateRequest) { + return base.Channel.updateSegmentMemberships(updateRequest); + } - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { - return this.reasonFieldSpecified; - } - set { - this.reasonFieldSpecified = value; - } + public virtual System.Threading.Tasks.Task updateSegmentMembershipsAsync(Google.Api.Ads.AdManager.v202411.SegmentPopulationRequest updateRequest) { + return base.Channel.updateSegmentMembershipsAsync(updateRequest); } } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "SamSessionError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum SamSessionErrorReason { - COULD_NOT_REGISTER_SESSION = 0, - MALFORMED_SESSION_ID = 1, - INVALID_SESSION_ID = 3, - INVALID_DEBUG_KEY = 4, - REQUEST_EXCEEDS_SESSION_LIMIT = 5, - UNKNOWN = 2, + namespace Wrappers.AdsTxtService + { } - - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", ConfigurationName = "Google.Api.Ads.AdManager.v202311.StreamActivityMonitorServiceInterface")] - public interface StreamActivityMonitorServiceInterface + [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", ConfigurationName = "Google.Api.Ads.AdManager.v202411.AdsTxtServiceInterface")] + public interface AdsTxtServiceInterface { - // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Wrappers.StreamActivityMonitorService.getSamSessionsByStatementResponse getSamSessionsByStatement(Wrappers.StreamActivityMonitorService.getSamSessionsByStatementRequest request); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task getSamSessionsByStatementAsync(Wrappers.StreamActivityMonitorService.getSamSessionsByStatementRequest request); + string getMcmSupplyChainDiagnosticsDownloadUrl(); - // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Wrappers.StreamActivityMonitorService.registerSessionsForMonitoringResponse registerSessionsForMonitoring(Wrappers.StreamActivityMonitorService.registerSessionsForMonitoringRequest request); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task registerSessionsForMonitoringAsync(Wrappers.StreamActivityMonitorService.registerSessionsForMonitoringRequest request); + System.Threading.Tasks.Task getMcmSupplyChainDiagnosticsDownloadUrlAsync(); } [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public interface StreamActivityMonitorServiceInterfaceChannel : Google.Api.Ads.AdManager.v202311.StreamActivityMonitorServiceInterface, System.ServiceModel.IClientChannel + public interface AdsTxtServiceInterfaceChannel : Google.Api.Ads.AdManager.v202411.AdsTxtServiceInterface, System.ServiceModel.IClientChannel { } [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public partial class StreamActivityMonitorService : AdManagerSoapClient, IStreamActivityMonitorService { - /// Creates a new instance of the class. - public StreamActivityMonitorService() { + public partial class AdsTxtService : AdManagerSoapClient, IAdsTxtService { + /// Creates a new instance of the class. + /// + public AdsTxtService() { } - /// Creates a new instance of the class. - public StreamActivityMonitorService(string endpointConfigurationName) + /// Creates a new instance of the class. + /// + public AdsTxtService(string endpointConfigurationName) : base(endpointConfigurationName) { } - /// Creates a new instance of the class. - public StreamActivityMonitorService(string endpointConfigurationName, string remoteAddress) + /// Creates a new instance of the class. + /// + public AdsTxtService(string endpointConfigurationName, string remoteAddress) : base(endpointConfigurationName, remoteAddress) { } - /// Creates a new instance of the class. - public StreamActivityMonitorService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) + /// Creates a new instance of the class. + /// + public AdsTxtService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) : base(endpointConfigurationName, remoteAddress) { } - /// Creates a new instance of the class. - public StreamActivityMonitorService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) - : base(binding, remoteAddress) { - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.StreamActivityMonitorService.getSamSessionsByStatementResponse Google.Api.Ads.AdManager.v202311.StreamActivityMonitorServiceInterface.getSamSessionsByStatement(Wrappers.StreamActivityMonitorService.getSamSessionsByStatementRequest request) { - return base.Channel.getSamSessionsByStatement(request); - } - - /// Returns the logging information for a DAI session. A DAI session can be - /// identified by it's session id or debug key. The session ID must be registered - /// via the registerSessionsForMonitoring method before it can be - /// accessed. There may be some delay before the session is available.

The number - /// of sessions requested is limited to 25. The following fields are supported for - /// filtering:

- ///
Entity property PQL filter
Session id 'sessionId'
Debug - /// key 'debugKey"
+ /// Creates a new instance of the class. /// - public virtual Google.Api.Ads.AdManager.v202311.SamSession[] getSamSessionsByStatement(Google.Api.Ads.AdManager.v202311.Statement statement) { - Wrappers.StreamActivityMonitorService.getSamSessionsByStatementRequest inValue = new Wrappers.StreamActivityMonitorService.getSamSessionsByStatementRequest(); - inValue.statement = statement; - Wrappers.StreamActivityMonitorService.getSamSessionsByStatementResponse retVal = ((Google.Api.Ads.AdManager.v202311.StreamActivityMonitorServiceInterface)(this)).getSamSessionsByStatement(inValue); - return retVal.rval; - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202311.StreamActivityMonitorServiceInterface.getSamSessionsByStatementAsync(Wrappers.StreamActivityMonitorService.getSamSessionsByStatementRequest request) { - return base.Channel.getSamSessionsByStatementAsync(request); - } - - public virtual System.Threading.Tasks.Task getSamSessionsByStatementAsync(Google.Api.Ads.AdManager.v202311.Statement statement) { - Wrappers.StreamActivityMonitorService.getSamSessionsByStatementRequest inValue = new Wrappers.StreamActivityMonitorService.getSamSessionsByStatementRequest(); - inValue.statement = statement; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202311.StreamActivityMonitorServiceInterface)(this)).getSamSessionsByStatementAsync(inValue)).Result.rval); - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.StreamActivityMonitorService.registerSessionsForMonitoringResponse Google.Api.Ads.AdManager.v202311.StreamActivityMonitorServiceInterface.registerSessionsForMonitoring(Wrappers.StreamActivityMonitorService.registerSessionsForMonitoringRequest request) { - return base.Channel.registerSessionsForMonitoring(request); + public AdsTxtService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) + : base(binding, remoteAddress) { } - /// Registers the specified list of sessionIds for monitoring. Once the - /// session IDs have been registered, all logged information about the sessions will - /// be persisted and can be viewed via the Ad Manager UI.

A session ID is a - /// unique identifier of a single user watching a live stream event.

+ /// Returns the download URL String for the MCM Manage Inventory SupplyChain + /// diagnostics report. The report is refreshed twice daily. /// - public virtual string[] registerSessionsForMonitoring(string[] sessionIds) { - Wrappers.StreamActivityMonitorService.registerSessionsForMonitoringRequest inValue = new Wrappers.StreamActivityMonitorService.registerSessionsForMonitoringRequest(); - inValue.sessionIds = sessionIds; - Wrappers.StreamActivityMonitorService.registerSessionsForMonitoringResponse retVal = ((Google.Api.Ads.AdManager.v202311.StreamActivityMonitorServiceInterface)(this)).registerSessionsForMonitoring(inValue); - return retVal.rval; - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202311.StreamActivityMonitorServiceInterface.registerSessionsForMonitoringAsync(Wrappers.StreamActivityMonitorService.registerSessionsForMonitoringRequest request) { - return base.Channel.registerSessionsForMonitoringAsync(request); + public virtual string getMcmSupplyChainDiagnosticsDownloadUrl() { + return base.Channel.getMcmSupplyChainDiagnosticsDownloadUrl(); } - public virtual System.Threading.Tasks.Task registerSessionsForMonitoringAsync(string[] sessionIds) { - Wrappers.StreamActivityMonitorService.registerSessionsForMonitoringRequest inValue = new Wrappers.StreamActivityMonitorService.registerSessionsForMonitoringRequest(); - inValue.sessionIds = sessionIds; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202311.StreamActivityMonitorServiceInterface)(this)).registerSessionsForMonitoringAsync(inValue)).Result.rval); + public virtual System.Threading.Tasks.Task getMcmSupplyChainDiagnosticsDownloadUrlAsync() { + return base.Channel.getMcmSupplyChainDiagnosticsDownloadUrlAsync(); } } - namespace Wrappers.DaiEncodingProfileService + namespace Wrappers.CdnConfigurationService { [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "createDaiEncodingProfiles", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class createDaiEncodingProfilesRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("daiEncodingProfiles")] - public Google.Api.Ads.AdManager.v202311.DaiEncodingProfile[] daiEncodingProfiles; + [System.ServiceModel.MessageContractAttribute(WrapperName = "createCdnConfigurations", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class createCdnConfigurationsRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("cdnConfigurations")] + public Google.Api.Ads.AdManager.v202411.CdnConfiguration[] cdnConfigurations; /// Creates a new instance of the class. - public createDaiEncodingProfilesRequest() { + /// cref="createCdnConfigurationsRequest"/> class.
+ public createCdnConfigurationsRequest() { } /// Creates a new instance of the class. - public createDaiEncodingProfilesRequest(Google.Api.Ads.AdManager.v202311.DaiEncodingProfile[] daiEncodingProfiles) { - this.daiEncodingProfiles = daiEncodingProfiles; + /// cref="createCdnConfigurationsRequest"/> class.
+ public createCdnConfigurationsRequest(Google.Api.Ads.AdManager.v202411.CdnConfiguration[] cdnConfigurations) { + this.cdnConfigurations = cdnConfigurations; } } @@ -61152,20 +59856,20 @@ public createDaiEncodingProfilesRequest(Google.Api.Ads.AdManager.v202311.DaiEnco [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "createDaiEncodingProfilesResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class createDaiEncodingProfilesResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "createCdnConfigurationsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class createCdnConfigurationsResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v202311.DaiEncodingProfile[] rval; + public Google.Api.Ads.AdManager.v202411.CdnConfiguration[] rval; /// Creates a new instance of the class. - public createDaiEncodingProfilesResponse() { + /// cref="createCdnConfigurationsResponse"/> class.
+ public createCdnConfigurationsResponse() { } /// Creates a new instance of the class. - public createDaiEncodingProfilesResponse(Google.Api.Ads.AdManager.v202311.DaiEncodingProfile[] rval) { + /// cref="createCdnConfigurationsResponse"/> class.
+ public createCdnConfigurationsResponse(Google.Api.Ads.AdManager.v202411.CdnConfiguration[] rval) { this.rval = rval; } } @@ -61174,21 +59878,21 @@ public createDaiEncodingProfilesResponse(Google.Api.Ads.AdManager.v202311.DaiEnc [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "updateDaiEncodingProfiles", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class updateDaiEncodingProfilesRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("daiEncodingProfiles")] - public Google.Api.Ads.AdManager.v202311.DaiEncodingProfile[] daiEncodingProfiles; + [System.ServiceModel.MessageContractAttribute(WrapperName = "updateCdnConfigurations", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class updateCdnConfigurationsRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("cdnConfigurations")] + public Google.Api.Ads.AdManager.v202411.CdnConfiguration[] cdnConfigurations; /// Creates a new instance of the class. - public updateDaiEncodingProfilesRequest() { + /// cref="updateCdnConfigurationsRequest"/> class.
+ public updateCdnConfigurationsRequest() { } /// Creates a new instance of the class. - public updateDaiEncodingProfilesRequest(Google.Api.Ads.AdManager.v202311.DaiEncodingProfile[] daiEncodingProfiles) { - this.daiEncodingProfiles = daiEncodingProfiles; + /// cref="updateCdnConfigurationsRequest"/> class.
+ public updateCdnConfigurationsRequest(Google.Api.Ads.AdManager.v202411.CdnConfiguration[] cdnConfigurations) { + this.cdnConfigurations = cdnConfigurations; } } @@ -61196,782 +59900,626 @@ public updateDaiEncodingProfilesRequest(Google.Api.Ads.AdManager.v202311.DaiEnco [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "updateDaiEncodingProfilesResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class updateDaiEncodingProfilesResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "updateCdnConfigurationsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class updateCdnConfigurationsResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v202311.DaiEncodingProfile[] rval; + public Google.Api.Ads.AdManager.v202411.CdnConfiguration[] rval; /// Creates a new instance of the class. - public updateDaiEncodingProfilesResponse() { + /// cref="updateCdnConfigurationsResponse"/> class.
+ public updateCdnConfigurationsResponse() { } /// Creates a new instance of the class. - public updateDaiEncodingProfilesResponse(Google.Api.Ads.AdManager.v202311.DaiEncodingProfile[] rval) { + /// cref="updateCdnConfigurationsResponse"/> class.
+ public updateCdnConfigurationsResponse(Google.Api.Ads.AdManager.v202411.CdnConfiguration[] rval) { this.rval = rval; } } } - /// Information about the audio settings of an encoding profile. + /// A set of security requirements to authenticate against in order to access video + /// content. Different locations (e.g. different CDNs) can have different security + /// policies. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class AudioSettings { - private string codecField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class SecurityPolicySettings { + private SecurityPolicyType securityPolicyTypeField; - private long bitrateField; + private bool securityPolicyTypeFieldSpecified; - private bool bitrateFieldSpecified; + private string tokenAuthenticationKeyField; - private long channelsField; + private bool disableServerSideUrlSigningField; - private bool channelsFieldSpecified; + private bool disableServerSideUrlSigningFieldSpecified; - private long sampleRateHertzField; + private OriginForwardingType originForwardingTypeField; - private bool sampleRateHertzFieldSpecified; + private bool originForwardingTypeFieldSpecified; - /// The RFC6381 codec string of the audio. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public string codec { - get { - return this.codecField; - } - set { - this.codecField = value; - } - } + private string originPathPrefixField; - /// The bitrate of the audio, in bits per second. Required. This value must be - /// between 8kbps and 250 Mbps. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public long bitrate { - get { - return this.bitrateField; - } - set { - this.bitrateField = value; - this.bitrateSpecified = true; - } - } + private OriginForwardingType mediaPlaylistOriginForwardingTypeField; - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool bitrateSpecified { - get { - return this.bitrateFieldSpecified; - } - set { - this.bitrateFieldSpecified = value; - } - } + private bool mediaPlaylistOriginForwardingTypeFieldSpecified; - /// The number of audio channels, including low frequency channels. This value has a - /// maximum of 8. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public long channels { - get { - return this.channelsField; - } - set { - this.channelsField = value; - this.channelsSpecified = true; - } - } + private string mediaPlaylistOriginPathPrefixField; - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool channelsSpecified { - get { - return this.channelsFieldSpecified; - } - set { - this.channelsFieldSpecified = value; - } - } + private string keysetNameField; - /// The audio sample rate in hertz. Must be between 44kHz and 100kHz. + private long signedRequestExpirationTtlSecondsField; + + private bool signedRequestExpirationTtlSecondsFieldSpecified; + + /// Type of security policy. This determines which other fields should be populated. + /// This value is required for a valid security policy. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public long sampleRateHertz { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public SecurityPolicyType securityPolicyType { get { - return this.sampleRateHertzField; + return this.securityPolicyTypeField; } set { - this.sampleRateHertzField = value; - this.sampleRateHertzSpecified = true; + this.securityPolicyTypeField = value; + this.securityPolicyTypeSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="securityPolicyType" />, false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool sampleRateHertzSpecified { - get { - return this.sampleRateHertzFieldSpecified; - } - set { - this.sampleRateHertzFieldSpecified = value; - } - } - } - - - /// Information about the video settings of an encoding profile. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class VideoSettings { - private string codecField; - - private long bitrateField; - - private bool bitrateFieldSpecified; - - private double framesPerSecondField; - - private bool framesPerSecondFieldSpecified; - - private Size resolutionField; - - /// The RFC6381 codec string of the audio. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public string codec { + public bool securityPolicyTypeSpecified { get { - return this.codecField; + return this.securityPolicyTypeFieldSpecified; } set { - this.codecField = value; + this.securityPolicyTypeFieldSpecified = value; } } - /// The bitrate of the video, in bits per second. This value must be between 32kbps - /// and 250 Mbps. + /// Shared security key used to generate the Akamai HMAC token for authenticating + /// requests. This field is only applicable when the value of #securityPolicyType is equal to SecurityPolicyType#AKAMAI and will be set to null otherwise.

This + /// field is required when the CdnConfiguration#cdnConfigurationType + /// is equal to CdnConfigurationType#LIVE_STREAM_SOURCE_CONTENT + /// and this SecurityPolicyDto is being configured + /// for SourceContentConfiguration#ingestSettings.

///
[System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public long bitrate { - get { - return this.bitrateField; - } - set { - this.bitrateField = value; - this.bitrateSpecified = true; - } - } - - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool bitrateSpecified { + public string tokenAuthenticationKey { get { - return this.bitrateFieldSpecified; + return this.tokenAuthenticationKeyField; } set { - this.bitrateFieldSpecified = value; + this.tokenAuthenticationKeyField = value; } } - /// The frames per second of the video. This value will be truncated to three - /// decimal places. + /// Whether the segment URLs should be signed using the #tokenAuthenticationKey on the server. This + /// is only applicable for delivery media locations that have token authentication + /// enabled. /// [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public double framesPerSecond { + public bool disableServerSideUrlSigning { get { - return this.framesPerSecondField; + return this.disableServerSideUrlSigningField; } set { - this.framesPerSecondField = value; - this.framesPerSecondSpecified = true; + this.disableServerSideUrlSigningField = value; + this.disableServerSideUrlSigningSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="disableServerSideUrlSigning" />, false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool framesPerSecondSpecified { + public bool disableServerSideUrlSigningSpecified { get { - return this.framesPerSecondFieldSpecified; + return this.disableServerSideUrlSigningFieldSpecified; } set { - this.framesPerSecondFieldSpecified = value; + this.disableServerSideUrlSigningFieldSpecified = value; } } - /// The resolution of the video, in pixels. + /// The type of origin forwarding used to support Akamai authentication policies for + /// the master playlist. This field is not applicable to ingest locations, and is + /// only applicable to delivery media locations with the #securityPolicyType set to SecurityPolicyType#AKAMAI. If set elsewhere + /// it will be reset to null. /// [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public Size resolution { - get { - return this.resolutionField; - } - set { - this.resolutionField = value; - } - } - } - - - /// A DaiEncodingProfile contains data about a - /// publisher's encoding profiles. Ad Manager Dynamic Ad Insertion (DAI) uses the - /// profile information about the content to select an appropriate ad transcode to - /// play for the particular video. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class DaiEncodingProfile { - private long idField; - - private bool idFieldSpecified; - - private string nameField; - - private DaiEncodingProfileStatus statusField; - - private bool statusFieldSpecified; - - private VariantType variantTypeField; - - private bool variantTypeFieldSpecified; - - private ContainerType containerTypeField; - - private bool containerTypeFieldSpecified; - - private VideoSettings videoSettingsField; - - private AudioSettings audioSettingsField; - - private bool persistUnmatchedProfilesField; - - private bool persistUnmatchedProfilesFieldSpecified; - - /// The unique ID of the DaiEncodingProfile. This - /// value is read-only and is assigned by Google. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public long id { - get { - return this.idField; - } - set { - this.idField = value; - this.idSpecified = true; - } - } - - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool idSpecified { - get { - return this.idFieldSpecified; - } - set { - this.idFieldSpecified = value; - } - } - - /// The name of the DaiEncodingProfile. This value - /// is required to create an encoding profile and may be at most 64 characters. The - /// name field can contain alphanumeric characters and symbols other than the - /// following: ", ', =, !, +, #, *, ~, ;, ^, (, ), <, >, [, ], the white space - /// character. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public string name { - get { - return this.nameField; - } - set { - this.nameField = value; - } - } - - /// The status of this DaiEncodingProfile.

DAI - /// encoding profiles are created in the DaiEncodingProfileStatus#ACTIVE - /// state. The status can only be modified through the DaiEncodingProfileService#performDaiEncodingProfileAction - /// method.

Only active profiles will be allowed to be associated with live - /// streams.

- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public DaiEncodingProfileStatus status { + public OriginForwardingType originForwardingType { get { - return this.statusField; + return this.originForwardingTypeField; } set { - this.statusField = value; - this.statusSpecified = true; + this.originForwardingTypeField = value; + this.originForwardingTypeSpecified = true; } } - /// true, if a value is specified for , - /// false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool statusSpecified { + public bool originForwardingTypeSpecified { get { - return this.statusFieldSpecified; + return this.originForwardingTypeFieldSpecified; } set { - this.statusFieldSpecified = value; + this.originForwardingTypeFieldSpecified = value; } } - /// The variant playlist type that this DaiEncodingProfile represents. + /// The origin path prefix provided by the publisher for the master playlist. This + /// field is only applicable for delivery media locations with the value of #originForwardingType set to OriginForwardingType#CONVENTIONAL, + /// and will be set to null otherwise. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public VariantType variantType { - get { - return this.variantTypeField; - } - set { - this.variantTypeField = value; - this.variantTypeSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool variantTypeSpecified { + [System.Xml.Serialization.XmlElementAttribute(Order = 4)] + public string originPathPrefix { get { - return this.variantTypeFieldSpecified; + return this.originPathPrefixField; } set { - this.variantTypeFieldSpecified = value; + this.originPathPrefixField = value; } } - /// The digital container type of the underlying media. This is required for - /// MEDIA and IFRAME variant types. + /// The type of origin forwarding used to support Akamai authentication policies for + /// media playlists. This setting can only be used with CDN configurations with a + /// cdnConfigurationType of CdnConfigurationType#LIVE_STREAM_SOURCE_CONTENT, + /// is not applicable to ingest locations, and is only applicable to delivery media + /// locations with the #securityPolicyType set to + /// SecurityPolicyType#AKAMAI. Valid options + /// are OriginForwardingType#NONE or .

This setting can + /// only be used with CDN configurations with a cdnConfigurationType of + /// CdnConfigurationType#LIVE_STREAM_SOURCE_CONTENT.

///
- [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public ContainerType containerType { + [System.Xml.Serialization.XmlElementAttribute(Order = 5)] + public OriginForwardingType mediaPlaylistOriginForwardingType { get { - return this.containerTypeField; + return this.mediaPlaylistOriginForwardingTypeField; } set { - this.containerTypeField = value; - this.containerTypeSpecified = true; + this.mediaPlaylistOriginForwardingTypeField = value; + this.mediaPlaylistOriginForwardingTypeSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="mediaPlaylistOriginForwardingType" />, false otherwise. + ///
[System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool containerTypeSpecified { + public bool mediaPlaylistOriginForwardingTypeSpecified { get { - return this.containerTypeFieldSpecified; + return this.mediaPlaylistOriginForwardingTypeFieldSpecified; } set { - this.containerTypeFieldSpecified = value; + this.mediaPlaylistOriginForwardingTypeFieldSpecified = value; } } - /// Information about the video media, if present. This field will only be set if - /// the media contains video, or is an IFRAME variant type. + /// The origin path prefix provided by the publisher for the media playlists. This + /// field is only applicable for delivery media locations with the value of #mediaPlaylistOriginForwardingType set to OriginForwardingType#CONVENTIONAL, + /// and will be set to null otherwise. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 5)] - public VideoSettings videoSettings { + [System.Xml.Serialization.XmlElementAttribute(Order = 6)] + public string mediaPlaylistOriginPathPrefix { get { - return this.videoSettingsField; + return this.mediaPlaylistOriginPathPrefixField; } set { - this.videoSettingsField = value; + this.mediaPlaylistOriginPathPrefixField = value; } } - /// Information about the audio media, if present. This field will only be set if - /// the media contains audio. Only MEDIA and variant - /// types can set audio. + /// The name of the EdgeCacheKeyset on the Media CDN configuration that will be used + /// to validate signed requests from DAI to ingest content. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 6)] - public AudioSettings audioSettings { + [System.Xml.Serialization.XmlElementAttribute(Order = 7)] + public string keysetName { get { - return this.audioSettingsField; + return this.keysetNameField; } set { - this.audioSettingsField = value; + this.keysetNameField = value; } } - /// Whether to allow the creation or modification of this DaiEncodingProfile if its settings do not match - /// one of the encoding profiles that is supported by Google DAI.

Note that this - /// field will not persist on the encoding profile itself, and will only affect the - /// current request.

+ /// The amount of time in seconds for which a request signed with a short token will + /// be valid. Only required if signedRequestMaximumExpirationTtl has been set in the + /// Media CDN configuration. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 7)] - public bool persistUnmatchedProfiles { + [System.Xml.Serialization.XmlElementAttribute(Order = 8)] + public long signedRequestExpirationTtlSeconds { get { - return this.persistUnmatchedProfilesField; + return this.signedRequestExpirationTtlSecondsField; } set { - this.persistUnmatchedProfilesField = value; - this.persistUnmatchedProfilesSpecified = true; + this.signedRequestExpirationTtlSecondsField = value; + this.signedRequestExpirationTtlSecondsSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="signedRequestExpirationTtlSeconds" />, false otherwise. + ///
[System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool persistUnmatchedProfilesSpecified { + public bool signedRequestExpirationTtlSecondsSpecified { get { - return this.persistUnmatchedProfilesFieldSpecified; + return this.signedRequestExpirationTtlSecondsFieldSpecified; } set { - this.persistUnmatchedProfilesFieldSpecified = value; + this.signedRequestExpirationTtlSecondsFieldSpecified = value; } } } - /// Describes the status of a DaiEncodingProfile - /// object. + /// Indicates the type of security policy associated with access to a CDN. Different + /// security policies require different parameters in a SecurityPolicy. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum DaiEncodingProfileStatus { - /// Indicates the DaiEncodingProfile has been - /// created and is eligible for streaming. - /// - ACTIVE = 0, - /// Indicates the DaiEncodingProfile has been - /// archived. - /// - ARCHIVED = 1, + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum SecurityPolicyType { /// The value returned if the actual value is not exposed by the requested API /// version. /// - UNKNOWN = 2, - } - - - /// Describes the variant playlist type that the profile represents. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum VariantType { - /// Media variant playlist type. Media playlists may: contain audio only, video - /// only, or audio and video. - /// - MEDIA = 0, - /// iFrame variant playlist type. iFrame playlists may: contain video or contain - /// audio and video (i.e. video must be present). + UNKNOWN = 0, + /// Indicates that no authentication is necessary. /// - IFRAME = 1, - /// Subtitles variant playlist type. + NONE = 1, + /// Security policy for accessing content on the Akamai CDN. /// - SUBTITLES = 2, - /// The value returned if the actual value is not exposed by the requested API - /// version. + AKAMAI = 2, + /// Security policy for access content on Google Cloud Media CDN. /// - UNKNOWN = 3, + CLOUD_MEDIA = 3, } - /// Describes the digital media container type of the underlying media. + /// Indicates the type of origin forwarding used to support Akamai authentication + /// policies for LiveStreamEvent /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum ContainerType { - /// Transport stream (TS) container. + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum OriginForwardingType { + /// Indicates that origin forwarding is set up by passing an originpath query string + /// parameter (necessary for Akamai dynamic packaging to work) /// - TS = 0, - /// Fragmented MPEG-4 (fMP4) output container. + ORIGIN_PATH = 0, + /// Indicates that conventional origin forwarding is used. /// - FMP4 = 1, - /// HTTP live streaming (HLS) packed audio container. + CONVENTIONAL = 1, + /// Indicates that origin forwarding is not being used. /// - HLS_AUDIO = 2, + NONE = 3, /// The value returned if the actual value is not exposed by the requested API /// version. /// - UNKNOWN = 3, + UNKNOWN = 2, } - /// Lists all errors associated with encoding profile variant settings. + /// Configuration that associates a media location with a security policy and the + /// authentication credentials needed to access the content. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class DaiEncodingProfileVariantSettingsError : ApiError { - private DaiEncodingProfileVariantSettingsErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class MediaLocationSettings { + private string nameField; - private bool reasonFieldSpecified; + private string urlPrefixField; + + private SecurityPolicySettings securityPolicyField; + /// The name of the media location. This value is read-only and is assigned by + /// Google. + /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public DaiEncodingProfileVariantSettingsErrorReason reason { + public string name { get { - return this.reasonField; + return this.nameField; } set { - this.reasonField = value; - this.reasonSpecified = true; + this.nameField = value; } } - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { + /// The url prefix of the media location. This value is required for a valid media + /// location. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public string urlPrefix { get { - return this.reasonFieldSpecified; + return this.urlPrefixField; } set { - this.reasonFieldSpecified = value; + this.urlPrefixField = value; } } - } - - /// Describes reasons for . - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "DaiEncodingProfileVariantSettingsError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum DaiEncodingProfileVariantSettingsErrorReason { - /// Container type is required for a MEDIA or IFRAME - /// variant. - /// - CONTAINER_TYPE_REQUIRED = 0, - /// Video settings are only allowed for MEDIA or IFRAME - /// variant types. - /// - VIDEO_SETTINGS_NOT_ALLOWED = 1, - /// Audio settings are only allowed for MEDIA or IFRAME - /// variant types. - /// - AUDIO_SETTINGS_NOT_ALLOWED = 2, - /// The value returned if the actual value is not exposed by the requested API - /// version. + /// The security policy and authentication credentials needed to access the content + /// in this media location. This value is required for a valid media location. /// - UNKNOWN = 3, + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public SecurityPolicySettings securityPolicy { + get { + return this.securityPolicyField; + } + set { + this.securityPolicyField = value; + } + } } - /// Lists all errors associated with encoding profile updates. + /// Parameters about this CDN configuration as a source of content. This facilitates + /// fetching the original content for conditioning and delivering the original + /// content as part of a modified stream. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class DaiEncodingProfileUpdateError : ApiError { - private DaiEncodingProfileUpdateErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class SourceContentConfiguration { + private MediaLocationSettings ingestSettingsField; - private bool reasonFieldSpecified; + private MediaLocationSettings defaultDeliverySettingsField; + /// Configuration for how DAI should ingest media. At ingest time, we match the url + /// prefix of media in a stream's playlist with an ingest location and use the + /// authentication credentials from the corresponding ingest settings to download + /// the media. This value is required for a valid source content configuration. + /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public DaiEncodingProfileUpdateErrorReason reason { + public MediaLocationSettings ingestSettings { get { - return this.reasonField; + return this.ingestSettingsField; } set { - this.reasonField = value; - this.reasonSpecified = true; + this.ingestSettingsField = value; } } - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { + /// Default configuration for how DAI should deliver the non-modified media + /// segments. At delivery time, we replace the ingest location's url prefix with the + /// delivery location's URL prefix and use the security policy from the delivery + /// settings to determine how DAI needs to deliver the media so that users can + /// access it. This value is required for a valid source content configuration. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public MediaLocationSettings defaultDeliverySettings { get { - return this.reasonFieldSpecified; + return this.defaultDeliverySettingsField; } set { - this.reasonFieldSpecified = value; + this.defaultDeliverySettingsField = value; } } } - /// Describes reasons for DaiEncodingProfileNameError. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "DaiEncodingProfileUpdateError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum DaiEncodingProfileUpdateErrorReason { - /// Profiles cannot be updated if they are associated with running live stream - /// events. - /// - CANNOT_UPDATE_IF_USED_BY_RUNNING_LIVE_STREAMS = 0, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 1, - } - - - /// Lists all errors associated with encoding profile names. + /// A CdnConfiguration encapsulates information about + /// where and how to ingest and deliver content enabled for DAI (Dynamic Ad + /// Insertion). /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class DaiEncodingProfileNameError : ApiError { - private DaiEncodingProfileNameErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class CdnConfiguration { + private long idField; - private bool reasonFieldSpecified; + private bool idFieldSpecified; + + private string nameField; + + private CdnConfigurationType cdnConfigurationTypeField; + + private bool cdnConfigurationTypeFieldSpecified; + + private SourceContentConfiguration sourceContentConfigurationField; + + private CdnConfigurationStatus cdnConfigurationStatusField; + + private bool cdnConfigurationStatusFieldSpecified; + /// The unique ID of the CdnConfiguration. This value + /// is read-only and is assigned by Google. + /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public DaiEncodingProfileNameErrorReason reason { + public long id { get { - return this.reasonField; + return this.idField; } set { - this.reasonField = value; - this.reasonSpecified = true; + this.idField = value; + this.idSpecified = true; } } - /// true, if a value is specified for , + /// true, if a value is specified for , /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { + public bool idSpecified { get { - return this.reasonFieldSpecified; + return this.idFieldSpecified; } set { - this.reasonFieldSpecified = value; + this.idFieldSpecified = value; } } - } - - /// Describes reasons for DaiEncodingProfileNameError. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "DaiEncodingProfileNameError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum DaiEncodingProfileNameErrorReason { - /// Name contains invalid characters. - /// - CONTAINS_INVALID_CHARACTERS = 0, - /// The value returned if the actual value is not exposed by the requested API - /// version. + /// The name of the CdnConfiguration. This value is + /// required to create a CDN configuration and has a maximum length of 255 + /// characters. /// - UNKNOWN = 1, - } + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public string name { + get { + return this.nameField; + } + set { + this.nameField = value; + } + } + /// The type of CDN configuration represented by this CdnConfiguration. This value is required to create a + /// CDN configuration + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public CdnConfigurationType cdnConfigurationType { + get { + return this.cdnConfigurationTypeField; + } + set { + this.cdnConfigurationTypeField = value; + this.cdnConfigurationTypeSpecified = true; + } + } - /// Lists all errors associated with encoding profile container settings. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class DaiEncodingProfileContainerSettingsError : ApiError { - private DaiEncodingProfileContainerSettingsErrorReason reasonField; + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool cdnConfigurationTypeSpecified { + get { + return this.cdnConfigurationTypeFieldSpecified; + } + set { + this.cdnConfigurationTypeFieldSpecified = value; + } + } - private bool reasonFieldSpecified; + /// Parameters about this CDN configuration as a source of content. This facilitates + /// fetching the original content for conditioning and delivering the original + /// content as part of a modified stream. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 3)] + public SourceContentConfiguration sourceContentConfiguration { + get { + return this.sourceContentConfigurationField; + } + set { + this.sourceContentConfigurationField = value; + } + } - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public DaiEncodingProfileContainerSettingsErrorReason reason { + /// The status of the CDN configuration. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 4)] + public CdnConfigurationStatus cdnConfigurationStatus { get { - return this.reasonField; + return this.cdnConfigurationStatusField; } set { - this.reasonField = value; - this.reasonSpecified = true; + this.cdnConfigurationStatusField = value; + this.cdnConfigurationStatusSpecified = true; } } - /// true, if a value is specified for , - /// false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { + public bool cdnConfigurationStatusSpecified { get { - return this.reasonFieldSpecified; + return this.cdnConfigurationStatusFieldSpecified; } set { - this.reasonFieldSpecified = value; + this.cdnConfigurationStatusFieldSpecified = value; } } } - /// Describes reasons for . + /// Indicates the type of CDN configuration for CdnConfiguration. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "DaiEncodingProfileContainerSettingsError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum DaiEncodingProfileContainerSettingsErrorReason { - /// Profiles with TS container type must have at least one of audio or - /// video settings present. - /// - TS_MUST_HAVE_AUDIO_OR_VIDEO_SETTINGS = 0, - /// Profiles with FMP4 container type must have at exactly one of audio - /// or video settings present. + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum CdnConfigurationType { + /// The value returned if the actual value is not exposed by the requested API + /// version. /// - FMP4_MUST_HAVE_EITHER_AUDIO_OR_VIDEO_SETTINGS = 1, - /// Profiles with HLS_AUDIO container type must only have audio - /// settings present. + UNKNOWN = 0, + /// A configuration that specifies where and how LiveStreamEvent content should be ingested and + /// delivered. /// - HLS_AUDIO_MUST_HAVE_ONLY_AUDIO_SETTINGS = 2, + LIVE_STREAM_SOURCE_CONTENT = 1, + } + + + /// Indicates the status of the CdnConfiguration. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum CdnConfigurationStatus { /// The value returned if the actual value is not exposed by the requested API /// version. /// - UNKNOWN = 3, + UNKNOWN = 0, + /// The CDN configuration is in use. + /// + ACTIVE = 1, + /// The CDN configuration is no longer used. + /// + ARCHIVED = 2, } - /// Lists all warnings associated with validating encoding profiles. + /// Errors associated with CdnConfigurations. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class DaiEncodingProfileAdMatchingError : ApiError { - private DaiEncodingProfileAdMatchingErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class CdnConfigurationError : ApiError { + private CdnConfigurationErrorReason reasonField; private bool reasonFieldSpecified; + /// The error reason represented by an enum. + /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public DaiEncodingProfileAdMatchingErrorReason reason { + public CdnConfigurationErrorReason reason { get { return this.reasonField; } @@ -61996,80 +60544,93 @@ public bool reasonSpecified { } - /// Describes reasons for DaiEncodingProfileNameError. + /// The reasons for the CdnConfigurationError. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "DaiEncodingProfileAdMatchingError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum DaiEncodingProfileAdMatchingErrorReason { - /// Encoding profile does not match any existing creative profiles. + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CdnConfigurationError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum CdnConfigurationErrorReason { + /// URL prefixes should not contain schemes. /// - NO_CREATIVE_PROFILES_MATCHED = 0, + URL_SHOULD_NOT_CONTAIN_SCHEME = 0, + /// Invalid delivery setting name. Names for new delivery settings must be null or + /// empty. Names for existing delivery settings cannot be modified. + /// + INVALID_DELIVERY_LOCATION_NAMES = 1, + /// A CDN configuration cannot be archived if it is used by active content sources. + /// + CANNOT_ARCHIVE_IF_USED_BY_ACTIVE_CONTENT_SOURCES = 3, + /// A CDN configuration cannot be archived if it is used by active live streams. + /// + CANNOT_ARCHIVE_IF_USED_BY_ACTIVE_LIVE_STREAMS = 4, + /// The security policy type is not supported for the current settings. + /// + UNSUPPORTED_SECURITY_POLICY_TYPE = 5, /// The value returned if the actual value is not exposed by the requested API /// version. /// - UNKNOWN = 1, + UNKNOWN = 2, } [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", ConfigurationName = "Google.Api.Ads.AdManager.v202311.DaiEncodingProfileServiceInterface")] - public interface DaiEncodingProfileServiceInterface + [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", ConfigurationName = "Google.Api.Ads.AdManager.v202411.CdnConfigurationServiceInterface")] + public interface CdnConfigurationServiceInterface { // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Wrappers.DaiEncodingProfileService.createDaiEncodingProfilesResponse createDaiEncodingProfiles(Wrappers.DaiEncodingProfileService.createDaiEncodingProfilesRequest request); + Wrappers.CdnConfigurationService.createCdnConfigurationsResponse createCdnConfigurations(Wrappers.CdnConfigurationService.createCdnConfigurationsRequest request); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task createDaiEncodingProfilesAsync(Wrappers.DaiEncodingProfileService.createDaiEncodingProfilesRequest request); + System.Threading.Tasks.Task createCdnConfigurationsAsync(Wrappers.CdnConfigurationService.createCdnConfigurationsRequest request); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v202311.DaiEncodingProfilePage getDaiEncodingProfilesByStatement(Google.Api.Ads.AdManager.v202311.Statement filterStatement); + Google.Api.Ads.AdManager.v202411.CdnConfigurationPage getCdnConfigurationsByStatement(Google.Api.Ads.AdManager.v202411.Statement statement); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getDaiEncodingProfilesByStatementAsync(Google.Api.Ads.AdManager.v202311.Statement filterStatement); + System.Threading.Tasks.Task getCdnConfigurationsByStatementAsync(Google.Api.Ads.AdManager.v202411.Statement statement); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v202311.UpdateResult performDaiEncodingProfileAction(Google.Api.Ads.AdManager.v202311.DaiEncodingProfileAction daiEncodingProfileAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement); + Google.Api.Ads.AdManager.v202411.UpdateResult performCdnConfigurationAction(Google.Api.Ads.AdManager.v202411.CdnConfigurationAction cdnConfigurationAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task performDaiEncodingProfileActionAsync(Google.Api.Ads.AdManager.v202311.DaiEncodingProfileAction daiEncodingProfileAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement); + System.Threading.Tasks.Task performCdnConfigurationActionAsync(Google.Api.Ads.AdManager.v202411.CdnConfigurationAction cdnConfigurationAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement); // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Wrappers.DaiEncodingProfileService.updateDaiEncodingProfilesResponse updateDaiEncodingProfiles(Wrappers.DaiEncodingProfileService.updateDaiEncodingProfilesRequest request); + Wrappers.CdnConfigurationService.updateCdnConfigurationsResponse updateCdnConfigurations(Wrappers.CdnConfigurationService.updateCdnConfigurationsRequest request); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task updateDaiEncodingProfilesAsync(Wrappers.DaiEncodingProfileService.updateDaiEncodingProfilesRequest request); + System.Threading.Tasks.Task updateCdnConfigurationsAsync(Wrappers.CdnConfigurationService.updateCdnConfigurationsRequest request); } - /// Captures a page of DaiEncodingProfile objects. + /// Captures a page of CdnConfiguration objects. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class DaiEncodingProfilePage { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class CdnConfigurationPage { private int totalResultSetSizeField; private bool totalResultSetSizeFieldSpecified; @@ -62078,7 +60639,7 @@ public partial class DaiEncodingProfilePage { private bool startIndexFieldSpecified; - private DaiEncodingProfile[] resultsField; + private CdnConfiguration[] resultsField; /// The size of the total result set to which this page belongs. /// @@ -62132,10 +60693,10 @@ public bool startIndexSpecified { } } - /// The collection of profiles contained within this page. + /// The collection of CDN configurations contained within this page. /// [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] - public DaiEncodingProfile[] results { + public CdnConfiguration[] results { get { return this.resultsField; } @@ -62147,187 +60708,184 @@ public DaiEncodingProfile[] results { /// Represents the actions that can be performed on DaiEncodingProfile objects. + /// href='CdnConfiguration'>CdnConfiguration objects. /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ArchiveDaiEncodingProfiles))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ActivateDaiEncodingProfiles))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ArchiveCdnConfigurations))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ActivateCdnConfigurations))] [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public abstract partial class DaiEncodingProfileAction { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public abstract partial class CdnConfigurationAction { } - /// The action used for archiving DaiEncodingProfile objects. + /// The action used for archiving CdnConfiguration + /// objects. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ArchiveDaiEncodingProfiles : DaiEncodingProfileAction { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ArchiveCdnConfigurations : CdnConfigurationAction { } - /// The action used for activating DaiEncodingProfile objects. + /// The action used for activating CdnConfiguration + /// objects. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ActivateDaiEncodingProfiles : DaiEncodingProfileAction { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ActivateCdnConfigurations : CdnConfigurationAction { } [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public interface DaiEncodingProfileServiceInterfaceChannel : Google.Api.Ads.AdManager.v202311.DaiEncodingProfileServiceInterface, System.ServiceModel.IClientChannel + public interface CdnConfigurationServiceInterfaceChannel : Google.Api.Ads.AdManager.v202411.CdnConfigurationServiceInterface, System.ServiceModel.IClientChannel { } /// Provides methods for creating, updating and retrieving DaiEncodingProfile objects.

This feature is not - /// yet openly available for GAM Video publishers. Publishers will need to apply for - /// access for this feature through their account managers.

+ /// href='CdnConfiguration'>CdnConfiguration objects. ///
[System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public partial class DaiEncodingProfileService : AdManagerSoapClient, IDaiEncodingProfileService { - /// Creates a new instance of the + public partial class CdnConfigurationService : AdManagerSoapClient, ICdnConfigurationService { + /// Creates a new instance of the /// class. - public DaiEncodingProfileService() { + public CdnConfigurationService() { } - /// Creates a new instance of the + /// Creates a new instance of the /// class. - public DaiEncodingProfileService(string endpointConfigurationName) + public CdnConfigurationService(string endpointConfigurationName) : base(endpointConfigurationName) { } - /// Creates a new instance of the + /// Creates a new instance of the /// class. - public DaiEncodingProfileService(string endpointConfigurationName, string remoteAddress) + public CdnConfigurationService(string endpointConfigurationName, string remoteAddress) : base(endpointConfigurationName, remoteAddress) { } - /// Creates a new instance of the + /// Creates a new instance of the /// class. - public DaiEncodingProfileService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) + public CdnConfigurationService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) : base(endpointConfigurationName, remoteAddress) { } - /// Creates a new instance of the + /// Creates a new instance of the /// class. - public DaiEncodingProfileService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) + public CdnConfigurationService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) : base(binding, remoteAddress) { } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.DaiEncodingProfileService.createDaiEncodingProfilesResponse Google.Api.Ads.AdManager.v202311.DaiEncodingProfileServiceInterface.createDaiEncodingProfiles(Wrappers.DaiEncodingProfileService.createDaiEncodingProfilesRequest request) { - return base.Channel.createDaiEncodingProfiles(request); + Wrappers.CdnConfigurationService.createCdnConfigurationsResponse Google.Api.Ads.AdManager.v202411.CdnConfigurationServiceInterface.createCdnConfigurations(Wrappers.CdnConfigurationService.createCdnConfigurationsRequest request) { + return base.Channel.createCdnConfigurations(request); } - /// Creates new DaiEncodingProfile objects. + /// Creates new CdnConfiguration objects. /// - public virtual Google.Api.Ads.AdManager.v202311.DaiEncodingProfile[] createDaiEncodingProfiles(Google.Api.Ads.AdManager.v202311.DaiEncodingProfile[] daiEncodingProfiles) { - Wrappers.DaiEncodingProfileService.createDaiEncodingProfilesRequest inValue = new Wrappers.DaiEncodingProfileService.createDaiEncodingProfilesRequest(); - inValue.daiEncodingProfiles = daiEncodingProfiles; - Wrappers.DaiEncodingProfileService.createDaiEncodingProfilesResponse retVal = ((Google.Api.Ads.AdManager.v202311.DaiEncodingProfileServiceInterface)(this)).createDaiEncodingProfiles(inValue); + public virtual Google.Api.Ads.AdManager.v202411.CdnConfiguration[] createCdnConfigurations(Google.Api.Ads.AdManager.v202411.CdnConfiguration[] cdnConfigurations) { + Wrappers.CdnConfigurationService.createCdnConfigurationsRequest inValue = new Wrappers.CdnConfigurationService.createCdnConfigurationsRequest(); + inValue.cdnConfigurations = cdnConfigurations; + Wrappers.CdnConfigurationService.createCdnConfigurationsResponse retVal = ((Google.Api.Ads.AdManager.v202411.CdnConfigurationServiceInterface)(this)).createCdnConfigurations(inValue); return retVal.rval; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202311.DaiEncodingProfileServiceInterface.createDaiEncodingProfilesAsync(Wrappers.DaiEncodingProfileService.createDaiEncodingProfilesRequest request) { - return base.Channel.createDaiEncodingProfilesAsync(request); + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202411.CdnConfigurationServiceInterface.createCdnConfigurationsAsync(Wrappers.CdnConfigurationService.createCdnConfigurationsRequest request) { + return base.Channel.createCdnConfigurationsAsync(request); } - public virtual System.Threading.Tasks.Task createDaiEncodingProfilesAsync(Google.Api.Ads.AdManager.v202311.DaiEncodingProfile[] daiEncodingProfiles) { - Wrappers.DaiEncodingProfileService.createDaiEncodingProfilesRequest inValue = new Wrappers.DaiEncodingProfileService.createDaiEncodingProfilesRequest(); - inValue.daiEncodingProfiles = daiEncodingProfiles; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202311.DaiEncodingProfileServiceInterface)(this)).createDaiEncodingProfilesAsync(inValue)).Result.rval); + public virtual System.Threading.Tasks.Task createCdnConfigurationsAsync(Google.Api.Ads.AdManager.v202411.CdnConfiguration[] cdnConfigurations) { + Wrappers.CdnConfigurationService.createCdnConfigurationsRequest inValue = new Wrappers.CdnConfigurationService.createCdnConfigurationsRequest(); + inValue.cdnConfigurations = cdnConfigurations; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202411.CdnConfigurationServiceInterface)(this)).createCdnConfigurationsAsync(inValue)).Result.rval); } - /// Gets a DaiEncodingProfilePage of DaiEncodingProfile objects that satisfy the given - /// Statement#query. The following fields are - /// supported for filtering: - /// + /// Gets a CdnConfigurationPage of CdnConfiguration objects that satisfy the given Statement#query. Currently only CDN Configurations of + /// type CdnConfigurationType#LIVE_STREAM_SOURCE_CONTENT will be + /// returned. The following fields are supported for filtering:
PQL Property Object Property
id DaiEncodingProfile#id
status DaiEncodingProfile#status
+ /// ///
PQL Property Object Property
id CdnConfiguration#id
name DaiEncodingProfile#name
+ /// href='CdnConfiguration#name'>CdnConfiguration#name ///
- public virtual Google.Api.Ads.AdManager.v202311.DaiEncodingProfilePage getDaiEncodingProfilesByStatement(Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.getDaiEncodingProfilesByStatement(filterStatement); + public virtual Google.Api.Ads.AdManager.v202411.CdnConfigurationPage getCdnConfigurationsByStatement(Google.Api.Ads.AdManager.v202411.Statement statement) { + return base.Channel.getCdnConfigurationsByStatement(statement); } - public virtual System.Threading.Tasks.Task getDaiEncodingProfilesByStatementAsync(Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.getDaiEncodingProfilesByStatementAsync(filterStatement); + public virtual System.Threading.Tasks.Task getCdnConfigurationsByStatementAsync(Google.Api.Ads.AdManager.v202411.Statement statement) { + return base.Channel.getCdnConfigurationsByStatementAsync(statement); } - /// Performs actions on DaiEncodingProfile objects - /// that match the given Statement#query. + /// Performs actions on CdnConfiguration objects that + /// match the given Statement#query. /// - public virtual Google.Api.Ads.AdManager.v202311.UpdateResult performDaiEncodingProfileAction(Google.Api.Ads.AdManager.v202311.DaiEncodingProfileAction daiEncodingProfileAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.performDaiEncodingProfileAction(daiEncodingProfileAction, filterStatement); + public virtual Google.Api.Ads.AdManager.v202411.UpdateResult performCdnConfigurationAction(Google.Api.Ads.AdManager.v202411.CdnConfigurationAction cdnConfigurationAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.performCdnConfigurationAction(cdnConfigurationAction, filterStatement); } - public virtual System.Threading.Tasks.Task performDaiEncodingProfileActionAsync(Google.Api.Ads.AdManager.v202311.DaiEncodingProfileAction daiEncodingProfileAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.performDaiEncodingProfileActionAsync(daiEncodingProfileAction, filterStatement); + public virtual System.Threading.Tasks.Task performCdnConfigurationActionAsync(Google.Api.Ads.AdManager.v202411.CdnConfigurationAction cdnConfigurationAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.performCdnConfigurationActionAsync(cdnConfigurationAction, filterStatement); } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.DaiEncodingProfileService.updateDaiEncodingProfilesResponse Google.Api.Ads.AdManager.v202311.DaiEncodingProfileServiceInterface.updateDaiEncodingProfiles(Wrappers.DaiEncodingProfileService.updateDaiEncodingProfilesRequest request) { - return base.Channel.updateDaiEncodingProfiles(request); + Wrappers.CdnConfigurationService.updateCdnConfigurationsResponse Google.Api.Ads.AdManager.v202411.CdnConfigurationServiceInterface.updateCdnConfigurations(Wrappers.CdnConfigurationService.updateCdnConfigurationsRequest request) { + return base.Channel.updateCdnConfigurations(request); } - /// Updates the specified DaiEncodingProfile - /// objects. + /// Updates the specified CdnConfiguration objects. /// - public virtual Google.Api.Ads.AdManager.v202311.DaiEncodingProfile[] updateDaiEncodingProfiles(Google.Api.Ads.AdManager.v202311.DaiEncodingProfile[] daiEncodingProfiles) { - Wrappers.DaiEncodingProfileService.updateDaiEncodingProfilesRequest inValue = new Wrappers.DaiEncodingProfileService.updateDaiEncodingProfilesRequest(); - inValue.daiEncodingProfiles = daiEncodingProfiles; - Wrappers.DaiEncodingProfileService.updateDaiEncodingProfilesResponse retVal = ((Google.Api.Ads.AdManager.v202311.DaiEncodingProfileServiceInterface)(this)).updateDaiEncodingProfiles(inValue); + public virtual Google.Api.Ads.AdManager.v202411.CdnConfiguration[] updateCdnConfigurations(Google.Api.Ads.AdManager.v202411.CdnConfiguration[] cdnConfigurations) { + Wrappers.CdnConfigurationService.updateCdnConfigurationsRequest inValue = new Wrappers.CdnConfigurationService.updateCdnConfigurationsRequest(); + inValue.cdnConfigurations = cdnConfigurations; + Wrappers.CdnConfigurationService.updateCdnConfigurationsResponse retVal = ((Google.Api.Ads.AdManager.v202411.CdnConfigurationServiceInterface)(this)).updateCdnConfigurations(inValue); return retVal.rval; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202311.DaiEncodingProfileServiceInterface.updateDaiEncodingProfilesAsync(Wrappers.DaiEncodingProfileService.updateDaiEncodingProfilesRequest request) { - return base.Channel.updateDaiEncodingProfilesAsync(request); + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202411.CdnConfigurationServiceInterface.updateCdnConfigurationsAsync(Wrappers.CdnConfigurationService.updateCdnConfigurationsRequest request) { + return base.Channel.updateCdnConfigurationsAsync(request); } - public virtual System.Threading.Tasks.Task updateDaiEncodingProfilesAsync(Google.Api.Ads.AdManager.v202311.DaiEncodingProfile[] daiEncodingProfiles) { - Wrappers.DaiEncodingProfileService.updateDaiEncodingProfilesRequest inValue = new Wrappers.DaiEncodingProfileService.updateDaiEncodingProfilesRequest(); - inValue.daiEncodingProfiles = daiEncodingProfiles; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202311.DaiEncodingProfileServiceInterface)(this)).updateDaiEncodingProfilesAsync(inValue)).Result.rval); + public virtual System.Threading.Tasks.Task updateCdnConfigurationsAsync(Google.Api.Ads.AdManager.v202411.CdnConfiguration[] cdnConfigurations) { + Wrappers.CdnConfigurationService.updateCdnConfigurationsRequest inValue = new Wrappers.CdnConfigurationService.updateCdnConfigurationsRequest(); + inValue.cdnConfigurations = cdnConfigurations; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202411.CdnConfigurationServiceInterface)(this)).updateCdnConfigurationsAsync(inValue)).Result.rval); } } - namespace Wrappers.SiteService + namespace Wrappers.CompanyService { [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "createSites", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class createSitesRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("sites")] - public Google.Api.Ads.AdManager.v202311.Site[] sites; + [System.ServiceModel.MessageContractAttribute(WrapperName = "createCompanies", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class createCompaniesRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("companies")] + public Google.Api.Ads.AdManager.v202411.Company[] companies; - /// Creates a new instance of the class. - /// - public createSitesRequest() { + /// Creates a new instance of the + /// class. + public createCompaniesRequest() { } - /// Creates a new instance of the class. - /// - public createSitesRequest(Google.Api.Ads.AdManager.v202311.Site[] sites) { - this.sites = sites; + /// Creates a new instance of the + /// class. + public createCompaniesRequest(Google.Api.Ads.AdManager.v202411.Company[] companies) { + this.companies = companies; } } @@ -62335,20 +60893,20 @@ public createSitesRequest(Google.Api.Ads.AdManager.v202311.Site[] sites) { [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "createSitesResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class createSitesResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "createCompaniesResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class createCompaniesResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v202311.Site[] rval; + public Google.Api.Ads.AdManager.v202411.Company[] rval; - /// Creates a new instance of the class. - /// - public createSitesResponse() { + /// Creates a new instance of the + /// class. + public createCompaniesResponse() { } - /// Creates a new instance of the class. - /// - public createSitesResponse(Google.Api.Ads.AdManager.v202311.Site[] rval) { + /// Creates a new instance of the + /// class. + public createCompaniesResponse(Google.Api.Ads.AdManager.v202411.Company[] rval) { this.rval = rval; } } @@ -62357,21 +60915,21 @@ public createSitesResponse(Google.Api.Ads.AdManager.v202311.Site[] rval) { [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "updateSites", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class updateSitesRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("sites")] - public Google.Api.Ads.AdManager.v202311.Site[] sites; + [System.ServiceModel.MessageContractAttribute(WrapperName = "updateCompanies", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class updateCompaniesRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("companies")] + public Google.Api.Ads.AdManager.v202411.Company[] companies; - /// Creates a new instance of the class. - /// - public updateSitesRequest() { + /// Creates a new instance of the + /// class. + public updateCompaniesRequest() { } - /// Creates a new instance of the class. - /// - public updateSitesRequest(Google.Api.Ads.AdManager.v202311.Site[] sites) { - this.sites = sites; + /// Creates a new instance of the + /// class. + public updateCompaniesRequest(Google.Api.Ads.AdManager.v202411.Company[] companies) { + this.companies = companies; } } @@ -62379,1390 +60937,1498 @@ public updateSitesRequest(Google.Api.Ads.AdManager.v202311.Site[] sites) { [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "updateSitesResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class updateSitesResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "updateCompaniesResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class updateCompaniesResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v202311.Site[] rval; + public Google.Api.Ads.AdManager.v202411.Company[] rval; - /// Creates a new instance of the class. - /// - public updateSitesResponse() { + /// Creates a new instance of the + /// class. + public updateCompaniesResponse() { } - /// Creates a new instance of the class. - /// - public updateSitesResponse(Google.Api.Ads.AdManager.v202311.Site[] rval) { + /// Creates a new instance of the + /// class. + public updateCompaniesResponse(Google.Api.Ads.AdManager.v202411.Company[] rval) { this.rval = rval; } } } + /// Information required for Company of Type + /// VIEWABILITY_PROVIDER. It contains all of the data needed to capture viewability + /// metrics. + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class DisapprovalReason { - private DisapprovalReasonType typeField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ViewabilityProvider { + private string vendorKeyField; - private bool typeFieldSpecified; + private string verificationScriptUrlField; - private string detailsField; + private string verificationParametersField; + private string verificationRejectionTrackerUrlField; + + /// The key for this ad verification vendor. + /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public DisapprovalReasonType type { + public string vendorKey { get { - return this.typeField; + return this.vendorKeyField; } set { - this.typeField = value; - this.typeSpecified = true; + this.vendorKeyField = value; } } - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool typeSpecified { + /// The URL that hosts the verification script for this vendor. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public string verificationScriptUrl { get { - return this.typeFieldSpecified; + return this.verificationScriptUrlField; } set { - this.typeFieldSpecified = value; + this.verificationScriptUrlField = value; } } - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public string details { + /// The parameters that will be passed to the verification script. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public string verificationParameters { get { - return this.detailsField; + return this.verificationParametersField; } set { - this.detailsField = value; + this.verificationParametersField = value; } } - } - - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "DisapprovalReason.Type", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum DisapprovalReasonType { - CONTENT = 0, - OWNERSHIP = 1, - OTHER = 2, - UNKNOWN = 3, + /// The URL that should be pinged if the verification script cannot be run. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 3)] + public string verificationRejectionTrackerUrl { + get { + return this.verificationRejectionTrackerUrlField; + } + set { + this.verificationRejectionTrackerUrlField = value; + } + } } + /// A ChildPublisher represents a network being managed as part of + /// Multiple Customer Management. + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class Site { - private long idField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ChildPublisher { + private DelegationType approvedDelegationTypeField; - private bool idFieldSpecified; + private bool approvedDelegationTypeFieldSpecified; - private string urlField; + private DelegationType proposedDelegationTypeField; - private string childNetworkCodeField; + private bool proposedDelegationTypeFieldSpecified; - private ApprovalStatus approvalStatusField; + private DelegationStatus statusField; - private bool approvalStatusFieldSpecified; + private bool statusFieldSpecified; + + private AccountStatus accountStatusField; - private bool activeField; + private bool accountStatusFieldSpecified; - private bool activeFieldSpecified; + private string childNetworkCodeField; - private DisapprovalReason[] disapprovalReasonsField; + private string sellerIdField; + + private long proposedRevenueShareMillipercentField; + + private bool proposedRevenueShareMillipercentFieldSpecified; + + private OnboardingTask[] onboardingTasksField; + /// Type of delegation the parent has been approved to have over the child. This + /// field is read-only, and set to the proposed delegation type value + /// proposedDelegationType upon approval by the child network. The + /// value remains null if the parent network has not been approved. + /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public long id { + public DelegationType approvedDelegationType { get { - return this.idField; + return this.approvedDelegationTypeField; } set { - this.idField = value; - this.idSpecified = true; + this.approvedDelegationTypeField = value; + this.approvedDelegationTypeSpecified = true; } } - /// true, if a value is specified for , - /// false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool idSpecified { + public bool approvedDelegationTypeSpecified { get { - return this.idFieldSpecified; + return this.approvedDelegationTypeFieldSpecified; } set { - this.idFieldSpecified = value; + this.approvedDelegationTypeFieldSpecified = value; } } + /// Type of delegation the parent has proposed to have over the child, pending + /// approval of the child network. Set the value of this field to the delegation + /// type you intend this network to have over the child network. Upon approval by + /// the child network, its value is copied to approvedDelegationType, + /// and is set to null. + /// [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public string url { + public DelegationType proposedDelegationType { get { - return this.urlField; + return this.proposedDelegationTypeField; } set { - this.urlField = value; + this.proposedDelegationTypeField = value; + this.proposedDelegationTypeSpecified = true; } } - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public string childNetworkCode { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool proposedDelegationTypeSpecified { get { - return this.childNetworkCodeField; + return this.proposedDelegationTypeFieldSpecified; } set { - this.childNetworkCodeField = value; + this.proposedDelegationTypeFieldSpecified = value; } } - [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public ApprovalStatus approvalStatus { + /// Status of the delegation relationship between parent and child. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public DelegationStatus status { get { - return this.approvalStatusField; + return this.statusField; } set { - this.approvalStatusField = value; - this.approvalStatusSpecified = true; + this.statusField = value; + this.statusSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , + /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool approvalStatusSpecified { + public bool statusSpecified { get { - return this.approvalStatusFieldSpecified; + return this.statusFieldSpecified; } set { - this.approvalStatusFieldSpecified = value; + this.statusFieldSpecified = value; } } - [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public bool active { + /// Status of the child publisher's Ad Manager account based on as + /// well as Google's policy verification results. This field is read-only. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 3)] + public AccountStatus accountStatus { get { - return this.activeField; + return this.accountStatusField; } set { - this.activeField = value; - this.activeSpecified = true; + this.accountStatusField = value; + this.accountStatusSpecified = true; } } - /// true, if a value is specified for , - /// false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool activeSpecified { + public bool accountStatusSpecified { get { - return this.activeFieldSpecified; + return this.accountStatusFieldSpecified; } set { - this.activeFieldSpecified = value; + this.accountStatusFieldSpecified = value; } } - [System.Xml.Serialization.XmlElementAttribute("disapprovalReasons", Order = 5)] - public DisapprovalReason[] disapprovalReasons { + /// Network code of child network. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 4)] + public string childNetworkCode { get { - return this.disapprovalReasonsField; + return this.childNetworkCodeField; } set { - this.disapprovalReasonsField = value; + this.childNetworkCodeField = value; } } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum ApprovalStatus { - DRAFT = 0, - UNCHECKED = 1, - APPROVED = 2, - DISAPPROVED = 3, - REQUIRES_REVIEW = 4, - UNKNOWN = 5, - } - - - /// Errors associated with the Site. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class SiteError : ApiError { - private SiteErrorReason reasonField; - private bool reasonFieldSpecified; + /// The child publisher's seller ID, as specified in the parent publisher's + /// sellers.json file.

This field is only relevant for Manage Inventory child + /// publishers.

+ ///
+ [System.Xml.Serialization.XmlElementAttribute(Order = 5)] + public string sellerId { + get { + return this.sellerIdField; + } + set { + this.sellerIdField = value; + } + } - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public SiteErrorReason reason { + /// The proposed revenue share that the parent publisher will receive in + /// millipercentage (values 0 to 100000) for Manage Account proposals. For example, + /// 15% is 15000 millipercent.

For updates, this field is read-only. Use company + /// actions to propose new revenue share agreements for existing MCM children. This + /// field is ignored for Manage Inventory proposals.

+ ///
+ [System.Xml.Serialization.XmlElementAttribute(Order = 6)] + public long proposedRevenueShareMillipercent { get { - return this.reasonField; + return this.proposedRevenueShareMillipercentField; } set { - this.reasonField = value; - this.reasonSpecified = true; + this.proposedRevenueShareMillipercentField = value; + this.proposedRevenueShareMillipercentSpecified = true; } } - /// true, if a value is specified for , - /// false otherwise. + /// true, if a value is specified for , false otherwise. + /// [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { + public bool proposedRevenueShareMillipercentSpecified { get { - return this.reasonFieldSpecified; + return this.proposedRevenueShareMillipercentFieldSpecified; } set { - this.reasonFieldSpecified = value; + this.proposedRevenueShareMillipercentFieldSpecified = value; + } + } + + /// The child publisher's pending onboarding tasks.

This will only be populated + /// if the child publisher's is PENDING_GOOGLE_APPROVAL. + /// This attribute is read-only.

+ ///
+ [System.Xml.Serialization.XmlElementAttribute("onboardingTasks", Order = 7)] + public OnboardingTask[] onboardingTasks { + get { + return this.onboardingTasksField; + } + set { + this.onboardingTasksField = value; } } } - /// The reasons for the target error. + /// The type of delegation of the child network to the parent network in MCM. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "SiteError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum SiteErrorReason { - /// The network code must belong to an MCM child network. + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum DelegationType { + /// The value returned if the actual value is not exposed by the requested API + /// version. /// - INVALID_CHILD_NETWORK_CODE = 0, - /// Archive all subsites before archiving the site. + UNKNOWN = 0, + /// The parent network gets complete access to the child network's account /// - CANNOT_ARCHIVE_SITE_WITH_SUBSITES = 7, - /// The URL is invalid for a top-level site. + MANAGE_ACCOUNT = 1, + /// A subset of the ad requests from the child are delegated to the parent, + /// determined by the tag on the child network's web pages. The parent network does + /// not have access to the child network, as a subset of the inventory could be + /// owned and operated by the child network. /// - INVALID_URL_FOR_SITE = 1, - /// The batch of sites could not be updated because the same site was updated - /// multiple times in the batch. + MANAGE_INVENTORY = 2, + } + + + /// Status of the association between networks. When a parent network requests + /// access, it is marked as pending. Once the child network approves, it is marked + /// as approved. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum DelegationStatus { + /// The value returned if the actual value is not exposed by the requested API + /// version. /// - MULTIPLE_UPDATES_FOR_SAME_SITE = 6, - /// Too many sites in the request to submit them for review. + UNKNOWN = 0, + /// The association request from the parent network is approved by the child + /// network. /// - TOO_MANY_SITES_PER_REVIEW_REQUEST = 3, - /// The site has been submitted for review too many times. + APPROVED = 1, + /// The association request from the parent network is pending child network + /// approval or rejection. + /// + PENDING = 2, + /// The association request from the parent network is rejected or revoked by the + /// child network. + /// + REJECTED = 3, + /// The association request from the parent network is withdrawn by the parent + /// network. + /// + WITHDRAWN = 4, + } + + + /// Status of the MCM child publisher's Ad Manager account with respect to delegated + /// serving. In order for the child network to be served ads for MCM, it must have + /// accepted the invite from the parent network, and must have passed Google's + /// policy compliance verifications. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum AccountStatus { + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 0, + /// The child publisher has not acted on the invite from the parent. + /// + INVITED = 1, + /// The child publisher has declined the invite. + /// + DECLINED = 2, + /// The child publisher has accepted the invite, and is awaiting Google's policy + /// compliance verifications. + /// + PENDING_GOOGLE_APPROVAL = 3, + /// The child publisher accepted the invite, and Google found it to be compliant + /// with its policies, i.e. no policy violations were found, and the child publisher + /// can be served ads. + /// + APPROVED = 4, + /// The child publisher accepted the invite, but was disapproved by Google for + /// violating its policies. + /// + CLOSED_POLICY_VIOLATION = 10, + /// The child publisher accepted the invite, but was disapproved by Google for + /// invalid activity. + /// + CLOSED_INVALID_ACTIVITY = 11, + /// The child publisher has closed their own account. + /// + CLOSED_BY_PUBLISHER = 12, + /// The child publisher accepted the invite, but was disapproved as ineligible by + /// Google. + /// + DISAPPROVED_INELIGIBLE = 13, + /// The child publisher accepted the invite, but was disapproved by Google for being + /// a duplicate of another account. + /// + DISAPPROVED_DUPLICATE_ACCOUNT = 6, + /// The invite was sent to the child publisher more than 90 days ago, due to which + /// it has been deactivated. + /// + EXPIRED = 7, + /// Either the child publisher disconnected from the parent network, or the parent + /// network withdrew the invite. + /// + INACTIVE = 8, + /// The association between the parent and child publishers was deactivated by + /// Google Ad Manager. + /// + DEACTIVATED_BY_AD_MANAGER = 9, + } + + + /// Pending onboarding tasks for the child publishers that must completed before + /// Google's policy compliance is verified. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum OnboardingTask { + UNKNOWN = 0, + /// Creation of the child publisher's payments billing profile. /// - TOO_MANY_REVIEW_REQUESTS_FOR_SITE = 4, - /// Only sites with approval status ApprovalStatus#DRAFT, ApprovalStatus#DISAPPROVED and ApprovalStatus#REQUIRES_REVIEW can be - /// submitted for review. + BILLING_PROFILE_CREATION = 1, + /// Verification of the child publisher's phone number. /// - INVALID_APPROVAL_STATUS_FOR_REVIEW = 5, - /// The value returned if the actual value is not exposed by the requested API - /// version. + PHONE_PIN_VERIFICATION = 2, + /// Setup of the child publisher's Ad Manager account. /// - UNKNOWN = 2, + AD_MANAGER_ACCOUNT_SETUP = 3, } - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", ConfigurationName = "Google.Api.Ads.AdManager.v202311.SiteServiceInterface")] - public interface SiteServiceInterface - { - // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Wrappers.SiteService.createSitesResponse createSites(Wrappers.SiteService.createSitesRequest request); + /// A Company represents an agency, a single advertiser or an entire + /// advertising network. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class Company { + private long idField; - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task createSitesAsync(Wrappers.SiteService.createSitesRequest request); + private bool idFieldSpecified; - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v202311.SitePage getSitesByStatement(Google.Api.Ads.AdManager.v202311.Statement filterStatement); + private string nameField; - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getSitesByStatementAsync(Google.Api.Ads.AdManager.v202311.Statement filterStatement); + private CompanyType typeField; - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v202311.UpdateResult performSiteAction(Google.Api.Ads.AdManager.v202311.SiteAction siteAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement); + private bool typeFieldSpecified; - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task performSiteActionAsync(Google.Api.Ads.AdManager.v202311.SiteAction siteAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement); + private string addressField; - // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Wrappers.SiteService.updateSitesResponse updateSites(Wrappers.SiteService.updateSitesRequest request); + private string emailField; - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task updateSitesAsync(Wrappers.SiteService.updateSitesRequest request); - } + private string faxPhoneField; + private string primaryPhoneField; - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class SitePage { - private int totalResultSetSizeField; + private string externalIdField; - private bool totalResultSetSizeFieldSpecified; + private string commentField; - private int startIndexField; + private CompanyCreditStatus creditStatusField; - private bool startIndexFieldSpecified; + private bool creditStatusFieldSpecified; - private Site[] resultsField; + private AppliedLabel[] appliedLabelsField; + + private long primaryContactIdField; + + private bool primaryContactIdFieldSpecified; + + private long[] appliedTeamIdsField; + + private int thirdPartyCompanyIdField; + + private bool thirdPartyCompanyIdFieldSpecified; + + private DateTime lastModifiedDateTimeField; + private ChildPublisher childPublisherField; + + private ViewabilityProvider viewabilityProviderField; + + /// Uniquely identifies the Company. This value is read-only and is + /// assigned by Google when the company is created. This attribute is required for + /// updates. + /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public int totalResultSetSize { + public long id { get { - return this.totalResultSetSizeField; + return this.idField; } set { - this.totalResultSetSizeField = value; - this.totalResultSetSizeSpecified = true; + this.idField = value; + this.idSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , + /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool totalResultSetSizeSpecified { + public bool idSpecified { get { - return this.totalResultSetSizeFieldSpecified; + return this.idFieldSpecified; } set { - this.totalResultSetSizeFieldSpecified = value; + this.idFieldSpecified = value; } } + /// The full name of the company. This attribute is required and has a maximum + /// length of 127 characters. + /// [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public int startIndex { + public string name { get { - return this.startIndexField; + return this.nameField; } set { - this.startIndexField = value; - this.startIndexSpecified = true; + this.nameField = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool startIndexSpecified { + /// Specifies what kind of company this is. This attribute is required. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public CompanyType type { get { - return this.startIndexFieldSpecified; + return this.typeField; } set { - this.startIndexFieldSpecified = value; + this.typeField = value; + this.typeSpecified = true; } } - [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] - public Site[] results { + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool typeSpecified { get { - return this.resultsField; + return this.typeFieldSpecified; } set { - this.resultsField = value; + this.typeFieldSpecified = value; } } - } - - - [System.Xml.Serialization.XmlIncludeAttribute(typeof(SubmitSiteForApproval))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(DeactivateSite))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public abstract partial class SiteAction { - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class SubmitSiteForApproval : SiteAction { - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class DeactivateSite : SiteAction { - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public interface SiteServiceInterfaceChannel : Google.Api.Ads.AdManager.v202311.SiteServiceInterface, System.ServiceModel.IClientChannel - { - } - - - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public partial class SiteService : AdManagerSoapClient, ISiteService { - /// Creates a new instance of the class. - /// - public SiteService() { - } - - /// Creates a new instance of the class. - /// - public SiteService(string endpointConfigurationName) - : base(endpointConfigurationName) { - } - - /// Creates a new instance of the class. - /// - public SiteService(string endpointConfigurationName, string remoteAddress) - : base(endpointConfigurationName, remoteAddress) { - } - - /// Creates a new instance of the class. - /// - public SiteService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) - : base(endpointConfigurationName, remoteAddress) { - } - - /// Creates a new instance of the class. - /// - public SiteService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) - : base(binding, remoteAddress) { - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.SiteService.createSitesResponse Google.Api.Ads.AdManager.v202311.SiteServiceInterface.createSites(Wrappers.SiteService.createSitesRequest request) { - return base.Channel.createSites(request); - } - - /// Creates new Site objects. - /// - public virtual Google.Api.Ads.AdManager.v202311.Site[] createSites(Google.Api.Ads.AdManager.v202311.Site[] sites) { - Wrappers.SiteService.createSitesRequest inValue = new Wrappers.SiteService.createSitesRequest(); - inValue.sites = sites; - Wrappers.SiteService.createSitesResponse retVal = ((Google.Api.Ads.AdManager.v202311.SiteServiceInterface)(this)).createSites(inValue); - return retVal.rval; - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202311.SiteServiceInterface.createSitesAsync(Wrappers.SiteService.createSitesRequest request) { - return base.Channel.createSitesAsync(request); - } - - public virtual System.Threading.Tasks.Task createSitesAsync(Google.Api.Ads.AdManager.v202311.Site[] sites) { - Wrappers.SiteService.createSitesRequest inValue = new Wrappers.SiteService.createSitesRequest(); - inValue.sites = sites; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202311.SiteServiceInterface)(this)).createSitesAsync(inValue)).Result.rval); - } - - /// Gets a SitePage of Site objects that - /// satisfy the given Statement#query. The following - /// fields are supported for filtering: - /// - /// - /// - /// - /// - /// - ///
PQL - /// Property Object Property
id Site#id
url Site#url
childNetworkCode Site#childNetworkCode
approvalStatus Site#approvalStatus
active Site#active
lastModifiedApprovalStatusDateTime
Restriction: The lastModifiedApprovalStatusDateTime - /// PQL property can only be used in a top-level expression scoping the - /// filterStatement to Sites whose was - /// modified on or after a specified date and time. (e.x. "WHERE - /// lastModifiedApprovalStatusDateTime >= '2022-01-01T00:00:00'"). - ///
- public virtual Google.Api.Ads.AdManager.v202311.SitePage getSitesByStatement(Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.getSitesByStatement(filterStatement); - } - - public virtual System.Threading.Tasks.Task getSitesByStatementAsync(Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.getSitesByStatementAsync(filterStatement); - } - /// Performs actions on Site objects that match the given Statement#query. + /// Specifies the address of the company. This attribute is optional and has a + /// maximum length of 1024 characters. /// - public virtual Google.Api.Ads.AdManager.v202311.UpdateResult performSiteAction(Google.Api.Ads.AdManager.v202311.SiteAction siteAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.performSiteAction(siteAction, filterStatement); - } - - public virtual System.Threading.Tasks.Task performSiteActionAsync(Google.Api.Ads.AdManager.v202311.SiteAction siteAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.performSiteActionAsync(siteAction, filterStatement); - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.SiteService.updateSitesResponse Google.Api.Ads.AdManager.v202311.SiteServiceInterface.updateSites(Wrappers.SiteService.updateSitesRequest request) { - return base.Channel.updateSites(request); + [System.Xml.Serialization.XmlElementAttribute(Order = 3)] + public string address { + get { + return this.addressField; + } + set { + this.addressField = value; + } } - /// Updates the specified Site objects.

The Site#childNetworkCode can be updated in order - /// to 1) change the child network, 2) move a site from O&O to represented, or - /// 3) move a site from represented to O&O.

+ /// Specifies the email of the company. This attribute is optional and has a maximum + /// length of 128 characters. /// - public virtual Google.Api.Ads.AdManager.v202311.Site[] updateSites(Google.Api.Ads.AdManager.v202311.Site[] sites) { - Wrappers.SiteService.updateSitesRequest inValue = new Wrappers.SiteService.updateSitesRequest(); - inValue.sites = sites; - Wrappers.SiteService.updateSitesResponse retVal = ((Google.Api.Ads.AdManager.v202311.SiteServiceInterface)(this)).updateSites(inValue); - return retVal.rval; - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202311.SiteServiceInterface.updateSitesAsync(Wrappers.SiteService.updateSitesRequest request) { - return base.Channel.updateSitesAsync(request); - } - - public virtual System.Threading.Tasks.Task updateSitesAsync(Google.Api.Ads.AdManager.v202311.Site[] sites) { - Wrappers.SiteService.updateSitesRequest inValue = new Wrappers.SiteService.updateSitesRequest(); - inValue.sites = sites; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202311.SiteServiceInterface)(this)).updateSitesAsync(inValue)).Result.rval); - } - } - namespace Wrappers.YieldGroupService - { - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "createYieldGroups", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class createYieldGroupsRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("yieldGroups")] - public Google.Api.Ads.AdManager.v202311.YieldGroup[] yieldGroups; - - /// Creates a new instance of the - /// class. - public createYieldGroupsRequest() { + [System.Xml.Serialization.XmlElementAttribute(Order = 4)] + public string email { + get { + return this.emailField; } - - /// Creates a new instance of the - /// class. - public createYieldGroupsRequest(Google.Api.Ads.AdManager.v202311.YieldGroup[] yieldGroups) { - this.yieldGroups = yieldGroups; + set { + this.emailField = value; } } - - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "createYieldGroupsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class createYieldGroupsResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v202311.YieldGroup[] rval; - - /// Creates a new instance of the - /// class. - public createYieldGroupsResponse() { + /// Specifies the fax phone number of the company. This attribute is optional and + /// has a maximum length of 63 characters. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 5)] + public string faxPhone { + get { + return this.faxPhoneField; } - - /// Creates a new instance of the - /// class. - public createYieldGroupsResponse(Google.Api.Ads.AdManager.v202311.YieldGroup[] rval) { - this.rval = rval; + set { + this.faxPhoneField = value; } } - - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "getYieldPartners", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class getYieldPartnersRequest { - /// Creates a new instance of the - /// class. - public getYieldPartnersRequest() { + /// Specifies the primary phone number of the company. This attribute is optional + /// and has a maximum length of 63 characters. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 6)] + public string primaryPhone { + get { + return this.primaryPhoneField; + } + set { + this.primaryPhoneField = value; } } - - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "getYieldPartnersResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class getYieldPartnersResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v202311.YieldPartner[] rval; - - /// Creates a new instance of the - /// class. - public getYieldPartnersResponse() { + /// Specifies the external ID of the company. This attribute is optional and has a + /// maximum length of 255 characters. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 7)] + public string externalId { + get { + return this.externalIdField; } - - /// Creates a new instance of the - /// class. - public getYieldPartnersResponse(Google.Api.Ads.AdManager.v202311.YieldPartner[] rval) { - this.rval = rval; + set { + this.externalIdField = value; } } - - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "updateYieldGroups", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class updateYieldGroupsRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("yieldGroups")] - public Google.Api.Ads.AdManager.v202311.YieldGroup[] yieldGroups; - - /// Creates a new instance of the - /// class. - public updateYieldGroupsRequest() { + /// Specifies the comment of the company. This attribute is optional and has a + /// maximum length of 1024 characters. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 8)] + public string comment { + get { + return this.commentField; } - - /// Creates a new instance of the - /// class. - public updateYieldGroupsRequest(Google.Api.Ads.AdManager.v202311.YieldGroup[] yieldGroups) { - this.yieldGroups = yieldGroups; + set { + this.commentField = value; } } - - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "updateYieldGroupsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class updateYieldGroupsResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v202311.YieldGroup[] rval; - - /// Creates a new instance of the - /// class. - public updateYieldGroupsResponse() { + /// Specifies the company's credit status. This attribute is optional and defaults + /// to CreditStatus#ACTIVE when basic credit status settings are + /// enabled, and CreditStatus#ON_HOLD when advanced credit status + /// settings are enabled. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 9)] + public CompanyCreditStatus creditStatus { + get { + return this.creditStatusField; } - - /// Creates a new instance of the - /// class. - public updateYieldGroupsResponse(Google.Api.Ads.AdManager.v202311.YieldGroup[] rval) { - this.rval = rval; + set { + this.creditStatusField = value; + this.creditStatusSpecified = true; } } - } - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class YieldParameter { - private string nameField; - - private bool isOptionalField; - - private bool isOptionalFieldSpecified; - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public string name { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool creditStatusSpecified { get { - return this.nameField; + return this.creditStatusFieldSpecified; } set { - this.nameField = value; + this.creditStatusFieldSpecified = value; } } - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public bool isOptional { + /// The set of labels applied to this company. + /// + [System.Xml.Serialization.XmlElementAttribute("appliedLabels", Order = 10)] + public AppliedLabel[] appliedLabels { get { - return this.isOptionalField; + return this.appliedLabelsField; } set { - this.isOptionalField = value; - this.isOptionalSpecified = true; + this.appliedLabelsField = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool isOptionalSpecified { + /// The ID of the Contact who is acting as the primary contact + /// for this company. This attribute is optional. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 11)] + public long primaryContactId { get { - return this.isOptionalFieldSpecified; + return this.primaryContactIdField; } set { - this.isOptionalFieldSpecified = value; + this.primaryContactIdField = value; + this.primaryContactIdSpecified = true; } } - } - - - /// This represents an entry in a map with a key of type YieldParameter and value of - /// type String. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class YieldParameter_StringMapEntry { - private YieldParameter keyField; - - private string valueField; - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public YieldParameter key { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool primaryContactIdSpecified { get { - return this.keyField; + return this.primaryContactIdFieldSpecified; } set { - this.keyField = value; + this.primaryContactIdFieldSpecified = value; } } - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public string value { + /// The IDs of all teams that this company is on directly. + /// + [System.Xml.Serialization.XmlElementAttribute("appliedTeamIds", Order = 12)] + public long[] appliedTeamIds { get { - return this.valueField; + return this.appliedTeamIdsField; } set { - this.valueField = value; + this.appliedTeamIdsField = value; } } - } - - - [System.Xml.Serialization.XmlIncludeAttribute(typeof(SdkMediationSettings))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(OpenBiddingSetting))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public abstract partial class AbstractDisplaySettings { - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class SdkMediationSettings : AbstractDisplaySettings { - private YieldParameter_StringMapEntry[] parametersField; - - private YieldIntegrationType yieldIntegrationTypeField; - - private bool yieldIntegrationTypeFieldSpecified; - - private YieldPlatform platformField; - - private bool platformFieldSpecified; - [System.Xml.Serialization.XmlElementAttribute("parameters", Order = 0)] - public YieldParameter_StringMapEntry[] parameters { + /// Specifies the ID of the Google-recognized canonicalized form of this company. + /// This attribute is optional. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 13)] + public int thirdPartyCompanyId { get { - return this.parametersField; + return this.thirdPartyCompanyIdField; } set { - this.parametersField = value; + this.thirdPartyCompanyIdField = value; + this.thirdPartyCompanyIdSpecified = true; } } - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public YieldIntegrationType yieldIntegrationType { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool thirdPartyCompanyIdSpecified { get { - return this.yieldIntegrationTypeField; + return this.thirdPartyCompanyIdFieldSpecified; } set { - this.yieldIntegrationTypeField = value; - this.yieldIntegrationTypeSpecified = true; + this.thirdPartyCompanyIdFieldSpecified = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool yieldIntegrationTypeSpecified { + /// The date and time this company was last modified. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 14)] + public DateTime lastModifiedDateTime { get { - return this.yieldIntegrationTypeFieldSpecified; + return this.lastModifiedDateTimeField; } set { - this.yieldIntegrationTypeFieldSpecified = value; + this.lastModifiedDateTimeField = value; } } - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public YieldPlatform platform { + /// Info required for when Company Type is CHILD_PUBLISHER. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 15)] + public ChildPublisher childPublisher { get { - return this.platformField; + return this.childPublisherField; } set { - this.platformField = value; - this.platformSpecified = true; + this.childPublisherField = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool platformSpecified { + /// Info required for when Company Type is VIEWABILITY_PROVIDER. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 16)] + public ViewabilityProvider viewabilityProvider { get { - return this.platformFieldSpecified; + return this.viewabilityProviderField; } set { - this.platformFieldSpecified = value; + this.viewabilityProviderField = value; } } } + /// The type of the company. Once a company is created, it is not possible to change + /// its type. + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum YieldIntegrationType { - UNKNOWN = 0, - CUSTOM_EVENT = 1, - SDK = 2, - OPEN_BIDDING = 3, - NETWORK_BIDDING = 4, + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "Company.Type", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum CompanyType { + /// The publisher's own advertiser. When no outside advertiser buys its inventory, + /// the publisher may run its own advertising campaigns. + /// + HOUSE_ADVERTISER = 0, + /// The publisher's own agency. + /// + HOUSE_AGENCY = 1, + /// A business entity that buys publisher inventory to run advertising campaigns. An + /// advertiser is optionally associated with one or more agencies. + /// + ADVERTISER = 2, + /// A business entity that offers services, such as advertising creation, placement, + /// and management, to advertisers. + /// + AGENCY = 3, + /// A company representing multiple advertisers and agencies. + /// + AD_NETWORK = 4, + /// A company representing a partner. + /// + PARTNER = 8, + /// A company representing a child network. + /// + CHILD_PUBLISHER = 10, + /// A company representing a viewability provider. + /// + VIEWABILITY_PROVIDER = 9, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 7, } + /// Specifies the credit-worthiness of the company for which the publisher runs an + /// order. By doing so, the publisher can control the running of campaigns for the + /// company. A publisher can choose between Basic and Advanced Credit Status + /// settings. This feature needs to be enabled in the Ad Manager web site. Also the + /// kind of setting you need - Basic or Advanced must be configured. If Basic is + /// enabled then, the values allowed are ACTIVE and . If + /// Advanced is chosen, then all values are allowed. Choosing an Advanced setting + /// when only the Basic feature has been enabled, or using the Basic setting without + /// turning the feature on will result in an error. + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum YieldPlatform { - UNKNOWN = 0, - ANDROID = 1, - IOS = 2, + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "Company.CreditStatus", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum CompanyCreditStatus { + /// When the credit status is active, all line items in all orders belonging to the + /// company will be served. This is a Basic as well as an Advanced Credit Status + /// setting. + /// + ACTIVE = 0, + /// When the credit status is on hold, the publisher cannot activate new line items + /// of the company. However, line items that were activated before the credit status + /// change will remain active. You can still create orders and line items for the + /// company. This is an Advanced Credit Status setting. + /// + ON_HOLD = 1, + /// When the credit status is credit stop, the publisher cannot activate new line + /// items of the company. However, line items that were activated before the credit + /// status change will remain active. You cannot create any new orders or line items + /// for the company. This is an Advanced Credit Status setting. + /// + CREDIT_STOP = 2, + /// When the credit status is inactive, the publisher cannot activate new line items + /// of the company. However, line items that were activated before the credit status + /// change will remain active. You cannot create any new orders or line items for + /// the company. It is used to mark companies with which business is to be + /// discontinued. Such companies are not listed in Ad Manager web site. This is a + /// Basic as well as an Advanced Credit Status setting. + /// + INACTIVE = 3, + /// When the credit status of a company is marked blocked, then all active line + /// items belonging to the company will stop serving with immediate effect. You + /// cannot active new line items of the company nor can you create any new orders or + /// line items belonging to the company. This is an Advanced Credit Status setting. + /// + BLOCKED = 4, } - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class OpenBiddingSetting : AbstractDisplaySettings { - private YieldIntegrationType yieldIntegrationTypeField; + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", ConfigurationName = "Google.Api.Ads.AdManager.v202411.CompanyServiceInterface")] + public interface CompanyServiceInterface + { + // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Wrappers.CompanyService.createCompaniesResponse createCompanies(Wrappers.CompanyService.createCompaniesRequest request); - private bool yieldIntegrationTypeFieldSpecified; + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + System.Threading.Tasks.Task createCompaniesAsync(Wrappers.CompanyService.createCompaniesRequest request); - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public YieldIntegrationType yieldIntegrationType { - get { - return this.yieldIntegrationTypeField; - } - set { - this.yieldIntegrationTypeField = value; - this.yieldIntegrationTypeSpecified = true; - } - } + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v202411.CompanyPage getCompaniesByStatement(Google.Api.Ads.AdManager.v202411.Statement filterStatement); - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool yieldIntegrationTypeSpecified { - get { - return this.yieldIntegrationTypeFieldSpecified; - } - set { - this.yieldIntegrationTypeFieldSpecified = value; - } - } + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task getCompaniesByStatementAsync(Google.Api.Ads.AdManager.v202411.Statement filterStatement); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v202411.UpdateResult performCompanyAction(Google.Api.Ads.AdManager.v202411.CompanyAction companyAction, Google.Api.Ads.AdManager.v202411.Statement statement); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task performCompanyActionAsync(Google.Api.Ads.AdManager.v202411.CompanyAction companyAction, Google.Api.Ads.AdManager.v202411.Statement statement); + + // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Wrappers.CompanyService.updateCompaniesResponse updateCompanies(Wrappers.CompanyService.updateCompaniesRequest request); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + System.Threading.Tasks.Task updateCompaniesAsync(Wrappers.CompanyService.updateCompaniesRequest request); } + /// Captures a page of Company objects. + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class YieldAdSource { - private long adSourceIdField; - - private bool adSourceIdFieldSpecified; - - private long companyIdField; - - private bool companyIdFieldSpecified; - - private AbstractDisplaySettings displaySettingsField; - - private YieldEntityStatus statusField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class CompanyPage { + private int totalResultSetSizeField; - private bool statusFieldSpecified; + private bool totalResultSetSizeFieldSpecified; - private Money manualCpmField; + private int startIndexField; - private bool overrideDynamicCpmField; + private bool startIndexFieldSpecified; - private bool overrideDynamicCpmFieldSpecified; + private Company[] resultsField; + /// The size of the total result set to which this page belongs. + /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public long adSourceId { + public int totalResultSetSize { get { - return this.adSourceIdField; + return this.totalResultSetSizeField; } set { - this.adSourceIdField = value; - this.adSourceIdSpecified = true; + this.totalResultSetSizeField = value; + this.totalResultSetSizeSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool adSourceIdSpecified { + public bool totalResultSetSizeSpecified { get { - return this.adSourceIdFieldSpecified; + return this.totalResultSetSizeFieldSpecified; } set { - this.adSourceIdFieldSpecified = value; + this.totalResultSetSizeFieldSpecified = value; } } + /// The absolute index in the total result set on which this page begins. + /// [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public long companyId { + public int startIndex { get { - return this.companyIdField; + return this.startIndexField; } set { - this.companyIdField = value; - this.companyIdSpecified = true; + this.startIndexField = value; + this.startIndexSpecified = true; } } - /// true, if a value is specified for true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool companyIdSpecified { + public bool startIndexSpecified { get { - return this.companyIdFieldSpecified; + return this.startIndexFieldSpecified; } set { - this.companyIdFieldSpecified = value; + this.startIndexFieldSpecified = value; } } - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public AbstractDisplaySettings displaySettings { + /// The collection of companies contained within this page. + /// + [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] + public Company[] results { get { - return this.displaySettingsField; + return this.resultsField; } set { - this.displaySettingsField = value; + this.resultsField = value; } } + } - [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public YieldEntityStatus status { + + /// Represents the actions that can be performed on Company objects. + /// + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ResendInvitationAction))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(EndAgreementAction))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ReInviteAction))] + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public abstract partial class CompanyAction { + } + + + /// The action used by the parent network to resend an invitation email with the + /// same proposal to an expired child publisher. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ResendInvitationAction : CompanyAction { + } + + + /// The action used by the parent network to withdraw from being the MCM parent for + /// a child. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class EndAgreementAction : CompanyAction { + } + + + /// The action used by the parent network to send a new invitation with a + /// potentially updated proposal to a rejected or withdrawn child publisher. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ReInviteAction : CompanyAction { + private DelegationType proposedDelegationTypeField; + + private bool proposedDelegationTypeFieldSpecified; + + private long proposedRevenueShareMillipercentField; + + private bool proposedRevenueShareMillipercentFieldSpecified; + + private string proposedEmailField; + + /// The type of delegation the parent has proposed to have over the child, pending + /// approval of the child publisher. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public DelegationType proposedDelegationType { get { - return this.statusField; + return this.proposedDelegationTypeField; } set { - this.statusField = value; - this.statusSpecified = true; + this.proposedDelegationTypeField = value; + this.proposedDelegationTypeSpecified = true; } } - /// true, if a value is specified for , - /// false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool statusSpecified { + public bool proposedDelegationTypeSpecified { get { - return this.statusFieldSpecified; + return this.proposedDelegationTypeFieldSpecified; } set { - this.statusFieldSpecified = value; + this.proposedDelegationTypeFieldSpecified = value; } } - [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public Money manualCpm { + /// The proposed revenue share that the parent publisher will receive in + /// millipercentage (values 0 to 100000) for Manage Account proposals. For example, + /// 15% is 15000 millipercent.

This field is ignored for Manage Inventory + /// proposals.

+ ///
+ [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public long proposedRevenueShareMillipercent { get { - return this.manualCpmField; + return this.proposedRevenueShareMillipercentField; } set { - this.manualCpmField = value; + this.proposedRevenueShareMillipercentField = value; + this.proposedRevenueShareMillipercentSpecified = true; } } - [System.Xml.Serialization.XmlElementAttribute(Order = 5)] - public bool overrideDynamicCpm { + /// true, if a value is specified for , false otherwise. + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool proposedRevenueShareMillipercentSpecified { get { - return this.overrideDynamicCpmField; + return this.proposedRevenueShareMillipercentFieldSpecified; } set { - this.overrideDynamicCpmField = value; - this.overrideDynamicCpmSpecified = true; + this.proposedRevenueShareMillipercentFieldSpecified = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool overrideDynamicCpmSpecified { + /// The updated email of the child publisher.

This field is optional. If set, the + /// scoping statement many not evaluate to more than one rejected or withdrawn child + /// publisher.

+ ///
+ [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public string proposedEmail { get { - return this.overrideDynamicCpmFieldSpecified; + return this.proposedEmailField; } set { - this.overrideDynamicCpmFieldSpecified = value; + this.proposedEmailField = value; } } } - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum YieldEntityStatus { - UNKNOWN = 0, - EXPERIMENTING = 4, - ACTIVE = 1, - INACTIVE = 2, - DELETED = 3, + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + public interface CompanyServiceInterfaceChannel : Google.Api.Ads.AdManager.v202411.CompanyServiceInterface, System.ServiceModel.IClientChannel + { } - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] + /// Provides operations for creating, updating and retrieving Company objects. + /// [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class YieldGroup { - private long yieldGroupIdField; - - private bool yieldGroupIdFieldSpecified; + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + public partial class CompanyService : AdManagerSoapClient, ICompanyService { + /// Creates a new instance of the class. + /// + public CompanyService() { + } - private string yieldGroupNameField; + /// Creates a new instance of the class. + /// + public CompanyService(string endpointConfigurationName) + : base(endpointConfigurationName) { + } - private YieldEntityStatus exchangeStatusField; + /// Creates a new instance of the class. + /// + public CompanyService(string endpointConfigurationName, string remoteAddress) + : base(endpointConfigurationName, remoteAddress) { + } - private bool exchangeStatusFieldSpecified; + /// Creates a new instance of the class. + /// + public CompanyService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) + : base(endpointConfigurationName, remoteAddress) { + } - private YieldFormat formatField; + /// Creates a new instance of the class. + /// + public CompanyService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) + : base(binding, remoteAddress) { + } - private bool formatFieldSpecified; + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + Wrappers.CompanyService.createCompaniesResponse Google.Api.Ads.AdManager.v202411.CompanyServiceInterface.createCompanies(Wrappers.CompanyService.createCompaniesRequest request) { + return base.Channel.createCompanies(request); + } - private YieldEnvironmentType environmentTypeField; + /// Creates new Company objects. + /// + public virtual Google.Api.Ads.AdManager.v202411.Company[] createCompanies(Google.Api.Ads.AdManager.v202411.Company[] companies) { + Wrappers.CompanyService.createCompaniesRequest inValue = new Wrappers.CompanyService.createCompaniesRequest(); + inValue.companies = companies; + Wrappers.CompanyService.createCompaniesResponse retVal = ((Google.Api.Ads.AdManager.v202411.CompanyServiceInterface)(this)).createCompanies(inValue); + return retVal.rval; + } - private bool environmentTypeFieldSpecified; + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202411.CompanyServiceInterface.createCompaniesAsync(Wrappers.CompanyService.createCompaniesRequest request) { + return base.Channel.createCompaniesAsync(request); + } - private Targeting targetingField; + public virtual System.Threading.Tasks.Task createCompaniesAsync(Google.Api.Ads.AdManager.v202411.Company[] companies) { + Wrappers.CompanyService.createCompaniesRequest inValue = new Wrappers.CompanyService.createCompaniesRequest(); + inValue.companies = companies; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202411.CompanyServiceInterface)(this)).createCompaniesAsync(inValue)).Result.rval); + } - private YieldAdSource[] adSourcesField; + /// Gets a CompanyPage of Company + /// objects that satisfy the given Statement#query. The following + /// fields are supported for filtering: + /// + /// + /// + /// + ///
PQL + /// Property Object Property
id Company#id
name Company#name
type Company#type
lastModifiedDateTime Company#lastModifiedDateTime
+ ///
+ public virtual Google.Api.Ads.AdManager.v202411.CompanyPage getCompaniesByStatement(Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.getCompaniesByStatement(filterStatement); + } - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public long yieldGroupId { - get { - return this.yieldGroupIdField; - } - set { - this.yieldGroupIdField = value; - this.yieldGroupIdSpecified = true; - } + public virtual System.Threading.Tasks.Task getCompaniesByStatementAsync(Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.getCompaniesByStatementAsync(filterStatement); } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool yieldGroupIdSpecified { - get { - return this.yieldGroupIdFieldSpecified; - } - set { - this.yieldGroupIdFieldSpecified = value; - } + /// Performs actions on Company objects that match the given + /// Statement. + /// + public virtual Google.Api.Ads.AdManager.v202411.UpdateResult performCompanyAction(Google.Api.Ads.AdManager.v202411.CompanyAction companyAction, Google.Api.Ads.AdManager.v202411.Statement statement) { + return base.Channel.performCompanyAction(companyAction, statement); } - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public string yieldGroupName { - get { - return this.yieldGroupNameField; - } - set { - this.yieldGroupNameField = value; - } + public virtual System.Threading.Tasks.Task performCompanyActionAsync(Google.Api.Ads.AdManager.v202411.CompanyAction companyAction, Google.Api.Ads.AdManager.v202411.Statement statement) { + return base.Channel.performCompanyActionAsync(companyAction, statement); } - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public YieldEntityStatus exchangeStatus { - get { - return this.exchangeStatusField; - } - set { - this.exchangeStatusField = value; - this.exchangeStatusSpecified = true; - } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + Wrappers.CompanyService.updateCompaniesResponse Google.Api.Ads.AdManager.v202411.CompanyServiceInterface.updateCompanies(Wrappers.CompanyService.updateCompaniesRequest request) { + return base.Channel.updateCompanies(request); } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool exchangeStatusSpecified { - get { - return this.exchangeStatusFieldSpecified; - } - set { - this.exchangeStatusFieldSpecified = value; - } + /// Updates the specified Company objects. + /// + public virtual Google.Api.Ads.AdManager.v202411.Company[] updateCompanies(Google.Api.Ads.AdManager.v202411.Company[] companies) { + Wrappers.CompanyService.updateCompaniesRequest inValue = new Wrappers.CompanyService.updateCompaniesRequest(); + inValue.companies = companies; + Wrappers.CompanyService.updateCompaniesResponse retVal = ((Google.Api.Ads.AdManager.v202411.CompanyServiceInterface)(this)).updateCompanies(inValue); + return retVal.rval; } - [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public YieldFormat format { - get { - return this.formatField; - } - set { - this.formatField = value; - this.formatSpecified = true; - } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202411.CompanyServiceInterface.updateCompaniesAsync(Wrappers.CompanyService.updateCompaniesRequest request) { + return base.Channel.updateCompaniesAsync(request); } - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool formatSpecified { - get { - return this.formatFieldSpecified; - } - set { - this.formatFieldSpecified = value; - } + public virtual System.Threading.Tasks.Task updateCompaniesAsync(Google.Api.Ads.AdManager.v202411.Company[] companies) { + Wrappers.CompanyService.updateCompaniesRequest inValue = new Wrappers.CompanyService.updateCompaniesRequest(); + inValue.companies = companies; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202411.CompanyServiceInterface)(this)).updateCompaniesAsync(inValue)).Result.rval); } + } + namespace Wrappers.ContentBundleService + { + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "createContentBundles", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class createContentBundlesRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("contentBundles")] + public Google.Api.Ads.AdManager.v202411.ContentBundle[] contentBundles; - [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public YieldEnvironmentType environmentType { - get { - return this.environmentTypeField; + /// Creates a new instance of the class. + public createContentBundlesRequest() { } - set { - this.environmentTypeField = value; - this.environmentTypeSpecified = true; + + /// Creates a new instance of the class. + public createContentBundlesRequest(Google.Api.Ads.AdManager.v202411.ContentBundle[] contentBundles) { + this.contentBundles = contentBundles; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool environmentTypeSpecified { - get { - return this.environmentTypeFieldSpecified; + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "createContentBundlesResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class createContentBundlesResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("rval")] + public Google.Api.Ads.AdManager.v202411.ContentBundle[] rval; + + /// Creates a new instance of the class. + public createContentBundlesResponse() { } - set { - this.environmentTypeFieldSpecified = value; + + /// Creates a new instance of the class. + public createContentBundlesResponse(Google.Api.Ads.AdManager.v202411.ContentBundle[] rval) { + this.rval = rval; } } - [System.Xml.Serialization.XmlElementAttribute(Order = 5)] - public Targeting targeting { - get { - return this.targetingField; + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "updateContentBundles", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class updateContentBundlesRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("contentBundles")] + public Google.Api.Ads.AdManager.v202411.ContentBundle[] contentBundles; + + /// Creates a new instance of the class. + public updateContentBundlesRequest() { } - set { - this.targetingField = value; + + /// Creates a new instance of the class. + public updateContentBundlesRequest(Google.Api.Ads.AdManager.v202411.ContentBundle[] contentBundles) { + this.contentBundles = contentBundles; } } - [System.Xml.Serialization.XmlElementAttribute("adSources", Order = 6)] - public YieldAdSource[] adSources { - get { - return this.adSourcesField; + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "updateContentBundlesResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class updateContentBundlesResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("rval")] + public Google.Api.Ads.AdManager.v202411.ContentBundle[] rval; + + /// Creates a new instance of the class. + public updateContentBundlesResponse() { } - set { - this.adSourcesField = value; + + /// Creates a new instance of the class. + public updateContentBundlesResponse(Google.Api.Ads.AdManager.v202411.ContentBundle[] rval) { + this.rval = rval; } } } - - + /// A ContentBundle is a grouping of individual Content. A ContentBundle is defined as including + /// the Content that match certain filter rules, along with the option + /// to explicitly include or exclude certain Content IDs. + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum YieldFormat { - UNKNOWN = 0, - BANNER = 1, - INTERSTITIAL = 2, - NATIVE = 3, - VIDEO_VAST = 4, - REWARDED = 5, - REWARDED_INTERSTITIAL = 6, - APP_OPEN = 7, - } + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ContentBundle { + private long idField; + private bool idFieldSpecified; - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum YieldEnvironmentType { - UNKNOWN = 0, - MOBILE = 1, - VIDEO_VAST = 2, - WEB = 3, - } + private string nameField; + private ContentBundleStatus statusField; - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class YieldError : ApiError { - private YieldErrorReason reasonField; + private bool statusFieldSpecified; - private bool reasonFieldSpecified; + private DateTime lastModifiedDateTimeField; + /// ID that uniquely identifies the ContentBundle. This attribute is + /// read-only and is assigned by Google when a content bundle is created. + /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public YieldErrorReason reason { + public long id { get { - return this.reasonField; + return this.idField; } set { - this.reasonField = value; - this.reasonSpecified = true; + this.idField = value; + this.idSpecified = true; } } - /// true, if a value is specified for , + /// true, if a value is specified for , /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { + public bool idSpecified { get { - return this.reasonFieldSpecified; + return this.idFieldSpecified; } set { - this.reasonFieldSpecified = value; + this.idFieldSpecified = value; } } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "YieldError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum YieldErrorReason { - INVALID_BACKEND_DATA = 0, - INVALID_REQUEST_DATA = 1, - AD_SOURCE_COMPANY_CHANGE = 2, - UNSUPPORTED_COMPANY_INTEGRATION_TYPE = 11, - UNSUPPORTED_BUYER_SETTINGS = 15, - DEPRECATED_AD_NETWORK_ADAPTER = 3, - TOO_MANY_UPDATES = 4, - DUPLICATE_YIELD_PARTNER = 5, - DUPLICATE_HEADER_BIDDER = 12, - INTERNAL_ERROR = 6, - INVALID_EXCHANGE_STATUS = 7, - INVALID_AD_SOURCE_STATUS = 13, - INVALID_SDK_ADAPTER_KEY_NAME = 14, - INVENTORY_UNIT_MAPPING_NOT_FOUND = 8, - NO_COMPANIES_PERMISSION = 9, - INVENTORY_UNIT_MAPPING_INVALID_PARAMETER = 16, - UNSUPPORTED_FORMAT_AND_ENVIRONMENT = 17, - UNKNOWN = 10, - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class IdError : ApiError { - private IdErrorReason reasonField; - private bool reasonFieldSpecified; + /// The name of the ContentBundle. This attribute is required and has a + /// maximum length of 255 characters. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public string name { + get { + return this.nameField; + } + set { + this.nameField = value; + } + } - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public IdErrorReason reason { + /// The ContentBundleStatus of the + /// ContentBundle. This attribute is read-only and defaults to ContentBundleStatus#INACTIVE. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public ContentBundleStatus status { get { - return this.reasonField; + return this.statusField; } set { - this.reasonField = value; - this.reasonSpecified = true; + this.statusField = value; + this.statusSpecified = true; } } - /// true, if a value is specified for , + /// true, if a value is specified for , /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { + public bool statusSpecified { get { - return this.reasonFieldSpecified; + return this.statusFieldSpecified; } set { - this.reasonFieldSpecified = value; + this.statusFieldSpecified = value; + } + } + + /// The date and time at which this content bundle was last modified. New content + /// that matches this bundle will not update this field. This attribute is + /// read-only. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 3)] + public DateTime lastModifiedDateTime { + get { + return this.lastModifiedDateTimeField; + } + set { + this.lastModifiedDateTimeField = value; } } } + /// Status for ContentBundle objects. + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "IdError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum IdErrorReason { - NOT_FOUND = 0, + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum ContentBundleStatus { + /// The object is active and stats are collected. + /// + ACTIVE = 0, + /// The object is no longer active and no stats collected. + /// + INACTIVE = 1, + /// The object has been archived. + /// + ARCHIVED = 2, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 3, } + /// Errors associated with the incorrect creation of a Condition. + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class DistinctError : ApiError { - private DistinctErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ContentFilterError : ApiError { + private ContentFilterErrorReason reasonField; private bool reasonFieldSpecified; [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public DistinctErrorReason reason { + public ContentFilterErrorReason reason { get { return this.reasonField; } @@ -63787,71 +62453,79 @@ public bool reasonSpecified { } + /// The reasons for the ContentFilterError. + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "DistinctError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum DistinctErrorReason { - DUPLICATE_ELEMENT = 0, - DUPLICATE_TYPE = 1, + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ContentFilterError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum ContentFilterErrorReason { + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 0, + WRONG_NUMBER_OF_ARGUMENTS = 1, + ANY_FILTER_NOT_SUPPORTED = 2, } [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", ConfigurationName = "Google.Api.Ads.AdManager.v202311.YieldGroupServiceInterface")] - public interface YieldGroupServiceInterface + [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", ConfigurationName = "Google.Api.Ads.AdManager.v202411.ContentBundleServiceInterface")] + public interface ContentBundleServiceInterface { // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Wrappers.YieldGroupService.createYieldGroupsResponse createYieldGroups(Wrappers.YieldGroupService.createYieldGroupsRequest request); + Wrappers.ContentBundleService.createContentBundlesResponse createContentBundles(Wrappers.ContentBundleService.createContentBundlesRequest request); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task createYieldGroupsAsync(Wrappers.YieldGroupService.createYieldGroupsRequest request); + System.Threading.Tasks.Task createContentBundlesAsync(Wrappers.ContentBundleService.createContentBundlesRequest request); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v202311.YieldGroupPage getYieldGroupsByStatement(Google.Api.Ads.AdManager.v202311.Statement statement); + Google.Api.Ads.AdManager.v202411.ContentBundlePage getContentBundlesByStatement(Google.Api.Ads.AdManager.v202411.Statement filterStatement); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getYieldGroupsByStatementAsync(Google.Api.Ads.AdManager.v202311.Statement statement); + System.Threading.Tasks.Task getContentBundlesByStatementAsync(Google.Api.Ads.AdManager.v202411.Statement filterStatement); - // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Wrappers.YieldGroupService.getYieldPartnersResponse getYieldPartners(Wrappers.YieldGroupService.getYieldPartnersRequest request); + Google.Api.Ads.AdManager.v202411.UpdateResult performContentBundleAction(Google.Api.Ads.AdManager.v202411.ContentBundleAction contentBundleAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task getYieldPartnersAsync(Wrappers.YieldGroupService.getYieldPartnersRequest request); + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task performContentBundleActionAsync(Google.Api.Ads.AdManager.v202411.ContentBundleAction contentBundleAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement); // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Wrappers.YieldGroupService.updateYieldGroupsResponse updateYieldGroups(Wrappers.YieldGroupService.updateYieldGroupsRequest request); + Wrappers.ContentBundleService.updateContentBundlesResponse updateContentBundles(Wrappers.ContentBundleService.updateContentBundlesRequest request); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task updateYieldGroupsAsync(Wrappers.YieldGroupService.updateYieldGroupsRequest request); + System.Threading.Tasks.Task updateContentBundlesAsync(Wrappers.ContentBundleService.updateContentBundlesRequest request); } + /// Captures a page of ContentBundle objects. + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class YieldGroupPage { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ContentBundlePage { private int totalResultSetSizeField; private bool totalResultSetSizeFieldSpecified; @@ -63860,8 +62534,10 @@ public partial class YieldGroupPage { private bool startIndexFieldSpecified; - private YieldGroup[] resultsField; + private ContentBundle[] resultsField; + /// The size of the total result set to which this page belongs. + /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] public int totalResultSetSize { get { @@ -63873,571 +62549,686 @@ public int totalResultSetSize { } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool totalResultSetSizeSpecified { - get { - return this.totalResultSetSizeFieldSpecified; - } - set { - this.totalResultSetSizeFieldSpecified = value; - } + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool totalResultSetSizeSpecified { + get { + return this.totalResultSetSizeFieldSpecified; + } + set { + this.totalResultSetSizeFieldSpecified = value; + } + } + + /// The absolute index in the total result set on which this page begins. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public int startIndex { + get { + return this.startIndexField; + } + set { + this.startIndexField = value; + this.startIndexSpecified = true; + } + } + + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool startIndexSpecified { + get { + return this.startIndexFieldSpecified; + } + set { + this.startIndexFieldSpecified = value; + } + } + + /// The collection of content bundles contained within this page. + /// + [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] + public ContentBundle[] results { + get { + return this.resultsField; + } + set { + this.resultsField = value; + } + } + } + + + /// Represents the actions that can be performed on ContentBundle objects. + /// + [System.Xml.Serialization.XmlIncludeAttribute(typeof(DeactivateContentBundles))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ActivateContentBundles))] + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public abstract partial class ContentBundleAction { + } + + + /// The action used for deactivating ContentBundle + /// objects. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class DeactivateContentBundles : ContentBundleAction { + } + + + /// The action used for activating ContentBundle + /// objects. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ActivateContentBundles : ContentBundleAction { + } + + + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + public interface ContentBundleServiceInterfaceChannel : Google.Api.Ads.AdManager.v202411.ContentBundleServiceInterface, System.ServiceModel.IClientChannel + { + } + + + /// Provides methods for creating, updating and retrieving ContentBundle objects.

A ContentBundle + /// is a grouping of Content that match filter rules as well + /// as taking into account explicitly included or excluded Content.

+ ///
+ [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + public partial class ContentBundleService : AdManagerSoapClient, IContentBundleService { + /// Creates a new instance of the + /// class. + public ContentBundleService() { + } + + /// Creates a new instance of the + /// class. + public ContentBundleService(string endpointConfigurationName) + : base(endpointConfigurationName) { + } + + /// Creates a new instance of the + /// class. + public ContentBundleService(string endpointConfigurationName, string remoteAddress) + : base(endpointConfigurationName, remoteAddress) { + } + + /// Creates a new instance of the + /// class. + public ContentBundleService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) + : base(endpointConfigurationName, remoteAddress) { + } + + /// Creates a new instance of the + /// class. + public ContentBundleService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) + : base(binding, remoteAddress) { + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + Wrappers.ContentBundleService.createContentBundlesResponse Google.Api.Ads.AdManager.v202411.ContentBundleServiceInterface.createContentBundles(Wrappers.ContentBundleService.createContentBundlesRequest request) { + return base.Channel.createContentBundles(request); + } + + /// Creates new ContentBundle objects. + /// + public virtual Google.Api.Ads.AdManager.v202411.ContentBundle[] createContentBundles(Google.Api.Ads.AdManager.v202411.ContentBundle[] contentBundles) { + Wrappers.ContentBundleService.createContentBundlesRequest inValue = new Wrappers.ContentBundleService.createContentBundlesRequest(); + inValue.contentBundles = contentBundles; + Wrappers.ContentBundleService.createContentBundlesResponse retVal = ((Google.Api.Ads.AdManager.v202411.ContentBundleServiceInterface)(this)).createContentBundles(inValue); + return retVal.rval; } - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public int startIndex { - get { - return this.startIndexField; - } - set { - this.startIndexField = value; - this.startIndexSpecified = true; - } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202411.ContentBundleServiceInterface.createContentBundlesAsync(Wrappers.ContentBundleService.createContentBundlesRequest request) { + return base.Channel.createContentBundlesAsync(request); } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool startIndexSpecified { - get { - return this.startIndexFieldSpecified; - } - set { - this.startIndexFieldSpecified = value; - } + public virtual System.Threading.Tasks.Task createContentBundlesAsync(Google.Api.Ads.AdManager.v202411.ContentBundle[] contentBundles) { + Wrappers.ContentBundleService.createContentBundlesRequest inValue = new Wrappers.ContentBundleService.createContentBundlesRequest(); + inValue.contentBundles = contentBundles; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202411.ContentBundleServiceInterface)(this)).createContentBundlesAsync(inValue)).Result.rval); } - [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] - public YieldGroup[] results { - get { - return this.resultsField; - } - set { - this.resultsField = value; - } + /// Gets a ContentBundlePage of ContentBundle objects that satisfy the given Statement#query. The following fields are supported for filtering: + /// + /// + ///
PQL Property Object + /// Property
id ContentBundle#id
name ContentBundle#name
status ContentBundle#status
+ ///
+ public virtual Google.Api.Ads.AdManager.v202411.ContentBundlePage getContentBundlesByStatement(Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.getContentBundlesByStatement(filterStatement); } - } + public virtual System.Threading.Tasks.Task getContentBundlesByStatementAsync(Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.getContentBundlesByStatementAsync(filterStatement); + } - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class YieldPartner { - private long companyIdField; + /// Performs actions on ContentBundle objects that match + /// the given Statement#query. + /// + public virtual Google.Api.Ads.AdManager.v202411.UpdateResult performContentBundleAction(Google.Api.Ads.AdManager.v202411.ContentBundleAction contentBundleAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.performContentBundleAction(contentBundleAction, filterStatement); + } - private bool companyIdFieldSpecified; + public virtual System.Threading.Tasks.Task performContentBundleActionAsync(Google.Api.Ads.AdManager.v202411.ContentBundleAction contentBundleAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.performContentBundleActionAsync(contentBundleAction, filterStatement); + } - private YieldPartnerSettings[] settingsField; + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + Wrappers.ContentBundleService.updateContentBundlesResponse Google.Api.Ads.AdManager.v202411.ContentBundleServiceInterface.updateContentBundles(Wrappers.ContentBundleService.updateContentBundlesRequest request) { + return base.Channel.updateContentBundles(request); + } - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public long companyId { - get { - return this.companyIdField; - } - set { - this.companyIdField = value; - this.companyIdSpecified = true; - } + /// Updates the specified ContentBundle objects. + /// + public virtual Google.Api.Ads.AdManager.v202411.ContentBundle[] updateContentBundles(Google.Api.Ads.AdManager.v202411.ContentBundle[] contentBundles) { + Wrappers.ContentBundleService.updateContentBundlesRequest inValue = new Wrappers.ContentBundleService.updateContentBundlesRequest(); + inValue.contentBundles = contentBundles; + Wrappers.ContentBundleService.updateContentBundlesResponse retVal = ((Google.Api.Ads.AdManager.v202411.ContentBundleServiceInterface)(this)).updateContentBundles(inValue); + return retVal.rval; } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool companyIdSpecified { - get { - return this.companyIdFieldSpecified; - } - set { - this.companyIdFieldSpecified = value; - } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202411.ContentBundleServiceInterface.updateContentBundlesAsync(Wrappers.ContentBundleService.updateContentBundlesRequest request) { + return base.Channel.updateContentBundlesAsync(request); } - [System.Xml.Serialization.XmlElementAttribute("settings", Order = 1)] - public YieldPartnerSettings[] settings { - get { - return this.settingsField; - } - set { - this.settingsField = value; - } + public virtual System.Threading.Tasks.Task updateContentBundlesAsync(Google.Api.Ads.AdManager.v202411.ContentBundle[] contentBundles) { + Wrappers.ContentBundleService.updateContentBundlesRequest inValue = new Wrappers.ContentBundleService.updateContentBundlesRequest(); + inValue.contentBundles = contentBundles; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202411.ContentBundleServiceInterface)(this)).updateContentBundlesAsync(inValue)).Result.rval); } } - - + namespace Wrappers.ContentService + { + } + /// Contains information about Content from the CMS it was + /// ingested from. + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class YieldPartnerSettings { - private PartnerSettingStatus statusField; - - private bool statusFieldSpecified; - - private YieldEnvironmentType environmentField; - - private bool environmentFieldSpecified; - - private YieldFormat formatField; - - private bool formatFieldSpecified; - - private YieldIntegrationType integrationTypeField; - - private bool integrationTypeFieldSpecified; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class CmsContent { + private long idField; - private YieldPlatform platformField; + private bool idFieldSpecified; - private bool platformFieldSpecified; + private string displayNameField; - private YieldParameter[] parametersField; + private string cmsContentIdField; + /// The ID of the Content Source associated with the CMS in Ad Manager. This + /// attribute is read-only. + /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public PartnerSettingStatus status { + public long id { get { - return this.statusField; + return this.idField; } set { - this.statusField = value; - this.statusSpecified = true; + this.idField = value; + this.idSpecified = true; } } - /// true, if a value is specified for , + /// true, if a value is specified for , /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool statusSpecified { + public bool idSpecified { get { - return this.statusFieldSpecified; + return this.idFieldSpecified; } set { - this.statusFieldSpecified = value; + this.idFieldSpecified = value; } } + /// The display name of the CMS this content is in. This attribute is read-only. + /// [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public YieldEnvironmentType environment { - get { - return this.environmentField; - } - set { - this.environmentField = value; - this.environmentSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool environmentSpecified { + public string displayName { get { - return this.environmentFieldSpecified; + return this.displayNameField; } set { - this.environmentFieldSpecified = value; + this.displayNameField = value; } } + /// The ID of the Content in the CMS. This ID will be a 3rd + /// party ID, usually the ID of the content in a CMS (Content Management System). + /// This attribute is read-only. + /// [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public YieldFormat format { + public string cmsContentId { get { - return this.formatField; + return this.cmsContentIdField; } set { - this.formatField = value; - this.formatSpecified = true; + this.cmsContentIdField = value; } } + } - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool formatSpecified { - get { - return this.formatFieldSpecified; - } - set { - this.formatFieldSpecified = value; - } - } - [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public YieldIntegrationType integrationType { - get { - return this.integrationTypeField; - } - set { - this.integrationTypeField = value; - this.integrationTypeSpecified = true; - } - } + /// Represents an error associated with a DAI content's status. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class DaiIngestError { + private DaiIngestErrorReason reasonField; - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool integrationTypeSpecified { - get { - return this.integrationTypeFieldSpecified; - } - set { - this.integrationTypeFieldSpecified = value; - } - } + private bool reasonFieldSpecified; - [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public YieldPlatform platform { + private string triggerField; + + /// The error associated with the content. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public DaiIngestErrorReason reason { get { - return this.platformField; + return this.reasonField; } set { - this.platformField = value; - this.platformSpecified = true; + this.reasonField = value; + this.reasonSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , + /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool platformSpecified { + public bool reasonSpecified { get { - return this.platformFieldSpecified; + return this.reasonFieldSpecified; } set { - this.platformFieldSpecified = value; + this.reasonFieldSpecified = value; } } - [System.Xml.Serialization.XmlElementAttribute("parameters", Order = 5)] - public YieldParameter[] parameters { + /// The field, if any, that triggered the error. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public string trigger { get { - return this.parametersField; + return this.triggerField; } set { - this.parametersField = value; + this.triggerField = value; } } } + /// Describes what caused the DAI content to fail during the ingestion process. + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum PartnerSettingStatus { - UNKNOWN = 0, - PENDING = 1, - ACTIVE = 2, - DEPRECATED = 3, - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public interface YieldGroupServiceInterfaceChannel : Google.Api.Ads.AdManager.v202311.YieldGroupServiceInterface, System.ServiceModel.IClientChannel - { - } - - - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public partial class YieldGroupService : AdManagerSoapClient, IYieldGroupService { - /// Creates a new instance of the class. + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum DaiIngestErrorReason { + /// The ingest URL provided in the publisher's content source feed is invalid. The + /// trigger for this error is the ingest URL specified in the publisher's feed. /// - public YieldGroupService() { - } - - /// Creates a new instance of the class. + INVALID_INGEST_URL = 0, + /// The closed caption URL provided in the publisher's content source feed is + /// invalid. The trigger for this error is the closed caption URL specified in the + /// publisher's feed. /// - public YieldGroupService(string endpointConfigurationName) - : base(endpointConfigurationName) { - } - - /// Creates a new instance of the class. + INVALID_CLOSED_CAPTION_URL = 1, + /// There is no closed caption URL for a content in the publisher's content source + /// feed. There is no trigger for this error. + /// + MISSING_CLOSED_CAPTION_URL = 2, + /// There was an error while trying to fetch the HLS from the specified ingest URL. + /// The trigger for this error is the ingest URL specified in the publisher's feed. + /// + COULD_NOT_FETCH_HLS = 3, + /// There was an error while trying to fetch the subtitles from the specified closed + /// caption url. The trigger for this error is the closed caption URL specified in + /// the publisher's feed. + /// + COULD_NOT_FETCH_SUBTITLES = 4, + /// One of the subtitles from the closed caption URL is missing a language. The + /// trigger for this error is the closed caption URL that does not have a language + /// associated with it. + /// + MISSING_SUBTITLE_LANGUAGE = 5, + /// Error fetching the media files from the URLs specified in the master HLS + /// playlist. The trigger for this error is a media playlist URL within the + /// publisher's HLS playlist that could not be fetched. + /// + COULD_NOT_FETCH_MEDIA = 6, + /// The media from the publisher's CDN is malformed and cannot be conditioned. The + /// trigger for this error is a media playlist URL within the publisher's HLS + /// playlist that is malformed. + /// + MALFORMED_MEDIA_BYTES = 7, + /// A chapter time for the content is outside of the range of the content's + /// duration. The trigger for this error is the chapter time (a parsable long + /// representing the time in ms) that is out of bounds. + /// + CHAPTER_TIME_OUT_OF_BOUNDS = 8, + /// An internal error occurred while conditioning the content. There is no trigger + /// for this error. + /// + INTERNAL_ERROR = 9, + /// The content has chapter times but the content's source has no CDN settings for + /// midrolls. There is no trigger for this error. + /// + CONTENT_HAS_CHAPTER_TIMES_BUT_NO_MIDROLL_SETTINGS = 10, + /// There is bad/missing/malformed data in a media playlist. The trigger for this + /// error is the URL that points to the malformed media playlist. + /// + MALFORMED_MEDIA_PLAYLIST = 11, + /// Multiple ways of denoting ad breaks were detected in a media playlist (e.g. + /// placement opportunity tags, cue markers, etc.) + /// + MIXED_AD_BREAK_TAGS = 46, + /// The ad break tags in the preconditioned content are not in the same locations + /// across all variant playlists. + /// + AD_BREAK_TAGS_INCONSISTENT_ACROSS_VARIANTS = 47, + /// There is bad/missing/malformed data in a subtitles file. The trigger for this + /// error is the URL that points to the malformed subtitles. + /// + MALFORMED_SUBTITLES = 12, + /// The subtitles sent to DAI are too large. The trigger for this error is the URL + /// that points to the master playlist. + /// + SUBTITLES_TOO_LARGE = 53, + /// A playlist item has a URL that does not begin with the ingest common path + /// provided in the DAI settings. The trigger for this error is the playlist item + /// URL. + /// + PLAYLIST_ITEM_URL_DOES_NOT_MATCH_INGEST_COMMON_PATH = 13, + /// Uploading split media segments failed due to an authentication error. + /// + COULD_NOT_UPLOAD_SPLIT_MEDIA_AUTHENTICATION_FAILED = 14, + /// Uploading spit media segments failed due to a connection error. + /// + COULD_NOT_UPLOAD_SPLIT_MEDIA_CONNECTION_FAILED = 15, + /// Uploading split media segments failed due to a write error. + /// + COULD_NOT_UPLOAD_SPLIT_MEDIA_WRITE_FAILED = 16, + /// Variants in a playlist do not have the same number of discontinuities. The + /// trigger for this error is the master playlist URI. + /// + PLAYLISTS_HAVE_DIFFERENT_NUMBER_OF_DISCONTINUITIES = 17, + /// The playlist does not have a starting PTS value. The trigger for this error is + /// the master playlist URI. + /// + PLAYIST_HAS_NO_STARTING_PTS_VALUE = 18, + /// The PTS at a discontinuity varies too much between the different variants. The + /// trigger for this error is the master playlist URI. + /// + PLAYLIST_DISCONTINUITY_PTS_VALUES_DIFFER_TOO_MUCH = 19, + /// A media segment has no PTS. The trigger for this error is the segment data URI. + /// + SEGMENT_HAS_NO_PTS = 20, + /// The language in the subtitles file does not match the language specified in the + /// feed. The trigger for this error is the feed language and the parsed language + /// separated by a semi-colon, e.g. "en;sp". + /// + SUBTITLE_LANGUAGE_DOES_NOT_MATCH_LANGUAGE_IN_FEED = 21, + /// There are multiple subtitles files at the closed caption URI, and none of them + /// match the language defined in the feed. The trigger for this error is language + /// in the feed. + /// + CANNOT_DETERMINE_CORRECT_SUBTITLES_FOR_LANGUAGE = 22, + /// No CDN configuration found for the content. The trigger for this error is the + /// content's master playlist URI. + /// + NO_CDN_CONFIGURATION_FOUND = 23, + /// The content has midrolls but there was no split content config on the CDN + /// configuration for that content so the content was not conditioned. There is no + /// trigger for this error. + /// + CONTENT_HAS_MIDROLLS_BUT_NO_SPLIT_CONTENT_CONFIG = 24, + /// The content has midrolls but the source the content was ingested from has + /// mid-rolls disabled, so the content was not conditioned. There is no trigger for + /// this error. + /// + CONTENT_HAS_MIDROLLS_BUT_SOURCE_HAS_MIDROLLS_DISABLED = 25, + /// Error parsing ADTS while splitting the content. The trigger for this error is + /// the variant URL and the cue-point separated by a semi-colon, e.g. + /// "www.variant2.com;5000". + /// + ADTS_PARSE_ERROR = 26, + /// Error splitting an AAC segment. The trigger for this error is the variant URL + /// and the cue-point separated by a semi-colon, e.g. "www.variant2.com;5000". + /// + AAC_SPLIT_ERROR = 27, + /// Error parsing an AAC file while splitting the content. The trigger for this + /// error is the variant URL and the cue-point separated by a semi-colon, e.g. + /// "www.variant2.com;5000". + /// + AAC_PARSE_ERROR = 28, + /// Error parsing a TS file while splitting the content. The trigger for this error + /// is the variant URL and the cue-point separated by a semi-colon, e.g. + /// "www.variant2.com;5000". + /// + TS_PARSE_ERROR = 29, + /// Error splitting a TS file while splitting the content. The trigger for this + /// error is the variant URL and the cue-point separated by a semi-colon, e.g. + /// "www.variant2.com;5000". + /// + TS_SPLIT_ERROR = 30, + /// Encountered an unsupported container format while splitting the content. The + /// trigger for this error is the variant URL and the cue-point separated by a + /// semi-colon, e.g. "www.variant2.com;5000". + /// + UNSUPPORTED_CONTAINER_FORMAT = 31, + /// Encountered multiple elementary streams of the same media type (audio, video) + /// within a transport stream. The trigger for this error is the variant URL and the + /// cue-point separated by a semi-colon, e.g. "www.variant2.com;5000". + /// + MULTIPLE_ELEMENTARY_STREAMS_OF_SAME_MEDIA_TYPE_IN_TS = 40, + /// Encountered an unsupported TS media format while splitting the content. The + /// trigger for this error is the variant URL and the cue-point separated by a + /// semi-colon, e.g. "www.variant2.com;5000". + /// + UNSUPPORTED_TS_MEDIA_FORMAT = 32, + /// Error splitting because there were no i-frames near the target split point. The + /// trigger for this error is the variant URL and the cue-point separated by a + /// semi-colon, e.g. "www.variant2.com;5000". + /// + NO_IFRAMES_NEAR_CUE_POINT = 33, + /// Error splitting an AC-3 segment. The trigger for this error is the variant URL + /// and the cue-point separated by a semi-colon, e.g. "www.variant2.com;5000". + /// + AC3_SPLIT_ERROR = 35, + /// Error parsing an AC-3 file while splitting the content. The trigger for this + /// error is the variant URL and the cue-point separated by a semi-colon, e.g. + /// "www.variant2.com;5000". + /// + AC3_PARSE_ERROR = 36, + /// Error splitting an E-AC-3 segment. The trigger for this error is the variant URL + /// and the cue-point separated by a semi-colon, e.g. "www.variant2.com;5000". + /// + EAC3_SPLIT_ERROR = 37, + /// Error caused by an invalid encryption key. The trigger for this error is a media + /// playlist URL within the publisher's HLS playlist that has the invalid encryption + /// key. + /// + INVALID_ENCRYPTION_KEY = 38, + /// Error parsing an E-AC-3 file while splitting the content. The trigger for this + /// error is the variant URL and the cue-point separated by a semi-colon, e.g. + /// "www.variant2.com;5000". + /// + EAC3_PARSE_ERROR = 39, + /// Error caused by the number of PTS being a different value than the number of cue + /// points + 1. + /// + CUE_POINT_COUNT_DOES_NOT_MATCH_PTS_COUNT = 41, + /// The DASH content has cue points but they do not match the Event durations from + /// the DASH manifest EventStream, if present. + /// + DASH_CUE_POINT_EVENT_MISMATCH = 50, + /// The DASH manifest cannot be conditioned for midrolls. + /// + DASH_MANIFEST_CONDITIONING_FAILED = 51, + /// The DASH manifest cannot be conditioned for midrolls because one or more of the + /// cue points do not lie on a media segment boundary. + /// + DASH_MANIFEST_CONDITIONING_SEGMENT_BOUNDARY_ERROR = 52, + /// The subtitle language code should not contain "$$$$$". /// - public YieldGroupService(string endpointConfigurationName, string remoteAddress) - : base(endpointConfigurationName, remoteAddress) { - } - - /// Creates a new instance of the class. + CLOSED_CAPTION_LANGUAGE_VALUE_INVALID = 42, + /// The subtitle name should not contain "$$$$$". /// - public YieldGroupService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) - : base(endpointConfigurationName, remoteAddress) { - } - - /// Creates a new instance of the class. + CLOSED_CAPTION_NAME_VALUE_INVALID = 43, + /// The common subtitle characteristics values listed in the HLS spec are: + /// 1)"public.accessibility.transcribes-spoken-dialog", + /// 2)"public.accessibility.describes-music-and-sound", 3)"public.easy-to-read"; /// - public YieldGroupService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) - : base(binding, remoteAddress) { - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.YieldGroupService.createYieldGroupsResponse Google.Api.Ads.AdManager.v202311.YieldGroupServiceInterface.createYieldGroups(Wrappers.YieldGroupService.createYieldGroupsRequest request) { - return base.Channel.createYieldGroups(request); - } - - /// Creates yield groups in bulk. + CLOSED_CAPTION_CHARACTERISTICS_VALUE_UNEXPECTED = 44, + /// Closed captions for a content should be unique by 'language + name'. /// - public virtual Google.Api.Ads.AdManager.v202311.YieldGroup[] createYieldGroups(Google.Api.Ads.AdManager.v202311.YieldGroup[] yieldGroups) { - Wrappers.YieldGroupService.createYieldGroupsRequest inValue = new Wrappers.YieldGroupService.createYieldGroupsRequest(); - inValue.yieldGroups = yieldGroups; - Wrappers.YieldGroupService.createYieldGroupsResponse retVal = ((Google.Api.Ads.AdManager.v202311.YieldGroupServiceInterface)(this)).createYieldGroups(inValue); - return retVal.rval; - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202311.YieldGroupServiceInterface.createYieldGroupsAsync(Wrappers.YieldGroupService.createYieldGroupsRequest request) { - return base.Channel.createYieldGroupsAsync(request); - } - - public virtual System.Threading.Tasks.Task createYieldGroupsAsync(Google.Api.Ads.AdManager.v202311.YieldGroup[] yieldGroups) { - Wrappers.YieldGroupService.createYieldGroupsRequest inValue = new Wrappers.YieldGroupService.createYieldGroupsRequest(); - inValue.yieldGroups = yieldGroups; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202311.YieldGroupServiceInterface)(this)).createYieldGroupsAsync(inValue)).Result.rval); - } - - /// Gets a page of yield groups, with child tags, filtered by the given statement. + CLOSED_CAPTIONS_WITH_DUPLICATE_KEYS = 45, + /// Subtitles are defined in the content source feed as well as inside the stream + /// manifest. Only feed subtitles will be ingested. /// - public virtual Google.Api.Ads.AdManager.v202311.YieldGroupPage getYieldGroupsByStatement(Google.Api.Ads.AdManager.v202311.Statement statement) { - return base.Channel.getYieldGroupsByStatement(statement); - } - - public virtual System.Threading.Tasks.Task getYieldGroupsByStatementAsync(Google.Api.Ads.AdManager.v202311.Statement statement) { - return base.Channel.getYieldGroupsByStatementAsync(statement); - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.YieldGroupService.getYieldPartnersResponse Google.Api.Ads.AdManager.v202311.YieldGroupServiceInterface.getYieldPartners(Wrappers.YieldGroupService.getYieldPartnersRequest request) { - return base.Channel.getYieldPartners(request); - } - - /// Returns the available partners for yield groups, each one of them is backed by a - /// company. + SUBTITLES_PRESENT_IN_FEED_AND_MANIFEST = 48, + /// The media profile is invalid due to missing data. /// - public virtual Google.Api.Ads.AdManager.v202311.YieldPartner[] getYieldPartners() { - Wrappers.YieldGroupService.getYieldPartnersRequest inValue = new Wrappers.YieldGroupService.getYieldPartnersRequest(); - Wrappers.YieldGroupService.getYieldPartnersResponse retVal = ((Google.Api.Ads.AdManager.v202311.YieldGroupServiceInterface)(this)).getYieldPartners(inValue); - return retVal.rval; - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202311.YieldGroupServiceInterface.getYieldPartnersAsync(Wrappers.YieldGroupService.getYieldPartnersRequest request) { - return base.Channel.getYieldPartnersAsync(request); - } - - public virtual System.Threading.Tasks.Task getYieldPartnersAsync() { - Wrappers.YieldGroupService.getYieldPartnersRequest inValue = new Wrappers.YieldGroupService.getYieldPartnersRequest(); - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202311.YieldGroupServiceInterface)(this)).getYieldPartnersAsync(inValue)).Result.rval); - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.YieldGroupService.updateYieldGroupsResponse Google.Api.Ads.AdManager.v202311.YieldGroupServiceInterface.updateYieldGroups(Wrappers.YieldGroupService.updateYieldGroupsRequest request) { - return base.Channel.updateYieldGroups(request); - } - - /// Updates a list of yield groups. + INVALID_MEDIA_PROFILE = 49, + /// The value returned if the actual value is not exposed by the requested API + /// version. /// - public virtual Google.Api.Ads.AdManager.v202311.YieldGroup[] updateYieldGroups(Google.Api.Ads.AdManager.v202311.YieldGroup[] yieldGroups) { - Wrappers.YieldGroupService.updateYieldGroupsRequest inValue = new Wrappers.YieldGroupService.updateYieldGroupsRequest(); - inValue.yieldGroups = yieldGroups; - Wrappers.YieldGroupService.updateYieldGroupsResponse retVal = ((Google.Api.Ads.AdManager.v202311.YieldGroupServiceInterface)(this)).updateYieldGroups(inValue); - return retVal.rval; - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202311.YieldGroupServiceInterface.updateYieldGroupsAsync(Wrappers.YieldGroupService.updateYieldGroupsRequest request) { - return base.Channel.updateYieldGroupsAsync(request); - } - - public virtual System.Threading.Tasks.Task updateYieldGroupsAsync(Google.Api.Ads.AdManager.v202311.YieldGroup[] yieldGroups) { - Wrappers.YieldGroupService.updateYieldGroupsRequest inValue = new Wrappers.YieldGroupService.updateYieldGroupsRequest(); - inValue.yieldGroups = yieldGroups; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202311.YieldGroupServiceInterface)(this)).updateYieldGroupsAsync(inValue)).Result.rval); - } + UNKNOWN = 34, } - namespace Wrappers.SegmentPopulationService - { - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "getSegmentPopulationResultsByIds", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class getSegmentPopulationResultsByIdsRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("batchUploadIds")] - public long[] batchUploadIds; - - /// Creates a new instance of the class. - public getSegmentPopulationResultsByIdsRequest() { - } - - /// Creates a new instance of the class. - public getSegmentPopulationResultsByIdsRequest(long[] batchUploadIds) { - this.batchUploadIds = batchUploadIds; - } - } - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "getSegmentPopulationResultsByIdsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class getSegmentPopulationResultsByIdsResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v202311.SegmentPopulationResults[] rval; + /// A Content represents video metadata from a publisher's Content + /// Management System (CMS) that has been synced to Ad Manager.

Video line items + /// can be targeted to Content to indicate what ads should match when + /// the Content is being played.

+ ///
+ [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class Content { + private long idField; - /// Creates a new instance of the class. - public getSegmentPopulationResultsByIdsResponse() { - } + private bool idFieldSpecified; - /// Creates a new instance of the class. - public getSegmentPopulationResultsByIdsResponse(Google.Api.Ads.AdManager.v202311.SegmentPopulationResults[] rval) { - this.rval = rval; - } - } + private string nameField; + private ContentStatus statusField; - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "performSegmentPopulationAction", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class performSegmentPopulationActionRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - public Google.Api.Ads.AdManager.v202311.SegmentPopulationAction action; + private bool statusFieldSpecified; - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 1)] - [System.Xml.Serialization.XmlElementAttribute("batchUploadIds")] - public long[] batchUploadIds; + private ContentStatusDefinedBy statusDefinedByField; - /// Creates a new instance of the class. - public performSegmentPopulationActionRequest() { - } + private bool statusDefinedByFieldSpecified; - /// Creates a new instance of the class. - public performSegmentPopulationActionRequest(Google.Api.Ads.AdManager.v202311.SegmentPopulationAction action, long[] batchUploadIds) { - this.action = action; - this.batchUploadIds = batchUploadIds; - } - } + private DaiIngestStatus hlsIngestStatusField; + private bool hlsIngestStatusFieldSpecified; - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "performSegmentPopulationActionResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class performSegmentPopulationActionResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - public Google.Api.Ads.AdManager.v202311.UpdateResult rval; + private DaiIngestError[] hlsIngestErrorsField; - /// Creates a new instance of the class. - public performSegmentPopulationActionResponse() { - } + private DateTime lastHlsIngestDateTimeField; - /// Creates a new instance of the class. - public performSegmentPopulationActionResponse(Google.Api.Ads.AdManager.v202311.UpdateResult rval) { - this.rval = rval; - } - } - } - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "IdError.IdErrorType", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum IdErrorIdErrorType { - INVALID_PUBLISHER_PROVIDED_ID_FORMAT = 0, - UNKNOWN = 1, - } + private DaiIngestStatus dashIngestStatusField; + private bool dashIngestStatusFieldSpecified; - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class SegmentPopulationResults { - private long batchUploadIdField; + private DaiIngestError[] dashIngestErrorsField; - private bool batchUploadIdFieldSpecified; + private DateTime lastDashIngestDateTimeField; - private long segmentIdField; + private DateTime importDateTimeField; - private bool segmentIdFieldSpecified; + private DateTime lastModifiedDateTimeField; - private SegmentPopulationStatus statusField; + private CmsContent[] cmsSourcesField; - private bool statusFieldSpecified; + private long[] contentBundleIdsField; - private long numSuccessfulIdsProcessedField; + private long[] cmsMetadataValueIdsField; - private bool numSuccessfulIdsProcessedFieldSpecified; + private long durationField; - private IdError[] errorsField; + private bool durationFieldSpecified; + /// Uniquely identifies the Content. This attribute is read-only and is + /// assigned by Google when the content is created. + /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public long batchUploadId { + public long id { get { - return this.batchUploadIdField; + return this.idField; } set { - this.batchUploadIdField = value; - this.batchUploadIdSpecified = true; + this.idField = value; + this.idSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , + /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool batchUploadIdSpecified { + public bool idSpecified { get { - return this.batchUploadIdFieldSpecified; + return this.idFieldSpecified; } set { - this.batchUploadIdFieldSpecified = value; + this.idFieldSpecified = value; } } + /// The name of the Content. This attribute is read-only. + /// [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public long segmentId { - get { - return this.segmentIdField; - } - set { - this.segmentIdField = value; - this.segmentIdSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool segmentIdSpecified { + public string name { get { - return this.segmentIdFieldSpecified; + return this.nameField; } set { - this.segmentIdFieldSpecified = value; + this.nameField = value; } } + /// The status of this Content. This attribute is read-only. + /// [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public SegmentPopulationStatus status { + public ContentStatus status { get { return this.statusField; } @@ -64460,518 +63251,551 @@ public bool statusSpecified { } } + /// Whether the content status was defined by the user, or by the source CMS from + /// which the content was ingested. This attribute is read-only. + /// [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public long numSuccessfulIdsProcessed { + public ContentStatusDefinedBy statusDefinedBy { get { - return this.numSuccessfulIdsProcessedField; + return this.statusDefinedByField; } set { - this.numSuccessfulIdsProcessedField = value; - this.numSuccessfulIdsProcessedSpecified = true; + this.statusDefinedByField = value; + this.statusDefinedBySpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="statusDefinedBy" />, false otherwise.
[System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool numSuccessfulIdsProcessedSpecified { + public bool statusDefinedBySpecified { get { - return this.numSuccessfulIdsProcessedFieldSpecified; + return this.statusDefinedByFieldSpecified; } set { - this.numSuccessfulIdsProcessedFieldSpecified = value; + this.statusDefinedByFieldSpecified = value; } } - [System.Xml.Serialization.XmlElementAttribute("errors", Order = 4)] - public IdError[] errors { + /// The current DAI ingest status of the HLS media for the . This + /// attribute is read-only and is null if the content is not eligible for dynamic ad + /// insertion or if the content does not have HLS media. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 4)] + public DaiIngestStatus hlsIngestStatus { get { - return this.errorsField; + return this.hlsIngestStatusField; } set { - this.errorsField = value; + this.hlsIngestStatusField = value; + this.hlsIngestStatusSpecified = true; } } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum SegmentPopulationStatus { - FAILED = 0, - SUCCESS = 1, - PROCESSING = 2, - PREPARING = 3, - EXPIRED = 4, - UNKNOWN = 5, - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class SegmentPopulationError : ApiError { - private SegmentPopulationErrorReason reasonField; - - private bool reasonFieldSpecified; - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public SegmentPopulationErrorReason reason { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool hlsIngestStatusSpecified { get { - return this.reasonField; + return this.hlsIngestStatusFieldSpecified; } set { - this.reasonField = value; - this.reasonSpecified = true; + this.hlsIngestStatusFieldSpecified = value; } } - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { + /// The list of any errors that occurred during the most recent DAI ingestion + /// process of the HLS media. This attribute is read-only and will be null if the #hlsIngestStatus is DaiIngestStatus#STATUS_SUCCESS or if the content is not eligible for + /// dynamic ad insertion or if the content does not have HLS media. + /// + [System.Xml.Serialization.XmlElementAttribute("hlsIngestErrors", Order = 5)] + public DaiIngestError[] hlsIngestErrors { get { - return this.reasonFieldSpecified; + return this.hlsIngestErrorsField; } set { - this.reasonFieldSpecified = value; + this.hlsIngestErrorsField = value; } } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "SegmentPopulationError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum SegmentPopulationErrorReason { - TOO_MANY_IDENTIFIERS = 0, - INVALID_SEGMENT = 1, - JOB_ALREADY_STARTED = 3, - NO_IDENTIFIERS = 4, - NO_CONSENT = 5, - UNKNOWN = 2, - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", ConfigurationName = "Google.Api.Ads.AdManager.v202311.SegmentPopulationServiceInterface")] - public interface SegmentPopulationServiceInterface - { - // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Wrappers.SegmentPopulationService.getSegmentPopulationResultsByIdsResponse getSegmentPopulationResultsByIds(Wrappers.SegmentPopulationService.getSegmentPopulationResultsByIdsRequest request); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task getSegmentPopulationResultsByIdsAsync(Wrappers.SegmentPopulationService.getSegmentPopulationResultsByIdsRequest request); - - // CODEGEN: Parameter 'batchUploadIds' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Wrappers.SegmentPopulationService.performSegmentPopulationActionResponse performSegmentPopulationAction(Wrappers.SegmentPopulationService.performSegmentPopulationActionRequest request); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task performSegmentPopulationActionAsync(Wrappers.SegmentPopulationService.performSegmentPopulationActionRequest request); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v202311.SegmentPopulationResponse updateSegmentMemberships(Google.Api.Ads.AdManager.v202311.SegmentPopulationRequest updateRequest); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task updateSegmentMembershipsAsync(Google.Api.Ads.AdManager.v202311.SegmentPopulationRequest updateRequest); - } - - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ProcessAction))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public abstract partial class SegmentPopulationAction { - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ProcessAction : SegmentPopulationAction { - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class SegmentPopulationRequest { - private long batchUploadIdField; - - private bool batchUploadIdFieldSpecified; - - private long segmentIdField; - - private bool segmentIdFieldSpecified; - - private bool isDeletionField; - - private bool isDeletionFieldSpecified; - - private IdentifierType identifierTypeField; - - private bool identifierTypeFieldSpecified; - - private string[] idsField; - - private ConsentType consentTypeField; - - private bool consentTypeFieldSpecified; + /// The date and time at which this content's HLS media was last ingested for DAI. + /// This attribute is read-only and will be null if the content is not eligible for + /// dynamic ad insertion or if the content does not have HLS media. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 6)] + public DateTime lastHlsIngestDateTime { + get { + return this.lastHlsIngestDateTimeField; + } + set { + this.lastHlsIngestDateTimeField = value; + } + } - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public long batchUploadId { + /// The current DAI ingest status of the DASH media for the . This + /// attribute is read-only and is null if the content is not eligible for dynamic ad + /// insertion or if the content does not have DASH media. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 7)] + public DaiIngestStatus dashIngestStatus { get { - return this.batchUploadIdField; + return this.dashIngestStatusField; } set { - this.batchUploadIdField = value; - this.batchUploadIdSpecified = true; + this.dashIngestStatusField = value; + this.dashIngestStatusSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="dashIngestStatus" />, false otherwise.
[System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool batchUploadIdSpecified { + public bool dashIngestStatusSpecified { get { - return this.batchUploadIdFieldSpecified; + return this.dashIngestStatusFieldSpecified; } set { - this.batchUploadIdFieldSpecified = value; + this.dashIngestStatusFieldSpecified = value; } } - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public long segmentId { + /// The list of any errors that occurred during the most recent DAI ingestion + /// process of the DASH media. This attribute is read-only and will be null if the + /// #hlsIngestStatus is DaiIngestStatus#STATUS_SUCCESS or if the content is not eligible for + /// dynamic ad insertion or if the content does not have DASH media. + /// + [System.Xml.Serialization.XmlElementAttribute("dashIngestErrors", Order = 8)] + public DaiIngestError[] dashIngestErrors { get { - return this.segmentIdField; + return this.dashIngestErrorsField; } set { - this.segmentIdField = value; - this.segmentIdSpecified = true; + this.dashIngestErrorsField = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool segmentIdSpecified { + /// The date and time at which this content's DASH media was last ingested for DAI. + /// This attribute is read-only and will be null if the content is not eligible for + /// dynamic ad insertion or if the content does not have DASH media. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 9)] + public DateTime lastDashIngestDateTime { get { - return this.segmentIdFieldSpecified; + return this.lastDashIngestDateTimeField; } set { - this.segmentIdFieldSpecified = value; + this.lastDashIngestDateTimeField = value; } } - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public bool isDeletion { + /// The date and time at which this content was published. This attribute is + /// read-only. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 10)] + public DateTime importDateTime { get { - return this.isDeletionField; + return this.importDateTimeField; } set { - this.isDeletionField = value; - this.isDeletionSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool isDeletionSpecified { + this.importDateTimeField = value; + } + } + + /// The date and time at which this content was last modified. The last modified + /// date time will always be updated when a ContentBundle association is changed, but will not + /// always be updated when a CmsMetadataValue value + /// is changed. This attribute is read-only. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 11)] + public DateTime lastModifiedDateTime { get { - return this.isDeletionFieldSpecified; + return this.lastModifiedDateTimeField; } set { - this.isDeletionFieldSpecified = value; + this.lastModifiedDateTimeField = value; } } - [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public IdentifierType identifierType { + /// Information about the content from the CMS it was ingested from. This attribute + /// is read-only. + /// + [System.Xml.Serialization.XmlElementAttribute("cmsSources", Order = 12)] + public CmsContent[] cmsSources { get { - return this.identifierTypeField; + return this.cmsSourcesField; } set { - this.identifierTypeField = value; - this.identifierTypeSpecified = true; + this.cmsSourcesField = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool identifierTypeSpecified { + /// IDs of the ContentBundle of which this content is a + /// member. This attribute is read-only. + /// + [System.Xml.Serialization.XmlElementAttribute("contentBundleIds", Order = 13)] + public long[] contentBundleIds { get { - return this.identifierTypeFieldSpecified; + return this.contentBundleIdsField; } set { - this.identifierTypeFieldSpecified = value; + this.contentBundleIdsField = value; } } - [System.Xml.Serialization.XmlElementAttribute("ids", Order = 4)] - public string[] ids { + /// A collection of CmsMetadataValue IDs that are + /// associated with this content. This attribute is read-only. + /// + [System.Xml.Serialization.XmlElementAttribute("cmsMetadataValueIds", Order = 14)] + public long[] cmsMetadataValueIds { get { - return this.idsField; + return this.cmsMetadataValueIdsField; } set { - this.idsField = value; + this.cmsMetadataValueIdsField = value; } } - [System.Xml.Serialization.XmlElementAttribute(Order = 5)] - public ConsentType consentType { + /// The duration of the content in milliseconds. This attribute is read-only. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 15)] + public long duration { get { - return this.consentTypeField; + return this.durationField; } set { - this.consentTypeField = value; - this.consentTypeSpecified = true; + this.durationField = value; + this.durationSpecified = true; } } - /// true, if a value is specified for true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool consentTypeSpecified { + public bool durationSpecified { get { - return this.consentTypeFieldSpecified; + return this.durationFieldSpecified; } set { - this.consentTypeFieldSpecified = value; + this.durationFieldSpecified = value; } } } + /// Describes the status of a Content object. + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum IdentifierType { - PUBLISHER_PROVIDED_IDENTIFIER = 0, - UNKNOWN = 1, + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum ContentStatus { + /// Indicates the Content has been created and is eligible to + /// have ads served against it. + /// + ACTIVE = 0, + /// Indicates the Content has been deactivated and cannot have + /// ads served against it. + /// + INACTIVE = 1, + /// Indicates the Content has been archived; user-visible. + /// + ARCHIVED = 2, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 3, } + /// Describes who defined the effective status of the Content. + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum ConsentType { - UNSET = 0, - GRANTED = 1, - DENIED = 2, + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum ContentStatusDefinedBy { + /// Indicates that the status of the Content is defined by the CMS. + /// + CMS = 0, + /// Indicates that the status of the Content is defined by the user. + /// + USER = 1, + } + + + /// The status of the DAI ingestion process. Only content with a status of #SUCCESS will be available for dynamic ad insertion. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum DaiIngestStatus { + /// The content was successfully ingested for DAI. + /// + SUCCESS = 0, + /// There was a non-fatal issue during the DAI ingestion process. + /// + WARNING = 1, + /// The preconditioned content was successfully ingested for DAI. + /// + INGESTED = 4, + /// There was a non-fatal issue during the DAI ingestion process on preconditioned + /// content. + /// + INGESTED_WITH_WARNINGS = 5, + /// The unconditioned content was successfully conditioned for DAI. + /// + CONDITIONED = 6, + /// There was a non-fatal issue during the DAI conditioning process on originally + /// unconditioned content. + /// + CONDITIONED_WITH_WARNINGS = 7, + /// There was a non-fatal issue during the DAI ingestion process and the content is + /// not available for dynamic ad insertion. + /// + FAILURE = 2, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// UNKNOWN = 3, } + /// Captures a page of Content objects. + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class SegmentPopulationResponse { - private long batchUploadIdField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ContentPage { + private int totalResultSetSizeField; - private bool batchUploadIdFieldSpecified; + private bool totalResultSetSizeFieldSpecified; - private IdError[] idErrorsField; + private int startIndexField; + private bool startIndexFieldSpecified; + + private Content[] resultsField; + + /// The size of the total result set to which this page belongs. + /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public long batchUploadId { + public int totalResultSetSize { get { - return this.batchUploadIdField; + return this.totalResultSetSizeField; } set { - this.batchUploadIdField = value; - this.batchUploadIdSpecified = true; + this.totalResultSetSizeField = value; + this.totalResultSetSizeSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="totalResultSetSize" />, false otherwise.
[System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool batchUploadIdSpecified { + public bool totalResultSetSizeSpecified { get { - return this.batchUploadIdFieldSpecified; + return this.totalResultSetSizeFieldSpecified; } set { - this.batchUploadIdFieldSpecified = value; + this.totalResultSetSizeFieldSpecified = value; } } - [System.Xml.Serialization.XmlElementAttribute("idErrors", Order = 1)] - public IdError[] idErrors { + /// The absolute index in the total result set on which this page begins. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public int startIndex { get { - return this.idErrorsField; + return this.startIndexField; } set { - this.idErrorsField = value; + this.startIndexField = value; + this.startIndexSpecified = true; + } + } + + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool startIndexSpecified { + get { + return this.startIndexFieldSpecified; + } + set { + this.startIndexFieldSpecified = value; + } + } + + /// The collection of content contained within this page. + /// + [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] + public Content[] results { + get { + return this.resultsField; + } + set { + this.resultsField = value; } } } [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public interface SegmentPopulationServiceInterfaceChannel : Google.Api.Ads.AdManager.v202311.SegmentPopulationServiceInterface, System.ServiceModel.IClientChannel + [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", ConfigurationName = "Google.Api.Ads.AdManager.v202411.ContentServiceInterface")] + public interface ContentServiceInterface + { + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v202411.ContentPage getContentByStatement(Google.Api.Ads.AdManager.v202411.Statement statement); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task getContentByStatementAsync(Google.Api.Ads.AdManager.v202411.Statement statement); + } + + + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + public interface ContentServiceInterfaceChannel : Google.Api.Ads.AdManager.v202411.ContentServiceInterface, System.ServiceModel.IClientChannel { } + /// Service for retrieving Content.

Content + /// entities can be targeted in video LineItems.

+ ///
[System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public partial class SegmentPopulationService : AdManagerSoapClient, ISegmentPopulationService { - /// Creates a new instance of the - /// class. - public SegmentPopulationService() { + public partial class ContentService : AdManagerSoapClient, IContentService { + /// Creates a new instance of the class. + /// + public ContentService() { } - /// Creates a new instance of the - /// class. - public SegmentPopulationService(string endpointConfigurationName) + /// Creates a new instance of the class. + /// + public ContentService(string endpointConfigurationName) : base(endpointConfigurationName) { } - /// Creates a new instance of the - /// class. - public SegmentPopulationService(string endpointConfigurationName, string remoteAddress) + /// Creates a new instance of the class. + /// + public ContentService(string endpointConfigurationName, string remoteAddress) : base(endpointConfigurationName, remoteAddress) { } - /// Creates a new instance of the - /// class. - public SegmentPopulationService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) + /// Creates a new instance of the class. + /// + public ContentService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) : base(endpointConfigurationName, remoteAddress) { } - /// Creates a new instance of the - /// class. - public SegmentPopulationService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) + /// Creates a new instance of the class. + /// + public ContentService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) : base(binding, remoteAddress) { } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.SegmentPopulationService.getSegmentPopulationResultsByIdsResponse Google.Api.Ads.AdManager.v202311.SegmentPopulationServiceInterface.getSegmentPopulationResultsByIds(Wrappers.SegmentPopulationService.getSegmentPopulationResultsByIdsRequest request) { - return base.Channel.getSegmentPopulationResultsByIds(request); - } - - /// Returns a list of SegmentPopulationResults for the given - /// batchUploadIds. + /// Gets a ContentPage of Content + /// objects that satisfy the given Statement#query. The following + /// fields are supported for filtering: + /// + /// + /// + /// + /// + ///
PQL + /// Property Object Property
id Content#id
status Content#status
name Content#name
lastModifiedDateTime Content#lastModifiedDateTime
lastDaiIngestDateTime Content#lastDaiIngestDateTime
daiIngestStatus Content#daiIngestStatus
///
- public virtual Google.Api.Ads.AdManager.v202311.SegmentPopulationResults[] getSegmentPopulationResultsByIds(long[] batchUploadIds) { - Wrappers.SegmentPopulationService.getSegmentPopulationResultsByIdsRequest inValue = new Wrappers.SegmentPopulationService.getSegmentPopulationResultsByIdsRequest(); - inValue.batchUploadIds = batchUploadIds; - Wrappers.SegmentPopulationService.getSegmentPopulationResultsByIdsResponse retVal = ((Google.Api.Ads.AdManager.v202311.SegmentPopulationServiceInterface)(this)).getSegmentPopulationResultsByIds(inValue); - return retVal.rval; + public virtual Google.Api.Ads.AdManager.v202411.ContentPage getContentByStatement(Google.Api.Ads.AdManager.v202411.Statement statement) { + return base.Channel.getContentByStatement(statement); } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202311.SegmentPopulationServiceInterface.getSegmentPopulationResultsByIdsAsync(Wrappers.SegmentPopulationService.getSegmentPopulationResultsByIdsRequest request) { - return base.Channel.getSegmentPopulationResultsByIdsAsync(request); + public virtual System.Threading.Tasks.Task getContentByStatementAsync(Google.Api.Ads.AdManager.v202411.Statement statement) { + return base.Channel.getContentByStatementAsync(statement); } + } + namespace Wrappers.CreativeService + { + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "createCreatives", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class createCreativesRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("creatives")] + public Google.Api.Ads.AdManager.v202411.Creative[] creatives; - public virtual System.Threading.Tasks.Task getSegmentPopulationResultsByIdsAsync(long[] batchUploadIds) { - Wrappers.SegmentPopulationService.getSegmentPopulationResultsByIdsRequest inValue = new Wrappers.SegmentPopulationService.getSegmentPopulationResultsByIdsRequest(); - inValue.batchUploadIds = batchUploadIds; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202311.SegmentPopulationServiceInterface)(this)).getSegmentPopulationResultsByIdsAsync(inValue)).Result.rval); - } + /// Creates a new instance of the + /// class. + public createCreativesRequest() { + } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.SegmentPopulationService.performSegmentPopulationActionResponse Google.Api.Ads.AdManager.v202311.SegmentPopulationServiceInterface.performSegmentPopulationAction(Wrappers.SegmentPopulationService.performSegmentPopulationActionRequest request) { - return base.Channel.performSegmentPopulationAction(request); + /// Creates a new instance of the + /// class. + public createCreativesRequest(Google.Api.Ads.AdManager.v202411.Creative[] creatives) { + this.creatives = creatives; + } } - /// Performs an action on the uploads denoted by . - /// - public virtual Google.Api.Ads.AdManager.v202311.UpdateResult performSegmentPopulationAction(Google.Api.Ads.AdManager.v202311.SegmentPopulationAction action, long[] batchUploadIds) { - Wrappers.SegmentPopulationService.performSegmentPopulationActionRequest inValue = new Wrappers.SegmentPopulationService.performSegmentPopulationActionRequest(); - inValue.action = action; - inValue.batchUploadIds = batchUploadIds; - Wrappers.SegmentPopulationService.performSegmentPopulationActionResponse retVal = ((Google.Api.Ads.AdManager.v202311.SegmentPopulationServiceInterface)(this)).performSegmentPopulationAction(inValue); - return retVal.rval; - } + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202311.SegmentPopulationServiceInterface.performSegmentPopulationActionAsync(Wrappers.SegmentPopulationService.performSegmentPopulationActionRequest request) { - return base.Channel.performSegmentPopulationActionAsync(request); - } + [System.ServiceModel.MessageContractAttribute(WrapperName = "createCreativesResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class createCreativesResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("rval")] + public Google.Api.Ads.AdManager.v202411.Creative[] rval; - public virtual System.Threading.Tasks.Task performSegmentPopulationActionAsync(Google.Api.Ads.AdManager.v202311.SegmentPopulationAction action, long[] batchUploadIds) { - Wrappers.SegmentPopulationService.performSegmentPopulationActionRequest inValue = new Wrappers.SegmentPopulationService.performSegmentPopulationActionRequest(); - inValue.action = action; - inValue.batchUploadIds = batchUploadIds; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202311.SegmentPopulationServiceInterface)(this)).performSegmentPopulationActionAsync(inValue)).Result.rval); - } + /// Creates a new instance of the + /// class. + public createCreativesResponse() { + } - /// Updates identifiers in an audience segment.

The returned SegmentPopulationRequest#batchUploadId - /// can be used in subsequent requests to group them together as part of the same - /// batch. The identifiers associated with a batch will not be processed until #performSegmentPopulationAction is - /// called with a ProcessAction. The batch will expire if ProcessAction is not - /// called within the TTL of 5 days.

- ///
- public virtual Google.Api.Ads.AdManager.v202311.SegmentPopulationResponse updateSegmentMemberships(Google.Api.Ads.AdManager.v202311.SegmentPopulationRequest updateRequest) { - return base.Channel.updateSegmentMemberships(updateRequest); + /// Creates a new instance of the + /// class. + public createCreativesResponse(Google.Api.Ads.AdManager.v202411.Creative[] rval) { + this.rval = rval; + } } - public virtual System.Threading.Tasks.Task updateSegmentMembershipsAsync(Google.Api.Ads.AdManager.v202311.SegmentPopulationRequest updateRequest) { - return base.Channel.updateSegmentMembershipsAsync(updateRequest); - } - } - namespace Wrappers.DaiAuthenticationKeyService - { + [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "createDaiAuthenticationKeys", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class createDaiAuthenticationKeysRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("daiAuthenticationKeys")] - public Google.Api.Ads.AdManager.v202311.DaiAuthenticationKey[] daiAuthenticationKeys; + [System.ServiceModel.MessageContractAttribute(WrapperName = "updateCreatives", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class updateCreativesRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("creatives")] + public Google.Api.Ads.AdManager.v202411.Creative[] creatives; - /// Creates a new instance of the class. - public createDaiAuthenticationKeysRequest() { + /// Creates a new instance of the + /// class. + public updateCreativesRequest() { } - /// Creates a new instance of the class. - public createDaiAuthenticationKeysRequest(Google.Api.Ads.AdManager.v202311.DaiAuthenticationKey[] daiAuthenticationKeys) { - this.daiAuthenticationKeys = daiAuthenticationKeys; + /// Creates a new instance of the + /// class. + public updateCreativesRequest(Google.Api.Ads.AdManager.v202411.Creative[] creatives) { + this.creatives = creatives; } } @@ -64979,5663 +63803,5625 @@ public createDaiAuthenticationKeysRequest(Google.Api.Ads.AdManager.v202311.DaiAu [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "createDaiAuthenticationKeysResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class createDaiAuthenticationKeysResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "updateCreativesResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202411", IsWrapped = true)] + public partial class updateCreativesResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", Order = 0)] [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v202311.DaiAuthenticationKey[] rval; + public Google.Api.Ads.AdManager.v202411.Creative[] rval; - /// Creates a new instance of the class. - public createDaiAuthenticationKeysResponse() { + /// Creates a new instance of the + /// class. + public updateCreativesResponse() { } - /// Creates a new instance of the class. - public createDaiAuthenticationKeysResponse(Google.Api.Ads.AdManager.v202311.DaiAuthenticationKey[] rval) { + /// Creates a new instance of the + /// class. + public updateCreativesResponse(Google.Api.Ads.AdManager.v202411.Creative[] rval) { this.rval = rval; } } + } + /// A base class for storing values of the CreativeTemplateVariable. + /// + [System.Xml.Serialization.XmlIncludeAttribute(typeof(UrlCreativeTemplateVariableValue))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(StringCreativeTemplateVariableValue))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(LongCreativeTemplateVariableValue))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(AssetCreativeTemplateVariableValue))] + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public abstract partial class BaseCreativeTemplateVariableValue { + private string uniqueNameField; + + /// A uniqueName of the CreativeTemplateVariable. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public string uniqueName { + get { + return this.uniqueNameField; + } + set { + this.uniqueNameField = value; + } + } + } - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "updateDaiAuthenticationKeys", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class updateDaiAuthenticationKeysRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("daiAuthenticationKeys")] - public Google.Api.Ads.AdManager.v202311.DaiAuthenticationKey[] daiAuthenticationKeys; + /// Stores values of CreativeTemplateVariable + /// of VariableType#URL. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class UrlCreativeTemplateVariableValue : BaseCreativeTemplateVariableValue { + private string valueField; - /// Creates a new instance of the class. - public updateDaiAuthenticationKeysRequest() { + /// The url value of CreativeTemplateVariable + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public string value { + get { + return this.valueField; + } + set { + this.valueField = value; } + } + } - /// Creates a new instance of the class. - public updateDaiAuthenticationKeysRequest(Google.Api.Ads.AdManager.v202311.DaiAuthenticationKey[] daiAuthenticationKeys) { - this.daiAuthenticationKeys = daiAuthenticationKeys; + + /// Stores values of CreativeTemplateVariable + /// of VariableType#STRING and VariableType#LIST. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class StringCreativeTemplateVariableValue : BaseCreativeTemplateVariableValue { + private string valueField; + + /// The string value of CreativeTemplateVariable + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public string value { + get { + return this.valueField; + } + set { + this.valueField = value; } } + } - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "updateDaiAuthenticationKeysResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class updateDaiAuthenticationKeysResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v202311.DaiAuthenticationKey[] rval; + /// Stores values of CreativeTemplateVariable + /// of VariableType#LONG. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class LongCreativeTemplateVariableValue : BaseCreativeTemplateVariableValue { + private long valueField; - /// Creates a new instance of the class. - public updateDaiAuthenticationKeysResponse() { + private bool valueFieldSpecified; + + /// The long value of CreativeTemplateVariable + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public long value { + get { + return this.valueField; + } + set { + this.valueField = value; + this.valueSpecified = true; + } + } + + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool valueSpecified { + get { + return this.valueFieldSpecified; + } + set { + this.valueFieldSpecified = value; } + } + } + + + /// Stores values of CreativeTemplateVariable + /// of VariableType#ASSET. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class AssetCreativeTemplateVariableValue : BaseCreativeTemplateVariableValue { + private CreativeAsset assetField; - /// Creates a new instance of the class. - public updateDaiAuthenticationKeysResponse(Google.Api.Ads.AdManager.v202311.DaiAuthenticationKey[] rval) { - this.rval = rval; + /// The associated asset. This attribute is required when creating a new + /// TemplateCreative. To view the asset, use CreativeAsset#assetUrl. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public CreativeAsset asset { + get { + return this.assetField; + } + set { + this.assetField = value; } } } - /// A DaiAuthenticationKey is used to authenticate stream requests to - /// the IMA SDK API. + + + /// A CreativeAsset is an asset that can be used in creatives. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class DaiAuthenticationKey { - private long idField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class CreativeAsset { + private long assetIdField; - private bool idFieldSpecified; + private bool assetIdFieldSpecified; - private string keyField; + private byte[] assetByteArrayField; - private DateTime creationDateTimeField; + private string fileNameField; - private DaiAuthenticationKeyStatus statusField; + private long fileSizeField; - private bool statusFieldSpecified; + private bool fileSizeFieldSpecified; - private string nameField; + private string assetUrlField; - private DaiAuthenticationKeyType keyTypeField; + private Size sizeField; - private bool keyTypeFieldSpecified; + private ClickTag[] clickTagsField; - /// The unique ID of the DaiAuthenticationKey. - /// This value is read-only and is assigned by Google. + private ImageDensity imageDensityField; + + private bool imageDensityFieldSpecified; + + /// The ID of the asset. This attribute is generated by Google upon creation. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public long id { + public long assetId { get { - return this.idField; + return this.assetIdField; } set { - this.idField = value; - this.idSpecified = true; + this.assetIdField = value; + this.assetIdSpecified = true; } } - /// true, if a value is specified for , + /// true, if a value is specified for , /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool idSpecified { + public bool assetIdSpecified { get { - return this.idFieldSpecified; + return this.assetIdFieldSpecified; } set { - this.idFieldSpecified = value; + this.assetIdFieldSpecified = value; } } - /// The value of the secure key. This value is read-only and is assigned by Google. + /// The content of the asset as a byte array. This attribute is required when + /// creating the creative that contains this asset if an assetId is not + /// provided.

When updating the content, pass a new byte array, and set + /// to null. Otherwise, this field can be null.

The + /// assetByteArray will be null when the creative is + /// retrieved.

///
- [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public string key { + [System.Xml.Serialization.XmlElementAttribute(DataType = "base64Binary", Order = 1)] + public byte[] assetByteArray { get { - return this.keyField; + return this.assetByteArrayField; } set { - this.keyField = value; + this.assetByteArrayField = value; } } - /// The date and time this DaiAuthenticationKey - /// was created. This value is read-only and is assigned by Google. + /// The file name of the asset. This attribute is required when creating a new asset + /// (e.g. when #assetByteArray is not null). /// [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public DateTime creationDateTime { + public string fileName { get { - return this.creationDateTimeField; + return this.fileNameField; } set { - this.creationDateTimeField = value; + this.fileNameField = value; } } - /// The status of this DaiAuthenticationKey. This - /// value is read-only and is assigned by Google.

DAI authentication keys are - /// created in the DaiAuthenticationKeyStatus#ACTIVE - /// state. The status can only be modified through the DaiAuthenticationKeyService#performDaiAuthenticationKeyAction - /// method.

Only active keys will be accepted by the IMA SDK API as - /// valid.

+ /// The file size of the asset in bytes. This attribute is read-only. /// [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public DaiAuthenticationKeyStatus status { + public long fileSize { get { - return this.statusField; + return this.fileSizeField; } set { - this.statusField = value; - this.statusSpecified = true; + this.fileSizeField = value; + this.fileSizeSpecified = true; } } - /// true, if a value is specified for , - /// false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool statusSpecified { + public bool fileSizeSpecified { get { - return this.statusFieldSpecified; + return this.fileSizeFieldSpecified; } set { - this.statusFieldSpecified = value; + this.fileSizeFieldSpecified = value; } } - /// The name for this DaiAuthenticationKey. + /// A URL where the asset can be previewed at. This field is read-only and set by + /// Google. /// [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public string name { + public string assetUrl { get { - return this.nameField; + return this.assetUrlField; } set { - this.nameField = value; + this.assetUrlField = value; } } - /// The type of this key, which determines how it should be used on stream create - /// requests. + /// The size of the asset. Note that this may not always reflect the actual physical + /// size of the asset, but may reflect the expected size. This attribute is + /// read-only and is populated by Google. /// [System.Xml.Serialization.XmlElementAttribute(Order = 5)] - public DaiAuthenticationKeyType keyType { + public Size size { get { - return this.keyTypeField; + return this.sizeField; } set { - this.keyTypeField = value; - this.keyTypeSpecified = true; + this.sizeField = value; } } - /// true, if a value is specified for , - /// false otherwise. + /// The click tags of the asset. This field is read-only. + /// + [System.Xml.Serialization.XmlElementAttribute("clickTags", Order = 6)] + public ClickTag[] clickTags { + get { + return this.clickTagsField; + } + set { + this.clickTagsField = value; + } + } + + /// The display density of the image. This is the ratio between a dimension in + /// pixels of the image and the dimension in pixels that it should occupy in + /// device-independent pixels when displayed. This attribute is optional and + /// defaults to ONE_TO_ONE. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 7)] + public ImageDensity imageDensity { + get { + return this.imageDensityField; + } + set { + this.imageDensityField = value; + this.imageDensitySpecified = true; + } + } + + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool keyTypeSpecified { + public bool imageDensitySpecified { get { - return this.keyTypeFieldSpecified; + return this.imageDensityFieldSpecified; } set { - this.keyTypeFieldSpecified = value; + this.imageDensityFieldSpecified = value; } } } - /// Statuses associated with DaiAuthenticationKey - /// objects. + /// Click tags define click-through URLs for each exit on an HTML5 creative. An exit + /// is any area that can be clicked that directs the browser to a landing page. Each + /// click tag defines the click-through URL for a different exit. In Ad Manager, + /// tracking pixels are attached to the click tags if URLs are valid. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum DaiAuthenticationKeyStatus { - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 0, - /// Indicates that the API key is actively in use and that the IMA SDK API should - /// accept it as a valid key in requests. + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ClickTag { + private string nameField; + + private string urlField; + + /// Name of the click tag, follows the regex "clickTag\\d*" /// - ACTIVE = 1, - /// Indicates that the API key is no longer is use and that the IMA SDK API should - /// not accept it as a valid key in requests. + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public string name { + get { + return this.nameField; + } + set { + this.nameField = value; + } + } + + /// URL of the click tag. /// - INACTIVE = 2, + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public string url { + get { + return this.urlField; + } + set { + this.urlField = value; + } + } } - /// Key types associated with DaiAuthenticationKey objects. + /// Image densities. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum DaiAuthenticationKeyType { - /// The value returned if the actual value is not exposed by the requested API - /// version. + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum ImageDensity { + /// Indicates that there is a 1:1 ratio between the dimensions of the raw image and + /// the dimensions that it should be displayed at in device-independent pixels. /// - UNKNOWN = 0, - /// Indicates that the key is a standard API key and should be used with the api-key - /// SDK parameter when authenticating stream create requests. + ONE_TO_ONE = 0, + /// Indicates that there is a 3:2 ratio between the dimensions of the raw image and + /// the dimensions that it should be displayed at in device-independent pixels. /// - API = 1, - /// Indicates that the key is an HMAC key and should be used to generate a signature - /// for the stream create request with the auth-token SDK parameter. + THREE_TO_TWO = 1, + /// Indicates that there is a 2:1 ratio between the dimensions of the raw image and + /// the dimensions that it should be displayed at in device-independent pixels. /// - HMAC = 2, + TWO_TO_ONE = 2, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 3, } - /// Lists all errors associated with DAI authentication key actions. + /// A CustomCreativeAsset is an association between a CustomCreative and an asset. Any assets that are + /// associated with a creative can be inserted into its HTML snippet. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class DaiAuthenticationKeyActionError : ApiError { - private DaiAuthenticationKeyActionErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class CustomCreativeAsset { + private string macroNameField; - private bool reasonFieldSpecified; + private CreativeAsset assetField; + /// The name by which the associated asset will be referenced. For example, if the + /// value is "foo", then the asset can be inserted into an HTML snippet using the + /// macro: "%%FILE:foo%%". + /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public DaiAuthenticationKeyActionErrorReason reason { + public string macroName { get { - return this.reasonField; + return this.macroNameField; } set { - this.reasonField = value; - this.reasonSpecified = true; + this.macroNameField = value; } } - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { + /// The asset. This attribute is required. To view the asset, use CreativeAsset#assetUrl. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public CreativeAsset asset { get { - return this.reasonFieldSpecified; + return this.assetField; } set { - this.reasonFieldSpecified = value; + this.assetField = value; } } } - /// Describes reasons for DaiAuthenticationKeyActionError. + /// Metadata for a video asset. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "DaiAuthenticationKeyActionError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum DaiAuthenticationKeyActionErrorReason { - /// The operation is not applicable to the current status. - /// - INVALID_STATUS_TRANSITION = 0, - /// A DAI authentication key cannot be deactivated if it is used by active content - /// sources. - /// - CANNOT_DEACTIVATE_IF_USED_BY_ACTIVE_CONTENT_SOURCES = 1, - /// A DAI authentication key cannot be deactivated if it is used by active live - /// streams. - /// - CANNOT_DEACTIVATE_IF_USED_BY_ACTIVE_LIVE_STREAMS = 2, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 3, - } + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class VideoMetadata { + private ScalableType scalableTypeField; + private bool scalableTypeFieldSpecified; - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", ConfigurationName = "Google.Api.Ads.AdManager.v202311.DaiAuthenticationKeyServiceInterface")] - public interface DaiAuthenticationKeyServiceInterface - { - // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Wrappers.DaiAuthenticationKeyService.createDaiAuthenticationKeysResponse createDaiAuthenticationKeys(Wrappers.DaiAuthenticationKeyService.createDaiAuthenticationKeysRequest request); + private int durationField; - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task createDaiAuthenticationKeysAsync(Wrappers.DaiAuthenticationKeyService.createDaiAuthenticationKeysRequest request); + private bool durationFieldSpecified; - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v202311.DaiAuthenticationKeyPage getDaiAuthenticationKeysByStatement(Google.Api.Ads.AdManager.v202311.Statement filterStatement); + private int bitRateField; - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getDaiAuthenticationKeysByStatementAsync(Google.Api.Ads.AdManager.v202311.Statement filterStatement); + private bool bitRateFieldSpecified; - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v202311.UpdateResult performDaiAuthenticationKeyAction(Google.Api.Ads.AdManager.v202311.DaiAuthenticationKeyAction daiAuthenticationKeyAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement); + private int minimumBitRateField; - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task performDaiAuthenticationKeyActionAsync(Google.Api.Ads.AdManager.v202311.DaiAuthenticationKeyAction daiAuthenticationKeyAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement); + private bool minimumBitRateFieldSpecified; - // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Wrappers.DaiAuthenticationKeyService.updateDaiAuthenticationKeysResponse updateDaiAuthenticationKeys(Wrappers.DaiAuthenticationKeyService.updateDaiAuthenticationKeysRequest request); + private int maximumBitRateField; - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task updateDaiAuthenticationKeysAsync(Wrappers.DaiAuthenticationKeyService.updateDaiAuthenticationKeysRequest request); - } + private bool maximumBitRateFieldSpecified; + private Size sizeField; - /// Captures a page of DaiAuthenticationKey - /// objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class DaiAuthenticationKeyPage { - private int totalResultSetSizeField; + private MimeType mimeTypeField; - private bool totalResultSetSizeFieldSpecified; + private bool mimeTypeFieldSpecified; - private int startIndexField; + private VideoDeliveryType deliveryTypeField; - private bool startIndexFieldSpecified; + private bool deliveryTypeFieldSpecified; - private DaiAuthenticationKey[] resultsField; + private string[] codecsField; - /// The size of the total result set to which this page belongs. + /// The scalable type of the asset. This attribute is required. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public int totalResultSetSize { + public ScalableType scalableType { + get { + return this.scalableTypeField; + } + set { + this.scalableTypeField = value; + this.scalableTypeSpecified = true; + } + } + + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool scalableTypeSpecified { + get { + return this.scalableTypeFieldSpecified; + } + set { + this.scalableTypeFieldSpecified = value; + } + } + + /// The duration of the asset in milliseconds. This attribute is required. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public int duration { + get { + return this.durationField; + } + set { + this.durationField = value; + this.durationSpecified = true; + } + } + + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool durationSpecified { + get { + return this.durationFieldSpecified; + } + set { + this.durationFieldSpecified = value; + } + } + + /// The bit rate of the asset in kbps. If the asset can play at a range of bit rates + /// (such as an Http Live Streaming video), then set the bit rate to zero and + /// populate the minimum and maximum bit rate instead. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public int bitRate { + get { + return this.bitRateField; + } + set { + this.bitRateField = value; + this.bitRateSpecified = true; + } + } + + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool bitRateSpecified { + get { + return this.bitRateFieldSpecified; + } + set { + this.bitRateFieldSpecified = value; + } + } + + /// The minimum bitrate of the video in kbps. Only set this if the asset can play at + /// a range of bit rates. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 3)] + public int minimumBitRate { + get { + return this.minimumBitRateField; + } + set { + this.minimumBitRateField = value; + this.minimumBitRateSpecified = true; + } + } + + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool minimumBitRateSpecified { + get { + return this.minimumBitRateFieldSpecified; + } + set { + this.minimumBitRateFieldSpecified = value; + } + } + + /// The maximum bitrate of the video in kbps. Only set this if the asset can play at + /// a range of bit rates. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 4)] + public int maximumBitRate { + get { + return this.maximumBitRateField; + } + set { + this.maximumBitRateField = value; + this.maximumBitRateSpecified = true; + } + } + + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool maximumBitRateSpecified { + get { + return this.maximumBitRateFieldSpecified; + } + set { + this.maximumBitRateFieldSpecified = value; + } + } + + /// The size (width and height) of the asset. This attribute is required. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 5)] + public Size size { + get { + return this.sizeField; + } + set { + this.sizeField = value; + } + } + + /// The mime type of the asset. This attribute is required. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 6)] + public MimeType mimeType { get { - return this.totalResultSetSizeField; + return this.mimeTypeField; } set { - this.totalResultSetSizeField = value; - this.totalResultSetSizeSpecified = true; + this.mimeTypeField = value; + this.mimeTypeSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool totalResultSetSizeSpecified { + public bool mimeTypeSpecified { get { - return this.totalResultSetSizeFieldSpecified; + return this.mimeTypeFieldSpecified; } set { - this.totalResultSetSizeFieldSpecified = value; + this.mimeTypeFieldSpecified = value; } } - /// The absolute index in the total result set on which this page begins. + /// The delivery type of the asset. This attribute is required. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public int startIndex { + [System.Xml.Serialization.XmlElementAttribute(Order = 7)] + public VideoDeliveryType deliveryType { get { - return this.startIndexField; + return this.deliveryTypeField; } set { - this.startIndexField = value; - this.startIndexSpecified = true; + this.deliveryTypeField = value; + this.deliveryTypeSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool startIndexSpecified { + public bool deliveryTypeSpecified { get { - return this.startIndexFieldSpecified; + return this.deliveryTypeFieldSpecified; } set { - this.startIndexFieldSpecified = value; + this.deliveryTypeFieldSpecified = value; } } - /// The collection of live stream events contained within this page. + /// The codecs of the asset. This attribute is optional and defaults to an empty + /// list. /// - [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] - public DaiAuthenticationKey[] results { + [System.Xml.Serialization.XmlElementAttribute("codecs", Order = 8)] + public string[] codecs { get { - return this.resultsField; + return this.codecsField; } set { - this.resultsField = value; + this.codecsField = value; } } } - /// Represents the actions that can be performed on DaiAuthenticationKey objects. + /// The different ways a video/flash can scale. /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(DeactivateDaiAuthenticationKeys))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ActivateDaiAuthenticationKeys))] [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public abstract partial class DaiAuthenticationKeyAction { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum ScalableType { + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 0, + /// The creative should not be scaled. + /// + NOT_SCALABLE = 1, + /// The creative can be scaled and its aspect-ratio must be maintained. + /// + RATIO_SCALABLE = 2, + /// The creative can be scaled and its aspect-ratio can be distorted. + /// + STRETCH_SCALABLE = 3, } - /// The action used for deactivating DaiAuthenticationKey objects. + /// Enum of supported mime types /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class DeactivateDaiAuthenticationKeys : DaiAuthenticationKeyAction { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum MimeType { + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 0, + /// application/x-asp + /// + ASP = 1, + /// audio/aiff + /// + AUDIO_AIFF = 2, + /// audio/basic + /// + AUDIO_BASIC = 3, + /// audio/flac + /// + AUDIO_FLAC = 4, + /// audio/mid + /// + AUDIO_MID = 5, + /// audio/mpeg + /// + AUDIO_MP3 = 6, + /// audio/mp4 + /// + AUDIO_MP4 = 7, + /// audio/x-mpegurl + /// + AUDIO_MPEG_URL = 8, + /// audio/x-ms-wma + /// + AUDIO_MS_WMA = 9, + /// audio/ogg + /// + AUDIO_OGG = 10, + /// audio/x-pn-realaudio-plugin + /// + AUDIO_REAL_AUDIO_PLUGIN = 11, + /// audio/x-wav + /// + AUDIO_WAV = 12, + /// application/binary + /// + BINARY = 13, + /// application/dash+xml + /// + DASH = 62, + /// application/x-director + /// + DIRECTOR = 14, + /// application/x-shockwave-flash + /// + FLASH = 15, + /// application/graphicconverter + /// + GRAPHIC_CONVERTER = 16, + /// application/x-javascript + /// + JAVASCRIPT = 17, + /// application/json + /// + JSON = 18, + /// image/x-win-bitmap + /// + IMAGE_BITMAP = 19, + /// image/bmp + /// + IMAGE_BMP = 20, + /// image/gif + /// + IMAGE_GIF = 21, + /// image/jpeg + /// + IMAGE_JPEG = 22, + /// image/photoshop + /// + IMAGE_PHOTOSHOP = 23, + /// image/png + /// + IMAGE_PNG = 24, + /// image/tiff + /// + IMAGE_TIFF = 25, + /// image/vnd.wap.wbmp + /// + IMAGE_WBMP = 26, + /// application/x-mpegURL + /// + M3U8 = 27, + /// application/mac-binhex40 + /// + MAC_BIN_HEX_40 = 28, + /// application/vnd.ms-excel + /// + MS_EXCEL = 29, + /// application/ms-powerpoint + /// + MS_POWERPOINT = 30, + /// application/msword + /// + MS_WORD = 31, + /// application/octet-stream + /// + OCTET_STREAM = 32, + /// application/pdf + /// + PDF = 33, + /// application/postscript + /// + POSTSCRIPT = 34, + /// application/vnd.rn-realmedia + /// + RN_REAL_MEDIA = 35, + /// message/rfc822 + /// + RFC_822 = 36, + /// application/rtf + /// + RTF = 37, + /// text/calendar + /// + TEXT_CALENDAR = 38, + /// text/css + /// + TEXT_CSS = 39, + /// text/csv + /// + TEXT_CSV = 40, + /// text/html + /// + TEXT_HTML = 41, + /// text/java + /// + TEXT_JAVA = 42, + /// text/plain + /// + TEXT_PLAIN = 43, + /// video/3gpp + /// + VIDEO_3GPP = 44, + /// video/3gpp2 + /// + VIDEO_3GPP2 = 45, + /// video/avi + /// + VIDEO_AVI = 46, + /// video/x-flv + /// + VIDEO_FLV = 47, + /// video/mp4 + /// + VIDEO_MP4 = 48, + /// video/mp4v-es + /// + VIDEO_MP4V_ES = 49, + /// video/mpeg + /// + VIDEO_MPEG = 50, + /// video/x-ms-asf + /// + VIDEO_MS_ASF = 51, + /// video/x-ms-wm + /// + VIDEO_MS_WM = 52, + /// video/x-ms-wmv + /// + VIDEO_MS_WMV = 53, + /// video/x-ms-wvx + /// + VIDEO_MS_WVX = 54, + /// video/ogg + /// + VIDEO_OGG = 55, + /// video/x-quicktime + /// + VIDEO_QUICKTIME = 56, + /// video/webm + /// + VIDEO_WEBM = 57, + /// application/xaml+xml + /// + XAML = 58, + /// application/xhtml+xml + /// + XHTML = 59, + /// application/xml + /// + XML = 60, + /// application/zip + /// + ZIP = 61, } - /// The action used for activating DaiAuthenticationKey objects. + /// The video delivery type. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ActivateDaiAuthenticationKeys : DaiAuthenticationKeyAction { - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public interface DaiAuthenticationKeyServiceInterfaceChannel : Google.Api.Ads.AdManager.v202311.DaiAuthenticationKeyServiceInterface, System.ServiceModel.IClientChannel - { - } - - - /// Provides methods for creating, updating and retrieving DaiAuthenticationKey objects. - /// - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public partial class DaiAuthenticationKeyService : AdManagerSoapClient, IDaiAuthenticationKeyService { - /// Creates a new instance of the class. - public DaiAuthenticationKeyService() { - } - - /// Creates a new instance of the class. - public DaiAuthenticationKeyService(string endpointConfigurationName) - : base(endpointConfigurationName) { - } - - /// Creates a new instance of the class. - public DaiAuthenticationKeyService(string endpointConfigurationName, string remoteAddress) - : base(endpointConfigurationName, remoteAddress) { - } - - /// Creates a new instance of the class. - public DaiAuthenticationKeyService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) - : base(endpointConfigurationName, remoteAddress) { - } - - /// Creates a new instance of the class. - public DaiAuthenticationKeyService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) - : base(binding, remoteAddress) { - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.DaiAuthenticationKeyService.createDaiAuthenticationKeysResponse Google.Api.Ads.AdManager.v202311.DaiAuthenticationKeyServiceInterface.createDaiAuthenticationKeys(Wrappers.DaiAuthenticationKeyService.createDaiAuthenticationKeysRequest request) { - return base.Channel.createDaiAuthenticationKeys(request); - } - - /// Creates new DaiAuthenticationKey objects. - ///

The following fields are required:

- ///
- public virtual Google.Api.Ads.AdManager.v202311.DaiAuthenticationKey[] createDaiAuthenticationKeys(Google.Api.Ads.AdManager.v202311.DaiAuthenticationKey[] daiAuthenticationKeys) { - Wrappers.DaiAuthenticationKeyService.createDaiAuthenticationKeysRequest inValue = new Wrappers.DaiAuthenticationKeyService.createDaiAuthenticationKeysRequest(); - inValue.daiAuthenticationKeys = daiAuthenticationKeys; - Wrappers.DaiAuthenticationKeyService.createDaiAuthenticationKeysResponse retVal = ((Google.Api.Ads.AdManager.v202311.DaiAuthenticationKeyServiceInterface)(this)).createDaiAuthenticationKeys(inValue); - return retVal.rval; - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202311.DaiAuthenticationKeyServiceInterface.createDaiAuthenticationKeysAsync(Wrappers.DaiAuthenticationKeyService.createDaiAuthenticationKeysRequest request) { - return base.Channel.createDaiAuthenticationKeysAsync(request); - } - - public virtual System.Threading.Tasks.Task createDaiAuthenticationKeysAsync(Google.Api.Ads.AdManager.v202311.DaiAuthenticationKey[] daiAuthenticationKeys) { - Wrappers.DaiAuthenticationKeyService.createDaiAuthenticationKeysRequest inValue = new Wrappers.DaiAuthenticationKeyService.createDaiAuthenticationKeysRequest(); - inValue.daiAuthenticationKeys = daiAuthenticationKeys; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202311.DaiAuthenticationKeyServiceInterface)(this)).createDaiAuthenticationKeysAsync(inValue)).Result.rval); - } - - /// Gets a DaiAuthenticationKeyPage of DaiAuthenticationKey objects that satisfy the - /// given Statement#query. The following fields are - /// supported for filtering: - /// - /// - ///
PQL Property Object Property
id DaiAuthenticationKey#id
status DaiAuthenticationKey#status
name DaiAuthenticationKey#name
+ [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum VideoDeliveryType { + /// The value returned if the actual value is not exposed by the requested API + /// version. /// - public virtual Google.Api.Ads.AdManager.v202311.DaiAuthenticationKeyPage getDaiAuthenticationKeysByStatement(Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.getDaiAuthenticationKeysByStatement(filterStatement); - } - - public virtual System.Threading.Tasks.Task getDaiAuthenticationKeysByStatementAsync(Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.getDaiAuthenticationKeysByStatementAsync(filterStatement); - } - - /// Performs actions on DaiAuthenticationKey - /// objects that match the given Statement#query.

DAI - /// authentication keys cannot be deactivated if there are active LiveStreamEvents or Content Sources that are using - /// them.

+ UNKNOWN = 0, + /// Video will be served through a progressive download. /// - public virtual Google.Api.Ads.AdManager.v202311.UpdateResult performDaiAuthenticationKeyAction(Google.Api.Ads.AdManager.v202311.DaiAuthenticationKeyAction daiAuthenticationKeyAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.performDaiAuthenticationKeyAction(daiAuthenticationKeyAction, filterStatement); - } - - public virtual System.Threading.Tasks.Task performDaiAuthenticationKeyActionAsync(Google.Api.Ads.AdManager.v202311.DaiAuthenticationKeyAction daiAuthenticationKeyAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.performDaiAuthenticationKeyActionAsync(daiAuthenticationKeyAction, filterStatement); - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.DaiAuthenticationKeyService.updateDaiAuthenticationKeysResponse Google.Api.Ads.AdManager.v202311.DaiAuthenticationKeyServiceInterface.updateDaiAuthenticationKeys(Wrappers.DaiAuthenticationKeyService.updateDaiAuthenticationKeysRequest request) { - return base.Channel.updateDaiAuthenticationKeys(request); - } - - /// Updates the specified DaiAuthenticationKey - /// objects. + PROGRESSIVE = 1, + /// Video will be served via a streaming protocol like HLS or DASH. /// - public virtual Google.Api.Ads.AdManager.v202311.DaiAuthenticationKey[] updateDaiAuthenticationKeys(Google.Api.Ads.AdManager.v202311.DaiAuthenticationKey[] daiAuthenticationKeys) { - Wrappers.DaiAuthenticationKeyService.updateDaiAuthenticationKeysRequest inValue = new Wrappers.DaiAuthenticationKeyService.updateDaiAuthenticationKeysRequest(); - inValue.daiAuthenticationKeys = daiAuthenticationKeys; - Wrappers.DaiAuthenticationKeyService.updateDaiAuthenticationKeysResponse retVal = ((Google.Api.Ads.AdManager.v202311.DaiAuthenticationKeyServiceInterface)(this)).updateDaiAuthenticationKeys(inValue); - return retVal.rval; - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202311.DaiAuthenticationKeyServiceInterface.updateDaiAuthenticationKeysAsync(Wrappers.DaiAuthenticationKeyService.updateDaiAuthenticationKeysRequest request) { - return base.Channel.updateDaiAuthenticationKeysAsync(request); - } - - public virtual System.Threading.Tasks.Task updateDaiAuthenticationKeysAsync(Google.Api.Ads.AdManager.v202311.DaiAuthenticationKey[] daiAuthenticationKeys) { - Wrappers.DaiAuthenticationKeyService.updateDaiAuthenticationKeysRequest inValue = new Wrappers.DaiAuthenticationKeyService.updateDaiAuthenticationKeysRequest(); - inValue.daiAuthenticationKeys = daiAuthenticationKeys; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202311.DaiAuthenticationKeyServiceInterface)(this)).updateDaiAuthenticationKeysAsync(inValue)).Result.rval); - } + STREAMING = 2, } - namespace Wrappers.AudienceSegmentService - { - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "createAudienceSegments", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class createAudienceSegmentsRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("segments")] - public Google.Api.Ads.AdManager.v202311.FirstPartyAudienceSegment[] segments; - - /// Creates a new instance of the class. - public createAudienceSegmentsRequest() { - } - - /// Creates a new instance of the class. - public createAudienceSegmentsRequest(Google.Api.Ads.AdManager.v202311.FirstPartyAudienceSegment[] segments) { - this.segments = segments; - } - } - - - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "createAudienceSegmentsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class createAudienceSegmentsResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v202311.FirstPartyAudienceSegment[] rval; - - /// Creates a new instance of the class. - public createAudienceSegmentsResponse() { - } - - /// Creates a new instance of the class. - public createAudienceSegmentsResponse(Google.Api.Ads.AdManager.v202311.FirstPartyAudienceSegment[] rval) { - this.rval = rval; - } - } - - - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "updateAudienceSegments", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class updateAudienceSegmentsRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("segments")] - public Google.Api.Ads.AdManager.v202311.FirstPartyAudienceSegment[] segments; - - /// Creates a new instance of the class. - public updateAudienceSegmentsRequest() { - } - - /// Creates a new instance of the class. - public updateAudienceSegmentsRequest(Google.Api.Ads.AdManager.v202311.FirstPartyAudienceSegment[] segments) { - this.segments = segments; - } - } - - - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "updateAudienceSegmentsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class updateAudienceSegmentsResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v202311.FirstPartyAudienceSegment[] rval; - /// Creates a new instance of the class. - public updateAudienceSegmentsResponse() { - } - /// Creates a new instance of the class. - public updateAudienceSegmentsResponse(Google.Api.Ads.AdManager.v202311.FirstPartyAudienceSegment[] rval) { - this.rval = rval; - } - } - } - /// Rule of a FirstPartyAudienceSegment that - /// defines user's eligibility criteria to be part of a segment. + /// Base asset properties. /// + [System.Xml.Serialization.XmlIncludeAttribute(typeof(RedirectAsset))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(VideoRedirectAsset))] [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class FirstPartyAudienceSegmentRule { - private InventoryTargeting inventoryRuleField; - - private CustomCriteriaSet customCriteriaRuleField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public abstract partial class Asset { + } - /// Specifies the inventory (i.e. ad units and placements) that are part of the rule - /// of a FirstPartyAudienceSegment. This attribute is required. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public InventoryTargeting inventoryRule { - get { - return this.inventoryRuleField; - } - set { - this.inventoryRuleField = value; - } - } - /// Specifies the collection of custom criteria that are part of the rule of a FirstPartyAudienceSegment.

Once the FirstPartyAudienceSegment is updated or - /// modified with custom criteria, the server may return a normalized, but - /// equivalent representation of the custom criteria rule.

The resulting - /// custom criteria rule would be of the form:

+ /// An externally hosted asset. + /// + [System.Xml.Serialization.XmlIncludeAttribute(typeof(VideoRedirectAsset))] + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public abstract partial class RedirectAsset : Asset { + private string redirectUrlField; + + /// The URL where the asset is hosted. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public CustomCriteriaSet customCriteriaRule { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public string redirectUrl { get { - return this.customCriteriaRuleField; + return this.redirectUrlField; } set { - this.customCriteriaRuleField = value; + this.redirectUrlField = value; } } } - /// Data provider that owns this segment. For a FirstPartyAudienceSegment, it would be the - /// publisher network. For a SharedAudienceSegment or a ThirdPartyAudienceSegment, it would be the - /// entity that provides that AudienceSegment. + /// An externally-hosted video asset. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class AudienceSegmentDataProvider { - private string nameField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class VideoRedirectAsset : RedirectAsset { + private VideoMetadata metadataField; - /// Name of the data provider. This attribute is readonly and is assigned by Google. + /// Metadata related to the asset. This attribute is required. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public string name { + public VideoMetadata metadata { get { - return this.nameField; + return this.metadataField; } set { - this.nameField = value; + this.metadataField = value; } } } - /// An AudienceSegment represents audience segment - /// object. + /// Represents a child asset in RichMediaStudioCreative. /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(SharedAudienceSegment))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ThirdPartyAudienceSegment))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(FirstPartyAudienceSegment))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(RuleBasedFirstPartyAudienceSegmentSummary))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(RuleBasedFirstPartyAudienceSegment))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(NonRuleBasedFirstPartyAudienceSegment))] [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class AudienceSegment { - private long idField; - - private bool idFieldSpecified; - + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class RichMediaStudioChildAssetProperty { private string nameField; - private long[] categoryIdsField; - - private string descriptionField; - - private AudienceSegmentStatus statusField; - - private bool statusFieldSpecified; - - private long sizeField; - - private bool sizeFieldSpecified; - - private long mobileWebSizeField; - - private bool mobileWebSizeFieldSpecified; - - private long idfaSizeField; + private RichMediaStudioChildAssetPropertyType typeField; - private bool idfaSizeFieldSpecified; + private bool typeFieldSpecified; - private long adIdSizeField; + private long totalFileSizeField; - private bool adIdSizeFieldSpecified; + private bool totalFileSizeFieldSpecified; - private long ppidSizeField; + private int widthField; - private bool ppidSizeFieldSpecified; + private bool widthFieldSpecified; - private AudienceSegmentDataProvider dataProviderField; + private int heightField; - private AudienceSegmentType typeField; + private bool heightFieldSpecified; - private bool typeFieldSpecified; + private string urlField; - /// Id of the AudienceSegment. This attribute is - /// readonly and is populated by Google. + /// The name of the asset as known by Rich Media Studio. This attribute is readonly. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public long id { + public string name { get { - return this.idField; + return this.nameField; } set { - this.idField = value; - this.idSpecified = true; + this.nameField = value; } } - /// true, if a value is specified for , + /// Required file type of the asset. This attribute is readonly. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public RichMediaStudioChildAssetPropertyType type { + get { + return this.typeField; + } + set { + this.typeField = value; + this.typeSpecified = true; + } + } + + /// true, if a value is specified for , /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool idSpecified { + public bool typeSpecified { get { - return this.idFieldSpecified; + return this.typeFieldSpecified; } set { - this.idFieldSpecified = value; + this.typeFieldSpecified = value; } } - /// Name of the AudienceSegment. This attribute is - /// required and has a maximum length of 255 characters. + /// The total size of the asset in bytes. This attribute is readonly. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public string name { + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public long totalFileSize { get { - return this.nameField; + return this.totalFileSizeField; } set { - this.nameField = value; + this.totalFileSizeField = value; + this.totalFileSizeSpecified = true; } } - /// The ids of the categories this segment belongs to. This field is optional, it - /// may be empty. - /// - [System.Xml.Serialization.XmlElementAttribute("categoryIds", Order = 2)] - public long[] categoryIds { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool totalFileSizeSpecified { get { - return this.categoryIdsField; + return this.totalFileSizeFieldSpecified; } set { - this.categoryIdsField = value; + this.totalFileSizeFieldSpecified = value; } } - /// Description of the AudienceSegment. This attribute - /// is optional and has a maximum length of 8192 characters. + /// Width of the widget in pixels. This attribute is readonly. /// [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public string description { + public int width { get { - return this.descriptionField; + return this.widthField; } set { - this.descriptionField = value; + this.widthField = value; + this.widthSpecified = true; } } - /// Status of the AudienceSegment. This controls - /// whether the given segment is available for targeting or not. During creation - /// this attribute is optional and defaults to ACTIVE. This attribute - /// is readonly for updates. + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool widthSpecified { + get { + return this.widthFieldSpecified; + } + set { + this.widthFieldSpecified = value; + } + } + + /// Height of the widget in pixels. This attribute is readonly. /// [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public AudienceSegmentStatus status { + public int height { get { - return this.statusField; + return this.heightField; } set { - this.statusField = value; - this.statusSpecified = true; + this.heightField = value; + this.heightSpecified = true; } } - /// true, if a value is specified for , + /// true, if a value is specified for , /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool statusSpecified { + public bool heightSpecified { get { - return this.statusFieldSpecified; + return this.heightFieldSpecified; } set { - this.statusFieldSpecified = value; + this.heightFieldSpecified = value; } } - /// Number of unique identifiers in the AudienceSegment. This attribute is readonly and is - /// populated by Google. + /// The URL of the asset. This attribute is readonly. /// [System.Xml.Serialization.XmlElementAttribute(Order = 5)] - public long size { + public string url { get { - return this.sizeField; + return this.urlField; } set { - this.sizeField = value; - this.sizeSpecified = true; + this.urlField = value; } } + } - /// true, if a value is specified for , - /// false otherwise. + + /// Type of RichMediaStudioChildAssetProperty + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "RichMediaStudioChildAssetProperty.Type", Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum RichMediaStudioChildAssetPropertyType { + /// SWF files + /// + FLASH = 0, + /// FLVS and any other video file types + /// + VIDEO = 1, + /// Image files + /// + IMAGE = 2, + /// The rest of the supported file types .txt, .xml, etc. + /// + DATA = 3, + } + + + /// A Creative represents the media for the ad being served.

Read + /// more about creatives on the Ad Manager Help + /// Center.

+ ///
+ [System.Xml.Serialization.XmlIncludeAttribute(typeof(VastRedirectCreative))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(UnsupportedCreative))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ThirdPartyCreative))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(TemplateCreative))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ProgrammaticCreative))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(LegacyDfpCreative))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(InternalRedirectCreative))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(Html5Creative))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(HasDestinationUrlCreative))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(CustomCreative))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(BaseVideoCreative))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(VideoRedirectCreative))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(VideoCreative))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(SetTopBoxCreative))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(BaseImageRedirectCreative))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ImageRedirectOverlayCreative))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ImageRedirectCreative))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(BaseImageCreative))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ImageOverlayCreative))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ImageCreative))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(BaseAudioCreative))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(AudioRedirectCreative))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(AudioCreative))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(AspectRatioImageCreative))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ClickTrackingCreative))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(BaseRichMediaStudioCreative))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(RichMediaStudioCreative))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(BaseDynamicAllocationCreative))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(HasHtmlSnippetDynamicAllocationCreative))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(AdSenseCreative))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(AdExchangeCreative))] + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public abstract partial class Creative { + private long advertiserIdField; + + private bool advertiserIdFieldSpecified; + + private long idField; + + private bool idFieldSpecified; + + private string nameField; + + private Size sizeField; + + private string previewUrlField; + + private CreativePolicyViolation[] policyLabelsField; + + private AppliedLabel[] appliedLabelsField; + + private DateTime lastModifiedDateTimeField; + + private BaseCustomFieldValue[] customFieldValuesField; + + private ThirdPartyDataDeclaration thirdPartyDataDeclarationField; + + private bool adBadgingEnabledField; + + private bool adBadgingEnabledFieldSpecified; + + /// The ID of the advertiser that owns the creative. This attribute is required. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public long advertiserId { + get { + return this.advertiserIdField; + } + set { + this.advertiserIdField = value; + this.advertiserIdSpecified = true; + } + } + + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool sizeSpecified { + public bool advertiserIdSpecified { get { - return this.sizeFieldSpecified; + return this.advertiserIdFieldSpecified; } set { - this.sizeFieldSpecified = value; + this.advertiserIdFieldSpecified = value; } } - /// Number of unique identifiers in the AudienceSegment for mobile web. This attribute is - /// read-only. + /// Uniquely identifies the Creative. This value is read-only and is + /// assigned by Google when the creative is created. This attribute is required for + /// updates. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 6)] - public long mobileWebSize { + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public long id { get { - return this.mobileWebSizeField; + return this.idField; } set { - this.mobileWebSizeField = value; - this.mobileWebSizeSpecified = true; + this.idField = value; + this.idSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , + /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool mobileWebSizeSpecified { + public bool idSpecified { get { - return this.mobileWebSizeFieldSpecified; + return this.idFieldSpecified; } set { - this.mobileWebSizeFieldSpecified = value; + this.idFieldSpecified = value; } } - /// Number of unique IDFA identifiers in the AudienceSegment. This attribute is read-only. + /// The name of the creative. This attribute is required and has a maximum length of + /// 255 characters. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 7)] - public long idfaSize { + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public string name { get { - return this.idfaSizeField; + return this.nameField; } set { - this.idfaSizeField = value; - this.idfaSizeSpecified = true; + this.nameField = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool idfaSizeSpecified { + /// The Size of the creative. This attribute is required for + /// creation and then is read-only. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 3)] + public Size size { get { - return this.idfaSizeFieldSpecified; + return this.sizeField; } set { - this.idfaSizeFieldSpecified = value; + this.sizeField = value; } } - /// Number of unique AdID identifiers in the AudienceSegment. This attribute is read-only. + /// The URL of the creative for previewing the media. This attribute is read-only + /// and is assigned by Google when a creative is created. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 8)] - public long adIdSize { + [System.Xml.Serialization.XmlElementAttribute(Order = 4)] + public string previewUrl { get { - return this.adIdSizeField; + return this.previewUrlField; } set { - this.adIdSizeField = value; - this.adIdSizeSpecified = true; + this.previewUrlField = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool adIdSizeSpecified { + /// Set of policy labels detected for this creative. This attribute is read-only. + /// + [System.Xml.Serialization.XmlElementAttribute("policyLabels", Order = 5)] + public CreativePolicyViolation[] policyLabels { get { - return this.adIdSizeFieldSpecified; + return this.policyLabelsField; } set { - this.adIdSizeFieldSpecified = value; + this.policyLabelsField = value; } } - /// Number of unique PPID (publisher provided identifiers) in the AudienceSegment. This attribute is read-only. + /// The set of labels applied to this creative. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 9)] - public long ppidSize { + [System.Xml.Serialization.XmlElementAttribute("appliedLabels", Order = 6)] + public AppliedLabel[] appliedLabels { get { - return this.ppidSizeField; + return this.appliedLabelsField; } set { - this.ppidSizeField = value; - this.ppidSizeSpecified = true; + this.appliedLabelsField = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool ppidSizeSpecified { + /// The date and time this creative was last modified. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 7)] + public DateTime lastModifiedDateTime { get { - return this.ppidSizeFieldSpecified; + return this.lastModifiedDateTimeField; } set { - this.ppidSizeFieldSpecified = value; + this.lastModifiedDateTimeField = value; } } - /// Owner data provider of this segment. This attribute is readonly and is assigned - /// by Google. + /// The values of the custom fields associated with this creative. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 10)] - public AudienceSegmentDataProvider dataProvider { + [System.Xml.Serialization.XmlElementAttribute("customFieldValues", Order = 8)] + public BaseCustomFieldValue[] customFieldValues { get { - return this.dataProviderField; + return this.customFieldValuesField; } set { - this.dataProviderField = value; + this.customFieldValuesField = value; } } - /// Type of the segment. This attribute is readonly and is assigned by Google. + /// The third party companies associated with this creative.

This is distinct + /// from any associated companies that Google may detect programmatically.

///
- [System.Xml.Serialization.XmlElementAttribute(Order = 11)] - public AudienceSegmentType type { + [System.Xml.Serialization.XmlElementAttribute(Order = 9)] + public ThirdPartyDataDeclaration thirdPartyDataDeclaration { get { - return this.typeField; + return this.thirdPartyDataDeclarationField; } set { - this.typeField = value; - this.typeSpecified = true; + this.thirdPartyDataDeclarationField = value; } } - /// true, if a value is specified for , - /// false otherwise. + /// Whether the creative has ad badging enabled.

Defaults to false for + /// CreativeType.VAST_REDIRECT, , , + /// , , , , , + /// , , and + /// CreativeType.STANDARD_FLASH creative types.

. Defaults to + /// true for all other creative types.

+ ///
+ [System.Xml.Serialization.XmlElementAttribute(Order = 10)] + public bool adBadgingEnabled { + get { + return this.adBadgingEnabledField; + } + set { + this.adBadgingEnabledField = value; + this.adBadgingEnabledSpecified = true; + } + } + + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool typeSpecified { + public bool adBadgingEnabledSpecified { get { - return this.typeFieldSpecified; + return this.adBadgingEnabledFieldSpecified; } set { - this.typeFieldSpecified = value; + this.adBadgingEnabledFieldSpecified = value; } } } - /// Specifies the statuses for AudienceSegment - /// objects. + /// Represents the different types of policy violations that may be detected on a + /// given creative.

For more information about the various types of policy + /// violations, see here.

///
[System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AudienceSegment.Status", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum AudienceSegmentStatus { - /// The value returned if the actual value is not exposed by the requested API - /// version. + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum CreativePolicyViolation { + /// Malware was found in the creative.

For more information see here.

///
- UNKNOWN = 3, - /// Active status means this audience segment is available for targeting. + MALWARE_IN_CREATIVE = 0, + /// Malware was found in the landing page.

For more information see here.

///
- ACTIVE = 0, - /// Inactive status means this audience segment is not available for targeting. + MALWARE_IN_LANDING_PAGE = 1, + /// The redirect url contains legally objectionable content. /// - INACTIVE = 1, - /// Unused status means this audience segment was deactivated by Google because it - /// is unused. + LEGALLY_BLOCKED_REDIRECT_URL = 2, + /// The creative misrepresents the product or service being advertised.

For more + /// information see here.

+ ///
+ MISREPRESENTATION_OF_PRODUCT = 3, + /// The creative has been determined to be self clicking. + /// + SELF_CLICKING_CREATIVE = 4, + /// The creative has been determined as attempting to game the Google network. + ///

For more information see here.

+ ///
+ GAMING_GOOGLE_NETWORK = 5, + /// The landing page for the creative uses a dynamic DNS.

For more information + /// see here.

+ ///
+ DYNAMIC_DNS = 6, + /// The creative has been determined as attempting to circumvent Google advertising + /// systems. + /// + CIRCUMVENTING_SYSTEMS = 13, + /// Phishing found in creative or landing page.

For more information see here.

+ ///
+ PHISHING = 7, + /// The creative prompts the user to download a file.

For more information see here

+ ///
+ DOWNLOAD_PROMPT_IN_CREATIVE = 9, + /// The creative sets an unauthorized cookie on a Google domain.

For more + /// information see here

+ ///
+ UNAUTHORIZED_COOKIE_DETECTED = 10, + /// The creative has been temporarily paused while we investigate. + /// + TEMPORARY_PAUSE_FOR_VENDOR_INVESTIGATION = 11, + /// The landing page contains an abusive experience.

For more information see here.

///
- UNUSED = 2, - } - - - /// Specifies types for AudienceSegment objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AudienceSegment.Type", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum AudienceSegmentType { - /// First party segments created and owned by the publisher. + ABUSIVE_EXPERIENCE = 12, + /// The creative is designed to mislead or trick the user into interacting with it. + ///

For more information see here.

///
- FIRST_PARTY = 0, - /// First party segments shared by other clients. + TRICK_TO_CLICK = 14, + /// Non-allowlisted OMID verification script.

For more information see here.

///
- SHARED = 1, - /// Third party segments licensed by the publisher from data providers. This doesn't - /// include Google-provided licensed segments. + USE_OF_NON_ALLOWLISTED_OMID_VERIFICATION_SCRIPT = 18, + /// OMID sdk injected by creative. < p>For more information see here. /// - THIRD_PARTY = 2, + MISUSE_OF_OMID_API = 16, + /// Unacceptable HTML5 ad.

For more information see here.

+ ///
+ UNACCEPTABLE_HTML_AD = 17, /// The value returned if the actual value is not exposed by the requested API /// version. /// - UNKNOWN = 3, + UNKNOWN = 8, } - /// A SharedAudienceSegment is an AudienceSegment owned by another entity and shared - /// with the publisher network. + /// A Creative that points to an externally hosted VAST ad and is + /// served via VAST XML as a VAST Wrapper. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class SharedAudienceSegment : AudienceSegment { - } + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class VastRedirectCreative : Creative { + private string vastXmlUrlField; + private VastRedirectType vastRedirectTypeField; - /// A ThirdPartyAudienceSegment is an AudienceSegment owned by a data provider and licensed - /// to the Ad Manager publisher. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ThirdPartyAudienceSegment : AudienceSegment { - private AudienceSegmentApprovalStatus approvalStatusField; + private bool vastRedirectTypeFieldSpecified; - private bool approvalStatusFieldSpecified; + private int durationField; - private Money costField; + private bool durationFieldSpecified; - private LicenseType licenseTypeField; + private long[] companionCreativeIdsField; - private bool licenseTypeFieldSpecified; + private ConversionEvent_TrackingUrlsMapEntry[] trackingUrlsField; - private DateTime startDateTimeField; + private string vastPreviewUrlField; - private DateTime endDateTimeField; + private SslScanResult sslScanResultField; - /// Specifies if the publisher has approved or rejected the segment. + private bool sslScanResultFieldSpecified; + + private SslManualOverride sslManualOverrideField; + + private bool sslManualOverrideFieldSpecified; + + private bool isAudioField; + + private bool isAudioFieldSpecified; + + /// The URL where the 3rd party VAST XML is hosted. This attribute is required. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public AudienceSegmentApprovalStatus approvalStatus { + public string vastXmlUrl { get { - return this.approvalStatusField; + return this.vastXmlUrlField; } set { - this.approvalStatusField = value; - this.approvalStatusSpecified = true; + this.vastXmlUrlField = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool approvalStatusSpecified { + /// The type of VAST ad that this redirects to. This attribute is required. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public VastRedirectType vastRedirectType { get { - return this.approvalStatusFieldSpecified; + return this.vastRedirectTypeField; } set { - this.approvalStatusFieldSpecified = value; + this.vastRedirectTypeField = value; + this.vastRedirectTypeSpecified = true; } } - /// Specifies CPM cost for the given segment. This attribute is readonly and is - /// assigned by the data provider.

The CPM cost comes from the active pricing, if - /// there is one; otherwise it comes from the latest pricing.

- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public Money cost { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool vastRedirectTypeSpecified { get { - return this.costField; + return this.vastRedirectTypeFieldSpecified; } set { - this.costField = value; + this.vastRedirectTypeFieldSpecified = value; } } - /// Specifies the license type of the external segment. This attribute is read-only. + /// The duration of the VAST ad in milliseconds. This attribute is required. /// [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public LicenseType licenseType { + public int duration { get { - return this.licenseTypeField; + return this.durationField; } set { - this.licenseTypeField = value; - this.licenseTypeSpecified = true; + this.durationField = value; + this.durationSpecified = true; } } - /// true, if a value is specified for true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool licenseTypeSpecified { + public bool durationSpecified { get { - return this.licenseTypeFieldSpecified; + return this.durationFieldSpecified; } set { - this.licenseTypeFieldSpecified = value; + this.durationFieldSpecified = value; } } - /// Specifies the date and time at which this segment becomes available for use. - /// This attribute is readonly and is assigned by the data provider. + /// The IDs of the companion creatives that are associated with this creative. This + /// attribute is optional. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public DateTime startDateTime { + [System.Xml.Serialization.XmlElementAttribute("companionCreativeIds", Order = 3)] + public long[] companionCreativeIds { get { - return this.startDateTimeField; + return this.companionCreativeIdsField; } set { - this.startDateTimeField = value; + this.companionCreativeIdsField = value; } } - /// Specifies the date and time at which this segment ceases to be available for - /// use. This attribute is readonly and is assigned by the data provider. + /// A map from ConversionEvent to a list of URLs that will be pinged + /// when the event happens. This attribute is optional. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public DateTime endDateTime { + [System.Xml.Serialization.XmlElementAttribute("trackingUrls", Order = 4)] + public ConversionEvent_TrackingUrlsMapEntry[] trackingUrls { get { - return this.endDateTimeField; + return this.trackingUrlsField; } set { - this.endDateTimeField = value; + this.trackingUrlsField = value; } } - } - - - /// Approval status values for ThirdPartyAudienceSegment objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum AudienceSegmentApprovalStatus { - /// Specifies that this segment is waiting to be approved or rejected. It cannot be - /// targeted. - /// - UNAPPROVED = 0, - /// Specifies that this segment is approved and can be targeted. - /// - APPROVED = 1, - /// Specifies that this segment is rejected and cannot be targeted. - /// - REJECTED = 2, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 3, - } - - /// Specifies the license type of a ThirdPartyAudienceSegment. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum LicenseType { - /// A direct license is the result of a direct contract between the data provider - /// and the publisher. - /// - DIRECT_LICENSE = 0, - /// A global license is the result of an agreement between Google and the data - /// provider, which agrees to license their audience segments to all the publishers - /// and/or advertisers of the Google ecosystem. - /// - GLOBAL_LICENSE = 1, - /// The value returned if the actual value is not exposed by the requested API - /// version. + /// An ad tag URL that will return a preview of the VAST XML response specific to + /// this creative. This attribute is read-only. /// - UNKNOWN = 2, - } - - - /// A FirstPartyAudienceSegment is an AudienceSegment owned by the publisher network. - /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(RuleBasedFirstPartyAudienceSegmentSummary))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(RuleBasedFirstPartyAudienceSegment))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(NonRuleBasedFirstPartyAudienceSegment))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public abstract partial class FirstPartyAudienceSegment : AudienceSegment { - } - - - /// A RuleBasedFirstPartyAudienceSegmentSummary - /// is a FirstPartyAudienceSegment owned by - /// the publisher network. - /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(RuleBasedFirstPartyAudienceSegment))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class RuleBasedFirstPartyAudienceSegmentSummary : FirstPartyAudienceSegment { - private int pageViewsField; - - private bool pageViewsFieldSpecified; - - private int recencyDaysField; - - private bool recencyDaysFieldSpecified; - - private int membershipExpirationDaysField; - - private bool membershipExpirationDaysFieldSpecified; + [System.Xml.Serialization.XmlElementAttribute(Order = 5)] + public string vastPreviewUrl { + get { + return this.vastPreviewUrlField; + } + set { + this.vastPreviewUrlField = value; + } + } - /// Specifies the number of times a user's cookie must match the segment rule before - /// it's associated with the audience segment. This is used in combination with FirstPartyAudienceSegment#recencyDays to determine eligibility of - /// the association. This attribute is required and can be between 1 and 12. + /// The SSL compatibility scan result for this creative.

This attribute is + /// read-only and determined by Google.

///
- [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public int pageViews { + [System.Xml.Serialization.XmlElementAttribute(Order = 6)] + public SslScanResult sslScanResult { get { - return this.pageViewsField; + return this.sslScanResultField; } set { - this.pageViewsField = value; - this.pageViewsSpecified = true; + this.sslScanResultField = value; + this.sslScanResultSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool pageViewsSpecified { + public bool sslScanResultSpecified { get { - return this.pageViewsFieldSpecified; + return this.sslScanResultFieldSpecified; } set { - this.pageViewsFieldSpecified = value; + this.sslScanResultFieldSpecified = value; } } - /// Specifies the number of days within which a user's cookie must match the segment - /// rule before it's associated with the audience segment. This is used in - /// combination with FirstPartyAudienceSegment#pageViews to determine - /// eligibility of the association. This attribute is required only if FirstPartyAudienceSegment#pageViews - /// is greater than 1. When required, it can be between 1 and 90. + /// The manual override for the SSL compatibility of this creative.

This + /// attribute is optional and defaults to SslManualOverride#NO_OVERRIDE.

///
- [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public int recencyDays { + [System.Xml.Serialization.XmlElementAttribute(Order = 7)] + public SslManualOverride sslManualOverride { get { - return this.recencyDaysField; + return this.sslManualOverrideField; } set { - this.recencyDaysField = value; - this.recencyDaysSpecified = true; + this.sslManualOverrideField = value; + this.sslManualOverrideSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool recencyDaysSpecified { + public bool sslManualOverrideSpecified { get { - return this.recencyDaysFieldSpecified; + return this.sslManualOverrideFieldSpecified; } set { - this.recencyDaysFieldSpecified = value; + this.sslManualOverrideFieldSpecified = value; } } - /// Specifies the number of days after which a user's cookie will be removed from - /// the audience segment due to inactivity. This attribute is required and can be - /// between 1 and 540. + /// Whether the 3rd party VAST XML points to an audio ad. When true, VastRedirectCreative#size will always be 1x1. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public int membershipExpirationDays { + [System.Xml.Serialization.XmlElementAttribute(Order = 8)] + public bool isAudio { get { - return this.membershipExpirationDaysField; + return this.isAudioField; } set { - this.membershipExpirationDaysField = value; - this.membershipExpirationDaysSpecified = true; + this.isAudioField = value; + this.isAudioSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , + /// false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool membershipExpirationDaysSpecified { + public bool isAudioSpecified { get { - return this.membershipExpirationDaysFieldSpecified; + return this.isAudioFieldSpecified; } set { - this.membershipExpirationDaysFieldSpecified = value; + this.isAudioFieldSpecified = value; } } } - /// A RuleBasedFirstPartyAudienceSegment - /// is a FirstPartyAudienceSegment owned by - /// the publisher network. It contains a rule. + /// The types of VAST ads that a VastRedirectCreative can point to. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum VastRedirectType { + /// The VAST XML contains only linear ads. + /// + LINEAR = 0, + /// The VAST XML contains only nonlinear ads. + /// + NON_LINEAR = 1, + /// The VAST XML contains both linear and nonlinear ads. + /// + LINEAR_AND_NON_LINEAR = 2, + } + + + /// Enum to store the creative SSL compatibility scan result. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum SslScanResult { + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 0, + UNSCANNED = 1, + SCANNED_SSL = 2, + SCANNED_NON_SSL = 3, + } + + + /// Enum to store the creative SSL compatibility manual override. Its three states + /// are similar to that of SslScanResult. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum SslManualOverride { + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 0, + NO_OVERRIDE = 1, + SSL_COMPATIBLE = 2, + NOT_SSL_COMPATIBLE = 3, + } + + + /// A Creative that isn't supported by this version of the API. This + /// object is readonly and when encountered should be reported on the Ad Manager API + /// forum. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class RuleBasedFirstPartyAudienceSegment : RuleBasedFirstPartyAudienceSegmentSummary { - private FirstPartyAudienceSegmentRule ruleField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class UnsupportedCreative : Creative { + private string unsupportedCreativeTypeField; - /// Specifies the rule of the segment which determines user's eligibility criteria - /// to be part of the segment. This attribute is required. + /// The creative type that is unsupported by this API version. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public FirstPartyAudienceSegmentRule rule { + public string unsupportedCreativeType { get { - return this.ruleField; + return this.unsupportedCreativeTypeField; } set { - this.ruleField = value; + this.unsupportedCreativeTypeField = value; } } } - /// A NonRuleBasedFirstPartyAudienceSegment - /// is a FirstPartyAudienceSegment owned by - /// the publisher network. It doesn't contain a rule. Cookies are usually added to - /// this segment via cookie upload. + /// A Creative that is served by a 3rd-party vendor. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class NonRuleBasedFirstPartyAudienceSegment : FirstPartyAudienceSegment { - private int membershipExpirationDaysField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ThirdPartyCreative : Creative { + private string snippetField; - private bool membershipExpirationDaysFieldSpecified; + private string expandedSnippetField; - /// Specifies the number of days after which a user's cookie will be removed from - /// the audience segment due to inactivity. This attribute is required and can be - /// between 1 and 540. + private SslScanResult sslScanResultField; + + private bool sslScanResultFieldSpecified; + + private SslManualOverride sslManualOverrideField; + + private bool sslManualOverrideFieldSpecified; + + private LockedOrientation lockedOrientationField; + + private bool lockedOrientationFieldSpecified; + + private bool isSafeFrameCompatibleField; + + private bool isSafeFrameCompatibleFieldSpecified; + + private string[] thirdPartyImpressionTrackingUrlsField; + + private string ampRedirectUrlField; + + /// The HTML snippet that this creative delivers. This attribute is required. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public int membershipExpirationDays { + public string snippet { get { - return this.membershipExpirationDaysField; + return this.snippetField; } set { - this.membershipExpirationDaysField = value; - this.membershipExpirationDaysSpecified = true; + this.snippetField = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool membershipExpirationDaysSpecified { + /// The HTML snippet that this creative delivers with macros expanded. This + /// attribute is read-only and is set by Google. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public string expandedSnippet { get { - return this.membershipExpirationDaysFieldSpecified; + return this.expandedSnippetField; } set { - this.membershipExpirationDaysFieldSpecified = value; + this.expandedSnippetField = value; } } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", ConfigurationName = "Google.Api.Ads.AdManager.v202311.AudienceSegmentServiceInterface")] - public interface AudienceSegmentServiceInterface - { - // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(AudienceSegment))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Wrappers.AudienceSegmentService.createAudienceSegmentsResponse createAudienceSegments(Wrappers.AudienceSegmentService.createAudienceSegmentsRequest request); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task createAudienceSegmentsAsync(Wrappers.AudienceSegmentService.createAudienceSegmentsRequest request); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(AudienceSegment))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v202311.AudienceSegmentPage getAudienceSegmentsByStatement(Google.Api.Ads.AdManager.v202311.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getAudienceSegmentsByStatementAsync(Google.Api.Ads.AdManager.v202311.Statement filterStatement); - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(AudienceSegment))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v202311.UpdateResult performAudienceSegmentAction(Google.Api.Ads.AdManager.v202311.AudienceSegmentAction action, Google.Api.Ads.AdManager.v202311.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task performAudienceSegmentActionAsync(Google.Api.Ads.AdManager.v202311.AudienceSegmentAction action, Google.Api.Ads.AdManager.v202311.Statement filterStatement); - - // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(AudienceSegment))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Wrappers.AudienceSegmentService.updateAudienceSegmentsResponse updateAudienceSegments(Wrappers.AudienceSegmentService.updateAudienceSegmentsRequest request); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task updateAudienceSegmentsAsync(Wrappers.AudienceSegmentService.updateAudienceSegmentsRequest request); - } - - - /// Represents a page of AudienceSegment objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class AudienceSegmentPage { - private int totalResultSetSizeField; - - private bool totalResultSetSizeFieldSpecified; + /// The SSL compatibility scan result for this creative.

This attribute is + /// read-only and determined by Google.

+ ///
+ [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public SslScanResult sslScanResult { + get { + return this.sslScanResultField; + } + set { + this.sslScanResultField = value; + this.sslScanResultSpecified = true; + } + } - private int startIndexField; + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool sslScanResultSpecified { + get { + return this.sslScanResultFieldSpecified; + } + set { + this.sslScanResultFieldSpecified = value; + } + } - private bool startIndexFieldSpecified; + /// The manual override for the SSL compatibility of this creative.

This + /// attribute is optional and defaults to SslManualOverride#NO_OVERRIDE.

+ ///
+ [System.Xml.Serialization.XmlElementAttribute(Order = 3)] + public SslManualOverride sslManualOverride { + get { + return this.sslManualOverrideField; + } + set { + this.sslManualOverrideField = value; + this.sslManualOverrideSpecified = true; + } + } - private AudienceSegment[] resultsField; + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool sslManualOverrideSpecified { + get { + return this.sslManualOverrideFieldSpecified; + } + set { + this.sslManualOverrideFieldSpecified = value; + } + } - /// The size of the total result set to which this page belongs. + /// A locked orientation for this creative to be displayed in. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public int totalResultSetSize { + [System.Xml.Serialization.XmlElementAttribute(Order = 4)] + public LockedOrientation lockedOrientation { get { - return this.totalResultSetSizeField; + return this.lockedOrientationField; } set { - this.totalResultSetSizeField = value; - this.totalResultSetSizeSpecified = true; + this.lockedOrientationField = value; + this.lockedOrientationSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="lockedOrientation" />, false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool totalResultSetSizeSpecified { + public bool lockedOrientationSpecified { get { - return this.totalResultSetSizeFieldSpecified; + return this.lockedOrientationFieldSpecified; } set { - this.totalResultSetSizeFieldSpecified = value; + this.lockedOrientationFieldSpecified = value; } } - /// The absolute index in the total result set on which this page begins. + /// Whether the Creative is compatible for SafeFrame + /// rendering.

This attribute is optional and defaults to true.

///
- [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public int startIndex { + [System.Xml.Serialization.XmlElementAttribute(Order = 5)] + public bool isSafeFrameCompatible { get { - return this.startIndexField; + return this.isSafeFrameCompatibleField; } set { - this.startIndexField = value; - this.startIndexSpecified = true; + this.isSafeFrameCompatibleField = value; + this.isSafeFrameCompatibleSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool startIndexSpecified { + public bool isSafeFrameCompatibleSpecified { get { - return this.startIndexFieldSpecified; + return this.isSafeFrameCompatibleFieldSpecified; } set { - this.startIndexFieldSpecified = value; + this.isSafeFrameCompatibleFieldSpecified = value; } } - /// The collection of audience segments contained within this page. + /// A list of impression tracking URLs to ping when this creative is displayed. This + /// field is optional. /// - [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] - public AudienceSegment[] results { + [System.Xml.Serialization.XmlElementAttribute("thirdPartyImpressionTrackingUrls", Order = 6)] + public string[] thirdPartyImpressionTrackingUrls { get { - return this.resultsField; + return this.thirdPartyImpressionTrackingUrlsField; } set { - this.resultsField = value; + this.thirdPartyImpressionTrackingUrlsField = value; + } + } + + /// The URL of the AMP creative. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 7)] + public string ampRedirectUrl { + get { + return this.ampRedirectUrlField; + } + set { + this.ampRedirectUrlField = value; } } } - /// Action that can be performed on AudienceSegment - /// objects. + /// Describes the orientation that a creative should be served with. /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(RejectAudienceSegments))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(PopulateAudienceSegments))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(DeactivateAudienceSegments))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ApproveAudienceSegments))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ActivateAudienceSegments))] [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public abstract partial class AudienceSegmentAction { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum LockedOrientation { + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 0, + FREE_ORIENTATION = 1, + PORTRAIT_ONLY = 2, + LANDSCAPE_ONLY = 3, } - /// Action that can be performed on ThirdPartyAudienceSegment objects to reject - /// them. + /// A Creative that is created by the specified creative template. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class RejectAudienceSegments : AudienceSegmentAction { - } + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class TemplateCreative : Creative { + private long creativeTemplateIdField; + private bool creativeTemplateIdFieldSpecified; - /// Action that can be performed on FirstPartyAudienceSegment objects to - /// populate them based on last 30 days of traffic. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class PopulateAudienceSegments : AudienceSegmentAction { - } + private bool isInterstitialField; + private bool isInterstitialFieldSpecified; - /// Action that can be performed on FirstPartyAudienceSegment objects to - /// deactivate them. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class DeactivateAudienceSegments : AudienceSegmentAction { - } + private bool isNativeEligibleField; + private bool isNativeEligibleFieldSpecified; - /// Action that can be performed on ThirdPartyAudienceSegment objects to - /// approve them. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ApproveAudienceSegments : AudienceSegmentAction { - } + private bool isSafeFrameCompatibleField; + private bool isSafeFrameCompatibleFieldSpecified; - /// Action that can be performed on FirstPartyAudienceSegment objects to - /// activate them. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ActivateAudienceSegments : AudienceSegmentAction { - } + private string destinationUrlField; + private BaseCreativeTemplateVariableValue[] creativeTemplateVariableValuesField; - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public interface AudienceSegmentServiceInterfaceChannel : Google.Api.Ads.AdManager.v202311.AudienceSegmentServiceInterface, System.ServiceModel.IClientChannel - { - } + private SslScanResult sslScanResultField; + private bool sslScanResultFieldSpecified; - /// Provides operations for creating, updating and retrieving AudienceSegment objects. - /// - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public partial class AudienceSegmentService : AdManagerSoapClient, IAudienceSegmentService { - /// Creates a new instance of the - /// class. - public AudienceSegmentService() { - } + private SslManualOverride sslManualOverrideField; - /// Creates a new instance of the - /// class. - public AudienceSegmentService(string endpointConfigurationName) - : base(endpointConfigurationName) { - } + private bool sslManualOverrideFieldSpecified; - /// Creates a new instance of the - /// class. - public AudienceSegmentService(string endpointConfigurationName, string remoteAddress) - : base(endpointConfigurationName, remoteAddress) { - } + private LockedOrientation lockedOrientationField; - /// Creates a new instance of the - /// class. - public AudienceSegmentService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) - : base(endpointConfigurationName, remoteAddress) { - } + private bool lockedOrientationFieldSpecified; - /// Creates a new instance of the - /// class. - public AudienceSegmentService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) - : base(binding, remoteAddress) { + /// Creative template ID that this creative is created from. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public long creativeTemplateId { + get { + return this.creativeTemplateIdField; + } + set { + this.creativeTemplateIdField = value; + this.creativeTemplateIdSpecified = true; + } } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.AudienceSegmentService.createAudienceSegmentsResponse Google.Api.Ads.AdManager.v202311.AudienceSegmentServiceInterface.createAudienceSegments(Wrappers.AudienceSegmentService.createAudienceSegmentsRequest request) { - return base.Channel.createAudienceSegments(request); + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool creativeTemplateIdSpecified { + get { + return this.creativeTemplateIdFieldSpecified; + } + set { + this.creativeTemplateIdFieldSpecified = value; + } } - /// Creates new FirstPartyAudienceSegment - /// objects. + /// true if this template instantiated creative is interstitial. This + /// attribute is read-only and is assigned by Google based on the creative template. /// - public virtual Google.Api.Ads.AdManager.v202311.FirstPartyAudienceSegment[] createAudienceSegments(Google.Api.Ads.AdManager.v202311.FirstPartyAudienceSegment[] segments) { - Wrappers.AudienceSegmentService.createAudienceSegmentsRequest inValue = new Wrappers.AudienceSegmentService.createAudienceSegmentsRequest(); - inValue.segments = segments; - Wrappers.AudienceSegmentService.createAudienceSegmentsResponse retVal = ((Google.Api.Ads.AdManager.v202311.AudienceSegmentServiceInterface)(this)).createAudienceSegments(inValue); - return retVal.rval; - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202311.AudienceSegmentServiceInterface.createAudienceSegmentsAsync(Wrappers.AudienceSegmentService.createAudienceSegmentsRequest request) { - return base.Channel.createAudienceSegmentsAsync(request); + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public bool isInterstitial { + get { + return this.isInterstitialField; + } + set { + this.isInterstitialField = value; + this.isInterstitialSpecified = true; + } } - public virtual System.Threading.Tasks.Task createAudienceSegmentsAsync(Google.Api.Ads.AdManager.v202311.FirstPartyAudienceSegment[] segments) { - Wrappers.AudienceSegmentService.createAudienceSegmentsRequest inValue = new Wrappers.AudienceSegmentService.createAudienceSegmentsRequest(); - inValue.segments = segments; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202311.AudienceSegmentServiceInterface)(this)).createAudienceSegmentsAsync(inValue)).Result.rval); + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool isInterstitialSpecified { + get { + return this.isInterstitialFieldSpecified; + } + set { + this.isInterstitialFieldSpecified = value; + } } - /// Gets an AudienceSegmentPage of AudienceSegment objects that satisfy the given Statement#query. The following fields are supported - /// for filtering: - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - ///
PQL Property Object Property
id AudienceSegment#id
name AudienceSegment#name
status AudienceSegment#status
type AudienceSegment#type
size AudienceSegment#size
dataProviderName AudienceSegmentDataProvider#name
segmentType AudienceSegment#type
approvalStatus ThirdPartyAudienceSegment#approvalStatus
cost ThirdPartyAudienceSegment#cost
startDateTime ThirdPartyAudienceSegment#startDateTime
endDateTime ThirdPartyAudienceSegment#endDateTime
+ /// true if this template instantiated creative is eligible for native + /// adserving. This attribute is read-only and is assigned by Google based on the + /// creative template. /// - public virtual Google.Api.Ads.AdManager.v202311.AudienceSegmentPage getAudienceSegmentsByStatement(Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.getAudienceSegmentsByStatement(filterStatement); + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public bool isNativeEligible { + get { + return this.isNativeEligibleField; + } + set { + this.isNativeEligibleField = value; + this.isNativeEligibleSpecified = true; + } } - public virtual System.Threading.Tasks.Task getAudienceSegmentsByStatementAsync(Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.getAudienceSegmentsByStatementAsync(filterStatement); + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool isNativeEligibleSpecified { + get { + return this.isNativeEligibleFieldSpecified; + } + set { + this.isNativeEligibleFieldSpecified = value; + } } - /// Performs the given AudienceSegmentAction on - /// the set of segments identified by the given statement. + /// Whether the Creative is compatible for SafeFrame + /// rendering.

This attribute is read-only and is assigned by Google based on the + /// CreativeTemplate.

///
- public virtual Google.Api.Ads.AdManager.v202311.UpdateResult performAudienceSegmentAction(Google.Api.Ads.AdManager.v202311.AudienceSegmentAction action, Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.performAudienceSegmentAction(action, filterStatement); + [System.Xml.Serialization.XmlElementAttribute(Order = 3)] + public bool isSafeFrameCompatible { + get { + return this.isSafeFrameCompatibleField; + } + set { + this.isSafeFrameCompatibleField = value; + this.isSafeFrameCompatibleSpecified = true; + } } - public virtual System.Threading.Tasks.Task performAudienceSegmentActionAsync(Google.Api.Ads.AdManager.v202311.AudienceSegmentAction action, Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.performAudienceSegmentActionAsync(action, filterStatement); + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool isSafeFrameCompatibleSpecified { + get { + return this.isSafeFrameCompatibleFieldSpecified; + } + set { + this.isSafeFrameCompatibleFieldSpecified = value; + } } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.AudienceSegmentService.updateAudienceSegmentsResponse Google.Api.Ads.AdManager.v202311.AudienceSegmentServiceInterface.updateAudienceSegments(Wrappers.AudienceSegmentService.updateAudienceSegmentsRequest request) { - return base.Channel.updateAudienceSegments(request); + /// The URL the user is directed to if they click on the creative. This attribute is + /// only required if the template snippet contains the %u or + /// %%DEST_URL%% macro. It has a maximum length of 1024 characters. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 4)] + public string destinationUrl { + get { + return this.destinationUrlField; + } + set { + this.destinationUrlField = value; + } } - /// Updates the given FirstPartyAudienceSegment objects. + /// Stores values of CreativeTemplateVariable + /// in the CreativeTemplate. /// - public virtual Google.Api.Ads.AdManager.v202311.FirstPartyAudienceSegment[] updateAudienceSegments(Google.Api.Ads.AdManager.v202311.FirstPartyAudienceSegment[] segments) { - Wrappers.AudienceSegmentService.updateAudienceSegmentsRequest inValue = new Wrappers.AudienceSegmentService.updateAudienceSegmentsRequest(); - inValue.segments = segments; - Wrappers.AudienceSegmentService.updateAudienceSegmentsResponse retVal = ((Google.Api.Ads.AdManager.v202311.AudienceSegmentServiceInterface)(this)).updateAudienceSegments(inValue); - return retVal.rval; + [System.Xml.Serialization.XmlElementAttribute("creativeTemplateVariableValues", Order = 5)] + public BaseCreativeTemplateVariableValue[] creativeTemplateVariableValues { + get { + return this.creativeTemplateVariableValuesField; + } + set { + this.creativeTemplateVariableValuesField = value; + } } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202311.AudienceSegmentServiceInterface.updateAudienceSegmentsAsync(Wrappers.AudienceSegmentService.updateAudienceSegmentsRequest request) { - return base.Channel.updateAudienceSegmentsAsync(request); + /// The SSL compatibility scan result for this creative.

This attribute is + /// read-only and determined by Google.

+ ///
+ [System.Xml.Serialization.XmlElementAttribute(Order = 6)] + public SslScanResult sslScanResult { + get { + return this.sslScanResultField; + } + set { + this.sslScanResultField = value; + this.sslScanResultSpecified = true; + } } - public virtual System.Threading.Tasks.Task updateAudienceSegmentsAsync(Google.Api.Ads.AdManager.v202311.FirstPartyAudienceSegment[] segments) { - Wrappers.AudienceSegmentService.updateAudienceSegmentsRequest inValue = new Wrappers.AudienceSegmentService.updateAudienceSegmentsRequest(); - inValue.segments = segments; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202311.AudienceSegmentServiceInterface)(this)).updateAudienceSegmentsAsync(inValue)).Result.rval); + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool sslScanResultSpecified { + get { + return this.sslScanResultFieldSpecified; + } + set { + this.sslScanResultFieldSpecified = value; + } } - } - namespace Wrappers.CdnConfigurationService - { - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "createCdnConfigurations", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class createCdnConfigurationsRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("cdnConfigurations")] - public Google.Api.Ads.AdManager.v202311.CdnConfiguration[] cdnConfigurations; - /// Creates a new instance of the class. - public createCdnConfigurationsRequest() { + /// The manual override for the SSL compatibility of this creative.

This + /// attribute is optional and defaults to SslManualOverride#NO_OVERRIDE.

+ ///
+ [System.Xml.Serialization.XmlElementAttribute(Order = 7)] + public SslManualOverride sslManualOverride { + get { + return this.sslManualOverrideField; } - - /// Creates a new instance of the class. - public createCdnConfigurationsRequest(Google.Api.Ads.AdManager.v202311.CdnConfiguration[] cdnConfigurations) { - this.cdnConfigurations = cdnConfigurations; + set { + this.sslManualOverrideField = value; + this.sslManualOverrideSpecified = true; } } - - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "createCdnConfigurationsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class createCdnConfigurationsResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v202311.CdnConfiguration[] rval; - - /// Creates a new instance of the class. - public createCdnConfigurationsResponse() { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool sslManualOverrideSpecified { + get { + return this.sslManualOverrideFieldSpecified; } - - /// Creates a new instance of the class. - public createCdnConfigurationsResponse(Google.Api.Ads.AdManager.v202311.CdnConfiguration[] rval) { - this.rval = rval; + set { + this.sslManualOverrideFieldSpecified = value; } } - - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "updateCdnConfigurations", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class updateCdnConfigurationsRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("cdnConfigurations")] - public Google.Api.Ads.AdManager.v202311.CdnConfiguration[] cdnConfigurations; - - /// Creates a new instance of the class. - public updateCdnConfigurationsRequest() { + /// A locked orientation for this creative to be displayed in. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 8)] + public LockedOrientation lockedOrientation { + get { + return this.lockedOrientationField; } - - /// Creates a new instance of the class. - public updateCdnConfigurationsRequest(Google.Api.Ads.AdManager.v202311.CdnConfiguration[] cdnConfigurations) { - this.cdnConfigurations = cdnConfigurations; + set { + this.lockedOrientationField = value; + this.lockedOrientationSpecified = true; } } - - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "updateCdnConfigurationsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class updateCdnConfigurationsResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v202311.CdnConfiguration[] rval; - - /// Creates a new instance of the class. - public updateCdnConfigurationsResponse() { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool lockedOrientationSpecified { + get { + return this.lockedOrientationFieldSpecified; } - - /// Creates a new instance of the class. - public updateCdnConfigurationsResponse(Google.Api.Ads.AdManager.v202311.CdnConfiguration[] rval) { - this.rval = rval; + set { + this.lockedOrientationFieldSpecified = value; } } } - /// A set of security requirements to authenticate against in order to access video - /// content. Different locations (e.g. different CDNs) can have different security - /// policies. + + + /// A Creative used for programmatic trafficking. This creative will be + /// auto-created with the right approval from the buyer. This creative cannot be + /// created through the API. This creative can be updated. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class SecurityPolicySettings { - private SecurityPolicyType securityPolicyTypeField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ProgrammaticCreative : Creative { + } - private bool securityPolicyTypeFieldSpecified; - private string tokenAuthenticationKeyField; + /// A Creative that isn't supported by Google DFP, but was migrated + /// from DART. Creatives of this type cannot be created or modified. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class LegacyDfpCreative : Creative { + } - private bool disableServerSideUrlSigningField; - private bool disableServerSideUrlSigningFieldSpecified; + /// A Creative hosted by Campaign Manager 360.

Similar to + /// third-party creatives, a Campaign Manager 360 tag is used to retrieve a creative + /// asset. However, Campaign Manager 360 tags are not sent to the user's browser. + /// Instead, they are processed internally within the Google Marketing Platform + /// system..

+ ///
+ [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class InternalRedirectCreative : Creative { + private LockedOrientation lockedOrientationField; - private OriginForwardingType originForwardingTypeField; + private bool lockedOrientationFieldSpecified; - private bool originForwardingTypeFieldSpecified; + private Size assetSizeField; - private string originPathPrefixField; + private string internalRedirectUrlField; - private OriginForwardingType mediaPlaylistOriginForwardingTypeField; + private bool overrideSizeField; - private bool mediaPlaylistOriginForwardingTypeFieldSpecified; + private bool overrideSizeFieldSpecified; - private string mediaPlaylistOriginPathPrefixField; + private bool isInterstitialField; - private string keysetNameField; + private bool isInterstitialFieldSpecified; - private long signedRequestExpirationTtlSecondsField; + private SslScanResult sslScanResultField; - private bool signedRequestExpirationTtlSecondsFieldSpecified; + private bool sslScanResultFieldSpecified; - /// Type of security policy. This determines which other fields should be populated. - /// This value is required for a valid security policy. + private SslManualOverride sslManualOverrideField; + + private bool sslManualOverrideFieldSpecified; + + private string[] thirdPartyImpressionTrackingUrlsField; + + /// A locked orientation for this creative to be displayed in. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public SecurityPolicyType securityPolicyType { + public LockedOrientation lockedOrientation { get { - return this.securityPolicyTypeField; + return this.lockedOrientationField; } set { - this.securityPolicyTypeField = value; - this.securityPolicyTypeSpecified = true; + this.lockedOrientationField = value; + this.lockedOrientationSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="lockedOrientation" />, false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool securityPolicyTypeSpecified { + public bool lockedOrientationSpecified { get { - return this.securityPolicyTypeFieldSpecified; + return this.lockedOrientationFieldSpecified; } set { - this.securityPolicyTypeFieldSpecified = value; + this.lockedOrientationFieldSpecified = value; } } - /// Shared security key used to generate the Akamai HMAC token for authenticating - /// requests. This field is only applicable when the value of #securityPolicyType is equal to SecurityPolicyType#AKAMAI and will be set to null otherwise.

This - /// field is required when the CdnConfiguration#cdnConfigurationType - /// is equal to CdnConfigurationType#LIVE_STREAM_SOURCE_CONTENT - /// and this SecurityPolicyDto is being configured - /// for SourceContentConfiguration#ingestSettings.

+ /// The asset size of an internal redirect creative. Note that this may differ from + /// size if users set overrideSize to true. This attribute + /// is read-only and is populated by Google. /// [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public string tokenAuthenticationKey { + public Size assetSize { get { - return this.tokenAuthenticationKeyField; + return this.assetSizeField; } set { - this.tokenAuthenticationKeyField = value; + this.assetSizeField = value; } } - /// Whether the segment URLs should be signed using the #tokenAuthenticationKey on the server. This - /// is only applicable for delivery media locations that have token authentication - /// enabled. + /// The internal redirect URL of the DFA or DART for Publishers hosted creative. + /// This attribute is required and has a maximum length of 1024 characters. /// [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public bool disableServerSideUrlSigning { - get { - return this.disableServerSideUrlSigningField; - } - set { - this.disableServerSideUrlSigningField = value; - this.disableServerSideUrlSigningSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool disableServerSideUrlSigningSpecified { + public string internalRedirectUrl { get { - return this.disableServerSideUrlSigningFieldSpecified; + return this.internalRedirectUrlField; } set { - this.disableServerSideUrlSigningFieldSpecified = value; + this.internalRedirectUrlField = value; } } - /// The type of origin forwarding used to support Akamai authentication policies for - /// the master playlist. This field is not applicable to ingest locations, and is - /// only applicable to delivery media locations with the #securityPolicyType set to SecurityPolicyType#AKAMAI. If set elsewhere - /// it will be reset to null. + /// Allows the creative size to differ from the actual size specified in the + /// internal redirect's url. This attribute is optional. /// [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public OriginForwardingType originForwardingType { + public bool overrideSize { get { - return this.originForwardingTypeField; + return this.overrideSizeField; } set { - this.originForwardingTypeField = value; - this.originForwardingTypeSpecified = true; + this.overrideSizeField = value; + this.overrideSizeSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="overrideSize" />, false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool originForwardingTypeSpecified { + public bool overrideSizeSpecified { get { - return this.originForwardingTypeFieldSpecified; + return this.overrideSizeFieldSpecified; } set { - this.originForwardingTypeFieldSpecified = value; + this.overrideSizeFieldSpecified = value; } } - /// The origin path prefix provided by the publisher for the master playlist. This - /// field is only applicable for delivery media locations with the value of #originForwardingType set to OriginForwardingType#CONVENTIONAL, - /// and will be set to null otherwise. + /// true if this internal redirect creative is interstitial. /// [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public string originPathPrefix { + public bool isInterstitial { get { - return this.originPathPrefixField; + return this.isInterstitialField; } set { - this.originPathPrefixField = value; + this.isInterstitialField = value; + this.isInterstitialSpecified = true; } } - /// The type of origin forwarding used to support Akamai authentication policies for - /// media playlists. This setting can only be used with CDN configurations with a - /// cdnConfigurationType of CdnConfigurationType#LIVE_STREAM_SOURCE_CONTENT, - /// is not applicable to ingest locations, and is only applicable to delivery media - /// locations with the #securityPolicyType set to - /// SecurityPolicyType#AKAMAI. Valid options - /// are OriginForwardingType#NONE or .

This setting can - /// only be used with CDN configurations with a cdnConfigurationType of - /// CdnConfigurationType#LIVE_STREAM_SOURCE_CONTENT.

- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 5)] - public OriginForwardingType mediaPlaylistOriginForwardingType { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool isInterstitialSpecified { get { - return this.mediaPlaylistOriginForwardingTypeField; + return this.isInterstitialFieldSpecified; } set { - this.mediaPlaylistOriginForwardingTypeField = value; - this.mediaPlaylistOriginForwardingTypeSpecified = true; + this.isInterstitialFieldSpecified = value; } } - /// true, if a value is specified for , false otherwise. + /// The SSL compatibility scan result for this creative.

This attribute is + /// read-only and determined by Google.

///
- [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool mediaPlaylistOriginForwardingTypeSpecified { + [System.Xml.Serialization.XmlElementAttribute(Order = 5)] + public SslScanResult sslScanResult { get { - return this.mediaPlaylistOriginForwardingTypeFieldSpecified; + return this.sslScanResultField; } set { - this.mediaPlaylistOriginForwardingTypeFieldSpecified = value; + this.sslScanResultField = value; + this.sslScanResultSpecified = true; } } - /// The origin path prefix provided by the publisher for the media playlists. This - /// field is only applicable for delivery media locations with the value of #mediaPlaylistOriginForwardingType set to OriginForwardingType#CONVENTIONAL, - /// and will be set to null otherwise. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 6)] - public string mediaPlaylistOriginPathPrefix { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool sslScanResultSpecified { get { - return this.mediaPlaylistOriginPathPrefixField; + return this.sslScanResultFieldSpecified; } set { - this.mediaPlaylistOriginPathPrefixField = value; + this.sslScanResultFieldSpecified = value; } } - /// The name of the EdgeCacheKeyset on the Media CDN configuration that will be used - /// to validate signed requests from DAI to ingest content. + /// The manual override for the SSL compatibility of this creative.

This + /// attribute is optional and defaults to SslManualOverride#NO_OVERRIDE.

///
- [System.Xml.Serialization.XmlElementAttribute(Order = 7)] - public string keysetName { + [System.Xml.Serialization.XmlElementAttribute(Order = 6)] + public SslManualOverride sslManualOverride { get { - return this.keysetNameField; + return this.sslManualOverrideField; } set { - this.keysetNameField = value; + this.sslManualOverrideField = value; + this.sslManualOverrideSpecified = true; } } - /// The amount of time in seconds for which a request signed with a short token will - /// be valid. Only required if signedRequestMaximumExpirationTtl has been set in the - /// Media CDN configuration. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 8)] - public long signedRequestExpirationTtlSeconds { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool sslManualOverrideSpecified { get { - return this.signedRequestExpirationTtlSecondsField; + return this.sslManualOverrideFieldSpecified; } set { - this.signedRequestExpirationTtlSecondsField = value; - this.signedRequestExpirationTtlSecondsSpecified = true; + this.sslManualOverrideFieldSpecified = value; } } - /// true, if a value is specified for , false otherwise. + /// A list of impression tracking URLs to ping when this creative is displayed. This + /// field is optional. /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool signedRequestExpirationTtlSecondsSpecified { + [System.Xml.Serialization.XmlElementAttribute("thirdPartyImpressionTrackingUrls", Order = 7)] + public string[] thirdPartyImpressionTrackingUrls { get { - return this.signedRequestExpirationTtlSecondsFieldSpecified; + return this.thirdPartyImpressionTrackingUrlsField; } set { - this.signedRequestExpirationTtlSecondsFieldSpecified = value; + this.thirdPartyImpressionTrackingUrlsField = value; } } } - /// Indicates the type of security policy associated with access to a CDN. Different - /// security policies require different parameters in a SecurityPolicy. + /// A Creative that contains a zipped HTML5 bundle asset, a list of + /// third party impression trackers, and a third party click tracker. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum SecurityPolicyType { - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 0, - /// Indicates that no authentication is necessary. - /// - NONE = 1, - /// Security policy for accessing content on the Akamai CDN. - /// - AKAMAI = 2, - /// Security policy for access content on Google Cloud Media CDN. - /// - CLOUD_MEDIA = 3, - } + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class Html5Creative : Creative { + private bool overrideSizeField; + private bool overrideSizeFieldSpecified; - /// Indicates the type of origin forwarding used to support Akamai authentication - /// policies for LiveStreamEvent - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum OriginForwardingType { - /// Indicates that origin forwarding is set up by passing an originpath query string - /// parameter (necessary for Akamai dynamic packaging to work) - /// - ORIGIN_PATH = 0, - /// Indicates that conventional origin forwarding is used. - /// - CONVENTIONAL = 1, - /// Indicates that origin forwarding is not being used. - /// - NONE = 3, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 2, - } + private string[] thirdPartyImpressionTrackingUrlsField; + private string thirdPartyClickTrackingUrlField; - /// Configuration that associates a media location with a security policy and the - /// authentication credentials needed to access the content. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class MediaLocationSettings { - private string nameField; + private LockedOrientation lockedOrientationField; - private string urlPrefixField; + private bool lockedOrientationFieldSpecified; - private SecurityPolicySettings securityPolicyField; + private SslScanResult sslScanResultField; - /// The name of the media location. This value is read-only and is assigned by - /// Google. + private bool sslScanResultFieldSpecified; + + private SslManualOverride sslManualOverrideField; + + private bool sslManualOverrideFieldSpecified; + + private bool isSafeFrameCompatibleField; + + private bool isSafeFrameCompatibleFieldSpecified; + + private CreativeAsset html5AssetField; + + /// Allows the creative size to differ from the actual HTML5 asset size. This + /// attribute is optional. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public string name { + public bool overrideSize { get { - return this.nameField; + return this.overrideSizeField; } set { - this.nameField = value; + this.overrideSizeField = value; + this.overrideSizeSpecified = true; } } - /// The url prefix of the media location. This value is required for a valid media - /// location. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public string urlPrefix { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool overrideSizeSpecified { get { - return this.urlPrefixField; + return this.overrideSizeFieldSpecified; } set { - this.urlPrefixField = value; + this.overrideSizeFieldSpecified = value; } } - /// The security policy and authentication credentials needed to access the content - /// in this media location. This value is required for a valid media location. + /// Impression tracking URLs to ping when this creative is displayed. This field is + /// optional. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public SecurityPolicySettings securityPolicy { + [System.Xml.Serialization.XmlElementAttribute("thirdPartyImpressionTrackingUrls", Order = 1)] + public string[] thirdPartyImpressionTrackingUrls { get { - return this.securityPolicyField; + return this.thirdPartyImpressionTrackingUrlsField; } set { - this.securityPolicyField = value; + this.thirdPartyImpressionTrackingUrlsField = value; } } - } - - - /// Parameters about this CDN configuration as a source of content. This facilitates - /// fetching the original content for conditioning and delivering the original - /// content as part of a modified stream. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class SourceContentConfiguration { - private MediaLocationSettings ingestSettingsField; - - private MediaLocationSettings defaultDeliverySettingsField; - /// Configuration for how DAI should ingest media. At ingest time, we match the url - /// prefix of media in a stream's playlist with an ingest location and use the - /// authentication credentials from the corresponding ingest settings to download - /// the media. This value is required for a valid source content configuration. + /// A click tracking URL to ping when this creative is clicked. This field is + /// optional. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public MediaLocationSettings ingestSettings { + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public string thirdPartyClickTrackingUrl { get { - return this.ingestSettingsField; + return this.thirdPartyClickTrackingUrlField; } set { - this.ingestSettingsField = value; + this.thirdPartyClickTrackingUrlField = value; } } - /// Default configuration for how DAI should deliver the non-modified media - /// segments. At delivery time, we replace the ingest location's url prefix with the - /// delivery location's URL prefix and use the security policy from the delivery - /// settings to determine how DAI needs to deliver the media so that users can - /// access it. This value is required for a valid source content configuration. + /// A locked orientation for this creative to be displayed in. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public MediaLocationSettings defaultDeliverySettings { + [System.Xml.Serialization.XmlElementAttribute(Order = 3)] + public LockedOrientation lockedOrientation { get { - return this.defaultDeliverySettingsField; + return this.lockedOrientationField; } set { - this.defaultDeliverySettingsField = value; + this.lockedOrientationField = value; + this.lockedOrientationSpecified = true; } } - } - - - /// A CdnConfiguration encapsulates information about - /// where and how to ingest and deliver content enabled for DAI (Dynamic Ad - /// Insertion). - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class CdnConfiguration { - private long idField; - - private bool idFieldSpecified; - - private string nameField; - - private CdnConfigurationType cdnConfigurationTypeField; - - private bool cdnConfigurationTypeFieldSpecified; - - private SourceContentConfiguration sourceContentConfigurationField; - private CdnConfigurationStatus cdnConfigurationStatusField; - - private bool cdnConfigurationStatusFieldSpecified; - - /// The unique ID of the CdnConfiguration. This value - /// is read-only and is assigned by Google. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public long id { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool lockedOrientationSpecified { get { - return this.idField; + return this.lockedOrientationFieldSpecified; } set { - this.idField = value; - this.idSpecified = true; + this.lockedOrientationFieldSpecified = value; } } - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool idSpecified { + /// The SSL compatibility scan result of this creative.

This attribute is + /// read-only and determined by Google.

+ ///
+ [System.Xml.Serialization.XmlElementAttribute(Order = 4)] + public SslScanResult sslScanResult { get { - return this.idFieldSpecified; + return this.sslScanResultField; } set { - this.idFieldSpecified = value; + this.sslScanResultField = value; + this.sslScanResultSpecified = true; } } - /// The name of the CdnConfiguration. This value is - /// required to create a CDN configuration and has a maximum length of 255 - /// characters. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public string name { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool sslScanResultSpecified { get { - return this.nameField; + return this.sslScanResultFieldSpecified; } set { - this.nameField = value; + this.sslScanResultFieldSpecified = value; } } - /// The type of CDN configuration represented by this CdnConfiguration. This value is required to create a - /// CDN configuration + /// The manual override for the SSL compatibility of this creative.

This + /// attribute is optional and defaults to SslManualOverride#NO_OVERRIDE.

///
- [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public CdnConfigurationType cdnConfigurationType { + [System.Xml.Serialization.XmlElementAttribute(Order = 5)] + public SslManualOverride sslManualOverride { get { - return this.cdnConfigurationTypeField; + return this.sslManualOverrideField; } - set { - this.cdnConfigurationTypeField = value; - this.cdnConfigurationTypeSpecified = true; + set { + this.sslManualOverrideField = value; + this.sslManualOverrideSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="sslManualOverride" />, false otherwise.
[System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool cdnConfigurationTypeSpecified { + public bool sslManualOverrideSpecified { get { - return this.cdnConfigurationTypeFieldSpecified; + return this.sslManualOverrideFieldSpecified; } set { - this.cdnConfigurationTypeFieldSpecified = value; + this.sslManualOverrideFieldSpecified = value; } } - /// Parameters about this CDN configuration as a source of content. This facilitates - /// fetching the original content for conditioning and delivering the original - /// content as part of a modified stream. + /// Whether the Creative is compatible for SafeFrame + /// rendering.

This attribute is optional and defaults to true.

///
- [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public SourceContentConfiguration sourceContentConfiguration { + [System.Xml.Serialization.XmlElementAttribute(Order = 6)] + public bool isSafeFrameCompatible { get { - return this.sourceContentConfigurationField; + return this.isSafeFrameCompatibleField; } set { - this.sourceContentConfigurationField = value; + this.isSafeFrameCompatibleField = value; + this.isSafeFrameCompatibleSpecified = true; } } - /// The status of the CDN configuration. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public CdnConfigurationStatus cdnConfigurationStatus { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool isSafeFrameCompatibleSpecified { get { - return this.cdnConfigurationStatusField; + return this.isSafeFrameCompatibleFieldSpecified; } set { - this.cdnConfigurationStatusField = value; - this.cdnConfigurationStatusSpecified = true; + this.isSafeFrameCompatibleFieldSpecified = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool cdnConfigurationStatusSpecified { + /// The HTML5 asset. To preview the HTML5 asset, use the CreativeAsset#assetUrl. In this field, the CreativeAsset#assetByteArray must be a + /// zip bundle and the CreativeAsset#fileName must have a zip + /// extension. This attribute is required. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 7)] + public CreativeAsset html5Asset { get { - return this.cdnConfigurationStatusFieldSpecified; + return this.html5AssetField; } set { - this.cdnConfigurationStatusFieldSpecified = value; + this.html5AssetField = value; } } } - /// Indicates the type of CDN configuration for CdnConfiguration. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum CdnConfigurationType { - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 0, - /// A configuration that specifies where and how LiveStreamEvent content should be ingested and - /// delivered. - /// - LIVE_STREAM_SOURCE_CONTENT = 1, - } - - - /// Indicates the status of the CdnConfiguration. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum CdnConfigurationStatus { - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 0, - /// The CDN configuration is in use. - /// - ACTIVE = 1, - /// The CDN configuration is no longer used. - /// - ARCHIVED = 2, - } - - - /// Errors associated with CdnConfigurations. + /// A Creative that has a destination url /// + [System.Xml.Serialization.XmlIncludeAttribute(typeof(CustomCreative))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(BaseVideoCreative))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(VideoRedirectCreative))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(VideoCreative))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(SetTopBoxCreative))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(BaseImageRedirectCreative))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ImageRedirectOverlayCreative))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ImageRedirectCreative))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(BaseImageCreative))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ImageOverlayCreative))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ImageCreative))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(BaseAudioCreative))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(AudioRedirectCreative))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(AudioCreative))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(AspectRatioImageCreative))] [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class CdnConfigurationError : ApiError { - private CdnConfigurationErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public abstract partial class HasDestinationUrlCreative : Creative { + private string destinationUrlField; - private bool reasonFieldSpecified; + private DestinationUrlType destinationUrlTypeField; - /// The error reason represented by an enum. + private bool destinationUrlTypeFieldSpecified; + + /// The URL that the user is directed to if they click on the creative. This + /// attribute is required unless the destinationUrlType is DestinationUrlType#NONE, and has a maximum + /// length of 1024 characters. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public CdnConfigurationErrorReason reason { + public string destinationUrl { get { - return this.reasonField; + return this.destinationUrlField; } set { - this.reasonField = value; - this.reasonSpecified = true; + this.destinationUrlField = value; } } - /// true, if a value is specified for , - /// false otherwise. + /// The action that should be performed if the user clicks on the creative. This + /// attribute is optional and defaults to DestinationUrlType#CLICK_TO_WEB. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public DestinationUrlType destinationUrlType { + get { + return this.destinationUrlTypeField; + } + set { + this.destinationUrlTypeField = value; + this.destinationUrlTypeSpecified = true; + } + } + + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { + public bool destinationUrlTypeSpecified { get { - return this.reasonFieldSpecified; + return this.destinationUrlTypeFieldSpecified; } set { - this.reasonFieldSpecified = value; + this.destinationUrlTypeFieldSpecified = value; } } } - /// The reasons for the CdnConfigurationError. + /// The valid actions that a destination URL may perform if the user clicks on the + /// ad. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CdnConfigurationError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum CdnConfigurationErrorReason { - /// URL prefixes should not contain schemes. - /// - URL_SHOULD_NOT_CONTAIN_SCHEME = 0, - /// Invalid delivery setting name. Names for new delivery settings must be null or - /// empty. Names for existing delivery settings cannot be modified. + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum DestinationUrlType { + /// The value returned if the actual value is not exposed by the requested API + /// version. /// - INVALID_DELIVERY_LOCATION_NAMES = 1, - /// A CDN configuration cannot be archived if it is used by active content sources. + UNKNOWN = 0, + /// Navigate to a web page. (a.k.a. "Click-through URL"). /// - CANNOT_ARCHIVE_IF_USED_BY_ACTIVE_CONTENT_SOURCES = 3, - /// A CDN configuration cannot be archived if it is used by active live streams. + CLICK_TO_WEB = 1, + /// Start an application. /// - CANNOT_ARCHIVE_IF_USED_BY_ACTIVE_LIVE_STREAMS = 4, - /// The security policy type is not supported for the current settings. + CLICK_TO_APP = 2, + /// Make a phone call. /// - UNSUPPORTED_SECURITY_POLICY_TYPE = 5, - /// The value returned if the actual value is not exposed by the requested API - /// version. + CLICK_TO_CALL = 3, + /// Destination URL not present. Useful for video creatives where a landing page or + /// a product isn't necessarily applicable. /// - UNKNOWN = 2, + NONE = 4, } - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", ConfigurationName = "Google.Api.Ads.AdManager.v202311.CdnConfigurationServiceInterface")] - public interface CdnConfigurationServiceInterface - { - // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Wrappers.CdnConfigurationService.createCdnConfigurationsResponse createCdnConfigurations(Wrappers.CdnConfigurationService.createCdnConfigurationsRequest request); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task createCdnConfigurationsAsync(Wrappers.CdnConfigurationService.createCdnConfigurationsRequest request); + /// A Creative that contains an arbitrary HTML snippet and file assets. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class CustomCreative : HasDestinationUrlCreative { + private string htmlSnippetField; - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v202311.CdnConfigurationPage getCdnConfigurationsByStatement(Google.Api.Ads.AdManager.v202311.Statement statement); + private CustomCreativeAsset[] customCreativeAssetsField; - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getCdnConfigurationsByStatementAsync(Google.Api.Ads.AdManager.v202311.Statement statement); + private bool isInterstitialField; - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v202311.UpdateResult performCdnConfigurationAction(Google.Api.Ads.AdManager.v202311.CdnConfigurationAction cdnConfigurationAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement); + private bool isInterstitialFieldSpecified; - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task performCdnConfigurationActionAsync(Google.Api.Ads.AdManager.v202311.CdnConfigurationAction cdnConfigurationAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement); + private LockedOrientation lockedOrientationField; - // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Wrappers.CdnConfigurationService.updateCdnConfigurationsResponse updateCdnConfigurations(Wrappers.CdnConfigurationService.updateCdnConfigurationsRequest request); + private bool lockedOrientationFieldSpecified; - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task updateCdnConfigurationsAsync(Wrappers.CdnConfigurationService.updateCdnConfigurationsRequest request); - } + private SslScanResult sslScanResultField; + private bool sslScanResultFieldSpecified; - /// Captures a page of CdnConfiguration objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class CdnConfigurationPage { - private int totalResultSetSizeField; + private SslManualOverride sslManualOverrideField; - private bool totalResultSetSizeFieldSpecified; + private bool sslManualOverrideFieldSpecified; - private int startIndexField; + private bool isSafeFrameCompatibleField; - private bool startIndexFieldSpecified; + private bool isSafeFrameCompatibleFieldSpecified; - private CdnConfiguration[] resultsField; + private string[] thirdPartyImpressionTrackingUrlsField; - /// The size of the total result set to which this page belongs. + /// The HTML snippet that this creative delivers. This attribute is required. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public int totalResultSetSize { + public string htmlSnippet { get { - return this.totalResultSetSizeField; + return this.htmlSnippetField; } set { - this.totalResultSetSizeField = value; - this.totalResultSetSizeSpecified = true; + this.htmlSnippetField = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool totalResultSetSizeSpecified { + /// A list of file assets that are associated with this creative, and can be + /// referenced in the snippet. + /// + [System.Xml.Serialization.XmlElementAttribute("customCreativeAssets", Order = 1)] + public CustomCreativeAsset[] customCreativeAssets { get { - return this.totalResultSetSizeFieldSpecified; + return this.customCreativeAssetsField; } set { - this.totalResultSetSizeFieldSpecified = value; + this.customCreativeAssetsField = value; } } - /// The absolute index in the total result set on which this page begins. + /// true if this custom creative is interstitial. An interstitial + /// creative will not consider an impression served until it is fully rendered in + /// the browser. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public int startIndex { + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public bool isInterstitial { get { - return this.startIndexField; + return this.isInterstitialField; } set { - this.startIndexField = value; - this.startIndexSpecified = true; + this.isInterstitialField = value; + this.isInterstitialSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool startIndexSpecified { + public bool isInterstitialSpecified { get { - return this.startIndexFieldSpecified; + return this.isInterstitialFieldSpecified; } set { - this.startIndexFieldSpecified = value; + this.isInterstitialFieldSpecified = value; } } - /// The collection of CDN configurations contained within this page. + /// A locked orientation for this creative to be displayed in. /// - [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] - public CdnConfiguration[] results { + [System.Xml.Serialization.XmlElementAttribute(Order = 3)] + public LockedOrientation lockedOrientation { get { - return this.resultsField; + return this.lockedOrientationField; } set { - this.resultsField = value; + this.lockedOrientationField = value; + this.lockedOrientationSpecified = true; } } - } - - - /// Represents the actions that can be performed on CdnConfiguration objects. - /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ArchiveCdnConfigurations))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ActivateCdnConfigurations))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public abstract partial class CdnConfigurationAction { - } - - - /// The action used for archiving CdnConfiguration - /// objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ArchiveCdnConfigurations : CdnConfigurationAction { - } - - - /// The action used for activating CdnConfiguration - /// objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ActivateCdnConfigurations : CdnConfigurationAction { - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public interface CdnConfigurationServiceInterfaceChannel : Google.Api.Ads.AdManager.v202311.CdnConfigurationServiceInterface, System.ServiceModel.IClientChannel - { - } - - - /// Provides methods for creating, updating and retrieving CdnConfiguration objects. - /// - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public partial class CdnConfigurationService : AdManagerSoapClient, ICdnConfigurationService { - /// Creates a new instance of the - /// class. - public CdnConfigurationService() { - } - - /// Creates a new instance of the - /// class. - public CdnConfigurationService(string endpointConfigurationName) - : base(endpointConfigurationName) { - } - - /// Creates a new instance of the - /// class. - public CdnConfigurationService(string endpointConfigurationName, string remoteAddress) - : base(endpointConfigurationName, remoteAddress) { - } - - /// Creates a new instance of the - /// class. - public CdnConfigurationService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) - : base(endpointConfigurationName, remoteAddress) { - } - - /// Creates a new instance of the - /// class. - public CdnConfigurationService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) - : base(binding, remoteAddress) { - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.CdnConfigurationService.createCdnConfigurationsResponse Google.Api.Ads.AdManager.v202311.CdnConfigurationServiceInterface.createCdnConfigurations(Wrappers.CdnConfigurationService.createCdnConfigurationsRequest request) { - return base.Channel.createCdnConfigurations(request); - } - - /// Creates new CdnConfiguration objects. - /// - public virtual Google.Api.Ads.AdManager.v202311.CdnConfiguration[] createCdnConfigurations(Google.Api.Ads.AdManager.v202311.CdnConfiguration[] cdnConfigurations) { - Wrappers.CdnConfigurationService.createCdnConfigurationsRequest inValue = new Wrappers.CdnConfigurationService.createCdnConfigurationsRequest(); - inValue.cdnConfigurations = cdnConfigurations; - Wrappers.CdnConfigurationService.createCdnConfigurationsResponse retVal = ((Google.Api.Ads.AdManager.v202311.CdnConfigurationServiceInterface)(this)).createCdnConfigurations(inValue); - return retVal.rval; - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202311.CdnConfigurationServiceInterface.createCdnConfigurationsAsync(Wrappers.CdnConfigurationService.createCdnConfigurationsRequest request) { - return base.Channel.createCdnConfigurationsAsync(request); - } - - public virtual System.Threading.Tasks.Task createCdnConfigurationsAsync(Google.Api.Ads.AdManager.v202311.CdnConfiguration[] cdnConfigurations) { - Wrappers.CdnConfigurationService.createCdnConfigurationsRequest inValue = new Wrappers.CdnConfigurationService.createCdnConfigurationsRequest(); - inValue.cdnConfigurations = cdnConfigurations; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202311.CdnConfigurationServiceInterface)(this)).createCdnConfigurationsAsync(inValue)).Result.rval); - } - - /// Gets a CdnConfigurationPage of CdnConfiguration objects that satisfy the given Statement#query. Currently only CDN Configurations of - /// type CdnConfigurationType#LIVE_STREAM_SOURCE_CONTENT will be - /// returned. The following fields are supported for filtering: - /// - ///
PQL Property Object Property
id CdnConfiguration#id
name CdnConfiguration#name
- ///
- public virtual Google.Api.Ads.AdManager.v202311.CdnConfigurationPage getCdnConfigurationsByStatement(Google.Api.Ads.AdManager.v202311.Statement statement) { - return base.Channel.getCdnConfigurationsByStatement(statement); - } - - public virtual System.Threading.Tasks.Task getCdnConfigurationsByStatementAsync(Google.Api.Ads.AdManager.v202311.Statement statement) { - return base.Channel.getCdnConfigurationsByStatementAsync(statement); - } - - /// Performs actions on CdnConfiguration objects that - /// match the given Statement#query. - /// - public virtual Google.Api.Ads.AdManager.v202311.UpdateResult performCdnConfigurationAction(Google.Api.Ads.AdManager.v202311.CdnConfigurationAction cdnConfigurationAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.performCdnConfigurationAction(cdnConfigurationAction, filterStatement); - } - - public virtual System.Threading.Tasks.Task performCdnConfigurationActionAsync(Google.Api.Ads.AdManager.v202311.CdnConfigurationAction cdnConfigurationAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.performCdnConfigurationActionAsync(cdnConfigurationAction, filterStatement); - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.CdnConfigurationService.updateCdnConfigurationsResponse Google.Api.Ads.AdManager.v202311.CdnConfigurationServiceInterface.updateCdnConfigurations(Wrappers.CdnConfigurationService.updateCdnConfigurationsRequest request) { - return base.Channel.updateCdnConfigurations(request); - } - - /// Updates the specified CdnConfiguration objects. - /// - public virtual Google.Api.Ads.AdManager.v202311.CdnConfiguration[] updateCdnConfigurations(Google.Api.Ads.AdManager.v202311.CdnConfiguration[] cdnConfigurations) { - Wrappers.CdnConfigurationService.updateCdnConfigurationsRequest inValue = new Wrappers.CdnConfigurationService.updateCdnConfigurationsRequest(); - inValue.cdnConfigurations = cdnConfigurations; - Wrappers.CdnConfigurationService.updateCdnConfigurationsResponse retVal = ((Google.Api.Ads.AdManager.v202311.CdnConfigurationServiceInterface)(this)).updateCdnConfigurations(inValue); - return retVal.rval; - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202311.CdnConfigurationServiceInterface.updateCdnConfigurationsAsync(Wrappers.CdnConfigurationService.updateCdnConfigurationsRequest request) { - return base.Channel.updateCdnConfigurationsAsync(request); - } - - public virtual System.Threading.Tasks.Task updateCdnConfigurationsAsync(Google.Api.Ads.AdManager.v202311.CdnConfiguration[] cdnConfigurations) { - Wrappers.CdnConfigurationService.updateCdnConfigurationsRequest inValue = new Wrappers.CdnConfigurationService.updateCdnConfigurationsRequest(); - inValue.cdnConfigurations = cdnConfigurations; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202311.CdnConfigurationServiceInterface)(this)).updateCdnConfigurationsAsync(inValue)).Result.rval); - } - } - namespace Wrappers.CompanyService - { - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "createCompanies", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class createCompaniesRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("companies")] - public Google.Api.Ads.AdManager.v202311.Company[] companies; - /// Creates a new instance of the - /// class. - public createCompaniesRequest() { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool lockedOrientationSpecified { + get { + return this.lockedOrientationFieldSpecified; } - - /// Creates a new instance of the - /// class. - public createCompaniesRequest(Google.Api.Ads.AdManager.v202311.Company[] companies) { - this.companies = companies; + set { + this.lockedOrientationFieldSpecified = value; } } - - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "createCompaniesResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class createCompaniesResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v202311.Company[] rval; - - /// Creates a new instance of the - /// class. - public createCompaniesResponse() { - } - - /// Creates a new instance of the - /// class. - public createCompaniesResponse(Google.Api.Ads.AdManager.v202311.Company[] rval) { - this.rval = rval; + /// The SSL compatibility scan result of this creative.

This attribute is + /// read-only and determined by Google.

+ ///
+ [System.Xml.Serialization.XmlElementAttribute(Order = 4)] + public SslScanResult sslScanResult { + get { + return this.sslScanResultField; } - } - - - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "updateCompanies", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class updateCompaniesRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("companies")] - public Google.Api.Ads.AdManager.v202311.Company[] companies; - - /// Creates a new instance of the - /// class. - public updateCompaniesRequest() { + set { + this.sslScanResultField = value; + this.sslScanResultSpecified = true; } + } - /// Creates a new instance of the - /// class. - public updateCompaniesRequest(Google.Api.Ads.AdManager.v202311.Company[] companies) { - this.companies = companies; + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool sslScanResultSpecified { + get { + return this.sslScanResultFieldSpecified; + } + set { + this.sslScanResultFieldSpecified = value; } } - - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "updateCompaniesResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class updateCompaniesResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v202311.Company[] rval; - - /// Creates a new instance of the - /// class. - public updateCompaniesResponse() { + /// The manual override for the SSL compatibility of this creative.

This + /// attribute is optional and defaults to SslManualOverride#NO_OVERRIDE.

+ ///
+ [System.Xml.Serialization.XmlElementAttribute(Order = 5)] + public SslManualOverride sslManualOverride { + get { + return this.sslManualOverrideField; } - - /// Creates a new instance of the - /// class. - public updateCompaniesResponse(Google.Api.Ads.AdManager.v202311.Company[] rval) { - this.rval = rval; + set { + this.sslManualOverrideField = value; + this.sslManualOverrideSpecified = true; } } - } - /// Information required for Company of Type - /// VIEWABILITY_PROVIDER. It contains all of the data needed to capture viewability - /// metrics. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ViewabilityProvider { - private string vendorKeyField; - - private string verificationScriptUrlField; - - private string verificationParametersField; - - private string verificationRejectionTrackerUrlField; - /// The key for this ad verification vendor. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public string vendorKey { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool sslManualOverrideSpecified { get { - return this.vendorKeyField; + return this.sslManualOverrideFieldSpecified; } set { - this.vendorKeyField = value; + this.sslManualOverrideFieldSpecified = value; } } - /// The URL that hosts the verification script for this vendor. + /// Whether the Creative is compatible for SafeFrame + /// rendering.

This attribute is optional and defaults to true.

///
- [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public string verificationScriptUrl { + [System.Xml.Serialization.XmlElementAttribute(Order = 6)] + public bool isSafeFrameCompatible { get { - return this.verificationScriptUrlField; + return this.isSafeFrameCompatibleField; } set { - this.verificationScriptUrlField = value; + this.isSafeFrameCompatibleField = value; + this.isSafeFrameCompatibleSpecified = true; } } - /// The parameters that will be passed to the verification script. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public string verificationParameters { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool isSafeFrameCompatibleSpecified { get { - return this.verificationParametersField; + return this.isSafeFrameCompatibleFieldSpecified; } set { - this.verificationParametersField = value; + this.isSafeFrameCompatibleFieldSpecified = value; } } - /// The URL that should be pinged if the verification script cannot be run. + /// A list of impression tracking URLs to ping when this creative is displayed. This + /// field is optional. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public string verificationRejectionTrackerUrl { + [System.Xml.Serialization.XmlElementAttribute("thirdPartyImpressionTrackingUrls", Order = 7)] + public string[] thirdPartyImpressionTrackingUrls { get { - return this.verificationRejectionTrackerUrlField; + return this.thirdPartyImpressionTrackingUrlsField; } set { - this.verificationRejectionTrackerUrlField = value; + this.thirdPartyImpressionTrackingUrlsField = value; } } } - /// A ChildPublisher represents a network being managed as part of - /// Multiple Customer Management. + /// A base type for video creatives. /// + [System.Xml.Serialization.XmlIncludeAttribute(typeof(VideoRedirectCreative))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(VideoCreative))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(SetTopBoxCreative))] [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ChildPublisher { - private DelegationType approvedDelegationTypeField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public abstract partial class BaseVideoCreative : HasDestinationUrlCreative { + private int durationField; - private bool approvedDelegationTypeFieldSpecified; + private bool durationFieldSpecified; - private DelegationType proposedDelegationTypeField; + private bool allowDurationOverrideField; - private bool proposedDelegationTypeFieldSpecified; + private bool allowDurationOverrideFieldSpecified; - private DelegationStatus statusField; + private ConversionEvent_TrackingUrlsMapEntry[] trackingUrlsField; - private bool statusFieldSpecified; + private long[] companionCreativeIdsField; - private AccountStatus accountStatusField; + private string customParametersField; - private bool accountStatusFieldSpecified; + private string adIdField; - private string childNetworkCodeField; + private AdIdType adIdTypeField; - private string sellerIdField; + private bool adIdTypeFieldSpecified; - private long proposedRevenueShareMillipercentField; + private SkippableAdType skippableAdTypeField; - private bool proposedRevenueShareMillipercentFieldSpecified; + private bool skippableAdTypeFieldSpecified; - private OnboardingTask[] onboardingTasksField; + private string vastPreviewUrlField; - /// Type of delegation the parent has been approved to have over the child. This - /// field is read-only, and set to the proposed delegation type value - /// proposedDelegationType upon approval by the child network. The - /// value remains null if the parent network has not been approved. + private SslScanResult sslScanResultField; + + private bool sslScanResultFieldSpecified; + + private SslManualOverride sslManualOverrideField; + + private bool sslManualOverrideFieldSpecified; + + /// The expected duration of this creative in milliseconds. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public DelegationType approvedDelegationType { + public int duration { get { - return this.approvedDelegationTypeField; + return this.durationField; } set { - this.approvedDelegationTypeField = value; - this.approvedDelegationTypeSpecified = true; + this.durationField = value; + this.durationSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool approvedDelegationTypeSpecified { + public bool durationSpecified { get { - return this.approvedDelegationTypeFieldSpecified; + return this.durationFieldSpecified; } set { - this.approvedDelegationTypeFieldSpecified = value; + this.durationFieldSpecified = value; } } - /// Type of delegation the parent has proposed to have over the child, pending - /// approval of the child network. Set the value of this field to the delegation - /// type you intend this network to have over the child network. Upon approval by - /// the child network, its value is copied to approvedDelegationType, - /// and is set to null. + /// Allows the creative duration to differ from the actual asset durations. This + /// attribute is optional. /// [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public DelegationType proposedDelegationType { + public bool allowDurationOverride { get { - return this.proposedDelegationTypeField; + return this.allowDurationOverrideField; } set { - this.proposedDelegationTypeField = value; - this.proposedDelegationTypeSpecified = true; + this.allowDurationOverrideField = value; + this.allowDurationOverrideSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="allowDurationOverride" />, false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool proposedDelegationTypeSpecified { + public bool allowDurationOverrideSpecified { get { - return this.proposedDelegationTypeFieldSpecified; + return this.allowDurationOverrideFieldSpecified; } set { - this.proposedDelegationTypeFieldSpecified = value; + this.allowDurationOverrideFieldSpecified = value; } } - /// Status of the delegation relationship between parent and child. + /// A map from ConversionEvent to a list of URLs that will be pinged + /// when the event happens. This attribute is optional. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public DelegationStatus status { + [System.Xml.Serialization.XmlElementAttribute("trackingUrls", Order = 2)] + public ConversionEvent_TrackingUrlsMapEntry[] trackingUrls { get { - return this.statusField; + return this.trackingUrlsField; } set { - this.statusField = value; - this.statusSpecified = true; + this.trackingUrlsField = value; } } - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool statusSpecified { + /// The IDs of the companion creatives that are associated with this creative. This + /// attribute is optional. + /// + [System.Xml.Serialization.XmlElementAttribute("companionCreativeIds", Order = 3)] + public long[] companionCreativeIds { get { - return this.statusFieldSpecified; + return this.companionCreativeIdsField; } set { - this.statusFieldSpecified = value; + this.companionCreativeIdsField = value; } } - /// Status of the child publisher's Ad Manager account based on as - /// well as Google's policy verification results. This field is read-only. + /// A comma separated key=value list of parameters that will be supplied to the + /// creative, written into the VAST node. This attribute is optional. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public AccountStatus accountStatus { + [System.Xml.Serialization.XmlElementAttribute(Order = 4)] + public string customParameters { get { - return this.accountStatusField; + return this.customParametersField; } set { - this.accountStatusField = value; - this.accountStatusSpecified = true; + this.customParametersField = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool accountStatusSpecified { + /// The ad id associated with the video as defined by the registry. + /// This field is required if adIdType is not AdIdType#NONE. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 5)] + public string adId { get { - return this.accountStatusFieldSpecified; + return this.adIdField; } set { - this.accountStatusFieldSpecified = value; + this.adIdField = value; } } - /// Network code of child network. + /// The registry which the ad id of this creative belongs to. This field is optional + /// and defaults to AdIdType#NONE. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public string childNetworkCode { + [System.Xml.Serialization.XmlElementAttribute(Order = 6)] + public AdIdType adIdType { get { - return this.childNetworkCodeField; + return this.adIdTypeField; } set { - this.childNetworkCodeField = value; + this.adIdTypeField = value; + this.adIdTypeSpecified = true; } } - /// The child publisher's seller ID, as specified in the parent publisher's - /// sellers.json file.

This field is only relevant for Manage Inventory child - /// publishers.

- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 5)] - public string sellerId { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool adIdTypeSpecified { get { - return this.sellerIdField; + return this.adIdTypeFieldSpecified; } set { - this.sellerIdField = value; + this.adIdTypeFieldSpecified = value; } } - /// The proposed revenue share that the parent publisher will receive in - /// millipercentage (values 0 to 100000) for Manage Account proposals. For example, - /// 15% is 15000 millipercent.

For updates, this field is read-only. Use company - /// actions to propose new revenue share agreements for existing MCM children. This - /// field is ignored for Manage Inventory proposals.

+ /// The type of skippable ad. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 6)] - public long proposedRevenueShareMillipercent { + [System.Xml.Serialization.XmlElementAttribute(Order = 7)] + public SkippableAdType skippableAdType { get { - return this.proposedRevenueShareMillipercentField; + return this.skippableAdTypeField; } set { - this.proposedRevenueShareMillipercentField = value; - this.proposedRevenueShareMillipercentSpecified = true; + this.skippableAdTypeField = value; + this.skippableAdTypeSpecified = true; } } /// true, if a value is specified for , false otherwise. - /// + /// cref="skippableAdType" />, false otherwise.
[System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool proposedRevenueShareMillipercentSpecified { + public bool skippableAdTypeSpecified { get { - return this.proposedRevenueShareMillipercentFieldSpecified; + return this.skippableAdTypeFieldSpecified; } set { - this.proposedRevenueShareMillipercentFieldSpecified = value; + this.skippableAdTypeFieldSpecified = value; } } - /// The child publisher's pending onboarding tasks.

This will only be populated - /// if the child publisher's is PENDING_GOOGLE_APPROVAL. - /// This attribute is read-only.

+ /// An ad tag URL that will return a preview of the VAST XML response specific to + /// this creative. This attribute is read-only. /// - [System.Xml.Serialization.XmlElementAttribute("onboardingTasks", Order = 7)] - public OnboardingTask[] onboardingTasks { + [System.Xml.Serialization.XmlElementAttribute(Order = 8)] + public string vastPreviewUrl { get { - return this.onboardingTasksField; + return this.vastPreviewUrlField; } set { - this.onboardingTasksField = value; + this.vastPreviewUrlField = value; } } - } - - - /// The type of delegation of the child network to the parent network in MCM. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum DelegationType { - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 0, - /// The parent network gets complete access to the child network's account - /// - MANAGE_ACCOUNT = 1, - /// A subset of the ad requests from the child are delegated to the parent, - /// determined by the tag on the child network's web pages. The parent network does - /// not have access to the child network, as a subset of the inventory could be - /// owned and operated by the child network. - /// - MANAGE_INVENTORY = 2, - } - - - /// Status of the association between networks. When a parent network requests - /// access, it is marked as pending. Once the child network approves, it is marked - /// as approved. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum DelegationStatus { - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 0, - /// The association request from the parent network is approved by the child - /// network. - /// - APPROVED = 1, - /// The association request from the parent network is pending child network - /// approval or rejection. - /// - PENDING = 2, - /// The association request from the parent network is rejected or revoked by the - /// child network. - /// - REJECTED = 3, - /// The association request from the parent network is withdrawn by the parent - /// network. - /// - WITHDRAWN = 4, - } - - - /// Status of the MCM child publisher's Ad Manager account with respect to delegated - /// serving. In order for the child network to be served ads for MCM, it must have - /// accepted the invite from the parent network, and must have passed Google's - /// policy compliance verifications. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum AccountStatus { - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 0, - /// The child publisher has not acted on the invite from the parent. - /// - INVITED = 1, - /// The child publisher has declined the invite. - /// - DECLINED = 2, - /// The child publisher has accepted the invite, and is awaiting Google's policy - /// compliance verifications. - /// - PENDING_GOOGLE_APPROVAL = 3, - /// The child publisher accepted the invite, and Google found it to be compliant - /// with its policies, i.e. no policy violations were found, and the child publisher - /// can be served ads. - /// - APPROVED = 4, - /// The child publisher accepted the invite, but was disapproved by Google for - /// violating its policies. - /// - CLOSED_POLICY_VIOLATION = 10, - /// The child publisher accepted the invite, but was disapproved by Google for - /// invalid activity. - /// - CLOSED_INVALID_ACTIVITY = 11, - /// The child publisher has closed their own account. - /// - CLOSED_BY_PUBLISHER = 12, - /// The child publisher accepted the invite, but was disapproved as ineligible by - /// Google. - /// - DISAPPROVED_INELIGIBLE = 13, - /// The child publisher accepted the invite, but was disapproved by Google for being - /// a duplicate of another account. - /// - DISAPPROVED_DUPLICATE_ACCOUNT = 6, - /// The invite was sent to the child publisher more than 90 days ago, due to which - /// it has been deactivated. - /// - EXPIRED = 7, - /// Either the child publisher disconnected from the parent network, or the parent - /// network withdrew the invite. - /// - INACTIVE = 8, - /// The association between the parent and child publishers was deactivated by - /// Google Ad Manager. - /// - DEACTIVATED_BY_AD_MANAGER = 9, - } - - - /// Pending onboarding tasks for the child publishers that must completed before - /// Google's policy compliance is verified. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum OnboardingTask { - UNKNOWN = 0, - /// Creation of the child publisher's payments billing profile. - /// - BILLING_PROFILE_CREATION = 1, - /// Verification of the child publisher's phone number. - /// - PHONE_PIN_VERIFICATION = 2, - /// Setup of the child publisher's Ad Manager account. - /// - AD_MANAGER_ACCOUNT_SETUP = 3, - } - - - /// A Company represents an agency, a single advertiser or an entire - /// advertising network. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class Company { - private long idField; - - private bool idFieldSpecified; - - private string nameField; - - private CompanyType typeField; - - private bool typeFieldSpecified; - - private string addressField; - - private string emailField; - - private string faxPhoneField; - - private string primaryPhoneField; - - private string externalIdField; - - private string commentField; - - private CompanyCreditStatus creditStatusField; - - private bool creditStatusFieldSpecified; - - private AppliedLabel[] appliedLabelsField; - - private long primaryContactIdField; - - private bool primaryContactIdFieldSpecified; - - private long[] appliedTeamIdsField; - - private int thirdPartyCompanyIdField; - - private bool thirdPartyCompanyIdFieldSpecified; - - private DateTime lastModifiedDateTimeField; - - private ChildPublisher childPublisherField; - - private ViewabilityProvider viewabilityProviderField; - /// Uniquely identifies the Company. This value is read-only and is - /// assigned by Google when the company is created. This attribute is required for - /// updates. + /// The SSL compatibility scan result of this creative.

This attribute is + /// read-only and determined by Google.

///
- [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public long id { + [System.Xml.Serialization.XmlElementAttribute(Order = 9)] + public SslScanResult sslScanResult { get { - return this.idField; + return this.sslScanResultField; } set { - this.idField = value; - this.idSpecified = true; + this.sslScanResultField = value; + this.sslScanResultSpecified = true; } } - /// true, if a value is specified for , - /// false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool idSpecified { + public bool sslScanResultSpecified { get { - return this.idFieldSpecified; + return this.sslScanResultFieldSpecified; } set { - this.idFieldSpecified = value; + this.sslScanResultFieldSpecified = value; } } - /// The full name of the company. This attribute is required and has a maximum - /// length of 127 characters. + /// The manual override for the SSL compatibility of this creative.

This + /// attribute is optional and defaults to SslManualOverride#NO_OVERRIDE.

///
- [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public string name { + [System.Xml.Serialization.XmlElementAttribute(Order = 10)] + public SslManualOverride sslManualOverride { get { - return this.nameField; + return this.sslManualOverrideField; } set { - this.nameField = value; + this.sslManualOverrideField = value; + this.sslManualOverrideSpecified = true; } } - /// Specifies what kind of company this is. This attribute is required. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public CompanyType type { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool sslManualOverrideSpecified { get { - return this.typeField; + return this.sslManualOverrideFieldSpecified; } set { - this.typeField = value; - this.typeSpecified = true; + this.sslManualOverrideFieldSpecified = value; } } + } - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool typeSpecified { + + /// The registry that an ad ID belongs to. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum AdIdType { + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 0, + /// The ad ID is registered with ad-id.org. + /// + AD_ID = 1, + /// The ad ID is registered with clearcast.co.uk. + /// + CLEARCAST = 2, + /// The creative does not have an ad ID outside of Ad Manager. + /// + NONE = 3, + /// The ad ID is registered with ARPP Pub-ID. + /// + ARPP = 4, + /// The ad ID is registered with Auditel Spot ID. + /// + CUSV = 5, + } + + + /// A Creative that contains externally hosted video ads and is served + /// via VAST XML. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class VideoRedirectCreative : BaseVideoCreative { + private VideoRedirectAsset[] videoAssetsField; + + private VideoRedirectAsset mezzanineFileField; + + /// The video creative assets. + /// + [System.Xml.Serialization.XmlElementAttribute("videoAssets", Order = 0)] + public VideoRedirectAsset[] videoAssets { get { - return this.typeFieldSpecified; + return this.videoAssetsField; } set { - this.typeFieldSpecified = value; + this.videoAssetsField = value; } } - /// Specifies the address of the company. This attribute is optional and has a - /// maximum length of 1024 characters. + /// The high quality mezzanine video asset. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public string address { + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public VideoRedirectAsset mezzanineFile { get { - return this.addressField; + return this.mezzanineFileField; } set { - this.addressField = value; + this.mezzanineFileField = value; } } + } - /// Specifies the email of the company. This attribute is optional and has a maximum - /// length of 128 characters. + + /// A Creative that contains Ad Manager hosted video ads and is served + /// via VAST XML. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class VideoCreative : BaseVideoCreative { + private string videoSourceUrlField; + + /// A URL that points to the source media that will be used for transcoding. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public string email { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public string videoSourceUrl { get { - return this.emailField; + return this.videoSourceUrlField; } set { - this.emailField = value; + this.videoSourceUrlField = value; } } + } - /// Specifies the fax phone number of the company. This attribute is optional and - /// has a maximum length of 63 characters. + + /// A Creative that will be served into cable set-top boxes. There are + /// no assets for this creative type, as they are hosted by external cable systems. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class SetTopBoxCreative : BaseVideoCreative { + private string externalAssetIdField; + + private string providerIdField; + + private string[] availabilityRegionIdsField; + + private DateTime licenseWindowStartDateTimeField; + + private DateTime licenseWindowEndDateTimeField; + + /// An external asset identifier that is used in the cable system. This attribute is + /// read-only after creation. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 5)] - public string faxPhone { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public string externalAssetId { get { - return this.faxPhoneField; + return this.externalAssetIdField; } set { - this.faxPhoneField = value; + this.externalAssetIdField = value; } } - /// Specifies the primary phone number of the company. This attribute is optional - /// and has a maximum length of 63 characters. + /// An identifier for the provider in the cable system. This attribute is read-only + /// after creation. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 6)] - public string primaryPhone { + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public string providerId { get { - return this.primaryPhoneField; + return this.providerIdField; } set { - this.primaryPhoneField = value; + this.providerIdField = value; } } - /// Specifies the external ID of the company. This attribute is optional and has a - /// maximum length of 255 characters. + /// IDs of regions where the creative is available to serve from a local cable + /// video-on-demand server. This attribute is optional. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 7)] - public string externalId { + [System.Xml.Serialization.XmlElementAttribute("availabilityRegionIds", Order = 2)] + public string[] availabilityRegionIds { get { - return this.externalIdField; + return this.availabilityRegionIdsField; } set { - this.externalIdField = value; + this.availabilityRegionIdsField = value; } } - /// Specifies the comment of the company. This attribute is optional and has a - /// maximum length of 1024 characters. + /// The date and time that this creative can begin serving from a local cable + /// video-on-demand server. This attribute is optional. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 8)] - public string comment { + [System.Xml.Serialization.XmlElementAttribute(Order = 3)] + public DateTime licenseWindowStartDateTime { get { - return this.commentField; + return this.licenseWindowStartDateTimeField; } set { - this.commentField = value; + this.licenseWindowStartDateTimeField = value; } } - /// Specifies the company's credit status. This attribute is optional and defaults - /// to CreditStatus#ACTIVE when basic credit status settings are - /// enabled, and CreditStatus#ON_HOLD when advanced credit status - /// settings are enabled. + /// The date and time that this creative can no longer be served from a local cable + /// video-on-demand server. This attribute is optional. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 9)] - public CompanyCreditStatus creditStatus { + [System.Xml.Serialization.XmlElementAttribute(Order = 4)] + public DateTime licenseWindowEndDateTime { get { - return this.creditStatusField; + return this.licenseWindowEndDateTimeField; } set { - this.creditStatusField = value; - this.creditStatusSpecified = true; + this.licenseWindowEndDateTimeField = value; } } + } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool creditStatusSpecified { + + /// The base type for creatives that load an image asset from a specified URL. + /// + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ImageRedirectOverlayCreative))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ImageRedirectCreative))] + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public abstract partial class BaseImageRedirectCreative : HasDestinationUrlCreative { + private string imageUrlField; + + /// The URL where the actual asset resides. This attribute is required and has a + /// maximum length of 1024 characters. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public string imageUrl { get { - return this.creditStatusFieldSpecified; + return this.imageUrlField; } set { - this.creditStatusFieldSpecified = value; + this.imageUrlField = value; } } + } - /// The set of labels applied to this company. + + /// An overlay Creative that loads an image asset from a specified URL + /// and is served via VAST XML. Overlays cover part of the video content they are + /// displayed on top of. This creative is read only. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ImageRedirectOverlayCreative : BaseImageRedirectCreative { + private Size assetSizeField; + + private int durationField; + + private bool durationFieldSpecified; + + private long[] companionCreativeIdsField; + + private ConversionEvent_TrackingUrlsMapEntry[] trackingUrlsField; + + private string customParametersField; + + private string vastPreviewUrlField; + + /// The size of the image asset. Note that this may differ from #size if the asset is not expected to fill the entire video + /// player. This attribute is optional. /// - [System.Xml.Serialization.XmlElementAttribute("appliedLabels", Order = 10)] - public AppliedLabel[] appliedLabels { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public Size assetSize { get { - return this.appliedLabelsField; + return this.assetSizeField; } set { - this.appliedLabelsField = value; + this.assetSizeField = value; } } - /// The ID of the Contact who is acting as the primary contact - /// for this company. This attribute is optional. + /// Minimum suggested duration in milliseconds. This attribute is optional. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 11)] - public long primaryContactId { + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public int duration { get { - return this.primaryContactIdField; + return this.durationField; } set { - this.primaryContactIdField = value; - this.primaryContactIdSpecified = true; + this.durationField = value; + this.durationSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool primaryContactIdSpecified { + public bool durationSpecified { get { - return this.primaryContactIdFieldSpecified; + return this.durationFieldSpecified; } set { - this.primaryContactIdFieldSpecified = value; + this.durationFieldSpecified = value; } } - /// The IDs of all teams that this company is on directly. + /// The IDs of the companion creatives that are associated with this creative. This + /// attribute is optional. /// - [System.Xml.Serialization.XmlElementAttribute("appliedTeamIds", Order = 12)] - public long[] appliedTeamIds { + [System.Xml.Serialization.XmlElementAttribute("companionCreativeIds", Order = 2)] + public long[] companionCreativeIds { get { - return this.appliedTeamIdsField; + return this.companionCreativeIdsField; } set { - this.appliedTeamIdsField = value; + this.companionCreativeIdsField = value; } } - /// Specifies the ID of the Google-recognized canonicalized form of this company. - /// This attribute is optional. + /// A map from ConversionEvent to a list of URLs that will be pinged + /// when the event happens. This attribute is optional. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 13)] - public int thirdPartyCompanyId { + [System.Xml.Serialization.XmlElementAttribute("trackingUrls", Order = 3)] + public ConversionEvent_TrackingUrlsMapEntry[] trackingUrls { get { - return this.thirdPartyCompanyIdField; + return this.trackingUrlsField; } set { - this.thirdPartyCompanyIdField = value; - this.thirdPartyCompanyIdSpecified = true; + this.trackingUrlsField = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool thirdPartyCompanyIdSpecified { + /// A comma separated key=value list of parameters that will be supplied to the + /// creative, written into the VAST node. This attribute is optional. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 4)] + public string customParameters { get { - return this.thirdPartyCompanyIdFieldSpecified; + return this.customParametersField; } set { - this.thirdPartyCompanyIdFieldSpecified = value; + this.customParametersField = value; } } - /// The date and time this company was last modified. + /// An ad tag URL that will return a preview of the VAST XML response specific to + /// this creative. This attribute is read-only. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 14)] - public DateTime lastModifiedDateTime { + [System.Xml.Serialization.XmlElementAttribute(Order = 5)] + public string vastPreviewUrl { get { - return this.lastModifiedDateTimeField; + return this.vastPreviewUrlField; } set { - this.lastModifiedDateTimeField = value; + this.vastPreviewUrlField = value; } } + } - /// Info required for when Company Type is CHILD_PUBLISHER. + + /// A Creative that loads an image asset from a specified URL. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ImageRedirectCreative : BaseImageRedirectCreative { + private string altTextField; + + private string[] thirdPartyImpressionTrackingUrlsField; + + /// Alternative text to be rendered along with the creative used mainly for + /// accessibility. This field is optional and has a maximum length of 500 + /// characters. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 15)] - public ChildPublisher childPublisher { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public string altText { get { - return this.childPublisherField; + return this.altTextField; } set { - this.childPublisherField = value; + this.altTextField = value; } } - /// Info required for when Company Type is VIEWABILITY_PROVIDER. + /// A list of impression tracking URL to ping when this creative is displayed. This + /// field is optional and each string has a maximum length of 1024 characters. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 16)] - public ViewabilityProvider viewabilityProvider { + [System.Xml.Serialization.XmlElementAttribute("thirdPartyImpressionTrackingUrls", Order = 1)] + public string[] thirdPartyImpressionTrackingUrls { get { - return this.viewabilityProviderField; + return this.thirdPartyImpressionTrackingUrlsField; } set { - this.viewabilityProviderField = value; + this.thirdPartyImpressionTrackingUrlsField = value; } } } - /// The type of the company. Once a company is created, it is not possible to change - /// its type. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "Company.Type", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum CompanyType { - /// The publisher's own advertiser. When no outside advertiser buys its inventory, - /// the publisher may run its own advertising campaigns. - /// - HOUSE_ADVERTISER = 0, - /// The publisher's own agency. - /// - HOUSE_AGENCY = 1, - /// A business entity that buys publisher inventory to run advertising campaigns. An - /// advertiser is optionally associated with one or more agencies. - /// - ADVERTISER = 2, - /// A business entity that offers services, such as advertising creation, placement, - /// and management, to advertisers. - /// - AGENCY = 3, - /// A company representing multiple advertisers and agencies. - /// - AD_NETWORK = 4, - /// A company representing a partner. - /// - PARTNER = 8, - /// A company representing a child network. - /// - CHILD_PUBLISHER = 10, - /// A company representing a viewability provider. - /// - VIEWABILITY_PROVIDER = 9, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 7, - } - - - /// Specifies the credit-worthiness of the company for which the publisher runs an - /// order. By doing so, the publisher can control the running of campaigns for the - /// company. A publisher can choose between Basic and Advanced Credit Status - /// settings. This feature needs to be enabled in the Ad Manager web site. Also the - /// kind of setting you need - Basic or Advanced must be configured. If Basic is - /// enabled then, the values allowed are ACTIVE and . If - /// Advanced is chosen, then all values are allowed. Choosing an Advanced setting - /// when only the Basic feature has been enabled, or using the Basic setting without - /// turning the feature on will result in an error. + /// The base type for creatives that display an image. /// + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ImageOverlayCreative))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ImageCreative))] [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "Company.CreditStatus", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum CompanyCreditStatus { - /// When the credit status is active, all line items in all orders belonging to the - /// company will be served. This is a Basic as well as an Advanced Credit Status - /// setting. - /// - ACTIVE = 0, - /// When the credit status is on hold, the publisher cannot activate new line items - /// of the company. However, line items that were activated before the credit status - /// change will remain active. You can still create orders and line items for the - /// company. This is an Advanced Credit Status setting. - /// - ON_HOLD = 1, - /// When the credit status is credit stop, the publisher cannot activate new line - /// items of the company. However, line items that were activated before the credit - /// status change will remain active. You cannot create any new orders or line items - /// for the company. This is an Advanced Credit Status setting. - /// - CREDIT_STOP = 2, - /// When the credit status is inactive, the publisher cannot activate new line items - /// of the company. However, line items that were activated before the credit status - /// change will remain active. You cannot create any new orders or line items for - /// the company. It is used to mark companies with which business is to be - /// discontinued. Such companies are not listed in Ad Manager web site. This is a - /// Basic as well as an Advanced Credit Status setting. - /// - INACTIVE = 3, - /// When the credit status of a company is marked blocked, then all active line - /// items belonging to the company will stop serving with immediate effect. You - /// cannot active new line items of the company nor can you create any new orders or - /// line items belonging to the company. This is an Advanced Credit Status setting. - /// - BLOCKED = 4, - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", ConfigurationName = "Google.Api.Ads.AdManager.v202311.CompanyServiceInterface")] - public interface CompanyServiceInterface - { - // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Wrappers.CompanyService.createCompaniesResponse createCompanies(Wrappers.CompanyService.createCompaniesRequest request); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task createCompaniesAsync(Wrappers.CompanyService.createCompaniesRequest request); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v202311.CompanyPage getCompaniesByStatement(Google.Api.Ads.AdManager.v202311.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getCompaniesByStatementAsync(Google.Api.Ads.AdManager.v202311.Statement filterStatement); + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public abstract partial class BaseImageCreative : HasDestinationUrlCreative { + private bool overrideSizeField; - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v202311.UpdateResult performCompanyAction(Google.Api.Ads.AdManager.v202311.CompanyAction companyAction, Google.Api.Ads.AdManager.v202311.Statement statement); + private bool overrideSizeFieldSpecified; - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task performCompanyActionAsync(Google.Api.Ads.AdManager.v202311.CompanyAction companyAction, Google.Api.Ads.AdManager.v202311.Statement statement); + private CreativeAsset primaryImageAssetField; - // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Wrappers.CompanyService.updateCompaniesResponse updateCompanies(Wrappers.CompanyService.updateCompaniesRequest request); + /// Allows the creative size to differ from the actual image asset size. This + /// attribute is optional. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public bool overrideSize { + get { + return this.overrideSizeField; + } + set { + this.overrideSizeField = value; + this.overrideSizeSpecified = true; + } + } - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task updateCompaniesAsync(Wrappers.CompanyService.updateCompaniesRequest request); + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool overrideSizeSpecified { + get { + return this.overrideSizeFieldSpecified; + } + set { + this.overrideSizeFieldSpecified = value; + } + } + + /// The primary image asset associated with this creative. This attribute is + /// required. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public CreativeAsset primaryImageAsset { + get { + return this.primaryImageAssetField; + } + set { + this.primaryImageAssetField = value; + } + } } - /// Captures a page of Company objects. + /// An overlay Creative that displays an image and is served via VAST + /// 2.0 XML. Overlays cover part of the video content they are displayed on top of. + /// This creative is read only prior to v201705. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class CompanyPage { - private int totalResultSetSizeField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ImageOverlayCreative : BaseImageCreative { + private long[] companionCreativeIdsField; - private bool totalResultSetSizeFieldSpecified; + private ConversionEvent_TrackingUrlsMapEntry[] trackingUrlsField; - private int startIndexField; + private LockedOrientation lockedOrientationField; - private bool startIndexFieldSpecified; + private bool lockedOrientationFieldSpecified; - private Company[] resultsField; + private string customParametersField; - /// The size of the total result set to which this page belongs. + private int durationField; + + private bool durationFieldSpecified; + + private string vastPreviewUrlField; + + /// The IDs of the companion creatives that are associated with this creative. This + /// attribute is optional. This attribute is read-only. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public int totalResultSetSize { + [System.Xml.Serialization.XmlElementAttribute("companionCreativeIds", Order = 0)] + public long[] companionCreativeIds { get { - return this.totalResultSetSizeField; + return this.companionCreativeIdsField; } set { - this.totalResultSetSizeField = value; - this.totalResultSetSizeSpecified = true; + this.companionCreativeIdsField = value; + } + } + + /// A map from ConversionEvent to a list of URLs that will be pinged + /// when the event happens. This attribute is optional. + /// + [System.Xml.Serialization.XmlElementAttribute("trackingUrls", Order = 1)] + public ConversionEvent_TrackingUrlsMapEntry[] trackingUrls { + get { + return this.trackingUrlsField; + } + set { + this.trackingUrlsField = value; + } + } + + /// A locked orientation for this creative to be displayed in. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public LockedOrientation lockedOrientation { + get { + return this.lockedOrientationField; + } + set { + this.lockedOrientationField = value; + this.lockedOrientationSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="lockedOrientation" />, false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool totalResultSetSizeSpecified { + public bool lockedOrientationSpecified { get { - return this.totalResultSetSizeFieldSpecified; + return this.lockedOrientationFieldSpecified; } set { - this.totalResultSetSizeFieldSpecified = value; + this.lockedOrientationFieldSpecified = value; } } - /// The absolute index in the total result set on which this page begins. + /// A comma separated key=value list of parameters that will be supplied to the + /// creative, written into the VAST node. This attribute is optional. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public int startIndex { + [System.Xml.Serialization.XmlElementAttribute(Order = 3)] + public string customParameters { get { - return this.startIndexField; + return this.customParametersField; } set { - this.startIndexField = value; - this.startIndexSpecified = true; + this.customParametersField = value; } } - /// true, if a value is specified for Minimum suggested duration in milliseconds. This attribute is optional. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 4)] + public int duration { + get { + return this.durationField; + } + set { + this.durationField = value; + this.durationSpecified = true; + } + } + + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool startIndexSpecified { + public bool durationSpecified { get { - return this.startIndexFieldSpecified; + return this.durationFieldSpecified; } set { - this.startIndexFieldSpecified = value; + this.durationFieldSpecified = value; } } - /// The collection of companies contained within this page. + /// An ad tag URL that will return a preview of the VAST XML response specific to + /// this creative. This attribute is read-only. /// - [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] - public Company[] results { + [System.Xml.Serialization.XmlElementAttribute(Order = 5)] + public string vastPreviewUrl { get { - return this.resultsField; + return this.vastPreviewUrlField; } set { - this.resultsField = value; + this.vastPreviewUrlField = value; } } } - /// Represents the actions that can be performed on Company objects. + /// A Creative that displays an image. /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ResendInvitationAction))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(EndAgreementAction))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ReInviteAction))] [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public abstract partial class CompanyAction { - } + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ImageCreative : BaseImageCreative { + private string altTextField; + private string[] thirdPartyImpressionTrackingUrlsField; - /// The action used by the parent network to resend an invitation email with the - /// same proposal to an expired child publisher. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ResendInvitationAction : CompanyAction { - } + private CreativeAsset[] secondaryImageAssetsField; + /// Alternative text to be rendered along with the creative used mainly for + /// accessibility. This field is optional and has a maximum length of 500 + /// characters. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public string altText { + get { + return this.altTextField; + } + set { + this.altTextField = value; + } + } - /// The action used by the parent network to withdraw from being the MCM parent for - /// a child. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class EndAgreementAction : CompanyAction { + /// A list of impression tracking URL to ping when this creative is displayed. This + /// field is optional and each string has a maximum length of 1024 characters. + /// + [System.Xml.Serialization.XmlElementAttribute("thirdPartyImpressionTrackingUrls", Order = 1)] + public string[] thirdPartyImpressionTrackingUrls { + get { + return this.thirdPartyImpressionTrackingUrlsField; + } + set { + this.thirdPartyImpressionTrackingUrlsField = value; + } + } + + /// The list of secondary image assets associated with this creative. This attribute + /// is optional.

Secondary image assets can be used to store different resolution + /// versions of the primary asset for use on non-standard density screens.

+ ///
+ [System.Xml.Serialization.XmlElementAttribute("secondaryImageAssets", Order = 2)] + public CreativeAsset[] secondaryImageAssets { + get { + return this.secondaryImageAssetsField; + } + set { + this.secondaryImageAssetsField = value; + } + } } - /// The action used by the parent network to send a new invitation with a - /// potentially updated proposal to a rejected or withdrawn child publisher. + /// A base type for audio creatives. /// + [System.Xml.Serialization.XmlIncludeAttribute(typeof(AudioRedirectCreative))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(AudioCreative))] [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ReInviteAction : CompanyAction { - private DelegationType proposedDelegationTypeField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public abstract partial class BaseAudioCreative : HasDestinationUrlCreative { + private int durationField; - private bool proposedDelegationTypeFieldSpecified; + private bool durationFieldSpecified; - private long proposedRevenueShareMillipercentField; + private bool allowDurationOverrideField; - private bool proposedRevenueShareMillipercentFieldSpecified; + private bool allowDurationOverrideFieldSpecified; - private string proposedEmailField; + private ConversionEvent_TrackingUrlsMapEntry[] trackingUrlsField; - /// The type of delegation the parent has proposed to have over the child, pending - /// approval of the child publisher. + private long[] companionCreativeIdsField; + + private string customParametersField; + + private string adIdField; + + private AdIdType adIdTypeField; + + private bool adIdTypeFieldSpecified; + + private SkippableAdType skippableAdTypeField; + + private bool skippableAdTypeFieldSpecified; + + private string vastPreviewUrlField; + + private SslScanResult sslScanResultField; + + private bool sslScanResultFieldSpecified; + + private SslManualOverride sslManualOverrideField; + + private bool sslManualOverrideFieldSpecified; + + /// The expected duration of this creative in milliseconds. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public DelegationType proposedDelegationType { + public int duration { get { - return this.proposedDelegationTypeField; + return this.durationField; } set { - this.proposedDelegationTypeField = value; - this.proposedDelegationTypeSpecified = true; + this.durationField = value; + this.durationSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool proposedDelegationTypeSpecified { + public bool durationSpecified { get { - return this.proposedDelegationTypeFieldSpecified; + return this.durationFieldSpecified; } set { - this.proposedDelegationTypeFieldSpecified = value; + this.durationFieldSpecified = value; } } - /// The proposed revenue share that the parent publisher will receive in - /// millipercentage (values 0 to 100000) for Manage Account proposals. For example, - /// 15% is 15000 millipercent.

This field is ignored for Manage Inventory - /// proposals.

+ /// Allows the creative duration to differ from the actual asset durations. This + /// attribute is optional. /// [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public long proposedRevenueShareMillipercent { + public bool allowDurationOverride { get { - return this.proposedRevenueShareMillipercentField; + return this.allowDurationOverrideField; } set { - this.proposedRevenueShareMillipercentField = value; - this.proposedRevenueShareMillipercentSpecified = true; + this.allowDurationOverrideField = value; + this.allowDurationOverrideSpecified = true; } } /// true, if a value is specified for , false otherwise. - /// + /// cref="allowDurationOverride" />, false otherwise.
[System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool proposedRevenueShareMillipercentSpecified { + public bool allowDurationOverrideSpecified { get { - return this.proposedRevenueShareMillipercentFieldSpecified; + return this.allowDurationOverrideFieldSpecified; } set { - this.proposedRevenueShareMillipercentFieldSpecified = value; + this.allowDurationOverrideFieldSpecified = value; } } - /// The updated email of the child publisher.

This field is optional. If set, the - /// scoping statement many not evaluate to more than one rejected or withdrawn child - /// publisher.

+ /// A map from ConversionEvent to a list of URLs that will be pinged + /// when the event happens. This attribute is optional. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public string proposedEmail { + [System.Xml.Serialization.XmlElementAttribute("trackingUrls", Order = 2)] + public ConversionEvent_TrackingUrlsMapEntry[] trackingUrls { get { - return this.proposedEmailField; + return this.trackingUrlsField; } set { - this.proposedEmailField = value; + this.trackingUrlsField = value; } } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public interface CompanyServiceInterfaceChannel : Google.Api.Ads.AdManager.v202311.CompanyServiceInterface, System.ServiceModel.IClientChannel - { - } - - - /// Provides operations for creating, updating and retrieving Company objects. - /// - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public partial class CompanyService : AdManagerSoapClient, ICompanyService { - /// Creates a new instance of the class. - /// - public CompanyService() { - } - - /// Creates a new instance of the class. - /// - public CompanyService(string endpointConfigurationName) - : base(endpointConfigurationName) { - } - - /// Creates a new instance of the class. - /// - public CompanyService(string endpointConfigurationName, string remoteAddress) - : base(endpointConfigurationName, remoteAddress) { - } - - /// Creates a new instance of the class. - /// - public CompanyService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) - : base(endpointConfigurationName, remoteAddress) { - } - - /// Creates a new instance of the class. - /// - public CompanyService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) - : base(binding, remoteAddress) { - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.CompanyService.createCompaniesResponse Google.Api.Ads.AdManager.v202311.CompanyServiceInterface.createCompanies(Wrappers.CompanyService.createCompaniesRequest request) { - return base.Channel.createCompanies(request); - } - - /// Creates new Company objects. - /// - public virtual Google.Api.Ads.AdManager.v202311.Company[] createCompanies(Google.Api.Ads.AdManager.v202311.Company[] companies) { - Wrappers.CompanyService.createCompaniesRequest inValue = new Wrappers.CompanyService.createCompaniesRequest(); - inValue.companies = companies; - Wrappers.CompanyService.createCompaniesResponse retVal = ((Google.Api.Ads.AdManager.v202311.CompanyServiceInterface)(this)).createCompanies(inValue); - return retVal.rval; - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202311.CompanyServiceInterface.createCompaniesAsync(Wrappers.CompanyService.createCompaniesRequest request) { - return base.Channel.createCompaniesAsync(request); - } - - public virtual System.Threading.Tasks.Task createCompaniesAsync(Google.Api.Ads.AdManager.v202311.Company[] companies) { - Wrappers.CompanyService.createCompaniesRequest inValue = new Wrappers.CompanyService.createCompaniesRequest(); - inValue.companies = companies; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202311.CompanyServiceInterface)(this)).createCompaniesAsync(inValue)).Result.rval); - } - - /// Gets a CompanyPage of Company - /// objects that satisfy the given Statement#query. The following - /// fields are supported for filtering: - /// - /// - /// - /// - ///
PQL - /// Property Object Property
id Company#id
name Company#name
type Company#type
lastModifiedDateTime Company#lastModifiedDateTime
- ///
- public virtual Google.Api.Ads.AdManager.v202311.CompanyPage getCompaniesByStatement(Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.getCompaniesByStatement(filterStatement); - } - - public virtual System.Threading.Tasks.Task getCompaniesByStatementAsync(Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.getCompaniesByStatementAsync(filterStatement); - } - /// Performs actions on Company objects that match the given - /// Statement. + /// The IDs of the companion creatives that are associated with this creative. This + /// attribute is optional. /// - public virtual Google.Api.Ads.AdManager.v202311.UpdateResult performCompanyAction(Google.Api.Ads.AdManager.v202311.CompanyAction companyAction, Google.Api.Ads.AdManager.v202311.Statement statement) { - return base.Channel.performCompanyAction(companyAction, statement); - } - - public virtual System.Threading.Tasks.Task performCompanyActionAsync(Google.Api.Ads.AdManager.v202311.CompanyAction companyAction, Google.Api.Ads.AdManager.v202311.Statement statement) { - return base.Channel.performCompanyActionAsync(companyAction, statement); - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.CompanyService.updateCompaniesResponse Google.Api.Ads.AdManager.v202311.CompanyServiceInterface.updateCompanies(Wrappers.CompanyService.updateCompaniesRequest request) { - return base.Channel.updateCompanies(request); + [System.Xml.Serialization.XmlElementAttribute("companionCreativeIds", Order = 3)] + public long[] companionCreativeIds { + get { + return this.companionCreativeIdsField; + } + set { + this.companionCreativeIdsField = value; + } } - /// Updates the specified Company objects. + /// A comma separated key=value list of parameters that will be supplied to the + /// creative, written into the VAST node. This attribute is optional. /// - public virtual Google.Api.Ads.AdManager.v202311.Company[] updateCompanies(Google.Api.Ads.AdManager.v202311.Company[] companies) { - Wrappers.CompanyService.updateCompaniesRequest inValue = new Wrappers.CompanyService.updateCompaniesRequest(); - inValue.companies = companies; - Wrappers.CompanyService.updateCompaniesResponse retVal = ((Google.Api.Ads.AdManager.v202311.CompanyServiceInterface)(this)).updateCompanies(inValue); - return retVal.rval; - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202311.CompanyServiceInterface.updateCompaniesAsync(Wrappers.CompanyService.updateCompaniesRequest request) { - return base.Channel.updateCompaniesAsync(request); - } - - public virtual System.Threading.Tasks.Task updateCompaniesAsync(Google.Api.Ads.AdManager.v202311.Company[] companies) { - Wrappers.CompanyService.updateCompaniesRequest inValue = new Wrappers.CompanyService.updateCompaniesRequest(); - inValue.companies = companies; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202311.CompanyServiceInterface)(this)).updateCompaniesAsync(inValue)).Result.rval); - } - } - namespace Wrappers.ContentBundleService - { - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "createContentBundles", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class createContentBundlesRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("contentBundles")] - public Google.Api.Ads.AdManager.v202311.ContentBundle[] contentBundles; - - /// Creates a new instance of the class. - public createContentBundlesRequest() { + [System.Xml.Serialization.XmlElementAttribute(Order = 4)] + public string customParameters { + get { + return this.customParametersField; } - - /// Creates a new instance of the class. - public createContentBundlesRequest(Google.Api.Ads.AdManager.v202311.ContentBundle[] contentBundles) { - this.contentBundles = contentBundles; + set { + this.customParametersField = value; } } - - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "createContentBundlesResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class createContentBundlesResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v202311.ContentBundle[] rval; - - /// Creates a new instance of the class. - public createContentBundlesResponse() { + /// The ad id associated with the video as defined by the registry. + /// This field is required if adIdType is not AdIdType#NONE. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 5)] + public string adId { + get { + return this.adIdField; } - - /// Creates a new instance of the class. - public createContentBundlesResponse(Google.Api.Ads.AdManager.v202311.ContentBundle[] rval) { - this.rval = rval; + set { + this.adIdField = value; } } - - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "updateContentBundles", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class updateContentBundlesRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("contentBundles")] - public Google.Api.Ads.AdManager.v202311.ContentBundle[] contentBundles; - - /// Creates a new instance of the class. - public updateContentBundlesRequest() { + /// The registry which the ad id of this creative belongs to. This field is optional + /// and defaults to AdIdType#NONE. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 6)] + public AdIdType adIdType { + get { + return this.adIdTypeField; } - - /// Creates a new instance of the class. - public updateContentBundlesRequest(Google.Api.Ads.AdManager.v202311.ContentBundle[] contentBundles) { - this.contentBundles = contentBundles; + set { + this.adIdTypeField = value; + this.adIdTypeSpecified = true; } } - - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "updateContentBundlesResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v202311", IsWrapped = true)] - public partial class updateContentBundlesResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v202311.ContentBundle[] rval; - - /// Creates a new instance of the class. - public updateContentBundlesResponse() { - } - - /// Creates a new instance of the class. - public updateContentBundlesResponse(Google.Api.Ads.AdManager.v202311.ContentBundle[] rval) { - this.rval = rval; + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool adIdTypeSpecified { + get { + return this.adIdTypeFieldSpecified; + } + set { + this.adIdTypeFieldSpecified = value; } } - } - /// A ContentBundle is a grouping of individual Content. A ContentBundle is defined as including - /// the Content that match certain filter rules, along with the option - /// to explicitly include or exclude certain Content IDs. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ContentBundle { - private long idField; - private bool idFieldSpecified; - - private string nameField; - - private ContentBundleStatus statusField; - - private bool statusFieldSpecified; - - private DateTime lastModifiedDateTimeField; - - /// ID that uniquely identifies the ContentBundle. This attribute is - /// read-only and is assigned by Google when a content bundle is created. + /// The type of skippable ad. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public long id { + [System.Xml.Serialization.XmlElementAttribute(Order = 7)] + public SkippableAdType skippableAdType { get { - return this.idField; + return this.skippableAdTypeField; } set { - this.idField = value; - this.idSpecified = true; + this.skippableAdTypeField = value; + this.skippableAdTypeSpecified = true; } } - /// true, if a value is specified for , - /// false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool idSpecified { + public bool skippableAdTypeSpecified { get { - return this.idFieldSpecified; + return this.skippableAdTypeFieldSpecified; } set { - this.idFieldSpecified = value; + this.skippableAdTypeFieldSpecified = value; } } - /// The name of the ContentBundle. This attribute is required and has a - /// maximum length of 255 characters. + /// An ad tag URL that will return a preview of the VAST XML response specific to + /// this creative. This attribute is read-only. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public string name { + [System.Xml.Serialization.XmlElementAttribute(Order = 8)] + public string vastPreviewUrl { get { - return this.nameField; + return this.vastPreviewUrlField; } set { - this.nameField = value; + this.vastPreviewUrlField = value; } } - /// The ContentBundleStatus of the - /// ContentBundle. This attribute is read-only and defaults to ContentBundleStatus#INACTIVE. + /// The SSL compatibility scan result of this creative.

This attribute is + /// read-only and determined by Google.

///
- [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public ContentBundleStatus status { + [System.Xml.Serialization.XmlElementAttribute(Order = 9)] + public SslScanResult sslScanResult { get { - return this.statusField; + return this.sslScanResultField; } set { - this.statusField = value; - this.statusSpecified = true; + this.sslScanResultField = value; + this.sslScanResultSpecified = true; } } - /// true, if a value is specified for , - /// false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool statusSpecified { + public bool sslScanResultSpecified { get { - return this.statusFieldSpecified; + return this.sslScanResultFieldSpecified; } set { - this.statusFieldSpecified = value; + this.sslScanResultFieldSpecified = value; } } - /// The date and time at which this content bundle was last modified. New content - /// that matches this bundle will not update this field. This attribute is - /// read-only. + /// The manual override for the SSL compatibility of this creative.

This + /// attribute is optional and defaults to SslManualOverride#NO_OVERRIDE.

///
- [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public DateTime lastModifiedDateTime { + [System.Xml.Serialization.XmlElementAttribute(Order = 10)] + public SslManualOverride sslManualOverride { get { - return this.lastModifiedDateTimeField; + return this.sslManualOverrideField; } set { - this.lastModifiedDateTimeField = value; + this.sslManualOverrideField = value; + this.sslManualOverrideSpecified = true; } } - } - - /// Status for ContentBundle objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum ContentBundleStatus { - /// The object is active and stats are collected. - /// - ACTIVE = 0, - /// The object is no longer active and no stats collected. - /// - INACTIVE = 1, - /// The object has been archived. - /// - ARCHIVED = 2, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 3, + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool sslManualOverrideSpecified { + get { + return this.sslManualOverrideFieldSpecified; + } + set { + this.sslManualOverrideFieldSpecified = value; + } + } } - /// Errors associated with the incorrect creation of a Condition. + /// A Creative that contains externally hosted audio ads and is served + /// via VAST XML. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ContentFilterError : ApiError { - private ContentFilterErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class AudioRedirectCreative : BaseAudioCreative { + private VideoRedirectAsset[] audioAssetsField; - private bool reasonFieldSpecified; + private VideoRedirectAsset mezzanineFileField; - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public ContentFilterErrorReason reason { + /// The audio creative assets. + /// + [System.Xml.Serialization.XmlElementAttribute("audioAssets", Order = 0)] + public VideoRedirectAsset[] audioAssets { get { - return this.reasonField; + return this.audioAssetsField; } set { - this.reasonField = value; - this.reasonSpecified = true; + this.audioAssetsField = value; } } - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { + /// The high quality mezzanine audio asset. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public VideoRedirectAsset mezzanineFile { get { - return this.reasonFieldSpecified; + return this.mezzanineFileField; } set { - this.reasonFieldSpecified = value; + this.mezzanineFileField = value; } } } - /// The reasons for the ContentFilterError. + /// A Creative that contains Ad Manager hosted audio ads and is served + /// via VAST XML. This creative is read-only. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ContentFilterError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum ContentFilterErrorReason { - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 0, - WRONG_NUMBER_OF_ARGUMENTS = 1, - ANY_FILTER_NOT_SUPPORTED = 2, - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", ConfigurationName = "Google.Api.Ads.AdManager.v202311.ContentBundleServiceInterface")] - public interface ContentBundleServiceInterface - { - // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Wrappers.ContentBundleService.createContentBundlesResponse createContentBundles(Wrappers.ContentBundleService.createContentBundlesRequest request); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task createContentBundlesAsync(Wrappers.ContentBundleService.createContentBundlesRequest request); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v202311.ContentBundlePage getContentBundlesByStatement(Google.Api.Ads.AdManager.v202311.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getContentBundlesByStatementAsync(Google.Api.Ads.AdManager.v202311.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v202311.UpdateResult performContentBundleAction(Google.Api.Ads.AdManager.v202311.ContentBundleAction contentBundleAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task performContentBundleActionAsync(Google.Api.Ads.AdManager.v202311.ContentBundleAction contentBundleAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement); - - // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Wrappers.ContentBundleService.updateContentBundlesResponse updateContentBundles(Wrappers.ContentBundleService.updateContentBundlesRequest request); + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class AudioCreative : BaseAudioCreative { + private string audioSourceUrlField; - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task updateContentBundlesAsync(Wrappers.ContentBundleService.updateContentBundlesRequest request); + /// A URL that points to the source media that will be used for transcoding. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public string audioSourceUrl { + get { + return this.audioSourceUrlField; + } + set { + this.audioSourceUrlField = value; + } + } } - /// Captures a page of ContentBundle objects. + /// A Creative intended for mobile platforms that displays an image, + /// whose LineItem#creativePlaceholders size is defined as an aspect ratio, i.e. Size#isAspectRatio. It can have multiple images + /// whose dimensions conform to that aspect ratio. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ContentBundlePage { - private int totalResultSetSizeField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class AspectRatioImageCreative : HasDestinationUrlCreative { + private CreativeAsset[] imageAssetsField; - private bool totalResultSetSizeFieldSpecified; + private string altTextField; - private int startIndexField; + private string[] thirdPartyImpressionTrackingUrlsField; - private bool startIndexFieldSpecified; + private bool overrideSizeField; - private ContentBundle[] resultsField; + private bool overrideSizeFieldSpecified; - /// The size of the total result set to which this page belongs. + /// The images associated with this creative. The ad server will choose one based on + /// the capabilities of the device. Each asset should have a size which is of the + /// same aspect ratio as the Creative#size. This + /// attribute is required and must have at least one asset. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public int totalResultSetSize { + [System.Xml.Serialization.XmlElementAttribute("imageAssets", Order = 0)] + public CreativeAsset[] imageAssets { get { - return this.totalResultSetSizeField; + return this.imageAssetsField; } set { - this.totalResultSetSizeField = value; - this.totalResultSetSizeSpecified = true; + this.imageAssetsField = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool totalResultSetSizeSpecified { + /// The text that is served along with the image creative, primarily for + /// accessibility. If no suitable image size is available for the device, this text + /// replaces the image completely. This field is optional and has a maximum length + /// of 500 characters. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public string altText { get { - return this.totalResultSetSizeFieldSpecified; + return this.altTextField; } set { - this.totalResultSetSizeFieldSpecified = value; + this.altTextField = value; } } - /// The absolute index in the total result set on which this page begins. + /// A list of impression tracking URL to ping when this creative is displayed. This + /// field is optional and each string has a maximum length of 1024 characters. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public int startIndex { + [System.Xml.Serialization.XmlElementAttribute("thirdPartyImpressionTrackingUrls", Order = 2)] + public string[] thirdPartyImpressionTrackingUrls { get { - return this.startIndexField; + return this.thirdPartyImpressionTrackingUrlsField; } set { - this.startIndexField = value; - this.startIndexSpecified = true; + this.thirdPartyImpressionTrackingUrlsField = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool startIndexSpecified { + /// Allows the actual image asset sizes to differ from the creative size. This + /// attribute is optional. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 3)] + public bool overrideSize { get { - return this.startIndexFieldSpecified; + return this.overrideSizeField; } set { - this.startIndexFieldSpecified = value; + this.overrideSizeField = value; + this.overrideSizeSpecified = true; } } - /// The collection of content bundles contained within this page. - /// - [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] - public ContentBundle[] results { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool overrideSizeSpecified { get { - return this.resultsField; + return this.overrideSizeFieldSpecified; } set { - this.resultsField = value; + this.overrideSizeFieldSpecified = value; } } } - /// Represents the actions that can be performed on ContentBundle objects. + /// A creative that is used for tracking clicks on ads that are served directly from + /// the customers' web servers or media servers. NOTE: The size attribute is not + /// used for click tracking creative and it will not be persisted upon save. /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(DeactivateContentBundles))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ActivateContentBundles))] [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public abstract partial class ContentBundleAction { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ClickTrackingCreative : Creative { + private string clickTrackingUrlField; + + /// The click tracking URL. This attribute is required. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public string clickTrackingUrl { + get { + return this.clickTrackingUrlField; + } + set { + this.clickTrackingUrlField = value; + } + } } - /// The action used for deactivating ContentBundle - /// objects. + /// A Creative that is created by a Rich Media Studio. /// + [System.Xml.Serialization.XmlIncludeAttribute(typeof(RichMediaStudioCreative))] [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class DeactivateContentBundles : ContentBundleAction { - } + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public abstract partial class BaseRichMediaStudioCreative : Creative { + private long studioCreativeIdField; + private bool studioCreativeIdFieldSpecified; - /// The action used for activating ContentBundle - /// objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ActivateContentBundles : ContentBundleAction { - } + private RichMediaStudioCreativeFormat creativeFormatField; + private bool creativeFormatFieldSpecified; - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public interface ContentBundleServiceInterfaceChannel : Google.Api.Ads.AdManager.v202311.ContentBundleServiceInterface, System.ServiceModel.IClientChannel - { - } + private RichMediaStudioCreativeArtworkType artworkTypeField; + private bool artworkTypeFieldSpecified; - /// Provides methods for creating, updating and retrieving ContentBundle objects.

A ContentBundle - /// is a grouping of Content that match filter rules as well - /// as taking into account explicitly included or excluded Content.

- ///
- [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public partial class ContentBundleService : AdManagerSoapClient, IContentBundleService { - /// Creates a new instance of the - /// class. - public ContentBundleService() { - } + private long totalFileSizeField; - /// Creates a new instance of the - /// class. - public ContentBundleService(string endpointConfigurationName) - : base(endpointConfigurationName) { - } + private bool totalFileSizeFieldSpecified; - /// Creates a new instance of the - /// class. - public ContentBundleService(string endpointConfigurationName, string remoteAddress) - : base(endpointConfigurationName, remoteAddress) { + private string[] adTagKeysField; + + private string[] customKeyValuesField; + + private string surveyUrlField; + + private string allImpressionsUrlField; + + private string richMediaImpressionsUrlField; + + private string backupImageImpressionsUrlField; + + private string overrideCssField; + + private string requiredFlashPluginVersionField; + + private int durationField; + + private bool durationFieldSpecified; + + private RichMediaStudioCreativeBillingAttribute billingAttributeField; + + private bool billingAttributeFieldSpecified; + + private RichMediaStudioChildAssetProperty[] richMediaStudioChildAssetPropertiesField; + + private SslScanResult sslScanResultField; + + private bool sslScanResultFieldSpecified; + + private SslManualOverride sslManualOverrideField; + + private bool sslManualOverrideFieldSpecified; + + /// The creative ID as known by Rich Media Studio creative. This attribute is + /// readonly. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public long studioCreativeId { + get { + return this.studioCreativeIdField; + } + set { + this.studioCreativeIdField = value; + this.studioCreativeIdSpecified = true; + } } - /// Creates a new instance of the - /// class. - public ContentBundleService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) - : base(endpointConfigurationName, remoteAddress) { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool studioCreativeIdSpecified { + get { + return this.studioCreativeIdFieldSpecified; + } + set { + this.studioCreativeIdFieldSpecified = value; + } } - /// Creates a new instance of the - /// class. - public ContentBundleService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) - : base(binding, remoteAddress) { + /// The creative format of the Rich Media Studio creative. This attribute is + /// readonly. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public RichMediaStudioCreativeFormat creativeFormat { + get { + return this.creativeFormatField; + } + set { + this.creativeFormatField = value; + this.creativeFormatSpecified = true; + } } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.ContentBundleService.createContentBundlesResponse Google.Api.Ads.AdManager.v202311.ContentBundleServiceInterface.createContentBundles(Wrappers.ContentBundleService.createContentBundlesRequest request) { - return base.Channel.createContentBundles(request); + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool creativeFormatSpecified { + get { + return this.creativeFormatFieldSpecified; + } + set { + this.creativeFormatFieldSpecified = value; + } } - /// Creates new ContentBundle objects. + /// The type of artwork used in this creative. This attribute is readonly. /// - public virtual Google.Api.Ads.AdManager.v202311.ContentBundle[] createContentBundles(Google.Api.Ads.AdManager.v202311.ContentBundle[] contentBundles) { - Wrappers.ContentBundleService.createContentBundlesRequest inValue = new Wrappers.ContentBundleService.createContentBundlesRequest(); - inValue.contentBundles = contentBundles; - Wrappers.ContentBundleService.createContentBundlesResponse retVal = ((Google.Api.Ads.AdManager.v202311.ContentBundleServiceInterface)(this)).createContentBundles(inValue); - return retVal.rval; + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public RichMediaStudioCreativeArtworkType artworkType { + get { + return this.artworkTypeField; + } + set { + this.artworkTypeField = value; + this.artworkTypeSpecified = true; + } } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202311.ContentBundleServiceInterface.createContentBundlesAsync(Wrappers.ContentBundleService.createContentBundlesRequest request) { - return base.Channel.createContentBundlesAsync(request); + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool artworkTypeSpecified { + get { + return this.artworkTypeFieldSpecified; + } + set { + this.artworkTypeFieldSpecified = value; + } + } + + /// The total size of all assets in bytes. This attribute is readonly. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 3)] + public long totalFileSize { + get { + return this.totalFileSizeField; + } + set { + this.totalFileSizeField = value; + this.totalFileSizeSpecified = true; + } } - public virtual System.Threading.Tasks.Task createContentBundlesAsync(Google.Api.Ads.AdManager.v202311.ContentBundle[] contentBundles) { - Wrappers.ContentBundleService.createContentBundlesRequest inValue = new Wrappers.ContentBundleService.createContentBundlesRequest(); - inValue.contentBundles = contentBundles; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202311.ContentBundleServiceInterface)(this)).createContentBundlesAsync(inValue)).Result.rval); + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool totalFileSizeSpecified { + get { + return this.totalFileSizeFieldSpecified; + } + set { + this.totalFileSizeFieldSpecified = value; + } } - /// Gets a ContentBundlePage of ContentBundle objects that satisfy the given Statement#query. The following fields are supported for filtering: - /// - /// - ///
PQL Property Object - /// Property
id ContentBundle#id
name ContentBundle#name
status ContentBundle#status
+ /// Ad tag keys. This attribute is optional and updatable. /// - public virtual Google.Api.Ads.AdManager.v202311.ContentBundlePage getContentBundlesByStatement(Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.getContentBundlesByStatement(filterStatement); + [System.Xml.Serialization.XmlElementAttribute("adTagKeys", Order = 4)] + public string[] adTagKeys { + get { + return this.adTagKeysField; + } + set { + this.adTagKeysField = value; + } } - public virtual System.Threading.Tasks.Task getContentBundlesByStatementAsync(Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.getContentBundlesByStatementAsync(filterStatement); + /// Custom key values. This attribute is optional and updatable. + /// + [System.Xml.Serialization.XmlElementAttribute("customKeyValues", Order = 5)] + public string[] customKeyValues { + get { + return this.customKeyValuesField; + } + set { + this.customKeyValuesField = value; + } } - /// Performs actions on ContentBundle objects that match - /// the given Statement#query. + /// The survey URL for this creative. This attribute is optional and updatable. /// - public virtual Google.Api.Ads.AdManager.v202311.UpdateResult performContentBundleAction(Google.Api.Ads.AdManager.v202311.ContentBundleAction contentBundleAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.performContentBundleAction(contentBundleAction, filterStatement); + [System.Xml.Serialization.XmlElementAttribute(Order = 6)] + public string surveyUrl { + get { + return this.surveyUrlField; + } + set { + this.surveyUrlField = value; + } } - public virtual System.Threading.Tasks.Task performContentBundleActionAsync(Google.Api.Ads.AdManager.v202311.ContentBundleAction contentBundleAction, Google.Api.Ads.AdManager.v202311.Statement filterStatement) { - return base.Channel.performContentBundleActionAsync(contentBundleAction, filterStatement); + /// The tracking URL to be triggered when an ad starts to play, whether Rich Media + /// or backup content is displayed. Behaves like the URL that DART + /// used to track impressions. This URL can't exceed 1024 characters and must start + /// with http:// or https://. This attribute is optional and updatable. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 7)] + public string allImpressionsUrl { + get { + return this.allImpressionsUrlField; + } + set { + this.allImpressionsUrlField = value; + } } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.ContentBundleService.updateContentBundlesResponse Google.Api.Ads.AdManager.v202311.ContentBundleServiceInterface.updateContentBundles(Wrappers.ContentBundleService.updateContentBundlesRequest request) { - return base.Channel.updateContentBundles(request); + /// The tracking URL to be triggered when any rich media artwork is displayed in an + /// ad. Behaves like the /imp URL that DART used to track impressions. + /// This URL can't exceed 1024 characters and must start with http:// or https://. + /// This attribute is optional and updatable. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 8)] + public string richMediaImpressionsUrl { + get { + return this.richMediaImpressionsUrlField; + } + set { + this.richMediaImpressionsUrlField = value; + } } - /// Updates the specified ContentBundle objects. + /// The tracking URL to be triggered when the Rich Media backup image is served. + /// This attribute is optional and updatable. /// - public virtual Google.Api.Ads.AdManager.v202311.ContentBundle[] updateContentBundles(Google.Api.Ads.AdManager.v202311.ContentBundle[] contentBundles) { - Wrappers.ContentBundleService.updateContentBundlesRequest inValue = new Wrappers.ContentBundleService.updateContentBundlesRequest(); - inValue.contentBundles = contentBundles; - Wrappers.ContentBundleService.updateContentBundlesResponse retVal = ((Google.Api.Ads.AdManager.v202311.ContentBundleServiceInterface)(this)).updateContentBundles(inValue); - return retVal.rval; + [System.Xml.Serialization.XmlElementAttribute(Order = 9)] + public string backupImageImpressionsUrl { + get { + return this.backupImageImpressionsUrlField; + } + set { + this.backupImageImpressionsUrlField = value; + } } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202311.ContentBundleServiceInterface.updateContentBundlesAsync(Wrappers.ContentBundleService.updateContentBundlesRequest request) { - return base.Channel.updateContentBundlesAsync(request); + /// The override CSS. You can put custom CSS code here to repair creative styling; + /// e.g. tr td { background-color:#FBB; }. This attribute is optional + /// and updatable. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 10)] + public string overrideCss { + get { + return this.overrideCssField; + } + set { + this.overrideCssField = value; + } } - public virtual System.Threading.Tasks.Task updateContentBundlesAsync(Google.Api.Ads.AdManager.v202311.ContentBundle[] contentBundles) { - Wrappers.ContentBundleService.updateContentBundlesRequest inValue = new Wrappers.ContentBundleService.updateContentBundlesRequest(); - inValue.contentBundles = contentBundles; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202311.ContentBundleServiceInterface)(this)).updateContentBundlesAsync(inValue)).Result.rval); + /// The Flash plugin version required to view this creative; e.g. Flash + /// 10.2/AS 3. This attribute is read only. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 11)] + public string requiredFlashPluginVersion { + get { + return this.requiredFlashPluginVersionField; + } + set { + this.requiredFlashPluginVersionField = value; + } } - } - namespace Wrappers.ContentService - { - } - /// Contains information about Content from the CMS it was - /// ingested from. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class CmsContent { - private long idField; - - private bool idFieldSpecified; - - private string displayNameField; - - private string cmsContentIdField; - /// The ID of the Content Source associated with the CMS in Ad Manager. This - /// attribute is read-only. + /// The duration of the creative in milliseconds. This attribute is optional and + /// updatable. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public long id { + [System.Xml.Serialization.XmlElementAttribute(Order = 12)] + public int duration { get { - return this.idField; + return this.durationField; } set { - this.idField = value; - this.idSpecified = true; + this.durationField = value; + this.durationSpecified = true; } } - /// true, if a value is specified for , - /// false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool idSpecified { + public bool durationSpecified { get { - return this.idFieldSpecified; + return this.durationFieldSpecified; } set { - this.idFieldSpecified = value; + this.durationFieldSpecified = value; } } - /// The display name of the CMS this content is in. This attribute is read-only. + /// The billing attribute associated with this creative. This attribute is read + /// only. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public string displayName { + [System.Xml.Serialization.XmlElementAttribute(Order = 13)] + public RichMediaStudioCreativeBillingAttribute billingAttribute { get { - return this.displayNameField; + return this.billingAttributeField; } set { - this.displayNameField = value; + this.billingAttributeField = value; + this.billingAttributeSpecified = true; } } - /// The ID of the Content in the CMS. This ID will be a 3rd - /// party ID, usually the ID of the content in a CMS (Content Management System). - /// This attribute is read-only. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public string cmsContentId { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool billingAttributeSpecified { get { - return this.cmsContentIdField; + return this.billingAttributeFieldSpecified; } set { - this.cmsContentIdField = value; + this.billingAttributeFieldSpecified = value; } } - } - - - /// Represents an error associated with a DAI content's status. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class DaiIngestError { - private DaiIngestErrorReason reasonField; - - private bool reasonFieldSpecified; - private string triggerField; + /// The list of child assets associated with this creative. This attribute is read + /// only. + /// + [System.Xml.Serialization.XmlElementAttribute("richMediaStudioChildAssetProperties", Order = 14)] + public RichMediaStudioChildAssetProperty[] richMediaStudioChildAssetProperties { + get { + return this.richMediaStudioChildAssetPropertiesField; + } + set { + this.richMediaStudioChildAssetPropertiesField = value; + } + } - /// The error associated with the content. + /// The SSL compatibility scan result of this creative.

This attribute is + /// read-only and determined by Google.

///
- [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public DaiIngestErrorReason reason { + [System.Xml.Serialization.XmlElementAttribute(Order = 15)] + public SslScanResult sslScanResult { get { - return this.reasonField; + return this.sslScanResultField; } set { - this.reasonField = value; - this.reasonSpecified = true; + this.sslScanResultField = value; + this.sslScanResultSpecified = true; } } - /// true, if a value is specified for , - /// false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { + public bool sslScanResultSpecified { get { - return this.reasonFieldSpecified; + return this.sslScanResultFieldSpecified; } set { - this.reasonFieldSpecified = value; + this.sslScanResultFieldSpecified = value; } } - /// The field, if any, that triggered the error. + /// The manual override for the SSL compatibility of this creative.

This + /// attribute is optional and defaults to SslManualOverride#NO_OVERRIDE.

///
- [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public string trigger { + [System.Xml.Serialization.XmlElementAttribute(Order = 16)] + public SslManualOverride sslManualOverride { get { - return this.triggerField; + return this.sslManualOverrideField; } set { - this.triggerField = value; + this.sslManualOverrideField = value; + this.sslManualOverrideSpecified = true; + } + } + + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool sslManualOverrideSpecified { + get { + return this.sslManualOverrideFieldSpecified; + } + set { + this.sslManualOverrideFieldSpecified = value; } } } - /// Describes what caused the DAI content to fail during the ingestion process. + /// Different creative format supported by Rich Media Studio creative. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum DaiIngestErrorReason { - /// The ingest URL provided in the publisher's content source feed is invalid. The - /// trigger for this error is the ingest URL specified in the publisher's feed. - /// - INVALID_INGEST_URL = 0, - /// The closed caption URL provided in the publisher's content source feed is - /// invalid. The trigger for this error is the closed caption URL specified in the - /// publisher's feed. - /// - INVALID_CLOSED_CAPTION_URL = 1, - /// There is no closed caption URL for a content in the publisher's content source - /// feed. There is no trigger for this error. - /// - MISSING_CLOSED_CAPTION_URL = 2, - /// There was an error while trying to fetch the HLS from the specified ingest URL. - /// The trigger for this error is the ingest URL specified in the publisher's feed. - /// - COULD_NOT_FETCH_HLS = 3, - /// There was an error while trying to fetch the subtitles from the specified closed - /// caption url. The trigger for this error is the closed caption URL specified in - /// the publisher's feed. - /// - COULD_NOT_FETCH_SUBTITLES = 4, - /// One of the subtitles from the closed caption URL is missing a language. The - /// trigger for this error is the closed caption URL that does not have a language - /// associated with it. - /// - MISSING_SUBTITLE_LANGUAGE = 5, - /// Error fetching the media files from the URLs specified in the master HLS - /// playlist. The trigger for this error is a media playlist URL within the - /// publisher's HLS playlist that could not be fetched. - /// - COULD_NOT_FETCH_MEDIA = 6, - /// The media from the publisher's CDN is malformed and cannot be conditioned. The - /// trigger for this error is a media playlist URL within the publisher's HLS - /// playlist that is malformed. - /// - MALFORMED_MEDIA_BYTES = 7, - /// A chapter time for the content is outside of the range of the content's - /// duration. The trigger for this error is the chapter time (a parsable long - /// representing the time in ms) that is out of bounds. - /// - CHAPTER_TIME_OUT_OF_BOUNDS = 8, - /// An internal error occurred while conditioning the content. There is no trigger - /// for this error. - /// - INTERNAL_ERROR = 9, - /// The content has chapter times but the content's source has no CDN settings for - /// midrolls. There is no trigger for this error. - /// - CONTENT_HAS_CHAPTER_TIMES_BUT_NO_MIDROLL_SETTINGS = 10, - /// There is bad/missing/malformed data in a media playlist. The trigger for this - /// error is the URL that points to the malformed media playlist. - /// - MALFORMED_MEDIA_PLAYLIST = 11, - /// Multiple ways of denoting ad breaks were detected in a media playlist (e.g. - /// placement opportunity tags, cue markers, etc.) - /// - MIXED_AD_BREAK_TAGS = 46, - /// The ad break tags in the preconditioned content are not in the same locations - /// across all variant playlists. - /// - AD_BREAK_TAGS_INCONSISTENT_ACROSS_VARIANTS = 47, - /// There is bad/missing/malformed data in a subtitles file. The trigger for this - /// error is the URL that points to the malformed subtitles. - /// - MALFORMED_SUBTITLES = 12, - /// A playlist item has a URL that does not begin with the ingest common path - /// provided in the DAI settings. The trigger for this error is the playlist item - /// URL. - /// - PLAYLIST_ITEM_URL_DOES_NOT_MATCH_INGEST_COMMON_PATH = 13, - /// Uploading split media segments failed due to an authentication error. - /// - COULD_NOT_UPLOAD_SPLIT_MEDIA_AUTHENTICATION_FAILED = 14, - /// Uploading spit media segments failed due to a connection error. - /// - COULD_NOT_UPLOAD_SPLIT_MEDIA_CONNECTION_FAILED = 15, - /// Uploading split media segments failed due to a write error. - /// - COULD_NOT_UPLOAD_SPLIT_MEDIA_WRITE_FAILED = 16, - /// Variants in a playlist do not have the same number of discontinuities. The - /// trigger for this error is the master playlist URI. - /// - PLAYLISTS_HAVE_DIFFERENT_NUMBER_OF_DISCONTINUITIES = 17, - /// The playlist does not have a starting PTS value. The trigger for this error is - /// the master playlist URI. - /// - PLAYIST_HAS_NO_STARTING_PTS_VALUE = 18, - /// The PTS at a discontinuity varies too much between the different variants. The - /// trigger for this error is the master playlist URI. - /// - PLAYLIST_DISCONTINUITY_PTS_VALUES_DIFFER_TOO_MUCH = 19, - /// A media segment has no PTS. The trigger for this error is the segment data URI. - /// - SEGMENT_HAS_NO_PTS = 20, - /// The language in the subtitles file does not match the language specified in the - /// feed. The trigger for this error is the feed language and the parsed language - /// separated by a semi-colon, e.g. "en;sp". - /// - SUBTITLE_LANGUAGE_DOES_NOT_MATCH_LANGUAGE_IN_FEED = 21, - /// There are multiple subtitles files at the closed caption URI, and none of them - /// match the language defined in the feed. The trigger for this error is language - /// in the feed. - /// - CANNOT_DETERMINE_CORRECT_SUBTITLES_FOR_LANGUAGE = 22, - /// No CDN configuration found for the content. The trigger for this error is the - /// content's master playlist URI. - /// - NO_CDN_CONFIGURATION_FOUND = 23, - /// The content has midrolls but there was no split content config on the CDN - /// configuration for that content so the content was not conditioned. There is no - /// trigger for this error. - /// - CONTENT_HAS_MIDROLLS_BUT_NO_SPLIT_CONTENT_CONFIG = 24, - /// The content has midrolls but the source the content was ingested from has - /// mid-rolls disabled, so the content was not conditioned. There is no trigger for - /// this error. - /// - CONTENT_HAS_MIDROLLS_BUT_SOURCE_HAS_MIDROLLS_DISABLED = 25, - /// Error parsing ADTS while splitting the content. The trigger for this error is - /// the variant URL and the cue-point separated by a semi-colon, e.g. - /// "www.variant2.com;5000". - /// - ADTS_PARSE_ERROR = 26, - /// Error splitting an AAC segment. The trigger for this error is the variant URL - /// and the cue-point separated by a semi-colon, e.g. "www.variant2.com;5000". - /// - AAC_SPLIT_ERROR = 27, - /// Error parsing an AAC file while splitting the content. The trigger for this - /// error is the variant URL and the cue-point separated by a semi-colon, e.g. - /// "www.variant2.com;5000". - /// - AAC_PARSE_ERROR = 28, - /// Error parsing a TS file while splitting the content. The trigger for this error - /// is the variant URL and the cue-point separated by a semi-colon, e.g. - /// "www.variant2.com;5000". - /// - TS_PARSE_ERROR = 29, - /// Error splitting a TS file while splitting the content. The trigger for this - /// error is the variant URL and the cue-point separated by a semi-colon, e.g. - /// "www.variant2.com;5000". - /// - TS_SPLIT_ERROR = 30, - /// Encountered an unsupported container format while splitting the content. The - /// trigger for this error is the variant URL and the cue-point separated by a - /// semi-colon, e.g. "www.variant2.com;5000". - /// - UNSUPPORTED_CONTAINER_FORMAT = 31, - /// Encountered multiple elementary streams of the same media type (audio, video) - /// within a transport stream. The trigger for this error is the variant URL and the - /// cue-point separated by a semi-colon, e.g. "www.variant2.com;5000". - /// - MULTIPLE_ELEMENTARY_STREAMS_OF_SAME_MEDIA_TYPE_IN_TS = 40, - /// Encountered an unsupported TS media format while splitting the content. The - /// trigger for this error is the variant URL and the cue-point separated by a - /// semi-colon, e.g. "www.variant2.com;5000". - /// - UNSUPPORTED_TS_MEDIA_FORMAT = 32, - /// Error splitting because there were no i-frames near the target split point. The - /// trigger for this error is the variant URL and the cue-point separated by a - /// semi-colon, e.g. "www.variant2.com;5000". + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum RichMediaStudioCreativeFormat { + /// In-page creatives are served into an ad slot on publishers page. In-page implies + /// that they maintain a static size, e.g, 468x60 and do not break out of these + /// dimensions. /// - NO_IFRAMES_NEAR_CUE_POINT = 33, - /// Error splitting an AC-3 segment. The trigger for this error is the variant URL - /// and the cue-point separated by a semi-colon, e.g. "www.variant2.com;5000". + IN_PAGE = 0, + /// Expanding creatives expand/collapse on user interaction such as mouse over. It + /// consists of an initial, or collapsed and an expanded creative area. /// - AC3_SPLIT_ERROR = 35, - /// Error parsing an AC-3 file while splitting the content. The trigger for this - /// error is the variant URL and the cue-point separated by a semi-colon, e.g. - /// "www.variant2.com;5000". + EXPANDING = 1, + /// Creatives that are served in an instant messenger application such as AOL + /// Instant Messanger or Yahoo! Messenger. This can also be used in desktop + /// applications such as weatherbug. /// - AC3_PARSE_ERROR = 36, - /// Error splitting an E-AC-3 segment. The trigger for this error is the variant URL - /// and the cue-point separated by a semi-colon, e.g. "www.variant2.com;5000". + IM_EXPANDING = 2, + /// Floating creatives float on top of publishers page and can be closed with a + /// close button. /// - EAC3_SPLIT_ERROR = 37, - /// Error caused by an invalid encryption key. The trigger for this error is a media - /// playlist URL within the publisher's HLS playlist that has the invalid encryption - /// key. + FLOATING = 3, + /// Peel-down creatives show a glimpse of your ad in the corner of a web page. When + /// the user interacts, the rest of the ad peels down to reveal the full message. /// - INVALID_ENCRYPTION_KEY = 38, - /// Error parsing an E-AC-3 file while splitting the content. The trigger for this - /// error is the variant URL and the cue-point separated by a semi-colon, e.g. - /// "www.variant2.com;5000". + PEEL_DOWN = 4, + /// An In-Page with Floating creative is a dual-asset creative consisting of an + /// in-page asset and a floating asset. This creative type lets you deliver a static + /// primary ad to a webpage, while inviting a user to find out more through a + /// floating asset delivered when the user interacts with the creative. /// - EAC3_PARSE_ERROR = 39, - /// Error caused by the number of PTS being a different value than the number of cue - /// points + 1. + IN_PAGE_WITH_FLOATING = 5, + /// A Flash ad that renders in a Flash environment. The adserver will serve this + /// using VAST, but it is not a proper VAST XML ad. It's an amalgamation of the + /// proprietary InStream protocol, rendered inside VAST so that we can capture some + /// standard behavior such as companions. /// - CUE_POINT_COUNT_DOES_NOT_MATCH_PTS_COUNT = 41, - /// The DASH content has cue points but they do not match the Event durations from - /// the DASH manifest EventStream, if present. + FLASH_IN_FLASH = 6, + /// An expanding flash ad that renders in a Flash environment. The adserver will + /// serve this using VAST, but it is not a proper VAST XML ad. It's an amalgamation + /// of the proprietary InStream protocol, rendered inside VAST so that we can + /// capture some standard behavior such as companions. /// - DASH_CUE_POINT_EVENT_MISMATCH = 50, - /// The DASH manifest cannot be conditioned for midrolls. + FLASH_IN_FLASH_EXPANDING = 7, + /// In-app creatives are served into an ad slot within a publisher's app. In-app + /// implies that they maintain a static size, e.g, 468x60 and do not break out of + /// these dimensions. /// - DASH_MANIFEST_CONDITIONING_FAILED = 51, - /// The DASH manifest cannot be conditioned for midrolls because one or more of the - /// cue points do not lie on a media segment boundary. + IN_APP = 8, + /// The creative format is unknown or not supported in the API version in use. /// - DASH_MANIFEST_CONDITIONING_SEGMENT_BOUNDARY_ERROR = 52, - /// The subtitle language code should not contain "$$$$$". + UNKNOWN = 9, + } + + + /// Rich Media Studio creative artwork types. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum RichMediaStudioCreativeArtworkType { + /// The creative is a Flash creative. /// - CLOSED_CAPTION_LANGUAGE_VALUE_INVALID = 42, - /// The subtitle name should not contain "$$$$$". + FLASH = 0, + /// The creative is HTML5. /// - CLOSED_CAPTION_NAME_VALUE_INVALID = 43, - /// The common subtitle characteristics values listed in the HLS spec are: - /// 1)"public.accessibility.transcribes-spoken-dialog", - /// 2)"public.accessibility.describes-music-and-sound", 3)"public.easy-to-read"; + HTML5 = 1, + /// The creative is Flash if available, and HTML5 otherwise. /// - CLOSED_CAPTION_CHARACTERISTICS_VALUE_UNEXPECTED = 44, - /// Closed captions for a content should be unique by 'language + name'. + MIXED = 2, + } + + + /// Rich Media Studio creative supported billing attributes.

This is determined + /// by Rich Media Studio based on the content of the creative and is not + /// updateable.

+ ///
+ [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public enum RichMediaStudioCreativeBillingAttribute { + /// Applies to any RichMediaStudioCreativeFormat#IN_PAGE, + /// without Video. /// - CLOSED_CAPTIONS_WITH_DUPLICATE_KEYS = 45, - /// Subtitles are defined in the content source feed as well as inside the stream - /// manifest. Only feed subtitles will be ingested. + IN_PAGE = 0, + /// Applies to any of these following RichMediaStudioCreativeFormat, without + /// Video: RichMediaStudioCreativeFormat#EXPANDING, + /// RichMediaStudioCreativeFormat#IM_EXPANDING, + /// RichMediaStudioCreativeFormat#FLOATING, + /// RichMediaStudioCreativeFormat#PEEL_DOWN, + /// RichMediaStudioCreativeFormat#IN_PAGE_WITH_FLOATING /// - SUBTITLES_PRESENT_IN_FEED_AND_MANIFEST = 48, - /// The media profile is invalid due to missing data. + FLOATING_EXPANDING = 1, + /// Applies to any creatives that includes a video. /// - INVALID_MEDIA_PROFILE = 49, - /// The value returned if the actual value is not exposed by the requested API - /// version. + VIDEO = 2, + /// Applies to any RichMediaStudioCreativeFormat#FLASH_IN_FLASH, + /// without Video. /// - UNKNOWN = 34, + FLASH_IN_FLASH = 3, } - /// A Content represents video metadata from a publisher's Content - /// Management System (CMS) that has been synced to Ad Manager.

Video line items - /// can be targeted to Content to indicate what ads should match when - /// the Content is being played.

+ /// A Creative that is created by a Rich Media Studio. You cannot + /// create this creative, but you can update some fields of this creative. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class Content { - private long idField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class RichMediaStudioCreative : BaseRichMediaStudioCreative { + private LockedOrientation lockedOrientationField; - private bool idFieldSpecified; + private bool lockedOrientationFieldSpecified; - private string nameField; + private bool isInterstitialField; - private ContentStatus statusField; + private bool isInterstitialFieldSpecified; - private bool statusFieldSpecified; + /// A locked orientation for this creative to be displayed in. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public LockedOrientation lockedOrientation { + get { + return this.lockedOrientationField; + } + set { + this.lockedOrientationField = value; + this.lockedOrientationSpecified = true; + } + } - private ContentStatusDefinedBy statusDefinedByField; + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool lockedOrientationSpecified { + get { + return this.lockedOrientationFieldSpecified; + } + set { + this.lockedOrientationFieldSpecified = value; + } + } - private bool statusDefinedByFieldSpecified; + /// true if this is interstitial. An interstitial creative will not + /// consider an impression served until it is fully rendered in the browser. This + /// attribute is readonly. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public bool isInterstitial { + get { + return this.isInterstitialField; + } + set { + this.isInterstitialField = value; + this.isInterstitialSpecified = true; + } + } - private DaiIngestStatus hlsIngestStatusField; + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool isInterstitialSpecified { + get { + return this.isInterstitialFieldSpecified; + } + set { + this.isInterstitialFieldSpecified = value; + } + } + } - private bool hlsIngestStatusFieldSpecified; - private DaiIngestError[] hlsIngestErrorsField; + /// A base class for dynamic allocation creatives. + /// + [System.Xml.Serialization.XmlIncludeAttribute(typeof(HasHtmlSnippetDynamicAllocationCreative))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(AdSenseCreative))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(AdExchangeCreative))] + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public abstract partial class BaseDynamicAllocationCreative : Creative { + } - private DateTime lastHlsIngestDateTimeField; - private DaiIngestStatus dashIngestStatusField; + /// Dynamic allocation creative with a backfill code snippet. + /// + [System.Xml.Serialization.XmlIncludeAttribute(typeof(AdSenseCreative))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(AdExchangeCreative))] + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public abstract partial class HasHtmlSnippetDynamicAllocationCreative : BaseDynamicAllocationCreative { + private string codeSnippetField; - private bool dashIngestStatusFieldSpecified; + /// The code snippet (ad tag) from Ad Exchange or AdSense to traffic the dynamic + /// allocation creative. Only valid Ad Exchange or AdSense parameters will be + /// considered. Any extraneous HTML or JavaScript will be ignored. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public string codeSnippet { + get { + return this.codeSnippetField; + } + set { + this.codeSnippetField = value; + } + } + } - private DaiIngestError[] dashIngestErrorsField; - private DateTime lastDashIngestDateTimeField; + /// An AdSense dynamic allocation creative. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class AdSenseCreative : HasHtmlSnippetDynamicAllocationCreative { + } - private DateTime importDateTimeField; - private DateTime lastModifiedDateTimeField; + /// An Ad Exchange dynamic allocation creative. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class AdExchangeCreative : HasHtmlSnippetDynamicAllocationCreative { + private bool isNativeEligibleField; - private CmsContent[] cmsSourcesField; + private bool isNativeEligibleFieldSpecified; - private long[] contentBundleIdsField; + private bool isInterstitialField; - private long[] cmsMetadataValueIdsField; + private bool isInterstitialFieldSpecified; - private long durationField; + private bool isAllowsAllRequestedSizesField; - private bool durationFieldSpecified; + private bool isAllowsAllRequestedSizesFieldSpecified; - /// Uniquely identifies the Content. This attribute is read-only and is - /// assigned by Google when the content is created. + /// Whether this creative is eligible for native ad-serving. This value is optional + /// and defaults to false. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public long id { + public bool isNativeEligible { get { - return this.idField; + return this.isNativeEligibleField; } set { - this.idField = value; - this.idSpecified = true; + this.isNativeEligibleField = value; + this.isNativeEligibleSpecified = true; } } - /// true, if a value is specified for , - /// false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool idSpecified { + public bool isNativeEligibleSpecified { get { - return this.idFieldSpecified; + return this.isNativeEligibleFieldSpecified; } set { - this.idFieldSpecified = value; + this.isNativeEligibleFieldSpecified = value; } } - /// The name of the Content. This attribute is read-only. + /// true if this creative is interstitial. An interstitial creative + /// will not consider an impression served until it is fully rendered in the + /// browser. /// [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public string name { + public bool isInterstitial { get { - return this.nameField; + return this.isInterstitialField; } set { - this.nameField = value; + this.isInterstitialField = value; + this.isInterstitialSpecified = true; } } - /// The status of this Content. This attribute is read-only. + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool isInterstitialSpecified { + get { + return this.isInterstitialFieldSpecified; + } + set { + this.isInterstitialFieldSpecified = value; + } + } + + /// true if this creative is eligible for all requested sizes. /// [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public ContentStatus status { + public bool isAllowsAllRequestedSizes { get { - return this.statusField; + return this.isAllowsAllRequestedSizesField; } set { - this.statusField = value; - this.statusSpecified = true; + this.isAllowsAllRequestedSizesField = value; + this.isAllowsAllRequestedSizesSpecified = true; } } - /// true, if a value is specified for , - /// false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool statusSpecified { + public bool isAllowsAllRequestedSizesSpecified { get { - return this.statusFieldSpecified; + return this.isAllowsAllRequestedSizesFieldSpecified; } set { - this.statusFieldSpecified = value; + this.isAllowsAllRequestedSizesFieldSpecified = value; } } + } - /// Whether the content status was defined by the user, or by the source CMS from - /// which the content was ingested. This attribute is read-only. + + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", ConfigurationName = "Google.Api.Ads.AdManager.v202411.CreativeServiceInterface")] + public interface CreativeServiceInterface + { + // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(Asset))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Wrappers.CreativeService.createCreativesResponse createCreatives(Wrappers.CreativeService.createCreativesRequest request); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + System.Threading.Tasks.Task createCreativesAsync(Wrappers.CreativeService.createCreativesRequest request); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(Asset))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v202411.CreativePage getCreativesByStatement(Google.Api.Ads.AdManager.v202411.Statement filterStatement); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task getCreativesByStatementAsync(Google.Api.Ads.AdManager.v202411.Statement filterStatement); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(Asset))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v202411.UpdateResult performCreativeAction(Google.Api.Ads.AdManager.v202411.CreativeAction creativeAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task performCreativeActionAsync(Google.Api.Ads.AdManager.v202411.CreativeAction creativeAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement); + + // CODEGEN: Parameter 'rval' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(Asset))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Wrappers.CreativeService.updateCreativesResponse updateCreatives(Wrappers.CreativeService.updateCreativesRequest request); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + System.Threading.Tasks.Task updateCreativesAsync(Wrappers.CreativeService.updateCreativesRequest request); + } + + + /// Captures a page of Creative objects. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class CreativePage { + private int totalResultSetSizeField; + + private bool totalResultSetSizeFieldSpecified; + + private int startIndexField; + + private bool startIndexFieldSpecified; + + private Creative[] resultsField; + + /// The size of the total result set to which this page belongs. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public ContentStatusDefinedBy statusDefinedBy { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public int totalResultSetSize { get { - return this.statusDefinedByField; + return this.totalResultSetSizeField; } set { - this.statusDefinedByField = value; - this.statusDefinedBySpecified = true; + this.totalResultSetSizeField = value; + this.totalResultSetSizeSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="totalResultSetSize" />, false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool statusDefinedBySpecified { + public bool totalResultSetSizeSpecified { get { - return this.statusDefinedByFieldSpecified; + return this.totalResultSetSizeFieldSpecified; } set { - this.statusDefinedByFieldSpecified = value; + this.totalResultSetSizeFieldSpecified = value; } } - /// The current DAI ingest status of the HLS media for the . This - /// attribute is read-only and is null if the content is not eligible for dynamic ad - /// insertion or if the content does not have HLS media. + /// The absolute index in the total result set on which this page begins. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public DaiIngestStatus hlsIngestStatus { + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public int startIndex { get { - return this.hlsIngestStatusField; + return this.startIndexField; } set { - this.hlsIngestStatusField = value; - this.hlsIngestStatusSpecified = true; + this.startIndexField = value; + this.startIndexSpecified = true; } } - /// true, if a value is specified for , false otherwise. + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool hlsIngestStatusSpecified { + public bool startIndexSpecified { get { - return this.hlsIngestStatusFieldSpecified; + return this.startIndexFieldSpecified; } set { - this.hlsIngestStatusFieldSpecified = value; + this.startIndexFieldSpecified = value; } } - /// The list of any errors that occurred during the most recent DAI ingestion - /// process of the HLS media. This attribute is read-only and will be null if the #hlsIngestStatus is DaiIngestStatus#STATUS_SUCCESS or if the content is not eligible for - /// dynamic ad insertion or if the content does not have HLS media. + /// The collection of creatives contained within this page. /// - [System.Xml.Serialization.XmlElementAttribute("hlsIngestErrors", Order = 5)] - public DaiIngestError[] hlsIngestErrors { + [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] + public Creative[] results { get { - return this.hlsIngestErrorsField; + return this.resultsField; } set { - this.hlsIngestErrorsField = value; + this.resultsField = value; } } + } + + + /// Represents the actions that can be performed on Creative + /// objects. + /// + [System.Xml.Serialization.XmlIncludeAttribute(typeof(DeactivateCreatives))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ActivateCreatives))] + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public abstract partial class CreativeAction { + } + + + /// The action used for deactivating Creative objects. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class DeactivateCreatives : CreativeAction { + } + + + /// The action used for activating Creative objects. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class ActivateCreatives : CreativeAction { + } + + + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + public interface CreativeServiceInterfaceChannel : Google.Api.Ads.AdManager.v202411.CreativeServiceInterface, System.ServiceModel.IClientChannel + { + } + + + /// Provides methods for adding, updating and retrieving Creative objects.

For a creative to run, it must be + /// associated with a LineItem managed by the LineItemCreativeAssociationService.

Read more about creatives + /// on the Ad Manager + /// Help Center.

+ ///
+ [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + public partial class CreativeService : AdManagerSoapClient, ICreativeService { + /// Creates a new instance of the class. + /// + public CreativeService() { + } + + /// Creates a new instance of the class. + /// + public CreativeService(string endpointConfigurationName) + : base(endpointConfigurationName) { + } + + /// Creates a new instance of the class. + /// + public CreativeService(string endpointConfigurationName, string remoteAddress) + : base(endpointConfigurationName, remoteAddress) { + } + + /// Creates a new instance of the class. + /// + public CreativeService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) + : base(endpointConfigurationName, remoteAddress) { + } + + /// Creates a new instance of the class. + /// + public CreativeService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) + : base(binding, remoteAddress) { + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + Wrappers.CreativeService.createCreativesResponse Google.Api.Ads.AdManager.v202411.CreativeServiceInterface.createCreatives(Wrappers.CreativeService.createCreativesRequest request) { + return base.Channel.createCreatives(request); + } + + /// Creates new Creative objects. + /// + public virtual Google.Api.Ads.AdManager.v202411.Creative[] createCreatives(Google.Api.Ads.AdManager.v202411.Creative[] creatives) { + Wrappers.CreativeService.createCreativesRequest inValue = new Wrappers.CreativeService.createCreativesRequest(); + inValue.creatives = creatives; + Wrappers.CreativeService.createCreativesResponse retVal = ((Google.Api.Ads.AdManager.v202411.CreativeServiceInterface)(this)).createCreatives(inValue); + return retVal.rval; + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202411.CreativeServiceInterface.createCreativesAsync(Wrappers.CreativeService.createCreativesRequest request) { + return base.Channel.createCreativesAsync(request); + } + + public virtual System.Threading.Tasks.Task createCreativesAsync(Google.Api.Ads.AdManager.v202411.Creative[] creatives) { + Wrappers.CreativeService.createCreativesRequest inValue = new Wrappers.CreativeService.createCreativesRequest(); + inValue.creatives = creatives; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202411.CreativeServiceInterface)(this)).createCreativesAsync(inValue)).Result.rval); + } + + /// Gets a CreativePage of Creative objects that satisfy the given Statement#query. The following fields are supported for filtering: + /// + /// + /// + /// + /// + /// + ///
PQL Property Object + /// Property
id Creative#id
nameCreative#name
advertiserId Creative#advertiserId
width Creative#size
height Creative#size
lastModifiedDateTime Creative#lastModifiedDateTime
+ ///
+ public virtual Google.Api.Ads.AdManager.v202411.CreativePage getCreativesByStatement(Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.getCreativesByStatement(filterStatement); + } - /// The date and time at which this content's HLS media was last ingested for DAI. - /// This attribute is read-only and will be null if the content is not eligible for - /// dynamic ad insertion or if the content does not have HLS media. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 6)] - public DateTime lastHlsIngestDateTime { - get { - return this.lastHlsIngestDateTimeField; - } - set { - this.lastHlsIngestDateTimeField = value; - } + public virtual System.Threading.Tasks.Task getCreativesByStatementAsync(Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.getCreativesByStatementAsync(filterStatement); } - /// The current DAI ingest status of the DASH media for the . This - /// attribute is read-only and is null if the content is not eligible for dynamic ad - /// insertion or if the content does not have DASH media. + /// Performs action on Creative objects that match the given + /// Statement#query. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 7)] - public DaiIngestStatus dashIngestStatus { - get { - return this.dashIngestStatusField; - } - set { - this.dashIngestStatusField = value; - this.dashIngestStatusSpecified = true; - } + public virtual Google.Api.Ads.AdManager.v202411.UpdateResult performCreativeAction(Google.Api.Ads.AdManager.v202411.CreativeAction creativeAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.performCreativeAction(creativeAction, filterStatement); } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool dashIngestStatusSpecified { - get { - return this.dashIngestStatusFieldSpecified; - } - set { - this.dashIngestStatusFieldSpecified = value; - } + public virtual System.Threading.Tasks.Task performCreativeActionAsync(Google.Api.Ads.AdManager.v202411.CreativeAction creativeAction, Google.Api.Ads.AdManager.v202411.Statement filterStatement) { + return base.Channel.performCreativeActionAsync(creativeAction, filterStatement); } - /// The list of any errors that occurred during the most recent DAI ingestion - /// process of the DASH media. This attribute is read-only and will be null if the - /// #hlsIngestStatus is DaiIngestStatus#STATUS_SUCCESS or if the content is not eligible for - /// dynamic ad insertion or if the content does not have DASH media. - /// - [System.Xml.Serialization.XmlElementAttribute("dashIngestErrors", Order = 8)] - public DaiIngestError[] dashIngestErrors { - get { - return this.dashIngestErrorsField; - } - set { - this.dashIngestErrorsField = value; - } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + Wrappers.CreativeService.updateCreativesResponse Google.Api.Ads.AdManager.v202411.CreativeServiceInterface.updateCreatives(Wrappers.CreativeService.updateCreativesRequest request) { + return base.Channel.updateCreatives(request); } - /// The date and time at which this content's DASH media was last ingested for DAI. - /// This attribute is read-only and will be null if the content is not eligible for - /// dynamic ad insertion or if the content does not have DASH media. + /// Updates the specified Creative objects. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 9)] - public DateTime lastDashIngestDateTime { - get { - return this.lastDashIngestDateTimeField; - } - set { - this.lastDashIngestDateTimeField = value; - } + public virtual Google.Api.Ads.AdManager.v202411.Creative[] updateCreatives(Google.Api.Ads.AdManager.v202411.Creative[] creatives) { + Wrappers.CreativeService.updateCreativesRequest inValue = new Wrappers.CreativeService.updateCreativesRequest(); + inValue.creatives = creatives; + Wrappers.CreativeService.updateCreativesResponse retVal = ((Google.Api.Ads.AdManager.v202411.CreativeServiceInterface)(this)).updateCreatives(inValue); + return retVal.rval; } - /// The date and time at which this content was published. This attribute is - /// read-only. + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v202411.CreativeServiceInterface.updateCreativesAsync(Wrappers.CreativeService.updateCreativesRequest request) { + return base.Channel.updateCreativesAsync(request); + } + + public virtual System.Threading.Tasks.Task updateCreativesAsync(Google.Api.Ads.AdManager.v202411.Creative[] creatives) { + Wrappers.CreativeService.updateCreativesRequest inValue = new Wrappers.CreativeService.updateCreativesRequest(); + inValue.creatives = creatives; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v202411.CreativeServiceInterface)(this)).updateCreativesAsync(inValue)).Result.rval); + } + } + namespace Wrappers.CreativeSetService + { + } + /// A creative set is comprised of a master creative and its companion creatives. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class CreativeSet { + private long idField; + + private bool idFieldSpecified; + + private string nameField; + + private long masterCreativeIdField; + + private bool masterCreativeIdFieldSpecified; + + private long[] companionCreativeIdsField; + + private DateTime lastModifiedDateTimeField; + + /// Uniquely identifies the CreativeSet. This attribute is read-only + /// and is assigned by Google when a creative set is created. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 10)] - public DateTime importDateTime { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public long id { get { - return this.importDateTimeField; + return this.idField; } set { - this.importDateTimeField = value; + this.idField = value; + this.idSpecified = true; } } - /// The date and time at which this content was last modified. The last modified - /// date time will always be updated when a ContentBundle association is changed, but will not - /// always be updated when a CmsMetadataValue value - /// is changed. This attribute is read-only. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 11)] - public DateTime lastModifiedDateTime { + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool idSpecified { get { - return this.lastModifiedDateTimeField; + return this.idFieldSpecified; } set { - this.lastModifiedDateTimeField = value; + this.idFieldSpecified = value; } } - /// Information about the content from the CMS it was ingested from. This attribute - /// is read-only. + /// The name of the creative set. This attribute is required and has a maximum + /// length of 255 characters. /// - [System.Xml.Serialization.XmlElementAttribute("cmsSources", Order = 12)] - public CmsContent[] cmsSources { + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public string name { get { - return this.cmsSourcesField; + return this.nameField; } set { - this.cmsSourcesField = value; + this.nameField = value; } } - /// IDs of the ContentBundle of which this content is a - /// member. This attribute is read-only. + /// The ID of the master creative associated with this creative set. This attribute + /// is required. /// - [System.Xml.Serialization.XmlElementAttribute("contentBundleIds", Order = 13)] - public long[] contentBundleIds { + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public long masterCreativeId { get { - return this.contentBundleIdsField; + return this.masterCreativeIdField; } set { - this.contentBundleIdsField = value; + this.masterCreativeIdField = value; + this.masterCreativeIdSpecified = true; } } - /// A collection of CmsMetadataValue IDs that are - /// associated with this content. This attribute is read-only. - /// - [System.Xml.Serialization.XmlElementAttribute("cmsMetadataValueIds", Order = 14)] - public long[] cmsMetadataValueIds { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool masterCreativeIdSpecified { get { - return this.cmsMetadataValueIdsField; + return this.masterCreativeIdFieldSpecified; } set { - this.cmsMetadataValueIdsField = value; + this.masterCreativeIdFieldSpecified = value; } } - /// The duration of the content in milliseconds. This attribute is read-only. + /// The IDs of the companion creatives associated with this creative set. This + /// attribute is required. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 15)] - public long duration { + [System.Xml.Serialization.XmlElementAttribute("companionCreativeIds", Order = 3)] + public long[] companionCreativeIds { get { - return this.durationField; + return this.companionCreativeIdsField; } set { - this.durationField = value; - this.durationSpecified = true; + this.companionCreativeIdsField = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool durationSpecified { + /// The date and time this creative set was last modified. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 4)] + public DateTime lastModifiedDateTime { get { - return this.durationFieldSpecified; + return this.lastModifiedDateTimeField; } set { - this.durationFieldSpecified = value; + this.lastModifiedDateTimeField = value; } } } - /// Describes the status of a Content object. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum ContentStatus { - /// Indicates the Content has been created and is eligible to - /// have ads served against it. - /// - ACTIVE = 0, - /// Indicates the Content has been deactivated and cannot have - /// ads served against it. - /// - INACTIVE = 1, - /// Indicates the Content has been archived; user-visible. - /// - ARCHIVED = 2, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 3, - } + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411", ConfigurationName = "Google.Api.Ads.AdManager.v202411.CreativeSetServiceInterface")] + public interface CreativeSetServiceInterface + { + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v202411.CreativeSet createCreativeSet(Google.Api.Ads.AdManager.v202411.CreativeSet creativeSet); + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task createCreativeSetAsync(Google.Api.Ads.AdManager.v202411.CreativeSet creativeSet); - /// Describes who defined the effective status of the Content. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum ContentStatusDefinedBy { - /// Indicates that the status of the Content is defined by the CMS. - /// - CMS = 0, - /// Indicates that the status of the Content is defined by the user. - /// - USER = 1, - } + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v202411.CreativeSetPage getCreativeSetsByStatement(Google.Api.Ads.AdManager.v202411.Statement statement); + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task getCreativeSetsByStatementAsync(Google.Api.Ads.AdManager.v202411.Statement statement); - /// The status of the DAI ingestion process. Only content with a status of #SUCCESS will be available for dynamic ad insertion. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public enum DaiIngestStatus { - /// The content was successfully ingested for DAI. - /// - SUCCESS = 0, - /// There was a non-fatal issue during the DAI ingestion process. - /// - WARNING = 1, - /// The preconditioned content was successfully ingested for DAI. - /// - INGESTED = 4, - /// There was a non-fatal issue during the DAI ingestion process on preconditioned - /// content. - /// - INGESTED_WITH_WARNINGS = 5, - /// The unconditioned content was successfully conditioned for DAI. - /// - CONDITIONED = 6, - /// There was a non-fatal issue during the DAI conditioning process on originally - /// unconditioned content. - /// - CONDITIONED_WITH_WARNINGS = 7, - /// There was a non-fatal issue during the DAI ingestion process and the content is - /// not available for dynamic ad insertion. - /// - FAILURE = 2, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 3, + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202411.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v202411.CreativeSet updateCreativeSet(Google.Api.Ads.AdManager.v202411.CreativeSet creativeSet); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task updateCreativeSetAsync(Google.Api.Ads.AdManager.v202411.CreativeSet creativeSet); } - /// Captures a page of Content objects. + /// Captures a page of CreativeSet objects. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311")] - public partial class ContentPage { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202411")] + public partial class CreativeSetPage { private int totalResultSetSizeField; private bool totalResultSetSizeFieldSpecified; @@ -70644,7 +69430,7 @@ public partial class ContentPage { private bool startIndexFieldSpecified; - private Content[] resultsField; + private CreativeSet[] resultsField; /// The size of the total result set to which this page belongs. /// @@ -70698,10 +69484,10 @@ public bool startIndexSpecified { } } - /// The collection of content contained within this page. + /// The collection of creative sets contained within this page. /// [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] - public Content[] results { + public CreativeSet[] results { get { return this.resultsField; } @@ -70713,131 +69499,119 @@ public Content[] results { [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v202311", ConfigurationName = "Google.Api.Ads.AdManager.v202311.ContentServiceInterface")] - public interface ContentServiceInterface - { - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v202311.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v202311.ContentPage getContentByStatement(Google.Api.Ads.AdManager.v202311.Statement statement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getContentByStatementAsync(Google.Api.Ads.AdManager.v202311.Statement statement); - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public interface ContentServiceInterfaceChannel : Google.Api.Ads.AdManager.v202311.ContentServiceInterface, System.ServiceModel.IClientChannel + public interface CreativeSetServiceInterfaceChannel : Google.Api.Ads.AdManager.v202411.CreativeSetServiceInterface, System.ServiceModel.IClientChannel { } - /// Service for retrieving Content.

Content - /// entities can be targeted in video LineItems.

+ /// Provides methods for adding, updating and retrieving CreativeSet objects. /// [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public partial class ContentService : AdManagerSoapClient, IContentService { - /// Creates a new instance of the class. + public partial class CreativeSetService : AdManagerSoapClient, ICreativeSetService { + /// Creates a new instance of the class. /// - public ContentService() { + public CreativeSetService() { } - /// Creates a new instance of the class. + /// Creates a new instance of the class. /// - public ContentService(string endpointConfigurationName) + public CreativeSetService(string endpointConfigurationName) : base(endpointConfigurationName) { } - /// Creates a new instance of the class. + /// Creates a new instance of the class. /// - public ContentService(string endpointConfigurationName, string remoteAddress) + public CreativeSetService(string endpointConfigurationName, string remoteAddress) : base(endpointConfigurationName, remoteAddress) { } - /// Creates a new instance of the class. + /// Creates a new instance of the class. /// - public ContentService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) + public CreativeSetService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) : base(endpointConfigurationName, remoteAddress) { } - /// Creates a new instance of the class. + /// Creates a new instance of the class. /// - public ContentService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) + public CreativeSetService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) : base(binding, remoteAddress) { } - /// Gets a ContentPage of Content - /// objects that satisfy the given Statement#query. The following - /// fields are supported for filtering: - /// - /// - /// - /// - /// - ///
PQL - /// Property Object Property
id Content#id
status Content#status
name Content#name
lastModifiedDateTime Content#lastModifiedDateTime
lastDaiIngestDateTime Content#lastDaiIngestDateTime
daiIngestStatus Content#daiIngestStatus
+ /// Creates a new CreativeSet. /// - public virtual Google.Api.Ads.AdManager.v202311.ContentPage getContentByStatement(Google.Api.Ads.AdManager.v202311.Statement statement) { - return base.Channel.getContentByStatement(statement); + public virtual Google.Api.Ads.AdManager.v202411.CreativeSet createCreativeSet(Google.Api.Ads.AdManager.v202411.CreativeSet creativeSet) { + return base.Channel.createCreativeSet(creativeSet); } - public virtual System.Threading.Tasks.Task getContentByStatementAsync(Google.Api.Ads.AdManager.v202311.Statement statement) { - return base.Channel.getContentByStatementAsync(statement); + public virtual System.Threading.Tasks.Task createCreativeSetAsync(Google.Api.Ads.AdManager.v202411.CreativeSet creativeSet) { + return base.Channel.createCreativeSetAsync(creativeSet); + } + + /// Gets a CreativeSetPage of CreativeSet objects that satisfy the given Statement#query. The following fields are supported for filtering: + /// + /// + /// + /// + ///
PQL Property Object + /// Property
id CreativeSet#id
name CreativeSet#name
masterCreativeId CreativeSet#masterCreativeId
lastModifiedDateTime CreativeSet#lastModifiedDateTime
+ ///
+ public virtual Google.Api.Ads.AdManager.v202411.CreativeSetPage getCreativeSetsByStatement(Google.Api.Ads.AdManager.v202411.Statement statement) { + return base.Channel.getCreativeSetsByStatement(statement); + } + + public virtual System.Threading.Tasks.Task getCreativeSetsByStatementAsync(Google.Api.Ads.AdManager.v202411.Statement statement) { + return base.Channel.getCreativeSetsByStatementAsync(statement); + } + + /// Updates the specified CreativeSet. + /// + public virtual Google.Api.Ads.AdManager.v202411.CreativeSet updateCreativeSet(Google.Api.Ads.AdManager.v202411.CreativeSet creativeSet) { + return base.Channel.updateCreativeSet(creativeSet); + } + + public virtual System.Threading.Tasks.Task updateCreativeSetAsync(Google.Api.Ads.AdManager.v202411.CreativeSet creativeSet) { + return base.Channel.updateCreativeSetAsync(creativeSet); } } /// Provides methods for creating, updating and retrieving ActivityGroup objects.

An activity group contains Activity objects. Activities have a many-to-one relationship - /// with activity groups, meaning each activity can belong to only one activity - /// group, but activity groups can have multiple activities. An activity group can - /// be used to manage the activities it contains.

+ /// href='AdRule'>AdRule objects.

Ad rules contain data that the ad server + /// uses to generate a playlist of video ads.

///
- public interface IActivityGroupService : ActivityGroupServiceInterface, IDisposable + public interface IAdRuleService : AdRuleServiceInterface, IDisposable { - Google.Api.Ads.AdManager.v202311.ActivityGroup[] createActivityGroups(Google.Api.Ads.AdManager.v202311.ActivityGroup[] activityGroups); + Google.Api.Ads.AdManager.v202411.AdRule[] createAdRules(Google.Api.Ads.AdManager.v202411.AdRule[] adRules); - System.Threading.Tasks.Task createActivityGroupsAsync(Google.Api.Ads.AdManager.v202311.ActivityGroup[] activityGroups); + System.Threading.Tasks.Task createAdRulesAsync(Google.Api.Ads.AdManager.v202411.AdRule[] adRules); - Google.Api.Ads.AdManager.v202311.ActivityGroup[] updateActivityGroups(Google.Api.Ads.AdManager.v202311.ActivityGroup[] activityGroups); + Google.Api.Ads.AdManager.v202411.AdSpot[] createAdSpots(Google.Api.Ads.AdManager.v202411.AdSpot[] adSpots); - System.Threading.Tasks.Task updateActivityGroupsAsync(Google.Api.Ads.AdManager.v202311.ActivityGroup[] activityGroups); - } + System.Threading.Tasks.Task createAdSpotsAsync(Google.Api.Ads.AdManager.v202411.AdSpot[] adSpots); + Google.Api.Ads.AdManager.v202411.BreakTemplate[] createBreakTemplates(Google.Api.Ads.AdManager.v202411.BreakTemplate[] breakTemplate); - /// Provides methods for adding, updating and retrieving Creative objects.

For a creative to run, it must be - /// associated with a LineItem managed by the LineItemCreativeAssociationService.

Read more about creatives - /// on the Ad Manager - /// Help Center.

- ///
- public interface ICreativeService : CreativeServiceInterface, IDisposable - { - Google.Api.Ads.AdManager.v202311.Creative[] createCreatives(Google.Api.Ads.AdManager.v202311.Creative[] creatives); + System.Threading.Tasks.Task createBreakTemplatesAsync(Google.Api.Ads.AdManager.v202411.BreakTemplate[] breakTemplate); - System.Threading.Tasks.Task createCreativesAsync(Google.Api.Ads.AdManager.v202311.Creative[] creatives); + Google.Api.Ads.AdManager.v202411.AdRule[] updateAdRules(Google.Api.Ads.AdManager.v202411.AdRule[] adRules); - Google.Api.Ads.AdManager.v202311.Creative[] updateCreatives(Google.Api.Ads.AdManager.v202311.Creative[] creatives); + System.Threading.Tasks.Task updateAdRulesAsync(Google.Api.Ads.AdManager.v202411.AdRule[] adRules); - System.Threading.Tasks.Task updateCreativesAsync(Google.Api.Ads.AdManager.v202311.Creative[] creatives); - } + Google.Api.Ads.AdManager.v202411.AdSpot[] updateAdSpots(Google.Api.Ads.AdManager.v202411.AdSpot[] adSpots); + System.Threading.Tasks.Task updateAdSpotsAsync(Google.Api.Ads.AdManager.v202411.AdSpot[] adSpots); - /// Provides methods for adding, updating and retrieving CreativeSet objects. - /// - public interface ICreativeSetService : CreativeSetServiceInterface, IDisposable - { + Google.Api.Ads.AdManager.v202411.BreakTemplate[] updateBreakTemplates(Google.Api.Ads.AdManager.v202411.BreakTemplate[] breakTemplate); + + System.Threading.Tasks.Task updateBreakTemplatesAsync(Google.Api.Ads.AdManager.v202411.BreakTemplate[] breakTemplate); } @@ -70858,13 +69632,13 @@ public interface ICreativeTemplateService : CreativeTemplateServiceInterface, ID ///
public interface ICreativeWrapperService : CreativeWrapperServiceInterface, IDisposable { - Google.Api.Ads.AdManager.v202311.CreativeWrapper[] createCreativeWrappers(Google.Api.Ads.AdManager.v202311.CreativeWrapper[] creativeWrappers); + Google.Api.Ads.AdManager.v202411.CreativeWrapper[] createCreativeWrappers(Google.Api.Ads.AdManager.v202411.CreativeWrapper[] creativeWrappers); - System.Threading.Tasks.Task createCreativeWrappersAsync(Google.Api.Ads.AdManager.v202311.CreativeWrapper[] creativeWrappers); + System.Threading.Tasks.Task createCreativeWrappersAsync(Google.Api.Ads.AdManager.v202411.CreativeWrapper[] creativeWrappers); - Google.Api.Ads.AdManager.v202311.CreativeWrapper[] updateCreativeWrappers(Google.Api.Ads.AdManager.v202311.CreativeWrapper[] creativeWrappers); + Google.Api.Ads.AdManager.v202411.CreativeWrapper[] updateCreativeWrappers(Google.Api.Ads.AdManager.v202411.CreativeWrapper[] creativeWrappers); - System.Threading.Tasks.Task updateCreativeWrappersAsync(Google.Api.Ads.AdManager.v202311.CreativeWrapper[] creativeWrappers); + System.Threading.Tasks.Task updateCreativeWrappersAsync(Google.Api.Ads.AdManager.v202411.CreativeWrapper[] creativeWrappers); } @@ -70874,21 +69648,21 @@ public interface ICreativeWrapperService : CreativeWrapperServiceInterface, IDis ///
public interface ICustomTargetingService : CustomTargetingServiceInterface, IDisposable { - Google.Api.Ads.AdManager.v202311.CustomTargetingKey[] createCustomTargetingKeys(Google.Api.Ads.AdManager.v202311.CustomTargetingKey[] keys); + Google.Api.Ads.AdManager.v202411.CustomTargetingKey[] createCustomTargetingKeys(Google.Api.Ads.AdManager.v202411.CustomTargetingKey[] keys); - System.Threading.Tasks.Task createCustomTargetingKeysAsync(Google.Api.Ads.AdManager.v202311.CustomTargetingKey[] keys); + System.Threading.Tasks.Task createCustomTargetingKeysAsync(Google.Api.Ads.AdManager.v202411.CustomTargetingKey[] keys); - Google.Api.Ads.AdManager.v202311.CustomTargetingValue[] createCustomTargetingValues(Google.Api.Ads.AdManager.v202311.CustomTargetingValue[] values); + Google.Api.Ads.AdManager.v202411.CustomTargetingValue[] createCustomTargetingValues(Google.Api.Ads.AdManager.v202411.CustomTargetingValue[] values); - System.Threading.Tasks.Task createCustomTargetingValuesAsync(Google.Api.Ads.AdManager.v202311.CustomTargetingValue[] values); + System.Threading.Tasks.Task createCustomTargetingValuesAsync(Google.Api.Ads.AdManager.v202411.CustomTargetingValue[] values); - Google.Api.Ads.AdManager.v202311.CustomTargetingKey[] updateCustomTargetingKeys(Google.Api.Ads.AdManager.v202311.CustomTargetingKey[] keys); + Google.Api.Ads.AdManager.v202411.CustomTargetingKey[] updateCustomTargetingKeys(Google.Api.Ads.AdManager.v202411.CustomTargetingKey[] keys); - System.Threading.Tasks.Task updateCustomTargetingKeysAsync(Google.Api.Ads.AdManager.v202311.CustomTargetingKey[] keys); + System.Threading.Tasks.Task updateCustomTargetingKeysAsync(Google.Api.Ads.AdManager.v202411.CustomTargetingKey[] keys); - Google.Api.Ads.AdManager.v202311.CustomTargetingValue[] updateCustomTargetingValues(Google.Api.Ads.AdManager.v202311.CustomTargetingValue[] values); + Google.Api.Ads.AdManager.v202411.CustomTargetingValue[] updateCustomTargetingValues(Google.Api.Ads.AdManager.v202411.CustomTargetingValue[] values); - System.Threading.Tasks.Task updateCustomTargetingValuesAsync(Google.Api.Ads.AdManager.v202311.CustomTargetingValue[] values); + System.Threading.Tasks.Task updateCustomTargetingValuesAsync(Google.Api.Ads.AdManager.v202411.CustomTargetingValue[] values); } @@ -70897,21 +69671,21 @@ public interface ICustomTargetingService : CustomTargetingServiceInterface, IDis ///
public interface ICustomFieldService : CustomFieldServiceInterface, IDisposable { - Google.Api.Ads.AdManager.v202311.CustomFieldOption[] createCustomFieldOptions(Google.Api.Ads.AdManager.v202311.CustomFieldOption[] customFieldOptions); + Google.Api.Ads.AdManager.v202411.CustomFieldOption[] createCustomFieldOptions(Google.Api.Ads.AdManager.v202411.CustomFieldOption[] customFieldOptions); - System.Threading.Tasks.Task createCustomFieldOptionsAsync(Google.Api.Ads.AdManager.v202311.CustomFieldOption[] customFieldOptions); + System.Threading.Tasks.Task createCustomFieldOptionsAsync(Google.Api.Ads.AdManager.v202411.CustomFieldOption[] customFieldOptions); - Google.Api.Ads.AdManager.v202311.CustomField[] createCustomFields(Google.Api.Ads.AdManager.v202311.CustomField[] customFields); + Google.Api.Ads.AdManager.v202411.CustomField[] createCustomFields(Google.Api.Ads.AdManager.v202411.CustomField[] customFields); - System.Threading.Tasks.Task createCustomFieldsAsync(Google.Api.Ads.AdManager.v202311.CustomField[] customFields); + System.Threading.Tasks.Task createCustomFieldsAsync(Google.Api.Ads.AdManager.v202411.CustomField[] customFields); - Google.Api.Ads.AdManager.v202311.CustomFieldOption[] updateCustomFieldOptions(Google.Api.Ads.AdManager.v202311.CustomFieldOption[] customFieldOptions); + Google.Api.Ads.AdManager.v202411.CustomFieldOption[] updateCustomFieldOptions(Google.Api.Ads.AdManager.v202411.CustomFieldOption[] customFieldOptions); - System.Threading.Tasks.Task updateCustomFieldOptionsAsync(Google.Api.Ads.AdManager.v202311.CustomFieldOption[] customFieldOptions); + System.Threading.Tasks.Task updateCustomFieldOptionsAsync(Google.Api.Ads.AdManager.v202411.CustomFieldOption[] customFieldOptions); - Google.Api.Ads.AdManager.v202311.CustomField[] updateCustomFields(Google.Api.Ads.AdManager.v202311.CustomField[] customFields); + Google.Api.Ads.AdManager.v202411.CustomField[] updateCustomFields(Google.Api.Ads.AdManager.v202411.CustomField[] customFields); - System.Threading.Tasks.Task updateCustomFieldsAsync(Google.Api.Ads.AdManager.v202311.CustomField[] customFields); + System.Threading.Tasks.Task updateCustomFieldsAsync(Google.Api.Ads.AdManager.v202411.CustomField[] customFields); } @@ -70951,29 +69725,29 @@ public interface ICustomFieldService : CustomFieldServiceInterface, IDisposable ///
public interface IForecastService : ForecastServiceInterface, IDisposable { - Google.Api.Ads.AdManager.v202311.DeliveryForecast getDeliveryForecast(Google.Api.Ads.AdManager.v202311.ProspectiveLineItem[] lineItems, Google.Api.Ads.AdManager.v202311.DeliveryForecastOptions forecastOptions); + Google.Api.Ads.AdManager.v202411.DeliveryForecast getDeliveryForecast(Google.Api.Ads.AdManager.v202411.ProspectiveLineItem[] lineItems, Google.Api.Ads.AdManager.v202411.DeliveryForecastOptions forecastOptions); - System.Threading.Tasks.Task getDeliveryForecastAsync(Google.Api.Ads.AdManager.v202311.ProspectiveLineItem[] lineItems, Google.Api.Ads.AdManager.v202311.DeliveryForecastOptions forecastOptions); + System.Threading.Tasks.Task getDeliveryForecastAsync(Google.Api.Ads.AdManager.v202411.ProspectiveLineItem[] lineItems, Google.Api.Ads.AdManager.v202411.DeliveryForecastOptions forecastOptions); - Google.Api.Ads.AdManager.v202311.DeliveryForecast getDeliveryForecastByIds(long[] lineItemIds, Google.Api.Ads.AdManager.v202311.DeliveryForecastOptions forecastOptions); + Google.Api.Ads.AdManager.v202411.DeliveryForecast getDeliveryForecastByIds(long[] lineItemIds, Google.Api.Ads.AdManager.v202411.DeliveryForecastOptions forecastOptions); - System.Threading.Tasks.Task getDeliveryForecastByIdsAsync(long[] lineItemIds, Google.Api.Ads.AdManager.v202311.DeliveryForecastOptions forecastOptions); + System.Threading.Tasks.Task getDeliveryForecastByIdsAsync(long[] lineItemIds, Google.Api.Ads.AdManager.v202411.DeliveryForecastOptions forecastOptions); } public interface IInventoryService : InventoryServiceInterface, IDisposable { - Google.Api.Ads.AdManager.v202311.AdUnit[] createAdUnits(Google.Api.Ads.AdManager.v202311.AdUnit[] adUnits); + Google.Api.Ads.AdManager.v202411.AdUnit[] createAdUnits(Google.Api.Ads.AdManager.v202411.AdUnit[] adUnits); - System.Threading.Tasks.Task createAdUnitsAsync(Google.Api.Ads.AdManager.v202311.AdUnit[] adUnits); + System.Threading.Tasks.Task createAdUnitsAsync(Google.Api.Ads.AdManager.v202411.AdUnit[] adUnits); - Google.Api.Ads.AdManager.v202311.AdUnitSize[] getAdUnitSizesByStatement(Google.Api.Ads.AdManager.v202311.Statement filterStatement); + Google.Api.Ads.AdManager.v202411.AdUnitSize[] getAdUnitSizesByStatement(Google.Api.Ads.AdManager.v202411.Statement filterStatement); - System.Threading.Tasks.Task getAdUnitSizesByStatementAsync(Google.Api.Ads.AdManager.v202311.Statement filterStatement); + System.Threading.Tasks.Task getAdUnitSizesByStatementAsync(Google.Api.Ads.AdManager.v202411.Statement filterStatement); - Google.Api.Ads.AdManager.v202311.AdUnit[] updateAdUnits(Google.Api.Ads.AdManager.v202311.AdUnit[] adUnits); + Google.Api.Ads.AdManager.v202411.AdUnit[] updateAdUnits(Google.Api.Ads.AdManager.v202411.AdUnit[] adUnits); - System.Threading.Tasks.Task updateAdUnitsAsync(Google.Api.Ads.AdManager.v202311.AdUnit[] adUnits); + System.Threading.Tasks.Task updateAdUnitsAsync(Google.Api.Ads.AdManager.v202411.AdUnit[] adUnits); } @@ -70981,13 +69755,13 @@ public interface IInventoryService : InventoryServiceInterface, IDisposable ///
public interface ILabelService : LabelServiceInterface, IDisposable { - Google.Api.Ads.AdManager.v202311.Label[] createLabels(Google.Api.Ads.AdManager.v202311.Label[] labels); + Google.Api.Ads.AdManager.v202411.Label[] createLabels(Google.Api.Ads.AdManager.v202411.Label[] labels); - System.Threading.Tasks.Task createLabelsAsync(Google.Api.Ads.AdManager.v202311.Label[] labels); + System.Threading.Tasks.Task createLabelsAsync(Google.Api.Ads.AdManager.v202411.Label[] labels); - Google.Api.Ads.AdManager.v202311.Label[] updateLabels(Google.Api.Ads.AdManager.v202311.Label[] labels); + Google.Api.Ads.AdManager.v202411.Label[] updateLabels(Google.Api.Ads.AdManager.v202411.Label[] labels); - System.Threading.Tasks.Task updateLabelsAsync(Google.Api.Ads.AdManager.v202311.Label[] labels); + System.Threading.Tasks.Task updateLabelsAsync(Google.Api.Ads.AdManager.v202411.Label[] labels); } @@ -71006,36 +69780,17 @@ public interface ILabelService : LabelServiceInterface, IDisposable ///
public interface ILineItemCreativeAssociationService : LineItemCreativeAssociationServiceInterface, IDisposable { - Google.Api.Ads.AdManager.v202311.LineItemCreativeAssociation[] createLineItemCreativeAssociations(Google.Api.Ads.AdManager.v202311.LineItemCreativeAssociation[] lineItemCreativeAssociations); - - System.Threading.Tasks.Task createLineItemCreativeAssociationsAsync(Google.Api.Ads.AdManager.v202311.LineItemCreativeAssociation[] lineItemCreativeAssociations); - - Google.Api.Ads.AdManager.v202311.CreativeNativeStylePreview[] getPreviewUrlsForNativeStyles(long lineItemId, long creativeId, string siteUrl); - - System.Threading.Tasks.Task getPreviewUrlsForNativeStylesAsync(long lineItemId, long creativeId, string siteUrl); - - Google.Api.Ads.AdManager.v202311.LineItemCreativeAssociation[] updateLineItemCreativeAssociations(Google.Api.Ads.AdManager.v202311.LineItemCreativeAssociation[] lineItemCreativeAssociations); - - System.Threading.Tasks.Task updateLineItemCreativeAssociationsAsync(Google.Api.Ads.AdManager.v202311.LineItemCreativeAssociation[] lineItemCreativeAssociations); - } + Google.Api.Ads.AdManager.v202411.LineItemCreativeAssociation[] createLineItemCreativeAssociations(Google.Api.Ads.AdManager.v202411.LineItemCreativeAssociation[] lineItemCreativeAssociations); + System.Threading.Tasks.Task createLineItemCreativeAssociationsAsync(Google.Api.Ads.AdManager.v202411.LineItemCreativeAssociation[] lineItemCreativeAssociations); - /// Provides methods for creating, updating and retrieving Activity objects.

An activity group contains Activity objects. Activities have a many-to-one relationship - /// with activity groups, meaning each activity can belong to only one activity - /// group, but activity groups can have multiple activities. An activity group can - /// be used to manage the activities it contains.

- ///
- public interface IActivityService : ActivityServiceInterface, IDisposable - { - Google.Api.Ads.AdManager.v202311.Activity[] createActivities(Google.Api.Ads.AdManager.v202311.Activity[] activities); + Google.Api.Ads.AdManager.v202411.CreativeNativeStylePreview[] getPreviewUrlsForNativeStyles(long lineItemId, long creativeId, string siteUrl); - System.Threading.Tasks.Task createActivitiesAsync(Google.Api.Ads.AdManager.v202311.Activity[] activities); + System.Threading.Tasks.Task getPreviewUrlsForNativeStylesAsync(long lineItemId, long creativeId, string siteUrl); - Google.Api.Ads.AdManager.v202311.Activity[] updateActivities(Google.Api.Ads.AdManager.v202311.Activity[] activities); + Google.Api.Ads.AdManager.v202411.LineItemCreativeAssociation[] updateLineItemCreativeAssociations(Google.Api.Ads.AdManager.v202411.LineItemCreativeAssociation[] lineItemCreativeAssociations); - System.Threading.Tasks.Task updateActivitiesAsync(Google.Api.Ads.AdManager.v202311.Activity[] activities); + System.Threading.Tasks.Task updateLineItemCreativeAssociationsAsync(Google.Api.Ads.AdManager.v202411.LineItemCreativeAssociation[] lineItemCreativeAssociations); } @@ -71053,13 +69808,13 @@ public interface IActivityService : ActivityServiceInterface, IDisposable ///
public interface ILineItemService : LineItemServiceInterface, IDisposable { - Google.Api.Ads.AdManager.v202311.LineItem[] createLineItems(Google.Api.Ads.AdManager.v202311.LineItem[] lineItems); + Google.Api.Ads.AdManager.v202411.LineItem[] createLineItems(Google.Api.Ads.AdManager.v202411.LineItem[] lineItems); - System.Threading.Tasks.Task createLineItemsAsync(Google.Api.Ads.AdManager.v202311.LineItem[] lineItems); + System.Threading.Tasks.Task createLineItemsAsync(Google.Api.Ads.AdManager.v202411.LineItem[] lineItems); - Google.Api.Ads.AdManager.v202311.LineItem[] updateLineItems(Google.Api.Ads.AdManager.v202311.LineItem[] lineItems); + Google.Api.Ads.AdManager.v202411.LineItem[] updateLineItems(Google.Api.Ads.AdManager.v202411.LineItem[] lineItems); - System.Threading.Tasks.Task updateLineItemsAsync(Google.Api.Ads.AdManager.v202311.LineItem[] lineItems); + System.Threading.Tasks.Task updateLineItemsAsync(Google.Api.Ads.AdManager.v202411.LineItem[] lineItems); } @@ -71071,6 +69826,21 @@ public interface ILineItemTemplateService : LineItemTemplateServiceInterface, ID } + /// Provides methods for creating, updating and retrieving Contact objects. + /// + public interface IContactService : ContactServiceInterface, IDisposable + { + Google.Api.Ads.AdManager.v202411.Contact[] createContacts(Google.Api.Ads.AdManager.v202411.Contact[] contacts); + + System.Threading.Tasks.Task createContactsAsync(Google.Api.Ads.AdManager.v202411.Contact[] contacts); + + Google.Api.Ads.AdManager.v202411.Contact[] updateContacts(Google.Api.Ads.AdManager.v202411.Contact[] contacts); + + System.Threading.Tasks.Task updateContactsAsync(Google.Api.Ads.AdManager.v202411.Contact[] contacts); + } + + /// Provides methods for creating, updating and retrieving LiveStreamEvent objects.

This feature is only /// available for Ad Manager 360 networks. Publishers will need to be activated @@ -71079,21 +69849,21 @@ public interface ILineItemTemplateService : LineItemTemplateServiceInterface, ID ///

public interface ILiveStreamEventService : LiveStreamEventServiceInterface, IDisposable { - Google.Api.Ads.AdManager.v202311.LiveStreamEvent[] createLiveStreamEvents(Google.Api.Ads.AdManager.v202311.LiveStreamEvent[] liveStreamEvents); + Google.Api.Ads.AdManager.v202411.LiveStreamEvent[] createLiveStreamEvents(Google.Api.Ads.AdManager.v202411.LiveStreamEvent[] liveStreamEvents); - System.Threading.Tasks.Task createLiveStreamEventsAsync(Google.Api.Ads.AdManager.v202311.LiveStreamEvent[] liveStreamEvents); + System.Threading.Tasks.Task createLiveStreamEventsAsync(Google.Api.Ads.AdManager.v202411.LiveStreamEvent[] liveStreamEvents); - Google.Api.Ads.AdManager.v202311.Slate[] createSlates(Google.Api.Ads.AdManager.v202311.Slate[] slates); + Google.Api.Ads.AdManager.v202411.Slate[] createSlates(Google.Api.Ads.AdManager.v202411.Slate[] slates); - System.Threading.Tasks.Task createSlatesAsync(Google.Api.Ads.AdManager.v202311.Slate[] slates); + System.Threading.Tasks.Task createSlatesAsync(Google.Api.Ads.AdManager.v202411.Slate[] slates); - Google.Api.Ads.AdManager.v202311.LiveStreamEvent[] updateLiveStreamEvents(Google.Api.Ads.AdManager.v202311.LiveStreamEvent[] liveStreamEvents); + Google.Api.Ads.AdManager.v202411.LiveStreamEvent[] updateLiveStreamEvents(Google.Api.Ads.AdManager.v202411.LiveStreamEvent[] liveStreamEvents); - System.Threading.Tasks.Task updateLiveStreamEventsAsync(Google.Api.Ads.AdManager.v202311.LiveStreamEvent[] liveStreamEvents); + System.Threading.Tasks.Task updateLiveStreamEventsAsync(Google.Api.Ads.AdManager.v202411.LiveStreamEvent[] liveStreamEvents); - Google.Api.Ads.AdManager.v202311.Slate[] updateSlates(Google.Api.Ads.AdManager.v202311.Slate[] slates); + Google.Api.Ads.AdManager.v202411.Slate[] updateSlates(Google.Api.Ads.AdManager.v202411.Slate[] slates); - System.Threading.Tasks.Task updateSlatesAsync(Google.Api.Ads.AdManager.v202311.Slate[] slates); + System.Threading.Tasks.Task updateSlatesAsync(Google.Api.Ads.AdManager.v202411.Slate[] slates); } @@ -71102,13 +69872,13 @@ public interface ILiveStreamEventService : LiveStreamEventServiceInterface, IDis ///
public interface IMobileApplicationService : MobileApplicationServiceInterface, IDisposable { - Google.Api.Ads.AdManager.v202311.MobileApplication[] createMobileApplications(Google.Api.Ads.AdManager.v202311.MobileApplication[] mobileApplications); + Google.Api.Ads.AdManager.v202411.MobileApplication[] createMobileApplications(Google.Api.Ads.AdManager.v202411.MobileApplication[] mobileApplications); - System.Threading.Tasks.Task createMobileApplicationsAsync(Google.Api.Ads.AdManager.v202311.MobileApplication[] mobileApplications); + System.Threading.Tasks.Task createMobileApplicationsAsync(Google.Api.Ads.AdManager.v202411.MobileApplication[] mobileApplications); - Google.Api.Ads.AdManager.v202311.MobileApplication[] updateMobileApplications(Google.Api.Ads.AdManager.v202311.MobileApplication[] mobileApplications); + Google.Api.Ads.AdManager.v202411.MobileApplication[] updateMobileApplications(Google.Api.Ads.AdManager.v202411.MobileApplication[] mobileApplications); - System.Threading.Tasks.Task updateMobileApplicationsAsync(Google.Api.Ads.AdManager.v202311.MobileApplication[] mobileApplications); + System.Threading.Tasks.Task updateMobileApplicationsAsync(Google.Api.Ads.AdManager.v202411.MobileApplication[] mobileApplications); } @@ -71118,9 +69888,9 @@ public interface IMobileApplicationService : MobileApplicationServiceInterface, ///
public interface INetworkService : NetworkServiceInterface, IDisposable { - Google.Api.Ads.AdManager.v202311.Network[] getAllNetworks(); + Google.Api.Ads.AdManager.v202411.Network[] getAllNetworks(); - System.Threading.Tasks.Task getAllNetworksAsync(); + System.Threading.Tasks.Task getAllNetworksAsync(); } @@ -71132,13 +69902,13 @@ public interface INetworkService : NetworkServiceInterface, IDisposable ///
public interface IOrderService : OrderServiceInterface, IDisposable { - Google.Api.Ads.AdManager.v202311.Order[] createOrders(Google.Api.Ads.AdManager.v202311.Order[] orders); + Google.Api.Ads.AdManager.v202411.Order[] createOrders(Google.Api.Ads.AdManager.v202411.Order[] orders); - System.Threading.Tasks.Task createOrdersAsync(Google.Api.Ads.AdManager.v202311.Order[] orders); + System.Threading.Tasks.Task createOrdersAsync(Google.Api.Ads.AdManager.v202411.Order[] orders); - Google.Api.Ads.AdManager.v202311.Order[] updateOrders(Google.Api.Ads.AdManager.v202311.Order[] orders); + Google.Api.Ads.AdManager.v202411.Order[] updateOrders(Google.Api.Ads.AdManager.v202411.Order[] orders); - System.Threading.Tasks.Task updateOrdersAsync(Google.Api.Ads.AdManager.v202311.Order[] orders); + System.Threading.Tasks.Task updateOrdersAsync(Google.Api.Ads.AdManager.v202411.Order[] orders); } @@ -71151,13 +69921,13 @@ public interface IOrderService : OrderServiceInterface, IDisposable ///
public interface IPlacementService : PlacementServiceInterface, IDisposable { - Google.Api.Ads.AdManager.v202311.Placement[] createPlacements(Google.Api.Ads.AdManager.v202311.Placement[] placements); + Google.Api.Ads.AdManager.v202411.Placement[] createPlacements(Google.Api.Ads.AdManager.v202411.Placement[] placements); - System.Threading.Tasks.Task createPlacementsAsync(Google.Api.Ads.AdManager.v202311.Placement[] placements); + System.Threading.Tasks.Task createPlacementsAsync(Google.Api.Ads.AdManager.v202411.Placement[] placements); - Google.Api.Ads.AdManager.v202311.Placement[] updatePlacements(Google.Api.Ads.AdManager.v202311.Placement[] placements); + Google.Api.Ads.AdManager.v202411.Placement[] updatePlacements(Google.Api.Ads.AdManager.v202411.Placement[] placements); - System.Threading.Tasks.Task updatePlacementsAsync(Google.Api.Ads.AdManager.v202311.Placement[] placements); + System.Threading.Tasks.Task updatePlacementsAsync(Google.Api.Ads.AdManager.v202411.Placement[] placements); } @@ -71166,13 +69936,13 @@ public interface IPlacementService : PlacementServiceInterface, IDisposable ///
public interface IProposalService : ProposalServiceInterface, IDisposable { - Google.Api.Ads.AdManager.v202311.Proposal[] createProposals(Google.Api.Ads.AdManager.v202311.Proposal[] proposals); + Google.Api.Ads.AdManager.v202411.Proposal[] createProposals(Google.Api.Ads.AdManager.v202411.Proposal[] proposals); - System.Threading.Tasks.Task createProposalsAsync(Google.Api.Ads.AdManager.v202311.Proposal[] proposals); + System.Threading.Tasks.Task createProposalsAsync(Google.Api.Ads.AdManager.v202411.Proposal[] proposals); - Google.Api.Ads.AdManager.v202311.Proposal[] updateProposals(Google.Api.Ads.AdManager.v202311.Proposal[] proposals); + Google.Api.Ads.AdManager.v202411.Proposal[] updateProposals(Google.Api.Ads.AdManager.v202411.Proposal[] proposals); - System.Threading.Tasks.Task updateProposalsAsync(Google.Api.Ads.AdManager.v202311.Proposal[] proposals); + System.Threading.Tasks.Task updateProposalsAsync(Google.Api.Ads.AdManager.v202411.Proposal[] proposals); } @@ -71181,17 +69951,17 @@ public interface IProposalService : ProposalServiceInterface, IDisposable ///
public interface IProposalLineItemService : ProposalLineItemServiceInterface, IDisposable { - Google.Api.Ads.AdManager.v202311.ProposalLineItem[] createMakegoods(Google.Api.Ads.AdManager.v202311.ProposalLineItemMakegoodInfo[] makegoodInfos); + Google.Api.Ads.AdManager.v202411.ProposalLineItem[] createMakegoods(Google.Api.Ads.AdManager.v202411.ProposalLineItemMakegoodInfo[] makegoodInfos); - System.Threading.Tasks.Task createMakegoodsAsync(Google.Api.Ads.AdManager.v202311.ProposalLineItemMakegoodInfo[] makegoodInfos); + System.Threading.Tasks.Task createMakegoodsAsync(Google.Api.Ads.AdManager.v202411.ProposalLineItemMakegoodInfo[] makegoodInfos); - Google.Api.Ads.AdManager.v202311.ProposalLineItem[] createProposalLineItems(Google.Api.Ads.AdManager.v202311.ProposalLineItem[] proposalLineItems); + Google.Api.Ads.AdManager.v202411.ProposalLineItem[] createProposalLineItems(Google.Api.Ads.AdManager.v202411.ProposalLineItem[] proposalLineItems); - System.Threading.Tasks.Task createProposalLineItemsAsync(Google.Api.Ads.AdManager.v202311.ProposalLineItem[] proposalLineItems); + System.Threading.Tasks.Task createProposalLineItemsAsync(Google.Api.Ads.AdManager.v202411.ProposalLineItem[] proposalLineItems); - Google.Api.Ads.AdManager.v202311.ProposalLineItem[] updateProposalLineItems(Google.Api.Ads.AdManager.v202311.ProposalLineItem[] proposalLineItems); + Google.Api.Ads.AdManager.v202411.ProposalLineItem[] updateProposalLineItems(Google.Api.Ads.AdManager.v202411.ProposalLineItem[] proposalLineItems); - System.Threading.Tasks.Task updateProposalLineItemsAsync(Google.Api.Ads.AdManager.v202311.ProposalLineItem[] proposalLineItems); + System.Threading.Tasks.Task updateProposalLineItemsAsync(Google.Api.Ads.AdManager.v202411.ProposalLineItem[] proposalLineItems); } @@ -71287,9 +70057,7 @@ public interface IProposalLineItemService : ProposalLineItemServiceInterface, ID /// href='DeliveryRateType#EVENLY'>DeliveryRateType#EVENLY. Starting in v201306, /// it may default to DeliveryRateType#FRONTLOADED if - /// specifically configured to on the network. EndDateTime - /// Datetime The date and time on which the - /// LineItem stops serving. ExternalId + /// specifically configured to on the network. ExternalId /// Text An identifier for the LineItem that /// is meaningful to the publisher. Id /// Number Uniquely identifies the LineItem. @@ -71310,9 +70078,11 @@ public interface IProposalLineItemService : ProposalLineItemServiceInterface, ID /// LineItem. Name Text /// The name of the LineItem. OrderId /// Number The ID of the Order to - /// which the belongs. StartDateTime + /// which the belongs. ServingEndTime /// Datetime The date and time on which the - /// LineItem is enabled to begin serving. + /// LineItem stops serving, inclusive of any grace period. + /// StartDateTime Datetime The date and time + /// on which the LineItem is enabled to begin serving. /// Status Text The status of the /// LineItem. Targeting /// Targeting The targeting criteria for the ad @@ -71356,13 +70126,14 @@ public interface IProposalLineItemService : ProposalLineItemServiceInterface, ID /// buyer is allowed to negotiate Preferred Deals. /// EnabledForProgrammaticGuaranteed Boolean /// Whether the buyer is enabled for Programmatic Guaranteed deals. - /// Name Text Display name that references - /// the buyer. ParentId Number - /// The ID of the programmatic buyer's sponsor. If the programmatic buyer has no - /// sponsor, this field will be -1. PartnerClientId - /// Text ID used to represent Display & Video 360 - /// client buyer partner ID (if Display & Video 360) or Authorized Buyers client - /// buyer account ID.

IsAgency Boolean Whether the buyer is an + /// advertising agency. Name Text + /// Display name that references the buyer. ParentId + /// Number The ID of the programmatic buyer's sponsor. If + /// the programmatic buyer has no sponsor, this field will be -1. + /// PartnerClientId Text ID used to represent + /// Display & Video 360 client buyer partner ID (if Display & Video 360) or + /// Authorized Buyers client buyer account ID.

Audience_Segment_Category

/// /// /// - ///
Column name Type Description
IdNumber The unique identifier for the audience segment @@ -71425,15 +70196,15 @@ public interface IProposalLineItemService : ProposalLineItemServiceInterface, ID /// Number Parent ID of an Ad category. Only general /// categories have parents
Type TextType of an Ad category. Only general categories have children

rich_media_ad_company

- /// - /// - /// - /// - ///
Column name Type Description
CompanyGvlId Number IAB Global Vendor List ID - /// of a Rich Media Ad Company
GdprStatusText GDPR compliance status of a Rich Media Ad - /// Company. Indicates whether the company has been registered with Google as a - /// compliant company for GDPR.
IdNumber ID of a Rich Media Ad Company
Name Text Name of a Rich Media Ad + ///

rich_media_ad_company

The global + /// set of rich media ad companies that are known to Google. + /// + /// + ///
Column + /// name Type Description
CompanyGvlIdNumber IAB Global Vendor List ID of a Rich Media Ad + /// Company
GdprStatus Text GDPR + /// compliance status of a Rich Media Ad Company. Indicates whether the company has + /// been registered with Google as a compliant company for GDPR.
Id Number ID of a Rich Media Ad Company
Name Text Name of a Rich Media Ad /// Company
PolicyUrl Text Policy /// URL of a Rich Media Ad Company

mcm_earnings

Restriction: On each query, an expression @@ -71478,11 +70249,22 @@ public interface IProposalLineItemService : ProposalLineItemServiceInterface, ID /// Text The visibility of the LinkedDevice. ///

child_publisher

By default, child /// publishers are ordered by their ID. - /// - /// - /// + /// + /// + /// + /// + /// + /// /// /// /// /// /// - /// - ///
Column nameType Description
AccountStatusText The account status of the MCM child publisher's - /// Ad Manager network
AgreementStatusText Status of the delegation relationship between - /// parent and child.
Type Description
AddressVerificationExpirationTime DatetimeDate when the child publisher's address verification (mail PIN) will + /// expire.
AddressVerificationLastModifiedTimeDatetime The time of the last change in the child + /// publisher's address verification (mail PIN) process.
AddressVerificationStatus Text The address + /// verification (mail PIN) status of the child publisher's Ad Manager network. + /// Possible values are {$code EXEMPT}, {$code EXPIRED}, {$code FAILED}, {$code + /// PENDING}, {$code NOT_ELIGIBLE}, and {$code VERIFIED}.
ApprovalStatus Text The approval status of + /// the child publisher's Ad Manager network. Possible values are {$code APPROVED}, + /// {$code CLOSED_BY_PUBLISHER}, {$code CLOSED_INVALID_ACTIVITY}, {$code + /// CLOSED_POLICY_VIOLATION}, {$code DEACTIVATED_BY_AD_MANAGER}, {$code + /// DISAPPROVED_DUPLICATE_ACCOUNT}, {$code DISAPPROVED_INELIGIBLE}, and {$code + /// PENDING_GOOGLE_APPROVAL}.
ApprovedManageAccountRevshareMillipercent NumberThe approved revshare with the MCM child publisher
ChildNetworkAdExchangeEnabled Boolean Whether @@ -71494,52 +70276,38 @@ public interface IProposalLineItemService : ProposalLineItemServiceInterface, ID /// the proposed type otherwise.
EmailText The email of the MCM child publisher
Id Number The ID of the MCM child - /// publisher.
Name Text The name - /// of the MCM child publisher
OnboardingTasksSet of text The child publisher's pending onboarding - /// tasks. This will only be populated if the child publisher's - /// AccountStatus is PENDING_GOOGLE_APPROVAL.
SellerId Text The child publisher's - /// seller ID, as specified in the parent publisher's sellers.json file. This field - /// is only relevant for Manage Inventory child publishers.
+ /// publisher. IdentityVerificationLastModifiedTime + /// Datetime The time of the last change in the child + /// publisher's identity verification process. + /// IdentityVerificationStatus Text Status of the + /// child publisher's identity verification process. Possible values are {$code + /// EXEMPT}, {$code EXPIRED}, {$code FAILED}, {$code PENDING}, {$code NOT_ELIGIBLE}, + /// and {$code VERIFIED}. InvitationStatus + /// Text Status of the parent's invitation request to a + /// child publisher. Possible values are {$code ACCEPTED}, {$code EXPIRED}, {$code + /// PENDING}, {$code REJECTED}, and {$code WITHDRAWN}. Name + /// Text The name of the MCM child publisher + /// OnboardingTasks Set of text The child + /// publisher's pending onboarding tasks. This will only be populated if the child + /// publisher's AccountStatus is + /// PENDING_GOOGLE_APPROVAL. ReadinessStatus + /// Text Overall onboarding readiness of the child + /// publisher. Correlates with serving behavior, but does not include site-level + /// approval information. Possible values are {$code READY}, {$code NOT_READY}, and + /// {$code INACTIVE}. SellerId Text + /// The child publisher's seller ID, as specified in the parent publisher's + /// sellers.json file. This field is only relevant for Manage Inventory child + /// publishers.

content_label

+ /// + /// + ///
Column name Type Description
Id Number The ID of the Content Label
Label Text The name of the Content + /// Label
///
public interface IPublisherQueryLanguageService : PublisherQueryLanguageServiceInterface, IDisposable { } - /// Provides methods for creating, updating and retrieving AdRule objects.

Ad rules contain data that the ad server - /// uses to generate a playlist of video ads.

- ///
- public interface IAdRuleService : AdRuleServiceInterface, IDisposable - { - Google.Api.Ads.AdManager.v202311.AdRule[] createAdRules(Google.Api.Ads.AdManager.v202311.AdRule[] adRules); - - System.Threading.Tasks.Task createAdRulesAsync(Google.Api.Ads.AdManager.v202311.AdRule[] adRules); - - Google.Api.Ads.AdManager.v202311.AdSpot[] createAdSpots(Google.Api.Ads.AdManager.v202311.AdSpot[] adSpots); - - System.Threading.Tasks.Task createAdSpotsAsync(Google.Api.Ads.AdManager.v202311.AdSpot[] adSpots); - - Google.Api.Ads.AdManager.v202311.BreakTemplate[] createBreakTemplates(Google.Api.Ads.AdManager.v202311.BreakTemplate[] breakTemplate); - - System.Threading.Tasks.Task createBreakTemplatesAsync(Google.Api.Ads.AdManager.v202311.BreakTemplate[] breakTemplate); - - Google.Api.Ads.AdManager.v202311.AdRule[] updateAdRules(Google.Api.Ads.AdManager.v202311.AdRule[] adRules); - - System.Threading.Tasks.Task updateAdRulesAsync(Google.Api.Ads.AdManager.v202311.AdRule[] adRules); - - Google.Api.Ads.AdManager.v202311.AdSpot[] updateAdSpots(Google.Api.Ads.AdManager.v202311.AdSpot[] adSpots); - - System.Threading.Tasks.Task updateAdSpotsAsync(Google.Api.Ads.AdManager.v202311.AdSpot[] adSpots); - - Google.Api.Ads.AdManager.v202311.BreakTemplate[] updateBreakTemplates(Google.Api.Ads.AdManager.v202311.BreakTemplate[] breakTemplate); - - System.Threading.Tasks.Task updateBreakTemplatesAsync(Google.Api.Ads.AdManager.v202311.BreakTemplate[] breakTemplate); - } - - /// Provides methods for executing a ReportJob and /// retrieving performance and statistics about ad campaigns, networks, inventory /// and sales.

Follow the steps outlined below:

  • Create the @@ -71586,19 +70354,34 @@ public interface ISuggestedAdUnitService : SuggestedAdUnitServiceInterface, IDis } + /// Provides methods for creating, updating and retrieving DaiAuthenticationKey objects. + /// + public interface IDaiAuthenticationKeyService : DaiAuthenticationKeyServiceInterface, IDisposable + { + Google.Api.Ads.AdManager.v202411.DaiAuthenticationKey[] createDaiAuthenticationKeys(Google.Api.Ads.AdManager.v202411.DaiAuthenticationKey[] daiAuthenticationKeys); + + System.Threading.Tasks.Task createDaiAuthenticationKeysAsync(Google.Api.Ads.AdManager.v202411.DaiAuthenticationKey[] daiAuthenticationKeys); + + Google.Api.Ads.AdManager.v202411.DaiAuthenticationKey[] updateDaiAuthenticationKeys(Google.Api.Ads.AdManager.v202411.DaiAuthenticationKey[] daiAuthenticationKeys); + + System.Threading.Tasks.Task updateDaiAuthenticationKeysAsync(Google.Api.Ads.AdManager.v202411.DaiAuthenticationKey[] daiAuthenticationKeys); + } + + /// Provides methods for creating, updating, and retrieving Team /// objects.

    Teams are used to group users in order to define access to entities /// such as companies, inventory and orders.

    ///
    public interface ITeamService : TeamServiceInterface, IDisposable { - Google.Api.Ads.AdManager.v202311.Team[] createTeams(Google.Api.Ads.AdManager.v202311.Team[] teams); + Google.Api.Ads.AdManager.v202411.Team[] createTeams(Google.Api.Ads.AdManager.v202411.Team[] teams); - System.Threading.Tasks.Task createTeamsAsync(Google.Api.Ads.AdManager.v202311.Team[] teams); + System.Threading.Tasks.Task createTeamsAsync(Google.Api.Ads.AdManager.v202411.Team[] teams); - Google.Api.Ads.AdManager.v202311.Team[] updateTeams(Google.Api.Ads.AdManager.v202311.Team[] teams); + Google.Api.Ads.AdManager.v202411.Team[] updateTeams(Google.Api.Ads.AdManager.v202411.Team[] teams); - System.Threading.Tasks.Task updateTeamsAsync(Google.Api.Ads.AdManager.v202311.Team[] teams); + System.Threading.Tasks.Task updateTeamsAsync(Google.Api.Ads.AdManager.v202411.Team[] teams); } @@ -71610,17 +70393,17 @@ public interface ITeamService : TeamServiceInterface, IDisposable ///
public interface IUserService : UserServiceInterface, IDisposable { - Google.Api.Ads.AdManager.v202311.User[] createUsers(Google.Api.Ads.AdManager.v202311.User[] users); + Google.Api.Ads.AdManager.v202411.User[] createUsers(Google.Api.Ads.AdManager.v202411.User[] users); - System.Threading.Tasks.Task createUsersAsync(Google.Api.Ads.AdManager.v202311.User[] users); + System.Threading.Tasks.Task createUsersAsync(Google.Api.Ads.AdManager.v202411.User[] users); - Google.Api.Ads.AdManager.v202311.Role[] getAllRoles(); + Google.Api.Ads.AdManager.v202411.Role[] getAllRoles(); - System.Threading.Tasks.Task getAllRolesAsync(); + System.Threading.Tasks.Task getAllRolesAsync(); - Google.Api.Ads.AdManager.v202311.User[] updateUsers(Google.Api.Ads.AdManager.v202311.User[] users); + Google.Api.Ads.AdManager.v202411.User[] updateUsers(Google.Api.Ads.AdManager.v202411.User[] users); - System.Threading.Tasks.Task updateUsersAsync(Google.Api.Ads.AdManager.v202311.User[] users); + System.Threading.Tasks.Task updateUsersAsync(Google.Api.Ads.AdManager.v202411.User[] users); } @@ -71632,13 +70415,13 @@ public interface IUserService : UserServiceInterface, IDisposable ///
public interface IUserTeamAssociationService : UserTeamAssociationServiceInterface, IDisposable { - Google.Api.Ads.AdManager.v202311.UserTeamAssociation[] createUserTeamAssociations(Google.Api.Ads.AdManager.v202311.UserTeamAssociation[] userTeamAssociations); + Google.Api.Ads.AdManager.v202411.UserTeamAssociation[] createUserTeamAssociations(Google.Api.Ads.AdManager.v202411.UserTeamAssociation[] userTeamAssociations); - System.Threading.Tasks.Task createUserTeamAssociationsAsync(Google.Api.Ads.AdManager.v202311.UserTeamAssociation[] userTeamAssociations); + System.Threading.Tasks.Task createUserTeamAssociationsAsync(Google.Api.Ads.AdManager.v202411.UserTeamAssociation[] userTeamAssociations); - Google.Api.Ads.AdManager.v202311.UserTeamAssociation[] updateUserTeamAssociations(Google.Api.Ads.AdManager.v202311.UserTeamAssociation[] userTeamAssociations); + Google.Api.Ads.AdManager.v202411.UserTeamAssociation[] updateUserTeamAssociations(Google.Api.Ads.AdManager.v202411.UserTeamAssociation[] userTeamAssociations); - System.Threading.Tasks.Task updateUserTeamAssociationsAsync(Google.Api.Ads.AdManager.v202311.UserTeamAssociation[] userTeamAssociations); + System.Threading.Tasks.Task updateUserTeamAssociationsAsync(Google.Api.Ads.AdManager.v202411.UserTeamAssociation[] userTeamAssociations); } @@ -71647,13 +70430,13 @@ public interface IUserTeamAssociationService : UserTeamAssociationServiceInterfa ///
public interface INativeStyleService : NativeStyleServiceInterface, IDisposable { - Google.Api.Ads.AdManager.v202311.NativeStyle[] createNativeStyles(Google.Api.Ads.AdManager.v202311.NativeStyle[] nativeStyles); + Google.Api.Ads.AdManager.v202411.NativeStyle[] createNativeStyles(Google.Api.Ads.AdManager.v202411.NativeStyle[] nativeStyles); - System.Threading.Tasks.Task createNativeStylesAsync(Google.Api.Ads.AdManager.v202311.NativeStyle[] nativeStyles); + System.Threading.Tasks.Task createNativeStylesAsync(Google.Api.Ads.AdManager.v202411.NativeStyle[] nativeStyles); - Google.Api.Ads.AdManager.v202311.NativeStyle[] updateNativeStyles(Google.Api.Ads.AdManager.v202311.NativeStyle[] nativeStyles); + Google.Api.Ads.AdManager.v202411.NativeStyle[] updateNativeStyles(Google.Api.Ads.AdManager.v202411.NativeStyle[] nativeStyles); - System.Threading.Tasks.Task updateNativeStylesAsync(Google.Api.Ads.AdManager.v202311.NativeStyle[] nativeStyles); + System.Threading.Tasks.Task updateNativeStylesAsync(Google.Api.Ads.AdManager.v202411.NativeStyle[] nativeStyles); } @@ -71666,21 +70449,21 @@ public interface INativeStyleService : NativeStyleServiceInterface, IDisposable ///
public interface IAdjustmentService : AdjustmentServiceInterface, IDisposable { - Google.Api.Ads.AdManager.v202311.ForecastAdjustment[] createForecastAdjustments(Google.Api.Ads.AdManager.v202311.ForecastAdjustment[] forecastAdjustments); + Google.Api.Ads.AdManager.v202411.ForecastAdjustment[] createForecastAdjustments(Google.Api.Ads.AdManager.v202411.ForecastAdjustment[] forecastAdjustments); - System.Threading.Tasks.Task createForecastAdjustmentsAsync(Google.Api.Ads.AdManager.v202311.ForecastAdjustment[] forecastAdjustments); + System.Threading.Tasks.Task createForecastAdjustmentsAsync(Google.Api.Ads.AdManager.v202411.ForecastAdjustment[] forecastAdjustments); - Google.Api.Ads.AdManager.v202311.TrafficForecastSegment[] createTrafficForecastSegments(Google.Api.Ads.AdManager.v202311.TrafficForecastSegment[] trafficForecastSegments); + Google.Api.Ads.AdManager.v202411.TrafficForecastSegment[] createTrafficForecastSegments(Google.Api.Ads.AdManager.v202411.TrafficForecastSegment[] trafficForecastSegments); - System.Threading.Tasks.Task createTrafficForecastSegmentsAsync(Google.Api.Ads.AdManager.v202311.TrafficForecastSegment[] trafficForecastSegments); + System.Threading.Tasks.Task createTrafficForecastSegmentsAsync(Google.Api.Ads.AdManager.v202411.TrafficForecastSegment[] trafficForecastSegments); - Google.Api.Ads.AdManager.v202311.ForecastAdjustment[] updateForecastAdjustments(Google.Api.Ads.AdManager.v202311.ForecastAdjustment[] forecastAdjustments); + Google.Api.Ads.AdManager.v202411.ForecastAdjustment[] updateForecastAdjustments(Google.Api.Ads.AdManager.v202411.ForecastAdjustment[] forecastAdjustments); - System.Threading.Tasks.Task updateForecastAdjustmentsAsync(Google.Api.Ads.AdManager.v202311.ForecastAdjustment[] forecastAdjustments); + System.Threading.Tasks.Task updateForecastAdjustmentsAsync(Google.Api.Ads.AdManager.v202411.ForecastAdjustment[] forecastAdjustments); - Google.Api.Ads.AdManager.v202311.TrafficForecastSegment[] updateTrafficForecastSegments(Google.Api.Ads.AdManager.v202311.TrafficForecastSegment[] trafficForecastSegments); + Google.Api.Ads.AdManager.v202411.TrafficForecastSegment[] updateTrafficForecastSegments(Google.Api.Ads.AdManager.v202411.TrafficForecastSegment[] trafficForecastSegments); - System.Threading.Tasks.Task updateTrafficForecastSegmentsAsync(Google.Api.Ads.AdManager.v202311.TrafficForecastSegment[] trafficForecastSegments); + System.Threading.Tasks.Task updateTrafficForecastSegmentsAsync(Google.Api.Ads.AdManager.v202411.TrafficForecastSegment[] trafficForecastSegments); } @@ -71697,34 +70480,21 @@ public interface ICmsMetadataService : CmsMetadataServiceInterface, IDisposable ///
public interface ITargetingPresetService : TargetingPresetServiceInterface, IDisposable { - } - - - public interface ICreativeReviewService : CreativeReviewServiceInterface, IDisposable - { - } - - - /// Provides methods for creating, updating and retrieving Contact objects. - /// - public interface IContactService : ContactServiceInterface, IDisposable - { - Google.Api.Ads.AdManager.v202311.Contact[] createContacts(Google.Api.Ads.AdManager.v202311.Contact[] contacts); + Google.Api.Ads.AdManager.v202411.TargetingPreset[] createTargetingPresets(Google.Api.Ads.AdManager.v202411.TargetingPreset[] targetingPresets); - System.Threading.Tasks.Task createContactsAsync(Google.Api.Ads.AdManager.v202311.Contact[] contacts); + System.Threading.Tasks.Task createTargetingPresetsAsync(Google.Api.Ads.AdManager.v202411.TargetingPreset[] targetingPresets); - Google.Api.Ads.AdManager.v202311.Contact[] updateContacts(Google.Api.Ads.AdManager.v202311.Contact[] contacts); + Google.Api.Ads.AdManager.v202411.TargetingPreset[] updateTargetingPresets(Google.Api.Ads.AdManager.v202411.TargetingPreset[] targetingPresets); - System.Threading.Tasks.Task updateContactsAsync(Google.Api.Ads.AdManager.v202311.Contact[] contacts); + System.Threading.Tasks.Task updateTargetingPresetsAsync(Google.Api.Ads.AdManager.v202411.TargetingPreset[] targetingPresets); } public interface IStreamActivityMonitorService : StreamActivityMonitorServiceInterface, IDisposable { - Google.Api.Ads.AdManager.v202311.SamSession[] getSamSessionsByStatement(Google.Api.Ads.AdManager.v202311.Statement statement); + Google.Api.Ads.AdManager.v202411.SamSession[] getSamSessionsByStatement(Google.Api.Ads.AdManager.v202411.Statement statement); - System.Threading.Tasks.Task getSamSessionsByStatementAsync(Google.Api.Ads.AdManager.v202311.Statement statement); + System.Threading.Tasks.Task getSamSessionsByStatementAsync(Google.Api.Ads.AdManager.v202411.Statement statement); string[] registerSessionsForMonitoring(string[] sessionIds); @@ -71739,83 +70509,73 @@ public interface IStreamActivityMonitorService : StreamActivityMonitorServiceInt ///
public interface IDaiEncodingProfileService : DaiEncodingProfileServiceInterface, IDisposable { - Google.Api.Ads.AdManager.v202311.DaiEncodingProfile[] createDaiEncodingProfiles(Google.Api.Ads.AdManager.v202311.DaiEncodingProfile[] daiEncodingProfiles); + Google.Api.Ads.AdManager.v202411.DaiEncodingProfile[] createDaiEncodingProfiles(Google.Api.Ads.AdManager.v202411.DaiEncodingProfile[] daiEncodingProfiles); - System.Threading.Tasks.Task createDaiEncodingProfilesAsync(Google.Api.Ads.AdManager.v202311.DaiEncodingProfile[] daiEncodingProfiles); + System.Threading.Tasks.Task createDaiEncodingProfilesAsync(Google.Api.Ads.AdManager.v202411.DaiEncodingProfile[] daiEncodingProfiles); - Google.Api.Ads.AdManager.v202311.DaiEncodingProfile[] updateDaiEncodingProfiles(Google.Api.Ads.AdManager.v202311.DaiEncodingProfile[] daiEncodingProfiles); + Google.Api.Ads.AdManager.v202411.DaiEncodingProfile[] updateDaiEncodingProfiles(Google.Api.Ads.AdManager.v202411.DaiEncodingProfile[] daiEncodingProfiles); - System.Threading.Tasks.Task updateDaiEncodingProfilesAsync(Google.Api.Ads.AdManager.v202311.DaiEncodingProfile[] daiEncodingProfiles); + System.Threading.Tasks.Task updateDaiEncodingProfilesAsync(Google.Api.Ads.AdManager.v202411.DaiEncodingProfile[] daiEncodingProfiles); } public interface ISiteService : SiteServiceInterface, IDisposable { - Google.Api.Ads.AdManager.v202311.Site[] createSites(Google.Api.Ads.AdManager.v202311.Site[] sites); + Google.Api.Ads.AdManager.v202411.Site[] createSites(Google.Api.Ads.AdManager.v202411.Site[] sites); - System.Threading.Tasks.Task createSitesAsync(Google.Api.Ads.AdManager.v202311.Site[] sites); + System.Threading.Tasks.Task createSitesAsync(Google.Api.Ads.AdManager.v202411.Site[] sites); - Google.Api.Ads.AdManager.v202311.Site[] updateSites(Google.Api.Ads.AdManager.v202311.Site[] sites); + Google.Api.Ads.AdManager.v202411.Site[] updateSites(Google.Api.Ads.AdManager.v202411.Site[] sites); - System.Threading.Tasks.Task updateSitesAsync(Google.Api.Ads.AdManager.v202311.Site[] sites); + System.Threading.Tasks.Task updateSitesAsync(Google.Api.Ads.AdManager.v202411.Site[] sites); } - public interface IYieldGroupService : YieldGroupServiceInterface, IDisposable + /// Provides operations for creating, updating and retrieving AudienceSegment objects. + /// + public interface IAudienceSegmentService : AudienceSegmentServiceInterface, IDisposable { - Google.Api.Ads.AdManager.v202311.YieldGroup[] createYieldGroups(Google.Api.Ads.AdManager.v202311.YieldGroup[] yieldGroups); - - System.Threading.Tasks.Task createYieldGroupsAsync(Google.Api.Ads.AdManager.v202311.YieldGroup[] yieldGroups); + Google.Api.Ads.AdManager.v202411.FirstPartyAudienceSegment[] createAudienceSegments(Google.Api.Ads.AdManager.v202411.FirstPartyAudienceSegment[] segments); - Google.Api.Ads.AdManager.v202311.YieldPartner[] getYieldPartners(); + System.Threading.Tasks.Task createAudienceSegmentsAsync(Google.Api.Ads.AdManager.v202411.FirstPartyAudienceSegment[] segments); - System.Threading.Tasks.Task getYieldPartnersAsync(); + Google.Api.Ads.AdManager.v202411.FirstPartyAudienceSegment[] updateAudienceSegments(Google.Api.Ads.AdManager.v202411.FirstPartyAudienceSegment[] segments); - Google.Api.Ads.AdManager.v202311.YieldGroup[] updateYieldGroups(Google.Api.Ads.AdManager.v202311.YieldGroup[] yieldGroups); - - System.Threading.Tasks.Task updateYieldGroupsAsync(Google.Api.Ads.AdManager.v202311.YieldGroup[] yieldGroups); + System.Threading.Tasks.Task updateAudienceSegmentsAsync(Google.Api.Ads.AdManager.v202411.FirstPartyAudienceSegment[] segments); } - public interface ISegmentPopulationService : SegmentPopulationServiceInterface, IDisposable + public interface IYieldGroupService : YieldGroupServiceInterface, IDisposable { - Google.Api.Ads.AdManager.v202311.SegmentPopulationResults[] getSegmentPopulationResultsByIds(long[] batchUploadIds); + Google.Api.Ads.AdManager.v202411.YieldGroup[] createYieldGroups(Google.Api.Ads.AdManager.v202411.YieldGroup[] yieldGroups); + + System.Threading.Tasks.Task createYieldGroupsAsync(Google.Api.Ads.AdManager.v202411.YieldGroup[] yieldGroups); - System.Threading.Tasks.Task getSegmentPopulationResultsByIdsAsync(long[] batchUploadIds); + Google.Api.Ads.AdManager.v202411.YieldPartner[] getYieldPartners(); - Google.Api.Ads.AdManager.v202311.UpdateResult performSegmentPopulationAction(Google.Api.Ads.AdManager.v202311.SegmentPopulationAction action, long[] batchUploadIds); + System.Threading.Tasks.Task getYieldPartnersAsync(); - System.Threading.Tasks.Task performSegmentPopulationActionAsync(Google.Api.Ads.AdManager.v202311.SegmentPopulationAction action, long[] batchUploadIds); + Google.Api.Ads.AdManager.v202411.YieldGroup[] updateYieldGroups(Google.Api.Ads.AdManager.v202411.YieldGroup[] yieldGroups); + + System.Threading.Tasks.Task updateYieldGroupsAsync(Google.Api.Ads.AdManager.v202411.YieldGroup[] yieldGroups); } - /// Provides methods for creating, updating and retrieving DaiAuthenticationKey objects. - /// - public interface IDaiAuthenticationKeyService : DaiAuthenticationKeyServiceInterface, IDisposable + public interface ISegmentPopulationService : SegmentPopulationServiceInterface, IDisposable { - Google.Api.Ads.AdManager.v202311.DaiAuthenticationKey[] createDaiAuthenticationKeys(Google.Api.Ads.AdManager.v202311.DaiAuthenticationKey[] daiAuthenticationKeys); + Google.Api.Ads.AdManager.v202411.SegmentPopulationResults[] getSegmentPopulationResultsByIds(long[] batchUploadIds); - System.Threading.Tasks.Task createDaiAuthenticationKeysAsync(Google.Api.Ads.AdManager.v202311.DaiAuthenticationKey[] daiAuthenticationKeys); + System.Threading.Tasks.Task getSegmentPopulationResultsByIdsAsync(long[] batchUploadIds); - Google.Api.Ads.AdManager.v202311.DaiAuthenticationKey[] updateDaiAuthenticationKeys(Google.Api.Ads.AdManager.v202311.DaiAuthenticationKey[] daiAuthenticationKeys); + Google.Api.Ads.AdManager.v202411.UpdateResult performSegmentPopulationAction(Google.Api.Ads.AdManager.v202411.SegmentPopulationAction action, long[] batchUploadIds); - System.Threading.Tasks.Task updateDaiAuthenticationKeysAsync(Google.Api.Ads.AdManager.v202311.DaiAuthenticationKey[] daiAuthenticationKeys); + System.Threading.Tasks.Task performSegmentPopulationActionAsync(Google.Api.Ads.AdManager.v202411.SegmentPopulationAction action, long[] batchUploadIds); } - /// Provides operations for creating, updating and retrieving AudienceSegment objects. - /// - public interface IAudienceSegmentService : AudienceSegmentServiceInterface, IDisposable + public interface IAdsTxtService : AdsTxtServiceInterface, IDisposable { - Google.Api.Ads.AdManager.v202311.FirstPartyAudienceSegment[] createAudienceSegments(Google.Api.Ads.AdManager.v202311.FirstPartyAudienceSegment[] segments); - - System.Threading.Tasks.Task createAudienceSegmentsAsync(Google.Api.Ads.AdManager.v202311.FirstPartyAudienceSegment[] segments); - - Google.Api.Ads.AdManager.v202311.FirstPartyAudienceSegment[] updateAudienceSegments(Google.Api.Ads.AdManager.v202311.FirstPartyAudienceSegment[] segments); - - System.Threading.Tasks.Task updateAudienceSegmentsAsync(Google.Api.Ads.AdManager.v202311.FirstPartyAudienceSegment[] segments); } @@ -71824,13 +70584,13 @@ public interface IAudienceSegmentService : AudienceSegmentServiceInterface, IDis ///
public interface ICdnConfigurationService : CdnConfigurationServiceInterface, IDisposable { - Google.Api.Ads.AdManager.v202311.CdnConfiguration[] createCdnConfigurations(Google.Api.Ads.AdManager.v202311.CdnConfiguration[] cdnConfigurations); + Google.Api.Ads.AdManager.v202411.CdnConfiguration[] createCdnConfigurations(Google.Api.Ads.AdManager.v202411.CdnConfiguration[] cdnConfigurations); - System.Threading.Tasks.Task createCdnConfigurationsAsync(Google.Api.Ads.AdManager.v202311.CdnConfiguration[] cdnConfigurations); + System.Threading.Tasks.Task createCdnConfigurationsAsync(Google.Api.Ads.AdManager.v202411.CdnConfiguration[] cdnConfigurations); - Google.Api.Ads.AdManager.v202311.CdnConfiguration[] updateCdnConfigurations(Google.Api.Ads.AdManager.v202311.CdnConfiguration[] cdnConfigurations); + Google.Api.Ads.AdManager.v202411.CdnConfiguration[] updateCdnConfigurations(Google.Api.Ads.AdManager.v202411.CdnConfiguration[] cdnConfigurations); - System.Threading.Tasks.Task updateCdnConfigurationsAsync(Google.Api.Ads.AdManager.v202311.CdnConfiguration[] cdnConfigurations); + System.Threading.Tasks.Task updateCdnConfigurationsAsync(Google.Api.Ads.AdManager.v202411.CdnConfiguration[] cdnConfigurations); } @@ -71839,13 +70599,13 @@ public interface ICdnConfigurationService : CdnConfigurationServiceInterface, ID ///
public interface ICompanyService : CompanyServiceInterface, IDisposable { - Google.Api.Ads.AdManager.v202311.Company[] createCompanies(Google.Api.Ads.AdManager.v202311.Company[] companies); + Google.Api.Ads.AdManager.v202411.Company[] createCompanies(Google.Api.Ads.AdManager.v202411.Company[] companies); - System.Threading.Tasks.Task createCompaniesAsync(Google.Api.Ads.AdManager.v202311.Company[] companies); + System.Threading.Tasks.Task createCompaniesAsync(Google.Api.Ads.AdManager.v202411.Company[] companies); - Google.Api.Ads.AdManager.v202311.Company[] updateCompanies(Google.Api.Ads.AdManager.v202311.Company[] companies); + Google.Api.Ads.AdManager.v202411.Company[] updateCompanies(Google.Api.Ads.AdManager.v202411.Company[] companies); - System.Threading.Tasks.Task updateCompaniesAsync(Google.Api.Ads.AdManager.v202311.Company[] companies); + System.Threading.Tasks.Task updateCompaniesAsync(Google.Api.Ads.AdManager.v202411.Company[] companies); } @@ -71856,13 +70616,13 @@ public interface ICompanyService : CompanyServiceInterface, IDisposable ///
public interface IContentBundleService : ContentBundleServiceInterface, IDisposable { - Google.Api.Ads.AdManager.v202311.ContentBundle[] createContentBundles(Google.Api.Ads.AdManager.v202311.ContentBundle[] contentBundles); + Google.Api.Ads.AdManager.v202411.ContentBundle[] createContentBundles(Google.Api.Ads.AdManager.v202411.ContentBundle[] contentBundles); - System.Threading.Tasks.Task createContentBundlesAsync(Google.Api.Ads.AdManager.v202311.ContentBundle[] contentBundles); + System.Threading.Tasks.Task createContentBundlesAsync(Google.Api.Ads.AdManager.v202411.ContentBundle[] contentBundles); - Google.Api.Ads.AdManager.v202311.ContentBundle[] updateContentBundles(Google.Api.Ads.AdManager.v202311.ContentBundle[] contentBundles); + Google.Api.Ads.AdManager.v202411.ContentBundle[] updateContentBundles(Google.Api.Ads.AdManager.v202411.ContentBundle[] contentBundles); - System.Threading.Tasks.Task updateContentBundlesAsync(Google.Api.Ads.AdManager.v202311.ContentBundle[] contentBundles); + System.Threading.Tasks.Task updateContentBundlesAsync(Google.Api.Ads.AdManager.v202411.ContentBundle[] contentBundles); } @@ -71872,6 +70632,33 @@ public interface IContentBundleService : ContentBundleServiceInterface, IDisposa public interface IContentService : ContentServiceInterface, IDisposable { } + + + /// Provides methods for adding, updating and retrieving Creative objects.

For a creative to run, it must be + /// associated with a LineItem managed by the LineItemCreativeAssociationService.

Read more about creatives + /// on the Ad Manager + /// Help Center.

+ ///
+ public interface ICreativeService : CreativeServiceInterface, IDisposable + { + Google.Api.Ads.AdManager.v202411.Creative[] createCreatives(Google.Api.Ads.AdManager.v202411.Creative[] creatives); + + System.Threading.Tasks.Task createCreativesAsync(Google.Api.Ads.AdManager.v202411.Creative[] creatives); + + Google.Api.Ads.AdManager.v202411.Creative[] updateCreatives(Google.Api.Ads.AdManager.v202411.Creative[] creatives); + + System.Threading.Tasks.Task updateCreativesAsync(Google.Api.Ads.AdManager.v202411.Creative[] creatives); + } + + + /// Provides methods for adding, updating and retrieving CreativeSet objects. + /// + public interface ICreativeSetService : CreativeSetServiceInterface, IDisposable + { + } } #pragma warning restore 1570 #pragma warning restore 1591 diff --git a/src/AdManager/v202311/AdManagerServiceV202311.cs b/src/AdManager/v202411/AdManagerServiceV202411.cs similarity index 69% rename from src/AdManager/v202311/AdManagerServiceV202311.cs rename to src/AdManager/v202411/AdManagerServiceV202411.cs index 3ba2ec0e22f..2d72fbfdc09 100644 --- a/src/AdManager/v202311/AdManagerServiceV202311.cs +++ b/src/AdManager/v202411/AdManagerServiceV202411.cs @@ -26,368 +26,351 @@ namespace Google.Api.Ads.AdManager.Lib public partial class AdManagerService : AdsService { /// - /// All the services available in v202311. + /// All the services available in v202411. /// - public class v202311 + public class v202411 { /// - /// See + /// See /// this page for details. /// - public static readonly ServiceSignature ActivityGroupService; - - /// - /// See - /// this page for details. - /// - public static readonly ServiceSignature ActivityService; + public static readonly ServiceSignature AdjustmentService; /// - /// See + /// See /// this page for details. /// - public static readonly ServiceSignature AdjustmentService; + public static readonly ServiceSignature AdRuleService; /// - /// See + /// See /// this page for details. /// - public static readonly ServiceSignature AdRuleService; + public static readonly ServiceSignature AdsTxtService; /// - /// See + /// See /// this page for details. /// public static readonly ServiceSignature AudienceSegmentService; /// - /// See + /// See /// this page for details. /// public static readonly ServiceSignature CdnConfigurationService; /// - /// See + /// See /// this page for details. /// public static readonly ServiceSignature CmsMetadataService; /// - /// See + /// See /// this page for details. /// public static readonly ServiceSignature ContactService; /// - /// See + /// See /// this page for details. /// public static readonly ServiceSignature CompanyService; /// - /// See + /// See /// this page for details. /// public static readonly ServiceSignature ContentBundleService; /// - /// See + /// See /// this page for details. /// public static readonly ServiceSignature ContentService; /// - /// See + /// See /// this page for details. /// public static readonly ServiceSignature CreativeService; /// - /// See - /// this page for details. - /// - public static readonly ServiceSignature CreativeReviewService; - - /// - /// See + /// See /// this page for details. /// public static readonly ServiceSignature CreativeSetService; /// - /// See + /// See /// this page for details. /// public static readonly ServiceSignature CreativeTemplateService; /// - /// See + /// See /// this page for details. /// public static readonly ServiceSignature CreativeWrapperService; /// - /// See + /// See /// this page for details. /// public static readonly ServiceSignature CustomFieldService; /// - /// See + /// See /// this page for details. /// public static readonly ServiceSignature CustomTargetingService; /// - /// See + /// See /// this page for details. /// public static readonly ServiceSignature DaiAuthenticationKeyService; /// - /// See + /// See /// this page for details. /// public static readonly ServiceSignature DaiEncodingProfileService; /// - /// See + /// See /// this page for details. /// public static readonly ServiceSignature ForecastService; /// - /// See + /// See /// this page for details. /// public static readonly ServiceSignature InventoryService; /// - /// See + /// See /// this page for details. /// public static readonly ServiceSignature LabelService; /// - /// See + /// See /// this page for details. /// public static readonly ServiceSignature LineItemTemplateService; /// - /// See + /// See /// this page for details. /// public static readonly ServiceSignature LineItemService; /// - /// See + /// See /// this page for details. /// public static readonly ServiceSignature LineItemCreativeAssociationService; /// - /// See + /// See /// this page for details. /// public static readonly ServiceSignature LiveStreamEventService; /// - /// See + /// See /// this page for details. /// public static readonly ServiceSignature MobileApplicationService; /// - /// See + /// See /// this page for details. /// public static readonly ServiceSignature NativeStyleService; /// - /// See + /// See /// this page for details. /// public static readonly ServiceSignature NetworkService; /// - /// See + /// See /// this page for details. /// public static readonly ServiceSignature OrderService; /// - /// See + /// See /// this page for details. /// public static readonly ServiceSignature PlacementService; /// - /// See + /// See /// this page for details. /// public static readonly ServiceSignature ProposalService; /// - /// See + /// See /// this page for details. /// public static readonly ServiceSignature ProposalLineItemService; /// - /// See + /// See /// this page for details. /// public static readonly ServiceSignature PublisherQueryLanguageService; /// - /// See + /// See /// this page for details. /// public static readonly ServiceSignature ReportService; /// - /// See + /// See /// this page for details. /// public static readonly ServiceSignature SegmentPopulationService; /// - /// See + /// See /// this page for details. /// public static readonly ServiceSignature SiteService; /// - /// See + /// See /// this page for details. /// public static readonly ServiceSignature StreamActivityMonitorService; /// - /// See + /// See /// this page for details. /// public static readonly ServiceSignature SuggestedAdUnitService; /// - /// See + /// See /// this page for details. /// public static readonly ServiceSignature TargetingPresetService; /// - /// See + /// See /// this page for details. /// public static readonly ServiceSignature TeamService; /// - /// See + /// See /// this page for details. /// public static readonly ServiceSignature UserService; /// - /// See + /// See /// this page for details. /// public static readonly ServiceSignature UserTeamAssociationService; /// - /// See + /// See /// this page for details. /// public static readonly ServiceSignature YieldGroupService; /// - /// Factory type for v202311 services. + /// Factory type for v202411 services. /// public static readonly Type factoryType = typeof(AdManagerServiceFactory); /// /// Static constructor to initialize the service constants. /// - static v202311() + static v202411() { - ActivityGroupService = - AdManagerService.MakeServiceSignature("v202311", "ActivityGroupService"); - ActivityService = - AdManagerService.MakeServiceSignature("v202311", "ActivityService"); AdjustmentService = - AdManagerService.MakeServiceSignature("v202311", "AdjustmentService"); - AdRuleService = AdManagerService.MakeServiceSignature("v202311", "AdRuleService"); + AdManagerService.MakeServiceSignature("v202411", "AdjustmentService"); + AdRuleService = AdManagerService.MakeServiceSignature("v202411", "AdRuleService"); + AdsTxtService = AdManagerService.MakeServiceSignature("v202411", "AdsTxtService"); AudienceSegmentService = - AdManagerService.MakeServiceSignature("v202311", "AudienceSegmentService"); + AdManagerService.MakeServiceSignature("v202411", "AudienceSegmentService"); CdnConfigurationService = - AdManagerService.MakeServiceSignature("v202311", "CdnConfigurationService"); + AdManagerService.MakeServiceSignature("v202411", "CdnConfigurationService"); CmsMetadataService = - AdManagerService.MakeServiceSignature("v202311", "CmsMetadataService"); - CompanyService = AdManagerService.MakeServiceSignature("v202311", "CompanyService"); - ContactService = AdManagerService.MakeServiceSignature("v202311", "ContactService"); + AdManagerService.MakeServiceSignature("v202411", "CmsMetadataService"); + CompanyService = AdManagerService.MakeServiceSignature("v202411", "CompanyService"); + ContactService = AdManagerService.MakeServiceSignature("v202411", "ContactService"); ContentBundleService = - AdManagerService.MakeServiceSignature("v202311", "ContentBundleService"); - ContentService = AdManagerService.MakeServiceSignature("v202311", "ContentService"); + AdManagerService.MakeServiceSignature("v202411", "ContentBundleService"); + ContentService = AdManagerService.MakeServiceSignature("v202411", "ContentService"); CreativeService = - AdManagerService.MakeServiceSignature("v202311", "CreativeService"); - CreativeReviewService = - AdManagerService.MakeServiceSignature("v202311", "CreativeReviewService"); + AdManagerService.MakeServiceSignature("v202411", "CreativeService"); CreativeSetService = - AdManagerService.MakeServiceSignature("v202311", "CreativeSetService"); + AdManagerService.MakeServiceSignature("v202411", "CreativeSetService"); CreativeTemplateService = - AdManagerService.MakeServiceSignature("v202311", "CreativeTemplateService"); + AdManagerService.MakeServiceSignature("v202411", "CreativeTemplateService"); CreativeWrapperService = - AdManagerService.MakeServiceSignature("v202311", "CreativeWrapperService"); + AdManagerService.MakeServiceSignature("v202411", "CreativeWrapperService"); CustomTargetingService = - AdManagerService.MakeServiceSignature("v202311", "CustomTargetingService"); + AdManagerService.MakeServiceSignature("v202411", "CustomTargetingService"); CustomFieldService = - AdManagerService.MakeServiceSignature("v202311", "CustomFieldService"); + AdManagerService.MakeServiceSignature("v202411", "CustomFieldService"); DaiAuthenticationKeyService = - AdManagerService.MakeServiceSignature("v202311", "DaiAuthenticationKeyService"); + AdManagerService.MakeServiceSignature("v202411", "DaiAuthenticationKeyService"); DaiEncodingProfileService = - AdManagerService.MakeServiceSignature("v202311", "DaiEncodingProfileService"); + AdManagerService.MakeServiceSignature("v202411", "DaiEncodingProfileService"); ForecastService = - AdManagerService.MakeServiceSignature("v202311", "ForecastService"); + AdManagerService.MakeServiceSignature("v202411", "ForecastService"); InventoryService = - AdManagerService.MakeServiceSignature("v202311", "InventoryService"); - LabelService = AdManagerService.MakeServiceSignature("v202311", "LabelService"); + AdManagerService.MakeServiceSignature("v202411", "InventoryService"); + LabelService = AdManagerService.MakeServiceSignature("v202411", "LabelService"); LineItemTemplateService = - AdManagerService.MakeServiceSignature("v202311", "LineItemTemplateService"); + AdManagerService.MakeServiceSignature("v202411", "LineItemTemplateService"); LineItemService = - AdManagerService.MakeServiceSignature("v202311", "LineItemService"); + AdManagerService.MakeServiceSignature("v202411", "LineItemService"); LineItemCreativeAssociationService = - AdManagerService.MakeServiceSignature("v202311", + AdManagerService.MakeServiceSignature("v202411", "LineItemCreativeAssociationService"); LiveStreamEventService = - AdManagerService.MakeServiceSignature("v202311", "LiveStreamEventService"); + AdManagerService.MakeServiceSignature("v202411", "LiveStreamEventService"); MobileApplicationService = - AdManagerService.MakeServiceSignature("v202311", "MobileApplicationService"); + AdManagerService.MakeServiceSignature("v202411", "MobileApplicationService"); NativeStyleService = - AdManagerService.MakeServiceSignature("v202311", "NativeStyleService"); - NetworkService = AdManagerService.MakeServiceSignature("v202311", "NetworkService"); - OrderService = AdManagerService.MakeServiceSignature("v202311", "OrderService"); + AdManagerService.MakeServiceSignature("v202411", "NativeStyleService"); + NetworkService = AdManagerService.MakeServiceSignature("v202411", "NetworkService"); + OrderService = AdManagerService.MakeServiceSignature("v202411", "OrderService"); PlacementService = - AdManagerService.MakeServiceSignature("v202311", "PlacementService"); + AdManagerService.MakeServiceSignature("v202411", "PlacementService"); ProposalService = - AdManagerService.MakeServiceSignature("v202311", "ProposalService"); + AdManagerService.MakeServiceSignature("v202411", "ProposalService"); ProposalLineItemService = - AdManagerService.MakeServiceSignature("v202311", "ProposalLineItemService"); + AdManagerService.MakeServiceSignature("v202411", "ProposalLineItemService"); PublisherQueryLanguageService = - AdManagerService.MakeServiceSignature("v202311", + AdManagerService.MakeServiceSignature("v202411", "PublisherQueryLanguageService"); - ReportService = AdManagerService.MakeServiceSignature("v202311", "ReportService"); - SegmentPopulationService = AdManagerService.MakeServiceSignature("v202311", "SegmentPopulationService"); - SiteService = AdManagerService.MakeServiceSignature("v202311", "SiteService"); + ReportService = AdManagerService.MakeServiceSignature("v202411", "ReportService"); + SegmentPopulationService = AdManagerService.MakeServiceSignature("v202411", "SegmentPopulationService"); + SiteService = AdManagerService.MakeServiceSignature("v202411", "SiteService"); StreamActivityMonitorService = - AdManagerService.MakeServiceSignature("v202311", "StreamActivityMonitorService"); + AdManagerService.MakeServiceSignature("v202411", "StreamActivityMonitorService"); SuggestedAdUnitService = - AdManagerService.MakeServiceSignature("v202311", "SuggestedAdUnitService"); - TargetingPresetService = AdManagerService.MakeServiceSignature("v202311", "TargetingPresetService"); - TeamService = AdManagerService.MakeServiceSignature("v202311", "TeamService"); - UserService = AdManagerService.MakeServiceSignature("v202311", "UserService"); + AdManagerService.MakeServiceSignature("v202411", "SuggestedAdUnitService"); + TargetingPresetService = AdManagerService.MakeServiceSignature("v202411", "TargetingPresetService"); + TeamService = AdManagerService.MakeServiceSignature("v202411", "TeamService"); + UserService = AdManagerService.MakeServiceSignature("v202411", "UserService"); UserTeamAssociationService = - AdManagerService.MakeServiceSignature("v202311", "UserTeamAssociationService"); - YieldGroupService = AdManagerService.MakeServiceSignature("v202311", "YieldGroupService"); + AdManagerService.MakeServiceSignature("v202411", "UserTeamAssociationService"); + YieldGroupService = AdManagerService.MakeServiceSignature("v202411", "YieldGroupService"); } } } diff --git a/tests/AdManager/AdManagerSoapFaultInspectorTests.cs b/tests/AdManager/AdManagerSoapFaultInspectorTests.cs index 940f1869433..a4f4f042efd 100644 --- a/tests/AdManager/AdManagerSoapFaultInspectorTests.cs +++ b/tests/AdManager/AdManagerSoapFaultInspectorTests.cs @@ -21,7 +21,7 @@ using System.Xml; using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.v202408; +using Google.Api.Ads.AdManager.v202411; using Google.Api.Ads.Common.Lib; using Google.Api.Ads.Common.Tests.Mocks; using Google.Api.Ads.Common.Util; @@ -42,7 +42,7 @@ public class AdManagerSoapFaultInspectorTests const string fault_xml = @" - + 1234567890 123 @@ -52,7 +52,7 @@ public class AdManagerSoapFaultInspectorTests soap:Server [PublisherQueryLanguageContextError.UNEXECUTABLE] - + [PublisherQueryLanguageContextError.UNEXECUTABLE] @@ -111,7 +111,7 @@ public void TestAdManagerApiExceptionForFault() SoapFaultInspector inspector = new SoapFaultInspector() { - ErrorType = typeof(AdManager.v202408.ApiException) + ErrorType = typeof(AdManager.v202411.ApiException) }; XmlDocument xDoc = XmlUtilities.CreateDocument(fault_xml); diff --git a/tests/AdManager/ServiceCreationTests.cs b/tests/AdManager/ServiceCreationTests.cs index c7c36243220..0afa4a867f9 100755 --- a/tests/AdManager/ServiceCreationTests.cs +++ b/tests/AdManager/ServiceCreationTests.cs @@ -18,7 +18,7 @@ using Google.Api.Ads.Common.Lib; using Google.Api.Ads.Common.Tests; using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.v202408; +using Google.Api.Ads.AdManager.v202411; using NUnit.Framework; diff --git a/tests/AdManager/v202311/DateTimeUtilitiesTests.cs b/tests/AdManager/v202411/DateTimeUtilitiesTests.cs similarity index 95% rename from tests/AdManager/v202311/DateTimeUtilitiesTests.cs rename to tests/AdManager/v202411/DateTimeUtilitiesTests.cs index af8d9fd807b..658b65f2c5b 100755 --- a/tests/AdManager/v202311/DateTimeUtilitiesTests.cs +++ b/tests/AdManager/v202411/DateTimeUtilitiesTests.cs @@ -19,12 +19,12 @@ using System.Xml; using Google.Api.Ads.Common.Util; using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202311; -using Google.Api.Ads.AdManager.v202311; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; using NUnit.Framework; -using DateTime = Google.Api.Ads.AdManager.v202311.DateTime; +using DateTime = Google.Api.Ads.AdManager.v202411.DateTime; -namespace Google.Api.Ads.AdManager.Tests.v202311 { +namespace Google.Api.Ads.AdManager.Tests.v202411 { /// /// UnitTests for class. diff --git a/tests/AdManager/v202311/PqlUtilitiesTests.cs b/tests/AdManager/v202411/PqlUtilitiesTests.cs similarity index 97% rename from tests/AdManager/v202311/PqlUtilitiesTests.cs rename to tests/AdManager/v202411/PqlUtilitiesTests.cs index 3893938104c..066aa63357f 100755 --- a/tests/AdManager/v202311/PqlUtilitiesTests.cs +++ b/tests/AdManager/v202411/PqlUtilitiesTests.cs @@ -16,13 +16,13 @@ using System.Collections.Generic; using Google.Api.Ads.Common.Util; using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202311; -using Google.Api.Ads.AdManager.v202311; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; using NUnit.Framework; -using DateTime = Google.Api.Ads.AdManager.v202311.DateTime; +using DateTime = Google.Api.Ads.AdManager.v202411.DateTime; -namespace Google.Api.Ads.AdManager.Tests.v202311 { +namespace Google.Api.Ads.AdManager.Tests.v202411 { /// /// UnitTests for class. diff --git a/tests/AdManager/v202311/StatementBuilderTests.cs b/tests/AdManager/v202411/StatementBuilderTests.cs similarity index 97% rename from tests/AdManager/v202311/StatementBuilderTests.cs rename to tests/AdManager/v202411/StatementBuilderTests.cs index c9ee01973f6..fc34f560d6a 100755 --- a/tests/AdManager/v202311/StatementBuilderTests.cs +++ b/tests/AdManager/v202411/StatementBuilderTests.cs @@ -19,12 +19,12 @@ using System.Xml; using Google.Api.Ads.Common.Util; using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v202311; -using Google.Api.Ads.AdManager.v202311; +using Google.Api.Ads.AdManager.Util.v202411; +using Google.Api.Ads.AdManager.v202411; using NUnit.Framework; -using DateTime = Google.Api.Ads.AdManager.v202311.DateTime; +using DateTime = Google.Api.Ads.AdManager.v202411.DateTime; -namespace Google.Api.Ads.AdManager.Tests.v202311 { +namespace Google.Api.Ads.AdManager.Tests.v202411 { /// /// UnitTests for class.