diff --git a/ChangeLog b/ChangeLog index 122fac6bcf9..f7489fe443e 100755 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,19 @@ +24.8.0 +====== + + AdWords: + - + + Ad Manager: + - Added support for v201908. + - Removed support for v201808. + - Removed examples for v201811. + - Updated ProposalService and ProposalLineItemService example for Sales + Management deprecation. + + Common: + - + 24.7.1 ====== diff --git a/examples/AdManager/CSharp/AdManager.Examples.CSharp.csproj b/examples/AdManager/CSharp/AdManager.Examples.CSharp.csproj index 326c72e9ab6..b2d2a43a706 100755 --- a/examples/AdManager/CSharp/AdManager.Examples.CSharp.csproj +++ b/examples/AdManager/CSharp/AdManager.Examples.CSharp.csproj @@ -5,7 +5,6 @@ Google.AdManager.Examples.CSharp Exe Google.Api.Ads.AdManager.Examples.CSharp.Program - true true $(ProjectDir)..\..\..\src\Common\AdsApi.snk pdbonly @@ -16,7 +15,7 @@ - + @@ -37,8 +36,4 @@ App.config - - - diff --git a/examples/AdManager/CSharp/OAuth/AdManager.Examples.CSharp.OAuth.csproj b/examples/AdManager/CSharp/OAuth/AdManager.Examples.CSharp.OAuth.csproj index 8e4564ae63c..2dc7059ba0b 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/v201811/BaseRateService/CreateProductBaseRates.cs b/examples/AdManager/CSharp/v201811/BaseRateService/CreateProductBaseRates.cs deleted file mode 100755 index 14892d44e8c..00000000000 --- a/examples/AdManager/CSharp/v201811/BaseRateService/CreateProductBaseRates.cs +++ /dev/null @@ -1,105 +0,0 @@ -// Copyright 2018, Google Inc. All Rights Reserved. -// -// 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.v201811; - -using System; - -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 -{ - /// - /// This code example creates a product base rate. To determine which base rates exist, - /// run GetAllBaseRates.cs. - /// - public class CreateProductBaseRates : SampleBase - { - /// - /// Returns a description about the code example. - /// - public override string Description - { - get - { - return "This code example creates a product base rate. To determine which base " + - "rates exist, run GetAllBaseRates.cs."; - } - } - - /// - /// Main method, to run this code example as a standalone application. - /// - public static void Main() - { - CreateProductBaseRates codeExample = new CreateProductBaseRates(); - Console.WriteLine(codeExample.Description); - codeExample.Run(new AdManagerUser()); - } - - /// - /// Run the code example. - /// - public void Run(AdManagerUser user) - { - using (BaseRateService baseRateService = user.GetService()) - { - // Set the rate card ID to add the base rate to. - long rateCardId = long.Parse(_T("INSERT_RATE_CARD_ID_HERE")); - - // Set the product to apply this base rate to. - long productId = long.Parse(_T("INSERT_PRODUCT_ID_HERE")); - - // Create a base rate for a product. - ProductBaseRate productBaseRate = new ProductBaseRate(); - - // Set the rate card ID that the product base rate belongs to. - productBaseRate.rateCardId = rateCardId; - - // Set the product the base rate will be applied to. - productBaseRate.productId = productId; - - // Create a rate worth $2 and set that on the product base rate. - productBaseRate.rate = new Money() - { - currencyCode = "USD", - microAmount = 2000000L - }; - - try - { - // Create the base rate on the server. - BaseRate[] baseRates = baseRateService.createBaseRates(new BaseRate[] - { - productBaseRate - }); - - foreach (BaseRate createdBaseRate in baseRates) - { - Console.WriteLine( - "A product base rate with ID '{0}', name '{1}' " + - "and rate '{2} {3}' was created.", createdBaseRate.id, - createdBaseRate.GetType().Name, - (((ProductBaseRate) createdBaseRate).rate.microAmount / 1000000f), - ((ProductBaseRate) createdBaseRate).rate.currencyCode); - } - } - catch (Exception e) - { - Console.WriteLine("Failed to create base rates. Exception says \"{0}\"", - e.Message); - } - } - } - } -} diff --git a/examples/AdManager/CSharp/v201811/BaseRateService/CreateProductTemplateBaseRates.cs b/examples/AdManager/CSharp/v201811/BaseRateService/CreateProductTemplateBaseRates.cs deleted file mode 100755 index 1625ce536ba..00000000000 --- a/examples/AdManager/CSharp/v201811/BaseRateService/CreateProductTemplateBaseRates.cs +++ /dev/null @@ -1,106 +0,0 @@ -// Copyright 2018, Google Inc. All Rights Reserved. -// -// 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.v201811; - -using System; - -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 -{ - /// - /// This code example creates a product template base rate. To determine which base rates exist, - /// run GetAllBaseRates.cs. - /// - public class CreateProductTemplateBaseRates : SampleBase - { - /// - /// Returns a description about the code example. - /// - public override string Description - { - get - { - return "This code example creates a product template base rate. To determine " + - "which base rates exist, run GetAllBaseRates.cs."; - } - } - - /// - /// Main method, to run this code example as a standalone application. - /// - public static void Main() - { - CreateProductTemplateBaseRates codeExample = new CreateProductTemplateBaseRates(); - Console.WriteLine(codeExample.Description); - codeExample.Run(new AdManagerUser()); - } - - /// - /// Run the code example. - /// - public void Run(AdManagerUser user) - { - using (BaseRateService baseRateService = user.GetService()) - { - // Set the rate card ID to add the base rate to. - long rateCardId = long.Parse(_T("INSERT_RATE_CARD_ID_HERE")); - - // Set the product template to apply this base rate to. - long productTemplateId = long.Parse(_T("INSERT_PRODUCT_TEMPLATE_ID_HERE")); - - // Create a base rate for a product template. - ProductTemplateBaseRate productTemplateBaseRate = new ProductTemplateBaseRate(); - - // Set the rate card ID that the product template base rate belongs to. - productTemplateBaseRate.rateCardId = rateCardId; - - // Set the product template the base rate will be applied to. - productTemplateBaseRate.productTemplateId = productTemplateId; - - // Create a rate worth $2 and set that on the product template base rate. - productTemplateBaseRate.rate = new Money() - { - currencyCode = "USD", - microAmount = 2000000L - }; - - try - { - // Create the base rate on the server. - BaseRate[] baseRates = baseRateService.createBaseRates(new BaseRate[] - { - productTemplateBaseRate - }); - - foreach (BaseRate createdBaseRate in baseRates) - { - Console.WriteLine( - "A product template base rate with ID '{0}', name '{1}' " + - "and rate '{2} {3}' was created.", createdBaseRate.id, - createdBaseRate.GetType().Name, - (((ProductTemplateBaseRate) createdBaseRate).rate.microAmount / - 1000000f), - ((ProductTemplateBaseRate) createdBaseRate).rate.currencyCode); - } - } - catch (Exception e) - { - Console.WriteLine("Failed to create base rates. Exception says \"{0}\"", - e.Message); - } - } - } - } -} diff --git a/examples/AdManager/CSharp/v201811/BaseRateService/GetAllBaseRates.cs b/examples/AdManager/CSharp/v201811/BaseRateService/GetAllBaseRates.cs deleted file mode 100755 index 8972f67f092..00000000000 --- a/examples/AdManager/CSharp/v201811/BaseRateService/GetAllBaseRates.cs +++ /dev/null @@ -1,94 +0,0 @@ -// Copyright 2017, Google Inc. All Rights Reserved. -// -// 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.v201811; -using Google.Api.Ads.AdManager.v201811; - -using System; - -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 -{ - /// - /// This example gets all base rates. - /// - public class GetAllBaseRates : SampleBase - { - /// - /// Returns a description about the code example. - /// - public override string Description - { - get { return "This example gets all base rates."; } - } - - /// - /// Main method, to run this code example as a standalone application. - /// - public static void Main() - { - GetAllBaseRates codeExample = new GetAllBaseRates(); - Console.WriteLine(codeExample.Description); - try - { - codeExample.Run(new AdManagerUser()); - } - catch (Exception e) - { - Console.WriteLine("Failed to get base rates. Exception says \"{0}\"", e.Message); - } - } - - /// - /// Run the code example. - /// - public void Run(AdManagerUser user) - { - using (BaseRateService baseRateService = user.GetService()) - { - // Create a statement to select base rates. - int pageSize = StatementBuilder.SUGGESTED_PAGE_LIMIT; - StatementBuilder statementBuilder = - new StatementBuilder().OrderBy("id ASC").Limit(pageSize); - - // Retrieve a small amount of base rates at a time, paging through until all - // base rates have been retrieved. - int totalResultSetSize = 0; - do - { - BaseRatePage page = - baseRateService.getBaseRatesByStatement(statementBuilder.ToStatement()); - - // Print out some information for each base rate. - if (page.results != null) - { - totalResultSetSize = page.totalResultSetSize; - int i = page.startIndex; - foreach (BaseRate baseRate in page.results) - { - Console.WriteLine( - "{0}) Base rate with ID {1}, type \"{2}\", and rate card ID {3} " + - "was found.", - i++, baseRate.id, baseRate.GetType().Name, baseRate.rateCardId); - } - } - - statementBuilder.IncreaseOffsetBy(pageSize); - } while (statementBuilder.GetOffset() < totalResultSetSize); - - Console.WriteLine("Number of results found: {0}", totalResultSetSize); - } - } - } -} diff --git a/examples/AdManager/CSharp/v201811/BaseRateService/GetBaseRatesForRateCard.cs b/examples/AdManager/CSharp/v201811/BaseRateService/GetBaseRatesForRateCard.cs deleted file mode 100755 index d2fbe818efc..00000000000 --- a/examples/AdManager/CSharp/v201811/BaseRateService/GetBaseRatesForRateCard.cs +++ /dev/null @@ -1,96 +0,0 @@ -// Copyright 2017, Google Inc. All Rights Reserved. -// -// 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.v201811; -using Google.Api.Ads.AdManager.v201811; - -using System; - -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 -{ - /// - /// This example gets all base rates belonging to a rate card. - /// - public class GetBaseRatesForRateCard : SampleBase - { - /// - /// Returns a description about the code example. - /// - public override string Description - { - get { return "This example gets all base rates belonging to a rate card."; } - } - - /// - /// Main method, to run this code example as a standalone application. - /// - public static void Main() - { - GetBaseRatesForRateCard codeExample = new GetBaseRatesForRateCard(); - long rateCardId = long.Parse("INSERT_RATE_CARD_ID_HERE"); - Console.WriteLine(codeExample.Description); - try - { - codeExample.Run(new AdManagerUser(), rateCardId); - } - catch (Exception e) - { - Console.WriteLine("Failed to get base rates. Exception says \"{0}\"", e.Message); - } - } - - /// - /// Run the code example. - /// - public void Run(AdManagerUser user, long rateCardId) - { - using (BaseRateService baseRateService = user.GetService()) - { - // Create a statement to select base rates. - int pageSize = StatementBuilder.SUGGESTED_PAGE_LIMIT; - StatementBuilder statementBuilder = new StatementBuilder() - .Where("rateCardId = :rateCardId").OrderBy("id ASC").Limit(pageSize) - .AddValue("rateCardId", rateCardId); - - // Retrieve a small amount of base rates at a time, paging through until all - // base rates have been retrieved. - int totalResultSetSize = 0; - do - { - BaseRatePage page = - baseRateService.getBaseRatesByStatement(statementBuilder.ToStatement()); - - // Print out some information for each base rate. - if (page.results != null) - { - totalResultSetSize = page.totalResultSetSize; - int i = page.startIndex; - foreach (BaseRate baseRate in page.results) - { - Console.WriteLine( - "{0}) Base rate with ID {1}, type \"{2}\", and rate card ID {3} " + - "was found.", - i++, baseRate.id, baseRate.GetType().Name, baseRate.rateCardId); - } - } - - statementBuilder.IncreaseOffsetBy(pageSize); - } while (statementBuilder.GetOffset() < totalResultSetSize); - - Console.WriteLine("Number of results found: {0}", totalResultSetSize); - } - } - } -} diff --git a/examples/AdManager/CSharp/v201811/BaseRateService/UpdateBaseRates.cs b/examples/AdManager/CSharp/v201811/BaseRateService/UpdateBaseRates.cs deleted file mode 100755 index 1524a042e9a..00000000000 --- a/examples/AdManager/CSharp/v201811/BaseRateService/UpdateBaseRates.cs +++ /dev/null @@ -1,121 +0,0 @@ -// Copyright 2018, Google Inc. All Rights Reserved. -// -// 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.v201811; -using Google.Api.Ads.AdManager.v201811; - -using System; -using System.Collections.Generic; - -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 -{ - /// - /// This code example updates a base rate's value. To determine which base rates - /// exist, run GetAllBaseRates.cs. - /// - public class UpdateBaseRates : SampleBase - { - /// - /// Returns a description about the code example. - /// - public override string Description - { - get - { - return "This code example updates a base rate's value. To determine which base " + - "rates exist, run GetAllBaseRates.cs."; - } - } - - /// - /// Main method, to run this code example as a standalone application. - /// - public static void Main() - { - UpdateBaseRates codeExample = new UpdateBaseRates(); - Console.WriteLine(codeExample.Description); - codeExample.Run(new AdManagerUser()); - } - - /// - /// Run the code example. - /// - public void Run(AdManagerUser user) - { - using (BaseRateService baseRateService = user.GetService()) - { - long baseRateId = long.Parse(_T("INSERT_BASE_RATE_ID_HERE")); - - // Create a statement to get the baseRate. - StatementBuilder statementBuilder = new StatementBuilder() - .Where("id = :id") - .OrderBy("id ASC") - .Limit(1) - .AddValue("id", baseRateId); - - try - { - // Get base rates by statement. - BaseRatePage page = - baseRateService.getBaseRatesByStatement(statementBuilder.ToStatement()); - - BaseRate baseRate = page.results[0]; - - // Update base rate value to $3 USD. - Money newRate = new Money() - { - currencyCode = "USD", - microAmount = 3000000L - }; - - if (baseRate is ProductTemplateBaseRate) - { - ((ProductTemplateBaseRate) baseRate).rate = newRate; - } - else if (baseRate is ProductBaseRate) - { - ((ProductBaseRate) baseRate).rate = newRate; - } - - // Update the base rates on the server. - BaseRate[] baseRates = baseRateService.updateBaseRates(new BaseRate[] - { - baseRate - }); - - if (baseRates != null) - { - foreach (BaseRate updatedBaseRate in baseRates) - { - Console.WriteLine( - "Base rate with ID ='{0}' and type '{1}' belonging to rate card " + - "'{2}' was updated.", baseRate.id, baseRate.GetType().Name, - baseRate.rateCardId); - } - } - else - { - Console.WriteLine("No base rates updated."); - } - } - catch (Exception e) - { - Console.WriteLine("Failed to update base rates. Exception says \"{0}\"", - e.Message); - } - } - } - } -} diff --git a/examples/AdManager/CSharp/v201811/ExchangeRateService/CreateExchangeRates.cs b/examples/AdManager/CSharp/v201811/ExchangeRateService/CreateExchangeRates.cs deleted file mode 100755 index a4c48f1b527..00000000000 --- a/examples/AdManager/CSharp/v201811/ExchangeRateService/CreateExchangeRates.cs +++ /dev/null @@ -1,99 +0,0 @@ -// Copyright 2018, Google Inc. All Rights Reserved. -// -// 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.v201811; -using Google.Api.Ads.AdManager.v201811; - -using System; - -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 -{ - /// - /// This code example creates a new exchange rate. To determine which - /// exchange rates exist, run GetAllExchangeRates.cs. - /// - public class CreateExchangeRates : SampleBase - { - /// - /// Returns a description about the code example. - /// - public override string Description - { - get - { - return "This code example creates a new exchange rate. To determine which " + - "exchange rates exist, run GetAllExchangeRates.cs."; - } - } - - /// - /// Main method, to run this code example as a standalone application. - /// - public static void Main() - { - CreateExchangeRates codeExample = new CreateExchangeRates(); - Console.WriteLine(codeExample.Description); - codeExample.Run(new AdManagerUser()); - } - - /// - /// Run the code examples. - /// - public void Run(AdManagerUser user) - { - using (ExchangeRateService exchangeRateService = user.GetService()) - { - // Create an exchange rate. - ExchangeRate exchangeRate = new ExchangeRate(); - - // Set the currency code. - exchangeRate.currencyCode = "AUD"; - - // Set the direction of the conversion (from the network currency). - exchangeRate.direction = ExchangeRateDirection.FROM_NETWORK; - - // Set the conversion value as 1.5 (this value is multiplied by 10,000,000,000) - exchangeRate.exchangeRate = 15000000000L; - - // Do not refresh exchange rate from Google data. Update manually only. - exchangeRate.refreshRate = ExchangeRateRefreshRate.FIXED; - - try - { - // Create the exchange rate on the server. - ExchangeRate[] exchangeRates = exchangeRateService.createExchangeRates( - new ExchangeRate[] - { - exchangeRate - }); - - foreach (ExchangeRate createdExchangeRate in exchangeRates) - { - Console.WriteLine( - "An exchange rate with ID '{0}', currency code '{1}', " + - "direction '{2}' and exchange rate '{3}' was created.", exchangeRate.id, - exchangeRate.currencyCode, exchangeRate.direction, - (exchangeRate.exchangeRate / 10000000000f)); - } - } - catch (Exception e) - { - Console.WriteLine("Failed to create exchange rates. Exception says \"{0}\"", - e.Message); - } - } - } - } -} diff --git a/examples/AdManager/CSharp/v201811/ExchangeRateService/GetExchangeRatesForCurrencyCode.cs b/examples/AdManager/CSharp/v201811/ExchangeRateService/GetExchangeRatesForCurrencyCode.cs deleted file mode 100755 index afc8b10a467..00000000000 --- a/examples/AdManager/CSharp/v201811/ExchangeRateService/GetExchangeRatesForCurrencyCode.cs +++ /dev/null @@ -1,98 +0,0 @@ -// Copyright 2017, Google Inc. All Rights Reserved. -// -// 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.v201811; -using Google.Api.Ads.AdManager.v201811; - -using System; - -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 -{ - /// - /// This example gets the exchange rate for a specific currency code. - /// - public class GetExchangeRatesForCurrencyCode : SampleBase - { - /// - /// Returns a description about the code example. - /// - public override string Description - { - get { return "This example gets the exchange rate for a specific currency code."; } - } - - /// - /// Main method, to run this code example as a standalone application. - /// - public static void Main() - { - GetExchangeRatesForCurrencyCode codeExample = new GetExchangeRatesForCurrencyCode(); - string currencyCode = "INSERT_CURRENCY_CODE_HERE"; - Console.WriteLine(codeExample.Description); - try - { - codeExample.Run(new AdManagerUser(), currencyCode); - } - catch (Exception e) - { - Console.WriteLine("Failed to get exchange rates. Exception says \"{0}\"", - e.Message); - } - } - - /// - /// Run the code example. - /// - public void Run(AdManagerUser user, string currencyCode) - { - using (ExchangeRateService exchangeRateService = user.GetService()) - { - // Create a statement to select exchange rates. - int pageSize = StatementBuilder.SUGGESTED_PAGE_LIMIT; - StatementBuilder statementBuilder = new StatementBuilder() - .Where("currencyCode = :currencyCode").OrderBy("id ASC").Limit(pageSize) - .AddValue("currencyCode", currencyCode); - - // Retrieve a small amount of exchange rates at a time, paging through until all - // exchange rates have been retrieved. - int totalResultSetSize = 0; - do - { - ExchangeRatePage page = - exchangeRateService.getExchangeRatesByStatement( - statementBuilder.ToStatement()); - - // Print out some information for each exchange rate. - if (page.results != null) - { - totalResultSetSize = page.totalResultSetSize; - int i = page.startIndex; - foreach (ExchangeRate exchangeRate in page.results) - { - Console.WriteLine( - "{0}) Exchange rate with ID {1}, " + "currency code \"{2}\", " + - "and exchange rate {3} was found.", i++, exchangeRate.id, - exchangeRate.currencyCode, exchangeRate.exchangeRate); - } - } - - statementBuilder.IncreaseOffsetBy(pageSize); - } while (statementBuilder.GetOffset() < totalResultSetSize); - - Console.WriteLine("Number of results found: {0}", totalResultSetSize); - } - } - } -} diff --git a/examples/AdManager/CSharp/v201811/ExchangeRateService/UpdateExchangeRates.cs b/examples/AdManager/CSharp/v201811/ExchangeRateService/UpdateExchangeRates.cs deleted file mode 100755 index 78c1600a551..00000000000 --- a/examples/AdManager/CSharp/v201811/ExchangeRateService/UpdateExchangeRates.cs +++ /dev/null @@ -1,111 +0,0 @@ -// Copyright 2018, Google Inc. All Rights Reserved. -// -// 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.v201811; -using Google.Api.Ads.AdManager.v201811; - -using System; - -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 -{ - /// - /// This code example updates a fixed exchange rate's value. To determine which - /// exchange rates exist, run GetAllExchangeRates.cs. - /// - public class UpdateExchangeRates : SampleBase - { - /// - /// Returns a description about the code example. - /// - public override string Description - { - get - { - return - "This code example updates a fixed exchange rate's value. To determine which " + - "exchange rates exist, run GetAllExchangeRates.cs."; - } - } - - /// - /// Main method, to run this code example as a standalone application. - /// - public static void Main() - { - UpdateExchangeRates codeExample = new UpdateExchangeRates(); - Console.WriteLine(codeExample.Description); - codeExample.Run(new AdManagerUser()); - } - - /// - /// Run the code example. - /// - public void Run(AdManagerUser user) - { - using (ExchangeRateService exchangeRateService = user.GetService()) - { - // Set the ID of the exchange rate. - long exchangeRateId = long.Parse(_T("INSERT_EXCHANGE_RATE_ID_HERE")); - - // Create a statement to get the exchange rate. - StatementBuilder statementBuilder = new StatementBuilder() - .Where("id = :exchangeRateId and refreshRate = :refreshRate").OrderBy("id ASC") - .Limit(1).AddValue("exchangeRateId", exchangeRateId) - .AddValue("refreshRate", ExchangeRateRefreshRate.FIXED.ToString()); - - try - { - // Get exchange rates by statement. - ExchangeRatePage page = - exchangeRateService.getExchangeRatesByStatement( - statementBuilder.ToStatement()); - - ExchangeRate exchangeRate = page.results[0]; - - // Update the exchange rate value to 1.5. - exchangeRate.exchangeRate = 15000000000L; - - // Update the exchange rate on the server. - ExchangeRate[] exchangeRates = exchangeRateService.updateExchangeRates( - new ExchangeRate[] - { - exchangeRate - }); - - if (exchangeRates != null) - { - foreach (ExchangeRate updatedExchangeRate in exchangeRates) - { - Console.WriteLine( - "An exchange rate with ID '{0}', currency code '{1}', " + - "direction '{2}' and exchange rate '{3}' was updated.", - exchangeRate.id, exchangeRate.currencyCode, exchangeRate.direction, - (exchangeRate.exchangeRate / 10000000000f)); - } - } - else - { - Console.WriteLine("No exchange rates updated."); - } - } - catch (Exception e) - { - Console.WriteLine("Failed to update exchange rates. Exception says \"{0}\"", - e.Message); - } - } - } - } -} diff --git a/examples/AdManager/CSharp/v201811/PackageService/CreatePackages.cs b/examples/AdManager/CSharp/v201811/PackageService/CreatePackages.cs deleted file mode 100755 index 9129771b4ea..00000000000 --- a/examples/AdManager/CSharp/v201811/PackageService/CreatePackages.cs +++ /dev/null @@ -1,102 +0,0 @@ -// Copyright 2018, Google Inc. All Rights Reserved. -// -// 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.v201811; - -using System; - -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 -{ - /// - /// This code example creates a package. To determine which packages exist, - /// run GetAllPackages.cs. - /// - public class CreatePackages : SampleBase - { - /// - /// Returns a description about the code example. - /// - public override string Description - { - get - { - return "This code example creates a package. To determine which packages exist, " + - "run GetAllPackages.cs."; - } - } - - /// - /// Main method, to run this code example as a standalone application. - /// - public static void Main() - { - CreatePackages codeExample = new CreatePackages(); - Console.WriteLine(codeExample.Description); - codeExample.Run(new AdManagerUser()); - } - - /// - /// Run the code example. - /// - public void Run(AdManagerUser user) - { - using (PackageService packageService = user.GetService()) - { - // Set the ID of the product package to create the package from. - long productPackageId = long.Parse(_T("INSERT_PRODUCT_PACKAGE_ID")); - - // Set the proposal ID for the package. - long proposalId = long.Parse(_T("INSERT_PROPOSAL_ID")); - - // Set the ID of the rate card the proposal line items belonging to the product - // package are priced from. - long rateCardId = long.Parse(_T("INSERT_RATE_CARD_ID")); - - // Create a local package. - Package package = new Package(); - package.name = "Package #" + new Random().Next(int.MaxValue); - - // Set the proposal ID for the package. - package.proposalId = proposalId; - - // Set the product package ID to create the package from. - package.productPackageId = productPackageId; - - // Set the rate card ID the proposal line items are priced with. - package.rateCardId = rateCardId; - - try - { - // Create the package on the server. - Package[] packages = packageService.createPackages(new Package[] - { - package - }); - - foreach (Package createdPackage in packages) - { - Console.WriteLine("A package with ID \"{0}\" and name \"{1}\" was created.", - createdPackage.id, createdPackage.name); - } - } - catch (Exception e) - { - Console.WriteLine("Failed to create packages. Exception says \"{0}\"", - e.Message); - } - } - } - } -} diff --git a/examples/AdManager/CSharp/v201811/PackageService/CreateProposalLineItemsFromPackage.cs b/examples/AdManager/CSharp/v201811/PackageService/CreateProposalLineItemsFromPackage.cs deleted file mode 100755 index 43fdafb6b32..00000000000 --- a/examples/AdManager/CSharp/v201811/PackageService/CreateProposalLineItemsFromPackage.cs +++ /dev/null @@ -1,114 +0,0 @@ -// Copyright 2018, Google Inc. All Rights Reserved. -// -// 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.v201811; -using Google.Api.Ads.AdManager.v201811; - -using System; -using System.Collections.Generic; - -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 -{ - /// - /// This code example creates all proposal line items within an IN_PROGRESS package. - /// To determine which packages exist, run GetAllPackages.cs. - /// - public class CreateProposalLineItemsFromPackage : SampleBase - { - /// - /// Returns a description about the code example. - /// - public override string Description - { - get - { - return " This code example creates all proposal line items within an IN_PROGRESS " + - "package. To determine which packages exist, run GetAllPackages.cs."; - } - } - - /// - /// Main method, to run this code example as a standalone application. - /// - public static void Main() - { - CreateProposalLineItemsFromPackage codeExample = - new CreateProposalLineItemsFromPackage(); - Console.WriteLine(codeExample.Description); - codeExample.Run(new AdManagerUser()); - } - - /// - /// Run the code example. - /// - public void Run(AdManagerUser user) - { - using (PackageService packageService = user.GetService()) - { - // Set the ID of the package to create line items from. - long packageId = long.Parse(_T("INSERT_PACKAGE_ID_HERE")); - - // Create statement to select the package. - StatementBuilder statementBuilder = new StatementBuilder() - .Where("id = :id") - .OrderBy("id ASC") - .Limit(1) - .AddValue("id", packageId); - - // Set default for page. - PackagePage page = new PackagePage(); - List packageIds = new List(); - - try - { - // Get the package. - page = packageService.getPackagesByStatement(statementBuilder.ToStatement()); - Package package = page.results[0]; - - Console.WriteLine( - "Package with ID \"{0}\" will create proposal line items using " + - "product package with ID \"{1}\"", package.id, package.productPackageId); - - // Modify statement for action. - statementBuilder.RemoveLimitAndOffset(); - - // Create action. - CreateProposalLineItemsFromPackages action = - new CreateProposalLineItemsFromPackages(); - - // Perform action. - UpdateResult result = - packageService.performPackageAction(action, statementBuilder.ToStatement()); - - // Display results. - if (result != null && result.numChanges > 0) - { - Console.WriteLine("Proposal line items were created for {0} packages.", - result.numChanges); - } - else - { - Console.WriteLine("No proposal line items were created."); - } - } - catch (Exception e) - { - Console.WriteLine( - "Failed to create proposal line items. Exception says \"{0}\"", e.Message); - } - } - } - } -} diff --git a/examples/AdManager/CSharp/v201811/PackageService/GetInProgressPackages.cs b/examples/AdManager/CSharp/v201811/PackageService/GetInProgressPackages.cs deleted file mode 100755 index 0f81ee8ddbc..00000000000 --- a/examples/AdManager/CSharp/v201811/PackageService/GetInProgressPackages.cs +++ /dev/null @@ -1,97 +0,0 @@ -// Copyright 2017, Google Inc. All Rights Reserved. -// -// 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.v201811; -using Google.Api.Ads.AdManager.v201811; - -using System; - -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 -{ - /// - /// This example gets all packages in progress. - /// - public class GetInProgressPackages : SampleBase - { - /// - /// Returns a description about the code example. - /// - public override string Description - { - get { return "This example gets all packages in progress."; } - } - - /// - /// Main method, to run this code example as a standalone application. - /// - public static void Main() - { - GetInProgressPackages codeExample = new GetInProgressPackages(); - Console.WriteLine(codeExample.Description); - try - { - codeExample.Run(new AdManagerUser()); - } - catch (Exception e) - { - Console.WriteLine("Failed to get packages. Exception says \"{0}\"", e.Message); - } - } - - /// - /// Run the code example. - /// - public void Run(AdManagerUser user) - { - using (PackageService packageService = user.GetService()) - { - // Create a statement to select packages. - int pageSize = StatementBuilder.SUGGESTED_PAGE_LIMIT; - StatementBuilder statementBuilder = new StatementBuilder() - .Where("status = :status") - .OrderBy("id ASC") - .Limit(pageSize) - .AddValue("status", PackageStatus.IN_PROGRESS.ToString()); - - // Retrieve a small amount of packages at a time, paging through until all - // packages have been retrieved. - int totalResultSetSize = 0; - do - { - PackagePage page = - packageService.getPackagesByStatement(statementBuilder.ToStatement()); - - // Print out some information for each package. - if (page.results != null) - { - totalResultSetSize = page.totalResultSetSize; - int i = page.startIndex; - foreach (Package pkg in page.results) - { - Console.WriteLine( - "{0}) Package with ID {1}, name \"{2}\", and proposal ID {3} was " + - "found.", - i++, pkg.id, pkg.name, pkg.proposalId); - } - } - - statementBuilder.IncreaseOffsetBy(pageSize); - } while (statementBuilder.GetOffset() < totalResultSetSize); - - Console.WriteLine("Number of results found: {0}", totalResultSetSize); - } - } - } -} diff --git a/examples/AdManager/CSharp/v201811/PackageService/UpdatePackages.cs b/examples/AdManager/CSharp/v201811/PackageService/UpdatePackages.cs deleted file mode 100755 index 8a17b87d1a9..00000000000 --- a/examples/AdManager/CSharp/v201811/PackageService/UpdatePackages.cs +++ /dev/null @@ -1,107 +0,0 @@ -// Copyright 2018, Google Inc. All Rights Reserved. -// -// 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.v201811; -using Google.Api.Ads.AdManager.v201811; - -using System; - -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 -{ - /// - /// This code example updates the comments of a package. To determine which packages exist, - /// run GetAllPackages.cs. - /// - public class UpdatePackages : SampleBase - { - /// - /// Returns a description about the code example. - /// - public override string Description - { - get - { - return "This code example updates the comments of a package. To determine which " + - "packages exist, run GetAllPackages.cs."; - } - } - - /// - /// Main method, to run this code example as a standalone application. - /// - public static void Main() - { - UpdatePackages codeExample = new UpdatePackages(); - Console.WriteLine(codeExample.Description); - codeExample.Run(new AdManagerUser()); - } - - /// - /// Run the code example. - /// - public void Run(AdManagerUser user) - { - using (PackageService packageService = user.GetService()) - { - long packageId = long.Parse(_T("INSERT_PACKAGE_ID_HERE")); - - // Create a statement to get the package. - StatementBuilder statementBuilder = new StatementBuilder() - .Where("id = :id") - .OrderBy("id ASC") - .Limit(1) - .AddValue("id", packageId); - - try - { - // Get packages by statement. - PackagePage page = - packageService.getPackagesByStatement(statementBuilder.ToStatement()); - - Package package = page.results[0]; - - // Update the package object by changing its comments. - package.comments = "This package is ready to be made into proposal line items."; - - // Update the package on the server. - Package[] packages = packageService.updatePackages(new Package[] - { - package - }); - - if (packages != null) - { - foreach (Package updatedPackage in packages) - { - Console.WriteLine( - "Package with ID = \"{0}\", name = \"{1}\", and " + - "comments = \"{2}\" was updated.", - updatedPackage.id, updatedPackage.name, updatedPackage.comments); - } - } - else - { - Console.WriteLine("No packages updated."); - } - } - catch (Exception e) - { - Console.WriteLine("Failed to update packages. Exception says \"{0}\"", - e.Message); - } - } - } - } -} diff --git a/examples/AdManager/CSharp/v201811/PremiumRateService/CreatePremiumRates.cs b/examples/AdManager/CSharp/v201811/PremiumRateService/CreatePremiumRates.cs deleted file mode 100755 index 694a6e16567..00000000000 --- a/examples/AdManager/CSharp/v201811/PremiumRateService/CreatePremiumRates.cs +++ /dev/null @@ -1,123 +0,0 @@ -// Copyright 2018, Google Inc. All Rights Reserved. -// -// 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.v201811; - -using System; - -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 -{ - /// - /// This code example creates a premium rate. To determine which premium rates exist, - /// run GetAllPremiumRates.cs. - /// - public class CreatePremiumRates : SampleBase - { - /// - /// Returns a description about the code example. - /// - public override string Description - { - get - { - return - "This code example creates a premium rate. To determine which premium rates " + - "exist, run GetAllPremiumRates.cs."; - } - } - - /// - /// Main method, to run this code example as a standalone application. - /// - public static void Main() - { - CreatePremiumRates codeExample = new CreatePremiumRates(); - Console.WriteLine(codeExample.Description); - codeExample.Run(new AdManagerUser()); - } - - /// - /// Run the code example. - /// - public void Run(AdManagerUser user) - { - using (PremiumRateService premiumRateService = user.GetService()) - { - // Set the rate card ID to add the premium rate to. - long rateCardId = long.Parse(_T("INSERT_RATE_CARD_ID_HERE")); - - PremiumRate premiumRate = new PremiumRate(); - - // Create an ad unit premium to apply to the rate card. - AdUnitPremiumFeature adUnitPremiumFeature = new AdUnitPremiumFeature(); - - // Create a CPM based premium rate value with adjustments in micro amounts. - // This will adjust a CPM priced proposal line item that has - // inventory targeting specified by 2 units of the currency associated with - // the rate card (this comes from absolute value adjustment). - PremiumRateValue cpmPremiumRateValue = new PremiumRateValue(); - cpmPremiumRateValue.premiumFeature = adUnitPremiumFeature; - cpmPremiumRateValue.rateType = RateType.CPM; - cpmPremiumRateValue.adjustmentSize = 2000000L; - cpmPremiumRateValue.adjustmentType = PremiumAdjustmentType.ABSOLUTE_VALUE; - - // Create a CPC based premium rate value with adjustments in milli amounts. - // This will adjust a CPC priced proposal line item that has - // inventory targeting specified by 10% of the cost associated with the rate - // card (this comes from a percentage adjustment). - PremiumRateValue cpcPremiumRateValue = new PremiumRateValue(); - cpcPremiumRateValue.premiumFeature = adUnitPremiumFeature; - cpcPremiumRateValue.rateType = RateType.CPC; - cpcPremiumRateValue.adjustmentSize = 10000L; - cpcPremiumRateValue.adjustmentType = PremiumAdjustmentType.PERCENTAGE; - - // Associate premium rate with the rate card and set premium information. - // This premium will apply for proposal line items targeting 'any' ad unit - // for both CPM and CPC rate types. - premiumRate.rateCardId = rateCardId; - premiumRate.pricingMethod = PricingMethod.ANY_VALUE; - premiumRate.premiumFeature = adUnitPremiumFeature; - premiumRate.premiumRateValues = new PremiumRateValue[] - { - cpmPremiumRateValue, - cpcPremiumRateValue - }; - - try - { - // Create the premium rate on the server. - PremiumRate[] premiumRates = premiumRateService.createPremiumRates( - new PremiumRate[] - { - premiumRate - }); - - foreach (PremiumRate createdPremiumRate in premiumRates) - { - Console.WriteLine( - "A premium rate for '{0}' was added to the rate card with " + - "ID of '{1}'.", createdPremiumRate.premiumFeature.GetType().Name, - createdPremiumRate.rateCardId); - } - } - catch (Exception e) - { - Console.WriteLine("Failed to create premium rates. Exception says \"{0}\"", - e.Message); - } - } - } - } -} diff --git a/examples/AdManager/CSharp/v201811/PremiumRateService/GetPremiumRatesForRateCard.cs b/examples/AdManager/CSharp/v201811/PremiumRateService/GetPremiumRatesForRateCard.cs deleted file mode 100755 index 64ef246825a..00000000000 --- a/examples/AdManager/CSharp/v201811/PremiumRateService/GetPremiumRatesForRateCard.cs +++ /dev/null @@ -1,97 +0,0 @@ -// Copyright 2017, Google Inc. All Rights Reserved. -// -// 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.v201811; -using Google.Api.Ads.AdManager.v201811; - -using System; - -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 -{ - /// - /// This example gets all premium rates on a specific rate card. - /// - public class GetPremiumRatesForRateCard : SampleBase - { - /// - /// Returns a description about the code example. - /// - public override string Description - { - get { return "This example gets all premium rates on a specific rate card."; } - } - - /// - /// Main method, to run this code example as a standalone application. - /// - public static void Main() - { - GetPremiumRatesForRateCard codeExample = new GetPremiumRatesForRateCard(); - long rateCardId = long.Parse("INSERT_RATE_CARD_ID_HERE"); - Console.WriteLine(codeExample.Description); - try - { - codeExample.Run(new AdManagerUser(), rateCardId); - } - catch (Exception e) - { - Console.WriteLine("Failed to get premium rates. Exception says \"{0}\"", e.Message); - } - } - - /// - /// Run the code example. - /// - public void Run(AdManagerUser user, long rateCardId) - { - using (PremiumRateService premiumRateService = user.GetService()) - { - // Create a statement to select premium rates. - int pageSize = StatementBuilder.SUGGESTED_PAGE_LIMIT; - StatementBuilder statementBuilder = new StatementBuilder() - .Where("rateCardId = :rateCardId").OrderBy("id ASC").Limit(pageSize) - .AddValue("rateCardId", rateCardId); - - // Retrieve a small amount of premium rates at a time, paging through until all - // premium rates have been retrieved. - int totalResultSetSize = 0; - do - { - PremiumRatePage page = - premiumRateService.getPremiumRatesByStatement( - statementBuilder.ToStatement()); - - // Print out some information for each premium rate. - if (page.results != null) - { - totalResultSetSize = page.totalResultSetSize; - int i = page.startIndex; - foreach (PremiumRate premiumRate in page.results) - { - Console.WriteLine( - "{0}) Premium rate with ID {1}, " + "premium feature \"{2}\", " + - "and rate card ID {3} was found.", i++, premiumRate.id, - premiumRate.GetType().Name, premiumRate.rateCardId); - } - } - - statementBuilder.IncreaseOffsetBy(pageSize); - } while (statementBuilder.GetOffset() < totalResultSetSize); - - Console.WriteLine("Number of results found: {0}", totalResultSetSize); - } - } - } -} diff --git a/examples/AdManager/CSharp/v201811/PremiumRateService/UpdatePremiumRates.cs b/examples/AdManager/CSharp/v201811/PremiumRateService/UpdatePremiumRates.cs deleted file mode 100755 index f5382e65ef5..00000000000 --- a/examples/AdManager/CSharp/v201811/PremiumRateService/UpdatePremiumRates.cs +++ /dev/null @@ -1,124 +0,0 @@ -// Copyright 2018, Google Inc. All Rights Reserved. -// -// 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.v201811; -using Google.Api.Ads.AdManager.v201811; - -using System; -using System.Collections.Generic; - -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 -{ - /// - /// This code example updates a premium rate to add a flat fee to an existing feature premium. - /// To determine which premium rates exist, run GetAllPremiumRates.cs. - /// - public class UpdatePremiumRates : SampleBase - { - /// - /// Returns a description about the code example. - /// - public override string Description - { - get - { - return "This code example updates a premium rate to add a flat fee to an " + - "existing feature premium. To determine which premium rates exist, " + - "run GetAllPremiumRates.cs."; - } - } - - /// - /// Main method, to run this code example as a standalone application. - /// - public static void Main() - { - UpdatePremiumRates codeExample = new UpdatePremiumRates(); - Console.WriteLine(codeExample.Description); - codeExample.Run(new AdManagerUser()); - } - - /// - /// Run the code example. - /// - public void Run(AdManagerUser user) - { - using (PremiumRateService premiumRateService = user.GetService()) - { - long premiumRateId = long.Parse(_T("INSERT_PREMIUM_RATE_ID_HERE")); - - // Create a statement to get the premium rate. - StatementBuilder statementBuilder = new StatementBuilder() - .Where("id = :id") - .OrderBy("id ASC") - .Limit(1) - .AddValue("id", premiumRateId); - - try - { - // Get premium rates by statement. - PremiumRatePage page = - premiumRateService.getPremiumRatesByStatement( - statementBuilder.ToStatement()); - - PremiumRate premiumRate = page.results[0]; - - // Create a flat fee based premium rate value with a 10% increase. - PremiumRateValue flatFeePremiumRateValue = new PremiumRateValue(); - flatFeePremiumRateValue.premiumFeature = premiumRate.premiumFeature; - flatFeePremiumRateValue.rateType = RateType.CPM; - flatFeePremiumRateValue.adjustmentSize = 10000L; - flatFeePremiumRateValue.adjustmentType = PremiumAdjustmentType.PERCENTAGE; - - // Update the premium rate's values to include a flat fee premium rate. - List existingPremiumRateValues = - (premiumRate.premiumRateValues != null) - ? new List(premiumRate.premiumRateValues) - : new List(); - - existingPremiumRateValues.Add(flatFeePremiumRateValue); - premiumRate.premiumRateValues = existingPremiumRateValues.ToArray(); - - // Update the premium rates on the server. - PremiumRate[] premiumRates = premiumRateService.updatePremiumRates( - new PremiumRate[] - { - premiumRate - }); - - if (premiumRates != null) - { - foreach (PremiumRate updatedPremiumRate in premiumRates) - { - Console.WriteLine( - "Premium rate with ID '{0}' associated with rate card ID '{1}' " + - "was updated.", updatedPremiumRate.id, - updatedPremiumRate.rateCardId); - } - } - else - { - Console.WriteLine("No premium rates updated."); - } - } - catch (Exception e) - { - Console.WriteLine("Failed to update premium rates. Exception says \"{0}\"", - e.Message); - } - } - } - } -} diff --git a/examples/AdManager/CSharp/v201811/ProductPackageItemService/GetAllProductPackageItems.cs b/examples/AdManager/CSharp/v201811/ProductPackageItemService/GetAllProductPackageItems.cs deleted file mode 100755 index efa42ecf928..00000000000 --- a/examples/AdManager/CSharp/v201811/ProductPackageItemService/GetAllProductPackageItems.cs +++ /dev/null @@ -1,97 +0,0 @@ -// Copyright 2017, Google Inc. All Rights Reserved. -// -// 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.v201811; -using Google.Api.Ads.AdManager.v201811; - -using System; - -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 -{ - /// - /// This example gets all product package items. - /// - public class GetAllProductPackageItems : SampleBase - { - /// - /// Returns a description about the code example. - /// - public override string Description - { - get { return "This example gets all product package items."; } - } - - /// - /// Main method, to run this code example as a standalone application. - /// - public static void Main() - { - GetAllProductPackageItems codeExample = new GetAllProductPackageItems(); - Console.WriteLine(codeExample.Description); - try - { - codeExample.Run(new AdManagerUser()); - } - catch (Exception e) - { - Console.WriteLine("Failed to get product package items. Exception says \"{0}\"", - e.Message); - } - } - - /// - /// Run the code example. - /// - public void Run(AdManagerUser user) - { - using (ProductPackageItemService productPackageItemService = - user.GetService()) - { - // Create a statement to select product package items. - int pageSize = StatementBuilder.SUGGESTED_PAGE_LIMIT; - StatementBuilder statementBuilder = - new StatementBuilder().OrderBy("id ASC").Limit(pageSize); - - // Retrieve a small amount of product package items at a time, paging through until - // all product package items have been retrieved. - int totalResultSetSize = 0; - do - { - ProductPackageItemPage page = - productPackageItemService.getProductPackageItemsByStatement( - statementBuilder.ToStatement()); - - // Print out some information for each product package item. - if (page.results != null) - { - totalResultSetSize = page.totalResultSetSize; - int i = page.startIndex; - foreach (ProductPackageItem productPackageItem in page.results) - { - Console.WriteLine( - "{0}) Product package item with ID {1}, " + "product id {2}, " + - "and product package id {3} was found.", i++, productPackageItem.id, - productPackageItem.productId, productPackageItem.productPackageId); - } - } - - statementBuilder.IncreaseOffsetBy(pageSize); - } while (statementBuilder.GetOffset() < totalResultSetSize); - - Console.WriteLine("Number of results found: {0}", totalResultSetSize); - } - } - } -} diff --git a/examples/AdManager/CSharp/v201811/ProductPackageItemService/GetProductPackageItemsForProductPackage.cs b/examples/AdManager/CSharp/v201811/ProductPackageItemService/GetProductPackageItemsForProductPackage.cs deleted file mode 100755 index 977a05013c1..00000000000 --- a/examples/AdManager/CSharp/v201811/ProductPackageItemService/GetProductPackageItemsForProductPackage.cs +++ /dev/null @@ -1,104 +0,0 @@ -// Copyright 2017, Google Inc. All Rights Reserved. -// -// 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.v201811; -using Google.Api.Ads.AdManager.v201811; - -using System; - -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 -{ - /// - /// This example gets all product package items belonging to a product package. - /// - public class GetProductPackageItemsForProductPackage : SampleBase - { - /// - /// Returns a description about the code example. - /// - public override string Description - { - get - { - return - "This example gets all product package items belonging to a product package."; - } - } - - /// - /// Main method, to run this code example as a standalone application. - /// - public static void Main() - { - GetProductPackageItemsForProductPackage codeExample = - new GetProductPackageItemsForProductPackage(); - long productPackageId = long.Parse("INSERT_PRODUCT_PACKAGE_ID_HERE"); - Console.WriteLine(codeExample.Description); - try - { - codeExample.Run(new AdManagerUser(), productPackageId); - } - catch (Exception e) - { - Console.WriteLine("Failed to get product package items. Exception says \"{0}\"", - e.Message); - } - } - - /// - /// Run the code example. - /// - public void Run(AdManagerUser user, long productPackageId) - { - using (ProductPackageItemService productPackageItemService = - user.GetService()) - { - // Create a statement to select product package items. - int pageSize = StatementBuilder.SUGGESTED_PAGE_LIMIT; - StatementBuilder statementBuilder = new StatementBuilder() - .Where("productPackageId = :productPackageId").OrderBy("id ASC").Limit(pageSize) - .AddValue("productPackageId", productPackageId); - - // Retrieve a small amount of product package items at a time, paging through until - // all product package items have been retrieved. - int totalResultSetSize = 0; - do - { - ProductPackageItemPage page = - productPackageItemService.getProductPackageItemsByStatement( - statementBuilder.ToStatement()); - - // Print out some information for each product package item. - if (page.results != null) - { - totalResultSetSize = page.totalResultSetSize; - int i = page.startIndex; - foreach (ProductPackageItem productPackageItem in page.results) - { - Console.WriteLine( - "{0}) Product package item with ID {1}, " + "product ID {2}, " + - "and product package ID {3} was found.", i++, productPackageItem.id, - productPackageItem.productId, productPackageItem.productPackageId); - } - } - - statementBuilder.IncreaseOffsetBy(pageSize); - } while (statementBuilder.GetOffset() < totalResultSetSize); - - Console.WriteLine("Number of results found: {0}", totalResultSetSize); - } - } - } -} diff --git a/examples/AdManager/CSharp/v201811/ProductPackageService/ActivateProductPackage.cs b/examples/AdManager/CSharp/v201811/ProductPackageService/ActivateProductPackage.cs deleted file mode 100755 index 206250c08ef..00000000000 --- a/examples/AdManager/CSharp/v201811/ProductPackageService/ActivateProductPackage.cs +++ /dev/null @@ -1,136 +0,0 @@ -// Copyright 2018, Google Inc. All Rights Reserved. -// -// 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.v201811; -using Google.Api.Ads.AdManager.v201811; - -using System; -using System.Collections.Generic; - -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 -{ - /// - /// This code example activates a product package. To determine which product packages exist, - /// run GetAllProductPackages.cs. - /// ProductPackageService.performProductPackageAction - /// - public class ActivateProductPackage : SampleBase - { - /// - /// Returns a description about the code example. - /// - public override string Description - { - get - { - return - "This code example activates a product package. To determine which product " + - "packages exist, run GetAllProductPackages.cs."; - } - } - - /// - /// Main method, to run this code example as a standalone application. - /// - public static void Main() - { - ActivateProductPackage codeExample = new ActivateProductPackage(); - Console.WriteLine(codeExample.Description); - codeExample.Run(new AdManagerUser()); - } - - /// - /// Run the code example. - /// - public void Run(AdManagerUser user) - { - using (ProductPackageService productPackageService = - user.GetService()) - { - // Set the ID of the product package. - long productPackageId = long.Parse(_T("INSERT_PRODUCT_PACKAGE_ID_HERE")); - - // Create statement to select the product package. - StatementBuilder statementBuilder = new StatementBuilder() - .Where("id = :id") - .OrderBy("id ASC") - .Limit(1) - .AddValue("id", productPackageId); - - // Set default for page. - ProductPackagePage page = new ProductPackagePage(); - List productPackageIds = new List(); - int i = 0; - - try - { - do - { - // Get product packages by statement. - page = productPackageService.getProductPackagesByStatement( - statementBuilder.ToStatement()); - - if (page.results != null) - { - foreach (ProductPackage productPackage in page.results) - { - Console.WriteLine( - "{0}) Product package with ID = '{1}', name = '{2}', and " + - "status ='{3}' will be activated.", i++, productPackage.id, - productPackage.name, productPackage.status); - productPackageIds.Add(productPackage.id.ToString()); - } - } - - statementBuilder.IncreaseOffsetBy(StatementBuilder.SUGGESTED_PAGE_LIMIT); - } while (statementBuilder.GetOffset() < page.totalResultSetSize); - - Console.WriteLine("Number of product packages to be activated: {0}", - productPackageIds.Count); - - if (productPackageIds.Count > 0) - { - // Modify statement for action. - statementBuilder.RemoveLimitAndOffset(); - - // Create action. - ActivateProductPackages action = new ActivateProductPackages(); - - // Perform action. - UpdateResult result = - productPackageService.performProductPackageAction(action, - statementBuilder.ToStatement()); - - // Display results. - if (result != null && result.numChanges > 0) - { - Console.WriteLine("Number of product packages activated: {0}", - result.numChanges); - } - else - { - Console.WriteLine("No product packages were activated."); - } - } - } - catch (Exception e) - { - Console.WriteLine("Failed to activate product packages. Exception says \"{0}\"", - e.Message); - } - } - } - } -} diff --git a/examples/AdManager/CSharp/v201811/ProductPackageService/CreateProductPackages.cs b/examples/AdManager/CSharp/v201811/ProductPackageService/CreateProductPackages.cs deleted file mode 100755 index bfeb147b953..00000000000 --- a/examples/AdManager/CSharp/v201811/ProductPackageService/CreateProductPackages.cs +++ /dev/null @@ -1,93 +0,0 @@ -// Copyright 2018, Google Inc. All Rights Reserved. -// -// 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.v201811; - -using System; - -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 -{ - /// - /// This code example creates a product package. To determine which product packages exist, - /// run GetAllProductPackages.cs. - /// - public class CreateProductPackages : SampleBase - { - /// - /// Returns a description about the code example. - /// - public override string Description - { - get - { - return "This code example creates a product package. To determine which product " + - "packges exist, run GetAllProductPackages.cs."; - } - } - - /// - /// Main method, to run this code example as a standalone application. - /// - public static void Main() - { - CreateProductPackages codeExample = new CreateProductPackages(); - Console.WriteLine(codeExample.Description); - codeExample.Run(new AdManagerUser()); - } - - /// - /// Run the code example. - /// - public void Run(AdManagerUser user) - { - using (ProductPackageService productPackageService = - user.GetService()) - { - // Set the ID of the rate card to associate the product package with. - long rateCardId = long.Parse(_T("INSERT_RATE_CARD_ID_HERE")); - - // Create a product package. - ProductPackage productPackage = new ProductPackage(); - productPackage.name = "Product package #" + new Random().Next(int.MaxValue); - productPackage.rateCardIds = new long[] - { - rateCardId - }; - - try - { - // Create the product packages on the server. - ProductPackage[] packages = productPackageService.createProductPackages( - new ProductPackage[] - { - productPackage - }); - - foreach (ProductPackage createdProductPackage in packages) - { - Console.WriteLine( - "A product package with ID \"{0}\" and name \"{1}\" was created.", - createdProductPackage.id, createdProductPackage.name); - } - } - catch (Exception e) - { - Console.WriteLine("Failed to create product packages. Exception says \"{0}\"", - e.Message); - } - } - } - } -} diff --git a/examples/AdManager/CSharp/v201811/ProductPackageService/GetAllProductPackages.cs b/examples/AdManager/CSharp/v201811/ProductPackageService/GetAllProductPackages.cs deleted file mode 100755 index bb45836a0b4..00000000000 --- a/examples/AdManager/CSharp/v201811/ProductPackageService/GetAllProductPackages.cs +++ /dev/null @@ -1,97 +0,0 @@ -// Copyright 2017, Google Inc. All Rights Reserved. -// -// 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.v201811; -using Google.Api.Ads.AdManager.v201811; - -using System; - -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 -{ - /// - /// This example gets all product packages. - /// - public class GetAllProductPackages : SampleBase - { - /// - /// Returns a description about the code example. - /// - public override string Description - { - get { return "This example gets all product packages."; } - } - - /// - /// Main method, to run this code example as a standalone application. - /// - public static void Main() - { - GetAllProductPackages codeExample = new GetAllProductPackages(); - Console.WriteLine(codeExample.Description); - try - { - codeExample.Run(new AdManagerUser()); - } - catch (Exception e) - { - Console.WriteLine("Failed to get product packages. Exception says \"{0}\"", - e.Message); - } - } - - /// - /// Run the code example. - /// - public void Run(AdManagerUser user) - { - using (ProductPackageService productPackageService = - user.GetService() - ) - { - // Create a statement to select product packages. - int pageSize = StatementBuilder.SUGGESTED_PAGE_LIMIT; - StatementBuilder statementBuilder = - new StatementBuilder().OrderBy("id ASC").Limit(pageSize); - - // Retrieve a small amount of product packages at a time, paging through until all - // product packages have been retrieved. - int totalResultSetSize = 0; - do - { - ProductPackagePage page = - productPackageService.getProductPackagesByStatement(statementBuilder - .ToStatement()); - - // Print out some information for each product package. - if (page.results != null) - { - totalResultSetSize = page.totalResultSetSize; - int i = page.startIndex; - foreach (ProductPackage productPackage in page.results) - { - Console.WriteLine( - "{0}) Product package with ID {1} and name \"{2}\" was found.", i++, - productPackage.id, productPackage.name); - } - } - - statementBuilder.IncreaseOffsetBy(pageSize); - } while (statementBuilder.GetOffset() < totalResultSetSize); - - Console.WriteLine("Number of results found: {0}", totalResultSetSize); - } - } - } -} diff --git a/examples/AdManager/CSharp/v201811/ProductPackageService/UpdateProductPackages.cs b/examples/AdManager/CSharp/v201811/ProductPackageService/UpdateProductPackages.cs deleted file mode 100755 index 612b26ac81b..00000000000 --- a/examples/AdManager/CSharp/v201811/ProductPackageService/UpdateProductPackages.cs +++ /dev/null @@ -1,112 +0,0 @@ -// Copyright 2018, Google Inc. All Rights Reserved. -// -// 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.v201811; -using Google.Api.Ads.AdManager.v201811; - -using System; - -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 -{ - /// - /// This code example updates the notes of a product package. To determine which product - /// packages exist, run GetAllProductPackages.cs. - /// ProductPackageService.updateProductPackages - /// - public class UpdateProductPackages : SampleBase - { - /// - /// Returns a description about the code example. - /// - public override string Description - { - get - { - return "This code example updates the notes of a product package. To determine " + - "which product packages exist, run GetAllProductPackages.cs."; - } - } - - /// - /// Main method, to run this code example as a standalone application. - /// - public static void Main() - { - UpdateProductPackages codeExample = new UpdateProductPackages(); - Console.WriteLine(codeExample.Description); - codeExample.Run(new AdManagerUser()); - } - - /// - /// Run the code example. - /// - public void Run(AdManagerUser user) - { - using (ProductPackageService productPackageService = - user.GetService()) - { - long productPackageId = long.Parse(_T("INSERT_PRODUCT_PACKAGE_ID_HERE")); - - // Create a statement to get the product package. - StatementBuilder statementBuilder = new StatementBuilder() - .Where("id = :id") - .OrderBy("id ASC") - .Limit(1) - .AddValue("id", productPackageId); - - try - { - // Get the product package. - ProductPackagePage page = - productPackageService.getProductPackagesByStatement(statementBuilder - .ToStatement()); - - ProductPackage productPackage = page.results[0]; - - // Update the product package object by changing its notes. - productPackage.notes = - "This product package is not to be sold before the end of the " + "month."; - - // Update the product packages on the server. - ProductPackage[] productPackages = productPackageService.updateProductPackages( - new ProductPackage[] - { - productPackage - }); - - if (productPackages != null) - { - foreach (ProductPackage updatedProductPackage in productPackages) - { - Console.WriteLine( - "Product package with ID = \"{0}\", name = \"{1}\", and " + - "notes = \"{2}\" was updated.", updatedProductPackage.id, - updatedProductPackage.name, updatedProductPackage.notes); - } - } - else - { - Console.WriteLine("No product packages updated."); - } - } - catch (Exception e) - { - Console.WriteLine("Failed to update product packages. Exception says \"{0}\"", - e.Message); - } - } - } - } -} diff --git a/examples/AdManager/CSharp/v201811/ProductService/GetAllProducts.cs b/examples/AdManager/CSharp/v201811/ProductService/GetAllProducts.cs deleted file mode 100755 index b6c9e8d92c9..00000000000 --- a/examples/AdManager/CSharp/v201811/ProductService/GetAllProducts.cs +++ /dev/null @@ -1,93 +0,0 @@ -// Copyright 2017, Google Inc. All Rights Reserved. -// -// 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.v201811; -using Google.Api.Ads.AdManager.v201811; - -using System; - -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 -{ - /// - /// This example gets all products. - /// - public class GetAllProducts : SampleBase - { - /// - /// Returns a description about the code example. - /// - public override string Description - { - get { return "This example gets all products."; } - } - - /// - /// Main method, to run this code example as a standalone application. - /// - public static void Main() - { - GetAllProducts codeExample = new GetAllProducts(); - Console.WriteLine(codeExample.Description); - try - { - codeExample.Run(new AdManagerUser()); - } - catch (Exception e) - { - Console.WriteLine("Failed to get products. Exception says \"{0}\"", e.Message); - } - } - - /// - /// Run the code example. - /// - public void Run(AdManagerUser user) - { - using (ProductService productService = user.GetService()) - { - // Create a statement to select products. - int pageSize = StatementBuilder.SUGGESTED_PAGE_LIMIT; - StatementBuilder statementBuilder = - new StatementBuilder().OrderBy("id ASC").Limit(pageSize); - - // Retrieve a small amount of products at a time, paging through until all - // products have been retrieved. - int totalResultSetSize = 0; - do - { - ProductPage page = - productService.getProductsByStatement(statementBuilder.ToStatement()); - - // Print out some information for each product. - if (page.results != null) - { - totalResultSetSize = page.totalResultSetSize; - int i = page.startIndex; - foreach (Product product in page.results) - { - Console.WriteLine( - "{0}) Product with ID {1} and name \"{2}\" was found.", i++, - product.id, product.name); - } - } - - statementBuilder.IncreaseOffsetBy(pageSize); - } while (statementBuilder.GetOffset() < totalResultSetSize); - - Console.WriteLine("Number of results found: {0}", totalResultSetSize); - } - } - } -} diff --git a/examples/AdManager/CSharp/v201811/ProductService/GetProductsForProductTemplate.cs b/examples/AdManager/CSharp/v201811/ProductService/GetProductsForProductTemplate.cs deleted file mode 100755 index 62211a94c51..00000000000 --- a/examples/AdManager/CSharp/v201811/ProductService/GetProductsForProductTemplate.cs +++ /dev/null @@ -1,96 +0,0 @@ -// Copyright 2018, Google Inc. All Rights Reserved. -// -// 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.v201811; -using Google.Api.Ads.AdManager.v201811; - -using System; - -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 -{ - /// - /// This example gets all products created from a product template. - /// - public class GetProductsForProductTemplate : SampleBase - { - /// - /// Returns a description about the code example. - /// - public override string Description - { - get { return "This example gets all products created from a product template."; } - } - - /// - /// Main method, to run this code example as a standalone application. - /// - public static void Main() - { - GetProductsForProductTemplate codeExample = new GetProductsForProductTemplate(); - long productTemplateId = long.Parse("INSERT_PRODUCT_TEMPLATE_ID_HERE"); - Console.WriteLine(codeExample.Description); - try - { - codeExample.Run(new AdManagerUser(), productTemplateId); - } - catch (Exception e) - { - Console.WriteLine("Failed to get products. Exception says \"{0}\"", e.Message); - } - } - - /// - /// Run the code example. - /// - public void Run(AdManagerUser user, long productTemplateId) - { - using (ProductService productService = user.GetService()) - { - // Create a statement to select products. - int pageSize = StatementBuilder.SUGGESTED_PAGE_LIMIT; - StatementBuilder statementBuilder = new StatementBuilder() - .Where("productTemplateId = :productTemplateId").OrderBy("id ASC") - .Limit(pageSize) - .AddValue("productTemplateId", productTemplateId); - - // Retrieve a small amount of products at a time, paging through until all - // products have been retrieved. - int totalResultSetSize = 0; - do - { - ProductPage page = - productService.getProductsByStatement(statementBuilder.ToStatement()); - - // Print out some information for each product. - if (page.results != null) - { - totalResultSetSize = page.totalResultSetSize; - int i = page.startIndex; - foreach (Product product in page.results) - { - Console.WriteLine( - "{0}) Product with ID {1} and name \"{2}\" was found.", i++, - product.id, product.name); - } - } - - statementBuilder.IncreaseOffsetBy(pageSize); - } while (statementBuilder.GetOffset() < totalResultSetSize); - - Console.WriteLine("Number of results found: {0}", totalResultSetSize); - } - } - } -} diff --git a/examples/AdManager/CSharp/v201811/ProductService/UpdateProducts.cs b/examples/AdManager/CSharp/v201811/ProductService/UpdateProducts.cs deleted file mode 100755 index ffe17d6398f..00000000000 --- a/examples/AdManager/CSharp/v201811/ProductService/UpdateProducts.cs +++ /dev/null @@ -1,107 +0,0 @@ -// Copyright 2018, Google Inc. All Rights Reserved. -// -// 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.v201811; -using Google.Api.Ads.AdManager.v201811; - -using System; - -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 -{ - /// - /// This code example updates the note of a product. To determine which products exist, - /// run GetAllProducts.cs. - /// - public class UpdateProducts : SampleBase - { - /// - /// Returns a description about the code example. - /// - public override string Description - { - get - { - return "This code example updates the note of an product. To determine which " + - "products exist, run GetAllProducts.cs."; - } - } - - /// - /// Main method, to run this code example as a standalone application. - /// - public static void Main() - { - UpdateProducts codeExample = new UpdateProducts(); - Console.WriteLine(codeExample.Description); - codeExample.Run(new AdManagerUser()); - } - - /// - /// Run the code example. - /// - public void Run(AdManagerUser user) - { - using (ProductService productService = user.GetService()) - { - long productId = long.Parse(_T("INSERT_PRODUCT_ID_HERE")); - - // Create a statement to get the product. - StatementBuilder statementBuilder = new StatementBuilder() - .Where("id = :id") - .OrderBy("id ASC") - .Limit(1) - .AddValue("id", productId); - - try - { - // Get products by statement. - ProductPage page = - productService.getProductsByStatement(statementBuilder.ToStatement()); - - Product product = page.results[0]; - - // Update the product object by changing its note. - product.notes = "Product needs further review before approval."; - - // Update the products on the server. - Product[] products = productService.updateProducts(new Product[] - { - product - }); - - if (products != null) - { - foreach (Product updatedProduct in products) - { - Console.WriteLine( - "Product with ID = '{0}', name = '{1}', and notes = '{2}' was " + - "updated.", updatedProduct.id, updatedProduct.name, - updatedProduct.notes); - } - } - else - { - Console.WriteLine("No products updated."); - } - } - catch (Exception e) - { - Console.WriteLine("Failed to update products. Exception says \"{0}\"", - e.Message); - } - } - } - } -} diff --git a/examples/AdManager/CSharp/v201811/ProductTemplateService/ActivateProductTemplates.cs b/examples/AdManager/CSharp/v201811/ProductTemplateService/ActivateProductTemplates.cs deleted file mode 100755 index c6d7469f20d..00000000000 --- a/examples/AdManager/CSharp/v201811/ProductTemplateService/ActivateProductTemplates.cs +++ /dev/null @@ -1,135 +0,0 @@ -// Copyright 2018, Google Inc. All Rights Reserved. -// -// 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.v201811; -using Google.Api.Ads.AdManager.v201811; - -using System; -using System.Collections.Generic; - -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 -{ - /// - /// This code example activates a product template. To determine which product templates - /// exist, run GetAllProductTemplates.cs. - /// - public class ActivateProductTemplates : SampleBase - { - /// - /// Returns a description about the code example. - /// - public override string Description - { - get - { - return - "This code example activates a product template. To determine which product " + - "templates exist, run GetAllProductTemplates.cs."; - } - } - - /// - /// Main method, to run this code example as a standalone application. - /// - public static void Main() - { - ActivateProductTemplates codeExample = new ActivateProductTemplates(); - Console.WriteLine(codeExample.Description); - codeExample.Run(new AdManagerUser()); - } - - /// - /// Run the code example. - /// - public void Run(AdManagerUser user) - { - using (ProductTemplateService productTemplateService = - user.GetService()) - { - // Set the ID of the product template to activate. - long productTemplateId = long.Parse(_T("INSERT_PRODUCT_TEMPLATE_ID_HERE")); - - // Create statement to select a product template by ID. - StatementBuilder statementBuilder = new StatementBuilder() - .Where("id = :id") - .OrderBy("id ASC") - .Limit(StatementBuilder.SUGGESTED_PAGE_LIMIT) - .AddValue("id", productTemplateId); - - // Set default for page. - ProductTemplatePage page = new ProductTemplatePage(); - List productTemplateIds = new List(); - - try - { - do - { - // Get product templates by statement. - page = productTemplateService.getProductTemplatesByStatement( - statementBuilder.ToStatement()); - - if (page.results != null) - { - int i = page.startIndex; - foreach (ProductTemplate productTemplate in page.results) - { - Console.WriteLine( - "{0}) Product template with ID ='{1}' will be activated.", i++, - productTemplate.id); - productTemplateIds.Add(productTemplate.id.ToString()); - } - } - - statementBuilder.IncreaseOffsetBy(StatementBuilder.SUGGESTED_PAGE_LIMIT); - } while (statementBuilder.GetOffset() < page.totalResultSetSize); - - Console.WriteLine("Number of product templates to be activated: {0}", - productTemplateIds.Count); - - if (productTemplateIds.Count > 0) - { - // Modify statement. - statementBuilder.RemoveLimitAndOffset(); - - // Create action. - Google.Api.Ads.AdManager.v201811.ActivateProductTemplates action = - new Google.Api.Ads.AdManager.v201811.ActivateProductTemplates(); - - // Perform action. - UpdateResult result = - productTemplateService.performProductTemplateAction(action, - statementBuilder.ToStatement()); - - // Display results. - if (result != null && result.numChanges > 0) - { - Console.WriteLine("Number of product templates activated: {0}", - result.numChanges); - } - else - { - Console.WriteLine("No product templates were activated."); - } - } - } - catch (Exception e) - { - Console.WriteLine( - "Failed to activate product templates. Exception says \"{0}\"", e.Message); - } - } - } - } -} diff --git a/examples/AdManager/CSharp/v201811/ProductTemplateService/CreateProductTemplates.cs b/examples/AdManager/CSharp/v201811/ProductTemplateService/CreateProductTemplates.cs deleted file mode 100755 index 6e0735860ff..00000000000 --- a/examples/AdManager/CSharp/v201811/ProductTemplateService/CreateProductTemplates.cs +++ /dev/null @@ -1,195 +0,0 @@ -// Copyright 2018, Google Inc. All Rights Reserved. -// -// 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.v201811; - -using System; - -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 -{ - /// - /// This code example creates a product template. To see which product templates exist, - /// run GetAllProductTemplates.cs. - /// - public class CreateProductTemplates : SampleBase - { - /// - /// Returns a description about the code example. - /// - public override string Description - { - get - { - return "This code example creates a product template. To see which product " + - "templates exist, run GetAllProductTemplates.cs."; - } - } - - /// - /// Main method, to run this code example as a standalone application. - /// - public static void Main() - { - CreateProductTemplates codeExample = new CreateProductTemplates(); - Console.WriteLine(codeExample.Description); - codeExample.Run(new AdManagerUser()); - } - - /// - /// Run the code examples. - /// - public void Run(AdManagerUser user) - { - using (ProductTemplateService productTemplateService = - user.GetService()) - - using (NetworkService networkService = user.GetService()) - { - // Create a product template. - ProductTemplate productTemplate = new ProductTemplate(); - productTemplate.name = "Product template #" + new Random().Next(int.MaxValue); - productTemplate.description = "This product template creates standard " + - "proposal line items targeting Chrome browsers with product segmentation " + - "on ad units and geo targeting."; - - // Set the name macro which will be used to generate the names of the products. - // This will create a segmentation based on the line item type, ad unit, and - // location. - productTemplate.nameMacro = - " - - - "; - - // Set the product type so the created proposal line items will be trafficked - // in DFP. - productTemplate.productType = ProductType.DFP; - - // Set rate type to create CPM priced proposal line items. - productTemplate.rateType = RateType.CPM; - - // Optionally set the creative rotation of the product to serve one or more - // creatives. - productTemplate.roadblockingType = RoadblockingType.ONE_OR_MORE; - productTemplate.deliveryRateType = DeliveryRateType.AS_FAST_AS_POSSIBLE; - - // Create the master creative placeholder. - CreativePlaceholder creativeMasterPlaceholder = new CreativePlaceholder(); - creativeMasterPlaceholder.size = new Size() - { - width = 728, - height = 90, - isAspectRatio = false - }; - - // Create companion creative placeholders. - CreativePlaceholder companionCreativePlaceholder = new CreativePlaceholder(); - companionCreativePlaceholder.size = new Size() - { - width = 300, - height = 250, - isAspectRatio = false - }; - - // Set the size of creatives that can be associated with the product template. - productTemplate.creativePlaceholders = new CreativePlaceholder[] - { - creativeMasterPlaceholder, - companionCreativePlaceholder - }; - - // Set the type of proposal line item to be created from the product template. - productTemplate.lineItemType = LineItemType.STANDARD; - - // Get the root ad unit ID used to target the whole site. - String rootAdUnitId = networkService.getCurrentNetwork().effectiveRootAdUnitId; - - // Create ad unit targeting for the root ad unit (i.e. the whole network). - AdUnitTargeting adUnitTargeting = new AdUnitTargeting(); - adUnitTargeting.adUnitId = rootAdUnitId; - adUnitTargeting.includeDescendants = true; - - // Create geo targeting for the US. - Location countryLocation = new Location(); - countryLocation.id = 2840L; - - // Create geo targeting for Hong Kong. - Location regionLocation = new Location(); - regionLocation.id = 2344L; - - GeoTargeting geoTargeting = new GeoTargeting(); - geoTargeting.targetedLocations = new Location[] - { - countryLocation, - regionLocation - }; - - // Add browser targeting to Chrome on the product template distinct from product - // segmentation. - Browser chromeBrowser = new Browser(); - chromeBrowser.id = 500072L; - - BrowserTargeting browserTargeting = new BrowserTargeting(); - browserTargeting.browsers = new Browser[] - { - chromeBrowser - }; - - TechnologyTargeting technologyTargeting = new TechnologyTargeting(); - technologyTargeting.browserTargeting = browserTargeting; - - Targeting productTemplateTargeting = new Targeting(); - productTemplateTargeting.technologyTargeting = technologyTargeting; - - productTemplate.builtInTargeting = productTemplateTargeting; - - productTemplate.customizableAttributes = new CustomizableAttributes() - { - allowPlacementTargetingCustomization = true - }; - - // Add inventory and geo targeting as product segmentation. - ProductSegmentation productSegmentation = new ProductSegmentation(); - productSegmentation.adUnitSegments = new AdUnitTargeting[] - { - adUnitTargeting - }; - productSegmentation.geoSegment = geoTargeting; - - productTemplate.productSegmentation = productSegmentation; - - try - { - // Create the product template on the server. - ProductTemplate[] productTemplates = - productTemplateService.createProductTemplates(new ProductTemplate[] - { - productTemplate - }); - - foreach (ProductTemplate createdProductTemplate in productTemplates) - { - Console.WriteLine( - "A product template with ID \"{0}\" and name \"{1}\" was created.", - createdProductTemplate.id, createdProductTemplate.name); - } - } - catch (Exception e) - { - Console.WriteLine( - "Failed to create product templates. Exception says \"{0}\"", - e.Message); - } - } - } - } -} diff --git a/examples/AdManager/CSharp/v201811/ProductTemplateService/CreateProgrammaticProductTemplates.cs b/examples/AdManager/CSharp/v201811/ProductTemplateService/CreateProgrammaticProductTemplates.cs deleted file mode 100755 index 880b4af49d9..00000000000 --- a/examples/AdManager/CSharp/v201811/ProductTemplateService/CreateProgrammaticProductTemplates.cs +++ /dev/null @@ -1,172 +0,0 @@ -// Copyright 2018, Google Inc. All Rights Reserved. -// -// 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.v201811; - -using System; - -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 -{ - /// - /// This example creates a programmatic product template. Your network must have - /// sales management enabled to run this example. - /// - /// To publish the created product template to Marketplace, you must create a - /// ProductTemplateBaseRate with a Marketplace rate card. - /// - public class CreateProgrammaticProductTemplates : SampleBase - { - /// - /// Returns a description about the code example. - /// - public override string Description - { - get - { - return "This example creates a programmatic product template. Your network must " + - "have sales management enabled to run this example. To publish the created " + - "product template to Marketplace, you must create a ProductTemplateBaseRate " + - "with a Marketplace rate card."; - } - } - - /// - /// Main method, to run this code example as a standalone application. - /// - public static void Main() - { - CreateProgrammaticProductTemplates codeExample = - new CreateProgrammaticProductTemplates(); - Console.WriteLine(codeExample.Description); - codeExample.Run(new AdManagerUser()); - } - - /// - /// Run the code examples. - /// - public void Run(AdManagerUser user) - { - using (ProductTemplateService productTemplateService = - user.GetService()) - - using (NetworkService networkService = - user.GetService()) - { - // Create a product template. - ProductTemplate productTemplate = new ProductTemplate(); - productTemplate.name = "Programmatic product template #" + - new Random().Next(int.MaxValue); - productTemplate.description = - "This product template creates programmatic proposal line " + - "items targeting all ad units with product segmentation on geo targeting."; - - // Set the name macro which will be used to generate the names of the products. - // This will create a segmentation based on the line item type, ad unit, and - // location. - productTemplate.nameMacro = - " - - - "; - - // Set the product type so the created proposal line items will be trafficked in - // DFP. - productTemplate.productType = ProductType.DFP; - - // Set required Marketplace information. - productTemplate.productTemplateMarketplaceInfo = - new ProductTemplateMarketplaceInfo() - { - adExchangeEnvironment = AdExchangeEnvironment.DISPLAY, - }; - - // Set rate type to create CPM priced proposal line items. - productTemplate.rateType = RateType.CPM; - - // Create the creative placeholder. - CreativePlaceholder creativePlaceholder = new CreativePlaceholder(); - creativePlaceholder.size = new Size() - { - width = 300, - height = 250, - isAspectRatio = false - }; - - // Set the size of creatives that can be associated with the product template. - productTemplate.creativePlaceholders = new CreativePlaceholder[] - { - creativePlaceholder - }; - - // Set the type of proposal line item to be created from the product template. - productTemplate.lineItemType = LineItemType.STANDARD; - - // Get the root ad unit ID used to target the whole site. - String rootAdUnitId = networkService.getCurrentNetwork().effectiveRootAdUnitId; - - // Create ad unit targeting for the root ad unit (i.e. the whole network). - AdUnitTargeting adUnitTargeting = new AdUnitTargeting(); - adUnitTargeting.adUnitId = rootAdUnitId; - adUnitTargeting.includeDescendants = true; - - // Create geo targeting for the US. - Location countryLocation = new Location(); - countryLocation.id = 2840L; - - // Create geo targeting for Hong Kong. - Location regionLocation = new Location(); - regionLocation.id = 2344L; - - GeoTargeting geoTargeting = new GeoTargeting(); - geoTargeting.targetedLocations = new Location[] - { - countryLocation, - regionLocation - }; - - // Add inventory and geo targeting as product segmentation. - ProductSegmentation productSegmentation = new ProductSegmentation(); - productSegmentation.adUnitSegments = new AdUnitTargeting[] - { - adUnitTargeting - }; - productSegmentation.geoSegment = geoTargeting; - - productTemplate.productSegmentation = productSegmentation; - - try - { - // Create the product template on the server. - ProductTemplate[] productTemplates = - productTemplateService.createProductTemplates(new ProductTemplate[] - { - productTemplate - }); - - foreach (ProductTemplate createdProductTemplate in productTemplates) - { - Console.WriteLine( - "A programmatic product template with ID \"{0}\" " + - "and name \"{1}\" was created.", createdProductTemplate.id, - createdProductTemplate.name); - } - } - catch (Exception e) - { - Console.WriteLine( - "Failed to create product templates. Exception says \"{0}\"", - e.Message); - } - } - } - } -} diff --git a/examples/AdManager/CSharp/v201811/ProductTemplateService/GetSponsorshipProductTemplates.cs b/examples/AdManager/CSharp/v201811/ProductTemplateService/GetSponsorshipProductTemplates.cs deleted file mode 100755 index e8cff2c14d1..00000000000 --- a/examples/AdManager/CSharp/v201811/ProductTemplateService/GetSponsorshipProductTemplates.cs +++ /dev/null @@ -1,97 +0,0 @@ -// Copyright 2017, Google Inc. All Rights Reserved. -// -// 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.v201811; -using Google.Api.Ads.AdManager.v201811; - -using System; - -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 -{ - /// - /// This example gets all sponsorship product templates. - /// - public class GetSponsorshipProductTemplates : SampleBase - { - /// - /// Returns a description about the code example. - /// - public override string Description - { - get { return "This example gets all sponsorship product templates."; } - } - - /// - /// Main method, to run this code example as a standalone application. - /// - public static void Main() - { - GetSponsorshipProductTemplates codeExample = new GetSponsorshipProductTemplates(); - Console.WriteLine(codeExample.Description); - try - { - codeExample.Run(new AdManagerUser()); - } - catch (Exception e) - { - Console.WriteLine("Failed to get product templates. Exception says \"{0}\"", - e.Message); - } - } - - /// - /// Run the code example. - /// - public void Run(AdManagerUser user) - { - using (ProductTemplateService productTemplateService = - user.GetService()) - { - // Create a statement to select product templates. - int pageSize = StatementBuilder.SUGGESTED_PAGE_LIMIT; - StatementBuilder statementBuilder = new StatementBuilder() - .Where("lineItemType = :lineItemType").OrderBy("id ASC").Limit(pageSize) - .AddValue("lineItemType", LineItemType.SPONSORSHIP.ToString()); - - // Retrieve a small amount of product templates at a time, paging through until all - // product templates have been retrieved. - int totalResultSetSize = 0; - do - { - ProductTemplatePage page = - productTemplateService.getProductTemplatesByStatement( - statementBuilder.ToStatement()); - - // Print out some information for each product template. - if (page.results != null) - { - totalResultSetSize = page.totalResultSetSize; - int i = page.startIndex; - foreach (ProductTemplate productTemplate in page.results) - { - Console.WriteLine( - "{0}) Product template with ID {1} and name \"{2}\" was found.", - i++, productTemplate.id, productTemplate.name); - } - } - - statementBuilder.IncreaseOffsetBy(pageSize); - } while (statementBuilder.GetOffset() < totalResultSetSize); - - Console.WriteLine("Number of results found: {0}", totalResultSetSize); - } - } - } -} diff --git a/examples/AdManager/CSharp/v201811/ProductTemplateService/UpdateProductTemplates.cs b/examples/AdManager/CSharp/v201811/ProductTemplateService/UpdateProductTemplates.cs deleted file mode 100755 index e7b2ce0df68..00000000000 --- a/examples/AdManager/CSharp/v201811/ProductTemplateService/UpdateProductTemplates.cs +++ /dev/null @@ -1,137 +0,0 @@ -// Copyright 2018, Google Inc. All Rights Reserved. -// -// 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.v201811; -using Google.Api.Ads.AdManager.v201811; - -using System; -using System.Collections.Generic; - -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 -{ - /// - /// This example updates a product template's targeting to include a new GeoTarget. - /// To determine which product templates exist, run GetAllProductTemplates.cs. - /// - public class UpdateProductTemplates : SampleBase - { - /// - /// Returns a description about the code example. - /// - public override string Description - { - get - { - return "This example updates a product template's targeting to include a new " + - "GeoTarget. To determine which product templates exist, " + - "run GetAllProductTemplates.cs."; - } - } - - /// - /// Main method, to run this code example as a standalone application. - /// - public static void Main() - { - UpdateProductTemplates codeExample = new UpdateProductTemplates(); - Console.WriteLine(codeExample.Description); - codeExample.Run(new AdManagerUser()); - } - - /// - /// Run the code example. - /// - public void Run(AdManagerUser user) - { - using (ProductTemplateService productTemplateService = - user.GetService()) - { - // Set the ID of the product template. - long productTemplateId = long.Parse(_T("INSERT_PRODUCT_TEMPLATE_ID_HERE")); - - // Create a statement to get the product template. - StatementBuilder statementBuilder = new StatementBuilder() - .Where("id = :id") - .OrderBy("id ASC") - .Limit(1) - .AddValue("id", productTemplateId); - - try - { - // Get product templates by statement. - ProductTemplatePage page = - productTemplateService.getProductTemplatesByStatement( - statementBuilder.ToStatement()); - - ProductTemplate productTemplate = page.results[0]; - - // Add geo targeting for Canada to the product template. - Location countryLocation = new Location(); - countryLocation.id = 2124L; - - Targeting productTemplateTargeting = productTemplate.builtInTargeting; - GeoTargeting geoTargeting = productTemplateTargeting.geoTargeting; - - List existingTargetedLocations = new List(); - - if (geoTargeting == null) - { - geoTargeting = new GeoTargeting(); - } - else if (geoTargeting.targetedLocations != null) - { - existingTargetedLocations = - new List(geoTargeting.targetedLocations); - } - - existingTargetedLocations.Add(countryLocation); - - Location[] newTargetedLocations = new Location[existingTargetedLocations.Count]; - existingTargetedLocations.CopyTo(newTargetedLocations); - geoTargeting.targetedLocations = newTargetedLocations; - - productTemplateTargeting.geoTargeting = geoTargeting; - productTemplate.builtInTargeting = productTemplateTargeting; - - // Update the product template on the server. - ProductTemplate[] productTemplates = - productTemplateService.updateProductTemplates(new ProductTemplate[] - { - productTemplate - }); - - if (productTemplates != null) - { - foreach (ProductTemplate updatedProductTemplate in productTemplates) - { - Console.WriteLine( - "A product template with ID = '{0}' and name '{1}' was updated.", - updatedProductTemplate.id, updatedProductTemplate.name); - } - } - else - { - Console.WriteLine("No product templates updated."); - } - } - catch (Exception e) - { - Console.WriteLine("Failed to update product templates. Exception says \"{0}\"", - e.Message); - } - } - } - } -} diff --git a/examples/AdManager/CSharp/v201811/ProposalLineItemService/CreateProgrammaticProposalLineItems.cs b/examples/AdManager/CSharp/v201811/ProposalLineItemService/CreateProgrammaticProposalLineItems.cs deleted file mode 100755 index 1e02c8235b0..00000000000 --- a/examples/AdManager/CSharp/v201811/ProposalLineItemService/CreateProgrammaticProposalLineItems.cs +++ /dev/null @@ -1,133 +0,0 @@ -// Copyright 2018, Google Inc. All Rights Reserved. -// -// 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.v201811; -using Google.Api.Ads.AdManager.v201811; - -using System; - -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 -{ - /// - /// This code example creates a new programmatic proposal line item that - /// uses its product's targeting. Your network must have sales management enabled - /// to run this example. - /// - public class CreateProgrammaticProposalLineItems : SampleBase - { - /// - /// Returns a description about the code example. - /// - public override string Description - { - get - { - return "This code example creates a new programmatic proposal line item that " + - "uses its product's targeting. Your network must have sales management " + - "enabled to run this example."; - } - } - - /// - /// Main method, to run this code example as a standalone application. - /// - public static void Main() - { - CreateProgrammaticProposalLineItems codeExample = - new CreateProgrammaticProposalLineItems(); - Console.WriteLine(codeExample.Description); - - long proposalId = long.Parse(_T("INSERT_PROPOSAL_ID_HERE")); - long rateCardId = long.Parse(_T("INSERT_RATE_CARD_ID_HERE")); - long productId = long.Parse(_T("INSERT_PRODUCT_ID_HERE")); - - codeExample.Run(new AdManagerUser(), proposalId, rateCardId, productId); - } - - /// - /// Run the code examples. - /// - public void Run(AdManagerUser user, long proposalId, long rateCardId, long productId) - { - using (ProposalLineItemService proposalLineItemService = - user.GetService()) - { - // Create a proposal line item. - ProposalLineItem proposalLineItem = new ProposalLineItem(); - proposalLineItem.name = "Programmatic proposal line item #" + - new Random().Next(int.MaxValue); - proposalLineItem.proposalId = proposalId; - proposalLineItem.rateCardId = rateCardId; - proposalLineItem.productId = productId; - - // Set the Marketplace information. - proposalLineItem.marketplaceInfo = new ProposalLineItemMarketplaceInfo() - { - adExchangeEnvironment = AdExchangeEnvironment.DISPLAY - }; - - // Set the length of the proposal line item to run. - proposalLineItem.startDateTime = - DateTimeUtilities.FromDateTime(System.DateTime.Now.AddDays(7), - "America/New_York"); - proposalLineItem.endDateTime = - DateTimeUtilities.FromDateTime(System.DateTime.Now.AddDays(30), - "America/New_York"); - - // Set pricing for the proposal line item for 1000 impressions at a CPM of $2 - // for a total value of $2. - proposalLineItem.goal = new Goal() - { - unitType = UnitType.IMPRESSIONS, - units = 1000L - }; - proposalLineItem.netCost = new Money() - { - currencyCode = "USD", - microAmount = 2000000L - }; - proposalLineItem.netRate = new Money() - { - currencyCode = "USD", - microAmount = 2000000L - }; - proposalLineItem.rateType = RateType.CPM; - - try - { - // Create the proposal line item on the server. - ProposalLineItem[] proposalLineItems = - proposalLineItemService.createProposalLineItems(new ProposalLineItem[] - { - proposalLineItem - }); - - foreach (ProposalLineItem createdProposalLineItem in proposalLineItems) - { - Console.WriteLine( - "A programmatic proposal line item with ID \"{0}\" " + - "and name \"{1}\" was created.", createdProposalLineItem.id, - createdProposalLineItem.name); - } - } - catch (Exception e) - { - Console.WriteLine( - "Failed to create proposal line items. Exception says \"{0}\"", e.Message); - } - } - } - } -} diff --git a/examples/AdManager/CSharp/v201811/ProposalLineItemService/CreateProgrammaticProposalLineItemsForNonSalesManagement.cs b/examples/AdManager/CSharp/v201811/ProposalLineItemService/CreateProgrammaticProposalLineItemsForNonSalesManagement.cs deleted file mode 100755 index dd6fe31af95..00000000000 --- a/examples/AdManager/CSharp/v201811/ProposalLineItemService/CreateProgrammaticProposalLineItemsForNonSalesManagement.cs +++ /dev/null @@ -1,170 +0,0 @@ -// Copyright 2018, Google Inc. All Rights Reserved. -// -// 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.v201811; -using Google.Api.Ads.AdManager.v201811; - -using System; - -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 -{ - /// - /// This example creates a new programmatic proposal line item in a - /// non-sales management network. - /// - public class CreateProgrammaticProposalLineItemsForNonSalesManagement : SampleBase - { - /// - /// Returns a description about the code example. - /// - public override string Description - { - get - { - return "This example creates a new programmatic proposal line item in a " + - "non-sales management network."; - } - } - - /// - /// Main method, to run this code example as a standalone application. - /// - public static void Main() - { - CreateProgrammaticProposalLineItemsForNonSalesManagement codeExample = - new CreateProgrammaticProposalLineItemsForNonSalesManagement(); - Console.WriteLine(codeExample.Description); - - // Set the ID of the proposal that the proposal line item will belong to. - long proposalId = long.Parse(_T("INSERT_PROPOSAL_ID_HERE")); - - codeExample.Run(new AdManagerUser(), proposalId); - } - - /// - /// Run the code examples. - /// - public void Run(AdManagerUser user, long proposalId) - { - using (ProposalLineItemService proposalLineItemService = - user.GetService()) - - using (NetworkService networkService = user.GetService()) - { - ProposalLineItem proposalLineItem = new ProposalLineItem(); - proposalLineItem.name = "Programmatic proposal line item #" + - new Random().Next(int.MaxValue); - proposalLineItem.proposalId = proposalId; - proposalLineItem.lineItemType = LineItemType.STANDARD; - - // Set required Marketplace information. - proposalLineItem.marketplaceInfo = new ProposalLineItemMarketplaceInfo() - { - adExchangeEnvironment = AdExchangeEnvironment.DISPLAY - }; - - // Get the root ad unit ID used to target the whole site. - String rootAdUnitId = networkService.getCurrentNetwork().effectiveRootAdUnitId; - - // Create inventory targeting. - InventoryTargeting inventoryTargeting = new InventoryTargeting(); - - // Create ad unit targeting for the root ad unit (i.e. the whole network). - AdUnitTargeting adUnitTargeting = new AdUnitTargeting(); - adUnitTargeting.adUnitId = rootAdUnitId; - adUnitTargeting.includeDescendants = true; - - inventoryTargeting.targetedAdUnits = new AdUnitTargeting[] - { - adUnitTargeting - }; - - // Create targeting. - Targeting targeting = new Targeting(); - targeting.inventoryTargeting = inventoryTargeting; - proposalLineItem.targeting = targeting; - - // Create creative placeholder. - Size size = new Size() - { - width = 300, - height = 250, - isAspectRatio = false - }; - CreativePlaceholder creativePlaceholder = new CreativePlaceholder(); - creativePlaceholder.size = size; - - proposalLineItem.creativePlaceholders = new CreativePlaceholder[] - { - creativePlaceholder - }; - - // Set the length of the proposal line item to run. - proposalLineItem.startDateTime = - DateTimeUtilities.FromDateTime(System.DateTime.Now.AddDays(7), - "America/New_York"); - proposalLineItem.endDateTime = - DateTimeUtilities.FromDateTime(System.DateTime.Now.AddDays(30), - "America/New_York"); - - // Set delivery specifications for the proposal line item. - proposalLineItem.deliveryRateType = DeliveryRateType.EVENLY; - - // Set pricing for the proposal line item for 1000 impressions at a CPM of $2 - // for a total value of $2. - proposalLineItem.goal = new Goal() - { - unitType = UnitType.IMPRESSIONS, - units = 1000L - }; - proposalLineItem.netCost = new Money() - { - currencyCode = "USD", - microAmount = 2000000L - }; - proposalLineItem.netRate = new Money() - { - currencyCode = "USD", - microAmount = 2000000L - }; - proposalLineItem.rateType = RateType.CPM; - - try - { - // Create the proposal line item on the server. - ProposalLineItem[] proposalLineItems = - proposalLineItemService.createProposalLineItems(new ProposalLineItem[] - { - proposalLineItem - }); - - foreach (ProposalLineItem createdProposalLineItem in proposalLineItems) - { - Console.WriteLine( - "A programmatic proposal line item with ID \"{0}\" " + - "and name \"{1}\" was created.", createdProposalLineItem.id, - createdProposalLineItem.name); - } - } - catch (Exception e) - { - Console.WriteLine( - "Failed to create programmatic proposal line items. " + - "Exception says \"{0}\"", e.Message); - } - } - } - } -} diff --git a/examples/AdManager/CSharp/v201811/ProposalLineItemService/CreateProposalLineItems.cs b/examples/AdManager/CSharp/v201811/ProposalLineItemService/CreateProposalLineItems.cs deleted file mode 100755 index a21d527bb70..00000000000 --- a/examples/AdManager/CSharp/v201811/ProposalLineItemService/CreateProposalLineItems.cs +++ /dev/null @@ -1,158 +0,0 @@ -// Copyright 2018, Google Inc. All Rights Reserved. -// -// 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.v201811; -using Google.Api.Ads.AdManager.v201811; - -using System; - -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 -{ - /// - /// This code example creates a new proposal line items. To determine which - /// proposal line items exist, run GetAllProposalLineItems.cs. To determine - /// which proposals exist, run GetAllProposals.cs. - /// - public class CreateProposalLineItems : SampleBase - { - /// - /// Returns a description about the code example. - /// - public override string Description - { - get - { - return "This code example creates new proposal line items. To determine which " + - "proposal line items exist, run GetAllProposalLineItems.cs. To determine " + - "which proposals exist, run GetAllProposals.cs."; - } - } - - /// - /// Main method, to run this code example as a standalone application. - /// - public static void Main() - { - CreateProposalLineItems codeExample = new CreateProposalLineItems(); - Console.WriteLine(codeExample.Description); - codeExample.Run(new AdManagerUser()); - } - - /// - /// Run the code examples. - /// - public void Run(AdManagerUser user) - { - using (ProposalLineItemService proposalLineItemService = - user.GetService()) - - using (NetworkService networkService = user.GetService()) - { - long proposalId = long.Parse(_T("INSERT_PROPOSAL_ID_HERE")); - long rateCardId = long.Parse(_T("INSERT_RATE_CARD_ID_HERE")); - long productId = long.Parse(_T("INSERT_PRODUCT_ID_HERE")); - - // Get the root ad unit ID used to target the whole site. - String rootAdUnitId = networkService.getCurrentNetwork().effectiveRootAdUnitId; - - // Create inventory targeting. - InventoryTargeting inventoryTargeting = new InventoryTargeting(); - - // Create ad unit targeting for the root ad unit (i.e. the whole network). - AdUnitTargeting adUnitTargeting = new AdUnitTargeting(); - adUnitTargeting.adUnitId = rootAdUnitId; - adUnitTargeting.includeDescendants = true; - - inventoryTargeting.targetedAdUnits = new AdUnitTargeting[] - { - adUnitTargeting - }; - - // Create targeting. - Targeting targeting = new Targeting(); - targeting.inventoryTargeting = inventoryTargeting; - - // Create a proposal line item. - ProposalLineItem proposalLineItem = new ProposalLineItem(); - proposalLineItem.name = - "Proposal line item #" + new Random().Next(int.MaxValue); - - proposalLineItem.proposalId = proposalId; - proposalLineItem.rateCardId = rateCardId; - proposalLineItem.productId = productId; - proposalLineItem.targeting = targeting; - - // Set the length of the proposal line item to run. - proposalLineItem.startDateTime = - DateTimeUtilities.FromDateTime(System.DateTime.Now.AddDays(7), - "America/New_York"); - proposalLineItem.endDateTime = - DateTimeUtilities.FromDateTime(System.DateTime.Now.AddDays(30), - "America/New_York"); - - // Set delivery specifications for the proposal line item. - proposalLineItem.deliveryRateType = DeliveryRateType.EVENLY; - proposalLineItem.creativeRotationType = CreativeRotationType.OPTIMIZED; - - // Set billing specifications for the proposal line item. - proposalLineItem.billingCap = BillingCap.CAPPED_CUMULATIVE; - proposalLineItem.billingSource = BillingSource.THIRD_PARTY_VOLUME; - - // Set pricing for the proposal line item for 1000 impressions at a CPM of $2 - // for a total value of $2. - proposalLineItem.goal = new Goal() - { - unitType = UnitType.IMPRESSIONS, - units = 1000L - }; - proposalLineItem.netCost = new Money() - { - currencyCode = "USD", - microAmount = 2000000L - }; - proposalLineItem.netRate = new Money() - { - currencyCode = "USD", - microAmount = 2000000L - }; - proposalLineItem.rateType = RateType.CPM; - - try - { - // Create the proposal line item on the server. - ProposalLineItem[] proposalLineItems = - proposalLineItemService.createProposalLineItems(new ProposalLineItem[] - { - proposalLineItem - }); - - foreach (ProposalLineItem createdProposalLineItem in proposalLineItems) - { - Console.WriteLine( - "A proposal line item with ID \"{0}\" and name \"{1}\" was " + - "created.", - createdProposalLineItem.id, createdProposalLineItem.name); - } - } - catch (Exception e) - { - Console.WriteLine( - "Failed to create proposal line items. Exception says \"{0}\"", - e.Message); - } - } - } - } -} diff --git a/examples/AdManager/CSharp/v201811/ProposalService/CreateProgrammaticProposals.cs b/examples/AdManager/CSharp/v201811/ProposalService/CreateProgrammaticProposals.cs deleted file mode 100755 index 57dc597f4e2..00000000000 --- a/examples/AdManager/CSharp/v201811/ProposalService/CreateProgrammaticProposals.cs +++ /dev/null @@ -1,128 +0,0 @@ -// Copyright 2018, Google Inc. All Rights Reserved. -// -// 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.v201811; - -using System; - -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 -{ - /// - /// This example creates a programmatic proposal. Your network must have sales management - /// enabled to run this example. - /// - public class CreateProgrammaticProposals : SampleBase - { - /// - /// Returns a description about the code example. - /// - public override string Description - { - get - { - return - "This example creates a programmatic proposal. Your network must have sales " + - "management enabled to run this example."; - } - } - - /// - /// Main method, to run this code example as a standalone application. - /// - public static void Main() - { - CreateProgrammaticProposals codeExample = new CreateProgrammaticProposals(); - Console.WriteLine(codeExample.Description); - - // Set the advertiser, salesperson, and trafficker to assign to each - // order. - long advertiserId = long.Parse(_T("INSERT_ADVERTISER_ID_HERE")); - long buyerId = long.Parse(_T("INSERT_BUYER_ID_HERE")); - long primarySalespersonId = long.Parse(_T("INSERT_PRIMARY_SALESPERSON_ID_HERE")); - long primaryTraffickerId = long.Parse(_T("INSERT_PRIMARY_TRAFFICKER_ID_HERE")); - - codeExample.Run(new AdManagerUser(), advertiserId, buyerId, primarySalespersonId, - primaryTraffickerId); - } - - /// - /// Run the code example. - /// - public void Run(AdManagerUser user, long advertiserId, long buyerId, - long primarySalespersonId, long primaryTraffickerId) - { - using (ProposalService proposalService = user.GetService()) - using (NetworkService networkService = user.GetService()) - { - // Create a proposal. - Proposal proposal = new Proposal(); - proposal.name = "Programmatic proposal #" + new Random().Next(int.MaxValue); - - // Set the required Marketplace information. - proposal.marketplaceInfo = new ProposalMarketplaceInfo() - { - buyerAccountId = buyerId - }; - proposal.isProgrammatic = true; - - // Create a proposal company association. - ProposalCompanyAssociation proposalCompanyAssociation = - new ProposalCompanyAssociation(); - proposalCompanyAssociation.companyId = advertiserId; - proposalCompanyAssociation.type = ProposalCompanyAssociationType.ADVERTISER; - proposal.advertiser = proposalCompanyAssociation; - - // Create salesperson splits for the primary salesperson. - SalespersonSplit primarySalesperson = new SalespersonSplit(); - primarySalesperson.userId = primarySalespersonId; - primarySalesperson.split = 100000; - proposal.primarySalesperson = primarySalesperson; - - // Set the probability to close to 100%. - proposal.probabilityOfClose = 100000L; - - // Set the primary trafficker on the proposal for when it becomes an order. - proposal.primaryTraffickerId = primaryTraffickerId; - - // Create a budget for the proposal worth 100 in the network local currency. - Money budget = new Money(); - budget.microAmount = 100000000L; - budget.currencyCode = networkService.getCurrentNetwork().currencyCode; - proposal.budget = budget; - - try - { - // Create the proposal on the server. - Proposal[] proposals = proposalService.createProposals(new Proposal[] - { - proposal - }); - - foreach (Proposal createdProposal in proposals) - { - Console.WriteLine( - "A programmatic proposal with ID \"{0}\" and name \"{1}\" " + - "was created.", createdProposal.id, createdProposal.name); - } - } - catch (Exception e) - { - Console.WriteLine("Failed to create proposals. Exception says \"{0}\"", - e.Message); - } - } - } - } -} diff --git a/examples/AdManager/CSharp/v201811/ProposalService/CreateProgrammaticProposalsForNonSalesManagement.cs b/examples/AdManager/CSharp/v201811/ProposalService/CreateProgrammaticProposalsForNonSalesManagement.cs deleted file mode 100755 index 71b4b1f75a6..00000000000 --- a/examples/AdManager/CSharp/v201811/ProposalService/CreateProgrammaticProposalsForNonSalesManagement.cs +++ /dev/null @@ -1,117 +0,0 @@ -// Copyright 2018, Google Inc. All Rights Reserved. -// -// 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.v201811; - -using System; - -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 -{ - /// - /// This example creates a programmatic proposal for networks not using sales management. - /// - public class CreateProgrammaticProposalsForNonSalesManagement : SampleBase - { - /// - /// Returns a description about the code example. - /// - public override string Description - { - get - { - return "This example creates a programmatic proposal for networks " + - "not using sales management"; - } - } - - /// - /// Main method, to run this code example as a standalone application. - /// - public static void Main() - { - CreateProgrammaticProposalsForNonSalesManagement codeExample = - new CreateProgrammaticProposalsForNonSalesManagement(); - Console.WriteLine(codeExample.Description); - - long primarySalespersonId = long.Parse(_T("INSERT_PRIMARY_SALESPERSON_ID_HERE")); - long primaryTraffickerId = long.Parse(_T("INSERT_PRIMARY_TRAFFICKER_ID_HERE")); - - // Set the ID of the programmatic buyer. This can be obtained through the - // Programmatic_Buyer PQL table. - long programmaticBuyerId = long.Parse(_T("INSERT_PROGRAMMATIC_BUYER_ID_HERE")); - - long advertiserId = long.Parse(_T("INSERT_ADVERTISER_ID_HERE")); - - codeExample.Run(new AdManagerUser(), primarySalespersonId, primaryTraffickerId, - programmaticBuyerId, advertiserId); - } - - /// - /// Run the code example. - /// - public void Run(AdManagerUser user, long primarySalespersonId, long primaryTraffickerId, - long programmaticBuyerId, long advertiserId) - { - using (ProposalService proposalService = user.GetService()) - { - - // Create a proposal with the minimum required fields. - Proposal proposal = new Proposal() - { - name = "Programmatic proposal #" + new Random().Next(int.MaxValue), - isProgrammatic = true, - // Set required Marketplace information - marketplaceInfo = new ProposalMarketplaceInfo() - { - buyerAccountId = programmaticBuyerId - } - }; - - // Set fields that are required before sending the proposal to the buyer. - proposal.primaryTraffickerId = primaryTraffickerId; - proposal.sellerContactIds = new long[] { primarySalespersonId }; - proposal.primarySalesperson = new SalespersonSplit() - { - userId = primarySalespersonId, - split = 100000 - }; - proposal.advertiser = new ProposalCompanyAssociation() - { - type = ProposalCompanyAssociationType.ADVERTISER, - companyId = advertiserId - }; - - try - { - // Create the proposal on the server. - Proposal[] proposals = - proposalService.createProposals(new Proposal[] { proposal }); - - foreach (Proposal createdProposal in proposals) - { - Console.WriteLine("A programmatic proposal with ID \"{0}\" " + - "and name \"{1}\" was created.", - createdProposal.id, createdProposal.name); - } - } - catch (Exception e) - { - Console.WriteLine("Failed to create proposals. Exception says \"{0}\"", - e.Message); - } - } - } - } -} diff --git a/examples/AdManager/CSharp/v201811/ProposalService/CreateProposals.cs b/examples/AdManager/CSharp/v201811/ProposalService/CreateProposals.cs deleted file mode 100755 index b53c6dd5338..00000000000 --- a/examples/AdManager/CSharp/v201811/ProposalService/CreateProposals.cs +++ /dev/null @@ -1,134 +0,0 @@ -// Copyright 2018, Google Inc. All Rights Reserved. -// -// 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.v201811; - -using System; - -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 -{ - /// - /// This code example creates new proposals. To determine which proposals exist, - /// run GetAllProposals.cs. - /// - public class CreateProposals : SampleBase - { - /// - /// Returns a description about the code example. - /// - public override string Description - { - get - { - return "This code example creates new proposals. To determine which proposals " + - "exist, run GetAllProposals.cs."; - } - } - - /// - /// Main method, to run this code example as a standalone application. - /// - public static void Main() - { - CreateProposals codeExample = new CreateProposals(); - Console.WriteLine(codeExample.Description); - codeExample.Run(new AdManagerUser()); - } - - /// - /// Run the code example. - /// - public void Run(AdManagerUser user) - { - using (ProposalService proposalService = user.GetService()) - - using (NetworkService networkService = user.GetService()) - { - // Set the advertiser, salesperson, and trafficker to assign to each - // order. - long advertiserId = long.Parse(_T("INSERT_ADVERTISER_ID_HERE")); - long primarySalespersonId = - long.Parse(_T("INSERT_PRIMARY_SALESPERSON_ID_HERE")); - long secondarySalespersonId = - long.Parse(_T("INSERT_SECONDARY_SALESPERSON_ID_HERE")); - long primaryTraffickerId = long.Parse(_T("INSERT_PRIMARY_TRAFFICKER_ID_HERE")); - long secondaryTraffickerId = - long.Parse(_T("INSERT_SECONDARY_TRAFFICKER_ID_HERE")); - - // Create a proposal. - Proposal proposal = new Proposal(); - proposal.name = "Proposal #" + new Random().Next(int.MaxValue); - - // Create a proposal company association. - ProposalCompanyAssociation proposalCompanyAssociation = - new ProposalCompanyAssociation(); - proposalCompanyAssociation.companyId = advertiserId; - proposalCompanyAssociation.type = ProposalCompanyAssociationType.ADVERTISER; - proposal.advertiser = proposalCompanyAssociation; - - // Create salesperson splits for the primary salesperson and secondary - // salespeople. - SalespersonSplit primarySalesperson = new SalespersonSplit(); - primarySalesperson.userId = primarySalespersonId; - primarySalesperson.split = 75000; - proposal.primarySalesperson = primarySalesperson; - - SalespersonSplit secondarySalesperson = new SalespersonSplit(); - secondarySalesperson.userId = secondarySalespersonId; - secondarySalesperson.split = 25000; - proposal.secondarySalespeople = new SalespersonSplit[] - { - secondarySalesperson - }; - - // Set the probability to close to 100%. - proposal.probabilityOfClose = 100000L; - - // Set the primary trafficker on the proposal for when it becomes an order. - proposal.primaryTraffickerId = primaryTraffickerId; - - // Create a budget for the proposal worth 100 in the network local currency. - Money budget = new Money(); - budget.microAmount = 100000000L; - budget.currencyCode = networkService.getCurrentNetwork().currencyCode; - proposal.budget = budget; - - proposal.billingCap = BillingCap.CAPPED_CUMULATIVE; - proposal.billingSource = BillingSource.DFP_VOLUME; - - try - { - // Create the proposal on the server. - Proposal[] proposals = proposalService.createProposals(new Proposal[] - { - proposal - }); - - foreach (Proposal createdProposal in proposals) - { - Console.WriteLine( - "A proposal with ID \"{0}\" and name \"{1}\" was created.", - createdProposal.id, createdProposal.name); - } - } - catch (Exception e) - { - Console.WriteLine("Failed to create proposals. Exception says \"{0}\"", - e.Message); - } - } - } - } -} diff --git a/examples/AdManager/CSharp/v201811/ProposalService/SubmitProposalsForApproval.cs b/examples/AdManager/CSharp/v201811/ProposalService/SubmitProposalsForApproval.cs deleted file mode 100755 index b791b02a036..00000000000 --- a/examples/AdManager/CSharp/v201811/ProposalService/SubmitProposalsForApproval.cs +++ /dev/null @@ -1,132 +0,0 @@ -// Copyright 2018, Google Inc. All Rights Reserved. -// -// 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.v201811; -using Google.Api.Ads.AdManager.v201811; - -using System; -using System.Collections.Generic; - -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 -{ - /// - /// This code example submits a proposal for approval. To determine which proposals exist, - /// run GetAllProposals.cs. - /// - public class ApproveProposal : SampleBase - { - /// - /// Returns a description about the code example. - /// - public override string Description - { - get - { - return "This code example submits a proposal for approval. To determine which " + - "proposals exist, run GetAllProposals.cs."; - } - } - - /// - /// Main method, to run this code example as a standalone application. - /// - public static void Main() - { - ApproveProposal codeExample = new ApproveProposal(); - Console.WriteLine(codeExample.Description); - codeExample.Run(new AdManagerUser()); - } - - /// - /// Run the code example. - /// - public void Run(AdManagerUser user) - { - using (ProposalService proposalService = user.GetService()) - { - // Set the ID of the proposal. - long proposalId = long.Parse(_T("INSERT_PROPOSAL_ID_HERE")); - - // Create statement to select the proposal. - StatementBuilder statementBuilder = new StatementBuilder() - .Where("id = :id") - .OrderBy("id ASC") - .Limit(1) - .AddValue("id", proposalId); - - // Set default for page. - ProposalPage page = new ProposalPage(); - List proposalIds = new List(); - int i = 0; - - try - { - do - { - // Get proposals by statement. - page = proposalService.getProposalsByStatement( - statementBuilder.ToStatement()); - - if (page.results != null) - { - foreach (Proposal proposal in page.results) - { - Console.WriteLine( - "{0}) Proposal with ID = '{1}', name = '{2}', and " + - "status ='{3}' will be approved.", i++, proposal.id, - proposal.name, proposal.status); - proposalIds.Add(proposal.id.ToString()); - } - } - - statementBuilder.IncreaseOffsetBy(StatementBuilder.SUGGESTED_PAGE_LIMIT); - } while (statementBuilder.GetOffset() < page.totalResultSetSize); - - Console.WriteLine("Number of proposals to be approved: {0}", proposalIds.Count); - - if (proposalIds.Count > 0) - { - // Modify statement for action. - statementBuilder.RemoveLimitAndOffset(); - - // Create action. - SubmitProposalsForApproval action = new SubmitProposalsForApproval(); - - // Perform action. - UpdateResult result = - proposalService.performProposalAction(action, - statementBuilder.ToStatement()); - - // Display results. - if (result != null && result.numChanges > 0) - { - Console.WriteLine("Number of proposals approved: {0}", - result.numChanges); - } - else - { - Console.WriteLine("No proposals were approved."); - } - } - } - catch (Exception e) - { - Console.WriteLine("Failed to approve proposals. Exception says \"{0}\"", - e.Message); - } - } - } - } -} diff --git a/examples/AdManager/CSharp/v201811/RateCardService/GetAllRateCards.cs b/examples/AdManager/CSharp/v201811/RateCardService/GetAllRateCards.cs deleted file mode 100755 index dfc6a1e525b..00000000000 --- a/examples/AdManager/CSharp/v201811/RateCardService/GetAllRateCards.cs +++ /dev/null @@ -1,94 +0,0 @@ -// Copyright 2017, Google Inc. All Rights Reserved. -// -// 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.v201811; -using Google.Api.Ads.AdManager.v201811; - -using System; - -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 -{ - /// - /// This example gets all rate cards. - /// - public class GetAllRateCards : SampleBase - { - /// - /// Returns a description about the code example. - /// - public override string Description - { - get { return "This example gets all rate cards."; } - } - - /// - /// Main method, to run this code example as a standalone application. - /// - public static void Main() - { - GetAllRateCards codeExample = new GetAllRateCards(); - Console.WriteLine(codeExample.Description); - try - { - codeExample.Run(new AdManagerUser()); - } - catch (Exception e) - { - Console.WriteLine("Failed to get rate cards. Exception says \"{0}\"", e.Message); - } - } - - /// - /// Run the code example. - /// - public void Run(AdManagerUser user) - { - using (RateCardService rateCardService = user.GetService()) - { - // Create a statement to select rate cards. - int pageSize = StatementBuilder.SUGGESTED_PAGE_LIMIT; - StatementBuilder statementBuilder = - new StatementBuilder().OrderBy("id ASC").Limit(pageSize); - - // Retrieve a small amount of rate cards at a time, paging through until all - // rate cards have been retrieved. - int totalResultSetSize = 0; - do - { - RateCardPage page = - rateCardService.getRateCardsByStatement(statementBuilder.ToStatement()); - - // Print out some information for each rate card. - if (page.results != null) - { - totalResultSetSize = page.totalResultSetSize; - int i = page.startIndex; - foreach (RateCard rateCard in page.results) - { - Console.WriteLine( - "{0}) Rate card with ID {1}, name \"{2}\", and currency code " + - "\"{3}\" was found.", - i++, rateCard.id, rateCard.name, rateCard.currencyCode); - } - } - - statementBuilder.IncreaseOffsetBy(pageSize); - } while (statementBuilder.GetOffset() < totalResultSetSize); - - Console.WriteLine("Number of results found: {0}", totalResultSetSize); - } - } - } -} diff --git a/examples/AdManager/CSharp/v201811/RateCardService/GetMarketplaceRateCards.cs b/examples/AdManager/CSharp/v201811/RateCardService/GetMarketplaceRateCards.cs deleted file mode 100755 index c215990d39a..00000000000 --- a/examples/AdManager/CSharp/v201811/RateCardService/GetMarketplaceRateCards.cs +++ /dev/null @@ -1,99 +0,0 @@ -// Copyright 2017, Google Inc. All Rights Reserved. -// -// 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.v201811; -using Google.Api.Ads.AdManager.v201811; - -using System; - -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 -{ - /// - /// This example gets all rate cards that can be used for Marketplace products. - /// - public class GetMarketplaceRateCards : SampleBase - { - /// - /// Returns a description about the code example. - /// - public override string Description - { - get - { - return - "This example gets all rate cards that can be used for Marketplace products."; - } - } - - /// - /// Main method, to run this code example as a standalone application. - /// - public static void Main() - { - GetMarketplaceRateCards codeExample = new GetMarketplaceRateCards(); - Console.WriteLine(codeExample.Description); - try - { - codeExample.Run(new AdManagerUser()); - } - catch (Exception e) - { - Console.WriteLine("Failed to get rate cards. Exception says \"{0}\"", e.Message); - } - } - - /// - /// Run the code example. - /// - public void Run(AdManagerUser user) - { - using (RateCardService rateCardService = user.GetService()) - { - // Create a statement to select rate cards. - int pageSize = StatementBuilder.SUGGESTED_PAGE_LIMIT; - StatementBuilder statementBuilder = new StatementBuilder() - .Where("forMarketplace = :forMarketplace").OrderBy("id ASC").Limit(pageSize) - .AddValue("forMarketplace", true); - - // Retrieve a small amount of rate cards at a time, paging through until all - // rate cards have been retrieved. - int totalResultSetSize = 0; - do - { - RateCardPage page = - rateCardService.getRateCardsByStatement(statementBuilder.ToStatement()); - - // Print out some information for each rate card. - if (page.results != null) - { - totalResultSetSize = page.totalResultSetSize; - int i = page.startIndex; - foreach (RateCard rateCard in page.results) - { - Console.WriteLine( - "{0}) Rate card with ID {1}, name \"{2}\", and currency code " + - "\"{3}\" was found.", - i++, rateCard.id, rateCard.name, rateCard.currencyCode); - } - } - - statementBuilder.IncreaseOffsetBy(pageSize); - } while (statementBuilder.GetOffset() < totalResultSetSize); - - Console.WriteLine("Number of results found: {0}", totalResultSetSize); - } - } - } -} diff --git a/examples/AdManager/CSharp/v201811/ReconciliationLineItemReportService/GetReconciliationLineItemReportsForReconciliationReport.cs b/examples/AdManager/CSharp/v201811/ReconciliationLineItemReportService/GetReconciliationLineItemReportsForReconciliationReport.cs deleted file mode 100755 index 2d977a5ada2..00000000000 --- a/examples/AdManager/CSharp/v201811/ReconciliationLineItemReportService/GetReconciliationLineItemReportsForReconciliationReport.cs +++ /dev/null @@ -1,114 +0,0 @@ -// Copyright 2018, Google Inc. All Rights Reserved. -// -// 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.v201811; -using Google.Api.Ads.AdManager.v201811; - -using System; - -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 -{ - /// - /// This example gets a reconciliation report's data for line items that served through DFP. - /// - public class GetReconciliationLineItemReportsForReconciliationReport : SampleBase - { - /// - /// Returns a description about the code example. - /// - public override string Description - { - get - { - return - "This example gets a reconciliation report's data for line items that served " + - "through DFP."; - } - } - - /// - /// Main method, to run this code example as a standalone application. - /// - public static void Main() - { - GetReconciliationLineItemReportsForReconciliationReport codeExample = - new GetReconciliationLineItemReportsForReconciliationReport(); - long reconciliationReportId = long.Parse("INSERT_RECONCILIATION_REPORT_ID_HERE"); - Console.WriteLine(codeExample.Description); - try - { - codeExample.Run(new AdManagerUser(), reconciliationReportId); - } - catch (Exception e) - { - Console.WriteLine( - "Failed to get reconciliation line item reports. Exception says \"{0}\"", - e.Message); - } - } - - /// - /// Run the code example. - /// - public void Run(AdManagerUser user, long reconciliationReportId) - { - using (ReconciliationLineItemReportService reconciliationLineItemReportService = - user.GetService()) - { - // Create a statement to select reconciliation line item reports. - int pageSize = StatementBuilder.SUGGESTED_PAGE_LIMIT; - StatementBuilder statementBuilder = new StatementBuilder() - .Where("reconciliationReportId = :reconciliationReportId AND " + - "lineItemId != :lineItemId").OrderBy("lineItemId ASC").Limit(pageSize) - .AddValue("reconciliationReportId", reconciliationReportId) - .AddValue("lineItemId", 0); - - // Retrieve a small amount of reconciliation line item reports at a time, paging - // through until all reconciliation line item reports have been retrieved. - int totalResultSetSize = 0; - do - { - ReconciliationLineItemReportPage page = - reconciliationLineItemReportService - .getReconciliationLineItemReportsByStatement(statementBuilder - .ToStatement()); - - // Print out some information for each reconciliation line item report. - if (page.results != null) - { - totalResultSetSize = page.totalResultSetSize; - int i = page.startIndex; - foreach (ReconciliationLineItemReport reconciliationLineItemReport in page - .results) - { - Console.WriteLine( - "{0}) Reconciliation line item report with ID {1}, " + - "line item ID {2}, " + "reconciliation source \"{3}\", " + - "and reconciled volume {4} was found.", i++, - reconciliationLineItemReport.id, - reconciliationLineItemReport.lineItemId, - reconciliationLineItemReport.reconciliationSource, - reconciliationLineItemReport.reconciledVolume); - } - } - - statementBuilder.IncreaseOffsetBy(pageSize); - } while (statementBuilder.GetOffset() < totalResultSetSize); - - Console.WriteLine("Number of results found: {0}", totalResultSetSize); - } - } - } -} diff --git a/examples/AdManager/CSharp/v201811/ReconciliationOrderReportService/GetReconciliationOrderReportsForReconciliationReport.cs b/examples/AdManager/CSharp/v201811/ReconciliationOrderReportService/GetReconciliationOrderReportsForReconciliationReport.cs deleted file mode 100755 index abcb6f62fbf..00000000000 --- a/examples/AdManager/CSharp/v201811/ReconciliationOrderReportService/GetReconciliationOrderReportsForReconciliationReport.cs +++ /dev/null @@ -1,108 +0,0 @@ -// Copyright 2017, Google Inc. All Rights Reserved. -// -// 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.v201811; -using Google.Api.Ads.AdManager.v201811; - -using System; - -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 -{ - /// - /// This example gets all reconciliation order reports for a given reconciliation report. - /// - public class GetReconciliationOrderReportsForReconciliationReport : SampleBase - { - /// - /// Returns a description about the code example. - /// - public override string Description - { - get - { - return "This example gets all reconciliation order reports for a given " + - "reconciliation report."; - } - } - - /// - /// Main method, to run this code example as a standalone application. - /// - public static void Main() - { - GetReconciliationOrderReportsForReconciliationReport codeExample = - new GetReconciliationOrderReportsForReconciliationReport(); - long reconciliationReportId = long.Parse("INSERT_RECONCILIATION_REPORT_ID_HERE"); - Console.WriteLine(codeExample.Description); - try - { - codeExample.Run(new AdManagerUser(), reconciliationReportId); - } - catch (Exception e) - { - Console.WriteLine( - "Failed to get reconciliation order reports. Exception says \"{0}\"", - e.Message); - } - } - - /// - /// Run the code example. - /// - public void Run(AdManagerUser user, long reconciliationReportId) - { - using (ReconciliationOrderReportService reconciliationOrderReportService = - user.GetService()) - { - // Create a statement to select reconciliation order reports. - int pageSize = StatementBuilder.SUGGESTED_PAGE_LIMIT; - StatementBuilder statementBuilder = new StatementBuilder() - .Where("reconciliationReportId = :reconciliationReportId").OrderBy("id ASC") - .Limit(pageSize) - .AddValue("reconciliationReportId", reconciliationReportId); - - // Retrieve a small amount of reconciliation order reports at a time, paging through - // until all reconciliation order reports have been retrieved. - int totalResultSetSize = 0; - do - { - ReconciliationOrderReportPage page = - reconciliationOrderReportService.getReconciliationOrderReportsByStatement( - statementBuilder.ToStatement()); - - // Print out some information for each reconciliation order report. - if (page.results != null) - { - totalResultSetSize = page.totalResultSetSize; - int i = page.startIndex; - foreach (ReconciliationOrderReport reconciliationOrderReport in page.results - ) - { - Console.WriteLine( - "{0}) Reconciliation order report with ID {1} and status \"{2}\" " + - "was found.", - i++, reconciliationOrderReport.id, - reconciliationOrderReport.status); - } - } - - statementBuilder.IncreaseOffsetBy(pageSize); - } while (statementBuilder.GetOffset() < totalResultSetSize); - - Console.WriteLine("Number of results found: {0}", totalResultSetSize); - } - } - } -} diff --git a/examples/AdManager/CSharp/v201811/ReconciliationReportRowService/GetReconciliationReportRowsForReconciliationReport.cs b/examples/AdManager/CSharp/v201811/ReconciliationReportRowService/GetReconciliationReportRowsForReconciliationReport.cs deleted file mode 100755 index 84407364ec8..00000000000 --- a/examples/AdManager/CSharp/v201811/ReconciliationReportRowService/GetReconciliationReportRowsForReconciliationReport.cs +++ /dev/null @@ -1,110 +0,0 @@ -// Copyright 2018, Google Inc. All Rights Reserved. -// -// 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.v201811; -using Google.Api.Ads.AdManager.v201811; - -using System; - -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 -{ - /// - /// This example gets a reconciliation report's rows for line items that served through DFP. - /// - public class GetReconciliationReportRowsForReconciliationReport : SampleBase - { - /// - /// Returns a description about the code example. - /// - public override string Description - { - get - { - return - "This example gets a reconciliation report's rows for line items that served " + - "through DFP."; - } - } - - /// - /// Main method, to run this code example as a standalone application. - /// - public static void Main() - { - GetReconciliationReportRowsForReconciliationReport codeExample = - new GetReconciliationReportRowsForReconciliationReport(); - long reconciliationReportId = long.Parse("INSERT_RECONCILIATION_REPORT_ID_HERE"); - Console.WriteLine(codeExample.Description); - try - { - codeExample.Run(new AdManagerUser(), reconciliationReportId); - } - catch (Exception e) - { - Console.WriteLine( - "Failed to get reconciliation report rows. Exception says \"{0}\"", e.Message); - } - } - - /// - /// Run the code example. - /// - public void Run(AdManagerUser user, long reconciliationReportId) - { - using (ReconciliationReportRowService reconciliationReportRowService = - user.GetService()) - { - // Create a statement to select reconciliation report rows. - int pageSize = StatementBuilder.SUGGESTED_PAGE_LIMIT; - StatementBuilder statementBuilder = new StatementBuilder() - .Where("reconciliationReportId = :reconciliationReportId AND " + - "lineItemId != :lineItemId").OrderBy("id ASC").Limit(pageSize) - .AddValue("reconciliationReportId", reconciliationReportId) - .AddValue("lineItemId", 0); - - // Retrieve a small amount of reconciliation report rows at a time, paging through - // until all reconciliation report rows have been retrieved. - int totalResultSetSize = 0; - do - { - ReconciliationReportRowPage page = - reconciliationReportRowService.getReconciliationReportRowsByStatement( - statementBuilder.ToStatement()); - - // Print out some information for each reconciliation report row. - if (page.results != null) - { - totalResultSetSize = page.totalResultSetSize; - int i = page.startIndex; - foreach (ReconciliationReportRow reconciliationReportRow in page.results) - { - Console.WriteLine( - "{0}) Reconciliation report row with ID {1}, " + - "reconciliation source \"{2}\", " + - "and reconciled volume {3} was found.", i++, - reconciliationReportRow.id, - reconciliationReportRow.reconciliationSource, - reconciliationReportRow.reconciledVolume); - } - } - - statementBuilder.IncreaseOffsetBy(pageSize); - } while (statementBuilder.GetOffset() < totalResultSetSize); - - Console.WriteLine("Number of results found: {0}", totalResultSetSize); - } - } - } -} diff --git a/examples/AdManager/CSharp/v201811/ReconciliationReportService/GetAllReconciliationReports.cs b/examples/AdManager/CSharp/v201811/ReconciliationReportService/GetAllReconciliationReports.cs deleted file mode 100755 index 58728ba6ca0..00000000000 --- a/examples/AdManager/CSharp/v201811/ReconciliationReportService/GetAllReconciliationReports.cs +++ /dev/null @@ -1,101 +0,0 @@ -// Copyright 2017, Google Inc. All Rights Reserved. -// -// 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.v201811; -using Google.Api.Ads.AdManager.v201811; - -using System; - -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 -{ - /// - /// This example gets all reconciliation reports. - /// - public class GetAllReconciliationReports : SampleBase - { - /// - /// Returns a description about the code example. - /// - public override string Description - { - get { return "This example gets all reconciliation reports."; } - } - - /// - /// Main method, to run this code example as a standalone application. - /// - public static void Main() - { - GetAllReconciliationReports codeExample = new GetAllReconciliationReports(); - Console.WriteLine(codeExample.Description); - try - { - codeExample.Run(new AdManagerUser()); - } - catch (Exception e) - { - Console.WriteLine("Failed to get reconciliation reports. Exception says \"{0}\"", - e.Message); - } - } - - /// - /// Run the code example. - /// - public void Run(AdManagerUser user) - { - using (ReconciliationReportService reconciliationReportService = - user.GetService()) - { - // Create a statement to select reconciliation reports. - int pageSize = StatementBuilder.SUGGESTED_PAGE_LIMIT; - StatementBuilder statementBuilder = - new StatementBuilder().OrderBy("id ASC").Limit(pageSize); - - // Retrieve a small amount of reconciliation reports at a time, paging through until - // all reconciliation reports have been retrieved. - int totalResultSetSize = 0; - do - { - ReconciliationReportPage page = - reconciliationReportService.getReconciliationReportsByStatement( - statementBuilder.ToStatement()); - - // Print out some information for each reconciliation report. - if (page.results != null) - { - totalResultSetSize = page.totalResultSetSize; - int i = page.startIndex; - foreach (ReconciliationReport reconciliationReport in page.results) - { - String startDateString = - new System.DateTime(day: reconciliationReport.startDate.day, - month: reconciliationReport.startDate.month, - year: reconciliationReport.startDate.year).ToString("d"); - Console.WriteLine( - "{0}) Reconciliation report with ID {1} and start date \"{2}\" " + - "was found.", - i++, reconciliationReport.id, startDateString); - } - } - - statementBuilder.IncreaseOffsetBy(pageSize); - } while (statementBuilder.GetOffset() < totalResultSetSize); - - Console.WriteLine("Number of results found: {0}", totalResultSetSize); - } - } - } -} diff --git a/examples/AdManager/CSharp/v201811/ReconciliationReportService/GetReconciliationReportForLastBillingPeriod.cs b/examples/AdManager/CSharp/v201811/ReconciliationReportService/GetReconciliationReportForLastBillingPeriod.cs deleted file mode 100755 index 80f5e3c65a0..00000000000 --- a/examples/AdManager/CSharp/v201811/ReconciliationReportService/GetReconciliationReportForLastBillingPeriod.cs +++ /dev/null @@ -1,107 +0,0 @@ -// Copyright 2018, Google Inc. All Rights Reserved. -// -// 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.v201811; -using Google.Api.Ads.AdManager.v201811; - -using System; - -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 -{ - /// - /// This example gets the previous billing period's reconciliation report. - /// - public class GetReconciliationReportForLastBillingPeriod : SampleBase - { - /// - /// Returns a description about the code example. - /// - public override string Description - { - get { return "This example gets the previous billing period's reconciliation report."; } - } - - /// - /// Main method, to run this code example as a standalone application. - /// - public static void Main() - { - GetReconciliationReportForLastBillingPeriod codeExample = - new GetReconciliationReportForLastBillingPeriod(); - Console.WriteLine(codeExample.Description); - try - { - codeExample.Run(new AdManagerUser()); - } - catch (Exception e) - { - Console.WriteLine("Failed to get reconciliation reports. Exception says \"{0}\"", - e.Message); - } - } - - /// - /// Run the code example. - /// - public void Run(AdManagerUser user) - { - using (ReconciliationReportService reconciliationReportService = - user.GetService()) - { - // Create a statement to select reconciliation reports. - int pageSize = StatementBuilder.SUGGESTED_PAGE_LIMIT; - StatementBuilder statementBuilder = new StatementBuilder() - .Where("startDate = :startDate").OrderBy("id ASC").Limit(pageSize).AddValue( - "startDate", - DateTimeUtilities - .FromDateTime( - new System.DateTime(System.DateTime.Today.Year, - System.DateTime.Today.Month - 1, 1), "America/New_York").date); - - // Retrieve a small amount of reconciliation reports at a time, paging through until - // all reconciliation reports have been retrieved. - int totalResultSetSize = 0; - do - { - ReconciliationReportPage page = - reconciliationReportService.getReconciliationReportsByStatement( - statementBuilder.ToStatement()); - - // Print out some information for each reconciliation report. - if (page.results != null) - { - totalResultSetSize = page.totalResultSetSize; - int i = page.startIndex; - foreach (ReconciliationReport reconciliationReport in page.results) - { - String startDateString = - new System.DateTime(day: reconciliationReport.startDate.day, - month: reconciliationReport.startDate.month, - year: reconciliationReport.startDate.year).ToString("d"); - Console.WriteLine( - "{0}) Reconciliation report with ID {1} and start date \"{2}\" " + - "was found.", - i++, reconciliationReport.id, startDateString); - } - } - - statementBuilder.IncreaseOffsetBy(pageSize); - } while (statementBuilder.GetOffset() < totalResultSetSize); - - Console.WriteLine("Number of results found: {0}", totalResultSetSize); - } - } - } -} diff --git a/examples/AdManager/CSharp/v201811/WorkflowRequestService/ApproveWorkflowApprovalRequests.cs b/examples/AdManager/CSharp/v201811/WorkflowRequestService/ApproveWorkflowApprovalRequests.cs deleted file mode 100755 index 7480b1af770..00000000000 --- a/examples/AdManager/CSharp/v201811/WorkflowRequestService/ApproveWorkflowApprovalRequests.cs +++ /dev/null @@ -1,141 +0,0 @@ -// Copyright 2018, Google Inc. All Rights Reserved. -// -// 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.v201811; -using Google.Api.Ads.AdManager.v201811; - -using System; -using System.Collections.Generic; - -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 -{ - /// - /// This code example approves all workflow approval requests belonging to a specific proposal. - /// To determine which proposals exist, run GetAllProposals.cs. - /// - public class ApproveWorkflowApprovalRequests : SampleBase - { - /// - /// Returns a description about the code example. - /// - public override string Description - { - get - { - return "This code example approves all workflow approval requests belonging to " + - "a specific proposal. To determine which proposals exist, " + - "run GetAllProposals.cs."; - } - } - - /// - /// Main method, to run this code example as a standalone application. - /// - public static void Main() - { - ApproveWorkflowApprovalRequests codeExample = new ApproveWorkflowApprovalRequests(); - Console.WriteLine(codeExample.Description); - codeExample.Run(new AdManagerUser()); - } - - /// - /// Run the code example. - /// - public void Run(AdManagerUser user) - { - using (WorkflowRequestService workflowRequestService = - user.GetService()) - { - // Set the ID of the proposal to approve workflow approval requests for. - long proposalId = long.Parse(_T("INSERT_PROPOSAL_ID_HERE")); - - // Create a statement to select workflow approval requests for a proposal. - StatementBuilder statementBuilder = new StatementBuilder() - .Where( - "WHERE entityId = :entityId and entityType = :entityType and type = :type") - .OrderBy("id ASC") - .Limit(StatementBuilder.SUGGESTED_PAGE_LIMIT) - .AddValue("entityId", proposalId) - .AddValue("entityType", WorkflowEntityType.PROPOSAL.ToString()) - .AddValue("type", WorkflowRequestType.WORKFLOW_APPROVAL_REQUEST.ToString()); - - // Set default for page. - WorkflowRequestPage page = new WorkflowRequestPage(); - List worflowRequestIds = new List(); - - try - { - do - { - // Get workflow requests by statement. - page = workflowRequestService.getWorkflowRequestsByStatement( - statementBuilder.ToStatement()); - - if (page.results != null) - { - int i = page.startIndex; - foreach (WorkflowRequest workflowRequest in page.results) - { - Console.WriteLine( - "{0}) Workflow approval request with ID '{1}' will be " + - "approved.", i++, workflowRequest.id); - worflowRequestIds.Add(workflowRequest.id); - } - } - - statementBuilder.IncreaseOffsetBy(StatementBuilder.SUGGESTED_PAGE_LIMIT); - } while (statementBuilder.GetOffset() < page.totalResultSetSize); - - Console.WriteLine("Number of workflow approval requests to be approved: {0}", - worflowRequestIds.Count); - - if (worflowRequestIds.Count > 0) - { - // Modify statement. - statementBuilder.RemoveLimitAndOffset(); - - // Create action. - Google.Api.Ads.AdManager.v201811.ApproveWorkflowApprovalRequests action = - new Google.Api.Ads.AdManager.v201811.ApproveWorkflowApprovalRequests(); - - // Add a comment to the approval. - action.comment = "The proposal looks good to me. Approved."; - - // Perform action. - UpdateResult result = - workflowRequestService.performWorkflowRequestAction(action, - statementBuilder.ToStatement()); - - // Display results. - if (result != null && result.numChanges > 0) - { - Console.WriteLine("Number of workflow requests approved: {0}", - result.numChanges); - } - else - { - Console.WriteLine("No workflow requests were approved."); - } - } - } - catch (Exception e) - { - Console.WriteLine("Failed to archive workflow requests. Exception says \"{0}\"", - e.Message); - } - } - } - } -} diff --git a/examples/AdManager/CSharp/v201811/WorkflowRequestService/GetWorkflowApprovalRequests.cs b/examples/AdManager/CSharp/v201811/WorkflowRequestService/GetWorkflowApprovalRequests.cs deleted file mode 100755 index 8195233bd04..00000000000 --- a/examples/AdManager/CSharp/v201811/WorkflowRequestService/GetWorkflowApprovalRequests.cs +++ /dev/null @@ -1,105 +0,0 @@ -// Copyright 2017, Google Inc. All Rights Reserved. -// -// 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.v201811; -using Google.Api.Ads.AdManager.v201811; - -using System; - -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 -{ - /// - /// This example gets workflow approval requests. Workflow approval requests must be - /// approved or rejected for a workflow to finish. - /// - public class GetWorkflowApprovalRequests : SampleBase - { - /// - /// Returns a description about the code example. - /// - public override string Description - { - get - { - return "This example gets workflow approval requests. Workflow approval requests " + - "must be approved or rejected for a workflow to finish."; - } - } - - /// - /// Main method, to run this code example as a standalone application. - /// - public static void Main() - { - GetWorkflowApprovalRequests codeExample = new GetWorkflowApprovalRequests(); - Console.WriteLine(codeExample.Description); - try - { - codeExample.Run(new AdManagerUser()); - } - catch (Exception e) - { - Console.WriteLine("Failed to get workflow requests. Exception says \"{0}\"", - e.Message); - } - } - - /// - /// Run the code example. - /// - public void Run(AdManagerUser user) - { - using (WorkflowRequestService workflowRequestService = - user.GetService()) - { - // Create a statement to select workflow requests. - int pageSize = StatementBuilder.SUGGESTED_PAGE_LIMIT; - StatementBuilder statementBuilder = new StatementBuilder() - .Where("type = :type") - .OrderBy("id ASC") - .Limit(pageSize) - .AddValue("type", WorkflowRequestType.WORKFLOW_APPROVAL_REQUEST.ToString()); - - // Retrieve a small amount of workflow requests at a time, paging through until all - // workflow requests have been retrieved. - int totalResultSetSize = 0; - do - { - WorkflowRequestPage page = - workflowRequestService.getWorkflowRequestsByStatement( - statementBuilder.ToStatement()); - - // Print out some information for each workflow request. - if (page.results != null) - { - totalResultSetSize = page.totalResultSetSize; - int i = page.startIndex; - foreach (WorkflowRequest workflowRequest in page.results) - { - Console.WriteLine( - "{0}) Workflow request with ID {1}, " + "entity type \"{2}\", " + - "and entity ID {3} was found.", i++, workflowRequest.id, - workflowRequest.entityType, workflowRequest.entityId); - } - } - - statementBuilder.IncreaseOffsetBy(pageSize); - } while (statementBuilder.GetOffset() < totalResultSetSize); - - Console.WriteLine("Number of results found: {0}", totalResultSetSize); - } - } - } -} diff --git a/examples/AdManager/CSharp/v201811/WorkflowRequestService/GetWorkflowExternalConditionRequests.cs b/examples/AdManager/CSharp/v201811/WorkflowRequestService/GetWorkflowExternalConditionRequests.cs deleted file mode 100755 index bb4ec6fe32e..00000000000 --- a/examples/AdManager/CSharp/v201811/WorkflowRequestService/GetWorkflowExternalConditionRequests.cs +++ /dev/null @@ -1,108 +0,0 @@ -// Copyright 2017, Google Inc. All Rights Reserved. -// -// 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.v201811; -using Google.Api.Ads.AdManager.v201811; - -using System; - -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 -{ - /// - /// This example gets workflow external condition requests. Workflow external condition - /// requests must be triggered or skipped for a workflow to finish. - /// - public class GetWorkflowExternalConditionRequests : SampleBase - { - /// - /// Returns a description about the code example. - /// - public override string Description - { - get - { - return - "This example gets workflow external condition requests. Workflow external " + - "condition requests must be triggered or skipped for a workflow to finish."; - } - } - - /// - /// Main method, to run this code example as a standalone application. - /// - public static void Main() - { - GetWorkflowExternalConditionRequests codeExample = - new GetWorkflowExternalConditionRequests(); - Console.WriteLine(codeExample.Description); - try - { - codeExample.Run(new AdManagerUser()); - } - catch (Exception e) - { - Console.WriteLine("Failed to get workflow requests. Exception says \"{0}\"", - e.Message); - } - } - - /// - /// Run the code example. - /// - public void Run(AdManagerUser user) - { - using (WorkflowRequestService workflowRequestService = - user.GetService()) - { - // Create a statement to select workflow requests. - int pageSize = StatementBuilder.SUGGESTED_PAGE_LIMIT; - StatementBuilder statementBuilder = new StatementBuilder() - .Where("type = :type") - .OrderBy("id ASC") - .Limit(pageSize) - .AddValue("type", - WorkflowRequestType.WORKFLOW_EXTERNAL_CONDITION_REQUEST.ToString()); - - // Retrieve a small amount of workflow requests at a time, paging through until all - // workflow requests have been retrieved. - int totalResultSetSize = 0; - do - { - WorkflowRequestPage page = - workflowRequestService.getWorkflowRequestsByStatement( - statementBuilder.ToStatement()); - - // Print out some information for each workflow request. - if (page.results != null) - { - totalResultSetSize = page.totalResultSetSize; - int i = page.startIndex; - foreach (WorkflowRequest workflowRequest in page.results) - { - Console.WriteLine( - "{0}) Workflow request with ID {1}, " + "entity type \"{2}\", " + - "and entity ID {3} was found.", i++, workflowRequest.id, - workflowRequest.entityType, workflowRequest.entityId); - } - } - - statementBuilder.IncreaseOffsetBy(pageSize); - } while (statementBuilder.GetOffset() < totalResultSetSize); - - Console.WriteLine("Number of results found: {0}", totalResultSetSize); - } - } - } -} diff --git a/examples/AdManager/CSharp/v201811/WorkflowRequestService/TriggerWorkflowExternalConditionRequests.cs b/examples/AdManager/CSharp/v201811/WorkflowRequestService/TriggerWorkflowExternalConditionRequests.cs deleted file mode 100755 index 6d8d19fdbaf..00000000000 --- a/examples/AdManager/CSharp/v201811/WorkflowRequestService/TriggerWorkflowExternalConditionRequests.cs +++ /dev/null @@ -1,148 +0,0 @@ -// Copyright 2018, Google Inc. All Rights Reserved. -// -// 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.v201811; -using Google.Api.Ads.AdManager.v201811; - -using System; -using System.Collections.Generic; - -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 -{ - /// - /// This code example triggers all workflow external condition requests belonging to a - /// specific proposal. Workflow external condition requests must be triggered or skipped - /// for a workflow to finish. To determine which proposals exist, run GetAllProposals.cs. - /// - public class TriggerWorkflowExternalConditionRequests : SampleBase - { - /// - /// Returns a description about the code example. - /// - public override string Description - { - get - { - return "This code example triggers all workflow external condition requests " + - "belonging to a specific proposal. Workflow external condition requests must " + - "be triggered or skipped for a workflow to finish. To determine which " + - "proposals exist, run GetAllProposals.cs."; - } - } - - /// - /// Main method, to run this code example as a standalone application. - /// - public static void Main() - { - TriggerWorkflowExternalConditionRequests codeExample = - new TriggerWorkflowExternalConditionRequests(); - Console.WriteLine(codeExample.Description); - codeExample.Run(new AdManagerUser()); - } - - /// - /// Run the code example. - /// - public void Run(AdManagerUser user) - { - using (WorkflowRequestService proposalLineItemService = - user.GetService()) - { - // Set the ID of the proposal to trigger workflow external conditions for.c - long proposalId = long.Parse(_T("INSERT_PROPOSAL_ID_HERE")); - - // Create a statement to select workflow external condition requests for a proposal. - StatementBuilder statementBuilder = new StatementBuilder() - .Where("entityId = :entityId and entityType = :entityType and type = :type") - .OrderBy("id ASC") - .Limit(StatementBuilder.SUGGESTED_PAGE_LIMIT) - .AddValue("entityId", proposalId) - .AddValue("entityType", WorkflowEntityType.PROPOSAL.ToString()) - .AddValue("type", - WorkflowRequestType.WORKFLOW_EXTERNAL_CONDITION_REQUEST.ToString()); - - // Set default for page. - WorkflowRequestPage page = new WorkflowRequestPage(); - List workflowRequestIds = new List(); - - try - { - do - { - // Get workflow requests by statement. - page = proposalLineItemService.getWorkflowRequestsByStatement( - statementBuilder.ToStatement()); - - if (page.results != null) - { - int i = page.startIndex; - foreach (WorkflowRequest workflowRequest in page.results) - { - Console.WriteLine( - "{0}) Workflow external condition request with ID '{1}'" + - " for {2} with ID '{3}' will be triggered.", i++, - workflowRequest.id, workflowRequest.entityType.ToString(), - workflowRequest.entityId); - workflowRequestIds.Add(workflowRequest.id); - } - } - - statementBuilder.IncreaseOffsetBy(StatementBuilder.SUGGESTED_PAGE_LIMIT); - } while (statementBuilder.GetOffset() < page.totalResultSetSize); - - Console.WriteLine( - "Number of workflow external condition requests to be triggered: {0}", - workflowRequestIds.Count); - - if (workflowRequestIds.Count > 0) - { - // Modify statement. - statementBuilder.RemoveLimitAndOffset(); - - // Create action. - Google.Api.Ads.AdManager.v201811.TriggerWorkflowExternalConditionRequests action = - new Google.Api.Ads.AdManager.v201811. - TriggerWorkflowExternalConditionRequests(); - - // Perform action. - UpdateResult result = - proposalLineItemService.performWorkflowRequestAction(action, - statementBuilder.ToStatement()); - - // Display results. - if (result != null && result.numChanges > 0) - { - Console.WriteLine( - "Number of workflow external condition requests triggered: {0}", - result.numChanges); - } - else - { - Console.WriteLine( - "No workflow external condition requests were triggered."); - } - } - } - catch (Exception e) - { - Console.WriteLine( - "Failed to tirgger workflow external condition requests. Exception " + - "says \"{0}\"", e.Message); - } - } - } - } -} diff --git a/examples/AdManager/CSharp/v201902/ProposalLineItemService/CreateProgrammaticProposalLineItems.cs b/examples/AdManager/CSharp/v201902/ProposalLineItemService/CreateProgrammaticProposalLineItems.cs deleted file mode 100755 index cf5520966b0..00000000000 --- a/examples/AdManager/CSharp/v201902/ProposalLineItemService/CreateProgrammaticProposalLineItems.cs +++ /dev/null @@ -1,133 +0,0 @@ -// Copyright 2018, Google Inc. All Rights Reserved. -// -// 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.v201902; -using Google.Api.Ads.AdManager.v201902; - -using System; - -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201902 -{ - /// - /// This code example creates a new programmatic proposal line item that - /// uses its product's targeting. Your network must have sales management enabled - /// to run this example. - /// - public class CreateProgrammaticProposalLineItems : SampleBase - { - /// - /// Returns a description about the code example. - /// - public override string Description - { - get - { - return "This code example creates a new programmatic proposal line item that " + - "uses its product's targeting. Your network must have sales management " + - "enabled to run this example."; - } - } - - /// - /// Main method, to run this code example as a standalone application. - /// - public static void Main() - { - CreateProgrammaticProposalLineItems codeExample = - new CreateProgrammaticProposalLineItems(); - Console.WriteLine(codeExample.Description); - - long proposalId = long.Parse(_T("INSERT_PROPOSAL_ID_HERE")); - long rateCardId = long.Parse(_T("INSERT_RATE_CARD_ID_HERE")); - long productId = long.Parse(_T("INSERT_PRODUCT_ID_HERE")); - - codeExample.Run(new AdManagerUser(), proposalId, rateCardId, productId); - } - - /// - /// Run the code examples. - /// - public void Run(AdManagerUser user, long proposalId, long rateCardId, long productId) - { - using (ProposalLineItemService proposalLineItemService = - user.GetService()) - { - // Create a proposal line item. - ProposalLineItem proposalLineItem = new ProposalLineItem(); - proposalLineItem.name = "Programmatic proposal line item #" + - new Random().Next(int.MaxValue); - proposalLineItem.proposalId = proposalId; - proposalLineItem.rateCardId = rateCardId; - proposalLineItem.productId = productId; - - // Set the Marketplace information. - proposalLineItem.marketplaceInfo = new ProposalLineItemMarketplaceInfo() - { - adExchangeEnvironment = AdExchangeEnvironment.DISPLAY - }; - - // Set the length of the proposal line item to run. - proposalLineItem.startDateTime = - DateTimeUtilities.FromDateTime(System.DateTime.Now.AddDays(7), - "America/New_York"); - proposalLineItem.endDateTime = - DateTimeUtilities.FromDateTime(System.DateTime.Now.AddDays(30), - "America/New_York"); - - // Set pricing for the proposal line item for 1000 impressions at a CPM of $2 - // for a total value of $2. - proposalLineItem.goal = new Goal() - { - unitType = UnitType.IMPRESSIONS, - units = 1000L - }; - proposalLineItem.netCost = new Money() - { - currencyCode = "USD", - microAmount = 2000000L - }; - proposalLineItem.netRate = new Money() - { - currencyCode = "USD", - microAmount = 2000000L - }; - proposalLineItem.rateType = RateType.CPM; - - try - { - // Create the proposal line item on the server. - ProposalLineItem[] proposalLineItems = - proposalLineItemService.createProposalLineItems(new ProposalLineItem[] - { - proposalLineItem - }); - - foreach (ProposalLineItem createdProposalLineItem in proposalLineItems) - { - Console.WriteLine( - "A programmatic proposal line item with ID \"{0}\" " + - "and name \"{1}\" was created.", createdProposalLineItem.id, - createdProposalLineItem.name); - } - } - catch (Exception e) - { - Console.WriteLine( - "Failed to create proposal line items. Exception says \"{0}\"", e.Message); - } - } - } - } -} diff --git a/examples/AdManager/CSharp/v201902/ProposalLineItemService/CreateProgrammaticProposalLineItemsForNonSalesManagement.cs b/examples/AdManager/CSharp/v201902/ProposalLineItemService/CreateProgrammaticProposalLineItemsForNonSalesManagement.cs deleted file mode 100755 index 5745362f1c9..00000000000 --- a/examples/AdManager/CSharp/v201902/ProposalLineItemService/CreateProgrammaticProposalLineItemsForNonSalesManagement.cs +++ /dev/null @@ -1,170 +0,0 @@ -// Copyright 2018, Google Inc. All Rights Reserved. -// -// 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.v201902; -using Google.Api.Ads.AdManager.v201902; - -using System; - -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201902 -{ - /// - /// This example creates a new programmatic proposal line item in a - /// non-sales management network. - /// - public class CreateProgrammaticProposalLineItemsForNonSalesManagement : SampleBase - { - /// - /// Returns a description about the code example. - /// - public override string Description - { - get - { - return "This example creates a new programmatic proposal line item in a " + - "non-sales management network."; - } - } - - /// - /// Main method, to run this code example as a standalone application. - /// - public static void Main() - { - CreateProgrammaticProposalLineItemsForNonSalesManagement codeExample = - new CreateProgrammaticProposalLineItemsForNonSalesManagement(); - Console.WriteLine(codeExample.Description); - - // Set the ID of the proposal that the proposal line item will belong to. - long proposalId = long.Parse(_T("INSERT_PROPOSAL_ID_HERE")); - - codeExample.Run(new AdManagerUser(), proposalId); - } - - /// - /// Run the code examples. - /// - public void Run(AdManagerUser user, long proposalId) - { - using (ProposalLineItemService proposalLineItemService = - user.GetService()) - - using (NetworkService networkService = user.GetService()) - { - ProposalLineItem proposalLineItem = new ProposalLineItem(); - proposalLineItem.name = "Programmatic proposal line item #" + - new Random().Next(int.MaxValue); - proposalLineItem.proposalId = proposalId; - proposalLineItem.lineItemType = LineItemType.STANDARD; - - // Set required Marketplace information. - proposalLineItem.marketplaceInfo = new ProposalLineItemMarketplaceInfo() - { - adExchangeEnvironment = AdExchangeEnvironment.DISPLAY - }; - - // Get the root ad unit ID used to target the whole site. - String rootAdUnitId = networkService.getCurrentNetwork().effectiveRootAdUnitId; - - // Create inventory targeting. - InventoryTargeting inventoryTargeting = new InventoryTargeting(); - - // Create ad unit targeting for the root ad unit (i.e. the whole network). - AdUnitTargeting adUnitTargeting = new AdUnitTargeting(); - adUnitTargeting.adUnitId = rootAdUnitId; - adUnitTargeting.includeDescendants = true; - - inventoryTargeting.targetedAdUnits = new AdUnitTargeting[] - { - adUnitTargeting - }; - - // Create targeting. - Targeting targeting = new Targeting(); - targeting.inventoryTargeting = inventoryTargeting; - proposalLineItem.targeting = targeting; - - // Create creative placeholder. - Size size = new Size() - { - width = 300, - height = 250, - isAspectRatio = false - }; - CreativePlaceholder creativePlaceholder = new CreativePlaceholder(); - creativePlaceholder.size = size; - - proposalLineItem.creativePlaceholders = new CreativePlaceholder[] - { - creativePlaceholder - }; - - // Set the length of the proposal line item to run. - proposalLineItem.startDateTime = - DateTimeUtilities.FromDateTime(System.DateTime.Now.AddDays(7), - "America/New_York"); - proposalLineItem.endDateTime = - DateTimeUtilities.FromDateTime(System.DateTime.Now.AddDays(30), - "America/New_York"); - - // Set delivery specifications for the proposal line item. - proposalLineItem.deliveryRateType = DeliveryRateType.EVENLY; - - // Set pricing for the proposal line item for 1000 impressions at a CPM of $2 - // for a total value of $2. - proposalLineItem.goal = new Goal() - { - unitType = UnitType.IMPRESSIONS, - units = 1000L - }; - proposalLineItem.netCost = new Money() - { - currencyCode = "USD", - microAmount = 2000000L - }; - proposalLineItem.netRate = new Money() - { - currencyCode = "USD", - microAmount = 2000000L - }; - proposalLineItem.rateType = RateType.CPM; - - try - { - // Create the proposal line item on the server. - ProposalLineItem[] proposalLineItems = - proposalLineItemService.createProposalLineItems(new ProposalLineItem[] - { - proposalLineItem - }); - - foreach (ProposalLineItem createdProposalLineItem in proposalLineItems) - { - Console.WriteLine( - "A programmatic proposal line item with ID \"{0}\" " + - "and name \"{1}\" was created.", createdProposalLineItem.id, - createdProposalLineItem.name); - } - } - catch (Exception e) - { - Console.WriteLine( - "Failed to create programmatic proposal line items. " + - "Exception says \"{0}\"", e.Message); - } - } - } - } -} diff --git a/examples/AdManager/CSharp/v201902/ProposalLineItemService/CreateProposalLineItems.cs b/examples/AdManager/CSharp/v201902/ProposalLineItemService/CreateProposalLineItems.cs index d0a1e7407b3..3ce7d04e2fb 100755 --- a/examples/AdManager/CSharp/v201902/ProposalLineItemService/CreateProposalLineItems.cs +++ b/examples/AdManager/CSharp/v201902/ProposalLineItemService/CreateProposalLineItems.cs @@ -1,4 +1,4 @@ -// Copyright 2018, Google Inc. All Rights Reserved. +// 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. @@ -21,9 +21,7 @@ namespace Google.Api.Ads.AdManager.Examples.CSharp.v201902 { /// - /// This code example creates a new proposal line items. To determine which - /// proposal line items exist, run GetAllProposalLineItems.cs. To determine - /// which proposals exist, run GetAllProposals.cs. + /// This example creates a new proposal line item. /// public class CreateProposalLineItems : SampleBase { @@ -34,9 +32,7 @@ public override string Description { get { - return "This code example creates new proposal line items. To determine which " + - "proposal line items exist, run GetAllProposalLineItems.cs. To determine " + - "which proposals exist, run GetAllProposals.cs."; + return "This example creates a new proposal line item."; } } @@ -47,22 +43,34 @@ public static void Main() { CreateProposalLineItems codeExample = new CreateProposalLineItems(); Console.WriteLine(codeExample.Description); - codeExample.Run(new AdManagerUser()); + + // Set the ID of the proposal that the proposal line item will belong to. + long proposalId = long.Parse(_T("INSERT_PROPOSAL_ID_HERE")); + + codeExample.Run(new AdManagerUser(), proposalId); } /// /// Run the code examples. /// - public void Run(AdManagerUser user) + public void Run(AdManagerUser user, long proposalId) { using (ProposalLineItemService proposalLineItemService = - user.GetService()) + user.GetService()) using (NetworkService networkService = user.GetService()) { - long proposalId = long.Parse(_T("INSERT_PROPOSAL_ID_HERE")); - long rateCardId = long.Parse(_T("INSERT_RATE_CARD_ID_HERE")); - long productId = long.Parse(_T("INSERT_PRODUCT_ID_HERE")); + ProposalLineItem proposalLineItem = new ProposalLineItem(); + proposalLineItem.name = "Proposal line item #" + + new Random().Next(int.MaxValue); + proposalLineItem.proposalId = proposalId; + proposalLineItem.lineItemType = LineItemType.STANDARD; + + // Set required Marketplace information. + proposalLineItem.marketplaceInfo = new ProposalLineItemMarketplaceInfo() + { + adExchangeEnvironment = AdExchangeEnvironment.DISPLAY + }; // Get the root ad unit ID used to target the whole site. String rootAdUnitId = networkService.getCurrentNetwork().effectiveRootAdUnitId; @@ -83,16 +91,22 @@ public void Run(AdManagerUser user) // Create targeting. Targeting targeting = new Targeting(); targeting.inventoryTargeting = inventoryTargeting; + proposalLineItem.targeting = targeting; - // Create a proposal line item. - ProposalLineItem proposalLineItem = new ProposalLineItem(); - proposalLineItem.name = - "Proposal line item #" + new Random().Next(int.MaxValue); + // Create creative placeholder. + Size size = new Size() + { + width = 300, + height = 250, + isAspectRatio = false + }; + CreativePlaceholder creativePlaceholder = new CreativePlaceholder(); + creativePlaceholder.size = size; - proposalLineItem.proposalId = proposalId; - proposalLineItem.rateCardId = rateCardId; - proposalLineItem.productId = productId; - proposalLineItem.targeting = targeting; + proposalLineItem.creativePlaceholders = new CreativePlaceholder[] + { + creativePlaceholder + }; // Set the length of the proposal line item to run. proposalLineItem.startDateTime = @@ -104,11 +118,6 @@ public void Run(AdManagerUser user) // Set delivery specifications for the proposal line item. proposalLineItem.deliveryRateType = DeliveryRateType.EVENLY; - proposalLineItem.creativeRotationType = CreativeRotationType.OPTIMIZED; - - // Set billing specifications for the proposal line item. - proposalLineItem.billingCap = BillingCap.CAPPED_CUMULATIVE; - proposalLineItem.billingSource = BillingSource.THIRD_PARTY_VOLUME; // Set pricing for the proposal line item for 1000 impressions at a CPM of $2 // for a total value of $2. @@ -140,17 +149,16 @@ public void Run(AdManagerUser user) foreach (ProposalLineItem createdProposalLineItem in proposalLineItems) { - Console.WriteLine( - "A proposal line item with ID \"{0}\" and name \"{1}\" was " + - "created.", - createdProposalLineItem.id, createdProposalLineItem.name); + Console.WriteLine("A proposal line item with ID \"{0}\" " + + "and name \"{1}\" was created.", createdProposalLineItem.id, + createdProposalLineItem.name); } } catch (Exception e) { Console.WriteLine( - "Failed to create proposal line items. Exception says \"{0}\"", - e.Message); + "Failed to create proposal line items. " + + "Exception says \"{0}\"", e.Message); } } } diff --git a/examples/AdManager/CSharp/v201902/ProposalService/CreateProgrammaticProposals.cs b/examples/AdManager/CSharp/v201902/ProposalService/CreateProgrammaticProposals.cs deleted file mode 100755 index 1d6b5826c38..00000000000 --- a/examples/AdManager/CSharp/v201902/ProposalService/CreateProgrammaticProposals.cs +++ /dev/null @@ -1,128 +0,0 @@ -// Copyright 2018, Google Inc. All Rights Reserved. -// -// 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.v201902; - -using System; - -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201902 -{ - /// - /// This example creates a programmatic proposal. Your network must have sales management - /// enabled to run this example. - /// - public class CreateProgrammaticProposals : SampleBase - { - /// - /// Returns a description about the code example. - /// - public override string Description - { - get - { - return - "This example creates a programmatic proposal. Your network must have sales " + - "management enabled to run this example."; - } - } - - /// - /// Main method, to run this code example as a standalone application. - /// - public static void Main() - { - CreateProgrammaticProposals codeExample = new CreateProgrammaticProposals(); - Console.WriteLine(codeExample.Description); - - // Set the advertiser, salesperson, and trafficker to assign to each - // order. - long advertiserId = long.Parse(_T("INSERT_ADVERTISER_ID_HERE")); - long buyerId = long.Parse(_T("INSERT_BUYER_ID_HERE")); - long primarySalespersonId = long.Parse(_T("INSERT_PRIMARY_SALESPERSON_ID_HERE")); - long primaryTraffickerId = long.Parse(_T("INSERT_PRIMARY_TRAFFICKER_ID_HERE")); - - codeExample.Run(new AdManagerUser(), advertiserId, buyerId, primarySalespersonId, - primaryTraffickerId); - } - - /// - /// Run the code example. - /// - public void Run(AdManagerUser user, long advertiserId, long buyerId, - long primarySalespersonId, long primaryTraffickerId) - { - using (ProposalService proposalService = user.GetService()) - using (NetworkService networkService = user.GetService()) - { - // Create a proposal. - Proposal proposal = new Proposal(); - proposal.name = "Programmatic proposal #" + new Random().Next(int.MaxValue); - - // Set the required Marketplace information. - proposal.marketplaceInfo = new ProposalMarketplaceInfo() - { - buyerAccountId = buyerId - }; - proposal.isProgrammatic = true; - - // Create a proposal company association. - ProposalCompanyAssociation proposalCompanyAssociation = - new ProposalCompanyAssociation(); - proposalCompanyAssociation.companyId = advertiserId; - proposalCompanyAssociation.type = ProposalCompanyAssociationType.ADVERTISER; - proposal.advertiser = proposalCompanyAssociation; - - // Create salesperson splits for the primary salesperson. - SalespersonSplit primarySalesperson = new SalespersonSplit(); - primarySalesperson.userId = primarySalespersonId; - primarySalesperson.split = 100000; - proposal.primarySalesperson = primarySalesperson; - - // Set the probability to close to 100%. - proposal.probabilityOfClose = 100000L; - - // Set the primary trafficker on the proposal for when it becomes an order. - proposal.primaryTraffickerId = primaryTraffickerId; - - // Create a budget for the proposal worth 100 in the network local currency. - Money budget = new Money(); - budget.microAmount = 100000000L; - budget.currencyCode = networkService.getCurrentNetwork().currencyCode; - proposal.budget = budget; - - try - { - // Create the proposal on the server. - Proposal[] proposals = proposalService.createProposals(new Proposal[] - { - proposal - }); - - foreach (Proposal createdProposal in proposals) - { - Console.WriteLine( - "A programmatic proposal with ID \"{0}\" and name \"{1}\" " + - "was created.", createdProposal.id, createdProposal.name); - } - } - catch (Exception e) - { - Console.WriteLine("Failed to create proposals. Exception says \"{0}\"", - e.Message); - } - } - } - } -} diff --git a/examples/AdManager/CSharp/v201902/ProposalService/CreateProgrammaticProposalsForNonSalesManagement.cs b/examples/AdManager/CSharp/v201902/ProposalService/CreateProgrammaticProposalsForNonSalesManagement.cs deleted file mode 100755 index e52b4a7cf85..00000000000 --- a/examples/AdManager/CSharp/v201902/ProposalService/CreateProgrammaticProposalsForNonSalesManagement.cs +++ /dev/null @@ -1,117 +0,0 @@ -// Copyright 2018, Google Inc. All Rights Reserved. -// -// 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.v201902; - -using System; - -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201902 -{ - /// - /// This example creates a programmatic proposal for networks not using sales management. - /// - public class CreateProgrammaticProposalsForNonSalesManagement : SampleBase - { - /// - /// Returns a description about the code example. - /// - public override string Description - { - get - { - return "This example creates a programmatic proposal for networks " + - "not using sales management"; - } - } - - /// - /// Main method, to run this code example as a standalone application. - /// - public static void Main() - { - CreateProgrammaticProposalsForNonSalesManagement codeExample = - new CreateProgrammaticProposalsForNonSalesManagement(); - Console.WriteLine(codeExample.Description); - - long primarySalespersonId = long.Parse(_T("INSERT_PRIMARY_SALESPERSON_ID_HERE")); - long primaryTraffickerId = long.Parse(_T("INSERT_PRIMARY_TRAFFICKER_ID_HERE")); - - // Set the ID of the programmatic buyer. This can be obtained through the - // Programmatic_Buyer PQL table. - long programmaticBuyerId = long.Parse(_T("INSERT_PROGRAMMATIC_BUYER_ID_HERE")); - - long advertiserId = long.Parse(_T("INSERT_ADVERTISER_ID_HERE")); - - codeExample.Run(new AdManagerUser(), primarySalespersonId, primaryTraffickerId, - programmaticBuyerId, advertiserId); - } - - /// - /// Run the code example. - /// - public void Run(AdManagerUser user, long primarySalespersonId, long primaryTraffickerId, - long programmaticBuyerId, long advertiserId) - { - using (ProposalService proposalService = user.GetService()) - { - - // Create a proposal with the minimum required fields. - Proposal proposal = new Proposal() - { - name = "Programmatic proposal #" + new Random().Next(int.MaxValue), - isProgrammatic = true, - // Set required Marketplace information - marketplaceInfo = new ProposalMarketplaceInfo() - { - buyerAccountId = programmaticBuyerId - } - }; - - // Set fields that are required before sending the proposal to the buyer. - proposal.primaryTraffickerId = primaryTraffickerId; - proposal.sellerContactIds = new long[] { primarySalespersonId }; - proposal.primarySalesperson = new SalespersonSplit() - { - userId = primarySalespersonId, - split = 100000 - }; - proposal.advertiser = new ProposalCompanyAssociation() - { - type = ProposalCompanyAssociationType.ADVERTISER, - companyId = advertiserId - }; - - try - { - // Create the proposal on the server. - Proposal[] proposals = - proposalService.createProposals(new Proposal[] { proposal }); - - foreach (Proposal createdProposal in proposals) - { - Console.WriteLine("A programmatic proposal with ID \"{0}\" " + - "and name \"{1}\" was created.", - createdProposal.id, createdProposal.name); - } - } - catch (Exception e) - { - Console.WriteLine("Failed to create proposals. Exception says \"{0}\"", - e.Message); - } - } - } - } -} diff --git a/examples/AdManager/CSharp/v201902/ProposalService/CreateProposals.cs b/examples/AdManager/CSharp/v201902/ProposalService/CreateProposals.cs index 282c9051ca3..7b8b6b70615 100755 --- a/examples/AdManager/CSharp/v201902/ProposalService/CreateProposals.cs +++ b/examples/AdManager/CSharp/v201902/ProposalService/CreateProposals.cs @@ -1,4 +1,4 @@ -// Copyright 2018, Google Inc. All Rights Reserved. +// 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. @@ -20,8 +20,7 @@ namespace Google.Api.Ads.AdManager.Examples.CSharp.v201902 { /// - /// This code example creates new proposals. To determine which proposals exist, - /// run GetAllProposals.cs. + /// This example creates a proposal. /// public class CreateProposals : SampleBase { @@ -32,8 +31,7 @@ public override string Description { get { - return "This code example creates new proposals. To determine which proposals " + - "exist, run GetAllProposals.cs."; + return "This example creates a proposal"; } } @@ -42,93 +40,76 @@ public override string Description /// public static void Main() { - CreateProposals codeExample = new CreateProposals(); + CreateProposals codeExample = + new CreateProposals(); Console.WriteLine(codeExample.Description); - codeExample.Run(new AdManagerUser()); + + long primarySalespersonId = long.Parse(_T("INSERT_PRIMARY_SALESPERSON_ID_HERE")); + long primaryTraffickerId = long.Parse(_T("INSERT_PRIMARY_TRAFFICKER_ID_HERE")); + + // Set the ID of the programmatic buyer. This can be obtained through the + // Programmatic_Buyer PQL table. + long programmaticBuyerId = long.Parse(_T("INSERT_PROGRAMMATIC_BUYER_ID_HERE")); + + long advertiserId = long.Parse(_T("INSERT_ADVERTISER_ID_HERE")); + + codeExample.Run(new AdManagerUser(), primarySalespersonId, primaryTraffickerId, + programmaticBuyerId, advertiserId); } /// /// Run the code example. /// - public void Run(AdManagerUser user) + public void Run(AdManagerUser user, long primarySalespersonId, long primaryTraffickerId, + long programmaticBuyerId, long advertiserId) { using (ProposalService proposalService = user.GetService()) + { - using (NetworkService networkService = user.GetService()) + // Create a proposal with the minimum required fields. + Proposal proposal = new Proposal() { - // Set the advertiser, salesperson, and trafficker to assign to each - // order. - long advertiserId = long.Parse(_T("INSERT_ADVERTISER_ID_HERE")); - long primarySalespersonId = - long.Parse(_T("INSERT_PRIMARY_SALESPERSON_ID_HERE")); - long secondarySalespersonId = - long.Parse(_T("INSERT_SECONDARY_SALESPERSON_ID_HERE")); - long primaryTraffickerId = long.Parse(_T("INSERT_PRIMARY_TRAFFICKER_ID_HERE")); - long secondaryTraffickerId = - long.Parse(_T("INSERT_SECONDARY_TRAFFICKER_ID_HERE")); - - // Create a proposal. - Proposal proposal = new Proposal(); - proposal.name = "Proposal #" + new Random().Next(int.MaxValue); - - // Create a proposal company association. - ProposalCompanyAssociation proposalCompanyAssociation = - new ProposalCompanyAssociation(); - proposalCompanyAssociation.companyId = advertiserId; - proposalCompanyAssociation.type = ProposalCompanyAssociationType.ADVERTISER; - proposal.advertiser = proposalCompanyAssociation; - - // Create salesperson splits for the primary salesperson and secondary - // salespeople. - SalespersonSplit primarySalesperson = new SalespersonSplit(); - primarySalesperson.userId = primarySalespersonId; - primarySalesperson.split = 75000; - proposal.primarySalesperson = primarySalesperson; - - SalespersonSplit secondarySalesperson = new SalespersonSplit(); - secondarySalesperson.userId = secondarySalespersonId; - secondarySalesperson.split = 25000; - proposal.secondarySalespeople = new SalespersonSplit[] + name = "Programmatic proposal #" + new Random().Next(int.MaxValue), + // Set required Marketplace information + marketplaceInfo = new ProposalMarketplaceInfo() { - secondarySalesperson - }; - - // Set the probability to close to 100%. - proposal.probabilityOfClose = 100000L; - - // Set the primary trafficker on the proposal for when it becomes an order. - proposal.primaryTraffickerId = primaryTraffickerId; - - // Create a budget for the proposal worth 100 in the network local currency. - Money budget = new Money(); - budget.microAmount = 100000000L; - budget.currencyCode = networkService.getCurrentNetwork().currencyCode; - proposal.budget = budget; + buyerAccountId = programmaticBuyerId + } + }; - proposal.billingCap = BillingCap.CAPPED_CUMULATIVE; - proposal.billingSource = BillingSource.DFP_VOLUME; + // Set fields that are required before sending the proposal to the buyer. + proposal.primaryTraffickerId = primaryTraffickerId; + proposal.sellerContactIds = new long[] { primarySalespersonId }; + proposal.primarySalesperson = new SalespersonSplit() + { + userId = primarySalespersonId, + split = 100000 + }; + proposal.advertiser = new ProposalCompanyAssociation() + { + type = ProposalCompanyAssociationType.ADVERTISER, + companyId = advertiserId + }; - try - { - // Create the proposal on the server. - Proposal[] proposals = proposalService.createProposals(new Proposal[] - { - proposal - }); + try + { + // Create the proposal on the server. + Proposal[] proposals = + proposalService.createProposals(new Proposal[] { proposal }); - foreach (Proposal createdProposal in proposals) - { - Console.WriteLine( - "A proposal with ID \"{0}\" and name \"{1}\" was created.", - createdProposal.id, createdProposal.name); - } - } - catch (Exception e) + foreach (Proposal createdProposal in proposals) { - Console.WriteLine("Failed to create proposals. Exception says \"{0}\"", - e.Message); + Console.WriteLine("A programmatic proposal with ID \"{0}\" " + + "and name \"{1}\" was created.", + createdProposal.id, createdProposal.name); } } + catch (Exception e) + { + Console.WriteLine("Failed to create proposals. Exception says \"{0}\"", + e.Message); + } + } } } } diff --git a/examples/AdManager/CSharp/v201902/ProposalService/GetProposalsPendingApproval.cs b/examples/AdManager/CSharp/v201902/ProposalService/GetProposalsAwaitingSellerReview.cs similarity index 86% rename from examples/AdManager/CSharp/v201902/ProposalService/GetProposalsPendingApproval.cs rename to examples/AdManager/CSharp/v201902/ProposalService/GetProposalsAwaitingSellerReview.cs index 228cb6f04f3..c783ade7142 100755 --- a/examples/AdManager/CSharp/v201902/ProposalService/GetProposalsPendingApproval.cs +++ b/examples/AdManager/CSharp/v201902/ProposalService/GetProposalsAwaitingSellerReview.cs @@ -1,4 +1,4 @@ -// Copyright 2017, Google Inc. All Rights Reserved. +// 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. @@ -21,16 +21,16 @@ namespace Google.Api.Ads.AdManager.Examples.CSharp.v201902 { /// - /// This example gets all proposals pending approval. + /// This example gets all proposals awaiting seller review. /// - public class GetProposalsPendingApproval : SampleBase + public class GetProposalsAwaitingSellerReivew : SampleBase { /// /// Returns a description about the code example. /// public override string Description { - get { return "This example gets all proposals pending approval."; } + get { return "This example gets all proposals awaiting seller review."; } } /// @@ -38,7 +38,7 @@ public override string Description /// public static void Main() { - GetProposalsPendingApproval codeExample = new GetProposalsPendingApproval(); + GetProposalsAwaitingSellerReivew codeExample = new GetProposalsAwaitingSellerReivew(); Console.WriteLine(codeExample.Description); try { @@ -60,10 +60,10 @@ public void Run(AdManagerUser user) // Create a statement to select proposals. int pageSize = StatementBuilder.SUGGESTED_PAGE_LIMIT; StatementBuilder statementBuilder = new StatementBuilder() - .Where("status = :status") + .Where("negotiationStatus = :status") .OrderBy("id ASC") .Limit(pageSize) - .AddValue("status", ProposalStatus.PENDING_APPROVAL.ToString()); + .AddValue("status", NegotiationStatus.AWAITING_SELLER_REVIEW.ToString()); // Retrieve a small amount of proposals at a time, paging through until all // proposals have been retrieved. diff --git a/examples/AdManager/CSharp/v201902/ProposalService/SubmitProposalsForApproval.cs b/examples/AdManager/CSharp/v201902/ProposalService/SubmitProposalsForApproval.cs deleted file mode 100755 index 986a0b18664..00000000000 --- a/examples/AdManager/CSharp/v201902/ProposalService/SubmitProposalsForApproval.cs +++ /dev/null @@ -1,132 +0,0 @@ -// Copyright 2018, Google Inc. All Rights Reserved. -// -// 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.v201902; -using Google.Api.Ads.AdManager.v201902; - -using System; -using System.Collections.Generic; - -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201902 -{ - /// - /// This code example submits a proposal for approval. To determine which proposals exist, - /// run GetAllProposals.cs. - /// - public class ApproveProposal : SampleBase - { - /// - /// Returns a description about the code example. - /// - public override string Description - { - get - { - return "This code example submits a proposal for approval. To determine which " + - "proposals exist, run GetAllProposals.cs."; - } - } - - /// - /// Main method, to run this code example as a standalone application. - /// - public static void Main() - { - ApproveProposal codeExample = new ApproveProposal(); - Console.WriteLine(codeExample.Description); - codeExample.Run(new AdManagerUser()); - } - - /// - /// Run the code example. - /// - public void Run(AdManagerUser user) - { - using (ProposalService proposalService = user.GetService()) - { - // Set the ID of the proposal. - long proposalId = long.Parse(_T("INSERT_PROPOSAL_ID_HERE")); - - // Create statement to select the proposal. - StatementBuilder statementBuilder = new StatementBuilder() - .Where("id = :id") - .OrderBy("id ASC") - .Limit(1) - .AddValue("id", proposalId); - - // Set default for page. - ProposalPage page = new ProposalPage(); - List proposalIds = new List(); - int i = 0; - - try - { - do - { - // Get proposals by statement. - page = proposalService.getProposalsByStatement( - statementBuilder.ToStatement()); - - if (page.results != null) - { - foreach (Proposal proposal in page.results) - { - Console.WriteLine( - "{0}) Proposal with ID = '{1}', name = '{2}', and " + - "status ='{3}' will be approved.", i++, proposal.id, - proposal.name, proposal.status); - proposalIds.Add(proposal.id.ToString()); - } - } - - statementBuilder.IncreaseOffsetBy(StatementBuilder.SUGGESTED_PAGE_LIMIT); - } while (statementBuilder.GetOffset() < page.totalResultSetSize); - - Console.WriteLine("Number of proposals to be approved: {0}", proposalIds.Count); - - if (proposalIds.Count > 0) - { - // Modify statement for action. - statementBuilder.RemoveLimitAndOffset(); - - // Create action. - SubmitProposalsForApproval action = new SubmitProposalsForApproval(); - - // Perform action. - UpdateResult result = - proposalService.performProposalAction(action, - statementBuilder.ToStatement()); - - // Display results. - if (result != null && result.numChanges > 0) - { - Console.WriteLine("Number of proposals approved: {0}", - result.numChanges); - } - else - { - Console.WriteLine("No proposals were approved."); - } - } - } - catch (Exception e) - { - Console.WriteLine("Failed to approve proposals. Exception says \"{0}\"", - e.Message); - } - } - } - } -} diff --git a/examples/AdManager/CSharp/v201905/ProposalLineItemService/CreateProgrammaticProposalLineItems.cs b/examples/AdManager/CSharp/v201905/ProposalLineItemService/CreateProgrammaticProposalLineItems.cs deleted file mode 100755 index fdeffadd290..00000000000 --- a/examples/AdManager/CSharp/v201905/ProposalLineItemService/CreateProgrammaticProposalLineItems.cs +++ /dev/null @@ -1,133 +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.v201905; -using Google.Api.Ads.AdManager.v201905; - -using System; - -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201905 -{ - /// - /// This code example creates a new programmatic proposal line item that - /// uses its product's targeting. Your network must have sales management enabled - /// to run this example. - /// - public class CreateProgrammaticProposalLineItems : SampleBase - { - /// - /// Returns a description about the code example. - /// - public override string Description - { - get - { - return "This code example creates a new programmatic proposal line item that " + - "uses its product's targeting. Your network must have sales management " + - "enabled to run this example."; - } - } - - /// - /// Main method, to run this code example as a standalone application. - /// - public static void Main() - { - CreateProgrammaticProposalLineItems codeExample = - new CreateProgrammaticProposalLineItems(); - Console.WriteLine(codeExample.Description); - - long proposalId = long.Parse(_T("INSERT_PROPOSAL_ID_HERE")); - long rateCardId = long.Parse(_T("INSERT_RATE_CARD_ID_HERE")); - long productId = long.Parse(_T("INSERT_PRODUCT_ID_HERE")); - - codeExample.Run(new AdManagerUser(), proposalId, rateCardId, productId); - } - - /// - /// Run the code examples. - /// - public void Run(AdManagerUser user, long proposalId, long rateCardId, long productId) - { - using (ProposalLineItemService proposalLineItemService = - user.GetService()) - { - // Create a proposal line item. - ProposalLineItem proposalLineItem = new ProposalLineItem(); - proposalLineItem.name = "Programmatic proposal line item #" + - new Random().Next(int.MaxValue); - proposalLineItem.proposalId = proposalId; - proposalLineItem.rateCardId = rateCardId; - proposalLineItem.productId = productId; - - // Set the Marketplace information. - proposalLineItem.marketplaceInfo = new ProposalLineItemMarketplaceInfo() - { - adExchangeEnvironment = AdExchangeEnvironment.DISPLAY - }; - - // Set the length of the proposal line item to run. - proposalLineItem.startDateTime = - DateTimeUtilities.FromDateTime(System.DateTime.Now.AddDays(7), - "America/New_York"); - proposalLineItem.endDateTime = - DateTimeUtilities.FromDateTime(System.DateTime.Now.AddDays(30), - "America/New_York"); - - // Set pricing for the proposal line item for 1000 impressions at a CPM of $2 - // for a total value of $2. - proposalLineItem.goal = new Goal() - { - unitType = UnitType.IMPRESSIONS, - units = 1000L - }; - proposalLineItem.netCost = new Money() - { - currencyCode = "USD", - microAmount = 2000000L - }; - proposalLineItem.netRate = new Money() - { - currencyCode = "USD", - microAmount = 2000000L - }; - proposalLineItem.rateType = RateType.CPM; - - try - { - // Create the proposal line item on the server. - ProposalLineItem[] proposalLineItems = - proposalLineItemService.createProposalLineItems(new ProposalLineItem[] - { - proposalLineItem - }); - - foreach (ProposalLineItem createdProposalLineItem in proposalLineItems) - { - Console.WriteLine( - "A programmatic proposal line item with ID \"{0}\" " + - "and name \"{1}\" was created.", createdProposalLineItem.id, - createdProposalLineItem.name); - } - } - catch (Exception e) - { - Console.WriteLine( - "Failed to create proposal line items. Exception says \"{0}\"", e.Message); - } - } - } - } -} diff --git a/examples/AdManager/CSharp/v201905/ProposalLineItemService/CreateProposalLineItems.cs b/examples/AdManager/CSharp/v201905/ProposalLineItemService/CreateProposalLineItems.cs index 3b422a68aef..5b26235cbdd 100755 --- a/examples/AdManager/CSharp/v201905/ProposalLineItemService/CreateProposalLineItems.cs +++ b/examples/AdManager/CSharp/v201905/ProposalLineItemService/CreateProposalLineItems.cs @@ -21,9 +21,7 @@ namespace Google.Api.Ads.AdManager.Examples.CSharp.v201905 { /// - /// This code example creates a new proposal line items. To determine which - /// proposal line items exist, run GetAllProposalLineItems.cs. To determine - /// which proposals exist, run GetAllProposals.cs. + /// This example creates a new proposal line item. /// public class CreateProposalLineItems : SampleBase { @@ -34,9 +32,7 @@ public override string Description { get { - return "This code example creates new proposal line items. To determine which " + - "proposal line items exist, run GetAllProposalLineItems.cs. To determine " + - "which proposals exist, run GetAllProposals.cs."; + return "This example creates a new proposal line item."; } } @@ -47,22 +43,34 @@ public static void Main() { CreateProposalLineItems codeExample = new CreateProposalLineItems(); Console.WriteLine(codeExample.Description); - codeExample.Run(new AdManagerUser()); + + // Set the ID of the proposal that the proposal line item will belong to. + long proposalId = long.Parse(_T("INSERT_PROPOSAL_ID_HERE")); + + codeExample.Run(new AdManagerUser(), proposalId); } /// /// Run the code examples. /// - public void Run(AdManagerUser user) + public void Run(AdManagerUser user, long proposalId) { using (ProposalLineItemService proposalLineItemService = - user.GetService()) + user.GetService()) using (NetworkService networkService = user.GetService()) { - long proposalId = long.Parse(_T("INSERT_PROPOSAL_ID_HERE")); - long rateCardId = long.Parse(_T("INSERT_RATE_CARD_ID_HERE")); - long productId = long.Parse(_T("INSERT_PRODUCT_ID_HERE")); + ProposalLineItem proposalLineItem = new ProposalLineItem(); + proposalLineItem.name = "Proposal line item #" + + new Random().Next(int.MaxValue); + proposalLineItem.proposalId = proposalId; + proposalLineItem.lineItemType = LineItemType.STANDARD; + + // Set required Marketplace information. + proposalLineItem.marketplaceInfo = new ProposalLineItemMarketplaceInfo() + { + adExchangeEnvironment = AdExchangeEnvironment.DISPLAY + }; // Get the root ad unit ID used to target the whole site. String rootAdUnitId = networkService.getCurrentNetwork().effectiveRootAdUnitId; @@ -83,16 +91,22 @@ public void Run(AdManagerUser user) // Create targeting. Targeting targeting = new Targeting(); targeting.inventoryTargeting = inventoryTargeting; + proposalLineItem.targeting = targeting; - // Create a proposal line item. - ProposalLineItem proposalLineItem = new ProposalLineItem(); - proposalLineItem.name = - "Proposal line item #" + new Random().Next(int.MaxValue); + // Create creative placeholder. + Size size = new Size() + { + width = 300, + height = 250, + isAspectRatio = false + }; + CreativePlaceholder creativePlaceholder = new CreativePlaceholder(); + creativePlaceholder.size = size; - proposalLineItem.proposalId = proposalId; - proposalLineItem.rateCardId = rateCardId; - proposalLineItem.productId = productId; - proposalLineItem.targeting = targeting; + proposalLineItem.creativePlaceholders = new CreativePlaceholder[] + { + creativePlaceholder + }; // Set the length of the proposal line item to run. proposalLineItem.startDateTime = @@ -104,11 +118,6 @@ public void Run(AdManagerUser user) // Set delivery specifications for the proposal line item. proposalLineItem.deliveryRateType = DeliveryRateType.EVENLY; - proposalLineItem.creativeRotationType = CreativeRotationType.OPTIMIZED; - - // Set billing specifications for the proposal line item. - proposalLineItem.billingCap = BillingCap.CAPPED_CUMULATIVE; - proposalLineItem.billingSource = BillingSource.THIRD_PARTY_VOLUME; // Set pricing for the proposal line item for 1000 impressions at a CPM of $2 // for a total value of $2. @@ -140,17 +149,16 @@ public void Run(AdManagerUser user) foreach (ProposalLineItem createdProposalLineItem in proposalLineItems) { - Console.WriteLine( - "A proposal line item with ID \"{0}\" and name \"{1}\" was " + - "created.", - createdProposalLineItem.id, createdProposalLineItem.name); + Console.WriteLine("A proposal line item with ID \"{0}\" " + + "and name \"{1}\" was created.", createdProposalLineItem.id, + createdProposalLineItem.name); } } catch (Exception e) { Console.WriteLine( - "Failed to create proposal line items. Exception says \"{0}\"", - e.Message); + "Failed to create proposal line items. " + + "Exception says \"{0}\"", e.Message); } } } diff --git a/examples/AdManager/CSharp/v201905/ProposalService/CreateProgrammaticProposals.cs b/examples/AdManager/CSharp/v201905/ProposalService/CreateProgrammaticProposals.cs deleted file mode 100755 index 075bc57d738..00000000000 --- a/examples/AdManager/CSharp/v201905/ProposalService/CreateProgrammaticProposals.cs +++ /dev/null @@ -1,128 +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.v201905; - -using System; - -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201905 -{ - /// - /// This example creates a programmatic proposal. Your network must have sales management - /// enabled to run this example. - /// - public class CreateProgrammaticProposals : SampleBase - { - /// - /// Returns a description about the code example. - /// - public override string Description - { - get - { - return - "This example creates a programmatic proposal. Your network must have sales " + - "management enabled to run this example."; - } - } - - /// - /// Main method, to run this code example as a standalone application. - /// - public static void Main() - { - CreateProgrammaticProposals codeExample = new CreateProgrammaticProposals(); - Console.WriteLine(codeExample.Description); - - // Set the advertiser, salesperson, and trafficker to assign to each - // order. - long advertiserId = long.Parse(_T("INSERT_ADVERTISER_ID_HERE")); - long buyerId = long.Parse(_T("INSERT_BUYER_ID_HERE")); - long primarySalespersonId = long.Parse(_T("INSERT_PRIMARY_SALESPERSON_ID_HERE")); - long primaryTraffickerId = long.Parse(_T("INSERT_PRIMARY_TRAFFICKER_ID_HERE")); - - codeExample.Run(new AdManagerUser(), advertiserId, buyerId, primarySalespersonId, - primaryTraffickerId); - } - - /// - /// Run the code example. - /// - public void Run(AdManagerUser user, long advertiserId, long buyerId, - long primarySalespersonId, long primaryTraffickerId) - { - using (ProposalService proposalService = user.GetService()) - using (NetworkService networkService = user.GetService()) - { - // Create a proposal. - Proposal proposal = new Proposal(); - proposal.name = "Programmatic proposal #" + new Random().Next(int.MaxValue); - - // Set the required Marketplace information. - proposal.marketplaceInfo = new ProposalMarketplaceInfo() - { - buyerAccountId = buyerId - }; - proposal.isProgrammatic = true; - - // Create a proposal company association. - ProposalCompanyAssociation proposalCompanyAssociation = - new ProposalCompanyAssociation(); - proposalCompanyAssociation.companyId = advertiserId; - proposalCompanyAssociation.type = ProposalCompanyAssociationType.ADVERTISER; - proposal.advertiser = proposalCompanyAssociation; - - // Create salesperson splits for the primary salesperson. - SalespersonSplit primarySalesperson = new SalespersonSplit(); - primarySalesperson.userId = primarySalespersonId; - primarySalesperson.split = 100000; - proposal.primarySalesperson = primarySalesperson; - - // Set the probability to close to 100%. - proposal.probabilityOfClose = 100000L; - - // Set the primary trafficker on the proposal for when it becomes an order. - proposal.primaryTraffickerId = primaryTraffickerId; - - // Create a budget for the proposal worth 100 in the network local currency. - Money budget = new Money(); - budget.microAmount = 100000000L; - budget.currencyCode = networkService.getCurrentNetwork().currencyCode; - proposal.budget = budget; - - try - { - // Create the proposal on the server. - Proposal[] proposals = proposalService.createProposals(new Proposal[] - { - proposal - }); - - foreach (Proposal createdProposal in proposals) - { - Console.WriteLine( - "A programmatic proposal with ID \"{0}\" and name \"{1}\" " + - "was created.", createdProposal.id, createdProposal.name); - } - } - catch (Exception e) - { - Console.WriteLine("Failed to create proposals. Exception says \"{0}\"", - e.Message); - } - } - } - } -} diff --git a/examples/AdManager/CSharp/v201905/ProposalService/CreateProposals.cs b/examples/AdManager/CSharp/v201905/ProposalService/CreateProposals.cs index 813263b33f2..6853b815ead 100755 --- a/examples/AdManager/CSharp/v201905/ProposalService/CreateProposals.cs +++ b/examples/AdManager/CSharp/v201905/ProposalService/CreateProposals.cs @@ -20,8 +20,7 @@ namespace Google.Api.Ads.AdManager.Examples.CSharp.v201905 { /// - /// This code example creates new proposals. To determine which proposals exist, - /// run GetAllProposals.cs. + /// This example creates a proposal. /// public class CreateProposals : SampleBase { @@ -32,8 +31,7 @@ public override string Description { get { - return "This code example creates new proposals. To determine which proposals " + - "exist, run GetAllProposals.cs."; + return "This example creates a proposal"; } } @@ -42,93 +40,76 @@ public override string Description /// public static void Main() { - CreateProposals codeExample = new CreateProposals(); + CreateProposals codeExample = + new CreateProposals(); Console.WriteLine(codeExample.Description); - codeExample.Run(new AdManagerUser()); + + long primarySalespersonId = long.Parse(_T("INSERT_PRIMARY_SALESPERSON_ID_HERE")); + long primaryTraffickerId = long.Parse(_T("INSERT_PRIMARY_TRAFFICKER_ID_HERE")); + + // Set the ID of the programmatic buyer. This can be obtained through the + // Programmatic_Buyer PQL table. + long programmaticBuyerId = long.Parse(_T("INSERT_PROGRAMMATIC_BUYER_ID_HERE")); + + long advertiserId = long.Parse(_T("INSERT_ADVERTISER_ID_HERE")); + + codeExample.Run(new AdManagerUser(), primarySalespersonId, primaryTraffickerId, + programmaticBuyerId, advertiserId); } /// /// Run the code example. /// - public void Run(AdManagerUser user) + public void Run(AdManagerUser user, long primarySalespersonId, long primaryTraffickerId, + long programmaticBuyerId, long advertiserId) { using (ProposalService proposalService = user.GetService()) + { - using (NetworkService networkService = user.GetService()) + // Create a proposal with the minimum required fields. + Proposal proposal = new Proposal() { - // Set the advertiser, salesperson, and trafficker to assign to each - // order. - long advertiserId = long.Parse(_T("INSERT_ADVERTISER_ID_HERE")); - long primarySalespersonId = - long.Parse(_T("INSERT_PRIMARY_SALESPERSON_ID_HERE")); - long secondarySalespersonId = - long.Parse(_T("INSERT_SECONDARY_SALESPERSON_ID_HERE")); - long primaryTraffickerId = long.Parse(_T("INSERT_PRIMARY_TRAFFICKER_ID_HERE")); - long secondaryTraffickerId = - long.Parse(_T("INSERT_SECONDARY_TRAFFICKER_ID_HERE")); - - // Create a proposal. - Proposal proposal = new Proposal(); - proposal.name = "Proposal #" + new Random().Next(int.MaxValue); - - // Create a proposal company association. - ProposalCompanyAssociation proposalCompanyAssociation = - new ProposalCompanyAssociation(); - proposalCompanyAssociation.companyId = advertiserId; - proposalCompanyAssociation.type = ProposalCompanyAssociationType.ADVERTISER; - proposal.advertiser = proposalCompanyAssociation; - - // Create salesperson splits for the primary salesperson and secondary - // salespeople. - SalespersonSplit primarySalesperson = new SalespersonSplit(); - primarySalesperson.userId = primarySalespersonId; - primarySalesperson.split = 75000; - proposal.primarySalesperson = primarySalesperson; - - SalespersonSplit secondarySalesperson = new SalespersonSplit(); - secondarySalesperson.userId = secondarySalespersonId; - secondarySalesperson.split = 25000; - proposal.secondarySalespeople = new SalespersonSplit[] + name = "Programmatic proposal #" + new Random().Next(int.MaxValue), + // Set required Marketplace information + marketplaceInfo = new ProposalMarketplaceInfo() { - secondarySalesperson - }; - - // Set the probability to close to 100%. - proposal.probabilityOfClose = 100000L; - - // Set the primary trafficker on the proposal for when it becomes an order. - proposal.primaryTraffickerId = primaryTraffickerId; - - // Create a budget for the proposal worth 100 in the network local currency. - Money budget = new Money(); - budget.microAmount = 100000000L; - budget.currencyCode = networkService.getCurrentNetwork().currencyCode; - proposal.budget = budget; + buyerAccountId = programmaticBuyerId + } + }; - proposal.billingCap = BillingCap.CAPPED_CUMULATIVE; - proposal.billingSource = BillingSource.DFP_VOLUME; + // Set fields that are required before sending the proposal to the buyer. + proposal.primaryTraffickerId = primaryTraffickerId; + proposal.sellerContactIds = new long[] { primarySalespersonId }; + proposal.primarySalesperson = new SalespersonSplit() + { + userId = primarySalespersonId, + split = 100000 + }; + proposal.advertiser = new ProposalCompanyAssociation() + { + type = ProposalCompanyAssociationType.ADVERTISER, + companyId = advertiserId + }; - try - { - // Create the proposal on the server. - Proposal[] proposals = proposalService.createProposals(new Proposal[] - { - proposal - }); + try + { + // Create the proposal on the server. + Proposal[] proposals = + proposalService.createProposals(new Proposal[] { proposal }); - foreach (Proposal createdProposal in proposals) - { - Console.WriteLine( - "A proposal with ID \"{0}\" and name \"{1}\" was created.", - createdProposal.id, createdProposal.name); - } - } - catch (Exception e) + foreach (Proposal createdProposal in proposals) { - Console.WriteLine("Failed to create proposals. Exception says \"{0}\"", - e.Message); + Console.WriteLine("A programmatic proposal with ID \"{0}\" " + + "and name \"{1}\" was created.", + createdProposal.id, createdProposal.name); } } + catch (Exception e) + { + Console.WriteLine("Failed to create proposals. Exception says \"{0}\"", + e.Message); + } + } } } } diff --git a/examples/AdManager/CSharp/v201905/ProposalService/GetProposalsPendingApproval.cs b/examples/AdManager/CSharp/v201905/ProposalService/GetProposalsAwaitingSellerReview.cs similarity index 87% rename from examples/AdManager/CSharp/v201905/ProposalService/GetProposalsPendingApproval.cs rename to examples/AdManager/CSharp/v201905/ProposalService/GetProposalsAwaitingSellerReview.cs index 7b451bb35c7..552ed93e009 100755 --- a/examples/AdManager/CSharp/v201905/ProposalService/GetProposalsPendingApproval.cs +++ b/examples/AdManager/CSharp/v201905/ProposalService/GetProposalsAwaitingSellerReview.cs @@ -21,16 +21,16 @@ namespace Google.Api.Ads.AdManager.Examples.CSharp.v201905 { /// - /// This example gets all proposals pending approval. + /// This example gets all proposals awaiting seller review. /// - public class GetProposalsPendingApproval : SampleBase + public class GetProposalsAwaitingSellerReivew : SampleBase { /// /// Returns a description about the code example. /// public override string Description { - get { return "This example gets all proposals pending approval."; } + get { return "This example gets all proposals awaiting seller review."; } } /// @@ -38,7 +38,7 @@ public override string Description /// public static void Main() { - GetProposalsPendingApproval codeExample = new GetProposalsPendingApproval(); + GetProposalsAwaitingSellerReivew codeExample = new GetProposalsAwaitingSellerReivew(); Console.WriteLine(codeExample.Description); try { @@ -60,10 +60,10 @@ public void Run(AdManagerUser user) // Create a statement to select proposals. int pageSize = StatementBuilder.SUGGESTED_PAGE_LIMIT; StatementBuilder statementBuilder = new StatementBuilder() - .Where("status = :status") + .Where("negotiationStatus = :status") .OrderBy("id ASC") .Limit(pageSize) - .AddValue("status", ProposalStatus.PENDING_APPROVAL.ToString()); + .AddValue("status", NegotiationStatus.AWAITING_SELLER_REVIEW.ToString()); // Retrieve a small amount of proposals at a time, paging through until all // proposals have been retrieved. diff --git a/examples/AdManager/CSharp/v201905/ProposalService/SubmitProposalsForApproval.cs b/examples/AdManager/CSharp/v201905/ProposalService/SubmitProposalsForApproval.cs deleted file mode 100755 index 6eef618eb40..00000000000 --- a/examples/AdManager/CSharp/v201905/ProposalService/SubmitProposalsForApproval.cs +++ /dev/null @@ -1,132 +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.v201905; -using Google.Api.Ads.AdManager.v201905; - -using System; -using System.Collections.Generic; - -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201905 -{ - /// - /// This code example submits a proposal for approval. To determine which proposals exist, - /// run GetAllProposals.cs. - /// - public class ApproveProposal : SampleBase - { - /// - /// Returns a description about the code example. - /// - public override string Description - { - get - { - return "This code example submits a proposal for approval. To determine which " + - "proposals exist, run GetAllProposals.cs."; - } - } - - /// - /// Main method, to run this code example as a standalone application. - /// - public static void Main() - { - ApproveProposal codeExample = new ApproveProposal(); - Console.WriteLine(codeExample.Description); - codeExample.Run(new AdManagerUser()); - } - - /// - /// Run the code example. - /// - public void Run(AdManagerUser user) - { - using (ProposalService proposalService = user.GetService()) - { - // Set the ID of the proposal. - long proposalId = long.Parse(_T("INSERT_PROPOSAL_ID_HERE")); - - // Create statement to select the proposal. - StatementBuilder statementBuilder = new StatementBuilder() - .Where("id = :id") - .OrderBy("id ASC") - .Limit(1) - .AddValue("id", proposalId); - - // Set default for page. - ProposalPage page = new ProposalPage(); - List proposalIds = new List(); - int i = 0; - - try - { - do - { - // Get proposals by statement. - page = proposalService.getProposalsByStatement( - statementBuilder.ToStatement()); - - if (page.results != null) - { - foreach (Proposal proposal in page.results) - { - Console.WriteLine( - "{0}) Proposal with ID = '{1}', name = '{2}', and " + - "status ='{3}' will be approved.", i++, proposal.id, - proposal.name, proposal.status); - proposalIds.Add(proposal.id.ToString()); - } - } - - statementBuilder.IncreaseOffsetBy(StatementBuilder.SUGGESTED_PAGE_LIMIT); - } while (statementBuilder.GetOffset() < page.totalResultSetSize); - - Console.WriteLine("Number of proposals to be approved: {0}", proposalIds.Count); - - if (proposalIds.Count > 0) - { - // Modify statement for action. - statementBuilder.RemoveLimitAndOffset(); - - // Create action. - SubmitProposalsForApproval action = new SubmitProposalsForApproval(); - - // Perform action. - UpdateResult result = - proposalService.performProposalAction(action, - statementBuilder.ToStatement()); - - // Display results. - if (result != null && result.numChanges > 0) - { - Console.WriteLine("Number of proposals approved: {0}", - result.numChanges); - } - else - { - Console.WriteLine("No proposals were approved."); - } - } - } - catch (Exception e) - { - Console.WriteLine("Failed to approve proposals. Exception says \"{0}\"", - e.Message); - } - } - } - } -} diff --git a/examples/AdManager/CSharp/v201811/ActivityGroupService/CreateActivityGroups.cs b/examples/AdManager/CSharp/v201908/ActivityGroupService/CreateActivityGroups.cs similarity index 96% rename from examples/AdManager/CSharp/v201811/ActivityGroupService/CreateActivityGroups.cs rename to examples/AdManager/CSharp/v201908/ActivityGroupService/CreateActivityGroups.cs index 566e0ae65c3..b1b3ff3c7ad 100755 --- a/examples/AdManager/CSharp/v201811/ActivityGroupService/CreateActivityGroups.cs +++ b/examples/AdManager/CSharp/v201908/ActivityGroupService/CreateActivityGroups.cs @@ -1,4 +1,4 @@ -// Copyright 2018, Google Inc. All Rights Reserved. +// 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. @@ -13,11 +13,11 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.v201908; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This code example creates new activity groups. To determine which activity diff --git a/examples/AdManager/CSharp/v201811/ActivityGroupService/GetActiveActivityGroups.cs b/examples/AdManager/CSharp/v201908/ActivityGroupService/GetActiveActivityGroups.cs similarity index 94% rename from examples/AdManager/CSharp/v201811/ActivityGroupService/GetActiveActivityGroups.cs rename to examples/AdManager/CSharp/v201908/ActivityGroupService/GetActiveActivityGroups.cs index 45fd814fd7e..6b7edcb7388 100755 --- a/examples/AdManager/CSharp/v201811/ActivityGroupService/GetActiveActivityGroups.cs +++ b/examples/AdManager/CSharp/v201908/ActivityGroupService/GetActiveActivityGroups.cs @@ -1,4 +1,4 @@ -// Copyright 2017, Google Inc. All Rights Reserved. +// 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. @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v201811; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.Util.v201908; +using Google.Api.Ads.AdManager.v201908; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This example gets all active activity groups. diff --git a/examples/AdManager/CSharp/v201811/ActivityGroupService/GetAllActivityGroups.cs b/examples/AdManager/CSharp/v201908/ActivityGroupService/GetAllActivityGroups.cs similarity index 94% rename from examples/AdManager/CSharp/v201811/ActivityGroupService/GetAllActivityGroups.cs rename to examples/AdManager/CSharp/v201908/ActivityGroupService/GetAllActivityGroups.cs index fcc5520c024..96482d61fdc 100755 --- a/examples/AdManager/CSharp/v201811/ActivityGroupService/GetAllActivityGroups.cs +++ b/examples/AdManager/CSharp/v201908/ActivityGroupService/GetAllActivityGroups.cs @@ -1,4 +1,4 @@ -// Copyright 2017, Google Inc. All Rights Reserved. +// 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. @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v201811; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.Util.v201908; +using Google.Api.Ads.AdManager.v201908; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This example gets all activity groups. diff --git a/examples/AdManager/CSharp/v201811/ActivityGroupService/UpdateActivityGroups.cs b/examples/AdManager/CSharp/v201908/ActivityGroupService/UpdateActivityGroups.cs similarity index 95% rename from examples/AdManager/CSharp/v201811/ActivityGroupService/UpdateActivityGroups.cs rename to examples/AdManager/CSharp/v201908/ActivityGroupService/UpdateActivityGroups.cs index 2e4cb95c856..d22d500fe5e 100755 --- a/examples/AdManager/CSharp/v201811/ActivityGroupService/UpdateActivityGroups.cs +++ b/examples/AdManager/CSharp/v201908/ActivityGroupService/UpdateActivityGroups.cs @@ -1,4 +1,4 @@ -// Copyright 2018, Google Inc. All Rights Reserved. +// 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. @@ -13,13 +13,13 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.v201811; -using Google.Api.Ads.AdManager.Util.v201811; +using Google.Api.Ads.AdManager.v201908; +using Google.Api.Ads.AdManager.Util.v201908; using System; using System.Collections.Generic; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This code example updates activity groups by adding a company. To diff --git a/examples/AdManager/CSharp/v201811/ActivityService/CreateActivities.cs b/examples/AdManager/CSharp/v201908/ActivityService/CreateActivities.cs similarity index 96% rename from examples/AdManager/CSharp/v201811/ActivityService/CreateActivities.cs rename to examples/AdManager/CSharp/v201908/ActivityService/CreateActivities.cs index 721639d61d0..d391f0bc3a8 100755 --- a/examples/AdManager/CSharp/v201811/ActivityService/CreateActivities.cs +++ b/examples/AdManager/CSharp/v201908/ActivityService/CreateActivities.cs @@ -1,4 +1,4 @@ -// Copyright 2018, Google Inc. All Rights Reserved. +// 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. @@ -13,11 +13,11 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.v201908; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This code example creates new activities. To determine which activities diff --git a/examples/AdManager/CSharp/v201811/ActivityService/GetActiveActivities.cs b/examples/AdManager/CSharp/v201908/ActivityService/GetActiveActivities.cs similarity index 94% rename from examples/AdManager/CSharp/v201811/ActivityService/GetActiveActivities.cs rename to examples/AdManager/CSharp/v201908/ActivityService/GetActiveActivities.cs index 72b86c6f321..198c1ad7092 100755 --- a/examples/AdManager/CSharp/v201811/ActivityService/GetActiveActivities.cs +++ b/examples/AdManager/CSharp/v201908/ActivityService/GetActiveActivities.cs @@ -1,4 +1,4 @@ -// Copyright 2017, Google Inc. All Rights Reserved. +// 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. @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v201811; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.Util.v201908; +using Google.Api.Ads.AdManager.v201908; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This example gets all active activities. diff --git a/examples/AdManager/CSharp/v201811/ActivityService/GetAllActivities.cs b/examples/AdManager/CSharp/v201908/ActivityService/GetAllActivities.cs similarity index 94% rename from examples/AdManager/CSharp/v201811/ActivityService/GetAllActivities.cs rename to examples/AdManager/CSharp/v201908/ActivityService/GetAllActivities.cs index 513814bb9aa..bcd85a8ae3b 100755 --- a/examples/AdManager/CSharp/v201811/ActivityService/GetAllActivities.cs +++ b/examples/AdManager/CSharp/v201908/ActivityService/GetAllActivities.cs @@ -1,4 +1,4 @@ -// Copyright 2017, Google Inc. All Rights Reserved. +// 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. @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v201811; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.Util.v201908; +using Google.Api.Ads.AdManager.v201908; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This example gets all activities. diff --git a/examples/AdManager/CSharp/v201811/ActivityService/UpdateActivities.cs b/examples/AdManager/CSharp/v201908/ActivityService/UpdateActivities.cs similarity index 94% rename from examples/AdManager/CSharp/v201811/ActivityService/UpdateActivities.cs rename to examples/AdManager/CSharp/v201908/ActivityService/UpdateActivities.cs index fad9f0443df..358656c82df 100755 --- a/examples/AdManager/CSharp/v201811/ActivityService/UpdateActivities.cs +++ b/examples/AdManager/CSharp/v201908/ActivityService/UpdateActivities.cs @@ -1,4 +1,4 @@ -// Copyright 2018, Google Inc. All Rights Reserved. +// 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. @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.v201811; -using Google.Api.Ads.AdManager.Util.v201811; +using Google.Api.Ads.AdManager.v201908; +using Google.Api.Ads.AdManager.Util.v201908; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This code example updates activity expected URLs. To determine which diff --git a/examples/AdManager/CSharp/v201908/AdjustmentService/CreateTrafficAdjustments.cs b/examples/AdManager/CSharp/v201908/AdjustmentService/CreateTrafficAdjustments.cs new file mode 100755 index 00000000000..9c10438a708 --- /dev/null +++ b/examples/AdManager/CSharp/v201908/AdjustmentService/CreateTrafficAdjustments.cs @@ -0,0 +1,195 @@ +// 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.v201908; +using Google.Api.Ads.AdManager.v201908; + +using System; +using System.Linq; + +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 +{ + /// + /// This example adds a historical adjustment of 110% for New Years Day Traffic. + /// + public class CreateTrafficAdjustments : SampleBase + { + /// + /// Returns a description about the code example. + /// + public override string Description + { + get { return "This example adds a historical adjustment of 110% for " + + "New Years Day Traffic."; } + } + + /// + /// Main method, to run this code example as a standalone application. + /// + public static void Main() + { + GetAllTrafficAdjustments codeExample = new GetAllTrafficAdjustments(); + Console.WriteLine(codeExample.Description); + try + { + codeExample.Run(new AdManagerUser()); + } + catch (Exception e) + { + Console.WriteLine("Failed to update adjustments. Exception says \"{0}\"", e.Message); + } + } + + /// + /// Run the code example. + /// + public void Run(AdManagerUser user) + { + using (AdjustmentService adjustmentService = user.GetService()) + using (NetworkService networkService = user.GetService()) + { + String rootAdUnitId = networkService.getCurrentNetwork().effectiveRootAdUnitId; + + TrafficTimeSeriesFilterCriteria criteria = new TrafficTimeSeriesFilterCriteria() { + // Target all USA traffic. + targeting = new Targeting() { + inventoryTargeting = new InventoryTargeting() { + targetedAdUnits = new AdUnitTargeting[] { + new AdUnitTargeting() { + adUnitId = rootAdUnitId, + includeDescendants = true + } + } + }, + geoTargeting = new GeoTargeting() { + targetedLocations = new Location[] { + new Location() { + id = 2840 // United States + } + } + } + }, + // Adjust only 1920x1080 video traffic. + adUnitSizes = new AdUnitSize[] { + new AdUnitSize() { + size = new Size() { + width = 1920, + height = 1080 + }, + environmentType = EnvironmentType.VIDEO_PLAYER + } + } + }; + + // Create a new historical adjustment targeting next year's January with + // 105% of this year's January. + var januarySegment = new TrafficForecastAdjustmentSegment() { + basisType = BasisType.HISTORICAL, + historicalAdjustment = new HistoricalAdjustment() { + referenceDateRange = new DateRange() { + startDate = new Date() { + year = System.DateTime.Now.Year, + month = 1, + day = 1 + }, + endDate = new Date() { + year = System.DateTime.Now.Year, + month = 1, + day = 30 + } + }, + targetDateRange = new DateRange() { + startDate = new Date() { + year = System.DateTime.Now.Year + 1, + month = 1, + day = 30 + }, + endDate = new Date() { + year = new System.DateTime().Year + 1, + month = 1, + day = 30 + } + }, + milliPercentMultiplier = 105_000L + } + }; + + // Create a new absolute adjustment of 500,000 ad opportunities for Christmas + // and 1M ad opportunities for boxing day. + var holidaySegment = new TrafficForecastAdjustmentSegment() { + basisType = BasisType.ABSOLUTE, + adjustmentTimeSeries = new TimeSeries() { + timeSeriesDateRange = new DateRange() { + startDate = new Date() { + year = System.DateTime.Now.Year, + month = 12, + day = 24 + }, + endDate = new Date() { + year = System.DateTime.Now.Year, + month = 12, + day = 25 + } + }, + valuePeriodType = PeriodType.DAILY, + timeSeriesValues = new long[] { 500_000, 1_000_000} + } + }; + + // Create a new absolute adjustment of 900,000 ad opportunities for the first + // week in September. + var septemberSegment = new TrafficForecastAdjustmentSegment() { + basisType = BasisType.ABSOLUTE, + adjustmentTimeSeries = new TimeSeries() { + timeSeriesDateRange = new DateRange() { + startDate = new Date() { + year = System.DateTime.Now.Year + 1, + month = 9, + day = 1 + }, + endDate = new Date() { + year = System.DateTime.Now.Year + 1, + month = 9, + day = 7 + } + }, + valuePeriodType = PeriodType.CUSTOM, + timeSeriesValues = new long[] { 900_000 } + } + }; + + + TrafficForecastAdjustment adjustment = new TrafficForecastAdjustment() { + filterCriteria = criteria, + forecastAdjustmentSegments = new TrafficForecastAdjustmentSegment[] { + januarySegment, holidaySegment, septemberSegment + } + }; + + TrafficForecastAdjustment[] adjustments = + adjustmentService.updateTrafficAdjustments( + new TrafficForecastAdjustment[] { adjustment }); + + foreach (TrafficForecastAdjustment updatedAdjustment in adjustments) + { + Console.WriteLine("Adjustment with ID {0} and {1} segments was " + + "created or updated.", + updatedAdjustment.id, + updatedAdjustment.forecastAdjustmentSegments.Length); + } + } + } + } +} diff --git a/examples/AdManager/CSharp/v201811/PremiumRateService/GetAllPremiumRates.cs b/examples/AdManager/CSharp/v201908/AdjustmentService/GetAllTrafficAdjustments.cs similarity index 59% rename from examples/AdManager/CSharp/v201811/PremiumRateService/GetAllPremiumRates.cs rename to examples/AdManager/CSharp/v201908/AdjustmentService/GetAllTrafficAdjustments.cs index 8a2799bbf46..7f2b6b522c8 100755 --- a/examples/AdManager/CSharp/v201811/PremiumRateService/GetAllPremiumRates.cs +++ b/examples/AdManager/CSharp/v201908/AdjustmentService/GetAllTrafficAdjustments.cs @@ -1,4 +1,4 @@ -// Copyright 2017, Google Inc. All Rights Reserved. +// 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. @@ -13,24 +13,24 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v201811; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.Util.v201908; +using Google.Api.Ads.AdManager.v201908; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// - /// This example gets all premium rates. + /// This example gets all traffic adjustments. /// - public class GetAllPremiumRates : SampleBase + public class GetAllTrafficAdjustments : SampleBase { /// /// Returns a description about the code example. /// public override string Description { - get { return "This example gets all premium rates."; } + get { return "This example gets all traffic adjustments."; } } /// @@ -38,7 +38,7 @@ public override string Description /// public static void Main() { - GetAllPremiumRates codeExample = new GetAllPremiumRates(); + GetAllTrafficAdjustments codeExample = new GetAllTrafficAdjustments(); Console.WriteLine(codeExample.Description); try { @@ -46,7 +46,7 @@ public static void Main() } catch (Exception e) { - Console.WriteLine("Failed to get premium rates. Exception says \"{0}\"", e.Message); + Console.WriteLine("Failed to get adjustments. Exception says \"{0}\"", e.Message); } } @@ -55,33 +55,34 @@ public static void Main() /// public void Run(AdManagerUser user) { - using (PremiumRateService premiumRateService = user.GetService()) + using (AdjustmentService adjustmentService = user.GetService()) { - // Create a statement to select premium rates. + // Create a statement to select adjustments. int pageSize = StatementBuilder.SUGGESTED_PAGE_LIMIT; StatementBuilder statementBuilder = new StatementBuilder().OrderBy("id ASC").Limit(pageSize); - // Retrieve a small amount of premium rates at a time, paging through until all - // premium rates have been retrieved. + // Retrieve a small amount of adjustments at a time, paging through until all + // adjustments have been retrieved. int totalResultSetSize = 0; do { - PremiumRatePage page = - premiumRateService.getPremiumRatesByStatement( + TrafficForecastAdjustmentPage page = + adjustmentService.getTrafficAdjustmentsByStatement( statementBuilder.ToStatement()); - // Print out some information for each premium rate. + // Print out some information for each adjustment. if (page.results != null) { totalResultSetSize = page.totalResultSetSize; int i = page.startIndex; - foreach (PremiumRate premiumRate in page.results) + foreach (TrafficForecastAdjustment adjustment in page.results) { - Console.WriteLine( - "{0}) Premium rate with ID {1}, " + "premium feature \"{2}\", " + - "and rate card id {3} was found.", i++, premiumRate.id, - premiumRate.GetType().Name, premiumRate.rateCardId); + Console.WriteLine("Forecast adjustment with ID {0} containing {1} " + + "segments was found.", + adjustment.id, + adjustment.forecastAdjustmentSegments != null ? + adjustment.forecastAdjustmentSegments.Length : 0); } } diff --git a/examples/AdManager/CSharp/v201908/AdjustmentService/UpdateTrafficAdjustments.cs b/examples/AdManager/CSharp/v201908/AdjustmentService/UpdateTrafficAdjustments.cs new file mode 100755 index 00000000000..5c6262c9b75 --- /dev/null +++ b/examples/AdManager/CSharp/v201908/AdjustmentService/UpdateTrafficAdjustments.cs @@ -0,0 +1,127 @@ +// 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.v201908; +using Google.Api.Ads.AdManager.v201908; + +using System; +using System.Linq; + +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 +{ + /// + /// This example adds a historical adjustment of 110% for New Years Day Traffic. + /// + public class UpdateTrafficAdjustments : SampleBase + { + /// + /// Returns a description about the code example. + /// + public override string Description + { + get { return "This example adds a historical adjustment of 110% for " + + "New Years Day Traffic."; } + } + + /// + /// Main method, to run this code example as a standalone application. + /// + public static void Main() + { + GetAllTrafficAdjustments codeExample = new GetAllTrafficAdjustments(); + Console.WriteLine(codeExample.Description); + try + { + codeExample.Run(new AdManagerUser()); + } + catch (Exception e) + { + Console.WriteLine("Failed to update adjustments. Exception says \"{0}\"", e.Message); + } + } + + /// + /// Run the code example. + /// + public void Run(AdManagerUser user) + { + using (AdjustmentService adjustmentService = user.GetService()) + { + // Set the ID of the adjustment to update. + long adjustmentId = long.Parse(_T("INSERT_ADJUSTMENT_ID_HERE")); + + // Create a statement to select adjustments. + StatementBuilder statementBuilder = + new StatementBuilder() + .Where("id = :id") + .OrderBy("id ASC") + .Limit(1) + .AddValue("id", adjustmentId); + + TrafficForecastAdjustmentPage page = adjustmentService + .getTrafficAdjustmentsByStatement(statementBuilder.ToStatement()); + + TrafficForecastAdjustment adjustment = page.results[0]; + + // Create a new historical adjustment segment for New Years Day. + TrafficForecastAdjustmentSegment segment = new TrafficForecastAdjustmentSegment() { + basisType = BasisType.HISTORICAL, + historicalAdjustment = new HistoricalAdjustment() { + referenceDateRange = new DateRange() { + startDate = new Date() { + year = System.DateTime.Now.Year, + month = 1, + day = 1 + }, + endDate = new Date() { + year = System.DateTime.Now.Year, + month = 1, + day = 1 + } + }, + targetDateRange = new DateRange() { + startDate = new Date() { + year = System.DateTime.Now.Year + 1, + month = 1, + day = 1 + }, + endDate = new Date() { + year = System.DateTime.Now.Year + 1, + month = 1, + day = 1 + } + }, + milliPercentMultiplier = 110_000L + } + }; + + // Add the new historical segment to the adjustment. + adjustment.forecastAdjustmentSegments = adjustment.forecastAdjustmentSegments + .Concat(new TrafficForecastAdjustmentSegment[] { segment }).ToArray(); + + TrafficForecastAdjustment[] adjustments = + adjustmentService.updateTrafficAdjustments( + new TrafficForecastAdjustment[] { adjustment }); + + foreach (TrafficForecastAdjustment updatedAdjustment in adjustments) + { + Console.WriteLine("Adjustment with ID {0} and {1} segments was found.", + updatedAdjustment.id, + updatedAdjustment.forecastAdjustmentSegments.Length); + } + } + } + } +} diff --git a/examples/AdManager/CSharp/v201811/AudienceSegmentService/CreateAudienceSegments.cs b/examples/AdManager/CSharp/v201908/AudienceSegmentService/CreateAudienceSegments.cs similarity index 97% rename from examples/AdManager/CSharp/v201811/AudienceSegmentService/CreateAudienceSegments.cs rename to examples/AdManager/CSharp/v201908/AudienceSegmentService/CreateAudienceSegments.cs index 591bd0207e7..fb83f102ff8 100755 --- a/examples/AdManager/CSharp/v201811/AudienceSegmentService/CreateAudienceSegments.cs +++ b/examples/AdManager/CSharp/v201908/AudienceSegmentService/CreateAudienceSegments.cs @@ -1,4 +1,4 @@ -// Copyright 2018, Google Inc. All Rights Reserved. +// 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. @@ -13,11 +13,11 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.v201908; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This code example creates new rule based first party audience segments. To diff --git a/examples/AdManager/CSharp/v201811/AudienceSegmentService/GetAllAudienceSegments.cs b/examples/AdManager/CSharp/v201908/AudienceSegmentService/GetAllAudienceSegments.cs similarity index 94% rename from examples/AdManager/CSharp/v201811/AudienceSegmentService/GetAllAudienceSegments.cs rename to examples/AdManager/CSharp/v201908/AudienceSegmentService/GetAllAudienceSegments.cs index 39b8e1e4346..ada9d8d2bd2 100755 --- a/examples/AdManager/CSharp/v201811/AudienceSegmentService/GetAllAudienceSegments.cs +++ b/examples/AdManager/CSharp/v201908/AudienceSegmentService/GetAllAudienceSegments.cs @@ -1,4 +1,4 @@ -// Copyright 2017, Google Inc. All Rights Reserved. +// 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. @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v201811; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.Util.v201908; +using Google.Api.Ads.AdManager.v201908; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This example gets all audience segments. diff --git a/examples/AdManager/CSharp/v201811/AudienceSegmentService/GetFirstPartyAudienceSegments.cs b/examples/AdManager/CSharp/v201908/AudienceSegmentService/GetFirstPartyAudienceSegments.cs similarity index 95% rename from examples/AdManager/CSharp/v201811/AudienceSegmentService/GetFirstPartyAudienceSegments.cs rename to examples/AdManager/CSharp/v201908/AudienceSegmentService/GetFirstPartyAudienceSegments.cs index cd3c9b25f5d..777ed13b96d 100755 --- a/examples/AdManager/CSharp/v201811/AudienceSegmentService/GetFirstPartyAudienceSegments.cs +++ b/examples/AdManager/CSharp/v201908/AudienceSegmentService/GetFirstPartyAudienceSegments.cs @@ -1,4 +1,4 @@ -// Copyright 2017, Google Inc. All Rights Reserved. +// 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. @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v201811; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.Util.v201908; +using Google.Api.Ads.AdManager.v201908; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This example gets all first party audience segments. diff --git a/examples/AdManager/CSharp/v201811/AudienceSegmentService/PopulateFirstPartyAudienceSegments.cs b/examples/AdManager/CSharp/v201908/AudienceSegmentService/PopulateFirstPartyAudienceSegments.cs similarity index 95% rename from examples/AdManager/CSharp/v201811/AudienceSegmentService/PopulateFirstPartyAudienceSegments.cs rename to examples/AdManager/CSharp/v201908/AudienceSegmentService/PopulateFirstPartyAudienceSegments.cs index badb9982eff..37eecbe0b62 100755 --- a/examples/AdManager/CSharp/v201811/AudienceSegmentService/PopulateFirstPartyAudienceSegments.cs +++ b/examples/AdManager/CSharp/v201908/AudienceSegmentService/PopulateFirstPartyAudienceSegments.cs @@ -1,4 +1,4 @@ -// Copyright 2018, Google Inc. All Rights Reserved. +// 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. @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v201811; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.Util.v201908; +using Google.Api.Ads.AdManager.v201908; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This code example populates a specific rule base first party audience diff --git a/examples/AdManager/CSharp/v201811/AudienceSegmentService/UpdateAudienceSegments.cs b/examples/AdManager/CSharp/v201908/AudienceSegmentService/UpdateAudienceSegments.cs similarity index 95% rename from examples/AdManager/CSharp/v201811/AudienceSegmentService/UpdateAudienceSegments.cs rename to examples/AdManager/CSharp/v201908/AudienceSegmentService/UpdateAudienceSegments.cs index 1f611d104b2..442866366a2 100755 --- a/examples/AdManager/CSharp/v201811/AudienceSegmentService/UpdateAudienceSegments.cs +++ b/examples/AdManager/CSharp/v201908/AudienceSegmentService/UpdateAudienceSegments.cs @@ -1,4 +1,4 @@ -// Copyright 2018, Google Inc. All Rights Reserved. +// 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. @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v201811; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.Util.v201908; +using Google.Api.Ads.AdManager.v201908; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This code example updates a first party audience segment's member diff --git a/examples/AdManager/CSharp/v201811/CdnConfigurationService/CreateCdnConfigurations.cs b/examples/AdManager/CSharp/v201908/CdnConfigurationService/CreateCdnConfigurations.cs similarity index 97% rename from examples/AdManager/CSharp/v201811/CdnConfigurationService/CreateCdnConfigurations.cs rename to examples/AdManager/CSharp/v201908/CdnConfigurationService/CreateCdnConfigurations.cs index 07346e041f6..f056437e76e 100755 --- a/examples/AdManager/CSharp/v201811/CdnConfigurationService/CreateCdnConfigurations.cs +++ b/examples/AdManager/CSharp/v201908/CdnConfigurationService/CreateCdnConfigurations.cs @@ -1,4 +1,4 @@ -// Copyright 2017, Google Inc. All Rights Reserved. +// 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. @@ -13,11 +13,11 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.v201908; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This code example creates new CDN configurations. diff --git a/examples/AdManager/CSharp/v201811/CdnConfigurationService/GetAllCdnConfigurations.cs b/examples/AdManager/CSharp/v201908/CdnConfigurationService/GetAllCdnConfigurations.cs similarity index 94% rename from examples/AdManager/CSharp/v201811/CdnConfigurationService/GetAllCdnConfigurations.cs rename to examples/AdManager/CSharp/v201908/CdnConfigurationService/GetAllCdnConfigurations.cs index 531b6a158f3..bc53c7a533f 100755 --- a/examples/AdManager/CSharp/v201811/CdnConfigurationService/GetAllCdnConfigurations.cs +++ b/examples/AdManager/CSharp/v201908/CdnConfigurationService/GetAllCdnConfigurations.cs @@ -1,4 +1,4 @@ -// Copyright 2017, Google Inc. All Rights Reserved. +// 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. @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v201811; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.Util.v201908; +using Google.Api.Ads.AdManager.v201908; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This example gets all CDN configurations. diff --git a/examples/AdManager/CSharp/v201811/PackageService/GetAllPackages.cs b/examples/AdManager/CSharp/v201908/CmsMetadataService/GetAllCmsMetadataKeys.cs similarity index 62% rename from examples/AdManager/CSharp/v201811/PackageService/GetAllPackages.cs rename to examples/AdManager/CSharp/v201908/CmsMetadataService/GetAllCmsMetadataKeys.cs index e59e9870669..49f3c32b582 100755 --- a/examples/AdManager/CSharp/v201811/PackageService/GetAllPackages.cs +++ b/examples/AdManager/CSharp/v201908/CmsMetadataService/GetAllCmsMetadataKeys.cs @@ -1,4 +1,4 @@ -// Copyright 2017, Google Inc. All Rights Reserved. +// 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. @@ -13,24 +13,24 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v201811; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.Util.v201908; +using Google.Api.Ads.AdManager.v201908; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// - /// This example gets all packages. + /// This example gets all CMS metadata keys. /// - public class GetAllPackages : SampleBase + public class GetAllCmsMetadataKeys : SampleBase { /// /// Returns a description about the code example. /// public override string Description { - get { return "This example gets all packages."; } + get { return "This example gets all CMS metadata keys."; } } /// @@ -38,7 +38,7 @@ public override string Description /// public static void Main() { - GetAllPackages codeExample = new GetAllPackages(); + GetAllCmsMetadataKeys codeExample = new GetAllCmsMetadataKeys(); Console.WriteLine(codeExample.Description); try { @@ -46,7 +46,8 @@ public static void Main() } catch (Exception e) { - Console.WriteLine("Failed to get packages. Exception says \"{0}\"", e.Message); + Console.WriteLine("Failed to get CMS metadata keys. Exception says \"{0}\"", + e.Message); } } @@ -55,32 +56,31 @@ public static void Main() /// public void Run(AdManagerUser user) { - using (PackageService packageService = user.GetService()) + using (CmsMetadataService cmsMetadataService = user.GetService()) { - // Create a statement to select packages. + // Create a statement to select CMS metadata keys. int pageSize = StatementBuilder.SUGGESTED_PAGE_LIMIT; StatementBuilder statementBuilder = new StatementBuilder().OrderBy("id ASC").Limit(pageSize); - // Retrieve a small amount of packages at a time, paging through until all - // packages have been retrieved. + // Retrieve a small amount of CMS metadata keys at a time, paging through until all + // CMS metadata keys have been retrieved. int totalResultSetSize = 0; do { - PackagePage page = - packageService.getPackagesByStatement(statementBuilder.ToStatement()); + CmsMetadataKeyPage page = cmsMetadataService.getCmsMetadataKeysByStatement( + statementBuilder.ToStatement()); - // Print out some information for each package. + // Print out some information for each CMS metadata key. if (page.results != null) { totalResultSetSize = page.totalResultSetSize; int i = page.startIndex; - foreach (Package pkg in page.results) + foreach (CmsMetadataKey cmsMetadataKey in page.results) { Console.WriteLine( - "{0}) Package with ID {1}, name \"{2}\", and proposal id {3} was " + - "found.", - i++, pkg.id, pkg.name, pkg.proposalId); + "{0}) CMS metadata key with ID {1} and name \"{2}\" was found.", + i++, cmsMetadataKey.id, cmsMetadataKey.name); } } diff --git a/examples/AdManager/CSharp/v201811/ExchangeRateService/GetAllExchangeRates.cs b/examples/AdManager/CSharp/v201908/CmsMetadataService/GetAllCmsMetadataValues.cs similarity index 57% rename from examples/AdManager/CSharp/v201811/ExchangeRateService/GetAllExchangeRates.cs rename to examples/AdManager/CSharp/v201908/CmsMetadataService/GetAllCmsMetadataValues.cs index c68e7d69416..265bfc2087c 100755 --- a/examples/AdManager/CSharp/v201811/ExchangeRateService/GetAllExchangeRates.cs +++ b/examples/AdManager/CSharp/v201908/CmsMetadataService/GetAllCmsMetadataValues.cs @@ -1,4 +1,4 @@ -// Copyright 2017, Google Inc. All Rights Reserved. +// 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. @@ -13,24 +13,24 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v201811; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.Util.v201908; +using Google.Api.Ads.AdManager.v201908; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// - /// This example gets all exchange rates. + /// This example gets all CMS metadata values. /// - public class GetAllExchangeRates : SampleBase + public class GetAllCmsMetadataValues : SampleBase { /// /// Returns a description about the code example. /// public override string Description { - get { return "This example gets all exchange rates."; } + get { return "This example gets all CMS metadata values."; } } /// @@ -38,7 +38,7 @@ public override string Description /// public static void Main() { - GetAllExchangeRates codeExample = new GetAllExchangeRates(); + GetAllCmsMetadataValues codeExample = new GetAllCmsMetadataValues(); Console.WriteLine(codeExample.Description); try { @@ -46,7 +46,7 @@ public static void Main() } catch (Exception e) { - Console.WriteLine("Failed to get exchange rates. Exception says \"{0}\"", + Console.WriteLine("Failed to get CMS metadata values. Exception says \"{0}\"", e.Message); } } @@ -56,34 +56,36 @@ public static void Main() /// public void Run(AdManagerUser user) { - using (ExchangeRateService exchangeRateService = user.GetService()) + using (CmsMetadataService cmsMetadataService = user.GetService()) { - // Create a statement to select exchange rates. + // Create a statement to select CMS metadata values. int pageSize = StatementBuilder.SUGGESTED_PAGE_LIMIT; StatementBuilder statementBuilder = new StatementBuilder().OrderBy("id ASC").Limit(pageSize); - // Retrieve a small amount of exchange rates at a time, paging through until all - // exchange rates have been retrieved. + // Retrieve a small amount of CMS metadata values at a time, paging through until + // all CMS metadata values have been retrieved. int totalResultSetSize = 0; do { - ExchangeRatePage page = - exchangeRateService.getExchangeRatesByStatement( - statementBuilder.ToStatement()); + CmsMetadataValuePage page = cmsMetadataService.getCmsMetadataValuesByStatement( + statementBuilder.ToStatement()); - // Print out some information for each exchange rate. + // Print out some information for each CMS metadata value. if (page.results != null) { totalResultSetSize = page.totalResultSetSize; int i = page.startIndex; - foreach (ExchangeRate exchangeRate in page.results) + foreach (CmsMetadataValue cmsMetadataValue in page.results) { Console.WriteLine( - "{0}) Exchange rate with ID {1}, " + "currency code \"{2}\", " + - "direction \"{3}\", " + "and exchange rate {4} was found.", i++, - exchangeRate.id, exchangeRate.currencyCode, exchangeRate.direction, - exchangeRate.exchangeRate); + "{0}) CMS metadata value with ID {1} and name \"{2}\" associated " + + " with key ID {3} and name {4} was found.", + i++, + cmsMetadataValue.cmsMetadataValueId, + cmsMetadataValue.valueName, + cmsMetadataValue.key.id, + cmsMetadataValue.key.name); } } diff --git a/examples/AdManager/CSharp/v201811/ProductPackageService/GetActiveProductPackages.cs b/examples/AdManager/CSharp/v201908/CmsMetadataService/GetCmsMetadataValuesForKey.cs similarity index 55% rename from examples/AdManager/CSharp/v201811/ProductPackageService/GetActiveProductPackages.cs rename to examples/AdManager/CSharp/v201908/CmsMetadataService/GetCmsMetadataValuesForKey.cs index 4d19fb28522..71defd3b64f 100755 --- a/examples/AdManager/CSharp/v201811/ProductPackageService/GetActiveProductPackages.cs +++ b/examples/AdManager/CSharp/v201908/CmsMetadataService/GetCmsMetadataValuesForKey.cs @@ -1,4 +1,4 @@ -// Copyright 2017, Google Inc. All Rights Reserved. +// 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. @@ -13,24 +13,24 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v201811; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.Util.v201908; +using Google.Api.Ads.AdManager.v201908; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// - /// This example gets all active product packages. + /// This example gets all CMS metadata values. /// - public class GetActiveProductPackages : SampleBase + public class GetCmsMetadataValuesForKey : SampleBase { /// /// Returns a description about the code example. /// public override string Description { - get { return "This example gets all active product packages."; } + get { return "This example gets all CMS metadata values."; } } /// @@ -38,7 +38,7 @@ public override string Description /// public static void Main() { - GetActiveProductPackages codeExample = new GetActiveProductPackages(); + GetAllCmsMetadataValues codeExample = new GetAllCmsMetadataValues(); Console.WriteLine(codeExample.Description); try { @@ -46,7 +46,7 @@ public static void Main() } catch (Exception e) { - Console.WriteLine("Failed to get product packages. Exception says \"{0}\"", + Console.WriteLine("Failed to get CMS metadata values. Exception says \"{0}\"", e.Message); } } @@ -56,37 +56,41 @@ public static void Main() /// public void Run(AdManagerUser user) { - using (ProductPackageService productPackageService = - user.GetService() - ) + using (CmsMetadataService cmsMetadataService = user.GetService()) { - // Create a statement to select product packages. + string cmsMetadataKeyName = "INSERT_CMS_METADATA_KEY_NAME_HERE"; + + // Create a statement to select CMS metadata values. int pageSize = StatementBuilder.SUGGESTED_PAGE_LIMIT; StatementBuilder statementBuilder = new StatementBuilder() - .Where("status = :status") + .Where("cmsKey = :cmsMetadataKeyName") .OrderBy("id ASC") .Limit(pageSize) - .AddValue("status", ProductPackageStatus.ACTIVE.ToString()); + .AddValue("cmsKey", cmsMetadataKeyName); - // Retrieve a small amount of product packages at a time, paging through until all - // product packages have been retrieved. + // Retrieve a small amount of CMS metadata values at a time, paging through until + // all CMS metadata values have been retrieved. int totalResultSetSize = 0; do { - ProductPackagePage page = - productPackageService.getProductPackagesByStatement(statementBuilder - .ToStatement()); + CmsMetadataValuePage page = cmsMetadataService.getCmsMetadataValuesByStatement( + statementBuilder.ToStatement()); - // Print out some information for each product package. + // Print out some information for each CMS metadata value. if (page.results != null) { totalResultSetSize = page.totalResultSetSize; int i = page.startIndex; - foreach (ProductPackage productPackage in page.results) + foreach (CmsMetadataValue cmsMetadataValue in page.results) { Console.WriteLine( - "{0}) Product package with ID {1} and name \"{2}\" was found.", i++, - productPackage.id, productPackage.name); + "{0}) CMS metadata value with ID {1} and name \"{2}\" associated " + + " with key ID {3} and name {4} was found.", + i++, + cmsMetadataValue.cmsMetadataValueId, + cmsMetadataValue.valueName, + cmsMetadataValue.key.id, + cmsMetadataValue.key.name); } } diff --git a/examples/AdManager/CSharp/v201811/CompanyService/CreateCompanies.cs b/examples/AdManager/CSharp/v201908/CompanyService/CreateCompanies.cs similarity index 95% rename from examples/AdManager/CSharp/v201811/CompanyService/CreateCompanies.cs rename to examples/AdManager/CSharp/v201908/CompanyService/CreateCompanies.cs index 928d010ba96..75badeecaa6 100755 --- a/examples/AdManager/CSharp/v201811/CompanyService/CreateCompanies.cs +++ b/examples/AdManager/CSharp/v201908/CompanyService/CreateCompanies.cs @@ -1,4 +1,4 @@ -// Copyright 2018, Google Inc. All Rights Reserved. +// 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. @@ -13,11 +13,11 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.v201908; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This code example creates new companies. To determine which companies diff --git a/examples/AdManager/CSharp/v201811/CompanyService/GetAdvertisers.cs b/examples/AdManager/CSharp/v201908/CompanyService/GetAdvertisers.cs similarity index 94% rename from examples/AdManager/CSharp/v201811/CompanyService/GetAdvertisers.cs rename to examples/AdManager/CSharp/v201908/CompanyService/GetAdvertisers.cs index 26e93cc1374..7fc9275802c 100755 --- a/examples/AdManager/CSharp/v201811/CompanyService/GetAdvertisers.cs +++ b/examples/AdManager/CSharp/v201908/CompanyService/GetAdvertisers.cs @@ -1,4 +1,4 @@ -// Copyright 2017, Google Inc. All Rights Reserved. +// 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. @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v201811; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.Util.v201908; +using Google.Api.Ads.AdManager.v201908; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This example gets all companies that are advertisers. diff --git a/examples/AdManager/CSharp/v201811/CompanyService/GetAllCompanies.cs b/examples/AdManager/CSharp/v201908/CompanyService/GetAllCompanies.cs similarity index 94% rename from examples/AdManager/CSharp/v201811/CompanyService/GetAllCompanies.cs rename to examples/AdManager/CSharp/v201908/CompanyService/GetAllCompanies.cs index 5eb819ac2ff..2238068fbfe 100755 --- a/examples/AdManager/CSharp/v201811/CompanyService/GetAllCompanies.cs +++ b/examples/AdManager/CSharp/v201908/CompanyService/GetAllCompanies.cs @@ -1,4 +1,4 @@ -// Copyright 2017, Google Inc. All Rights Reserved. +// 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. @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v201811; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.Util.v201908; +using Google.Api.Ads.AdManager.v201908; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This example gets all companies. diff --git a/examples/AdManager/CSharp/v201811/CompanyService/UpdateCompanies.cs b/examples/AdManager/CSharp/v201908/CompanyService/UpdateCompanies.cs similarity index 94% rename from examples/AdManager/CSharp/v201811/CompanyService/UpdateCompanies.cs rename to examples/AdManager/CSharp/v201908/CompanyService/UpdateCompanies.cs index 47b5970324f..3854c47a6e7 100755 --- a/examples/AdManager/CSharp/v201811/CompanyService/UpdateCompanies.cs +++ b/examples/AdManager/CSharp/v201908/CompanyService/UpdateCompanies.cs @@ -1,4 +1,4 @@ -// Copyright 2018, Google Inc. All Rights Reserved. +// 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. @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v201811; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.Util.v201908; +using Google.Api.Ads.AdManager.v201908; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This code example updates company comments. To determine which companies exist, diff --git a/examples/AdManager/CSharp/v201811/ContactService/CreateContacts.cs b/examples/AdManager/CSharp/v201908/ContactService/CreateContacts.cs similarity index 95% rename from examples/AdManager/CSharp/v201811/ContactService/CreateContacts.cs rename to examples/AdManager/CSharp/v201908/ContactService/CreateContacts.cs index 74b424c774b..3683935b6de 100755 --- a/examples/AdManager/CSharp/v201811/ContactService/CreateContacts.cs +++ b/examples/AdManager/CSharp/v201908/ContactService/CreateContacts.cs @@ -1,4 +1,4 @@ -// Copyright 2018, Google Inc. All Rights Reserved. +// 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. @@ -13,11 +13,11 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.v201908; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This code example creates new contacts. To determine which contacts exist, diff --git a/examples/AdManager/CSharp/v201811/ContactService/GetAllContacts.cs b/examples/AdManager/CSharp/v201908/ContactService/GetAllContacts.cs similarity index 94% rename from examples/AdManager/CSharp/v201811/ContactService/GetAllContacts.cs rename to examples/AdManager/CSharp/v201908/ContactService/GetAllContacts.cs index 2facb0d8d36..34de76f938f 100755 --- a/examples/AdManager/CSharp/v201811/ContactService/GetAllContacts.cs +++ b/examples/AdManager/CSharp/v201908/ContactService/GetAllContacts.cs @@ -1,4 +1,4 @@ -// Copyright 2017, Google Inc. All Rights Reserved. +// 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. @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v201811; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.Util.v201908; +using Google.Api.Ads.AdManager.v201908; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This example gets all contacts. diff --git a/examples/AdManager/CSharp/v201811/ContactService/GetUninvitedContacts.cs b/examples/AdManager/CSharp/v201908/ContactService/GetUninvitedContacts.cs similarity index 94% rename from examples/AdManager/CSharp/v201811/ContactService/GetUninvitedContacts.cs rename to examples/AdManager/CSharp/v201908/ContactService/GetUninvitedContacts.cs index 162b8fcc29c..fef46f5eb5b 100755 --- a/examples/AdManager/CSharp/v201811/ContactService/GetUninvitedContacts.cs +++ b/examples/AdManager/CSharp/v201908/ContactService/GetUninvitedContacts.cs @@ -1,4 +1,4 @@ -// Copyright 2017, Google Inc. All Rights Reserved. +// 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. @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v201811; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.Util.v201908; +using Google.Api.Ads.AdManager.v201908; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This example gets all contacts that aren't invited yet. diff --git a/examples/AdManager/CSharp/v201811/ContactService/UpdateContacts.cs b/examples/AdManager/CSharp/v201908/ContactService/UpdateContacts.cs similarity index 94% rename from examples/AdManager/CSharp/v201811/ContactService/UpdateContacts.cs rename to examples/AdManager/CSharp/v201908/ContactService/UpdateContacts.cs index 5245a5370e5..b3e7d22f222 100755 --- a/examples/AdManager/CSharp/v201811/ContactService/UpdateContacts.cs +++ b/examples/AdManager/CSharp/v201908/ContactService/UpdateContacts.cs @@ -1,4 +1,4 @@ -// Copyright 2018, Google Inc. All Rights Reserved. +// 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. @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.v201811; -using Google.Api.Ads.AdManager.Util.v201811; +using Google.Api.Ads.AdManager.v201908; +using Google.Api.Ads.AdManager.Util.v201908; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This code example updates contact addresses. To determine which contacts diff --git a/examples/AdManager/CSharp/v201811/ContentService/GetAllContent.cs b/examples/AdManager/CSharp/v201908/ContentService/GetAllContent.cs similarity index 94% rename from examples/AdManager/CSharp/v201811/ContentService/GetAllContent.cs rename to examples/AdManager/CSharp/v201908/ContentService/GetAllContent.cs index 0d087e5b1cf..e030046208d 100755 --- a/examples/AdManager/CSharp/v201811/ContentService/GetAllContent.cs +++ b/examples/AdManager/CSharp/v201908/ContentService/GetAllContent.cs @@ -1,4 +1,4 @@ -// Copyright 2017, Google Inc. All Rights Reserved. +// 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. @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v201811; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.Util.v201908; +using Google.Api.Ads.AdManager.v201908; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This example gets all content. diff --git a/examples/AdManager/CSharp/v201811/CreativeService/CopyImageCreatives.cs b/examples/AdManager/CSharp/v201908/CreativeService/CopyImageCreatives.cs similarity index 96% rename from examples/AdManager/CSharp/v201811/CreativeService/CopyImageCreatives.cs rename to examples/AdManager/CSharp/v201908/CreativeService/CopyImageCreatives.cs index 0378c4883a1..ab6dd5d77a4 100755 --- a/examples/AdManager/CSharp/v201811/CreativeService/CopyImageCreatives.cs +++ b/examples/AdManager/CSharp/v201908/CreativeService/CopyImageCreatives.cs @@ -1,4 +1,4 @@ -// Copyright 2018, Google Inc. All Rights Reserved. +// 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. @@ -14,12 +14,12 @@ using Google.Api.Ads.Common.Util; using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v201811; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.Util.v201908; +using Google.Api.Ads.AdManager.v201908; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This code example creates a copy of an image creative. This would diff --git a/examples/AdManager/CSharp/v201811/CreativeService/CreateCreativeFromTemplate.cs b/examples/AdManager/CSharp/v201908/CreativeService/CreateCreativeFromTemplate.cs similarity index 97% rename from examples/AdManager/CSharp/v201811/CreativeService/CreateCreativeFromTemplate.cs rename to examples/AdManager/CSharp/v201908/CreativeService/CreateCreativeFromTemplate.cs index b286e5d7900..2583bef059f 100755 --- a/examples/AdManager/CSharp/v201811/CreativeService/CreateCreativeFromTemplate.cs +++ b/examples/AdManager/CSharp/v201908/CreativeService/CreateCreativeFromTemplate.cs @@ -1,4 +1,4 @@ -// Copyright 2018, Google Inc. All Rights Reserved. +// 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. @@ -14,11 +14,11 @@ using Google.Api.Ads.Common.Util; using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.v201908; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This code example creates a new template creative for a given advertiser. diff --git a/examples/AdManager/CSharp/v201811/CreativeService/CreateCreatives.cs b/examples/AdManager/CSharp/v201908/CreativeService/CreateCreatives.cs similarity index 97% rename from examples/AdManager/CSharp/v201811/CreativeService/CreateCreatives.cs rename to examples/AdManager/CSharp/v201908/CreativeService/CreateCreatives.cs index 7de55af69b9..3c0703f21ea 100755 --- a/examples/AdManager/CSharp/v201811/CreativeService/CreateCreatives.cs +++ b/examples/AdManager/CSharp/v201908/CreativeService/CreateCreatives.cs @@ -1,4 +1,4 @@ -// Copyright 2018, Google Inc. All Rights Reserved. +// 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. @@ -14,11 +14,11 @@ using Google.Api.Ads.Common.Util; using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.v201908; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This code example creates new image creatives for a given advertiser. To diff --git a/examples/AdManager/CSharp/v201811/CreativeService/CreateCustomCreative.cs b/examples/AdManager/CSharp/v201908/CreativeService/CreateCustomCreative.cs similarity index 97% rename from examples/AdManager/CSharp/v201811/CreativeService/CreateCustomCreative.cs rename to examples/AdManager/CSharp/v201908/CreativeService/CreateCustomCreative.cs index 97312174bec..cc78d13f48f 100755 --- a/examples/AdManager/CSharp/v201811/CreativeService/CreateCustomCreative.cs +++ b/examples/AdManager/CSharp/v201908/CreativeService/CreateCustomCreative.cs @@ -1,4 +1,4 @@ -// Copyright 2018, Google Inc. All Rights Reserved. +// 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. @@ -14,11 +14,11 @@ using Google.Api.Ads.Common.Util; using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.v201908; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This code example creates a custom creative for a given advertiser. To diff --git a/examples/AdManager/CSharp/v201811/CreativeService/CreateNativeCreative.cs b/examples/AdManager/CSharp/v201908/CreativeService/CreateNativeCreative.cs similarity index 97% rename from examples/AdManager/CSharp/v201811/CreativeService/CreateNativeCreative.cs rename to examples/AdManager/CSharp/v201908/CreativeService/CreateNativeCreative.cs index 7544fe9aa57..acb554db015 100755 --- a/examples/AdManager/CSharp/v201811/CreativeService/CreateNativeCreative.cs +++ b/examples/AdManager/CSharp/v201908/CreativeService/CreateNativeCreative.cs @@ -1,4 +1,4 @@ -// Copyright 2018, Google Inc. All Rights Reserved. +// 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. @@ -14,13 +14,13 @@ using Google.Api.Ads.Common.Util; using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v201811; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.Util.v201908; +using Google.Api.Ads.AdManager.v201908; using System; using System.Collections.Generic; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This code example creates a new native creative. To determine which creatives diff --git a/examples/AdManager/CSharp/v201811/CreativeService/GetAllCreatives.cs b/examples/AdManager/CSharp/v201908/CreativeService/GetAllCreatives.cs similarity index 94% rename from examples/AdManager/CSharp/v201811/CreativeService/GetAllCreatives.cs rename to examples/AdManager/CSharp/v201908/CreativeService/GetAllCreatives.cs index 8b8aebd05cc..af99e615c66 100755 --- a/examples/AdManager/CSharp/v201811/CreativeService/GetAllCreatives.cs +++ b/examples/AdManager/CSharp/v201908/CreativeService/GetAllCreatives.cs @@ -1,4 +1,4 @@ -// Copyright 2017, Google Inc. All Rights Reserved. +// 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. @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v201811; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.Util.v201908; +using Google.Api.Ads.AdManager.v201908; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This example gets all creatives. diff --git a/examples/AdManager/CSharp/v201811/CreativeService/GetImageCreatives.cs b/examples/AdManager/CSharp/v201908/CreativeService/GetImageCreatives.cs similarity index 94% rename from examples/AdManager/CSharp/v201811/CreativeService/GetImageCreatives.cs rename to examples/AdManager/CSharp/v201908/CreativeService/GetImageCreatives.cs index 3e2e0d4deb2..d6b06ec2d94 100755 --- a/examples/AdManager/CSharp/v201811/CreativeService/GetImageCreatives.cs +++ b/examples/AdManager/CSharp/v201908/CreativeService/GetImageCreatives.cs @@ -1,4 +1,4 @@ -// Copyright 2017, Google Inc. All Rights Reserved. +// 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. @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v201811; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.Util.v201908; +using Google.Api.Ads.AdManager.v201908; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This example gets all image creatives. diff --git a/examples/AdManager/CSharp/v201811/CreativeService/UpdateCreatives.cs b/examples/AdManager/CSharp/v201908/CreativeService/UpdateCreatives.cs similarity index 95% rename from examples/AdManager/CSharp/v201811/CreativeService/UpdateCreatives.cs rename to examples/AdManager/CSharp/v201908/CreativeService/UpdateCreatives.cs index 95f8d53b7fa..3c4d8b0c064 100755 --- a/examples/AdManager/CSharp/v201811/CreativeService/UpdateCreatives.cs +++ b/examples/AdManager/CSharp/v201908/CreativeService/UpdateCreatives.cs @@ -1,4 +1,4 @@ -// Copyright 2018, Google Inc. All Rights Reserved. +// 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. @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v201811; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.Util.v201908; +using Google.Api.Ads.AdManager.v201908; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This code example updates image creatives. To create an image creative, run diff --git a/examples/AdManager/CSharp/v201811/CreativeSetService/GetAllCreativeSets.cs b/examples/AdManager/CSharp/v201908/CreativeSetService/GetAllCreativeSets.cs similarity index 94% rename from examples/AdManager/CSharp/v201811/CreativeSetService/GetAllCreativeSets.cs rename to examples/AdManager/CSharp/v201908/CreativeSetService/GetAllCreativeSets.cs index b3b411e64db..9c97dd7133c 100755 --- a/examples/AdManager/CSharp/v201811/CreativeSetService/GetAllCreativeSets.cs +++ b/examples/AdManager/CSharp/v201908/CreativeSetService/GetAllCreativeSets.cs @@ -1,4 +1,4 @@ -// Copyright 2017, Google Inc. All Rights Reserved. +// 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. @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v201811; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.Util.v201908; +using Google.Api.Ads.AdManager.v201908; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This example gets all creative sets. diff --git a/examples/AdManager/CSharp/v201811/CreativeSetService/GetCreativeSetsForMasterCreative.cs b/examples/AdManager/CSharp/v201908/CreativeSetService/GetCreativeSetsForMasterCreative.cs similarity index 94% rename from examples/AdManager/CSharp/v201811/CreativeSetService/GetCreativeSetsForMasterCreative.cs rename to examples/AdManager/CSharp/v201908/CreativeSetService/GetCreativeSetsForMasterCreative.cs index dd9103c1f8d..af5f860d0bf 100755 --- a/examples/AdManager/CSharp/v201811/CreativeSetService/GetCreativeSetsForMasterCreative.cs +++ b/examples/AdManager/CSharp/v201908/CreativeSetService/GetCreativeSetsForMasterCreative.cs @@ -1,4 +1,4 @@ -// Copyright 2017, Google Inc. All Rights Reserved. +// 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. @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v201811; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.Util.v201908; +using Google.Api.Ads.AdManager.v201908; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This example gets all creative sets for a master creative. diff --git a/examples/AdManager/CSharp/v201811/CreativeTemplateService/GetAllCreativeTemplates.cs b/examples/AdManager/CSharp/v201908/CreativeTemplateService/GetAllCreativeTemplates.cs similarity index 94% rename from examples/AdManager/CSharp/v201811/CreativeTemplateService/GetAllCreativeTemplates.cs rename to examples/AdManager/CSharp/v201908/CreativeTemplateService/GetAllCreativeTemplates.cs index 1127f38755d..94f84aacd82 100755 --- a/examples/AdManager/CSharp/v201811/CreativeTemplateService/GetAllCreativeTemplates.cs +++ b/examples/AdManager/CSharp/v201908/CreativeTemplateService/GetAllCreativeTemplates.cs @@ -1,4 +1,4 @@ -// Copyright 2017, Google Inc. All Rights Reserved. +// 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. @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v201811; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.Util.v201908; +using Google.Api.Ads.AdManager.v201908; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This example gets all creative templates. diff --git a/examples/AdManager/CSharp/v201811/CreativeTemplateService/GetSystemDefinedCreativeTemplates.cs b/examples/AdManager/CSharp/v201908/CreativeTemplateService/GetSystemDefinedCreativeTemplates.cs similarity index 94% rename from examples/AdManager/CSharp/v201811/CreativeTemplateService/GetSystemDefinedCreativeTemplates.cs rename to examples/AdManager/CSharp/v201908/CreativeTemplateService/GetSystemDefinedCreativeTemplates.cs index fe1835cca21..8f16fcb4b9f 100755 --- a/examples/AdManager/CSharp/v201811/CreativeTemplateService/GetSystemDefinedCreativeTemplates.cs +++ b/examples/AdManager/CSharp/v201908/CreativeTemplateService/GetSystemDefinedCreativeTemplates.cs @@ -1,4 +1,4 @@ -// Copyright 2017, Google Inc. All Rights Reserved. +// 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. @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v201811; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.Util.v201908; +using Google.Api.Ads.AdManager.v201908; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This example gets all system defined creative templates. diff --git a/examples/AdManager/CSharp/v201811/CreativeWrapperService/CreateCreativeWrappers.cs b/examples/AdManager/CSharp/v201908/CreativeWrapperService/CreateCreativeWrappers.cs similarity index 95% rename from examples/AdManager/CSharp/v201811/CreativeWrapperService/CreateCreativeWrappers.cs rename to examples/AdManager/CSharp/v201908/CreativeWrapperService/CreateCreativeWrappers.cs index 333f7b4b393..c7f8d7f4958 100755 --- a/examples/AdManager/CSharp/v201811/CreativeWrapperService/CreateCreativeWrappers.cs +++ b/examples/AdManager/CSharp/v201908/CreativeWrapperService/CreateCreativeWrappers.cs @@ -1,4 +1,4 @@ -// Copyright 2018, Google Inc. All Rights Reserved. +// 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. @@ -13,11 +13,11 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.v201908; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This code example creates a new creative wrapper. Creative wrappers must diff --git a/examples/AdManager/CSharp/v201811/CreativeWrapperService/DeactivateCreativeWrappers.cs b/examples/AdManager/CSharp/v201908/CreativeWrapperService/DeactivateCreativeWrappers.cs similarity index 95% rename from examples/AdManager/CSharp/v201811/CreativeWrapperService/DeactivateCreativeWrappers.cs rename to examples/AdManager/CSharp/v201908/CreativeWrapperService/DeactivateCreativeWrappers.cs index 0a4a887abc8..d210c39b523 100755 --- a/examples/AdManager/CSharp/v201811/CreativeWrapperService/DeactivateCreativeWrappers.cs +++ b/examples/AdManager/CSharp/v201908/CreativeWrapperService/DeactivateCreativeWrappers.cs @@ -1,4 +1,4 @@ -// Copyright 2018, Google Inc. All Rights Reserved. +// 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. @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v201811; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.Util.v201908; +using Google.Api.Ads.AdManager.v201908; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This code example deactivates all creative wrappers belonging to a label. diff --git a/examples/AdManager/CSharp/v201811/CreativeWrapperService/GetActiveCreativeWrappers.cs b/examples/AdManager/CSharp/v201908/CreativeWrapperService/GetActiveCreativeWrappers.cs similarity index 94% rename from examples/AdManager/CSharp/v201811/CreativeWrapperService/GetActiveCreativeWrappers.cs rename to examples/AdManager/CSharp/v201908/CreativeWrapperService/GetActiveCreativeWrappers.cs index ae1d5772881..55f4aa15829 100755 --- a/examples/AdManager/CSharp/v201811/CreativeWrapperService/GetActiveCreativeWrappers.cs +++ b/examples/AdManager/CSharp/v201908/CreativeWrapperService/GetActiveCreativeWrappers.cs @@ -1,4 +1,4 @@ -// Copyright 2017, Google Inc. All Rights Reserved. +// 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. @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v201811; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.Util.v201908; +using Google.Api.Ads.AdManager.v201908; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This example gets all active creative wrappers. diff --git a/examples/AdManager/CSharp/v201811/CreativeWrapperService/GetAllCreativeWrappers.cs b/examples/AdManager/CSharp/v201908/CreativeWrapperService/GetAllCreativeWrappers.cs similarity index 94% rename from examples/AdManager/CSharp/v201811/CreativeWrapperService/GetAllCreativeWrappers.cs rename to examples/AdManager/CSharp/v201908/CreativeWrapperService/GetAllCreativeWrappers.cs index b3e478a69f4..11af3cde01c 100755 --- a/examples/AdManager/CSharp/v201811/CreativeWrapperService/GetAllCreativeWrappers.cs +++ b/examples/AdManager/CSharp/v201908/CreativeWrapperService/GetAllCreativeWrappers.cs @@ -1,4 +1,4 @@ -// Copyright 2017, Google Inc. All Rights Reserved. +// 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. @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v201811; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.Util.v201908; +using Google.Api.Ads.AdManager.v201908; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This example gets all creative wrappers. diff --git a/examples/AdManager/CSharp/v201811/CreativeWrapperService/UpdateCreativeWrappers.cs b/examples/AdManager/CSharp/v201908/CreativeWrapperService/UpdateCreativeWrappers.cs similarity index 94% rename from examples/AdManager/CSharp/v201811/CreativeWrapperService/UpdateCreativeWrappers.cs rename to examples/AdManager/CSharp/v201908/CreativeWrapperService/UpdateCreativeWrappers.cs index e4074021b66..09d52b10ee3 100755 --- a/examples/AdManager/CSharp/v201811/CreativeWrapperService/UpdateCreativeWrappers.cs +++ b/examples/AdManager/CSharp/v201908/CreativeWrapperService/UpdateCreativeWrappers.cs @@ -1,4 +1,4 @@ -// Copyright 2018, Google Inc. All Rights Reserved. +// 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. @@ -13,13 +13,13 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.v201908; using System; -using Google.Api.Ads.AdManager.Util.v201811; +using Google.Api.Ads.AdManager.Util.v201908; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This code example updates a creative wrapper to the 'OUTER' wrapping diff --git a/examples/AdManager/CSharp/v201811/CustomFieldService/CreateCustomFieldOptions.cs b/examples/AdManager/CSharp/v201908/CustomFieldService/CreateCustomFieldOptions.cs similarity index 96% rename from examples/AdManager/CSharp/v201811/CustomFieldService/CreateCustomFieldOptions.cs rename to examples/AdManager/CSharp/v201908/CustomFieldService/CreateCustomFieldOptions.cs index c183acdfaed..92be55c7e00 100755 --- a/examples/AdManager/CSharp/v201811/CustomFieldService/CreateCustomFieldOptions.cs +++ b/examples/AdManager/CSharp/v201908/CustomFieldService/CreateCustomFieldOptions.cs @@ -1,4 +1,4 @@ -// Copyright 2018, Google Inc. All Rights Reserved. +// 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. @@ -13,11 +13,11 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.v201908; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This code example creates custom field options for a drop-down custom diff --git a/examples/AdManager/CSharp/v201811/CustomFieldService/CreateCustomFields.cs b/examples/AdManager/CSharp/v201908/CustomFieldService/CreateCustomFields.cs similarity index 96% rename from examples/AdManager/CSharp/v201811/CustomFieldService/CreateCustomFields.cs rename to examples/AdManager/CSharp/v201908/CustomFieldService/CreateCustomFields.cs index aacd5321499..f5170b03cdb 100755 --- a/examples/AdManager/CSharp/v201811/CustomFieldService/CreateCustomFields.cs +++ b/examples/AdManager/CSharp/v201908/CustomFieldService/CreateCustomFields.cs @@ -1,4 +1,4 @@ -// Copyright 2018, Google Inc. All Rights Reserved. +// 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. @@ -13,11 +13,11 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.v201908; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This code example creates custom fields. To determine which custom fields diff --git a/examples/AdManager/CSharp/v201811/CustomFieldService/DeactivateCustomFields.cs b/examples/AdManager/CSharp/v201908/CustomFieldService/DeactivateCustomFields.cs similarity index 93% rename from examples/AdManager/CSharp/v201811/CustomFieldService/DeactivateCustomFields.cs rename to examples/AdManager/CSharp/v201908/CustomFieldService/DeactivateCustomFields.cs index f9d05a8c324..9b7f164ff85 100755 --- a/examples/AdManager/CSharp/v201811/CustomFieldService/DeactivateCustomFields.cs +++ b/examples/AdManager/CSharp/v201908/CustomFieldService/DeactivateCustomFields.cs @@ -1,4 +1,4 @@ -// Copyright 2018, Google Inc. All Rights Reserved. +// 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. @@ -13,13 +13,13 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v201811; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.Util.v201908; +using Google.Api.Ads.AdManager.v201908; using System; using System.Collections.Generic; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// 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.v201811.DeactivateCustomFields action = - new Google.Api.Ads.AdManager.v201811.DeactivateCustomFields(); + Google.Api.Ads.AdManager.v201908.DeactivateCustomFields action = + new Google.Api.Ads.AdManager.v201908.DeactivateCustomFields(); // Perform action. UpdateResult result = diff --git a/examples/AdManager/CSharp/v201811/CustomFieldService/GetAllCustomFields.cs b/examples/AdManager/CSharp/v201908/CustomFieldService/GetAllCustomFields.cs similarity index 94% rename from examples/AdManager/CSharp/v201811/CustomFieldService/GetAllCustomFields.cs rename to examples/AdManager/CSharp/v201908/CustomFieldService/GetAllCustomFields.cs index 7fd044e55d5..0b8f58f177b 100755 --- a/examples/AdManager/CSharp/v201811/CustomFieldService/GetAllCustomFields.cs +++ b/examples/AdManager/CSharp/v201908/CustomFieldService/GetAllCustomFields.cs @@ -1,4 +1,4 @@ -// Copyright 2017, Google Inc. All Rights Reserved. +// 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. @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v201811; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.Util.v201908; +using Google.Api.Ads.AdManager.v201908; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This example gets all custom fields. diff --git a/examples/AdManager/CSharp/v201811/CustomFieldService/GetCustomFieldsForLineItems.cs b/examples/AdManager/CSharp/v201908/CustomFieldService/GetCustomFieldsForLineItems.cs similarity index 94% rename from examples/AdManager/CSharp/v201811/CustomFieldService/GetCustomFieldsForLineItems.cs rename to examples/AdManager/CSharp/v201908/CustomFieldService/GetCustomFieldsForLineItems.cs index b8e2c595a7a..5c98ac706af 100755 --- a/examples/AdManager/CSharp/v201811/CustomFieldService/GetCustomFieldsForLineItems.cs +++ b/examples/AdManager/CSharp/v201908/CustomFieldService/GetCustomFieldsForLineItems.cs @@ -1,4 +1,4 @@ -// Copyright 2017, Google Inc. All Rights Reserved. +// 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. @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v201811; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.Util.v201908; +using Google.Api.Ads.AdManager.v201908; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This example gets all custom fields that can be applied to line items. diff --git a/examples/AdManager/CSharp/v201811/CustomFieldService/SetLineItemCustomFieldValue.cs b/examples/AdManager/CSharp/v201908/CustomFieldService/SetLineItemCustomFieldValue.cs similarity index 97% rename from examples/AdManager/CSharp/v201811/CustomFieldService/SetLineItemCustomFieldValue.cs rename to examples/AdManager/CSharp/v201908/CustomFieldService/SetLineItemCustomFieldValue.cs index 9ceb61d7654..d4c434e9109 100755 --- a/examples/AdManager/CSharp/v201811/CustomFieldService/SetLineItemCustomFieldValue.cs +++ b/examples/AdManager/CSharp/v201908/CustomFieldService/SetLineItemCustomFieldValue.cs @@ -1,4 +1,4 @@ -// Copyright 2018, Google Inc. All Rights Reserved. +// 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. @@ -13,15 +13,15 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.v201908; using System; -using Google.Api.Ads.AdManager.Util.v201811; +using Google.Api.Ads.AdManager.Util.v201908; using System.Collections.Generic; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This code example sets custom field values on a line item. To determine diff --git a/examples/AdManager/CSharp/v201811/CustomFieldService/UpdateCustomFields.cs b/examples/AdManager/CSharp/v201908/CustomFieldService/UpdateCustomFields.cs similarity index 94% rename from examples/AdManager/CSharp/v201811/CustomFieldService/UpdateCustomFields.cs rename to examples/AdManager/CSharp/v201908/CustomFieldService/UpdateCustomFields.cs index 536f2b2b509..e78757fae2e 100755 --- a/examples/AdManager/CSharp/v201811/CustomFieldService/UpdateCustomFields.cs +++ b/examples/AdManager/CSharp/v201908/CustomFieldService/UpdateCustomFields.cs @@ -1,4 +1,4 @@ -// Copyright 2018, Google Inc. All Rights Reserved. +// 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. @@ -13,13 +13,13 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.v201908; using System; -using Google.Api.Ads.AdManager.Util.v201811; +using Google.Api.Ads.AdManager.Util.v201908; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This code example updates custom field descriptions. To determine which diff --git a/examples/AdManager/CSharp/v201811/CustomTargetingService/CreateCustomTargetingKeysAndValues.cs b/examples/AdManager/CSharp/v201908/CustomTargetingService/CreateCustomTargetingKeysAndValues.cs similarity index 98% rename from examples/AdManager/CSharp/v201811/CustomTargetingService/CreateCustomTargetingKeysAndValues.cs rename to examples/AdManager/CSharp/v201908/CustomTargetingService/CreateCustomTargetingKeysAndValues.cs index f64762a6937..5208c92b290 100755 --- a/examples/AdManager/CSharp/v201811/CustomTargetingService/CreateCustomTargetingKeysAndValues.cs +++ b/examples/AdManager/CSharp/v201908/CustomTargetingService/CreateCustomTargetingKeysAndValues.cs @@ -1,4 +1,4 @@ -// Copyright 2018, Google Inc. All Rights Reserved. +// 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. @@ -13,11 +13,11 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.v201908; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This code example creates new custom targeting keys and values. To diff --git a/examples/AdManager/CSharp/v201811/CustomTargetingService/GetAllCustomTargetingKeysAndValues.cs b/examples/AdManager/CSharp/v201908/CustomTargetingService/GetAllCustomTargetingKeysAndValues.cs similarity index 97% rename from examples/AdManager/CSharp/v201811/CustomTargetingService/GetAllCustomTargetingKeysAndValues.cs rename to examples/AdManager/CSharp/v201908/CustomTargetingService/GetAllCustomTargetingKeysAndValues.cs index eb1abed29fe..35517dedf61 100755 --- a/examples/AdManager/CSharp/v201811/CustomTargetingService/GetAllCustomTargetingKeysAndValues.cs +++ b/examples/AdManager/CSharp/v201908/CustomTargetingService/GetAllCustomTargetingKeysAndValues.cs @@ -1,4 +1,4 @@ -// Copyright 2018, Google Inc. All Rights Reserved. +// 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. @@ -13,13 +13,13 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v201811; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.Util.v201908; +using Google.Api.Ads.AdManager.v201908; using System; using System.Collections.Generic; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This example gets all custom targeting values. diff --git a/examples/AdManager/CSharp/v201811/CustomTargetingService/GetPredefinedCustomTargetingKeysAndValues.cs b/examples/AdManager/CSharp/v201908/CustomTargetingService/GetPredefinedCustomTargetingKeysAndValues.cs similarity index 97% rename from examples/AdManager/CSharp/v201811/CustomTargetingService/GetPredefinedCustomTargetingKeysAndValues.cs rename to examples/AdManager/CSharp/v201908/CustomTargetingService/GetPredefinedCustomTargetingKeysAndValues.cs index 7d664e8208b..edad9e608b8 100755 --- a/examples/AdManager/CSharp/v201811/CustomTargetingService/GetPredefinedCustomTargetingKeysAndValues.cs +++ b/examples/AdManager/CSharp/v201908/CustomTargetingService/GetPredefinedCustomTargetingKeysAndValues.cs @@ -1,4 +1,4 @@ -// Copyright 2018, Google Inc. All Rights Reserved. +// 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. @@ -13,13 +13,13 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v201811; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.Util.v201908; +using Google.Api.Ads.AdManager.v201908; using System; using System.Collections.Generic; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This example gets predefined custom targeting keys and values. diff --git a/examples/AdManager/CSharp/v201811/CustomTargetingService/UpdateCustomTargetingKeys.cs b/examples/AdManager/CSharp/v201908/CustomTargetingService/UpdateCustomTargetingKeys.cs similarity index 95% rename from examples/AdManager/CSharp/v201811/CustomTargetingService/UpdateCustomTargetingKeys.cs rename to examples/AdManager/CSharp/v201908/CustomTargetingService/UpdateCustomTargetingKeys.cs index 2e575b487b6..45f969a44ae 100755 --- a/examples/AdManager/CSharp/v201811/CustomTargetingService/UpdateCustomTargetingKeys.cs +++ b/examples/AdManager/CSharp/v201908/CustomTargetingService/UpdateCustomTargetingKeys.cs @@ -1,4 +1,4 @@ -// Copyright 2018, Google Inc. All Rights Reserved. +// 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. @@ -14,12 +14,12 @@ using Google.Api.Ads.Common.Util; using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v201811; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.Util.v201908; +using Google.Api.Ads.AdManager.v201908; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This code example updates the display name of each custom targeting key up diff --git a/examples/AdManager/CSharp/v201811/CustomTargetingService/UpdateCustomTargetingValues.cs b/examples/AdManager/CSharp/v201908/CustomTargetingService/UpdateCustomTargetingValues.cs similarity index 95% rename from examples/AdManager/CSharp/v201811/CustomTargetingService/UpdateCustomTargetingValues.cs rename to examples/AdManager/CSharp/v201908/CustomTargetingService/UpdateCustomTargetingValues.cs index 8e2ea7a19bc..b57cbc82f8a 100755 --- a/examples/AdManager/CSharp/v201811/CustomTargetingService/UpdateCustomTargetingValues.cs +++ b/examples/AdManager/CSharp/v201908/CustomTargetingService/UpdateCustomTargetingValues.cs @@ -1,4 +1,4 @@ -// Copyright 2018, Google Inc. All Rights Reserved. +// 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. @@ -14,12 +14,12 @@ using Google.Api.Ads.Common.Util; using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v201811; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.Util.v201908; +using Google.Api.Ads.AdManager.v201908; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This code example updates the display name of custom targeting values. To determine diff --git a/examples/AdManager/CSharp/v201811/ForecastService/GetAvailabilityForecast.cs b/examples/AdManager/CSharp/v201908/ForecastService/GetAvailabilityForecast.cs similarity index 97% rename from examples/AdManager/CSharp/v201811/ForecastService/GetAvailabilityForecast.cs rename to examples/AdManager/CSharp/v201908/ForecastService/GetAvailabilityForecast.cs index 79cc734e16e..db1b413a4e9 100755 --- a/examples/AdManager/CSharp/v201811/ForecastService/GetAvailabilityForecast.cs +++ b/examples/AdManager/CSharp/v201908/ForecastService/GetAvailabilityForecast.cs @@ -1,4 +1,4 @@ -// Copyright 2018, Google Inc. All Rights Reserved. +// 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. @@ -14,11 +14,11 @@ using System; using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v201811; -using Google.Api.Ads.AdManager.v201811; -using DateTime = Google.Api.Ads.AdManager.v201811.DateTime; +using Google.Api.Ads.AdManager.Util.v201908; +using Google.Api.Ads.AdManager.v201908; +using DateTime = Google.Api.Ads.AdManager.v201908.DateTime; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This code example gets a forecast for a prospective line item. diff --git a/examples/AdManager/CSharp/v201811/ForecastService/GetAvailabilityForecastById.cs b/examples/AdManager/CSharp/v201908/ForecastService/GetAvailabilityForecastById.cs similarity index 96% rename from examples/AdManager/CSharp/v201811/ForecastService/GetAvailabilityForecastById.cs rename to examples/AdManager/CSharp/v201908/ForecastService/GetAvailabilityForecastById.cs index 09c3631c057..19fcb0a256b 100755 --- a/examples/AdManager/CSharp/v201811/ForecastService/GetAvailabilityForecastById.cs +++ b/examples/AdManager/CSharp/v201908/ForecastService/GetAvailabilityForecastById.cs @@ -1,4 +1,4 @@ -// Copyright 2018, Google Inc. All Rights Reserved. +// 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. @@ -13,11 +13,11 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.v201908; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This code example gets a forecast for an existing line item. To determine diff --git a/examples/AdManager/CSharp/v201811/ForecastService/GetDeliveryForecastByIds.cs b/examples/AdManager/CSharp/v201908/ForecastService/GetDeliveryForecastByIds.cs similarity index 96% rename from examples/AdManager/CSharp/v201811/ForecastService/GetDeliveryForecastByIds.cs rename to examples/AdManager/CSharp/v201908/ForecastService/GetDeliveryForecastByIds.cs index 78501bb6215..564bc5e2a59 100755 --- a/examples/AdManager/CSharp/v201811/ForecastService/GetDeliveryForecastByIds.cs +++ b/examples/AdManager/CSharp/v201908/ForecastService/GetDeliveryForecastByIds.cs @@ -1,4 +1,4 @@ -// Copyright 2018, Google Inc. All Rights Reserved. +// 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. @@ -13,11 +13,11 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.v201908; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This code example gets a delivery forecast for existing line items. To determine diff --git a/examples/AdManager/CSharp/v201811/InventoryService/CreateAdUnits.cs b/examples/AdManager/CSharp/v201908/InventoryService/CreateAdUnits.cs similarity index 96% rename from examples/AdManager/CSharp/v201811/InventoryService/CreateAdUnits.cs rename to examples/AdManager/CSharp/v201908/InventoryService/CreateAdUnits.cs index 52d6bdb205d..8a95943ed8e 100755 --- a/examples/AdManager/CSharp/v201811/InventoryService/CreateAdUnits.cs +++ b/examples/AdManager/CSharp/v201908/InventoryService/CreateAdUnits.cs @@ -1,4 +1,4 @@ -// Copyright 2018, Google Inc. All Rights Reserved. +// 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. @@ -13,11 +13,11 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.v201908; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This code example creates new ad units under the effective root ad unit. diff --git a/examples/AdManager/CSharp/v201811/InventoryService/CreateVideoAdUnit.cs b/examples/AdManager/CSharp/v201908/InventoryService/CreateVideoAdUnit.cs similarity index 97% rename from examples/AdManager/CSharp/v201811/InventoryService/CreateVideoAdUnit.cs rename to examples/AdManager/CSharp/v201908/InventoryService/CreateVideoAdUnit.cs index f1da7273fe4..018fa587c36 100755 --- a/examples/AdManager/CSharp/v201811/InventoryService/CreateVideoAdUnit.cs +++ b/examples/AdManager/CSharp/v201908/InventoryService/CreateVideoAdUnit.cs @@ -1,4 +1,4 @@ -// Copyright 2018, Google Inc. All Rights Reserved. +// 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. @@ -13,11 +13,11 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.v201908; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This code example creates a new video ad unit under the effective root diff --git a/examples/AdManager/CSharp/v201811/InventoryService/DeActivateAdUnits.cs b/examples/AdManager/CSharp/v201908/InventoryService/DeActivateAdUnits.cs similarity index 96% rename from examples/AdManager/CSharp/v201811/InventoryService/DeActivateAdUnits.cs rename to examples/AdManager/CSharp/v201908/InventoryService/DeActivateAdUnits.cs index 39a2eab65c2..38369e86006 100755 --- a/examples/AdManager/CSharp/v201811/InventoryService/DeActivateAdUnits.cs +++ b/examples/AdManager/CSharp/v201908/InventoryService/DeActivateAdUnits.cs @@ -1,4 +1,4 @@ -// Copyright 2018, Google Inc. All Rights Reserved. +// 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. @@ -13,13 +13,13 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v201811; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.Util.v201908; +using Google.Api.Ads.AdManager.v201908; using System; using System.Collections.Generic; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This code example deactivates all active ad units. To determine which ad diff --git a/examples/AdManager/CSharp/v201811/InventoryService/GetAdUnitsByStatement.cs b/examples/AdManager/CSharp/v201908/InventoryService/GetAdUnitsByStatement.cs similarity index 95% rename from examples/AdManager/CSharp/v201811/InventoryService/GetAdUnitsByStatement.cs rename to examples/AdManager/CSharp/v201908/InventoryService/GetAdUnitsByStatement.cs index aabeffe47de..1fceec8406f 100755 --- a/examples/AdManager/CSharp/v201811/InventoryService/GetAdUnitsByStatement.cs +++ b/examples/AdManager/CSharp/v201908/InventoryService/GetAdUnitsByStatement.cs @@ -1,4 +1,4 @@ -// Copyright 2018, Google Inc. All Rights Reserved. +// 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. @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v201811; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.Util.v201908; +using Google.Api.Ads.AdManager.v201908; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This code example gets all child ad units of the effective root ad unit. To create an ad diff --git a/examples/AdManager/CSharp/v201811/InventoryService/GetAllAdUnitSizes.cs b/examples/AdManager/CSharp/v201908/InventoryService/GetAllAdUnitSizes.cs similarity index 92% rename from examples/AdManager/CSharp/v201811/InventoryService/GetAllAdUnitSizes.cs rename to examples/AdManager/CSharp/v201908/InventoryService/GetAllAdUnitSizes.cs index b1c0d89ca47..6b62a80b73e 100755 --- a/examples/AdManager/CSharp/v201811/InventoryService/GetAllAdUnitSizes.cs +++ b/examples/AdManager/CSharp/v201908/InventoryService/GetAllAdUnitSizes.cs @@ -1,4 +1,4 @@ -// Copyright 2018, Google Inc. All Rights Reserved. +// 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. @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v201811; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.Util.v201908; +using Google.Api.Ads.AdManager.v201908; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This example gets all ad unit sizes. diff --git a/examples/AdManager/CSharp/v201811/InventoryService/GetAllAdUnits.cs b/examples/AdManager/CSharp/v201908/InventoryService/GetAllAdUnits.cs similarity index 94% rename from examples/AdManager/CSharp/v201811/InventoryService/GetAllAdUnits.cs rename to examples/AdManager/CSharp/v201908/InventoryService/GetAllAdUnits.cs index b7402d3aa4e..15a94a66472 100755 --- a/examples/AdManager/CSharp/v201811/InventoryService/GetAllAdUnits.cs +++ b/examples/AdManager/CSharp/v201908/InventoryService/GetAllAdUnits.cs @@ -1,4 +1,4 @@ -// Copyright 2017, Google Inc. All Rights Reserved. +// 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. @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v201811; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.Util.v201908; +using Google.Api.Ads.AdManager.v201908; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This example gets all ad units. diff --git a/examples/AdManager/CSharp/v201811/InventoryService/GetInventoryTree.cs b/examples/AdManager/CSharp/v201908/InventoryService/GetInventoryTree.cs similarity index 97% rename from examples/AdManager/CSharp/v201811/InventoryService/GetInventoryTree.cs rename to examples/AdManager/CSharp/v201908/InventoryService/GetInventoryTree.cs index d4852d3cd72..323f334088e 100755 --- a/examples/AdManager/CSharp/v201811/InventoryService/GetInventoryTree.cs +++ b/examples/AdManager/CSharp/v201908/InventoryService/GetInventoryTree.cs @@ -1,4 +1,4 @@ -// Copyright 2018, Google Inc. All Rights Reserved. +// 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. @@ -13,14 +13,14 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v201811; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.Util.v201908; +using Google.Api.Ads.AdManager.v201908; using System; using System.Collections.Generic; using System.Text; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This code example retrieves a previously created ad units and creates diff --git a/examples/AdManager/CSharp/v201811/InventoryService/UpdateAdUnits.cs b/examples/AdManager/CSharp/v201908/InventoryService/UpdateAdUnits.cs similarity index 95% rename from examples/AdManager/CSharp/v201811/InventoryService/UpdateAdUnits.cs rename to examples/AdManager/CSharp/v201908/InventoryService/UpdateAdUnits.cs index 19861a75678..4336cb23225 100755 --- a/examples/AdManager/CSharp/v201811/InventoryService/UpdateAdUnits.cs +++ b/examples/AdManager/CSharp/v201908/InventoryService/UpdateAdUnits.cs @@ -1,4 +1,4 @@ -// Copyright 2018, Google Inc. All Rights Reserved. +// 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. @@ -13,13 +13,13 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v201811; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.Util.v201908; +using Google.Api.Ads.AdManager.v201908; using System; using System.Collections.Generic; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This code example updates an ad unit's sizes by adding a banner ad size. diff --git a/examples/AdManager/CSharp/v201811/LabelService/CreateLabels.cs b/examples/AdManager/CSharp/v201908/LabelService/CreateLabels.cs similarity index 96% rename from examples/AdManager/CSharp/v201811/LabelService/CreateLabels.cs rename to examples/AdManager/CSharp/v201908/LabelService/CreateLabels.cs index 1cb122b8bc6..ade67bfbfd6 100755 --- a/examples/AdManager/CSharp/v201811/LabelService/CreateLabels.cs +++ b/examples/AdManager/CSharp/v201908/LabelService/CreateLabels.cs @@ -1,4 +1,4 @@ -// Copyright 2018, Google Inc. All Rights Reserved. +// 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. @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.v201908; using System; using System.Text; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This code example creates new labels. To determine which labels exist, run diff --git a/examples/AdManager/CSharp/v201811/LabelService/DeactivateActiveLabels.cs b/examples/AdManager/CSharp/v201908/LabelService/DeactivateActiveLabels.cs similarity index 95% rename from examples/AdManager/CSharp/v201811/LabelService/DeactivateActiveLabels.cs rename to examples/AdManager/CSharp/v201908/LabelService/DeactivateActiveLabels.cs index 6a3bb37311f..552534d5cb3 100755 --- a/examples/AdManager/CSharp/v201811/LabelService/DeactivateActiveLabels.cs +++ b/examples/AdManager/CSharp/v201908/LabelService/DeactivateActiveLabels.cs @@ -1,4 +1,4 @@ -// Copyright 2018, Google Inc. All Rights Reserved. +// 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. @@ -13,13 +13,13 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v201811; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.Util.v201908; +using Google.Api.Ads.AdManager.v201908; using System; using System.Collections.Generic; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This code example deactivates all active labels. To determine which labels diff --git a/examples/AdManager/CSharp/v201811/LabelService/GetActiveLabels.cs b/examples/AdManager/CSharp/v201908/LabelService/GetActiveLabels.cs similarity index 94% rename from examples/AdManager/CSharp/v201811/LabelService/GetActiveLabels.cs rename to examples/AdManager/CSharp/v201908/LabelService/GetActiveLabels.cs index 97bbba0b4c4..aee10cbdcf8 100755 --- a/examples/AdManager/CSharp/v201811/LabelService/GetActiveLabels.cs +++ b/examples/AdManager/CSharp/v201908/LabelService/GetActiveLabels.cs @@ -1,4 +1,4 @@ -// Copyright 2017, Google Inc. All Rights Reserved. +// 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. @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v201811; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.Util.v201908; +using Google.Api.Ads.AdManager.v201908; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This example gets all active labels. diff --git a/examples/AdManager/CSharp/v201811/LabelService/GetAllLabels.cs b/examples/AdManager/CSharp/v201908/LabelService/GetAllLabels.cs similarity index 94% rename from examples/AdManager/CSharp/v201811/LabelService/GetAllLabels.cs rename to examples/AdManager/CSharp/v201908/LabelService/GetAllLabels.cs index 03d7a5da2a6..3efa06d33f2 100755 --- a/examples/AdManager/CSharp/v201811/LabelService/GetAllLabels.cs +++ b/examples/AdManager/CSharp/v201908/LabelService/GetAllLabels.cs @@ -1,4 +1,4 @@ -// Copyright 2017, Google Inc. All Rights Reserved. +// 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. @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v201811; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.Util.v201908; +using Google.Api.Ads.AdManager.v201908; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This example gets all labels. diff --git a/examples/AdManager/CSharp/v201811/LabelService/UpdateLabels.cs b/examples/AdManager/CSharp/v201908/LabelService/UpdateLabels.cs similarity index 94% rename from examples/AdManager/CSharp/v201811/LabelService/UpdateLabels.cs rename to examples/AdManager/CSharp/v201908/LabelService/UpdateLabels.cs index d0216e9f0c7..a220028a579 100755 --- a/examples/AdManager/CSharp/v201811/LabelService/UpdateLabels.cs +++ b/examples/AdManager/CSharp/v201908/LabelService/UpdateLabels.cs @@ -1,4 +1,4 @@ -// Copyright 2018, Google Inc. All Rights Reserved. +// 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. @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v201811; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.Util.v201908; +using Google.Api.Ads.AdManager.v201908; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This code example updates a label's description. To determine which labels diff --git a/examples/AdManager/CSharp/v201811/LineItemCreativeAssociationService/ActivateLicas.cs b/examples/AdManager/CSharp/v201908/LineItemCreativeAssociationService/ActivateLicas.cs similarity index 96% rename from examples/AdManager/CSharp/v201811/LineItemCreativeAssociationService/ActivateLicas.cs rename to examples/AdManager/CSharp/v201908/LineItemCreativeAssociationService/ActivateLicas.cs index a899347a961..46e2a4305fa 100755 --- a/examples/AdManager/CSharp/v201811/LineItemCreativeAssociationService/ActivateLicas.cs +++ b/examples/AdManager/CSharp/v201908/LineItemCreativeAssociationService/ActivateLicas.cs @@ -1,4 +1,4 @@ -// Copyright 2018, Google Inc. All Rights Reserved. +// 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. @@ -13,13 +13,13 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v201811; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.Util.v201908; +using Google.Api.Ads.AdManager.v201908; using System; using System.Collections.Generic; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This code example activates all LICAs for a given line item. To diff --git a/examples/AdManager/CSharp/v201811/LineItemCreativeAssociationService/CreateLicas.cs b/examples/AdManager/CSharp/v201908/LineItemCreativeAssociationService/CreateLicas.cs similarity index 96% rename from examples/AdManager/CSharp/v201811/LineItemCreativeAssociationService/CreateLicas.cs rename to examples/AdManager/CSharp/v201908/LineItemCreativeAssociationService/CreateLicas.cs index a816259ebb8..46ce552175a 100755 --- a/examples/AdManager/CSharp/v201811/LineItemCreativeAssociationService/CreateLicas.cs +++ b/examples/AdManager/CSharp/v201908/LineItemCreativeAssociationService/CreateLicas.cs @@ -1,4 +1,4 @@ -// Copyright 2018, Google Inc. All Rights Reserved. +// 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. @@ -13,11 +13,11 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.v201908; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This code example creates new line item creative associations (LICAs) for diff --git a/examples/AdManager/CSharp/v201811/LineItemCreativeAssociationService/DeactivateLicas.cs b/examples/AdManager/CSharp/v201908/LineItemCreativeAssociationService/DeactivateLicas.cs similarity index 96% rename from examples/AdManager/CSharp/v201811/LineItemCreativeAssociationService/DeactivateLicas.cs rename to examples/AdManager/CSharp/v201908/LineItemCreativeAssociationService/DeactivateLicas.cs index 756cce58df4..bf6fcb8f3e0 100755 --- a/examples/AdManager/CSharp/v201811/LineItemCreativeAssociationService/DeactivateLicas.cs +++ b/examples/AdManager/CSharp/v201908/LineItemCreativeAssociationService/DeactivateLicas.cs @@ -1,4 +1,4 @@ -// Copyright 2018, Google Inc. All Rights Reserved. +// 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. @@ -13,13 +13,13 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v201811; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.Util.v201908; +using Google.Api.Ads.AdManager.v201908; using System; using System.Collections.Generic; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This code example deactivates all LICAs for a given line item. To determine diff --git a/examples/AdManager/CSharp/v201811/LineItemCreativeAssociationService/GetAllLicas.cs b/examples/AdManager/CSharp/v201908/LineItemCreativeAssociationService/GetAllLicas.cs similarity index 95% rename from examples/AdManager/CSharp/v201811/LineItemCreativeAssociationService/GetAllLicas.cs rename to examples/AdManager/CSharp/v201908/LineItemCreativeAssociationService/GetAllLicas.cs index bcd15b668eb..5d8430b32df 100755 --- a/examples/AdManager/CSharp/v201811/LineItemCreativeAssociationService/GetAllLicas.cs +++ b/examples/AdManager/CSharp/v201908/LineItemCreativeAssociationService/GetAllLicas.cs @@ -1,4 +1,4 @@ -// Copyright 2018, Google Inc. All Rights Reserved. +// 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. @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v201811; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.Util.v201908; +using Google.Api.Ads.AdManager.v201908; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This example gets all line item creative associations. diff --git a/examples/AdManager/CSharp/v201811/LineItemCreativeAssociationService/GetLicasForLineItem.cs b/examples/AdManager/CSharp/v201908/LineItemCreativeAssociationService/GetLicasForLineItem.cs similarity index 95% rename from examples/AdManager/CSharp/v201811/LineItemCreativeAssociationService/GetLicasForLineItem.cs rename to examples/AdManager/CSharp/v201908/LineItemCreativeAssociationService/GetLicasForLineItem.cs index f57f8c2d287..17ea1f4633a 100755 --- a/examples/AdManager/CSharp/v201811/LineItemCreativeAssociationService/GetLicasForLineItem.cs +++ b/examples/AdManager/CSharp/v201908/LineItemCreativeAssociationService/GetLicasForLineItem.cs @@ -1,4 +1,4 @@ -// Copyright 2018, Google Inc. All Rights Reserved. +// 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. @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v201811; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.Util.v201908; +using Google.Api.Ads.AdManager.v201908; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This example gets all line item creative associations for a given line item. diff --git a/examples/AdManager/CSharp/v201811/LineItemCreativeAssociationService/UpdateLicas.cs b/examples/AdManager/CSharp/v201908/LineItemCreativeAssociationService/UpdateLicas.cs similarity index 95% rename from examples/AdManager/CSharp/v201811/LineItemCreativeAssociationService/UpdateLicas.cs rename to examples/AdManager/CSharp/v201908/LineItemCreativeAssociationService/UpdateLicas.cs index fe0a69c14f3..12775c4a683 100755 --- a/examples/AdManager/CSharp/v201811/LineItemCreativeAssociationService/UpdateLicas.cs +++ b/examples/AdManager/CSharp/v201908/LineItemCreativeAssociationService/UpdateLicas.cs @@ -1,4 +1,4 @@ -// Copyright 2018, Google Inc. All Rights Reserved. +// 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. @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v201811; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.Util.v201908; +using Google.Api.Ads.AdManager.v201908; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This code example updates the destination URL of a LICA. To determine which LICAs exist, diff --git a/examples/AdManager/CSharp/v201811/LineItemService/ActivateLineItem.cs b/examples/AdManager/CSharp/v201908/LineItemService/ActivateLineItem.cs similarity index 96% rename from examples/AdManager/CSharp/v201811/LineItemService/ActivateLineItem.cs rename to examples/AdManager/CSharp/v201908/LineItemService/ActivateLineItem.cs index b5a65201574..d2e90fee883 100755 --- a/examples/AdManager/CSharp/v201811/LineItemService/ActivateLineItem.cs +++ b/examples/AdManager/CSharp/v201908/LineItemService/ActivateLineItem.cs @@ -1,4 +1,4 @@ -// Copyright 2018, Google Inc. All Rights Reserved. +// 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. @@ -13,13 +13,13 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v201811; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.Util.v201908; +using Google.Api.Ads.AdManager.v201908; using System; using System.Collections.Generic; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This code example activates all line items for the given order. To be diff --git a/examples/AdManager/CSharp/v201811/LineItemService/CreateLineItems.cs b/examples/AdManager/CSharp/v201908/LineItemService/CreateLineItems.cs similarity index 97% rename from examples/AdManager/CSharp/v201811/LineItemService/CreateLineItems.cs rename to examples/AdManager/CSharp/v201908/LineItemService/CreateLineItems.cs index 406ef0df36c..f9693064eef 100755 --- a/examples/AdManager/CSharp/v201811/LineItemService/CreateLineItems.cs +++ b/examples/AdManager/CSharp/v201908/LineItemService/CreateLineItems.cs @@ -1,4 +1,4 @@ -// Copyright 2018, Google Inc. All Rights Reserved. +// 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. @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v201811; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.Util.v201908; +using Google.Api.Ads.AdManager.v201908; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// 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.v201811.DayOfWeek.SATURDAY; + saturdayDayPart.dayOfWeek = Google.Api.Ads.AdManager.v201908.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.v201811.DayOfWeek.SUNDAY; + sundayDayPart.dayOfWeek = Google.Api.Ads.AdManager.v201908.DayOfWeek.SUNDAY; sundayDayPart.startTime = new TimeOfDay(); sundayDayPart.startTime.hour = 0; diff --git a/examples/AdManager/CSharp/v201811/LineItemService/CreateVideoLineItem.cs b/examples/AdManager/CSharp/v201908/LineItemService/CreateVideoLineItem.cs similarity index 90% rename from examples/AdManager/CSharp/v201811/LineItemService/CreateVideoLineItem.cs rename to examples/AdManager/CSharp/v201908/LineItemService/CreateVideoLineItem.cs index 8650255f303..2bddf45cf0a 100755 --- a/examples/AdManager/CSharp/v201811/LineItemService/CreateVideoLineItem.cs +++ b/examples/AdManager/CSharp/v201908/LineItemService/CreateVideoLineItem.cs @@ -1,4 +1,4 @@ -// Copyright 2018, Google Inc. All Rights Reserved. +// 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. @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v201811; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.Util.v201908; +using Google.Api.Ads.AdManager.v201908; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This code example creates a new line item to serve to video content. To @@ -70,6 +70,10 @@ public void Run(AdManagerUser user) long contentBundleId = long.Parse(_T("INSERT_CONTENT_BUNDLE_ID_HERE")); + // Set the CMS metadata value to target + long cmsMetadataValueId = + long.Parse(_T("INSERT_CMS_METADATA_VALUE_ID_HERE")); + // Create content targeting. ContentTargeting contentTargeting = new ContentTargeting() { @@ -107,13 +111,25 @@ public void Run(AdManagerUser user) } }; + // Create custom criteria set + CustomCriteriaSet customCriteriaSet = new CustomCriteriaSet() { + logicalOperator = CustomCriteriaSetLogicalOperator.AND, + children = new CustomCriteriaNode[] { + new CmsMetadataCriteria() { + cmsMetadataValueIds = new long[] { cmsMetadataValueId }, + @operator = CmsMetadataCriteriaComparisonOperator.EQUALS + } + } + }; + // Create targeting. Targeting targeting = new Targeting() { contentTargeting = contentTargeting, inventoryTargeting = inventoryTargeting, videoPositionTargeting = videoPositionTargeting, - requestPlatformTargeting = requestPlatformTargeting + requestPlatformTargeting = requestPlatformTargeting, + customTargeting = customCriteriaSet }; // Create local line item object. diff --git a/examples/AdManager/CSharp/v201811/LineItemService/GetAllLineItems.cs b/examples/AdManager/CSharp/v201908/LineItemService/GetAllLineItems.cs similarity index 94% rename from examples/AdManager/CSharp/v201811/LineItemService/GetAllLineItems.cs rename to examples/AdManager/CSharp/v201908/LineItemService/GetAllLineItems.cs index 244ba9f9bd3..956ac00d068 100755 --- a/examples/AdManager/CSharp/v201811/LineItemService/GetAllLineItems.cs +++ b/examples/AdManager/CSharp/v201908/LineItemService/GetAllLineItems.cs @@ -1,4 +1,4 @@ -// Copyright 2017, Google Inc. All Rights Reserved. +// 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. @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v201811; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.Util.v201908; +using Google.Api.Ads.AdManager.v201908; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This example gets all line items. diff --git a/examples/AdManager/CSharp/v201811/LineItemService/GetLineItemsThatNeedCreatives.cs b/examples/AdManager/CSharp/v201908/LineItemService/GetLineItemsThatNeedCreatives.cs similarity index 94% rename from examples/AdManager/CSharp/v201811/LineItemService/GetLineItemsThatNeedCreatives.cs rename to examples/AdManager/CSharp/v201908/LineItemService/GetLineItemsThatNeedCreatives.cs index 77c0353a265..0fd0df984cd 100755 --- a/examples/AdManager/CSharp/v201811/LineItemService/GetLineItemsThatNeedCreatives.cs +++ b/examples/AdManager/CSharp/v201908/LineItemService/GetLineItemsThatNeedCreatives.cs @@ -1,4 +1,4 @@ -// Copyright 2017, Google Inc. All Rights Reserved. +// 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. @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v201811; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.Util.v201908; +using Google.Api.Ads.AdManager.v201908; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This example gets all line items that are missing creatives. diff --git a/examples/AdManager/CSharp/v201811/LineItemService/GetRecentlyUpdatedLineItems.cs b/examples/AdManager/CSharp/v201908/LineItemService/GetRecentlyUpdatedLineItems.cs similarity index 94% rename from examples/AdManager/CSharp/v201811/LineItemService/GetRecentlyUpdatedLineItems.cs rename to examples/AdManager/CSharp/v201908/LineItemService/GetRecentlyUpdatedLineItems.cs index 46da03649f3..d8fd9a8f412 100755 --- a/examples/AdManager/CSharp/v201811/LineItemService/GetRecentlyUpdatedLineItems.cs +++ b/examples/AdManager/CSharp/v201908/LineItemService/GetRecentlyUpdatedLineItems.cs @@ -1,4 +1,4 @@ -// Copyright 2018, Google Inc. All Rights Reserved. +// 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. @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v201811; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.Util.v201908; +using Google.Api.Ads.AdManager.v201908; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This example gets only recently updated line items. diff --git a/examples/AdManager/CSharp/v201811/LineItemService/TargetCustomCriteria.cs b/examples/AdManager/CSharp/v201908/LineItemService/TargetCustomCriteria.cs similarity index 97% rename from examples/AdManager/CSharp/v201811/LineItemService/TargetCustomCriteria.cs rename to examples/AdManager/CSharp/v201908/LineItemService/TargetCustomCriteria.cs index 23377fee688..f0a8cfdca64 100755 --- a/examples/AdManager/CSharp/v201811/LineItemService/TargetCustomCriteria.cs +++ b/examples/AdManager/CSharp/v201908/LineItemService/TargetCustomCriteria.cs @@ -1,4 +1,4 @@ -// Copyright 2018, Google Inc. All Rights Reserved. +// 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. @@ -13,13 +13,13 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v201811; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.Util.v201908; +using Google.Api.Ads.AdManager.v201908; using System; using System.Text; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This code example updates a line item to add custom criteria targeting. To diff --git a/examples/AdManager/CSharp/v201811/LineItemService/UpdateLineItems.cs b/examples/AdManager/CSharp/v201908/LineItemService/UpdateLineItems.cs similarity index 95% rename from examples/AdManager/CSharp/v201811/LineItemService/UpdateLineItems.cs rename to examples/AdManager/CSharp/v201908/LineItemService/UpdateLineItems.cs index 52f56ac299b..b8cb72fc9d1 100755 --- a/examples/AdManager/CSharp/v201811/LineItemService/UpdateLineItems.cs +++ b/examples/AdManager/CSharp/v201908/LineItemService/UpdateLineItems.cs @@ -1,4 +1,4 @@ -// Copyright 2018, Google Inc. All Rights Reserved. +// 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. @@ -13,13 +13,13 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v201811; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.Util.v201908; +using Google.Api.Ads.AdManager.v201908; using System; using System.Collections.Generic; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This code example updates the delivery rate of a line items. diff --git a/examples/AdManager/CSharp/v201811/NativeStyleService/CreateNativeStyles.cs b/examples/AdManager/CSharp/v201908/NativeStyleService/CreateNativeStyles.cs similarity index 97% rename from examples/AdManager/CSharp/v201811/NativeStyleService/CreateNativeStyles.cs rename to examples/AdManager/CSharp/v201908/NativeStyleService/CreateNativeStyles.cs index 7853d219ca7..4fb51fa820b 100755 --- a/examples/AdManager/CSharp/v201811/NativeStyleService/CreateNativeStyles.cs +++ b/examples/AdManager/CSharp/v201908/NativeStyleService/CreateNativeStyles.cs @@ -1,4 +1,4 @@ -// Copyright 2017, Google Inc. All Rights Reserved. +// 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. @@ -13,11 +13,11 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.v201908; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This code example creates a new native style. diff --git a/examples/AdManager/CSharp/v201811/NativeStyleService/GetAllNativeStyles.cs b/examples/AdManager/CSharp/v201908/NativeStyleService/GetAllNativeStyles.cs similarity index 94% rename from examples/AdManager/CSharp/v201811/NativeStyleService/GetAllNativeStyles.cs rename to examples/AdManager/CSharp/v201908/NativeStyleService/GetAllNativeStyles.cs index ae509f39b6d..697c76e3983 100755 --- a/examples/AdManager/CSharp/v201811/NativeStyleService/GetAllNativeStyles.cs +++ b/examples/AdManager/CSharp/v201908/NativeStyleService/GetAllNativeStyles.cs @@ -1,4 +1,4 @@ -// Copyright 2017, Google Inc. All Rights Reserved. +// 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. @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v201811; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.Util.v201908; +using Google.Api.Ads.AdManager.v201908; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This example gets all native styles. diff --git a/examples/AdManager/CSharp/v201811/NetworkService/GetAllNetworks.cs b/examples/AdManager/CSharp/v201908/NetworkService/GetAllNetworks.cs similarity index 93% rename from examples/AdManager/CSharp/v201811/NetworkService/GetAllNetworks.cs rename to examples/AdManager/CSharp/v201908/NetworkService/GetAllNetworks.cs index 14a84bb8449..6572e36946a 100755 --- a/examples/AdManager/CSharp/v201811/NetworkService/GetAllNetworks.cs +++ b/examples/AdManager/CSharp/v201908/NetworkService/GetAllNetworks.cs @@ -1,4 +1,4 @@ -// Copyright 2018, Google Inc. All Rights Reserved. +// 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. @@ -13,11 +13,11 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.v201908; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This example gets all networks. diff --git a/examples/AdManager/CSharp/v201811/NetworkService/GetCurrentNetwork.cs b/examples/AdManager/CSharp/v201908/NetworkService/GetCurrentNetwork.cs similarity index 93% rename from examples/AdManager/CSharp/v201811/NetworkService/GetCurrentNetwork.cs rename to examples/AdManager/CSharp/v201908/NetworkService/GetCurrentNetwork.cs index 94748ecc027..abb4b470fcc 100755 --- a/examples/AdManager/CSharp/v201811/NetworkService/GetCurrentNetwork.cs +++ b/examples/AdManager/CSharp/v201908/NetworkService/GetCurrentNetwork.cs @@ -1,4 +1,4 @@ -// Copyright 2018, Google Inc. All Rights Reserved. +// 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. @@ -13,11 +13,11 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.v201908; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This code example gets the current network that you can make requests diff --git a/examples/AdManager/CSharp/v201811/NetworkService/MakeTestNetwork.cs b/examples/AdManager/CSharp/v201908/NetworkService/MakeTestNetwork.cs similarity index 96% rename from examples/AdManager/CSharp/v201811/NetworkService/MakeTestNetwork.cs rename to examples/AdManager/CSharp/v201908/NetworkService/MakeTestNetwork.cs index 72be32e0e38..d96cb1092c1 100755 --- a/examples/AdManager/CSharp/v201811/NetworkService/MakeTestNetwork.cs +++ b/examples/AdManager/CSharp/v201908/NetworkService/MakeTestNetwork.cs @@ -1,4 +1,4 @@ -// Copyright 2018, Google Inc. All Rights Reserved. +// 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. @@ -13,11 +13,11 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.v201908; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This code example creates a test network. You do not need to have an Ad Manager diff --git a/examples/AdManager/CSharp/v201811/OrderService/ApproveOrder.cs b/examples/AdManager/CSharp/v201908/OrderService/ApproveOrder.cs similarity index 96% rename from examples/AdManager/CSharp/v201811/OrderService/ApproveOrder.cs rename to examples/AdManager/CSharp/v201908/OrderService/ApproveOrder.cs index 61cf92e2e75..bc72c7093fe 100755 --- a/examples/AdManager/CSharp/v201811/OrderService/ApproveOrder.cs +++ b/examples/AdManager/CSharp/v201908/OrderService/ApproveOrder.cs @@ -1,4 +1,4 @@ -// Copyright 2018, Google Inc. All Rights Reserved. +// 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. @@ -13,13 +13,13 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v201811; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.Util.v201908; +using Google.Api.Ads.AdManager.v201908; using System; using System.Collections.Generic; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This code example approves an order and all line items belonging to that order. To determine diff --git a/examples/AdManager/CSharp/v201811/OrderService/CreateOrders.cs b/examples/AdManager/CSharp/v201908/OrderService/CreateOrders.cs similarity index 95% rename from examples/AdManager/CSharp/v201811/OrderService/CreateOrders.cs rename to examples/AdManager/CSharp/v201908/OrderService/CreateOrders.cs index adc210fe556..d3f856472c6 100755 --- a/examples/AdManager/CSharp/v201811/OrderService/CreateOrders.cs +++ b/examples/AdManager/CSharp/v201908/OrderService/CreateOrders.cs @@ -1,4 +1,4 @@ -// Copyright 2018, Google Inc. All Rights Reserved. +// 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. @@ -13,11 +13,11 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.v201908; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This code example creates new orders. To determine which orders exist, diff --git a/examples/AdManager/CSharp/v201811/OrderService/GetAllOrders.cs b/examples/AdManager/CSharp/v201908/OrderService/GetAllOrders.cs similarity index 94% rename from examples/AdManager/CSharp/v201811/OrderService/GetAllOrders.cs rename to examples/AdManager/CSharp/v201908/OrderService/GetAllOrders.cs index f2f683ee41e..79942e6818e 100755 --- a/examples/AdManager/CSharp/v201811/OrderService/GetAllOrders.cs +++ b/examples/AdManager/CSharp/v201908/OrderService/GetAllOrders.cs @@ -1,4 +1,4 @@ -// Copyright 2017, Google Inc. All Rights Reserved. +// 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. @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v201811; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.Util.v201908; +using Google.Api.Ads.AdManager.v201908; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This example gets all orders. diff --git a/examples/AdManager/CSharp/v201811/OrderService/GetOrdersStartingSoon.cs b/examples/AdManager/CSharp/v201908/OrderService/GetOrdersStartingSoon.cs similarity index 95% rename from examples/AdManager/CSharp/v201811/OrderService/GetOrdersStartingSoon.cs rename to examples/AdManager/CSharp/v201908/OrderService/GetOrdersStartingSoon.cs index 9de1109b2aa..5444279edf2 100755 --- a/examples/AdManager/CSharp/v201811/OrderService/GetOrdersStartingSoon.cs +++ b/examples/AdManager/CSharp/v201908/OrderService/GetOrdersStartingSoon.cs @@ -1,4 +1,4 @@ -// Copyright 2018, Google Inc. All Rights Reserved. +// 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. @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v201811; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.Util.v201908; +using Google.Api.Ads.AdManager.v201908; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This example gets all orders that are starting soon. diff --git a/examples/AdManager/CSharp/v201811/OrderService/UpdateOrders.cs b/examples/AdManager/CSharp/v201908/OrderService/UpdateOrders.cs similarity index 94% rename from examples/AdManager/CSharp/v201811/OrderService/UpdateOrders.cs rename to examples/AdManager/CSharp/v201908/OrderService/UpdateOrders.cs index 4847cd1b6b2..4bee72594fa 100755 --- a/examples/AdManager/CSharp/v201811/OrderService/UpdateOrders.cs +++ b/examples/AdManager/CSharp/v201908/OrderService/UpdateOrders.cs @@ -1,4 +1,4 @@ -// Copyright 2018, Google Inc. All Rights Reserved. +// 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. @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v201811; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.Util.v201908; +using Google.Api.Ads.AdManager.v201908; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This code example updates the note of an order. To determine which orders exist, diff --git a/examples/AdManager/CSharp/v201811/PlacementService/CreatePlacements.cs b/examples/AdManager/CSharp/v201908/PlacementService/CreatePlacements.cs similarity index 97% rename from examples/AdManager/CSharp/v201811/PlacementService/CreatePlacements.cs rename to examples/AdManager/CSharp/v201908/PlacementService/CreatePlacements.cs index 81929852920..2be6bedf020 100755 --- a/examples/AdManager/CSharp/v201811/PlacementService/CreatePlacements.cs +++ b/examples/AdManager/CSharp/v201908/PlacementService/CreatePlacements.cs @@ -1,4 +1,4 @@ -// Copyright 2018, Google Inc. All Rights Reserved. +// 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. @@ -13,13 +13,13 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v201811; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.Util.v201908; +using Google.Api.Ads.AdManager.v201908; using System; using System.Collections.Generic; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This code example creates new placements for various ad unit sizes. To diff --git a/examples/AdManager/CSharp/v201811/PlacementService/DeactivatePlacement.cs b/examples/AdManager/CSharp/v201908/PlacementService/DeactivatePlacement.cs similarity index 96% rename from examples/AdManager/CSharp/v201811/PlacementService/DeactivatePlacement.cs rename to examples/AdManager/CSharp/v201908/PlacementService/DeactivatePlacement.cs index 027ae09b459..a17b68d1e6f 100755 --- a/examples/AdManager/CSharp/v201811/PlacementService/DeactivatePlacement.cs +++ b/examples/AdManager/CSharp/v201908/PlacementService/DeactivatePlacement.cs @@ -1,4 +1,4 @@ -// Copyright 2018, Google Inc. All Rights Reserved. +// 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. @@ -13,13 +13,13 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v201811; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.Util.v201908; +using Google.Api.Ads.AdManager.v201908; using System; using System.Collections.Generic; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This code example deactivates a placement. To determine which diff --git a/examples/AdManager/CSharp/v201811/PlacementService/GetActivePlacements.cs b/examples/AdManager/CSharp/v201908/PlacementService/GetActivePlacements.cs similarity index 94% rename from examples/AdManager/CSharp/v201811/PlacementService/GetActivePlacements.cs rename to examples/AdManager/CSharp/v201908/PlacementService/GetActivePlacements.cs index 5c84205262f..caa9a845ee8 100755 --- a/examples/AdManager/CSharp/v201811/PlacementService/GetActivePlacements.cs +++ b/examples/AdManager/CSharp/v201908/PlacementService/GetActivePlacements.cs @@ -1,4 +1,4 @@ -// Copyright 2017, Google Inc. All Rights Reserved. +// 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. @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v201811; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.Util.v201908; +using Google.Api.Ads.AdManager.v201908; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This example gets all active placements. diff --git a/examples/AdManager/CSharp/v201811/PlacementService/GetAllPlacements.cs b/examples/AdManager/CSharp/v201908/PlacementService/GetAllPlacements.cs similarity index 94% rename from examples/AdManager/CSharp/v201811/PlacementService/GetAllPlacements.cs rename to examples/AdManager/CSharp/v201908/PlacementService/GetAllPlacements.cs index b9ea0f15e7c..24d52837f70 100755 --- a/examples/AdManager/CSharp/v201811/PlacementService/GetAllPlacements.cs +++ b/examples/AdManager/CSharp/v201908/PlacementService/GetAllPlacements.cs @@ -1,4 +1,4 @@ -// Copyright 2017, Google Inc. All Rights Reserved. +// 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. @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v201811; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.Util.v201908; +using Google.Api.Ads.AdManager.v201908; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This example gets all placements. diff --git a/examples/AdManager/CSharp/v201811/PlacementService/UpdatePlacements.cs b/examples/AdManager/CSharp/v201908/PlacementService/UpdatePlacements.cs similarity index 95% rename from examples/AdManager/CSharp/v201811/PlacementService/UpdatePlacements.cs rename to examples/AdManager/CSharp/v201908/PlacementService/UpdatePlacements.cs index 6ef00ad1cd7..91b2a8a84ee 100755 --- a/examples/AdManager/CSharp/v201811/PlacementService/UpdatePlacements.cs +++ b/examples/AdManager/CSharp/v201908/PlacementService/UpdatePlacements.cs @@ -1,4 +1,4 @@ -// Copyright 2018, Google Inc. All Rights Reserved. +// 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. @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v201811; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.Util.v201908; +using Google.Api.Ads.AdManager.v201908; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This code example updates the description of a placement. diff --git a/examples/AdManager/CSharp/v201811/ProposalLineItemService/ArchiveProposalLineItems.cs b/examples/AdManager/CSharp/v201908/ProposalLineItemService/ArchiveProposalLineItems.cs similarity index 94% rename from examples/AdManager/CSharp/v201811/ProposalLineItemService/ArchiveProposalLineItems.cs rename to examples/AdManager/CSharp/v201908/ProposalLineItemService/ArchiveProposalLineItems.cs index 83dd85d342c..d1b656a19a9 100755 --- a/examples/AdManager/CSharp/v201811/ProposalLineItemService/ArchiveProposalLineItems.cs +++ b/examples/AdManager/CSharp/v201908/ProposalLineItemService/ArchiveProposalLineItems.cs @@ -1,4 +1,4 @@ -// Copyright 2018, Google Inc. All Rights Reserved. +// 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. @@ -13,13 +13,13 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v201811; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.Util.v201908; +using Google.Api.Ads.AdManager.v201908; using System; using System.Collections.Generic; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// 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.v201811.ArchiveProposalLineItems action = - new Google.Api.Ads.AdManager.v201811.ArchiveProposalLineItems(); + Google.Api.Ads.AdManager.v201908.ArchiveProposalLineItems action = + new Google.Api.Ads.AdManager.v201908.ArchiveProposalLineItems(); // Perform action. UpdateResult result = diff --git a/examples/AdManager/CSharp/v201905/ProposalLineItemService/CreateProgrammaticProposalLineItemsForNonSalesManagement.cs b/examples/AdManager/CSharp/v201908/ProposalLineItemService/CreateProposalLineItems.cs similarity index 86% rename from examples/AdManager/CSharp/v201905/ProposalLineItemService/CreateProgrammaticProposalLineItemsForNonSalesManagement.cs rename to examples/AdManager/CSharp/v201908/ProposalLineItemService/CreateProposalLineItems.cs index db00a24ab62..733a0ee8409 100755 --- a/examples/AdManager/CSharp/v201905/ProposalLineItemService/CreateProgrammaticProposalLineItemsForNonSalesManagement.cs +++ b/examples/AdManager/CSharp/v201908/ProposalLineItemService/CreateProposalLineItems.cs @@ -13,18 +13,17 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v201905; -using Google.Api.Ads.AdManager.v201905; +using Google.Api.Ads.AdManager.Util.v201908; +using Google.Api.Ads.AdManager.v201908; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201905 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// - /// This example creates a new programmatic proposal line item in a - /// non-sales management network. + /// This example creates a new proposal line item. /// - public class CreateProgrammaticProposalLineItemsForNonSalesManagement : SampleBase + public class CreateProposalLineItems : SampleBase { /// /// Returns a description about the code example. @@ -33,8 +32,7 @@ public override string Description { get { - return "This example creates a new programmatic proposal line item in a " + - "non-sales management network."; + return "This example creates a new proposal line item."; } } @@ -43,8 +41,7 @@ public override string Description /// public static void Main() { - CreateProgrammaticProposalLineItemsForNonSalesManagement codeExample = - new CreateProgrammaticProposalLineItemsForNonSalesManagement(); + CreateProposalLineItems codeExample = new CreateProposalLineItems(); Console.WriteLine(codeExample.Description); // Set the ID of the proposal that the proposal line item will belong to. @@ -64,7 +61,7 @@ public void Run(AdManagerUser user, long proposalId) using (NetworkService networkService = user.GetService()) { ProposalLineItem proposalLineItem = new ProposalLineItem(); - proposalLineItem.name = "Programmatic proposal line item #" + + proposalLineItem.name = "Proposal line item #" + new Random().Next(int.MaxValue); proposalLineItem.proposalId = proposalId; proposalLineItem.lineItemType = LineItemType.STANDARD; @@ -152,8 +149,7 @@ public void Run(AdManagerUser user, long proposalId) foreach (ProposalLineItem createdProposalLineItem in proposalLineItems) { - Console.WriteLine( - "A programmatic proposal line item with ID \"{0}\" " + + Console.WriteLine("A proposal line item with ID \"{0}\" " + "and name \"{1}\" was created.", createdProposalLineItem.id, createdProposalLineItem.name); } @@ -161,7 +157,7 @@ public void Run(AdManagerUser user, long proposalId) catch (Exception e) { Console.WriteLine( - "Failed to create programmatic proposal line items. " + + "Failed to create proposal line items. " + "Exception says \"{0}\"", e.Message); } } diff --git a/examples/AdManager/CSharp/v201811/ProposalLineItemService/GetAllProposalLineItems.cs b/examples/AdManager/CSharp/v201908/ProposalLineItemService/GetAllProposalLineItems.cs similarity index 94% rename from examples/AdManager/CSharp/v201811/ProposalLineItemService/GetAllProposalLineItems.cs rename to examples/AdManager/CSharp/v201908/ProposalLineItemService/GetAllProposalLineItems.cs index 8d78d1b2f5a..08472a54725 100755 --- a/examples/AdManager/CSharp/v201811/ProposalLineItemService/GetAllProposalLineItems.cs +++ b/examples/AdManager/CSharp/v201908/ProposalLineItemService/GetAllProposalLineItems.cs @@ -1,4 +1,4 @@ -// Copyright 2017, Google Inc. All Rights Reserved. +// 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. @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v201811; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.Util.v201908; +using Google.Api.Ads.AdManager.v201908; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This example gets all proposal line items. diff --git a/examples/AdManager/CSharp/v201811/ProposalLineItemService/GetProposalLineItemsForProposal.cs b/examples/AdManager/CSharp/v201908/ProposalLineItemService/GetProposalLineItemsForProposal.cs similarity index 95% rename from examples/AdManager/CSharp/v201811/ProposalLineItemService/GetProposalLineItemsForProposal.cs rename to examples/AdManager/CSharp/v201908/ProposalLineItemService/GetProposalLineItemsForProposal.cs index f54f5811094..b079948b786 100755 --- a/examples/AdManager/CSharp/v201811/ProposalLineItemService/GetProposalLineItemsForProposal.cs +++ b/examples/AdManager/CSharp/v201908/ProposalLineItemService/GetProposalLineItemsForProposal.cs @@ -1,4 +1,4 @@ -// Copyright 2017, Google Inc. All Rights Reserved. +// 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. @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v201811; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.Util.v201908; +using Google.Api.Ads.AdManager.v201908; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This example gets all proposal line items belonging to a specific proposal. diff --git a/examples/AdManager/CSharp/v201811/ProposalLineItemService/UpdateProposalLineItems.cs b/examples/AdManager/CSharp/v201908/ProposalLineItemService/UpdateProposalLineItems.cs similarity index 95% rename from examples/AdManager/CSharp/v201811/ProposalLineItemService/UpdateProposalLineItems.cs rename to examples/AdManager/CSharp/v201908/ProposalLineItemService/UpdateProposalLineItems.cs index 01e057f427d..9091f1b3b57 100755 --- a/examples/AdManager/CSharp/v201811/ProposalLineItemService/UpdateProposalLineItems.cs +++ b/examples/AdManager/CSharp/v201908/ProposalLineItemService/UpdateProposalLineItems.cs @@ -1,4 +1,4 @@ -// Copyright 2018, Google Inc. All Rights Reserved. +// 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. @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v201811; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.Util.v201908; +using Google.Api.Ads.AdManager.v201908; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This code example updates a proposal line item's notes. To determine which diff --git a/examples/AdManager/CSharp/v201905/ProposalService/CreateProgrammaticProposalsForNonSalesManagement.cs b/examples/AdManager/CSharp/v201908/ProposalService/CreateProposals.cs similarity index 87% rename from examples/AdManager/CSharp/v201905/ProposalService/CreateProgrammaticProposalsForNonSalesManagement.cs rename to examples/AdManager/CSharp/v201908/ProposalService/CreateProposals.cs index 7c31f6ab505..9609426812c 100755 --- a/examples/AdManager/CSharp/v201905/ProposalService/CreateProgrammaticProposalsForNonSalesManagement.cs +++ b/examples/AdManager/CSharp/v201908/ProposalService/CreateProposals.cs @@ -13,16 +13,16 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.v201905; +using Google.Api.Ads.AdManager.v201908; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201905 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// - /// This example creates a programmatic proposal for networks not using sales management. + /// This example creates a proposal. /// - public class CreateProgrammaticProposalsForNonSalesManagement : SampleBase + public class CreateProposals : SampleBase { /// /// Returns a description about the code example. @@ -31,8 +31,7 @@ public override string Description { get { - return "This example creates a programmatic proposal for networks " + - "not using sales management"; + return "This example creates a proposal"; } } @@ -41,8 +40,8 @@ public override string Description /// public static void Main() { - CreateProgrammaticProposalsForNonSalesManagement codeExample = - new CreateProgrammaticProposalsForNonSalesManagement(); + CreateProposals codeExample = + new CreateProposals(); Console.WriteLine(codeExample.Description); long primarySalespersonId = long.Parse(_T("INSERT_PRIMARY_SALESPERSON_ID_HERE")); @@ -71,7 +70,6 @@ public void Run(AdManagerUser user, long primarySalespersonId, long primaryTraff Proposal proposal = new Proposal() { name = "Programmatic proposal #" + new Random().Next(int.MaxValue), - isProgrammatic = true, // Set required Marketplace information marketplaceInfo = new ProposalMarketplaceInfo() { diff --git a/examples/AdManager/CSharp/v201811/ProposalService/GetAllProposals.cs b/examples/AdManager/CSharp/v201908/ProposalService/GetAllProposals.cs similarity index 94% rename from examples/AdManager/CSharp/v201811/ProposalService/GetAllProposals.cs rename to examples/AdManager/CSharp/v201908/ProposalService/GetAllProposals.cs index cb8624741b6..e10e98c4edf 100755 --- a/examples/AdManager/CSharp/v201811/ProposalService/GetAllProposals.cs +++ b/examples/AdManager/CSharp/v201908/ProposalService/GetAllProposals.cs @@ -1,4 +1,4 @@ -// Copyright 2017, Google Inc. All Rights Reserved. +// 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. @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v201811; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.Util.v201908; +using Google.Api.Ads.AdManager.v201908; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This example gets all proposals. diff --git a/examples/AdManager/CSharp/v201811/ProposalService/GetMarketplaceComments.cs b/examples/AdManager/CSharp/v201908/ProposalService/GetMarketplaceComments.cs similarity index 95% rename from examples/AdManager/CSharp/v201811/ProposalService/GetMarketplaceComments.cs rename to examples/AdManager/CSharp/v201908/ProposalService/GetMarketplaceComments.cs index 47eec0415da..9c22eee5395 100755 --- a/examples/AdManager/CSharp/v201811/ProposalService/GetMarketplaceComments.cs +++ b/examples/AdManager/CSharp/v201908/ProposalService/GetMarketplaceComments.cs @@ -1,4 +1,4 @@ -// Copyright 2018, Google Inc. All Rights Reserved. +// 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. @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v201811; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.Util.v201908; +using Google.Api.Ads.AdManager.v201908; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This example gets the Marketplace comments for a programmatic proposal. diff --git a/examples/AdManager/CSharp/v201811/ProposalService/GetProposalsPendingApproval.cs b/examples/AdManager/CSharp/v201908/ProposalService/GetProposalsAwaitingSellerReview.cs similarity index 82% rename from examples/AdManager/CSharp/v201811/ProposalService/GetProposalsPendingApproval.cs rename to examples/AdManager/CSharp/v201908/ProposalService/GetProposalsAwaitingSellerReview.cs index b7c6fc0f084..657ad83679f 100755 --- a/examples/AdManager/CSharp/v201811/ProposalService/GetProposalsPendingApproval.cs +++ b/examples/AdManager/CSharp/v201908/ProposalService/GetProposalsAwaitingSellerReview.cs @@ -1,4 +1,4 @@ -// Copyright 2017, Google Inc. All Rights Reserved. +// 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. @@ -13,24 +13,24 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v201811; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.Util.v201908; +using Google.Api.Ads.AdManager.v201908; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// - /// This example gets all proposals pending approval. + /// This example gets all proposals awaiting seller review. /// - public class GetProposalsPendingApproval : SampleBase + public class GetProposalsAwaitingSellerReivew : SampleBase { /// /// Returns a description about the code example. /// public override string Description { - get { return "This example gets all proposals pending approval."; } + get { return "This example gets all proposals awaiting seller review."; } } /// @@ -38,7 +38,7 @@ public override string Description /// public static void Main() { - GetProposalsPendingApproval codeExample = new GetProposalsPendingApproval(); + GetProposalsAwaitingSellerReivew codeExample = new GetProposalsAwaitingSellerReivew(); Console.WriteLine(codeExample.Description); try { @@ -60,10 +60,10 @@ public void Run(AdManagerUser user) // Create a statement to select proposals. int pageSize = StatementBuilder.SUGGESTED_PAGE_LIMIT; StatementBuilder statementBuilder = new StatementBuilder() - .Where("status = :status") + .Where("negotiationStatus = :status") .OrderBy("id ASC") .Limit(pageSize) - .AddValue("status", ProposalStatus.PENDING_APPROVAL.ToString()); + .AddValue("status", NegotiationStatus.AWAITING_SELLER_REVIEW.ToString()); // Retrieve a small amount of proposals at a time, paging through until all // proposals have been retrieved. diff --git a/examples/AdManager/CSharp/v201811/ProposalService/RequestBuyerAcceptance.cs b/examples/AdManager/CSharp/v201908/ProposalService/RequestBuyerAcceptance.cs similarity index 93% rename from examples/AdManager/CSharp/v201811/ProposalService/RequestBuyerAcceptance.cs rename to examples/AdManager/CSharp/v201908/ProposalService/RequestBuyerAcceptance.cs index 7e0d3343d42..67531ee5875 100755 --- a/examples/AdManager/CSharp/v201811/ProposalService/RequestBuyerAcceptance.cs +++ b/examples/AdManager/CSharp/v201908/ProposalService/RequestBuyerAcceptance.cs @@ -1,4 +1,4 @@ -// Copyright 2018, Google Inc. All Rights Reserved. +// 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. @@ -13,13 +13,13 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v201811; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.Util.v201908; +using Google.Api.Ads.AdManager.v201908; using System; using System.Collections.Generic; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// 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.v201811.RequestBuyerAcceptance action = - new Google.Api.Ads.AdManager.v201811.RequestBuyerAcceptance(); + Google.Api.Ads.AdManager.v201908.RequestBuyerAcceptance action = + new Google.Api.Ads.AdManager.v201908.RequestBuyerAcceptance(); // Perform action. UpdateResult result = diff --git a/examples/AdManager/CSharp/v201811/ProposalService/UpdateProposals.cs b/examples/AdManager/CSharp/v201908/ProposalService/UpdateProposals.cs similarity index 95% rename from examples/AdManager/CSharp/v201811/ProposalService/UpdateProposals.cs rename to examples/AdManager/CSharp/v201908/ProposalService/UpdateProposals.cs index f25f900365c..439d064639b 100755 --- a/examples/AdManager/CSharp/v201811/ProposalService/UpdateProposals.cs +++ b/examples/AdManager/CSharp/v201908/ProposalService/UpdateProposals.cs @@ -1,4 +1,4 @@ -// Copyright 2018, Google Inc. All Rights Reserved. +// 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. @@ -13,13 +13,13 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v201811; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.Util.v201908; +using Google.Api.Ads.AdManager.v201908; using System; using System.Collections.Generic; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This code example updates the note of an proposal. To determine which proposals exist, diff --git a/examples/AdManager/CSharp/v201811/PublisherQueryLanguageService/FetchMatchTables.cs b/examples/AdManager/CSharp/v201908/PublisherQueryLanguageService/FetchMatchTables.cs similarity index 96% rename from examples/AdManager/CSharp/v201811/PublisherQueryLanguageService/FetchMatchTables.cs rename to examples/AdManager/CSharp/v201908/PublisherQueryLanguageService/FetchMatchTables.cs index daaf0686867..684132e6dc9 100755 --- a/examples/AdManager/CSharp/v201811/PublisherQueryLanguageService/FetchMatchTables.cs +++ b/examples/AdManager/CSharp/v201908/PublisherQueryLanguageService/FetchMatchTables.cs @@ -1,4 +1,4 @@ -// Copyright 2018, Google Inc. All Rights Reserved. +// 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. @@ -14,13 +14,13 @@ using Google.Api.Ads.Common.Util; using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v201811; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.Util.v201908; +using Google.Api.Ads.AdManager.v201908; using System; using System.Collections.Generic; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This code example fetches and creates match table files from the diff --git a/examples/AdManager/CSharp/v201811/PublisherQueryLanguageService/GetAllLineItemsUsingPql.cs b/examples/AdManager/CSharp/v201908/PublisherQueryLanguageService/GetAllLineItemsUsingPql.cs similarity index 93% rename from examples/AdManager/CSharp/v201811/PublisherQueryLanguageService/GetAllLineItemsUsingPql.cs rename to examples/AdManager/CSharp/v201908/PublisherQueryLanguageService/GetAllLineItemsUsingPql.cs index ef6cae93d19..e7955af78dc 100755 --- a/examples/AdManager/CSharp/v201811/PublisherQueryLanguageService/GetAllLineItemsUsingPql.cs +++ b/examples/AdManager/CSharp/v201908/PublisherQueryLanguageService/GetAllLineItemsUsingPql.cs @@ -1,4 +1,4 @@ -// Copyright 2018, Google Inc. All Rights Reserved. +// 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. @@ -14,19 +14,19 @@ using Google.Api.Ads.Common.Util; using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v201811; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.Util.v201908; +using Google.Api.Ads.AdManager.v201908; using System; using System.Collections.Generic; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// 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/v201811/PublisherQueryLanguageService#Line_Item + /// https://developers.google.com/doubleclick-publishers/docs/reference/v201908/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/v201811/" + + "https://developers.google.com/doubleclick-publishers/docs/reference/v201908/" + "PublisherQueryLanguageService#Line_Item"; } } diff --git a/examples/AdManager/CSharp/v201811/PublisherQueryLanguageService/GetAllProgrammaticBuyers.cs b/examples/AdManager/CSharp/v201908/PublisherQueryLanguageService/GetAllProgrammaticBuyers.cs similarity index 95% rename from examples/AdManager/CSharp/v201811/PublisherQueryLanguageService/GetAllProgrammaticBuyers.cs rename to examples/AdManager/CSharp/v201908/PublisherQueryLanguageService/GetAllProgrammaticBuyers.cs index 5875a0b233c..e4771f6e7ad 100755 --- a/examples/AdManager/CSharp/v201811/PublisherQueryLanguageService/GetAllProgrammaticBuyers.cs +++ b/examples/AdManager/CSharp/v201908/PublisherQueryLanguageService/GetAllProgrammaticBuyers.cs @@ -1,4 +1,4 @@ -// Copyright 2018, Google Inc. All Rights Reserved. +// 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. @@ -14,13 +14,13 @@ using Google.Api.Ads.Common.Util; using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v201811; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.Util.v201908; +using Google.Api.Ads.AdManager.v201908; using System; using System.Collections.Generic; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This example gets all programmatic buyers in your network using the diff --git a/examples/AdManager/CSharp/v201811/PublisherQueryLanguageService/GetGeoTargets.cs b/examples/AdManager/CSharp/v201908/PublisherQueryLanguageService/GetGeoTargets.cs similarity index 94% rename from examples/AdManager/CSharp/v201811/PublisherQueryLanguageService/GetGeoTargets.cs rename to examples/AdManager/CSharp/v201908/PublisherQueryLanguageService/GetGeoTargets.cs index 1dd77aaaa96..031f8672a46 100755 --- a/examples/AdManager/CSharp/v201811/PublisherQueryLanguageService/GetGeoTargets.cs +++ b/examples/AdManager/CSharp/v201908/PublisherQueryLanguageService/GetGeoTargets.cs @@ -1,4 +1,4 @@ -// Copyright 2018, Google Inc. All Rights Reserved. +// 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. @@ -14,20 +14,20 @@ using Google.Api.Ads.Common.Util; using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v201811; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.Util.v201908; +using Google.Api.Ads.AdManager.v201908; using System; using System.Collections.Generic; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// 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/v201811/PublisherQueryLanguageService + /// https://developers.google.com/doubleclick-publishers/docs/reference/v201908/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/v201811/" + + "https://developers.google.com/doubleclick-publishers/docs/reference/v201908/" + "PublisherQueryLanguageService"; } } diff --git a/examples/AdManager/CSharp/v201811/PublisherQueryLanguageService/GetLineItemsNamedLike.cs b/examples/AdManager/CSharp/v201908/PublisherQueryLanguageService/GetLineItemsNamedLike.cs similarity index 95% rename from examples/AdManager/CSharp/v201811/PublisherQueryLanguageService/GetLineItemsNamedLike.cs rename to examples/AdManager/CSharp/v201908/PublisherQueryLanguageService/GetLineItemsNamedLike.cs index 044e13c4a2c..3a74cac1382 100755 --- a/examples/AdManager/CSharp/v201811/PublisherQueryLanguageService/GetLineItemsNamedLike.cs +++ b/examples/AdManager/CSharp/v201908/PublisherQueryLanguageService/GetLineItemsNamedLike.cs @@ -1,4 +1,4 @@ -// Copyright 2018, Google Inc. All Rights Reserved. +// 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. @@ -14,13 +14,13 @@ using Google.Api.Ads.Common.Util; using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v201811; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.Util.v201908; +using Google.Api.Ads.AdManager.v201908; using System; using System.Collections.Generic; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This code example gets all line items which have a name beginning with diff --git a/examples/AdManager/CSharp/v201811/PublisherQueryLanguageService/GetRecentChanges.cs b/examples/AdManager/CSharp/v201908/PublisherQueryLanguageService/GetRecentChanges.cs similarity index 94% rename from examples/AdManager/CSharp/v201811/PublisherQueryLanguageService/GetRecentChanges.cs rename to examples/AdManager/CSharp/v201908/PublisherQueryLanguageService/GetRecentChanges.cs index 96bc88ca707..def812a1609 100755 --- a/examples/AdManager/CSharp/v201811/PublisherQueryLanguageService/GetRecentChanges.cs +++ b/examples/AdManager/CSharp/v201908/PublisherQueryLanguageService/GetRecentChanges.cs @@ -1,4 +1,4 @@ -// Copyright 2017, Google Inc. All Rights Reserved. +// 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. @@ -14,21 +14,21 @@ using Google.Api.Ads.Common.Util; using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v201811; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.Util.v201908; +using Google.Api.Ads.AdManager.v201908; -using DateTime = Google.Api.Ads.AdManager.v201811.DateTime; +using DateTime = Google.Api.Ads.AdManager.v201908.DateTime; using System; using System.Collections.Generic; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// 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/v201811/PublisherQueryLanguageService + /// https://developers.google.com/doubleclick-publishers/docs/reference/v201908/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/v201811/" + + "https://developers.google.com/doubleclick-publishers/docs/reference/v201908/" + "PublisherQueryLanguageService"; } } diff --git a/examples/AdManager/CSharp/v201811/ReportService/RunAdExchangeReport.cs b/examples/AdManager/CSharp/v201908/ReportService/RunAdExchangeReport.cs similarity index 95% rename from examples/AdManager/CSharp/v201811/ReportService/RunAdExchangeReport.cs rename to examples/AdManager/CSharp/v201908/ReportService/RunAdExchangeReport.cs index 2d04c3a8c1c..fcf0c6c23e7 100755 --- a/examples/AdManager/CSharp/v201811/ReportService/RunAdExchangeReport.cs +++ b/examples/AdManager/CSharp/v201908/ReportService/RunAdExchangeReport.cs @@ -1,4 +1,4 @@ -// Copyright 2018, Google Inc. All Rights Reserved. +// 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. @@ -14,12 +14,12 @@ using Google.Api.Ads.Common.Util.Reports; using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.v201811; -using Google.Api.Ads.AdManager.Util.v201811; +using Google.Api.Ads.AdManager.v201908; +using Google.Api.Ads.AdManager.Util.v201908; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This code example runs a report on Ad Exchange data via the Ad Manager API. diff --git a/examples/AdManager/CSharp/v201811/ReportService/RunDeliveryReport.cs b/examples/AdManager/CSharp/v201908/ReportService/RunDeliveryReport.cs similarity index 96% rename from examples/AdManager/CSharp/v201811/ReportService/RunDeliveryReport.cs rename to examples/AdManager/CSharp/v201908/ReportService/RunDeliveryReport.cs index 2b0d74b7d7d..2fc4e722f8b 100755 --- a/examples/AdManager/CSharp/v201811/ReportService/RunDeliveryReport.cs +++ b/examples/AdManager/CSharp/v201908/ReportService/RunDeliveryReport.cs @@ -1,4 +1,4 @@ -// Copyright 2018, Google Inc. All Rights Reserved. +// 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. @@ -14,12 +14,12 @@ using Google.Api.Ads.Common.Util.Reports; using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.v201811; -using Google.Api.Ads.AdManager.Util.v201811; +using Google.Api.Ads.AdManager.v201908; +using Google.Api.Ads.AdManager.Util.v201908; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This code example runs a report similar to the "Orders report" in the Ad Manager diff --git a/examples/AdManager/CSharp/v201811/ReportService/RunInventoryReport.cs b/examples/AdManager/CSharp/v201908/ReportService/RunInventoryReport.cs similarity index 91% rename from examples/AdManager/CSharp/v201811/ReportService/RunInventoryReport.cs rename to examples/AdManager/CSharp/v201908/ReportService/RunInventoryReport.cs index 2101bce387c..9975ee9a723 100755 --- a/examples/AdManager/CSharp/v201811/ReportService/RunInventoryReport.cs +++ b/examples/AdManager/CSharp/v201908/ReportService/RunInventoryReport.cs @@ -1,4 +1,4 @@ -// Copyright 2018, Google Inc. All Rights Reserved. +// 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. @@ -14,12 +14,12 @@ using Google.Api.Ads.Common.Util.Reports; using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.v201811; -using Google.Api.Ads.AdManager.Util.v201811; +using Google.Api.Ads.AdManager.v201908; +using Google.Api.Ads.AdManager.Util.v201908; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This code example runs a report equal to the "Whole network report" in the @@ -81,10 +81,10 @@ public void Run(AdManagerUser user) { Column.AD_SERVER_IMPRESSIONS, Column.AD_SERVER_CLICKS, - Column.DYNAMIC_ALLOCATION_INVENTORY_LEVEL_IMPRESSIONS, - Column.DYNAMIC_ALLOCATION_INVENTORY_LEVEL_CLICKS, - Column.TOTAL_INVENTORY_LEVEL_IMPRESSIONS, - Column.TOTAL_INVENTORY_LEVEL_CPM_AND_CPC_REVENUE + Column.ADSENSE_LINE_ITEM_LEVEL_IMPRESSIONS, + Column.ADSENSE_LINE_ITEM_LEVEL_CLICKS, + Column.TOTAL_LINE_ITEM_LEVEL_IMPRESSIONS, + Column.TOTAL_LINE_ITEM_LEVEL_CPM_AND_CPC_REVENUE }; // Set the filter statement. diff --git a/examples/AdManager/CSharp/v201811/ReportService/RunReachReport.cs b/examples/AdManager/CSharp/v201908/ReportService/RunReachReport.cs similarity index 95% rename from examples/AdManager/CSharp/v201811/ReportService/RunReachReport.cs rename to examples/AdManager/CSharp/v201908/ReportService/RunReachReport.cs index 8f0f43ca8dd..207cb275e3a 100755 --- a/examples/AdManager/CSharp/v201811/ReportService/RunReachReport.cs +++ b/examples/AdManager/CSharp/v201908/ReportService/RunReachReport.cs @@ -1,4 +1,4 @@ -// Copyright 2018, Google Inc. All Rights Reserved. +// 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. @@ -14,12 +14,12 @@ using Google.Api.Ads.Common.Util.Reports; using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.v201811; -using Google.Api.Ads.AdManager.Util.v201811; +using Google.Api.Ads.AdManager.v201908; +using Google.Api.Ads.AdManager.Util.v201908; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This code example runs a reach report. The report is saved to the specified file path. diff --git a/examples/AdManager/CSharp/v201811/ReportService/RunReportWithCustomFields.cs b/examples/AdManager/CSharp/v201908/ReportService/RunReportWithCustomFields.cs similarity index 97% rename from examples/AdManager/CSharp/v201811/ReportService/RunReportWithCustomFields.cs rename to examples/AdManager/CSharp/v201908/ReportService/RunReportWithCustomFields.cs index 2e2cf956d44..70e7dd04983 100755 --- a/examples/AdManager/CSharp/v201811/ReportService/RunReportWithCustomFields.cs +++ b/examples/AdManager/CSharp/v201908/ReportService/RunReportWithCustomFields.cs @@ -1,4 +1,4 @@ -// Copyright 2018, Google Inc. All Rights Reserved. +// 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. @@ -14,13 +14,13 @@ using Google.Api.Ads.Common.Util.Reports; using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.v201811; -using Google.Api.Ads.AdManager.Util.v201811; +using Google.Api.Ads.AdManager.v201908; +using Google.Api.Ads.AdManager.Util.v201908; using System; using System.Collections.Generic; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This code example runs a report that includes custom fields found in the diff --git a/examples/AdManager/CSharp/v201811/ReportService/RunSalesReport.cs b/examples/AdManager/CSharp/v201908/ReportService/RunSalesReport.cs similarity index 95% rename from examples/AdManager/CSharp/v201811/ReportService/RunSalesReport.cs rename to examples/AdManager/CSharp/v201908/ReportService/RunSalesReport.cs index 8847177a3d8..41888fb5c38 100755 --- a/examples/AdManager/CSharp/v201811/ReportService/RunSalesReport.cs +++ b/examples/AdManager/CSharp/v201908/ReportService/RunSalesReport.cs @@ -1,4 +1,4 @@ -// Copyright 2018, Google Inc. All Rights Reserved. +// 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. @@ -14,12 +14,12 @@ using Google.Api.Ads.Common.Util.Reports; using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.v201811; -using Google.Api.Ads.AdManager.Util.v201811; +using Google.Api.Ads.AdManager.v201908; +using Google.Api.Ads.AdManager.Util.v201908; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This code example runs a report equal to the "Sales by salespersons diff --git a/examples/AdManager/CSharp/v201811/ReportService/RunSavedQuery.cs b/examples/AdManager/CSharp/v201908/ReportService/RunSavedQuery.cs similarity index 95% rename from examples/AdManager/CSharp/v201811/ReportService/RunSavedQuery.cs rename to examples/AdManager/CSharp/v201908/ReportService/RunSavedQuery.cs index 4fd6f757ad1..1143291d531 100755 --- a/examples/AdManager/CSharp/v201811/ReportService/RunSavedQuery.cs +++ b/examples/AdManager/CSharp/v201908/ReportService/RunSavedQuery.cs @@ -1,4 +1,4 @@ -// Copyright 2018, Google Inc. All Rights Reserved. +// 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. @@ -14,12 +14,12 @@ using Google.Api.Ads.Common.Util.Reports; using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.v201811; -using Google.Api.Ads.AdManager.Util.v201811; +using Google.Api.Ads.AdManager.v201908; +using Google.Api.Ads.AdManager.Util.v201908; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This code example runs a report from a saved query. diff --git a/examples/AdManager/CSharp/v201811/SuggestedAdUnitService/ApproveSuggestedAdUnits.cs b/examples/AdManager/CSharp/v201908/SuggestedAdUnitService/ApproveSuggestedAdUnits.cs similarity index 93% rename from examples/AdManager/CSharp/v201811/SuggestedAdUnitService/ApproveSuggestedAdUnits.cs rename to examples/AdManager/CSharp/v201908/SuggestedAdUnitService/ApproveSuggestedAdUnits.cs index 602508c519f..e83ba60542c 100755 --- a/examples/AdManager/CSharp/v201811/SuggestedAdUnitService/ApproveSuggestedAdUnits.cs +++ b/examples/AdManager/CSharp/v201908/SuggestedAdUnitService/ApproveSuggestedAdUnits.cs @@ -1,4 +1,4 @@ -// Copyright 2018, Google Inc. All Rights Reserved. +// 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. @@ -13,14 +13,14 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.v201908; using System; using System.Collections.Generic; -using Google.Api.Ads.AdManager.Util.v201811; +using Google.Api.Ads.AdManager.Util.v201908; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// 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.v201811.ApproveSuggestedAdUnits action = - new Google.Api.Ads.AdManager.v201811.ApproveSuggestedAdUnits(); + Google.Api.Ads.AdManager.v201908.ApproveSuggestedAdUnits action = + new Google.Api.Ads.AdManager.v201908.ApproveSuggestedAdUnits(); // Perform action. SuggestedAdUnitUpdateResult result = diff --git a/examples/AdManager/CSharp/v201811/SuggestedAdUnitService/GetAllSuggestedAdUnits.cs b/examples/AdManager/CSharp/v201908/SuggestedAdUnitService/GetAllSuggestedAdUnits.cs similarity index 94% rename from examples/AdManager/CSharp/v201811/SuggestedAdUnitService/GetAllSuggestedAdUnits.cs rename to examples/AdManager/CSharp/v201908/SuggestedAdUnitService/GetAllSuggestedAdUnits.cs index 04a75b51327..d532c0b375c 100755 --- a/examples/AdManager/CSharp/v201811/SuggestedAdUnitService/GetAllSuggestedAdUnits.cs +++ b/examples/AdManager/CSharp/v201908/SuggestedAdUnitService/GetAllSuggestedAdUnits.cs @@ -1,4 +1,4 @@ -// Copyright 2017, Google Inc. All Rights Reserved. +// 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. @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v201811; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.Util.v201908; +using Google.Api.Ads.AdManager.v201908; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This example gets all suggested ad units. diff --git a/examples/AdManager/CSharp/v201811/SuggestedAdUnitService/GetHighlyRequestedSuggestedAdUnits.cs b/examples/AdManager/CSharp/v201908/SuggestedAdUnitService/GetHighlyRequestedSuggestedAdUnits.cs similarity index 95% rename from examples/AdManager/CSharp/v201811/SuggestedAdUnitService/GetHighlyRequestedSuggestedAdUnits.cs rename to examples/AdManager/CSharp/v201908/SuggestedAdUnitService/GetHighlyRequestedSuggestedAdUnits.cs index c3e78f5d8d1..782e51486e2 100755 --- a/examples/AdManager/CSharp/v201811/SuggestedAdUnitService/GetHighlyRequestedSuggestedAdUnits.cs +++ b/examples/AdManager/CSharp/v201908/SuggestedAdUnitService/GetHighlyRequestedSuggestedAdUnits.cs @@ -1,4 +1,4 @@ -// Copyright 2017, Google Inc. All Rights Reserved. +// 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. @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v201811; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.Util.v201908; +using Google.Api.Ads.AdManager.v201908; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This example gets all highly requested suggested ad units. diff --git a/examples/AdManager/CSharp/v201811/ProductTemplateService/GetAllProductTemplates.cs b/examples/AdManager/CSharp/v201908/TargetingPresetService/GetAllTargetingPresets.cs similarity index 64% rename from examples/AdManager/CSharp/v201811/ProductTemplateService/GetAllProductTemplates.cs rename to examples/AdManager/CSharp/v201908/TargetingPresetService/GetAllTargetingPresets.cs index 859852f1f21..001f371d931 100755 --- a/examples/AdManager/CSharp/v201811/ProductTemplateService/GetAllProductTemplates.cs +++ b/examples/AdManager/CSharp/v201908/TargetingPresetService/GetAllTargetingPresets.cs @@ -1,4 +1,4 @@ -// Copyright 2017, Google Inc. All Rights Reserved. +// 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. @@ -13,24 +13,24 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v201811; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.Util.v201908; +using Google.Api.Ads.AdManager.v201908; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// - /// This example gets all product templates. + /// This example gets all targeting presets. /// - public class GetAllProductTemplates : SampleBase + public class GetAllTargetingPresets : SampleBase { /// /// Returns a description about the code example. /// public override string Description { - get { return "This example gets all product templates."; } + get { return "This example gets all targeting presets."; } } /// @@ -38,7 +38,7 @@ public override string Description /// public static void Main() { - GetAllProductTemplates codeExample = new GetAllProductTemplates(); + GetAllTargetingPresets codeExample = new GetAllTargetingPresets(); Console.WriteLine(codeExample.Description); try { @@ -46,7 +46,7 @@ public static void Main() } catch (Exception e) { - Console.WriteLine("Failed to get product templates. Exception says \"{0}\"", + Console.WriteLine("Failed to get targeting presets. Exception says \"{0}\"", e.Message); } } @@ -56,33 +56,33 @@ public static void Main() /// public void Run(AdManagerUser user) { - using (ProductTemplateService productTemplateService = - user.GetService()) + using (TargetingPresetService targetingPresetService = + user.GetService()) { - // Create a statement to select product templates. + // Create a statement to select targeting presets. int pageSize = StatementBuilder.SUGGESTED_PAGE_LIMIT; StatementBuilder statementBuilder = new StatementBuilder().OrderBy("id ASC").Limit(pageSize); - // Retrieve a small amount of product templates at a time, paging through until all - // product templates have been retrieved. + // Retrieve a small amount of targeting presets at a time, paging through until all + // targeting presets have been retrieved. int totalResultSetSize = 0; do { - ProductTemplatePage page = - productTemplateService.getProductTemplatesByStatement( + TargetingPresetPage page = + targetingPresetService.getTargetingPresetsByStatement( statementBuilder.ToStatement()); - // Print out some information for each product template. + // Print out some information for each targetingPreset. if (page.results != null) { totalResultSetSize = page.totalResultSetSize; int i = page.startIndex; - foreach (ProductTemplate productTemplate in page.results) + foreach (TargetingPreset targetingPreset in page.results) { Console.WriteLine( - "{0}) Product template with ID {1} and name \"{2}\" was found.", - i++, productTemplate.id, productTemplate.name); + "{0}) Targeting preset with ID {1} and name \"{2}\" was found.", i++, + targetingPreset.id, targetingPreset.name); } } diff --git a/examples/AdManager/CSharp/v201811/TeamService/CreateTeams.cs b/examples/AdManager/CSharp/v201908/TeamService/CreateTeams.cs similarity index 95% rename from examples/AdManager/CSharp/v201811/TeamService/CreateTeams.cs rename to examples/AdManager/CSharp/v201908/TeamService/CreateTeams.cs index ac84f6fdc2c..370c019e30c 100755 --- a/examples/AdManager/CSharp/v201811/TeamService/CreateTeams.cs +++ b/examples/AdManager/CSharp/v201908/TeamService/CreateTeams.cs @@ -1,4 +1,4 @@ -// Copyright 2018, Google Inc. All Rights Reserved. +// 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. @@ -13,11 +13,11 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.v201908; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This code example creates new teams. To determine which teams exist, run diff --git a/examples/AdManager/CSharp/v201811/TeamService/GetAllTeams.cs b/examples/AdManager/CSharp/v201908/TeamService/GetAllTeams.cs similarity index 94% rename from examples/AdManager/CSharp/v201811/TeamService/GetAllTeams.cs rename to examples/AdManager/CSharp/v201908/TeamService/GetAllTeams.cs index d2bfd02f9a4..7d8715f6647 100755 --- a/examples/AdManager/CSharp/v201811/TeamService/GetAllTeams.cs +++ b/examples/AdManager/CSharp/v201908/TeamService/GetAllTeams.cs @@ -1,4 +1,4 @@ -// Copyright 2017, Google Inc. All Rights Reserved. +// 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. @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v201811; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.Util.v201908; +using Google.Api.Ads.AdManager.v201908; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This example gets all teams. diff --git a/examples/AdManager/CSharp/v201811/TeamService/UpdateTeams.cs b/examples/AdManager/CSharp/v201908/TeamService/UpdateTeams.cs similarity index 94% rename from examples/AdManager/CSharp/v201811/TeamService/UpdateTeams.cs rename to examples/AdManager/CSharp/v201908/TeamService/UpdateTeams.cs index a105f0499c8..1a5b753204f 100755 --- a/examples/AdManager/CSharp/v201811/TeamService/UpdateTeams.cs +++ b/examples/AdManager/CSharp/v201908/TeamService/UpdateTeams.cs @@ -1,4 +1,4 @@ -// Copyright 2018, Google Inc. All Rights Reserved. +// 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. @@ -13,13 +13,13 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.v201908; using System; -using Google.Api.Ads.AdManager.Util.v201811; +using Google.Api.Ads.AdManager.Util.v201908; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This code example updates a team by adding an ad unit to it. To diff --git a/examples/AdManager/CSharp/v201811/UserService/CreateUsers.cs b/examples/AdManager/CSharp/v201908/UserService/CreateUsers.cs similarity index 96% rename from examples/AdManager/CSharp/v201811/UserService/CreateUsers.cs rename to examples/AdManager/CSharp/v201908/UserService/CreateUsers.cs index 8d1d98568c4..df91f1bb3f3 100755 --- a/examples/AdManager/CSharp/v201811/UserService/CreateUsers.cs +++ b/examples/AdManager/CSharp/v201908/UserService/CreateUsers.cs @@ -1,4 +1,4 @@ -// Copyright 2018, Google Inc. All Rights Reserved. +// 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. @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.v201908; using System; using System.Collections.Generic; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This code example creates new users. To determine which users diff --git a/examples/AdManager/CSharp/v201811/UserService/DeactivateUser.cs b/examples/AdManager/CSharp/v201908/UserService/DeactivateUser.cs similarity index 96% rename from examples/AdManager/CSharp/v201811/UserService/DeactivateUser.cs rename to examples/AdManager/CSharp/v201908/UserService/DeactivateUser.cs index 3fa175752c7..3ab4acd0c07 100755 --- a/examples/AdManager/CSharp/v201811/UserService/DeactivateUser.cs +++ b/examples/AdManager/CSharp/v201908/UserService/DeactivateUser.cs @@ -1,4 +1,4 @@ -// Copyright 2018, Google Inc. All Rights Reserved. +// 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. @@ -13,13 +13,13 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v201811; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.Util.v201908; +using Google.Api.Ads.AdManager.v201908; using System; using System.Collections.Generic; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This code example deactivates a user. Deactivated users can no longer make diff --git a/examples/AdManager/CSharp/v201811/UserService/GetAllRoles.cs b/examples/AdManager/CSharp/v201908/UserService/GetAllRoles.cs similarity index 91% rename from examples/AdManager/CSharp/v201811/UserService/GetAllRoles.cs rename to examples/AdManager/CSharp/v201908/UserService/GetAllRoles.cs index c0b5ab90453..9e42c8334c7 100755 --- a/examples/AdManager/CSharp/v201811/UserService/GetAllRoles.cs +++ b/examples/AdManager/CSharp/v201908/UserService/GetAllRoles.cs @@ -1,4 +1,4 @@ -// Copyright 2018, Google Inc. All Rights Reserved. +// 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. @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v201811; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.Util.v201908; +using Google.Api.Ads.AdManager.v201908; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This example gets all roles. diff --git a/examples/AdManager/CSharp/v201811/UserService/GetAllUsers.cs b/examples/AdManager/CSharp/v201908/UserService/GetAllUsers.cs similarity index 94% rename from examples/AdManager/CSharp/v201811/UserService/GetAllUsers.cs rename to examples/AdManager/CSharp/v201908/UserService/GetAllUsers.cs index e9e3ef1a3de..dccbbc5bcd1 100755 --- a/examples/AdManager/CSharp/v201811/UserService/GetAllUsers.cs +++ b/examples/AdManager/CSharp/v201908/UserService/GetAllUsers.cs @@ -1,4 +1,4 @@ -// Copyright 2017, Google Inc. All Rights Reserved. +// 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. @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v201811; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.Util.v201908; +using Google.Api.Ads.AdManager.v201908; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This example gets all users. diff --git a/examples/AdManager/CSharp/v201811/UserService/GetCurrentUser.cs b/examples/AdManager/CSharp/v201908/UserService/GetCurrentUser.cs similarity index 94% rename from examples/AdManager/CSharp/v201811/UserService/GetCurrentUser.cs rename to examples/AdManager/CSharp/v201908/UserService/GetCurrentUser.cs index eb73a06ca15..946bce4ebde 100755 --- a/examples/AdManager/CSharp/v201811/UserService/GetCurrentUser.cs +++ b/examples/AdManager/CSharp/v201908/UserService/GetCurrentUser.cs @@ -1,4 +1,4 @@ -// Copyright 2018, Google Inc. All Rights Reserved. +// 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. @@ -13,11 +13,11 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.v201908; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This code example gets current user. To create users, run CreateUsers.cs. diff --git a/examples/AdManager/CSharp/v201811/UserService/GetUserByEmailAddress.cs b/examples/AdManager/CSharp/v201908/UserService/GetUserByEmailAddress.cs similarity index 94% rename from examples/AdManager/CSharp/v201811/UserService/GetUserByEmailAddress.cs rename to examples/AdManager/CSharp/v201908/UserService/GetUserByEmailAddress.cs index 70c39debbdd..15508a614c8 100755 --- a/examples/AdManager/CSharp/v201811/UserService/GetUserByEmailAddress.cs +++ b/examples/AdManager/CSharp/v201908/UserService/GetUserByEmailAddress.cs @@ -1,4 +1,4 @@ -// Copyright 2017, Google Inc. All Rights Reserved. +// 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. @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v201811; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.Util.v201908; +using Google.Api.Ads.AdManager.v201908; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This example gets users by email. diff --git a/examples/AdManager/CSharp/v201811/UserService/UpdateUsers.cs b/examples/AdManager/CSharp/v201908/UserService/UpdateUsers.cs similarity index 94% rename from examples/AdManager/CSharp/v201811/UserService/UpdateUsers.cs rename to examples/AdManager/CSharp/v201908/UserService/UpdateUsers.cs index a429c6d7518..a69ec9f1f28 100755 --- a/examples/AdManager/CSharp/v201811/UserService/UpdateUsers.cs +++ b/examples/AdManager/CSharp/v201908/UserService/UpdateUsers.cs @@ -1,4 +1,4 @@ -// Copyright 2018, Google Inc. All Rights Reserved. +// 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. @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v201811; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.Util.v201908; +using Google.Api.Ads.AdManager.v201908; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This code example updates a user by adding "Sr." to the end of its diff --git a/examples/AdManager/CSharp/v201811/UserTeamAssociationService/CreateUserTeamAssociations.cs b/examples/AdManager/CSharp/v201908/UserTeamAssociationService/CreateUserTeamAssociations.cs similarity index 96% rename from examples/AdManager/CSharp/v201811/UserTeamAssociationService/CreateUserTeamAssociations.cs rename to examples/AdManager/CSharp/v201908/UserTeamAssociationService/CreateUserTeamAssociations.cs index c5de4e2b867..9e4810e8420 100755 --- a/examples/AdManager/CSharp/v201811/UserTeamAssociationService/CreateUserTeamAssociations.cs +++ b/examples/AdManager/CSharp/v201908/UserTeamAssociationService/CreateUserTeamAssociations.cs @@ -1,4 +1,4 @@ -// Copyright 2018, Google Inc. All Rights Reserved. +// 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. @@ -13,11 +13,11 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.v201908; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This code example adds a user to a team by creating an association diff --git a/examples/AdManager/CSharp/v201811/UserTeamAssociationService/DeleteUserTeamAssociations.cs b/examples/AdManager/CSharp/v201908/UserTeamAssociationService/DeleteUserTeamAssociations.cs similarity index 96% rename from examples/AdManager/CSharp/v201811/UserTeamAssociationService/DeleteUserTeamAssociations.cs rename to examples/AdManager/CSharp/v201908/UserTeamAssociationService/DeleteUserTeamAssociations.cs index 27b5aca8304..89ac6967c17 100755 --- a/examples/AdManager/CSharp/v201811/UserTeamAssociationService/DeleteUserTeamAssociations.cs +++ b/examples/AdManager/CSharp/v201908/UserTeamAssociationService/DeleteUserTeamAssociations.cs @@ -1,4 +1,4 @@ -// Copyright 2018, Google Inc. All Rights Reserved. +// 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. @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v201811; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.Util.v201908; +using Google.Api.Ads.AdManager.v201908; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This code example removes the user from all its teams. To determine which diff --git a/examples/AdManager/CSharp/v201811/UserTeamAssociationService/GetAllUserTeamAssociations.cs b/examples/AdManager/CSharp/v201908/UserTeamAssociationService/GetAllUserTeamAssociations.cs similarity index 94% rename from examples/AdManager/CSharp/v201811/UserTeamAssociationService/GetAllUserTeamAssociations.cs rename to examples/AdManager/CSharp/v201908/UserTeamAssociationService/GetAllUserTeamAssociations.cs index a43a21a53d0..414c056c560 100755 --- a/examples/AdManager/CSharp/v201811/UserTeamAssociationService/GetAllUserTeamAssociations.cs +++ b/examples/AdManager/CSharp/v201908/UserTeamAssociationService/GetAllUserTeamAssociations.cs @@ -1,4 +1,4 @@ -// Copyright 2017, Google Inc. All Rights Reserved. +// 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. @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v201811; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.Util.v201908; +using Google.Api.Ads.AdManager.v201908; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This example gets all user team associations. diff --git a/examples/AdManager/CSharp/v201811/UserTeamAssociationService/GetUserTeamAssociationsForUser.cs b/examples/AdManager/CSharp/v201908/UserTeamAssociationService/GetUserTeamAssociationsForUser.cs similarity index 95% rename from examples/AdManager/CSharp/v201811/UserTeamAssociationService/GetUserTeamAssociationsForUser.cs rename to examples/AdManager/CSharp/v201908/UserTeamAssociationService/GetUserTeamAssociationsForUser.cs index 3d6ed11d52f..d65237b9e32 100755 --- a/examples/AdManager/CSharp/v201811/UserTeamAssociationService/GetUserTeamAssociationsForUser.cs +++ b/examples/AdManager/CSharp/v201908/UserTeamAssociationService/GetUserTeamAssociationsForUser.cs @@ -1,4 +1,4 @@ -// Copyright 2017, Google Inc. All Rights Reserved. +// 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. @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v201811; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.Util.v201908; +using Google.Api.Ads.AdManager.v201908; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This example gets all user team associations (i.e. teams) for a given user. diff --git a/examples/AdManager/CSharp/v201811/UserTeamAssociationService/UpdateUserTeamAssociations.cs b/examples/AdManager/CSharp/v201908/UserTeamAssociationService/UpdateUserTeamAssociations.cs similarity index 96% rename from examples/AdManager/CSharp/v201811/UserTeamAssociationService/UpdateUserTeamAssociations.cs rename to examples/AdManager/CSharp/v201908/UserTeamAssociationService/UpdateUserTeamAssociations.cs index ac859a38a49..7e426ba68db 100755 --- a/examples/AdManager/CSharp/v201811/UserTeamAssociationService/UpdateUserTeamAssociations.cs +++ b/examples/AdManager/CSharp/v201908/UserTeamAssociationService/UpdateUserTeamAssociations.cs @@ -1,4 +1,4 @@ -// Copyright 2018, Google Inc. All Rights Reserved. +// 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. @@ -13,12 +13,12 @@ // limitations under the License. using Google.Api.Ads.AdManager.Lib; -using Google.Api.Ads.AdManager.Util.v201811; -using Google.Api.Ads.AdManager.v201811; +using Google.Api.Ads.AdManager.Util.v201908; +using Google.Api.Ads.AdManager.v201908; using System; -namespace Google.Api.Ads.AdManager.Examples.CSharp.v201811 +namespace Google.Api.Ads.AdManager.Examples.CSharp.v201908 { /// /// This code example updates user team associations by setting the diff --git a/examples/AdWords/CSharp/AdWords.Examples.CSharp.csproj b/examples/AdWords/CSharp/AdWords.Examples.CSharp.csproj index ef14863fbd5..0817e924ee4 100755 --- a/examples/AdWords/CSharp/AdWords.Examples.CSharp.csproj +++ b/examples/AdWords/CSharp/AdWords.Examples.CSharp.csproj @@ -5,7 +5,6 @@ Google.AdWords.Examples.CSharp Exe Google.Api.Ads.AdWords.Examples.CSharp.Program - true true $(ProjectDir)..\..\..\src\Common\AdsApi.snk pdbonly @@ -16,7 +15,7 @@ - + @@ -39,8 +38,4 @@ Designer - - - diff --git a/examples/AdWords/CSharp/OAuth/AdWords.Examples.CSharp.OAuth.csproj b/examples/AdWords/CSharp/OAuth/AdWords.Examples.CSharp.OAuth.csproj index 3e9562ce150..2e7a9e87bca 100755 --- a/examples/AdWords/CSharp/OAuth/AdWords.Examples.CSharp.OAuth.csproj +++ b/examples/AdWords/CSharp/OAuth/AdWords.Examples.CSharp.OAuth.csproj @@ -85,7 +85,7 @@ - + 14.0 diff --git a/examples/AdWords/Vb/AdWords.Examples.VB.vbproj b/examples/AdWords/Vb/AdWords.Examples.VB.vbproj index a78a87b87a6..be0f1745c9c 100755 --- a/examples/AdWords/Vb/AdWords.Examples.VB.vbproj +++ b/examples/AdWords/Vb/AdWords.Examples.VB.vbproj @@ -5,7 +5,6 @@ Google.AdWords.Examples.VB Exe Google.Api.Ads.AdWords.Examples.VB.Program - true true $(ProjectDir)..\..\..\src\Common\AdsApi.snk pdbonly @@ -16,7 +15,7 @@ - + @@ -34,8 +33,4 @@ Designer - - - diff --git a/src/AdManager/AdManager.csproj b/src/AdManager/AdManager.csproj index 3261f6c5c2c..372a61a9fda 100755 --- 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.7.1 + 24.8.0 This library provides you with functionality to access the Google's Ad Manager API. See https://github.com/googleads/googleads-dotnet-lib/blob/master/ChangeLog DFP Google @@ -22,7 +22,6 @@ netstandard2.0;net452 Google.AdManager Google.Api.Ads.AdManager - true true ..\Common\AdsApi.snk pdbonly @@ -47,12 +46,6 @@ - - - - - - True @@ -69,7 +62,4 @@ NET452 - - - diff --git a/src/AdManager/Util/v201808/DateTimeUtilities.cs b/src/AdManager/Util/v201908/DateTimeUtilities.cs similarity index 93% rename from src/AdManager/Util/v201808/DateTimeUtilities.cs rename to src/AdManager/Util/v201908/DateTimeUtilities.cs index 992eee71e15..07727a4c42d 100755 --- a/src/AdManager/Util/v201808/DateTimeUtilities.cs +++ b/src/AdManager/Util/v201908/DateTimeUtilities.cs @@ -1,4 +1,4 @@ -// Copyright 2018, Google Inc. All Rights Reserved. +// 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. @@ -13,7 +13,7 @@ // limitations under the License. using Google.Api.Ads.Common.Util; -using Google.Api.Ads.AdManager.v201808; +using Google.Api.Ads.AdManager.v201908; using System; using System.Collections.Generic; @@ -21,9 +21,9 @@ using NodaTime; -using AdManagerDateTime = Google.Api.Ads.AdManager.v201808.DateTime; +using AdManagerDateTime = Google.Api.Ads.AdManager.v201908.DateTime; -namespace Google.Api.Ads.AdManager.Util.v201808 +namespace Google.Api.Ads.AdManager.Util.v201908 { /// /// A utility class that allows you to build Datetime objects from strings. @@ -65,7 +65,7 @@ public static AdManagerDateTime FromDateTime(System.DateTime dateTime, string ti retval.hour = dateTime.Hour; retval.minute = dateTime.Minute; retval.second = dateTime.Second; - retval.timeZoneID = timeZoneId; + retval.timeZoneId = timeZoneId; return retval; } @@ -89,7 +89,7 @@ public static string ToString(AdManagerDateTime dateTime, string patternText, { LocalDateTime localDateTime = new LocalDateTime(dateTime.date.year, dateTime.date.month, dateTime.date.day, dateTime.hour, dateTime.minute, dateTime.second); - DateTimeZone timeZone = DateTimeZoneProviders.Tzdb[dateTime.timeZoneID]; + DateTimeZone timeZone = DateTimeZoneProviders.Tzdb[dateTime.timeZoneId]; return timeZone.AtLeniently(localDateTime).ToString(patternText, formatProvider); } } diff --git a/src/AdManager/Util/v201808/PqlUtilities.cs b/src/AdManager/Util/v201908/PqlUtilities.cs similarity index 95% rename from src/AdManager/Util/v201808/PqlUtilities.cs rename to src/AdManager/Util/v201908/PqlUtilities.cs index 9f8d28a7245..1629613141e 100755 --- a/src/AdManager/Util/v201808/PqlUtilities.cs +++ b/src/AdManager/Util/v201908/PqlUtilities.cs @@ -1,4 +1,4 @@ -// Copyright 2018, Google Inc. All Rights Reserved. +// 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. @@ -13,7 +13,7 @@ // limitations under the License. using Google.Api.Ads.Common.Util; -using Google.Api.Ads.AdManager.v201808; +using Google.Api.Ads.AdManager.v201908; using System; using System.Collections.Generic; @@ -21,7 +21,7 @@ using System.Text; using System.Reflection; -namespace Google.Api.Ads.AdManager.Util.v201808 +namespace Google.Api.Ads.AdManager.Util.v201908 { /// /// A utility class for handling PQL objects. @@ -271,19 +271,19 @@ private static string GetTextValue(Object value) return ""; } - if (value is Google.Api.Ads.AdManager.v201808.Date) + if (value is Google.Api.Ads.AdManager.v201908.Date) { - Google.Api.Ads.AdManager.v201808.Date date = - (Google.Api.Ads.AdManager.v201808.Date) value; + Google.Api.Ads.AdManager.v201908.Date date = + (Google.Api.Ads.AdManager.v201908.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.v201808.DateTime) + else if (value is Google.Api.Ads.AdManager.v201908.DateTime) { - Google.Api.Ads.AdManager.v201808.DateTime dateTime = - (Google.Api.Ads.AdManager.v201808.DateTime) value; + Google.Api.Ads.AdManager.v201908.DateTime dateTime = + (Google.Api.Ads.AdManager.v201908.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); + dateTime.minute, dateTime.second, dateTime.timeZoneId); } else if (value is List) { diff --git a/src/AdManager/Util/v201808/ReportUtilities.cs b/src/AdManager/Util/v201908/ReportUtilities.cs similarity index 96% rename from src/AdManager/Util/v201808/ReportUtilities.cs rename to src/AdManager/Util/v201908/ReportUtilities.cs index 7e1a73cfa9e..7a7148b6240 100755 --- a/src/AdManager/Util/v201808/ReportUtilities.cs +++ b/src/AdManager/Util/v201908/ReportUtilities.cs @@ -1,4 +1,4 @@ -// Copyright 2018, Google Inc. All Rights Reserved. +// 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. @@ -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.v201808; +using Google.Api.Ads.AdManager.v201908; using System.Web; using System.Net; using System.Text; using System.Threading; -namespace Google.Api.Ads.AdManager.Util.v201808 +namespace Google.Api.Ads.AdManager.Util.v201908 { /// /// Utility class for DFP API report downloads. diff --git a/src/AdManager/Util/v201808/StatementBuilder.cs b/src/AdManager/Util/v201908/StatementBuilder.cs similarity index 98% rename from src/AdManager/Util/v201808/StatementBuilder.cs rename to src/AdManager/Util/v201908/StatementBuilder.cs index de8f6311076..b676893e9fc 100755 --- a/src/AdManager/Util/v201808/StatementBuilder.cs +++ b/src/AdManager/Util/v201908/StatementBuilder.cs @@ -1,4 +1,4 @@ -// Copyright 2018, Google Inc. All Rights Reserved. +// 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. @@ -13,15 +13,15 @@ // limitations under the License. using Google.Api.Ads.Common.Util; -using Google.Api.Ads.AdManager.v201808; +using Google.Api.Ads.AdManager.v201908; using System; using System.Collections.Generic; using System.Text; -using DateTime = Google.Api.Ads.AdManager.v201808.DateTime; +using DateTime = Google.Api.Ads.AdManager.v201908.DateTime; -namespace Google.Api.Ads.AdManager.Util.v201808 +namespace Google.Api.Ads.AdManager.Util.v201908 { /// /// A utility class that allows for statements to be constructed in parts. diff --git a/src/AdManager/v201808/AdManagerApi.cs b/src/AdManager/v201908/AdManagerApi.cs similarity index 71% rename from src/AdManager/v201808/AdManagerApi.cs rename to src/AdManager/v201908/AdManagerApi.cs index c924313077e..3e02ef1d425 100755 --- a/src/AdManager/v201808/AdManagerApi.cs +++ b/src/AdManager/v201908/AdManagerApi.cs @@ -1,5 +1,5 @@ #pragma warning disable 1591 -namespace Google.Api.Ads.AdManager.v201808 +namespace Google.Api.Ads.AdManager.v201908 { using System.ComponentModel; using System; @@ -12,7 +12,7 @@ namespace Google.Api.Ads.AdManager.v201808 [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public partial class ApiException : ApplicationException { private ApiError[] errorsField; @@ -59,13 +59,9 @@ public ApiError[] errors { [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(RequestError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(PlacementError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ContentFilterError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(RequiredNumberError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ContentMetadataKeyHierarchyError))] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] [System.Xml.Serialization.XmlIncludeAttribute(typeof(TypeError))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(RequiredNumberError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(InvalidUrlError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(TemplateInstantiatedCreativeError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(SwiffyConversionError))] @@ -93,7 +89,6 @@ public ApiError[] errors { [System.Xml.Serialization.XmlIncludeAttribute(typeof(EntityChildrenLimitReachedError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(CustomTargetingError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(CustomFieldError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ExchangeRateError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(VideoPositionTargetingError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(UserDomainTargetingError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(TimeZoneError))] @@ -102,6 +97,7 @@ public ApiError[] errors { [System.Xml.Serialization.XmlIncludeAttribute(typeof(SetTopBoxLineItemError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(AudienceSegmentError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(ReservationDetailsError))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(RequestPlatformTargetingError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(RegExError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(ProgrammaticError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(OrderError))] @@ -120,7 +116,6 @@ public ApiError[] errors { [System.Xml.Serialization.XmlIncludeAttribute(typeof(DayPartTargetingError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(DateTimeRangeTargetingError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(CrossSellError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ContentMetadataTargetingError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(CompanyCreditStatusError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(ClickTrackingLineItemError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(AudienceExtensionError))] @@ -135,60 +130,48 @@ public ApiError[] errors { [System.Xml.Serialization.XmlIncludeAttribute(typeof(LineItemCreativeAssociationOperationError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(CreativePreviewError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(SamSessionError))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(LiveStreamEventSlateError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(LiveStreamEventDvrWindowError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(LiveStreamEventDateTimeError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(LiveStreamEventCdnSettingsError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(LiveStreamEventActionError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(MobileApplicationError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(MobileApplicationActionError))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(RequestError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(PrecisionError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(NetworkError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(InvalidEmailError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(AdExclusionRuleError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(PremiumRateError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ProgrammaticProductError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ProgrammaticEntitiesError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ProductError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ProductActionError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(PreferredDealError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(NonProgrammaticProductError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(BaseRateError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ProductTemplateError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ProductTemplateActionError))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ExchangeRateError))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(PlacementError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(WorkflowValidationError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(WorkflowActionError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(ProposalLineItemProgrammaticError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(ProposalLineItemError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(ProposalError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(ProposalActionError))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ProductError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(PackageError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(PackageActionError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(DealError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(BillingError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(AvailableBillingError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(ProposalLineItemActionError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(RateCardError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(RateCardActionError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ReconciliationError))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(PreferredDealError))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(AdExclusionRuleError))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ReportError))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(CurrencyCodeError))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(TokenError))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(NativeStyleError))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(AdjustmentError))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(MetadataMergeSpecError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(PoddingError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(AdRuleTargetingError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(AdRulePriorityError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(AdRuleFrequencyCapError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(AdRuleDateError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ReconciliationImportError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ReportError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(CurrencyCodeError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(TokenError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(WorkflowRequestError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ProductPackageRateCardAssociationError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ProductPackageItemError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ProductPackageActionError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(ContactError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ProductPackageItemActionError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(NativeStyleError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(DaiAuthenticationKeyActionError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(BaseRateActionError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(CdnConfigurationError))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ContentFilterError))] public abstract partial class ApiError { private string fieldPathField; @@ -256,7 +239,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/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public partial class FieldPathElement { private string fieldField; @@ -312,7 +295,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/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public partial class ApplicationException { private string messageField; @@ -338,7 +321,7 @@ public string message { [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public partial class ActivityGroup { private int idField; @@ -510,7 +493,7 @@ public bool statusSpecified { /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ActivityGroup.Status", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ActivityGroup.Status", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public enum ActivityGroupStatus { ACTIVE = 0, INACTIVE = 1, @@ -523,7 +506,7 @@ public enum ActivityGroupStatus { [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public partial class UniqueError : ApiError { } @@ -534,7 +517,7 @@ public partial class UniqueError : ApiError { [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public partial class StringLengthError : ApiError { private StringLengthErrorReason reasonField; @@ -568,7 +551,7 @@ public bool reasonSpecified { [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "StringLengthError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "StringLengthError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public enum StringLengthErrorReason { TOO_LONG = 0, TOO_SHORT = 1, @@ -585,7 +568,7 @@ public enum StringLengthErrorReason { [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public partial class StringFormatError : ApiError { private StringFormatErrorReason reasonField; @@ -621,7 +604,7 @@ public bool reasonSpecified { /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "StringFormatError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "StringFormatError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public enum StringFormatErrorReason { UNKNOWN = 0, /// The input string value contains disallowed characters. @@ -639,7 +622,7 @@ public enum StringFormatErrorReason { [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public partial class StatementError : ApiError { private StatementErrorReason reasonField; @@ -675,7 +658,7 @@ public bool reasonSpecified { [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "StatementError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "StatementError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public enum StatementErrorReason { /// A bind variable has not been bound to a value. /// @@ -693,7 +676,7 @@ public enum StatementErrorReason { [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public partial class ServerError : ApiError { private ServerErrorReason reasonField; @@ -729,7 +712,7 @@ public bool reasonSpecified { /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ServerError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ServerError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public enum ServerErrorReason { /// Indicates that an unexpected error occured. /// @@ -751,7 +734,7 @@ public enum ServerErrorReason { [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public partial class RequiredError : ApiError { private RequiredErrorReason reasonField; @@ -789,7 +772,7 @@ public bool reasonSpecified { /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "RequiredError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "RequiredError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public enum RequiredErrorReason { /// Missing required field. /// @@ -803,7 +786,7 @@ public enum RequiredErrorReason { [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public partial class RequiredCollectionError : ApiError { private RequiredCollectionErrorReason reasonField; @@ -837,7 +820,7 @@ public bool reasonSpecified { [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "RequiredCollectionError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "RequiredCollectionError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public enum RequiredCollectionErrorReason { /// A required collection is missing. /// @@ -861,7 +844,7 @@ public enum RequiredCollectionErrorReason { [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public partial class RangeError : ApiError { private RangeErrorReason reasonField; @@ -895,7 +878,7 @@ public bool reasonSpecified { [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "RangeError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "RangeError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public enum RangeErrorReason { TOO_HIGH = 0, TOO_LOW = 1, @@ -913,7 +896,7 @@ public enum RangeErrorReason { [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public partial class QuotaError : ApiError { private QuotaErrorReason reasonField; @@ -947,7 +930,7 @@ public bool reasonSpecified { [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "QuotaError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "QuotaError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] 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 @@ -984,7 +967,7 @@ public enum QuotaErrorReason { [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public partial class PublisherQueryLanguageSyntaxError : ApiError { private PublisherQueryLanguageSyntaxErrorReason reasonField; @@ -1022,7 +1005,7 @@ public bool reasonSpecified { /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "PublisherQueryLanguageSyntaxError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "PublisherQueryLanguageSyntaxError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public enum PublisherQueryLanguageSyntaxErrorReason { /// Indicates that there was a PQL syntax error. /// @@ -1041,7 +1024,7 @@ public enum PublisherQueryLanguageSyntaxErrorReason { [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public partial class PublisherQueryLanguageContextError : ApiError { private PublisherQueryLanguageContextErrorReason reasonField; @@ -1079,7 +1062,7 @@ public bool reasonSpecified { /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "PublisherQueryLanguageContextError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "PublisherQueryLanguageContextError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public enum PublisherQueryLanguageContextErrorReason { /// Indicates that there was an error executing the PQL. /// @@ -1097,7 +1080,7 @@ public enum PublisherQueryLanguageContextErrorReason { [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public partial class PermissionError : ApiError { private PermissionErrorReason reasonField; @@ -1133,7 +1116,7 @@ public bool reasonSpecified { /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "PermissionError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "PermissionError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public enum PermissionErrorReason { /// User does not have the required permission for the request. /// @@ -1151,7 +1134,7 @@ public enum PermissionErrorReason { [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public partial class ParseError : ApiError { private ParseErrorReason reasonField; @@ -1189,7 +1172,7 @@ public bool reasonSpecified { /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ParseError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ParseError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public enum ParseErrorReason { /// Indicates an error in parsing an attribute. /// @@ -1207,7 +1190,7 @@ public enum ParseErrorReason { [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public partial class NotNullError : ApiError { private NotNullErrorReason reasonField; @@ -1245,7 +1228,7 @@ public bool reasonSpecified { /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "NotNullError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "NotNullError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public enum NotNullErrorReason { /// Assuming that a method will not have more than 3 arguments, if it does, return /// NULL @@ -1268,7 +1251,7 @@ public enum NotNullErrorReason { [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public partial class InternalApiError : ApiError { private InternalApiErrorReason reasonField; @@ -1306,7 +1289,7 @@ public bool reasonSpecified { /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "InternalApiError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "InternalApiError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public enum InternalApiErrorReason { /// API encountered an unexpected internal error. /// @@ -1335,7 +1318,7 @@ public enum InternalApiErrorReason { [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public partial class FeatureError : ApiError { private FeatureErrorReason reasonField; @@ -1369,7 +1352,7 @@ public bool reasonSpecified { [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "FeatureError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "FeatureError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public enum FeatureErrorReason { /// A feature is being used that is not enabled on the current network. /// @@ -1387,7 +1370,7 @@ public enum FeatureErrorReason { [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public partial class CommonError : ApiError { private CommonErrorReason reasonField; @@ -1423,7 +1406,7 @@ public bool reasonSpecified { /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CommonError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CommonError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public enum CommonErrorReason { /// Indicates that an attempt was made to retrieve an entity that does not exist. /// @@ -1457,7 +1440,7 @@ public enum CommonErrorReason { [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public partial class CollectionSizeError : ApiError { private CollectionSizeErrorReason reasonField; @@ -1491,7 +1474,7 @@ public bool reasonSpecified { [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CollectionSizeError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CollectionSizeError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public enum CollectionSizeErrorReason { TOO_LARGE = 0, /// The value returned if the actual value is not exposed by the requested API @@ -1507,7 +1490,7 @@ public enum CollectionSizeErrorReason { [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public partial class AuthenticationError : ApiError { private AuthenticationErrorReason reasonField; @@ -1541,7 +1524,7 @@ public bool reasonSpecified { [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AuthenticationError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AuthenticationError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] 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 @@ -1609,7 +1592,7 @@ public enum AuthenticationErrorReason { [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public partial class ApiVersionError : ApiError { private ApiVersionErrorReason reasonField; @@ -1643,7 +1626,7 @@ public bool reasonSpecified { [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ApiVersionError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ApiVersionError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public enum ApiVersionErrorReason { /// Indicates that the operation is not allowed in the version the request was made /// in. @@ -1662,7 +1645,7 @@ public enum ApiVersionErrorReason { [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public partial class ActivityError : ApiError { private ActivityErrorReason reasonField; @@ -1700,7 +1683,7 @@ public bool reasonSpecified { /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ActivityError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ActivityError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public enum ActivityErrorReason { /// The 'activities' feature is required but not enabled. /// @@ -1733,7 +1716,7 @@ public enum ActivityErrorReason { [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public partial class Statement { private string queryField; @@ -1791,7 +1774,7 @@ public String_ValueMapEntry[] values { [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public partial class String_ValueMapEntry { private string keyField; @@ -1832,7 +1815,7 @@ public Value value { [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] [System.Xml.Serialization.XmlIncludeAttribute(typeof(TargetingValue))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(ChangeHistoryValue))] public abstract partial class Value { @@ -1845,7 +1828,7 @@ public abstract partial class Value { [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public partial class TextValue : Value { private string valueField; @@ -1869,7 +1852,7 @@ public string value { [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public partial class SetValue : Value { private Value[] valuesField; @@ -1894,7 +1877,7 @@ public Value[] values { [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public partial class NumberValue : Value { private string valueField; @@ -1918,7 +1901,7 @@ public string value { [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public partial class DateValue : Value { private Date valueField; @@ -1942,7 +1925,7 @@ public Date value { [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public partial class Date { private int yearField; @@ -2042,7 +2025,7 @@ public bool daySpecified { [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public partial class DateTimeValue : Value { private DateTime valueField; @@ -2066,7 +2049,7 @@ public DateTime value { [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public partial class DateTime { private Date dateField; @@ -2082,7 +2065,7 @@ public partial class DateTime { private bool secondFieldSpecified; - private string timeZoneIDField; + private string timeZoneIdField; [System.Xml.Serialization.XmlElementAttribute(Order = 0)] public Date date { @@ -2167,12 +2150,12 @@ public bool secondSpecified { } [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public string timeZoneID { + public string timeZoneId { get { - return this.timeZoneIDField; + return this.timeZoneIdField; } set { - this.timeZoneIDField = value; + this.timeZoneIdField = value; } } } @@ -2184,7 +2167,7 @@ public string timeZoneID { [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public partial class BooleanValue : Value { private bool valueField; @@ -2228,7 +2211,7 @@ public bool valueSpecified { [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] [System.Xml.Serialization.XmlIncludeAttribute(typeof(TargetingValue))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(ChangeHistoryValue))] public abstract partial class ObjectValue : Value { @@ -2241,7 +2224,7 @@ public abstract partial class ObjectValue : Value { [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public partial class ActivityGroupPage { private int totalResultSetSizeField; @@ -2320,7 +2303,7 @@ public ActivityGroup[] results { [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public interface ActivityGroupServiceInterfaceChannel : Google.Api.Ads.AdManager.v201808.ActivityGroupServiceInterface, System.ServiceModel.IClientChannel + public interface ActivityGroupServiceInterfaceChannel : Google.Api.Ads.AdManager.v201908.ActivityGroupServiceInterface, System.ServiceModel.IClientChannel { } namespace Wrappers.ActivityGroupService @@ -2328,11 +2311,11 @@ 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/v201808", IsWrapped = true)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "createActivityGroups", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201908", IsWrapped = true)] public partial class createActivityGroupsRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] [System.Xml.Serialization.XmlElementAttribute("activityGroups")] - public Google.Api.Ads.AdManager.v201808.ActivityGroup[] activityGroups; + public Google.Api.Ads.AdManager.v201908.ActivityGroup[] activityGroups; /// Creates a new instance of the class. @@ -2341,7 +2324,7 @@ public createActivityGroupsRequest() { /// Creates a new instance of the class. - public createActivityGroupsRequest(Google.Api.Ads.AdManager.v201808.ActivityGroup[] activityGroups) { + public createActivityGroupsRequest(Google.Api.Ads.AdManager.v201908.ActivityGroup[] activityGroups) { this.activityGroups = activityGroups; } } @@ -2350,11 +2333,11 @@ public createActivityGroupsRequest(Google.Api.Ads.AdManager.v201808.ActivityGrou [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/v201808", IsWrapped = true)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "createActivityGroupsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201908", IsWrapped = true)] public partial class createActivityGroupsResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v201808.ActivityGroup[] rval; + public Google.Api.Ads.AdManager.v201908.ActivityGroup[] rval; /// Creates a new instance of the class. @@ -2363,7 +2346,7 @@ public createActivityGroupsResponse() { /// Creates a new instance of the class. - public createActivityGroupsResponse(Google.Api.Ads.AdManager.v201808.ActivityGroup[] rval) { + public createActivityGroupsResponse(Google.Api.Ads.AdManager.v201908.ActivityGroup[] rval) { this.rval = rval; } } @@ -2372,11 +2355,11 @@ public createActivityGroupsResponse(Google.Api.Ads.AdManager.v201808.ActivityGro [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/v201808", IsWrapped = true)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "updateActivityGroups", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201908", IsWrapped = true)] public partial class updateActivityGroupsRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] [System.Xml.Serialization.XmlElementAttribute("activityGroups")] - public Google.Api.Ads.AdManager.v201808.ActivityGroup[] activityGroups; + public Google.Api.Ads.AdManager.v201908.ActivityGroup[] activityGroups; /// Creates a new instance of the class. @@ -2385,7 +2368,7 @@ public updateActivityGroupsRequest() { /// Creates a new instance of the class. - public updateActivityGroupsRequest(Google.Api.Ads.AdManager.v201808.ActivityGroup[] activityGroups) { + public updateActivityGroupsRequest(Google.Api.Ads.AdManager.v201908.ActivityGroup[] activityGroups) { this.activityGroups = activityGroups; } } @@ -2394,11 +2377,11 @@ public updateActivityGroupsRequest(Google.Api.Ads.AdManager.v201808.ActivityGrou [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/v201808", IsWrapped = true)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "updateActivityGroupsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201908", IsWrapped = true)] public partial class updateActivityGroupsResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v201808.ActivityGroup[] rval; + public Google.Api.Ads.AdManager.v201908.ActivityGroup[] rval; /// Creates a new instance of the class. @@ -2407,18 +2390,18 @@ public updateActivityGroupsResponse() { /// Creates a new instance of the class. - public updateActivityGroupsResponse(Google.Api.Ads.AdManager.v201808.ActivityGroup[] rval) { + public updateActivityGroupsResponse(Google.Api.Ads.AdManager.v201908.ActivityGroup[] 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/v201808", ConfigurationName = "Google.Api.Ads.AdManager.v201808.ActivityGroupServiceInterface")] + [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", ConfigurationName = "Google.Api.Ads.AdManager.v201908.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.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201908.ApiException), Action = "", Name = "ApiExceptionFault")] [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] @@ -2428,19 +2411,19 @@ public interface ActivityGroupServiceInterface System.Threading.Tasks.Task createActivityGroupsAsync(Wrappers.ActivityGroupService.createActivityGroupsRequest request); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201908.ApiException), Action = "", Name = "ApiExceptionFault")] [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v201808.ActivityGroupPage getActivityGroupsByStatement(Google.Api.Ads.AdManager.v201808.Statement filterStatement); + Google.Api.Ads.AdManager.v201908.ActivityGroupPage getActivityGroupsByStatement(Google.Api.Ads.AdManager.v201908.Statement filterStatement); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getActivityGroupsByStatementAsync(Google.Api.Ads.AdManager.v201808.Statement filterStatement); + System.Threading.Tasks.Task getActivityGroupsByStatementAsync(Google.Api.Ads.AdManager.v201908.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.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201908.ApiException), Action = "", Name = "ApiExceptionFault")] [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] @@ -2491,29 +2474,29 @@ public ActivityGroupService(System.ServiceModel.Channels.Binding binding, System } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.ActivityGroupService.createActivityGroupsResponse Google.Api.Ads.AdManager.v201808.ActivityGroupServiceInterface.createActivityGroups(Wrappers.ActivityGroupService.createActivityGroupsRequest request) { + Wrappers.ActivityGroupService.createActivityGroupsResponse Google.Api.Ads.AdManager.v201908.ActivityGroupServiceInterface.createActivityGroups(Wrappers.ActivityGroupService.createActivityGroupsRequest request) { return base.Channel.createActivityGroups(request); } /// Creates a new ActivityGroup objects. /// the activity groups to be created. /// the created activity groups with their IDs filled in. - public virtual Google.Api.Ads.AdManager.v201808.ActivityGroup[] createActivityGroups(Google.Api.Ads.AdManager.v201808.ActivityGroup[] activityGroups) { + public virtual Google.Api.Ads.AdManager.v201908.ActivityGroup[] createActivityGroups(Google.Api.Ads.AdManager.v201908.ActivityGroup[] activityGroups) { Wrappers.ActivityGroupService.createActivityGroupsRequest inValue = new Wrappers.ActivityGroupService.createActivityGroupsRequest(); inValue.activityGroups = activityGroups; - Wrappers.ActivityGroupService.createActivityGroupsResponse retVal = ((Google.Api.Ads.AdManager.v201808.ActivityGroupServiceInterface)(this)).createActivityGroups(inValue); + Wrappers.ActivityGroupService.createActivityGroupsResponse retVal = ((Google.Api.Ads.AdManager.v201908.ActivityGroupServiceInterface)(this)).createActivityGroups(inValue); return retVal.rval; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201808.ActivityGroupServiceInterface.createActivityGroupsAsync(Wrappers.ActivityGroupService.createActivityGroupsRequest request) { + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201908.ActivityGroupServiceInterface.createActivityGroupsAsync(Wrappers.ActivityGroupService.createActivityGroupsRequest request) { return base.Channel.createActivityGroupsAsync(request); } - public virtual System.Threading.Tasks.Task createActivityGroupsAsync(Google.Api.Ads.AdManager.v201808.ActivityGroup[] activityGroups) { + public virtual System.Threading.Tasks.Task createActivityGroupsAsync(Google.Api.Ads.AdManager.v201908.ActivityGroup[] activityGroups) { Wrappers.ActivityGroupService.createActivityGroupsRequest inValue = new Wrappers.ActivityGroupService.createActivityGroupsRequest(); inValue.activityGroups = activityGroups; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201808.ActivityGroupServiceInterface)(this)).createActivityGroupsAsync(inValue)).Result.rval); + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201908.ActivityGroupServiceInterface)(this)).createActivityGroupsAsync(inValue)).Result.rval); } /// Gets an ActivityGroupPage of a statement used to filter a set of activity /// groups /// the activity groups that match the given filter - public virtual Google.Api.Ads.AdManager.v201808.ActivityGroupPage getActivityGroupsByStatement(Google.Api.Ads.AdManager.v201808.Statement filterStatement) { + public virtual Google.Api.Ads.AdManager.v201908.ActivityGroupPage getActivityGroupsByStatement(Google.Api.Ads.AdManager.v201908.Statement filterStatement) { return base.Channel.getActivityGroupsByStatement(filterStatement); } - public virtual System.Threading.Tasks.Task getActivityGroupsByStatementAsync(Google.Api.Ads.AdManager.v201808.Statement filterStatement) { + public virtual System.Threading.Tasks.Task getActivityGroupsByStatementAsync(Google.Api.Ads.AdManager.v201908.Statement filterStatement) { return base.Channel.getActivityGroupsByStatementAsync(filterStatement); } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.ActivityGroupService.updateActivityGroupsResponse Google.Api.Ads.AdManager.v201808.ActivityGroupServiceInterface.updateActivityGroups(Wrappers.ActivityGroupService.updateActivityGroupsRequest request) { + Wrappers.ActivityGroupService.updateActivityGroupsResponse Google.Api.Ads.AdManager.v201908.ActivityGroupServiceInterface.updateActivityGroups(Wrappers.ActivityGroupService.updateActivityGroupsRequest request) { return base.Channel.updateActivityGroups(request); } /// Updates the specified ActivityGroup objects. /// the activity groups to update. /// the updated activity groups. - public virtual Google.Api.Ads.AdManager.v201808.ActivityGroup[] updateActivityGroups(Google.Api.Ads.AdManager.v201808.ActivityGroup[] activityGroups) { + public virtual Google.Api.Ads.AdManager.v201908.ActivityGroup[] updateActivityGroups(Google.Api.Ads.AdManager.v201908.ActivityGroup[] activityGroups) { Wrappers.ActivityGroupService.updateActivityGroupsRequest inValue = new Wrappers.ActivityGroupService.updateActivityGroupsRequest(); inValue.activityGroups = activityGroups; - Wrappers.ActivityGroupService.updateActivityGroupsResponse retVal = ((Google.Api.Ads.AdManager.v201808.ActivityGroupServiceInterface)(this)).updateActivityGroups(inValue); + Wrappers.ActivityGroupService.updateActivityGroupsResponse retVal = ((Google.Api.Ads.AdManager.v201908.ActivityGroupServiceInterface)(this)).updateActivityGroups(inValue); return retVal.rval; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201808.ActivityGroupServiceInterface.updateActivityGroupsAsync(Wrappers.ActivityGroupService.updateActivityGroupsRequest request) { + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201908.ActivityGroupServiceInterface.updateActivityGroupsAsync(Wrappers.ActivityGroupService.updateActivityGroupsRequest request) { return base.Channel.updateActivityGroupsAsync(request); } - public virtual System.Threading.Tasks.Task updateActivityGroupsAsync(Google.Api.Ads.AdManager.v201808.ActivityGroup[] activityGroups) { + public virtual System.Threading.Tasks.Task updateActivityGroupsAsync(Google.Api.Ads.AdManager.v201908.ActivityGroup[] activityGroups) { Wrappers.ActivityGroupService.updateActivityGroupsRequest inValue = new Wrappers.ActivityGroupService.updateActivityGroupsRequest(); inValue.activityGroups = activityGroups; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201808.ActivityGroupServiceInterface)(this)).updateActivityGroupsAsync(inValue)).Result.rval); + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201908.ActivityGroupServiceInterface)(this)).updateActivityGroupsAsync(inValue)).Result.rval); } } - namespace Wrappers.ContentBundleService + namespace Wrappers.ContentService { - [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/v201808", IsWrapped = true)] - public partial class createContentBundlesRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("contentBundles")] - public Google.Api.Ads.AdManager.v201808.ContentBundle[] contentBundles; + } + /// Contains information about Content from the CMS it was + /// ingested from. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class CmsContent { + private long idField; - /// Creates a new instance of the class. - public createContentBundlesRequest() { - } + private bool idFieldSpecified; - /// Creates a new instance of the class. - public createContentBundlesRequest(Google.Api.Ads.AdManager.v201808.ContentBundle[] contentBundles) { - this.contentBundles = contentBundles; + private string displayNameField; + + 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 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; + } + } - [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/v201808", IsWrapped = true)] - public partial class createContentBundlesResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v201808.ContentBundle[] rval; - - /// Creates a new instance of the class. - public createContentBundlesResponse() { + /// The display name of the CMS this content is in. This attribute is read-only. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public string displayName { + get { + return this.displayNameField; } + set { + this.displayNameField = value; + } + } - /// Creates a new instance of the class. - public createContentBundlesResponse(Google.Api.Ads.AdManager.v201808.ContentBundle[] rval) { - this.rval = rval; + /// 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 { + get { + return this.cmsContentIdField; + } + set { + this.cmsContentIdField = 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/v201808", IsWrapped = true)] - public partial class updateContentBundlesRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("contentBundles")] - public Google.Api.Ads.AdManager.v201808.ContentBundle[] contentBundles; + /// Represents an error associated with a DAI content's status. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class DaiIngestError { + private DaiIngestErrorReason reasonField; - /// Creates a new instance of the class. - public updateContentBundlesRequest() { - } + private bool reasonFieldSpecified; - /// Creates a new instance of the class. - public updateContentBundlesRequest(Google.Api.Ads.AdManager.v201808.ContentBundle[] contentBundles) { - this.contentBundles = contentBundles; + private string triggerField; + + /// The error associated with the content. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public DaiIngestErrorReason reason { + get { + return this.reasonField; + } + 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 = "updateContentBundlesResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201808", IsWrapped = true)] - public partial class updateContentBundlesResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v201808.ContentBundle[] rval; - - /// Creates a new instance of the class. - public updateContentBundlesResponse() { + /// 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 updateContentBundlesResponse(Google.Api.Ads.AdManager.v201808.ContentBundle[] rval) { - this.rval = rval; + /// The field, if any, that triggered the error. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public string trigger { + get { + return this.triggerField; + } + set { + this.triggerField = 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. + + + /// Describes what caused the DAI content to fail during the ingestion proccess. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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, + /// 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". + /// + 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, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 34, + } + + + /// 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.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ContentBundle { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class Content { private long idField; private bool idFieldSpecified; private string nameField; - private ContentBundleStatus statusField; + private ContentStatus statusField; private bool statusFieldSpecified; - /// ID that uniquely identifies the ContentBundle. This attribute is - /// read-only and is assigned by Google when a content bundle is created. + private ContentStatusDefinedBy statusDefinedByField; + + private bool statusDefinedByFieldSpecified; + + private DaiIngestStatus hlsIngestStatusField; + + private bool hlsIngestStatusFieldSpecified; + + private DaiIngestError[] hlsIngestErrorsField; + + private DateTime lastHlsIngestDateTimeField; + + private DaiIngestStatus dashIngestStatusField; + + private bool dashIngestStatusFieldSpecified; + + private DaiIngestError[] dashIngestErrorsField; + + private DateTime lastDashIngestDateTimeField; + + private DateTime importDateTimeField; + + private DateTime lastModifiedDateTimeField; + + private long[] userDefinedCustomTargetingValueIdsField; + + private long[] mappingRuleDefinedCustomTargetingValueIdsField; + + private CmsContent[] cmsSourcesField; + + /// 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 id { @@ -2704,8 +2948,7 @@ public bool idSpecified { } } - /// The name of the ContentBundle. This attribute is required and has a - /// maximum length of 255 characters. + /// The name of the Content. This attribute is read-only. /// [System.Xml.Serialization.XmlElementAttribute(Order = 1)] public string name { @@ -2717,12 +2960,10 @@ public string name { } } - /// The ContentBundleStatus of the - /// ContentBundle. This attribute is read-only and defaults to ContentBundleStatus#INACTIVE. + /// The status of this Content. This attribute is read-only. /// [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public ContentBundleStatus status { + public ContentStatus status { get { return this.statusField; } @@ -2744,258 +2985,288 @@ public bool statusSpecified { this.statusFieldSpecified = value; } } - } - - /// Status for ContentBundle objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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. + /// 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. /// - ARCHIVED = 2, - } - - - /// Encapsulates the generic errors thrown when there's an error with user request. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class RequestError : ApiError { - private RequestErrorReason reasonField; - - private bool reasonFieldSpecified; - - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public RequestErrorReason reason { + [System.Xml.Serialization.XmlElementAttribute(Order = 3)] + public ContentStatusDefinedBy statusDefinedBy { get { - return this.reasonField; + return this.statusDefinedByField; } set { - this.reasonField = value; - this.reasonSpecified = true; + this.statusDefinedByField = value; + this.statusDefinedBySpecified = 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 statusDefinedBySpecified { get { - return this.reasonFieldSpecified; + return this.statusDefinedByFieldSpecified; } set { - this.reasonFieldSpecified = value; + this.statusDefinedByFieldSpecified = value; } } - } - - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "RequestError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum RequestErrorReason { - /// Error reason is unknown. - /// - UNKNOWN = 0, - /// Invalid input. - /// - INVALID_INPUT = 1, - /// The api version in the request has been discontinued. Please update to the new - /// AdWords API version. + /// 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. /// - UNSUPPORTED_VERSION = 2, - } + [System.Xml.Serialization.XmlElementAttribute(Order = 4)] + public DaiIngestStatus hlsIngestStatus { + get { + return this.hlsIngestStatusField; + } + set { + this.hlsIngestStatusField = value; + this.hlsIngestStatusSpecified = true; + } + } + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool hlsIngestStatusSpecified { + get { + return this.hlsIngestStatusFieldSpecified; + } + set { + this.hlsIngestStatusFieldSpecified = value; + } + } - /// Class defining all validation errors for a placement. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class PlacementError : ApiError { - private PlacementErrorReason reasonField; + /// 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.hlsIngestErrorsField; + } + set { + this.hlsIngestErrorsField = value; + } + } - private bool reasonFieldSpecified; + /// 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 PlacementErrorReason reason { + /// 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.reasonField; + return this.dashIngestStatusField; } set { - this.reasonField = value; - this.reasonSpecified = true; + this.dashIngestStatusField = value; + this.dashIngestStatusSpecified = 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 dashIngestStatusSpecified { get { - return this.reasonFieldSpecified; + return this.dashIngestStatusFieldSpecified; } set { - this.reasonFieldSpecified = value; + this.dashIngestStatusFieldSpecified = value; } } - } - - /// Possible reasons for the error. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "PlacementError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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. + /// 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. /// - PLACEMENTS_CANNOT_INCLUDE_BOTH_LOCAL_AND_SHARED_INVENTORY = 3, - /// The value returned if the actual value is not exposed by the requested API - /// version. + [System.Xml.Serialization.XmlElementAttribute("dashIngestErrors", Order = 8)] + public DaiIngestError[] dashIngestErrors { + get { + return this.dashIngestErrorsField; + } + set { + this.dashIngestErrorsField = value; + } + } + + /// 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. /// - UNKNOWN = 4, - } + [System.Xml.Serialization.XmlElementAttribute(Order = 9)] + public DateTime lastDashIngestDateTime { + get { + return this.lastDashIngestDateTimeField; + } + set { + this.lastDashIngestDateTimeField = value; + } + } + /// 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.importDateTimeField; + } + set { + this.importDateTimeField = value; + } + } - /// Errors associated with the incorrect creation of a Condition. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ContentFilterError : ApiError { - private ContentFilterErrorReason reasonField; + /// The date and time at which this content was last modified. This attribute is + /// read-only. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 11)] + public DateTime lastModifiedDateTime { + get { + return this.lastModifiedDateTimeField; + } + set { + this.lastModifiedDateTimeField = value; + } + } - private bool reasonFieldSpecified; + /// A collection of custom targeting value IDs manually assigned to this content by + /// the user. This attribute is optional. + /// + [System.Xml.Serialization.XmlElementAttribute("userDefinedCustomTargetingValueIds", Order = 12)] + public long[] userDefinedCustomTargetingValueIds { + get { + return this.userDefinedCustomTargetingValueIdsField; + } + set { + this.userDefinedCustomTargetingValueIdsField = value; + } + } - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public ContentFilterErrorReason reason { + /// A collection of custom targeting value IDs automatically targeted to this + /// content via metadata mapping rules. This attribute is read-only. + /// + [System.Xml.Serialization.XmlElementAttribute("mappingRuleDefinedCustomTargetingValueIds", Order = 13)] + public long[] mappingRuleDefinedCustomTargetingValueIds { get { - return this.reasonField; + return this.mappingRuleDefinedCustomTargetingValueIdsField; } set { - this.reasonField = value; - this.reasonSpecified = true; + this.mappingRuleDefinedCustomTargetingValueIdsField = value; } } - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { + /// Information about the content from the CMS it was ingested from. This attribute + /// is read-only. + /// + [System.Xml.Serialization.XmlElementAttribute("cmsSources", Order = 14)] + public CmsContent[] cmsSources { get { - return this.reasonFieldSpecified; + return this.cmsSourcesField; } set { - this.reasonFieldSpecified = value; + this.cmsSourcesField = value; } } } - /// The reasons for the ContentFilterError. + /// Describes the status of a Content object. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ContentFilterError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum ContentFilterErrorReason { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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 = 0, - WRONG_NUMBER_OF_ARGUMENTS = 1, - ANY_FILTER_NOT_SUPPORTED = 2, + UNKNOWN = 3, } - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", ConfigurationName = "Google.Api.Ads.AdManager.v201808.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.v201808.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.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v201808.ContentBundlePage getContentBundlesByStatement(Google.Api.Ads.AdManager.v201808.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getContentBundlesByStatementAsync(Google.Api.Ads.AdManager.v201808.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v201808.UpdateResult performContentBundleAction(Google.Api.Ads.AdManager.v201808.ContentBundleAction contentBundleAction, Google.Api.Ads.AdManager.v201808.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task performContentBundleActionAsync(Google.Api.Ads.AdManager.v201808.ContentBundleAction contentBundleAction, Google.Api.Ads.AdManager.v201808.Statement filterStatement); + /// Describes who defined the effective status of the Content. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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, + } - // 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.v201808.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.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task updateContentBundlesAsync(Wrappers.ContentBundleService.updateContentBundlesRequest request); + /// 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.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum DaiIngestStatus { + /// The content was successfully ingested for DAI. + /// + SUCCESS = 0, + /// There was a non-fatal issue during the DAI ingestion proccess. + /// + WARNING = 1, + /// There was a non-fatal issue during the DAI ingestion proccess 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 ContentBundle objects. + /// Captures a page of Content objects. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ContentBundlePage { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class ContentPage { private int totalResultSetSizeField; private bool totalResultSetSizeFieldSpecified; @@ -3004,7 +3275,7 @@ public partial class ContentBundlePage { private bool startIndexFieldSpecified; - private ContentBundle[] resultsField; + private Content[] resultsField; /// The size of the total result set to which this page belongs. /// @@ -3058,10 +3329,10 @@ public bool startIndexSpecified { } } - /// The collection of content bundles contained within this page. + /// The collection of content contained within this page. /// [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] - public ContentBundle[] results { + public Content[] results { get { return this.resultsField; } @@ -3072,266 +3343,288 @@ public ContentBundle[] results { } - /// Represents the actions that can be performed on ContentBundle objects. + /// An error for a field which is an invalid type. /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ExcludeContentFromContentBundle))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(DeactivateContentBundles))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ActivateContentBundles))] [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public abstract partial class ContentBundleAction { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class TypeError : ApiError { } - /// The action used for explicitly excluding specific content from a ContentBundle object. + /// A list of all errors to be used in conjunction with required number validators. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ExcludeContentFromContentBundle : ContentBundleAction { - private Statement contentStatementField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class RequiredNumberError : ApiError { + private RequiredNumberErrorReason reasonField; + + private bool reasonFieldSpecified; - /// The Publisher Query Language statement specifying which Content to exclude from the ContentBundle. The statement is expressed in terms of - /// Content fields such as name and status.

All fields supported by - /// ContentService#getContentByStatement - /// are supported on this statement.

- ///
[System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public Statement contentStatement { + public RequiredNumberErrorReason reason { get { - return this.contentStatementField; + return this.reasonField; } set { - this.contentStatementField = value; + this.reasonField = value; + this.reasonSpecified = true; } } - } - - /// The action used for deactivating ContentBundle - /// objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class DeactivateContentBundles : ContentBundleAction { + /// 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 activating ContentBundle - /// objects. + /// Describes reasons for a number to be invalid. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ActivateContentBundles : ContentBundleAction { + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "RequiredNumberError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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, } - /// Represents the result of performing an action on objects. + /// Lists all errors associated with URLs. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class UpdateResult { - private int numChangesField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class InvalidUrlError : ApiError { + private InvalidUrlErrorReason reasonField; - private bool numChangesFieldSpecified; + private bool reasonFieldSpecified; - /// The number of objects that were changed as a result of performing the action. - /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public int numChanges { + public InvalidUrlErrorReason reason { get { - return this.numChangesField; + return this.reasonField; } set { - this.numChangesField = value; - this.numChangesSpecified = 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 numChangesSpecified { + public bool reasonSpecified { get { - return this.numChangesFieldSpecified; + return this.reasonFieldSpecified; } set { - this.numChangesFieldSpecified = value; + this.reasonFieldSpecified = value; } } } - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public interface ContentBundleServiceInterfaceChannel : Google.Api.Ads.AdManager.v201808.ContentBundleServiceInterface, System.ServiceModel.IClientChannel - { + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "InvalidUrlError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum InvalidUrlErrorReason { + /// The URL contains invalid characters. + /// + 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. + /// + INVALID_FORMAT = 1, + /// URL contains insecure scheme. + /// + INSECURE_SCHEME = 2, + /// The URL does not contain a scheme. + /// + NO_SCHEME = 3, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 4, } - /// 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) { - } + [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", ConfigurationName = "Google.Api.Ads.AdManager.v201908.ContentServiceInterface")] + public interface ContentServiceInterface + { + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201908.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v201908.ContentPage getContentByStatement(Google.Api.Ads.AdManager.v201908.Statement statement); - /// Creates a new instance of the - /// class. - public ContentBundleService(string endpointConfigurationName, string remoteAddress) - : base(endpointConfigurationName, remoteAddress) { - } + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task getContentByStatementAsync(Google.Api.Ads.AdManager.v201908.Statement statement); - /// Creates a new instance of the - /// class. - public ContentBundleService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) - : base(endpointConfigurationName, remoteAddress) { - } + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201908.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v201908.ContentPage getContentByStatementAndCustomTargetingValue(Google.Api.Ads.AdManager.v201908.Statement filterStatement, long customTargetingValueId); - /// Creates a new instance of the - /// class. - public ContentBundleService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) - : base(binding, remoteAddress) { - } + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task getContentByStatementAndCustomTargetingValueAsync(Google.Api.Ads.AdManager.v201908.Statement filterStatement, long customTargetingValueId); + } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.ContentBundleService.createContentBundlesResponse Google.Api.Ads.AdManager.v201808.ContentBundleServiceInterface.createContentBundles(Wrappers.ContentBundleService.createContentBundlesRequest request) { - return base.Channel.createContentBundles(request); - } - /// Creates new ContentBundle objects. - /// the content bundles to create - /// the created content bundles with their IDs filled in - public virtual Google.Api.Ads.AdManager.v201808.ContentBundle[] createContentBundles(Google.Api.Ads.AdManager.v201808.ContentBundle[] contentBundles) { - Wrappers.ContentBundleService.createContentBundlesRequest inValue = new Wrappers.ContentBundleService.createContentBundlesRequest(); - inValue.contentBundles = contentBundles; - Wrappers.ContentBundleService.createContentBundlesResponse retVal = ((Google.Api.Ads.AdManager.v201808.ContentBundleServiceInterface)(this)).createContentBundles(inValue); - return retVal.rval; - } + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + public interface ContentServiceInterfaceChannel : Google.Api.Ads.AdManager.v201908.ContentServiceInterface, System.ServiceModel.IClientChannel + { + } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201808.ContentBundleServiceInterface.createContentBundlesAsync(Wrappers.ContentBundleService.createContentBundlesRequest request) { - return base.Channel.createContentBundlesAsync(request); - } - public virtual System.Threading.Tasks.Task createContentBundlesAsync(Google.Api.Ads.AdManager.v201808.ContentBundle[] contentBundles) { - Wrappers.ContentBundleService.createContentBundlesRequest inValue = new Wrappers.ContentBundleService.createContentBundlesRequest(); - inValue.contentBundles = contentBundles; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201808.ContentBundleServiceInterface)(this)).createContentBundlesAsync(inValue)).Result.rval); + /// Service for retrieving Content.

Content + /// entities can be targeted in video LineItems.

You + /// can query for content that belongs to a particular category or has assigned + /// metadata. Categories and metadata for are stored in DFP as CustomCriteria.

For example, to find all + /// Content that is "genre=comedy", you would:

+ ///
+ [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 ContentService() { } - /// 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
- ///
a Publisher Query Language statement used to - /// filter a set of content bundles - /// the content bundles that match the given filter - public virtual Google.Api.Ads.AdManager.v201808.ContentBundlePage getContentBundlesByStatement(Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.getContentBundlesByStatement(filterStatement); + /// Creates a new instance of the class. + /// + public ContentService(string endpointConfigurationName) + : base(endpointConfigurationName) { } - public virtual System.Threading.Tasks.Task getContentBundlesByStatementAsync(Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.getContentBundlesByStatementAsync(filterStatement); + /// Creates a new instance of the class. + /// + public ContentService(string endpointConfigurationName, string remoteAddress) + : base(endpointConfigurationName, remoteAddress) { } - /// Performs actions on ContentBundle objects that match - /// the given Statement#query. - /// the action to perform - /// a Publisher Query Language statement used to - /// filter a set of content bundles - /// the result of the action performed - public virtual Google.Api.Ads.AdManager.v201808.UpdateResult performContentBundleAction(Google.Api.Ads.AdManager.v201808.ContentBundleAction contentBundleAction, Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.performContentBundleAction(contentBundleAction, filterStatement); + /// Creates a new instance of the class. + /// + public ContentService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) + : base(endpointConfigurationName, remoteAddress) { } - public virtual System.Threading.Tasks.Task performContentBundleActionAsync(Google.Api.Ads.AdManager.v201808.ContentBundleAction contentBundleAction, Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.performContentBundleActionAsync(contentBundleAction, filterStatement); + /// 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.ContentBundleService.updateContentBundlesResponse Google.Api.Ads.AdManager.v201808.ContentBundleServiceInterface.updateContentBundles(Wrappers.ContentBundleService.updateContentBundlesRequest request) { - return base.Channel.updateContentBundles(request); + /// 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
+ ///
a Publisher Query Language statement used to filter a + /// set of content + /// the content that matches the given filter + public virtual Google.Api.Ads.AdManager.v201908.ContentPage getContentByStatement(Google.Api.Ads.AdManager.v201908.Statement statement) { + return base.Channel.getContentByStatement(statement); } - /// Updates the specified ContentBundle objects. - /// the content bundles to update - /// the updated content bundles - public virtual Google.Api.Ads.AdManager.v201808.ContentBundle[] updateContentBundles(Google.Api.Ads.AdManager.v201808.ContentBundle[] contentBundles) { - Wrappers.ContentBundleService.updateContentBundlesRequest inValue = new Wrappers.ContentBundleService.updateContentBundlesRequest(); - inValue.contentBundles = contentBundles; - Wrappers.ContentBundleService.updateContentBundlesResponse retVal = ((Google.Api.Ads.AdManager.v201808.ContentBundleServiceInterface)(this)).updateContentBundles(inValue); - return retVal.rval; + public virtual System.Threading.Tasks.Task getContentByStatementAsync(Google.Api.Ads.AdManager.v201908.Statement statement) { + return base.Channel.getContentByStatementAsync(statement); } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201808.ContentBundleServiceInterface.updateContentBundlesAsync(Wrappers.ContentBundleService.updateContentBundlesRequest request) { - return base.Channel.updateContentBundlesAsync(request); + /// Gets a ContentPage of Content + /// objects that satisfy the given Statement#query. + /// Additionally, filters on the given value ID and key ID that the value belongs + /// to. The following fields are supported for filtering: + /// + /// + /// + /// + ///
PQL Property Object Property
id Content#id
status Content#status
name Content#name
lastModifiedDateTime Content#lastModifiedDateTime>
+ ///
a Publisher Query Language statement used to + /// filter a set of content + /// the id of the value to match + /// the content that matches the given filter + public virtual Google.Api.Ads.AdManager.v201908.ContentPage getContentByStatementAndCustomTargetingValue(Google.Api.Ads.AdManager.v201908.Statement filterStatement, long customTargetingValueId) { + return base.Channel.getContentByStatementAndCustomTargetingValue(filterStatement, customTargetingValueId); } - public virtual System.Threading.Tasks.Task updateContentBundlesAsync(Google.Api.Ads.AdManager.v201808.ContentBundle[] contentBundles) { - Wrappers.ContentBundleService.updateContentBundlesRequest inValue = new Wrappers.ContentBundleService.updateContentBundlesRequest(); - inValue.contentBundles = contentBundles; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201808.ContentBundleServiceInterface)(this)).updateContentBundlesAsync(inValue)).Result.rval); + public virtual System.Threading.Tasks.Task getContentByStatementAndCustomTargetingValueAsync(Google.Api.Ads.AdManager.v201908.Statement filterStatement, long customTargetingValueId) { + return base.Channel.getContentByStatementAndCustomTargetingValueAsync(filterStatement, customTargetingValueId); } } - namespace Wrappers.ContentMetadataKeyHierarchyService + 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 = "createContentMetadataKeyHierarchies", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201808", IsWrapped = true)] - public partial class createContentMetadataKeyHierarchiesRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("contentMetadataKeyHierarchies")] - public Google.Api.Ads.AdManager.v201808.ContentMetadataKeyHierarchy[] contentMetadataKeyHierarchies; + [System.ServiceModel.MessageContractAttribute(WrapperName = "createCreatives", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201908", IsWrapped = true)] + public partial class createCreativesRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("creatives")] + public Google.Api.Ads.AdManager.v201908.Creative[] creatives; - /// Creates a new instance of the class. - public createContentMetadataKeyHierarchiesRequest() { + /// Creates a new instance of the + /// class. + public createCreativesRequest() { } - /// Creates a new instance of the class. - public createContentMetadataKeyHierarchiesRequest(Google.Api.Ads.AdManager.v201808.ContentMetadataKeyHierarchy[] contentMetadataKeyHierarchies) { - this.contentMetadataKeyHierarchies = contentMetadataKeyHierarchies; + /// Creates a new instance of the + /// class. + public createCreativesRequest(Google.Api.Ads.AdManager.v201908.Creative[] creatives) { + this.creatives = creatives; } } @@ -3339,20 +3632,20 @@ public createContentMetadataKeyHierarchiesRequest(Google.Api.Ads.AdManager.v2018 [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "createContentMetadataKeyHierarchiesResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201808", IsWrapped = true)] - public partial class createContentMetadataKeyHierarchiesResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "createCreativesResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201908", IsWrapped = true)] + public partial class createCreativesResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v201808.ContentMetadataKeyHierarchy[] rval; + public Google.Api.Ads.AdManager.v201908.Creative[] rval; - /// Creates a new instance of the class. - public createContentMetadataKeyHierarchiesResponse() { + /// Creates a new instance of the + /// class. + public createCreativesResponse() { } - /// Creates a new instance of the class. - public createContentMetadataKeyHierarchiesResponse(Google.Api.Ads.AdManager.v201808.ContentMetadataKeyHierarchy[] rval) { + /// Creates a new instance of the + /// class. + public createCreativesResponse(Google.Api.Ads.AdManager.v201908.Creative[] rval) { this.rval = rval; } } @@ -3361,21 +3654,21 @@ public createContentMetadataKeyHierarchiesResponse(Google.Api.Ads.AdManager.v201 [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "updateContentMetadataKeyHierarchies", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201808", IsWrapped = true)] - public partial class updateContentMetadataKeyHierarchiesRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("contentMetadataKeyHierarchies")] - public Google.Api.Ads.AdManager.v201808.ContentMetadataKeyHierarchy[] contentMetadataKeyHierarchies; + [System.ServiceModel.MessageContractAttribute(WrapperName = "updateCreatives", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201908", IsWrapped = true)] + public partial class updateCreativesRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("creatives")] + public Google.Api.Ads.AdManager.v201908.Creative[] creatives; - /// Creates a new instance of the class. - public updateContentMetadataKeyHierarchiesRequest() { + /// Creates a new instance of the + /// class. + public updateCreativesRequest() { } - /// Creates a new instance of the class. - public updateContentMetadataKeyHierarchiesRequest(Google.Api.Ads.AdManager.v201808.ContentMetadataKeyHierarchy[] contentMetadataKeyHierarchies) { - this.contentMetadataKeyHierarchies = contentMetadataKeyHierarchies; + /// Creates a new instance of the + /// class. + public updateCreativesRequest(Google.Api.Ads.AdManager.v201908.Creative[] creatives) { + this.creatives = creatives; } } @@ -3383,3741 +3676,3234 @@ public updateContentMetadataKeyHierarchiesRequest(Google.Api.Ads.AdManager.v2018 [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "updateContentMetadataKeyHierarchiesResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201808", IsWrapped = true)] - public partial class updateContentMetadataKeyHierarchiesResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "updateCreativesResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201908", IsWrapped = true)] + public partial class updateCreativesResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v201808.ContentMetadataKeyHierarchy[] rval; + public Google.Api.Ads.AdManager.v201908.Creative[] rval; - /// Creates a new instance of the class. - public updateContentMetadataKeyHierarchiesResponse() { + /// Creates a new instance of the + /// class. + public updateCreativesResponse() { } - /// Creates a new instance of the class. - public updateContentMetadataKeyHierarchiesResponse(Google.Api.Ads.AdManager.v201808.ContentMetadataKeyHierarchy[] rval) { + /// Creates a new instance of the + /// class. + public updateCreativesResponse(Google.Api.Ads.AdManager.v201908.Creative[] rval) { this.rval = rval; } } } - /// A ContentMetadataKeyHierarchyLevel represents one level in a ContentMetadataKeyHierarchy. The level consists of a CustomTargetingKey and an integer that represents - /// the level's position in the hierarchy. This is deprecated and will be removed as - /// of V201811. + /// 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.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ContentMetadataKeyHierarchyLevel { - private long customTargetingKeyIdField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public abstract partial class BaseCreativeTemplateVariableValue { + private string uniqueNameField; - private bool customTargetingKeyIdFieldSpecified; + /// A uniqueName of the CreativeTemplateVariable. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public string uniqueName { + get { + return this.uniqueNameField; + } + set { + this.uniqueNameField = value; + } + } + } - private int hierarchyLevelField; - private bool hierarchyLevelFieldSpecified; + /// Stores values of CreativeTemplateVariable + /// of VariableType#URL. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class UrlCreativeTemplateVariableValue : BaseCreativeTemplateVariableValue { + private string valueField; - /// The ID of the CustomTargetingKey associated - /// with this level of the hierarchy. This attribute is readonly. + /// The url value of CreativeTemplateVariable /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public long customTargetingKeyId { + public string value { get { - return this.customTargetingKeyIdField; + return this.valueField; } set { - this.customTargetingKeyIdField = value; - this.customTargetingKeyIdSpecified = true; + this.valueField = value; } } + } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool customTargetingKeyIdSpecified { + + /// Stores values of CreativeTemplateVariable + /// of VariableType#STRING and VariableType#LIST. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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.customTargetingKeyIdFieldSpecified; + return this.valueField; } set { - this.customTargetingKeyIdFieldSpecified = value; + this.valueField = value; } } + } + + + /// Stores values of CreativeTemplateVariable + /// of VariableType#LONG. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class LongCreativeTemplateVariableValue : BaseCreativeTemplateVariableValue { + private long valueField; + + private bool valueFieldSpecified; - /// This content metadata key's position in the hierarchy. This attribute is - /// readonly and can range from 1 to N, where N is the number of the levels in the - /// hierarchy. + /// The long value of CreativeTemplateVariable /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public int hierarchyLevel { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public long value { get { - return this.hierarchyLevelField; + return this.valueField; } set { - this.hierarchyLevelField = value; - this.hierarchyLevelSpecified = true; + this.valueField = value; + this.valueSpecified = 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 hierarchyLevelSpecified { + public bool valueSpecified { get { - return this.hierarchyLevelFieldSpecified; + return this.valueFieldSpecified; } set { - this.hierarchyLevelFieldSpecified = value; + this.valueFieldSpecified = value; } } } - /// A ContentMetadataKeyHierarchy defines a hierarchical relationship - /// between content metadata keys. This is deprecated and will be removed as of - /// V201811. + /// Stores values of CreativeTemplateVariable + /// of VariableType#ASSET. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ContentMetadataKeyHierarchy { - private int idField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class AssetCreativeTemplateVariableValue : BaseCreativeTemplateVariableValue { + private CreativeAsset assetField; - private bool idFieldSpecified; + /// 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; + } + } + } - private string nameField; - private ContentMetadataKeyHierarchyLevel[] hierarchyLevelsField; + /// A CreativeAsset is an asset that can be used in creatives. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class CreativeAsset { + private long assetIdField; + + private bool assetIdFieldSpecified; + + private byte[] assetByteArrayField; - private ContentMetadataKeyHierarchyStatus statusField; + private string fileNameField; - private bool statusFieldSpecified; + private long fileSizeField; + + private bool fileSizeFieldSpecified; + + private string assetUrlField; + + private Size sizeField; + + private ClickTag[] clickTagsField; + + private ImageDensity imageDensityField; + + private bool imageDensityFieldSpecified; - /// The unique ID of the ContentMetadataKeyHierarchy. This value is - /// readonly and is assigned by Google. + /// The ID of the asset. This attribute is generated by Google upon creation. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public int 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 unique name of the ContentMetadataKeyHierarchy. This attribute - /// is readonly and has a maximum length of 255 characters. + /// 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 name { + [System.Xml.Serialization.XmlElementAttribute(DataType = "base64Binary", Order = 1)] + public byte[] assetByteArray { get { - return this.nameField; + return this.assetByteArrayField; } set { - this.nameField = value; + this.assetByteArrayField = value; } } - /// The levels of the ContentMetadataKeyHierarchy. This attribute is - /// readonly and the hierarchy levels must form a continuous set of 1, 2, ..., N - /// where N is the number of levels in the hierarchy. + /// 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("hierarchyLevels", Order = 2)] - public ContentMetadataKeyHierarchyLevel[] hierarchyLevels { + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public string fileName { get { - return this.hierarchyLevelsField; + return this.fileNameField; } set { - this.hierarchyLevelsField = value; + this.fileNameField = value; } } - /// The ContentMetadataKeyHierarchyStatus - /// of the hierarchy. This attribute is read-only and defaults to ContentMetadataKeyHierarchyStatus#ACTIVE. + /// The file size of the asset in bytes. This attribute is read-only. /// [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public ContentMetadataKeyHierarchyStatus 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; } } - } - - /// Represents the status of a ContentMetadataKeyHierarchy. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum ContentMetadataKeyHierarchyStatus { - /// The hierarchy is active and user-visable. - /// - ACTIVE = 0, - /// The hierarchy is deleted and not user-visable. - /// - DELETED = 1, - /// The value returned if the actual value is not exposed by the requested API - /// version. + /// A URL where the asset can be previewed at. This field is read-only and set by + /// Google. /// - UNKNOWN = 2, - } - - - /// A list of all errors to be used in conjunction with required number validators. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class RequiredNumberError : ApiError { - private RequiredNumberErrorReason reasonField; - - private bool reasonFieldSpecified; - - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public RequiredNumberErrorReason reason { + [System.Xml.Serialization.XmlElementAttribute(Order = 4)] + public string assetUrl { get { - return this.reasonField; + return this.assetUrlField; } set { - this.reasonField = value; - this.reasonSpecified = true; + this.assetUrlField = value; } } - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { + /// 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 Size size { get { - return this.reasonFieldSpecified; + return this.sizeField; } set { - this.reasonFieldSpecified = value; + this.sizeField = value; } } - } - - /// Describes reasons for a number to be invalid. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "RequiredNumberError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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. + /// The click tags of the asset. This field is read-only. /// - UNKNOWN = 5, - } - - - /// Lists all errors associated with content hierarchies. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ContentMetadataKeyHierarchyError : ApiError { - private ContentMetadataKeyHierarchyErrorReason reasonField; - - private bool reasonFieldSpecified; + [System.Xml.Serialization.XmlElementAttribute("clickTags", Order = 6)] + public ClickTag[] clickTags { + get { + return this.clickTagsField; + } + set { + this.clickTagsField = value; + } + } - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public ContentMetadataKeyHierarchyErrorReason reason { + /// 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.reasonField; + return this.imageDensityField; } set { - this.reasonField = value; - this.reasonSpecified = true; + this.imageDensityField = value; + this.imageDensitySpecified = 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 imageDensitySpecified { get { - return this.reasonFieldSpecified; + return this.imageDensityFieldSpecified; } set { - this.reasonFieldSpecified = value; + this.imageDensityFieldSpecified = value; } } } - /// The reasons for the ContentMetadataKeyHierarchyError. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ContentMetadataKeyHierarchyError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum ContentMetadataKeyHierarchyErrorReason { - /// One or more levels of the hierarchy are missing. For example, if the levels are - /// {1, 2, 2} or {1, 3, 4}, this error will be thrown. - /// - LEVEL_MISSING = 0, - /// DSM networks can only have one hierarchy per network and that hierarchy can only - /// have one level. - /// - INVALID_DSM_HIERARCHY = 1, - /// Cannot load or save the network browse by key when the content metadata key - /// hierarchy feature is enabled. - /// - CANNOT_USE_BROWSE_BY_KEY_WITH_HIERARCHY_FEATURE_ENABLED = 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/v201808", ConfigurationName = "Google.Api.Ads.AdManager.v201808.ContentMetadataKeyHierarchyServiceInterface")] - public interface ContentMetadataKeyHierarchyServiceInterface - { - // 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.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Wrappers.ContentMetadataKeyHierarchyService.createContentMetadataKeyHierarchiesResponse createContentMetadataKeyHierarchies(Wrappers.ContentMetadataKeyHierarchyService.createContentMetadataKeyHierarchiesRequest request); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task createContentMetadataKeyHierarchiesAsync(Wrappers.ContentMetadataKeyHierarchyService.createContentMetadataKeyHierarchiesRequest request); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v201808.ContentMetadataKeyHierarchyPage getContentMetadataKeyHierarchiesByStatement(Google.Api.Ads.AdManager.v201808.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getContentMetadataKeyHierarchiesByStatementAsync(Google.Api.Ads.AdManager.v201808.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v201808.UpdateResult performContentMetadataKeyHierarchyAction(Google.Api.Ads.AdManager.v201808.ContentMetadataKeyHierarchyAction contentMetadataKeyHierarchyAction, Google.Api.Ads.AdManager.v201808.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task performContentMetadataKeyHierarchyActionAsync(Google.Api.Ads.AdManager.v201808.ContentMetadataKeyHierarchyAction contentMetadataKeyHierarchyAction, Google.Api.Ads.AdManager.v201808.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.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Wrappers.ContentMetadataKeyHierarchyService.updateContentMetadataKeyHierarchiesResponse updateContentMetadataKeyHierarchies(Wrappers.ContentMetadataKeyHierarchyService.updateContentMetadataKeyHierarchiesRequest request); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task updateContentMetadataKeyHierarchiesAsync(Wrappers.ContentMetadataKeyHierarchyService.updateContentMetadataKeyHierarchiesRequest request); - } - - - /// Captures a page of ContentMetadataKeyHierarchy objects. This - /// is deprecated and will be removed as of V201811. + /// 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.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ContentMetadataKeyHierarchyPage { - private int totalResultSetSizeField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class Size { + private int widthField; - private bool totalResultSetSizeFieldSpecified; + private bool widthFieldSpecified; - private int startIndexField; + private int heightField; - private bool startIndexFieldSpecified; + private bool heightFieldSpecified; - private ContentMetadataKeyHierarchy[] resultsField; + private bool isAspectRatioField; - /// The size of the total result set to which this page belongs. + private bool isAspectRatioFieldSpecified; + + /// The width of the AdUnit, LineItem or + /// Creative. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public int totalResultSetSize { + public int width { get { - return this.totalResultSetSizeField; + return this.widthField; } set { - this.totalResultSetSizeField = value; - this.totalResultSetSizeSpecified = true; + this.widthField = value; + this.widthSpecified = 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 widthSpecified { get { - return this.totalResultSetSizeFieldSpecified; + return this.widthFieldSpecified; } set { - this.totalResultSetSizeFieldSpecified = value; + this.widthFieldSpecified = value; } } - /// The absolute index in the total result set on which this page begins. + /// The height of the AdUnit, LineItem + /// or Creative. /// [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public int startIndex { + public int height { get { - return this.startIndexField; + return this.heightField; } set { - this.startIndexField = value; - this.startIndexSpecified = true; + this.heightField = value; + this.heightSpecified = 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 heightSpecified { get { - return this.startIndexFieldSpecified; + return this.heightFieldSpecified; } set { - this.startIndexFieldSpecified = value; + this.heightFieldSpecified = value; } } - /// The collection of content metadata key hierarchies contained within this page. + /// True if this size represents an aspect ratio, false otherwise. /// - [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] - public ContentMetadataKeyHierarchy[] results { + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public bool isAspectRatio { get { - return this.resultsField; + return this.isAspectRatioField; } set { - this.resultsField = value; + this.isAspectRatioField = value; + this.isAspectRatioSpecified = true; + } + } + + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool isAspectRatioSpecified { + get { + return this.isAspectRatioFieldSpecified; + } + set { + this.isAspectRatioFieldSpecified = value; } } } - /// Represents the actions that can be performed on ContentMetadataKeyHierarchy 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.Xml.Serialization.XmlIncludeAttribute(typeof(DeleteContentMetadataKeyHierarchies))] [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public abstract partial class ContentMetadataKeyHierarchyAction { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class ClickTag { + private string nameField; + + private string urlField; + + /// Name of the click tag, follows the regex "clickTag\\d*" + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public string name { + get { + return this.nameField; + } + set { + this.nameField = value; + } + } + + /// URL of the click tag. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public string url { + get { + return this.urlField; + } + set { + this.urlField = value; + } + } } - /// The action used for deleting ContentMetadataKeyHierarchy objects. + /// Image densities. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class DeleteContentMetadataKeyHierarchies : ContentMetadataKeyHierarchyAction { - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public interface ContentMetadataKeyHierarchyServiceInterfaceChannel : Google.Api.Ads.AdManager.v201808.ContentMetadataKeyHierarchyServiceInterface, System.ServiceModel.IClientChannel - { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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, } - /// Provides methods for creating, updating, and retrieving ContentMetadataKeyHierarchy objects. This - /// is deprecated and will be removed as of V201811. + /// 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.6.1055.0")] + [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public partial class ContentMetadataKeyHierarchyService : AdManagerSoapClient, IContentMetadataKeyHierarchyService { - /// Creates a new instance of the class. - public ContentMetadataKeyHierarchyService() { - } + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class CustomCreativeAsset { + private string macroNameField; - /// Creates a new instance of the class. - public ContentMetadataKeyHierarchyService(string endpointConfigurationName) - : base(endpointConfigurationName) { - } + private CreativeAsset assetField; - /// Creates a new instance of the class. - public ContentMetadataKeyHierarchyService(string endpointConfigurationName, string remoteAddress) - : base(endpointConfigurationName, remoteAddress) { + /// 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 string macroName { + get { + return this.macroNameField; + } + set { + this.macroNameField = value; + } } - /// Creates a new instance of the class. - public ContentMetadataKeyHierarchyService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) - : base(endpointConfigurationName, remoteAddress) { + /// 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.assetField; + } + set { + this.assetField = value; + } } + } - /// Creates a new instance of the class. - public ContentMetadataKeyHierarchyService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) - : base(binding, remoteAddress) { - } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.ContentMetadataKeyHierarchyService.createContentMetadataKeyHierarchiesResponse Google.Api.Ads.AdManager.v201808.ContentMetadataKeyHierarchyServiceInterface.createContentMetadataKeyHierarchies(Wrappers.ContentMetadataKeyHierarchyService.createContentMetadataKeyHierarchiesRequest request) { - return base.Channel.createContentMetadataKeyHierarchies(request); - } + /// Metadata for a video asset. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class VideoMetadata { + private ScalableType scalableTypeField; - /// Creates new ContentMetadataKeyHierarchy objects. - ///

The following fields are required:

- ///
the hierarchies to create - /// the created hierarchies with their IDs filled in - public virtual Google.Api.Ads.AdManager.v201808.ContentMetadataKeyHierarchy[] createContentMetadataKeyHierarchies(Google.Api.Ads.AdManager.v201808.ContentMetadataKeyHierarchy[] contentMetadataKeyHierarchies) { - Wrappers.ContentMetadataKeyHierarchyService.createContentMetadataKeyHierarchiesRequest inValue = new Wrappers.ContentMetadataKeyHierarchyService.createContentMetadataKeyHierarchiesRequest(); - inValue.contentMetadataKeyHierarchies = contentMetadataKeyHierarchies; - Wrappers.ContentMetadataKeyHierarchyService.createContentMetadataKeyHierarchiesResponse retVal = ((Google.Api.Ads.AdManager.v201808.ContentMetadataKeyHierarchyServiceInterface)(this)).createContentMetadataKeyHierarchies(inValue); - return retVal.rval; - } + private bool scalableTypeFieldSpecified; - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201808.ContentMetadataKeyHierarchyServiceInterface.createContentMetadataKeyHierarchiesAsync(Wrappers.ContentMetadataKeyHierarchyService.createContentMetadataKeyHierarchiesRequest request) { - return base.Channel.createContentMetadataKeyHierarchiesAsync(request); - } + private int durationField; - public virtual System.Threading.Tasks.Task createContentMetadataKeyHierarchiesAsync(Google.Api.Ads.AdManager.v201808.ContentMetadataKeyHierarchy[] contentMetadataKeyHierarchies) { - Wrappers.ContentMetadataKeyHierarchyService.createContentMetadataKeyHierarchiesRequest inValue = new Wrappers.ContentMetadataKeyHierarchyService.createContentMetadataKeyHierarchiesRequest(); - inValue.contentMetadataKeyHierarchies = contentMetadataKeyHierarchies; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201808.ContentMetadataKeyHierarchyServiceInterface)(this)).createContentMetadataKeyHierarchiesAsync(inValue)).Result.rval); - } + private bool durationFieldSpecified; - /// Gets a ContentMetadataKeyHierarchyPage of ContentMetadataKeyHierarchy objects that - /// satisfy the given Statement#query. The following - /// fields are supported for filtering: - /// - /// - /// - ///
PQL - /// Property Object Property
id ContentMetadataKeyHierarchy#id
name ContentMetadataKeyHierarchy#name
status ContentMetadataKeyHierarchy#status
- ///
a Publisher Query Language statement used to - /// filter a set of content metadata key hierarchies - /// the content metadata key hierarchies that match the given - /// filter - /// if the ID of the active network does not exist or - /// there is a backend error - public virtual Google.Api.Ads.AdManager.v201808.ContentMetadataKeyHierarchyPage getContentMetadataKeyHierarchiesByStatement(Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.getContentMetadataKeyHierarchiesByStatement(filterStatement); - } + private int bitRateField; - public virtual System.Threading.Tasks.Task getContentMetadataKeyHierarchiesByStatementAsync(Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.getContentMetadataKeyHierarchiesByStatementAsync(filterStatement); - } + private bool bitRateFieldSpecified; - /// Performs actions on ContentMetadataKeyHierarchy objects that - /// match the given Statement#query. - /// the action to perform - /// a Publisher Query Language statement used to - /// filter a set of hierarchies - /// the result of the action performed - public virtual Google.Api.Ads.AdManager.v201808.UpdateResult performContentMetadataKeyHierarchyAction(Google.Api.Ads.AdManager.v201808.ContentMetadataKeyHierarchyAction contentMetadataKeyHierarchyAction, Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.performContentMetadataKeyHierarchyAction(contentMetadataKeyHierarchyAction, filterStatement); - } + private int minimumBitRateField; - public virtual System.Threading.Tasks.Task performContentMetadataKeyHierarchyActionAsync(Google.Api.Ads.AdManager.v201808.ContentMetadataKeyHierarchyAction contentMetadataKeyHierarchyAction, Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.performContentMetadataKeyHierarchyActionAsync(contentMetadataKeyHierarchyAction, filterStatement); - } + private bool minimumBitRateFieldSpecified; - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.ContentMetadataKeyHierarchyService.updateContentMetadataKeyHierarchiesResponse Google.Api.Ads.AdManager.v201808.ContentMetadataKeyHierarchyServiceInterface.updateContentMetadataKeyHierarchies(Wrappers.ContentMetadataKeyHierarchyService.updateContentMetadataKeyHierarchiesRequest request) { - return base.Channel.updateContentMetadataKeyHierarchies(request); - } + private int maximumBitRateField; - /// Updates the specified ContentMetadataKeyHierarchy objects. - /// the hierarchies to update - /// the updated hierarchies - /// if there is an error updating the one of the - /// hierarchies - public virtual Google.Api.Ads.AdManager.v201808.ContentMetadataKeyHierarchy[] updateContentMetadataKeyHierarchies(Google.Api.Ads.AdManager.v201808.ContentMetadataKeyHierarchy[] contentMetadataKeyHierarchies) { - Wrappers.ContentMetadataKeyHierarchyService.updateContentMetadataKeyHierarchiesRequest inValue = new Wrappers.ContentMetadataKeyHierarchyService.updateContentMetadataKeyHierarchiesRequest(); - inValue.contentMetadataKeyHierarchies = contentMetadataKeyHierarchies; - Wrappers.ContentMetadataKeyHierarchyService.updateContentMetadataKeyHierarchiesResponse retVal = ((Google.Api.Ads.AdManager.v201808.ContentMetadataKeyHierarchyServiceInterface)(this)).updateContentMetadataKeyHierarchies(inValue); - return retVal.rval; - } + private bool maximumBitRateFieldSpecified; - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201808.ContentMetadataKeyHierarchyServiceInterface.updateContentMetadataKeyHierarchiesAsync(Wrappers.ContentMetadataKeyHierarchyService.updateContentMetadataKeyHierarchiesRequest request) { - return base.Channel.updateContentMetadataKeyHierarchiesAsync(request); - } + private Size sizeField; - public virtual System.Threading.Tasks.Task updateContentMetadataKeyHierarchiesAsync(Google.Api.Ads.AdManager.v201808.ContentMetadataKeyHierarchy[] contentMetadataKeyHierarchies) { - Wrappers.ContentMetadataKeyHierarchyService.updateContentMetadataKeyHierarchiesRequest inValue = new Wrappers.ContentMetadataKeyHierarchyService.updateContentMetadataKeyHierarchiesRequest(); - inValue.contentMetadataKeyHierarchies = contentMetadataKeyHierarchies; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201808.ContentMetadataKeyHierarchyServiceInterface)(this)).updateContentMetadataKeyHierarchiesAsync(inValue)).Result.rval); - } - } - namespace Wrappers.ContentService - { - } - /// Contains information about Content from the CMS it was - /// ingested from. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class CmsContent { - private long idField; + private MimeType mimeTypeField; - private bool idFieldSpecified; + private bool mimeTypeFieldSpecified; - private string displayNameField; + private VideoDeliveryType deliveryTypeField; - private string cmsContentIdField; + private bool deliveryTypeFieldSpecified; - /// The ID of the Content Source associated with the CMS in Ad Manager. This - /// attribute is read-only. + private string[] codecsField; + + /// The scalable type of the asset. This attribute is required. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public long id { + public ScalableType scalableType { get { - return this.idField; + return this.scalableTypeField; } set { - this.idField = value; - this.idSpecified = true; + this.scalableTypeField = value; + this.scalableTypeSpecified = 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 scalableTypeSpecified { get { - return this.idFieldSpecified; + return this.scalableTypeFieldSpecified; } set { - this.idFieldSpecified = value; + this.scalableTypeFieldSpecified = value; } } - /// The display name of the CMS this content is in. This attribute is read-only. + /// The duration of the asset in milliseconds. This attribute is required. /// [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public string displayName { + public int duration { get { - return this.displayNameField; + return this.durationField; } set { - this.displayNameField = value; + this.durationField = value; + this.durationSpecified = 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. + /// 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 string cmsContentId { + public int bitRate { get { - return this.cmsContentIdField; + return this.bitRateField; } set { - this.cmsContentIdField = value; + 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; + } + } - /// Represents an error associated with a DAI content's status. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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 minimumBitRateSpecified { + get { + return this.minimumBitRateFieldSpecified; + } + set { + this.minimumBitRateFieldSpecified = value; + } + } - private bool reasonFieldSpecified; + /// 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; + } + } - private string triggerField; + /// 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 error associated with the content. + /// The size (width and height) of the asset. This attribute is required. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public DaiIngestErrorReason reason { + [System.Xml.Serialization.XmlElementAttribute(Order = 5)] + public Size size { get { - return this.reasonField; + return this.sizeField; } set { - this.reasonField = value; - this.reasonSpecified = true; + this.sizeField = value; } } - /// true, if a value is specified for , - /// false otherwise. + /// The mime type of the asset. This attribute is required. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 6)] + public MimeType mimeType { + get { + return this.mimeTypeField; + } + set { + this.mimeTypeField = value; + this.mimeTypeSpecified = true; + } + } + + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { + public bool mimeTypeSpecified { get { - return this.reasonFieldSpecified; + return this.mimeTypeFieldSpecified; } set { - this.reasonFieldSpecified = value; + this.mimeTypeFieldSpecified = value; } } - /// The field, if any, that triggered the error. + /// The delivery type of the asset. This attribute is required. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public string trigger { + [System.Xml.Serialization.XmlElementAttribute(Order = 7)] + public VideoDeliveryType deliveryType { get { - return this.triggerField; + return this.deliveryTypeField; } set { - this.triggerField = value; + this.deliveryTypeField = value; + this.deliveryTypeSpecified = true; } } - } + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool deliveryTypeSpecified { + get { + return this.deliveryTypeFieldSpecified; + } + set { + this.deliveryTypeFieldSpecified = value; + } + } - /// Describes what caused the DAI content to fail during the ingestion proccess. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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. + /// The codecs of the asset. This attribute is optional and defaults to an empty + /// list. /// - 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. + [System.Xml.Serialization.XmlElementAttribute("codecs", Order = 8)] + public string[] codecs { + get { + return this.codecsField; + } + set { + this.codecsField = value; + } + } + } + + + /// The different ways a video/flash can scale. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum ScalableType { + /// The value returned if the actual value is not exposed by the requested API + /// version. /// - 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. + UNKNOWN = 0, + /// The creative should not be scaled. /// - 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. + NOT_SCALABLE = 1, + /// The creative can be scaled and its aspect-ratio must be maintained. /// - 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. + RATIO_SCALABLE = 2, + /// The creative can be scaled and its aspect-ratio can be distorted. /// - 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. + STRETCH_SCALABLE = 3, + } + + + /// Enum of supported mime types + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum MimeType { + /// The value returned if the actual value is not exposed by the requested API + /// version. /// - 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. + UNKNOWN = 0, + /// application/x-asp /// - 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. + ASP = 1, + /// audio/aiff /// - 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. + AUDIO_AIFF = 2, + /// audio/basic /// - CHAPTER_TIME_OUT_OF_BOUNDS = 8, - /// An internal error occurred while conditioning the content. There is no trigger - /// for this error. + AUDIO_BASIC = 3, + /// audio/flac /// - 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. + AUDIO_FLAC = 4, + /// audio/mid /// - 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. + AUDIO_MID = 5, + /// audio/mpeg /// - MALFORMED_MEDIA_PLAYLIST = 11, - /// There is bad/missing/malformed data in a subtitles file. The trigger for this - /// error is the URL that points to the malformed subtitles. + AUDIO_MP3 = 6, + /// audio/mp4 /// - 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. + AUDIO_MP4 = 7, + /// audio/x-mpegurl /// - PLAYLIST_ITEM_URL_DOES_NOT_MATCH_INGEST_COMMON_PATH = 13, - /// Uploading split media segments failed due to an authentication error. + AUDIO_MPEG_URL = 8, + /// audio/x-ms-wma /// - COULD_NOT_UPLOAD_SPLIT_MEDIA_AUTHENTICATION_FAILED = 14, - /// Uploading spit media segments failed due to a connection error. + AUDIO_MS_WMA = 9, + /// audio/ogg /// - COULD_NOT_UPLOAD_SPLIT_MEDIA_CONNECTION_FAILED = 15, - /// Uploading split media segments failed due to a write error. + AUDIO_OGG = 10, + /// audio/x-pn-realaudio-plugin /// - 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. + AUDIO_REAL_AUDIO_PLUGIN = 11, + /// audio/x-wav /// - 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. + AUDIO_WAV = 12, + /// application/binary /// - 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. + BINARY = 13, + /// application/dash+xml /// - PLAYLIST_DISCONTINUITY_PTS_VALUES_DIFFER_TOO_MUCH = 19, - /// A media segment has no PTS. The trigger for this error is the segment data URI. + DASH = 62, + /// application/x-director /// - 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". + DIRECTOR = 14, + /// application/x-shockwave-flash /// - 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. + FLASH = 15, + /// application/graphicconverter /// - 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. + GRAPHIC_CONVERTER = 16, + /// application/x-javascript /// - 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. + JAVASCRIPT = 17, + /// application/json /// - 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. + JSON = 18, + /// image/x-win-bitmap /// - 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". + IMAGE_BITMAP = 19, + /// image/bmp /// - 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". + IMAGE_BMP = 20, + /// image/gif /// - 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". + IMAGE_GIF = 21, + /// image/jpeg /// - 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". + IMAGE_JPEG = 22, + /// image/photoshop /// - 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". + IMAGE_PHOTOSHOP = 23, + /// image/png /// - 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". + IMAGE_PNG = 24, + /// image/tiff /// - 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". + IMAGE_TIFF = 25, + /// image/vnd.wap.wbmp /// - 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". + IMAGE_WBMP = 26, + /// application/x-mpegURL /// - 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". + M3U8 = 27, + /// application/mac-binhex40 /// - 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". + MAC_BIN_HEX_40 = 28, + /// application/vnd.ms-excel /// - 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". + MS_EXCEL = 29, + /// application/ms-powerpoint /// - 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". + MS_POWERPOINT = 30, + /// application/msword /// - 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. + MS_WORD = 31, + /// application/octet-stream /// - 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". + OCTET_STREAM = 32, + /// application/pdf /// - EAC3_PARSE_ERROR = 39, + 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 video delivery type. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum VideoDeliveryType { /// The value returned if the actual value is not exposed by the requested API /// version. /// - UNKNOWN = 34, + UNKNOWN = 0, + /// Video will be served through a progressive download. + /// + PROGRESSIVE = 1, + /// Video will be served via a streaming protocol like RTMP. + /// + STREAMING = 2, } - /// 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.

+ /// Base asset properties. /// + [System.Xml.Serialization.XmlIncludeAttribute(typeof(RedirectAsset))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(VideoRedirectAsset))] [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class Content { - private long idField; - - private bool idFieldSpecified; - - private string nameField; - - private ContentStatus statusField; - - private bool statusFieldSpecified; - - private ContentStatusDefinedBy statusDefinedByField; - - private bool statusDefinedByFieldSpecified; - - private DaiIngestStatus hlsIngestStatusField; - - private bool hlsIngestStatusFieldSpecified; - - private DaiIngestError[] hlsIngestErrorsField; - - private DateTime lastHlsIngestDateTimeField; - - private DaiIngestStatus dashIngestStatusField; - - private bool dashIngestStatusFieldSpecified; - - private DaiIngestError[] dashIngestErrorsField; - - private DateTime lastDashIngestDateTimeField; - - private DateTime importDateTimeField; - - private DateTime lastModifiedDateTimeField; - - private long[] userDefinedCustomTargetingValueIdsField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public abstract partial class Asset { + } - private long[] mappingRuleDefinedCustomTargetingValueIdsField; - private CmsContent[] cmsSourcesField; + /// An externally hosted asset. + /// + [System.Xml.Serialization.XmlIncludeAttribute(typeof(VideoRedirectAsset))] + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public abstract partial class RedirectAsset : Asset { + private string redirectUrlField; - /// Uniquely identifies the Content. This attribute is read-only and is - /// assigned by Google when the content is created. + /// The URL where the asset is hosted. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public long id { + public string redirectUrl { get { - return this.idField; + return this.redirectUrlField; } set { - this.idField = value; - this.idSpecified = true; + this.redirectUrlField = value; } } + } - /// 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 Content. This attribute is read-only. + /// An externally-hosted video asset. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class VideoRedirectAsset : RedirectAsset { + private VideoMetadata metadataField; + + /// Metadata related to the asset. This attribute is required. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public string name { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public VideoMetadata metadata { get { - return this.nameField; + return this.metadataField; } set { - this.nameField = value; + this.metadataField = value; } } + } - /// The status of this Content. This attribute is read-only. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public ContentStatus status { + + /// This represents an entry in a map with a key of type ConversionEvent and value + /// of type TrackingUrls. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class ConversionEvent_TrackingUrlsMapEntry { + private ConversionEvent keyField; + + private bool keyFieldSpecified; + + private string[] valueField; + + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public ConversionEvent key { get { - return this.statusField; + return this.keyField; } set { - this.statusField = value; - this.statusSpecified = 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 statusSpecified { + public bool keySpecified { get { - return this.statusFieldSpecified; + return this.keyFieldSpecified; } set { - this.statusFieldSpecified = value; + this.keyFieldSpecified = 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.Xml.Serialization.XmlElementAttribute(Order = 3)] - public ContentStatusDefinedBy statusDefinedBy { + [System.Xml.Serialization.XmlArrayAttribute(Order = 1)] + [System.Xml.Serialization.XmlArrayItemAttribute("urls", IsNullable = false)] + public string[] value { get { - return this.statusDefinedByField; + return this.valueField; } set { - this.statusDefinedByField = value; - this.statusDefinedBySpecified = true; + this.valueField = value; } } + } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool statusDefinedBySpecified { - get { - return this.statusDefinedByFieldSpecified; - } - set { - this.statusDefinedByFieldSpecified = 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. + /// All possible tracking event types. Not all events are supported by every kind of + /// creative. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum ConversionEvent { + /// The value returned if the actual value is not exposed by the requested API + /// version. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public DaiIngestStatus hlsIngestStatus { - get { - return this.hlsIngestStatusField; - } - set { - this.hlsIngestStatusField = value; - this.hlsIngestStatusSpecified = true; - } - } + 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. + /// + FULLY_VIEWABLE_AUDIBLE_HALF_DURATION_IMPRESSION = 26, + } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool hlsIngestStatusSpecified { - get { - return this.hlsIngestStatusFieldSpecified; - } - set { - this.hlsIngestStatusFieldSpecified = 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. - /// - [System.Xml.Serialization.XmlElementAttribute("hlsIngestErrors", Order = 5)] - public DaiIngestError[] hlsIngestErrors { - get { - return this.hlsIngestErrorsField; - } - set { - this.hlsIngestErrorsField = value; - } - } + /// Represents a child asset in RichMediaStudioCreative. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class RichMediaStudioChildAssetProperty { + private string nameField; - /// 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. + private RichMediaStudioChildAssetPropertyType typeField; + + private bool typeFieldSpecified; + + private long totalFileSizeField; + + private bool totalFileSizeFieldSpecified; + + private int widthField; + + private bool widthFieldSpecified; + + private int heightField; + + private bool heightFieldSpecified; + + private string urlField; + + /// The name of the asset as known by Rich Media Studio. This attribute is readonly. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 6)] - public DateTime lastHlsIngestDateTime { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public string name { get { - return this.lastHlsIngestDateTimeField; + return this.nameField; } set { - this.lastHlsIngestDateTimeField = value; + this.nameField = value; } } - /// 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. + /// Required file type of the asset. This attribute is readonly. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 7)] - public DaiIngestStatus dashIngestStatus { + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public RichMediaStudioChildAssetPropertyType type { get { - return this.dashIngestStatusField; + return this.typeField; } set { - this.dashIngestStatusField = value; - this.dashIngestStatusSpecified = true; + this.typeField = value; + this.typeSpecified = 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 dashIngestStatusSpecified { + public bool typeSpecified { get { - return this.dashIngestStatusFieldSpecified; + return this.typeFieldSpecified; } set { - this.dashIngestStatusFieldSpecified = value; + this.typeFieldSpecified = value; } } - /// 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. + /// The total size of the asset in bytes. This attribute is readonly. /// - [System.Xml.Serialization.XmlElementAttribute("dashIngestErrors", Order = 8)] - public DaiIngestError[] dashIngestErrors { + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public long totalFileSize { get { - return this.dashIngestErrorsField; + return this.totalFileSizeField; } set { - this.dashIngestErrorsField = value; + this.totalFileSizeField = value; + this.totalFileSizeSpecified = true; } } - /// 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 { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool totalFileSizeSpecified { get { - return this.lastDashIngestDateTimeField; + return this.totalFileSizeFieldSpecified; } set { - this.lastDashIngestDateTimeField = value; + this.totalFileSizeFieldSpecified = value; } } - /// The date and time at which this content was published. This attribute is - /// read-only. + /// Width of the widget in pixels. This attribute is readonly. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 10)] - public DateTime importDateTime { + [System.Xml.Serialization.XmlElementAttribute(Order = 3)] + public int width { get { - return this.importDateTimeField; + return this.widthField; } set { - this.importDateTimeField = value; + this.widthField = value; + this.widthSpecified = true; } } - /// The date and time at which this content was last modified. 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 widthSpecified { get { - return this.lastModifiedDateTimeField; + return this.widthFieldSpecified; } set { - this.lastModifiedDateTimeField = value; + this.widthFieldSpecified = value; } } - /// A collection of custom targeting value IDs manually assigned to this content by - /// the user. This attribute is optional. + /// Height of the widget in pixels. This attribute is readonly. /// - [System.Xml.Serialization.XmlElementAttribute("userDefinedCustomTargetingValueIds", Order = 12)] - public long[] userDefinedCustomTargetingValueIds { + [System.Xml.Serialization.XmlElementAttribute(Order = 4)] + public int height { get { - return this.userDefinedCustomTargetingValueIdsField; + return this.heightField; } set { - this.userDefinedCustomTargetingValueIdsField = value; + this.heightField = value; + this.heightSpecified = true; } } - /// A collection of custom targeting value IDs automatically targeted to this - /// content via metadata mapping rules. This attribute is read-only. - /// - [System.Xml.Serialization.XmlElementAttribute("mappingRuleDefinedCustomTargetingValueIds", Order = 13)] - public long[] mappingRuleDefinedCustomTargetingValueIds { + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool heightSpecified { get { - return this.mappingRuleDefinedCustomTargetingValueIdsField; + return this.heightFieldSpecified; } set { - this.mappingRuleDefinedCustomTargetingValueIdsField = value; + this.heightFieldSpecified = value; } } - /// Information about the content from the CMS it was ingested from. This attribute - /// is read-only. + /// The URL of the asset. This attribute is readonly. /// - [System.Xml.Serialization.XmlElementAttribute("cmsSources", Order = 14)] - public CmsContent[] cmsSources { + [System.Xml.Serialization.XmlElementAttribute(Order = 5)] + public string url { get { - return this.cmsSourcesField; + return this.urlField; } set { - this.cmsSourcesField = value; + this.urlField = value; } } } - /// Describes the status of a Content object. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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. + /// Type of RichMediaStudioChildAssetProperty /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum DaiIngestStatus { - /// The content was successfully ingested for DAI. + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "RichMediaStudioChildAssetProperty.Type", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum RichMediaStudioChildAssetPropertyType { + /// SWF files /// - SUCCESS = 0, - /// There was a non-fatal issue during the DAI ingestion proccess. + FLASH = 0, + /// FLVS and any other video file types /// - WARNING = 1, - /// There was a non-fatal issue during the DAI ingestion proccess and the content is - /// not available for dynamic ad insertion. + VIDEO = 1, + /// Image files /// - FAILURE = 2, - /// The value returned if the actual value is not exposed by the requested API - /// version. + IMAGE = 2, + /// The rest of the supported file types .txt, .xml, etc. /// - UNKNOWN = 3, + DATA = 3, } - /// Captures a page of Content objects. + /// 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.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ContentPage { - private int totalResultSetSizeField; - - private bool totalResultSetSizeFieldSpecified; - - private int startIndexField; - - private bool startIndexFieldSpecified; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public abstract partial class BaseCustomFieldValue { + private long customFieldIdField; - private Content[] resultsField; + private bool customFieldIdFieldSpecified; - /// The size of the total result set to which this page belongs. + /// Id of the CustomField to which this value belongs. This attribute + /// is required. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public int totalResultSetSize { + public long customFieldId { get { - return this.totalResultSetSizeField; + return this.customFieldIdField; } set { - this.totalResultSetSizeField = value; - this.totalResultSetSizeSpecified = 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 totalResultSetSizeSpecified { + public bool customFieldIdSpecified { get { - return this.totalResultSetSizeFieldSpecified; + return this.customFieldIdFieldSpecified; } set { - this.totalResultSetSizeFieldSpecified = value; + this.customFieldIdFieldSpecified = value; } } + } - /// The absolute index in the total result set on which this page begins. + + /// A CustomFieldValue for a CustomField that has a CustomField#dataType of CustomFieldDataType#DROP_DOWN + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class DropDownCustomFieldValue : BaseCustomFieldValue { + private long customFieldOptionIdField; + + private bool customFieldOptionIdFieldSpecified; + + /// The ID of the CustomFieldOption for this value. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public int startIndex { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public long customFieldOptionId { get { - return this.startIndexField; + return this.customFieldOptionIdField; } set { - this.startIndexField = value; - this.startIndexSpecified = true; + this.customFieldOptionIdField = value; + this.customFieldOptionIdSpecified = 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 customFieldOptionIdSpecified { get { - return this.startIndexFieldSpecified; + return this.customFieldOptionIdFieldSpecified; } set { - this.startIndexFieldSpecified = value; + this.customFieldOptionIdFieldSpecified = value; } } + } - /// The collection of content contained within this page. + + /// The value of a CustomField that does not have a CustomField#dataType of CustomFieldDataType#DROP_DOWN. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class CustomFieldValue : BaseCustomFieldValue { + private Value valueField; + + /// 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("results", Order = 2)] - public Content[] results { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public Value value { get { - return this.resultsField; + return this.valueField; } set { - this.resultsField = value; + this.valueField = value; } } } - /// An error for a field which is an invalid type. + /// 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.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class TypeError : ApiError { - } + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class AppliedLabel { + private long labelIdField; + private bool labelIdFieldSpecified; - /// Lists all errors associated with URLs. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class InvalidUrlError : ApiError { - private InvalidUrlErrorReason reasonField; + private bool isNegatedField; - private bool reasonFieldSpecified; + private bool isNegatedFieldSpecified; + /// The ID of a created Label. + /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public InvalidUrlErrorReason reason { + public long labelId { get { - return this.reasonField; + return this.labelIdField; } set { - this.reasonField = value; - this.reasonSpecified = 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 reasonSpecified { + public bool labelIdSpecified { get { - return this.reasonFieldSpecified; + return this.labelIdFieldSpecified; } set { - this.reasonFieldSpecified = value; + this.labelIdFieldSpecified = value; + } + } + + /// isNegated should be set to true to negate the effects + /// of labelId. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public bool isNegated { + get { + return this.isNegatedField; + } + set { + this.isNegatedField = value; + this.isNegatedSpecified = true; + } + } + + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool isNegatedSpecified { + get { + return this.isNegatedFieldSpecified; + } + set { + this.isNegatedFieldSpecified = value; } } } - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "InvalidUrlError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum InvalidUrlErrorReason { - /// The URL contains invalid characters. - /// - 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. - /// - INVALID_FORMAT = 1, - /// URL contains insecure scheme. - /// - INSECURE_SCHEME = 2, - /// The URL does not contain a scheme. - /// - NO_SCHEME = 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/v201808", ConfigurationName = "Google.Api.Ads.AdManager.v201808.ContentServiceInterface")] - public interface ContentServiceInterface - { - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v201808.ContentPage getContentByStatement(Google.Api.Ads.AdManager.v201808.Statement statement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getContentByStatementAsync(Google.Api.Ads.AdManager.v201808.Statement statement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v201808.ContentPage getContentByStatementAndCustomTargetingValue(Google.Api.Ads.AdManager.v201808.Statement filterStatement, long customTargetingValueId); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getContentByStatementAndCustomTargetingValueAsync(Google.Api.Ads.AdManager.v201808.Statement filterStatement, long customTargetingValueId); - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public interface ContentServiceInterfaceChannel : Google.Api.Ads.AdManager.v201808.ContentServiceInterface, System.ServiceModel.IClientChannel - { - } - - - /// Service for retrieving Content.

Content - /// entities can be targeted in video LineItems.

You - /// can query for content that belongs to a particular category or has assigned - /// metadata. Categories and metadata for are stored in DFP as CustomCriteria.

For example, to find all - /// Content that is "genre=comedy", you would:

+ /// 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(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.6.1055.0")] + [System.SerializableAttribute()] [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 ContentService() { - } - - /// Creates a new instance of the class. - /// - public ContentService(string endpointConfigurationName) - : base(endpointConfigurationName) { - } - - /// Creates a new instance of the class. - /// - public ContentService(string endpointConfigurationName, string remoteAddress) - : base(endpointConfigurationName, 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 ContentService(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
- ///
a Publisher Query Language statement used to filter a - /// set of content - /// the content that matches the given filter - public virtual Google.Api.Ads.AdManager.v201808.ContentPage getContentByStatement(Google.Api.Ads.AdManager.v201808.Statement statement) { - return base.Channel.getContentByStatement(statement); - } - - public virtual System.Threading.Tasks.Task getContentByStatementAsync(Google.Api.Ads.AdManager.v201808.Statement statement) { - return base.Channel.getContentByStatementAsync(statement); - } - - /// Gets a ContentPage of Content - /// objects that satisfy the given Statement#query. - /// Additionally, filters on the given value ID and key ID that the value belongs - /// to. The following fields are supported for filtering: - /// - /// - /// - /// - ///
PQL Property Object Property
id Content#id
status Content#status
name Content#name
lastModifiedDateTime Content#lastModifiedDateTime>
- ///
a Publisher Query Language statement used to - /// filter a set of content - /// the id of the value to match - /// the content that matches the given filter - public virtual Google.Api.Ads.AdManager.v201808.ContentPage getContentByStatementAndCustomTargetingValue(Google.Api.Ads.AdManager.v201808.Statement filterStatement, long customTargetingValueId) { - return base.Channel.getContentByStatementAndCustomTargetingValue(filterStatement, customTargetingValueId); - } - - public virtual System.Threading.Tasks.Task getContentByStatementAndCustomTargetingValueAsync(Google.Api.Ads.AdManager.v201808.Statement filterStatement, long customTargetingValueId) { - return base.Channel.getContentByStatementAndCustomTargetingValueAsync(filterStatement, customTargetingValueId); - } - } - 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/v201808", IsWrapped = true)] - public partial class createCreativesRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("creatives")] - public Google.Api.Ads.AdManager.v201808.Creative[] creatives; - - /// Creates a new instance of the - /// class. - public createCreativesRequest() { - } - - /// Creates a new instance of the - /// class. - public createCreativesRequest(Google.Api.Ads.AdManager.v201808.Creative[] creatives) { - this.creatives = creatives; - } - } - - - [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/v201808", IsWrapped = true)] - public partial class createCreativesResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v201808.Creative[] rval; - - /// Creates a new instance of the - /// class. - public createCreativesResponse() { - } - - /// Creates a new instance of the - /// class. - public createCreativesResponse(Google.Api.Ads.AdManager.v201808.Creative[] rval) { - this.rval = rval; - } - } + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public abstract partial class Creative { + private long advertiserIdField; + private bool advertiserIdFieldSpecified; - [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/v201808", IsWrapped = true)] - public partial class updateCreativesRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("creatives")] - public Google.Api.Ads.AdManager.v201808.Creative[] creatives; + private long idField; - /// Creates a new instance of the - /// class. - public updateCreativesRequest() { - } + private bool idFieldSpecified; - /// Creates a new instance of the - /// class. - public updateCreativesRequest(Google.Api.Ads.AdManager.v201808.Creative[] creatives) { - this.creatives = creatives; - } - } + private string nameField; + private Size sizeField; - [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/v201808", IsWrapped = true)] - public partial class updateCreativesResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v201808.Creative[] rval; + private string previewUrlField; - /// Creates a new instance of the - /// class. - public updateCreativesResponse() { - } + private CreativePolicyViolation[] policyViolationsField; - /// Creates a new instance of the - /// class. - public updateCreativesResponse(Google.Api.Ads.AdManager.v201808.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.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public abstract partial class BaseCreativeTemplateVariableValue { - private string uniqueNameField; + private CreativePolicyViolation[] policyLabelsField; - /// A uniqueName of the CreativeTemplateVariable. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public string uniqueName { - get { - return this.uniqueNameField; - } - set { - this.uniqueNameField = value; - } - } - } + private AppliedLabel[] appliedLabelsField; + private DateTime lastModifiedDateTimeField; - /// Stores values of CreativeTemplateVariable - /// of VariableType#URL. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class UrlCreativeTemplateVariableValue : BaseCreativeTemplateVariableValue { - private string valueField; + private BaseCustomFieldValue[] customFieldValuesField; - /// The url value of CreativeTemplateVariable + /// The ID of the advertiser that owns the creative. This attribute is required. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public string value { + public long advertiserId { get { - return this.valueField; + return this.advertiserIdField; } set { - this.valueField = value; + this.advertiserIdField = value; + this.advertiserIdSpecified = true; } } - } - - - /// Stores values of CreativeTemplateVariable - /// of VariableType#STRING and VariableType#LIST. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class StringCreativeTemplateVariableValue : BaseCreativeTemplateVariableValue { - private string valueField; - /// The string value of CreativeTemplateVariable - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public string value { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool advertiserIdSpecified { get { - return this.valueField; + return this.advertiserIdFieldSpecified; } set { - this.valueField = value; + this.advertiserIdFieldSpecified = value; } } - } - - - /// Stores values of CreativeTemplateVariable - /// of VariableType#LONG. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class LongCreativeTemplateVariableValue : BaseCreativeTemplateVariableValue { - private long valueField; - - private bool valueFieldSpecified; - /// The long value of CreativeTemplateVariable + /// 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 = 0)] - public long value { + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public long id { get { - return this.valueField; + return this.idField; } set { - this.valueField = value; - this.valueSpecified = 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 valueSpecified { + public bool idSpecified { get { - return this.valueFieldSpecified; + return this.idFieldSpecified; } set { - this.valueFieldSpecified = value; + this.idFieldSpecified = value; } } - } - - - /// Stores values of CreativeTemplateVariable - /// of VariableType#ASSET. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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. + /// The name of the creative. This attribute is required and has a maximum length of + /// 255 characters. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public CreativeAsset asset { + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public string name { get { - return this.assetField; + return this.nameField; } set { - this.assetField = value; + this.nameField = value; } } - } - - - /// A CreativeAsset is an asset that can be used in creatives. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class CreativeAsset { - private long assetIdField; - - private bool assetIdFieldSpecified; - - private byte[] assetByteArrayField; - - private string fileNameField; - - private long fileSizeField; - - private bool fileSizeFieldSpecified; - - private string assetUrlField; - - private Size sizeField; - - private ClickTag[] clickTagsField; - - private ImageDensity imageDensityField; - - private bool imageDensityFieldSpecified; - /// The ID of the asset. This attribute is generated by Google upon creation. + /// The Size of the creative. This attribute is required for + /// creation and then is read-only. /// - [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 { + [System.Xml.Serialization.XmlElementAttribute(Order = 3)] + public Size size { get { - return this.assetIdFieldSpecified; + return this.sizeField; } set { - this.assetIdFieldSpecified = value; + this.sizeField = 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. + /// 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(DataType = "base64Binary", Order = 1)] - public byte[] assetByteArray { + [System.Xml.Serialization.XmlElementAttribute(Order = 4)] + public string previewUrl { get { - return this.assetByteArrayField; + return this.previewUrlField; } set { - this.assetByteArrayField = value; + this.previewUrlField = value; } } - /// The file name of the asset. This attribute is required when creating a new asset - /// (e.g. when #assetByteArray is not null). + /// Set of policy violations detected for this creative. This attribute is + /// read-only. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public string fileName { + [System.Xml.Serialization.XmlElementAttribute("policyViolations", Order = 5)] + public CreativePolicyViolation[] policyViolations { get { - return this.fileNameField; + return this.policyViolationsField; } set { - this.fileNameField = value; + this.policyViolationsField = value; } } - /// The file size of the asset in bytes. This attribute is read-only. + /// Set of policy labels detected for this creative. This attribute is read-only. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public long fileSize { + [System.Xml.Serialization.XmlElementAttribute("policyLabels", Order = 6)] + public CreativePolicyViolation[] policyLabels { get { - return this.fileSizeField; + return this.policyLabelsField; } set { - this.fileSizeField = value; - this.fileSizeSpecified = true; + this.policyLabelsField = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool fileSizeSpecified { + /// The set of labels applied to this creative. + /// + [System.Xml.Serialization.XmlElementAttribute("appliedLabels", Order = 7)] + public AppliedLabel[] appliedLabels { get { - return this.fileSizeFieldSpecified; + return this.appliedLabelsField; } set { - this.fileSizeFieldSpecified = value; + this.appliedLabelsField = value; } } - /// A URL where the asset can be previewed at. This field is read-only and set by - /// Google. + /// The date and time this creative was last modified. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public string assetUrl { + [System.Xml.Serialization.XmlElementAttribute(Order = 8)] + public DateTime lastModifiedDateTime { get { - return this.assetUrlField; + return this.lastModifiedDateTimeField; } set { - this.assetUrlField = value; + this.lastModifiedDateTimeField = 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. + /// The values of the custom fields associated with this creative. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 5)] - public Size size { + [System.Xml.Serialization.XmlElementAttribute("customFieldValues", Order = 9)] + public BaseCustomFieldValue[] customFieldValues { get { - return this.sizeField; + return this.customFieldValuesField; } set { - this.sizeField = value; + this.customFieldValuesField = value; } } + } - /// The click tags of the asset. This field is read-only. - /// - [System.Xml.Serialization.XmlElementAttribute("clickTags", Order = 6)] - public ClickTag[] clickTags { + + /// 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.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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 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. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class VastRedirectCreative : Creative { + private string vastXmlUrlField; + + private VastRedirectType vastRedirectTypeField; + + private bool vastRedirectTypeFieldSpecified; + + private int durationField; + + private bool durationFieldSpecified; + + private long[] companionCreativeIdsField; + + private ConversionEvent_TrackingUrlsMapEntry[] trackingUrlsField; + + private string vastPreviewUrlField; + + private SslScanResult sslScanResultField; + + private bool sslScanResultFieldSpecified; + + private SslManualOverride sslManualOverrideField; + + private bool sslManualOverrideFieldSpecified; + + /// The URL where the 3rd party VAST XML is hosted. This attribute is required. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public string vastXmlUrl { get { - return this.clickTagsField; + return this.vastXmlUrlField; } set { - this.clickTagsField = value; + this.vastXmlUrlField = 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. + /// The type of VAST ad that this redirects to. This attribute is required. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 7)] - public ImageDensity imageDensity { + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public VastRedirectType vastRedirectType { get { - return this.imageDensityField; + return this.vastRedirectTypeField; } set { - this.imageDensityField = value; - this.imageDensitySpecified = true; + this.vastRedirectTypeField = value; + this.vastRedirectTypeSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="vastRedirectType" />, false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool imageDensitySpecified { + public bool vastRedirectTypeSpecified { get { - return this.imageDensityFieldSpecified; + return this.vastRedirectTypeFieldSpecified; } set { - this.imageDensityFieldSpecified = value; + this.vastRedirectTypeFieldSpecified = 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.

- ///
- [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class Size { - private int widthField; - - private bool widthFieldSpecified; - - private int heightField; - - private bool heightFieldSpecified; - - private bool isAspectRatioField; - - private bool isAspectRatioFieldSpecified; - /// The width of the AdUnit, LineItem or - /// Creative. + /// The duration of the VAST ad in milliseconds. This attribute is required. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public int width { + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public int duration { get { - return this.widthField; + return this.durationField; } set { - this.widthField = value; - this.widthSpecified = 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 widthSpecified { + public bool durationSpecified { get { - return this.widthFieldSpecified; + return this.durationFieldSpecified; } set { - this.widthFieldSpecified = value; + this.durationFieldSpecified = value; } } - /// The height of the AdUnit, LineItem - /// or Creative. + /// The IDs of the companion creatives that are associated with this creative. This + /// attribute is optional. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public int height { + [System.Xml.Serialization.XmlElementAttribute("companionCreativeIds", Order = 3)] + public long[] companionCreativeIds { get { - return this.heightField; + return this.companionCreativeIdsField; } set { - this.heightField = value; - this.heightSpecified = true; + this.companionCreativeIdsField = value; } } - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool heightSpecified { + /// 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 = 4)] + public ConversionEvent_TrackingUrlsMapEntry[] trackingUrls { get { - return this.heightFieldSpecified; + return this.trackingUrlsField; } set { - this.heightFieldSpecified = value; + this.trackingUrlsField = value; } } - /// True if this size represents an aspect ratio, false otherwise. + /// 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 = 2)] - public bool isAspectRatio { + [System.Xml.Serialization.XmlElementAttribute(Order = 5)] + public string vastPreviewUrl { get { - return this.isAspectRatioField; + return this.vastPreviewUrlField; } set { - this.isAspectRatioField = value; - this.isAspectRatioSpecified = true; + this.vastPreviewUrlField = value; + } + } + + /// 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; } } /// true, if a value is specified for , false otherwise. + /// cref="sslScanResult" />, false otherwise.
[System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool isAspectRatioSpecified { + public bool sslScanResultSpecified { get { - return this.isAspectRatioFieldSpecified; + return this.sslScanResultFieldSpecified; } set { - this.isAspectRatioFieldSpecified = value; + this.sslScanResultFieldSpecified = 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. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ClickTag { - private string nameField; - - private string urlField; - /// Name of the click tag, follows the regex "clickTag\\d*" + /// 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 = 0)] - public string name { + [System.Xml.Serialization.XmlElementAttribute(Order = 7)] + public SslManualOverride sslManualOverride { get { - return this.nameField; + return this.sslManualOverrideField; } set { - this.nameField = value; + this.sslManualOverrideField = value; + this.sslManualOverrideSpecified = true; } } - /// URL of the click tag. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public string url { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool sslManualOverrideSpecified { get { - return this.urlField; + return this.sslManualOverrideFieldSpecified; } set { - this.urlField = value; + this.sslManualOverrideFieldSpecified = value; } } } - /// Image densities. + /// The types of VAST ads that a VastRedirectCreative can point to. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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. + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum VastRedirectType { + /// The VAST XML contains only linear ads. /// - 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. + LINEAR = 0, + /// The VAST XML contains only nonlinear ads. /// - 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. + NON_LINEAR = 1, + /// The VAST XML contains both linear and nonlinear ads. /// - TWO_TO_ONE = 2, + LINEAR_AND_NON_LINEAR = 2, + } + + + /// Enum to store the creative SSL compatibility scan result. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum SslScanResult { /// The value returned if the actual value is not exposed by the requested API /// version. /// - UNKNOWN = 3, + UNKNOWN = 0, + UNSCANNED = 1, + SCANNED_SSL = 2, + SCANNED_NON_SSL = 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. + /// Enum to store the creative SSL compatibility manual override. Its three states + /// are similar to that of SslScanResult. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class CustomCreativeAsset { - private string macroNameField; - - private CreativeAsset assetField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class UnsupportedCreative : Creative { + private string unsupportedCreativeTypeField; - /// 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%%". + /// The creative type that is unsupported by this API version. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public string macroName { - get { - return this.macroNameField; - } - set { - this.macroNameField = value; - } - } - - /// The asset. This attribute is required. To view the asset, use CreativeAsset#assetUrl. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public CreativeAsset asset { + public string unsupportedCreativeType { get { - return this.assetField; + return this.unsupportedCreativeTypeField; } set { - this.assetField = value; + this.unsupportedCreativeTypeField = value; } } } - /// Metadata for a video asset. + /// A Creative that is served by a 3rd-party vendor. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class VideoMetadata { - private ScalableType scalableTypeField; - - private bool scalableTypeFieldSpecified; - - private int durationField; - - private bool durationFieldSpecified; - - private int bitRateField; - - private bool bitRateFieldSpecified; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class ThirdPartyCreative : Creative { + private string snippetField; - private int minimumBitRateField; + private string expandedSnippetField; - private bool minimumBitRateFieldSpecified; + private SslScanResult sslScanResultField; - private int maximumBitRateField; + private bool sslScanResultFieldSpecified; - private bool maximumBitRateFieldSpecified; + private SslManualOverride sslManualOverrideField; - private Size sizeField; + private bool sslManualOverrideFieldSpecified; - private MimeType mimeTypeField; + private LockedOrientation lockedOrientationField; - private bool mimeTypeFieldSpecified; + private bool lockedOrientationFieldSpecified; - private VideoDeliveryType deliveryTypeField; + private bool isSafeFrameCompatibleField; - private bool deliveryTypeFieldSpecified; + private bool isSafeFrameCompatibleFieldSpecified; - private string[] codecsField; + private string[] thirdPartyImpressionTrackingUrlsField; - /// The scalable type of the asset. This attribute is required. + /// The HTML snippet that this creative delivers. This attribute is required. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public ScalableType scalableType { + public string snippet { get { - return this.scalableTypeField; + return this.snippetField; } set { - this.scalableTypeField = value; - this.scalableTypeSpecified = true; + this.snippetField = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool scalableTypeSpecified { + /// 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.scalableTypeFieldSpecified; + return this.expandedSnippetField; } set { - this.scalableTypeFieldSpecified = value; + this.expandedSnippetField = value; } } - /// The duration of the asset in milliseconds. This attribute is required. + /// The SSL compatibility scan result for this creative.

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

///
- [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public int duration { + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public SslScanResult sslScanResult { get { - return this.durationField; + return this.sslScanResultField; } set { - this.durationField = value; - this.durationSpecified = 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 durationSpecified { + public bool sslScanResultSpecified { get { - return this.durationFieldSpecified; + return this.sslScanResultFieldSpecified; } set { - this.durationFieldSpecified = value; + this.sslScanResultFieldSpecified = 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. + /// 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 int bitRate { + [System.Xml.Serialization.XmlElementAttribute(Order = 3)] + public SslManualOverride sslManualOverride { get { - return this.bitRateField; + return this.sslManualOverrideField; } set { - this.bitRateField = value; - this.bitRateSpecified = 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 bitRateSpecified { + public bool sslManualOverrideSpecified { get { - return this.bitRateFieldSpecified; + return this.sslManualOverrideFieldSpecified; } set { - this.bitRateFieldSpecified = value; + this.sslManualOverrideFieldSpecified = value; } } - /// The minimum bitrate of the video in kbps. Only set this if the asset can play at - /// a range of bit rates. + /// A locked orientation for this creative to be displayed in. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public int minimumBitRate { + [System.Xml.Serialization.XmlElementAttribute(Order = 4)] + public LockedOrientation lockedOrientation { get { - return this.minimumBitRateField; + return this.lockedOrientationField; } set { - this.minimumBitRateField = value; - this.minimumBitRateSpecified = 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 minimumBitRateSpecified { + public bool lockedOrientationSpecified { get { - return this.minimumBitRateFieldSpecified; + return this.lockedOrientationFieldSpecified; } set { - this.minimumBitRateFieldSpecified = value; + this.lockedOrientationFieldSpecified = value; } } - /// The maximum bitrate of the video in kbps. Only set this if the asset can play at - /// a range of bit rates. + /// Whether the Creative is compatible for SafeFrame + /// rendering.

This attribute is optional and defaults to true.

///
- [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public int maximumBitRate { + [System.Xml.Serialization.XmlElementAttribute(Order = 5)] + public bool isSafeFrameCompatible { get { - return this.maximumBitRateField; + return this.isSafeFrameCompatibleField; } set { - this.maximumBitRateField = value; - this.maximumBitRateSpecified = true; + this.isSafeFrameCompatibleField = value; + this.isSafeFrameCompatibleSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="isSafeFrameCompatible" />, false otherwise.
[System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool maximumBitRateSpecified { + public bool isSafeFrameCompatibleSpecified { get { - return this.maximumBitRateFieldSpecified; + return this.isSafeFrameCompatibleFieldSpecified; } set { - this.maximumBitRateFieldSpecified = value; + this.isSafeFrameCompatibleFieldSpecified = value; } } - /// The size (width and height) of the asset. This attribute is required. + /// A list of impression tracking URLs to ping when this creative is displayed. This + /// field is optional. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 5)] - public Size size { + [System.Xml.Serialization.XmlElementAttribute("thirdPartyImpressionTrackingUrls", Order = 6)] + public string[] thirdPartyImpressionTrackingUrls { get { - return this.sizeField; + return this.thirdPartyImpressionTrackingUrlsField; } set { - this.sizeField = value; + this.thirdPartyImpressionTrackingUrlsField = value; } } + } - /// The mime type of the asset. This attribute is required. + + /// Describes the orientation that a creative should be served with. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum LockedOrientation { + /// The value returned if the actual value is not exposed by the requested API + /// version. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 6)] - public MimeType mimeType { + UNKNOWN = 0, + FREE_ORIENTATION = 1, + PORTRAIT_ONLY = 2, + LANDSCAPE_ONLY = 3, + } + + + /// A Creative that is created by the specified creative template. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public long creativeTemplateId { get { - return this.mimeTypeField; + return this.creativeTemplateIdField; } set { - this.mimeTypeField = value; - this.mimeTypeSpecified = true; + this.creativeTemplateIdField = value; + this.creativeTemplateIdSpecified = 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 mimeTypeSpecified { + public bool creativeTemplateIdSpecified { get { - return this.mimeTypeFieldSpecified; + return this.creativeTemplateIdFieldSpecified; } set { - this.mimeTypeFieldSpecified = value; + this.creativeTemplateIdFieldSpecified = value; } } - /// The delivery type of the asset. This attribute is required. + /// true if this template instantiated creative is interstitial. This + /// attribute is read-only and is assigned by Google based on the creative template. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 7)] - public VideoDeliveryType deliveryType { + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public bool isInterstitial { get { - return this.deliveryTypeField; + return this.isInterstitialField; } set { - this.deliveryTypeField = value; - this.deliveryTypeSpecified = 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 deliveryTypeSpecified { + public bool isInterstitialSpecified { get { - return this.deliveryTypeFieldSpecified; + return this.isInterstitialFieldSpecified; } set { - this.deliveryTypeFieldSpecified = value; + this.isInterstitialFieldSpecified = value; } } - /// The codecs of the asset. This attribute is optional and defaults to an empty - /// list. + /// 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. /// - [System.Xml.Serialization.XmlElementAttribute("codecs", Order = 8)] - public string[] codecs { + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public bool isNativeEligible { get { - return this.codecsField; + return this.isNativeEligibleField; } set { - this.codecsField = value; + this.isNativeEligibleField = value; + this.isNativeEligibleSpecified = true; } } - } - - - /// The different ways a video/flash can scale. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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, - } + /// 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; + } + } - /// The video delivery type. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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 RTMP. + /// Whether the Creative is compatible for SafeFrame + /// rendering.

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

///
- STREAMING = 2, - } - - - /// Base asset properties. - /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(RedirectAsset))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(VideoRedirectAsset))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public abstract partial class Asset { - } - + [System.Xml.Serialization.XmlElementAttribute(Order = 3)] + public bool isSafeFrameCompatible { + get { + return this.isSafeFrameCompatibleField; + } + set { + this.isSafeFrameCompatibleField = value; + this.isSafeFrameCompatibleSpecified = true; + } + } - /// An externally hosted asset. - /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(VideoRedirectAsset))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public abstract partial class RedirectAsset : Asset { - private string redirectUrlField; + /// 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 where the asset is hosted. + /// 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 = 0)] - public string redirectUrl { + [System.Xml.Serialization.XmlElementAttribute(Order = 4)] + public string destinationUrl { get { - return this.redirectUrlField; + return this.destinationUrlField; } set { - this.redirectUrlField = value; + this.destinationUrlField = value; } } - } - - - /// An externally-hosted video asset. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class VideoRedirectAsset : RedirectAsset { - private VideoMetadata metadataField; - /// Metadata related to the asset. This attribute is required. + /// Stores values of CreativeTemplateVariable + /// in the CreativeTemplate. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public VideoMetadata metadata { + [System.Xml.Serialization.XmlElementAttribute("creativeTemplateVariableValues", Order = 5)] + public BaseCreativeTemplateVariableValue[] creativeTemplateVariableValues { get { - return this.metadataField; + return this.creativeTemplateVariableValuesField; } set { - this.metadataField = value; + this.creativeTemplateVariableValuesField = value; } } - } - - - /// This represents an entry in a map with a key of type ConversionEvent and value - /// of type TrackingUrls. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ConversionEvent_TrackingUrlsMapEntry { - private ConversionEvent keyField; - - private bool keyFieldSpecified; - private string[] valueField; - - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public ConversionEvent key { + /// 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.keyField; + return this.sslScanResultField; } set { - this.keyField = value; - this.keySpecified = 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 keySpecified { + public bool sslScanResultSpecified { get { - return this.keyFieldSpecified; + return this.sslScanResultFieldSpecified; } set { - this.keyFieldSpecified = value; + this.sslScanResultFieldSpecified = value; } } - [System.Xml.Serialization.XmlArrayAttribute(Order = 1)] - [System.Xml.Serialization.XmlArrayItemAttribute("urls", IsNullable = false)] - public string[] value { + /// 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.valueField; + return this.sslManualOverrideField; } set { - this.valueField = value; + this.sslManualOverrideField = value; + this.sslManualOverrideSpecified = true; } } - } - - /// All possible tracking event types. Not all events are supported by every kind of - /// creative. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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. - /// - FULLY_VIEWABLE_AUDIBLE_HALF_DURATION_IMPRESSION = 26, - } - - - /// A fallback swiffy asset used for flash creatives. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class SwiffyFallbackAsset { - private CreativeAsset assetField; - - private Html5Feature[] html5FeaturesField; - - private string[] localizedInfoMessagesField; - - /// The Swiffy asset. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public CreativeAsset asset { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool sslManualOverrideSpecified { get { - return this.assetField; + return this.sslManualOverrideFieldSpecified; } set { - this.assetField = value; + this.sslManualOverrideFieldSpecified = value; } } - /// A list of HTML5 features required to play this Swiffy - /// fallback asset correctly. + /// A locked orientation for this creative to be displayed in. /// - [System.Xml.Serialization.XmlElementAttribute("html5Features", Order = 1)] - public Html5Feature[] html5Features { + [System.Xml.Serialization.XmlElementAttribute(Order = 8)] + public LockedOrientation lockedOrientation { get { - return this.html5FeaturesField; + return this.lockedOrientationField; } set { - this.html5FeaturesField = value; + this.lockedOrientationField = value; + this.lockedOrientationSpecified = true; } } - /// A list of localized messages that give detailed information about the Swiffy - /// conversion. Does not contain error or warning messages. - /// - [System.Xml.Serialization.XmlElementAttribute("localizedInfoMessages", Order = 2)] - public string[] localizedInfoMessages { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool lockedOrientationSpecified { get { - return this.localizedInfoMessagesField; + return this.lockedOrientationFieldSpecified; } set { - this.localizedInfoMessagesField = value; + this.lockedOrientationFieldSpecified = value; } } } - /// An HTML5 features required by HTML5 assets. + /// 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.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum Html5Feature { - /// Requires a basic SVG animation. - /// - BASIC_SVG = 0, - /// Requires support for SVG filter based animation. - /// - SVG_FILTERS = 1, - /// The feature is not known or defined in newer versions. - /// - UNKNOWN = 2, + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class ProgrammaticCreative : Creative { } - /// Represents a child asset in RichMediaStudioCreative. + /// 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.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class RichMediaStudioChildAssetProperty { - private string nameField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class LegacyDfpCreative : Creative { + } - private RichMediaStudioChildAssetPropertyType typeField; - private bool typeFieldSpecified; + /// A Creative hosted by Campaign Manager.

Similar to third-party + /// creatives, a Campaign Manager tag is used to retrieve a creative asset. However, + /// Campaign Manager 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.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class InternalRedirectCreative : Creative { + private LockedOrientation lockedOrientationField; - private long totalFileSizeField; + private bool lockedOrientationFieldSpecified; - private bool totalFileSizeFieldSpecified; + private Size assetSizeField; - private int widthField; + private string internalRedirectUrlField; - private bool widthFieldSpecified; + private bool overrideSizeField; - private int heightField; + private bool overrideSizeFieldSpecified; - private bool heightFieldSpecified; + private bool isInterstitialField; - private string urlField; + private bool isInterstitialFieldSpecified; - /// The name of the asset as known by Rich Media Studio. This attribute is readonly. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public string name { - get { - return this.nameField; - } - set { - this.nameField = value; - } - } + private SslScanResult sslScanResultField; - /// Required file type of the asset. This attribute is readonly. + private bool sslScanResultFieldSpecified; + + private SslManualOverride sslManualOverrideField; + + private bool sslManualOverrideFieldSpecified; + + private string[] thirdPartyImpressionTrackingUrlsField; + + /// A locked orientation for this creative to be displayed in. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public RichMediaStudioChildAssetPropertyType type { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public LockedOrientation lockedOrientation { get { - return this.typeField; + return this.lockedOrientationField; } set { - this.typeField = value; - this.typeSpecified = true; + this.lockedOrientationField = value; + this.lockedOrientationSpecified = 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 lockedOrientationSpecified { get { - return this.typeFieldSpecified; + return this.lockedOrientationFieldSpecified; } set { - this.typeFieldSpecified = value; + this.lockedOrientationFieldSpecified = value; } } - /// The total size of the asset in bytes. This attribute is readonly. + /// 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 = 2)] - public long totalFileSize { + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public Size assetSize { get { - return this.totalFileSizeField; + return this.assetSizeField; } set { - this.totalFileSizeField = value; - this.totalFileSizeSpecified = true; + this.assetSizeField = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool totalFileSizeSpecified { + /// 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 string internalRedirectUrl { get { - return this.totalFileSizeFieldSpecified; + return this.internalRedirectUrlField; } set { - this.totalFileSizeFieldSpecified = value; + this.internalRedirectUrlField = value; } } - /// Width of the widget in pixels. This attribute is readonly. + /// 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 int width { + public bool overrideSize { get { - return this.widthField; + return this.overrideSizeField; } set { - this.widthField = value; - this.widthSpecified = true; + this.overrideSizeField = value; + this.overrideSizeSpecified = 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 overrideSizeSpecified { get { - return this.widthFieldSpecified; + return this.overrideSizeFieldSpecified; } set { - this.widthFieldSpecified = value; + this.overrideSizeFieldSpecified = value; } } - /// Height of the widget in pixels. This attribute is readonly. + /// true if this internal redirect creative is interstitial. /// [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public int height { + public bool isInterstitial { get { - return this.heightField; + return this.isInterstitialField; } set { - this.heightField = value; - this.heightSpecified = 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 heightSpecified { + public bool isInterstitialSpecified { get { - return this.heightFieldSpecified; + return this.isInterstitialFieldSpecified; } set { - this.heightFieldSpecified = value; + this.isInterstitialFieldSpecified = value; } } - /// The URL of the asset. This attribute is readonly. + /// The SSL compatibility scan result for this creative.

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

///
[System.Xml.Serialization.XmlElementAttribute(Order = 5)] - public string url { - get { - return this.urlField; - } - set { - this.urlField = value; - } - } - } - - - /// Type of RichMediaStudioChildAssetProperty - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "RichMediaStudioChildAssetProperty.Type", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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, - } - - - /// 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.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public abstract partial class BaseCustomFieldValue { - private long customFieldIdField; - - private bool customFieldIdFieldSpecified; - - /// Id of the CustomField to which this value belongs. This attribute - /// is required. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public long customFieldId { + public SslScanResult sslScanResult { get { - return this.customFieldIdField; + return this.sslScanResultField; } set { - this.customFieldIdField = value; - this.customFieldIdSpecified = true; + this.sslScanResultField = value; + this.sslScanResultSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="sslScanResult" />, false otherwise.
[System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool customFieldIdSpecified { + public bool sslScanResultSpecified { get { - return this.customFieldIdFieldSpecified; + return this.sslScanResultFieldSpecified; } set { - this.customFieldIdFieldSpecified = value; + this.sslScanResultFieldSpecified = value; } } - } - - - /// A CustomFieldValue for a CustomField that has a CustomField#dataType of CustomFieldDataType#DROP_DOWN - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class DropDownCustomFieldValue : BaseCustomFieldValue { - private long customFieldOptionIdField; - - private bool customFieldOptionIdFieldSpecified; - /// The ID of the CustomFieldOption for this value. + /// 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 = 0)] - public long customFieldOptionId { + [System.Xml.Serialization.XmlElementAttribute(Order = 6)] + public SslManualOverride sslManualOverride { get { - return this.customFieldOptionIdField; + return this.sslManualOverrideField; } set { - this.customFieldOptionIdField = value; - this.customFieldOptionIdSpecified = true; + 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 customFieldOptionIdSpecified { + public bool sslManualOverrideSpecified { get { - return this.customFieldOptionIdFieldSpecified; + return this.sslManualOverrideFieldSpecified; } set { - this.customFieldOptionIdFieldSpecified = value; + this.sslManualOverrideFieldSpecified = value; } } - } - - - /// The value of a CustomField that does not have a CustomField#dataType of CustomFieldDataType#DROP_DOWN. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class CustomFieldValue : BaseCustomFieldValue { - private Value valueField; - /// 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
+ /// A list of impression tracking URLs to ping when this creative is displayed. This + /// field is optional. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public Value value { + [System.Xml.Serialization.XmlElementAttribute("thirdPartyImpressionTrackingUrls", Order = 7)] + public string[] thirdPartyImpressionTrackingUrls { get { - return this.valueField; + return this.thirdPartyImpressionTrackingUrlsField; } set { - this.valueField = value; + this.thirdPartyImpressionTrackingUrlsField = 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. + /// 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.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class AppliedLabel { - private long labelIdField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class Html5Creative : Creative { + private bool overrideSizeField; - private bool labelIdFieldSpecified; + private bool overrideSizeFieldSpecified; - private bool isNegatedField; + private string[] thirdPartyImpressionTrackingUrlsField; - private bool isNegatedFieldSpecified; + private string thirdPartyClickTrackingUrlField; - /// The ID of a created Label. + private LockedOrientation lockedOrientationField; + + private bool lockedOrientationFieldSpecified; + + private SslScanResult sslScanResultField; + + 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 long labelId { + public bool overrideSize { get { - return this.labelIdField; + return this.overrideSizeField; } set { - this.labelIdField = value; - this.labelIdSpecified = true; + this.overrideSizeField = value; + this.overrideSizeSpecified = 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 overrideSizeSpecified { get { - return this.labelIdFieldSpecified; + return this.overrideSizeFieldSpecified; } set { - this.labelIdFieldSpecified = value; + this.overrideSizeFieldSpecified = value; } } - /// isNegated should be set to true to negate the effects - /// of labelId. + /// Impression tracking URLs to ping when this creative is displayed. This field is + /// optional. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public bool isNegated { + [System.Xml.Serialization.XmlElementAttribute("thirdPartyImpressionTrackingUrls", Order = 1)] + public string[] thirdPartyImpressionTrackingUrls { get { - return this.isNegatedField; + return this.thirdPartyImpressionTrackingUrlsField; } set { - this.isNegatedField = value; - this.isNegatedSpecified = true; + this.thirdPartyImpressionTrackingUrlsField = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool isNegatedSpecified { + /// A click tracking URL to ping when this creative is clicked. This field is + /// optional. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public string thirdPartyClickTrackingUrl { get { - return this.isNegatedFieldSpecified; + return this.thirdPartyClickTrackingUrlField; } set { - this.isNegatedFieldSpecified = value; + this.thirdPartyClickTrackingUrlField = value; } } - } - - /// 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(BaseFlashRedirectCreative))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(FlashRedirectOverlayCreative))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(FlashRedirectCreative))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(BaseFlashCreative))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(FlashOverlayCreative))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(FlashCreative))] - [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.Xml.Serialization.XmlIncludeAttribute(typeof(AdMobBackfillCreative))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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[] policyViolationsField; - - private AppliedLabel[] appliedLabelsField; - - private DateTime lastModifiedDateTimeField; - - private BaseCustomFieldValue[] customFieldValuesField; - - /// The ID of the advertiser that owns the creative. This attribute is required. + /// A locked orientation for this creative to be displayed in. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public long advertiserId { + [System.Xml.Serialization.XmlElementAttribute(Order = 3)] + public LockedOrientation lockedOrientation { get { - return this.advertiserIdField; + return this.lockedOrientationField; } set { - this.advertiserIdField = value; - this.advertiserIdSpecified = 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 advertiserIdSpecified { + public bool lockedOrientationSpecified { get { - return this.advertiserIdFieldSpecified; + return this.lockedOrientationFieldSpecified; } set { - this.advertiserIdFieldSpecified = value; + this.lockedOrientationFieldSpecified = 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. + /// The SSL compatibility scan result of this creative.

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

///
- [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public long id { + [System.Xml.Serialization.XmlElementAttribute(Order = 4)] + 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 name of the creative. This attribute is required and has a maximum length of - /// 255 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 = 2)] - public string name { + [System.Xml.Serialization.XmlElementAttribute(Order = 5)] + public SslManualOverride sslManualOverride { get { - return this.nameField; + return this.sslManualOverrideField; } set { - this.nameField = value; + this.sslManualOverrideField = value; + this.sslManualOverrideSpecified = true; } } - /// 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 { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool sslManualOverrideSpecified { get { - return this.sizeField; + return this.sslManualOverrideFieldSpecified; } set { - this.sizeField = value; + this.sslManualOverrideFieldSpecified = value; } } - /// The URL of the creative for previewing the media. This attribute is read-only - /// and is assigned by Google when a creative is created. + /// Whether the Creative is compatible for SafeFrame + /// rendering.

This attribute is optional and defaults to true.

///
- [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public string previewUrl { + [System.Xml.Serialization.XmlElementAttribute(Order = 6)] + public bool isSafeFrameCompatible { get { - return this.previewUrlField; + return this.isSafeFrameCompatibleField; } set { - this.previewUrlField = value; + this.isSafeFrameCompatibleField = value; + this.isSafeFrameCompatibleSpecified = true; } } - /// Set of policy violations detected for this creative. This attribute is - /// read-only. - /// - [System.Xml.Serialization.XmlElementAttribute("policyViolations", Order = 5)] - public CreativePolicyViolation[] policyViolations { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool isSafeFrameCompatibleSpecified { get { - return this.policyViolationsField; + return this.isSafeFrameCompatibleFieldSpecified; } set { - this.policyViolationsField = value; + this.isSafeFrameCompatibleFieldSpecified = value; } } - /// The set of labels applied to this creative. + /// 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("appliedLabels", Order = 6)] - public AppliedLabel[] appliedLabels { + [System.Xml.Serialization.XmlElementAttribute(Order = 7)] + public CreativeAsset html5Asset { get { - return this.appliedLabelsField; + return this.html5AssetField; } set { - this.appliedLabelsField = value; + this.html5AssetField = value; } } + } - /// The date and time this creative was last modified. + + /// 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(AspectRatioImageCreative))] + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public abstract partial class HasDestinationUrlCreative : Creative { + private string destinationUrlField; + + private DestinationUrlType destinationUrlTypeField; + + 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 = 7)] - public DateTime lastModifiedDateTime { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public string destinationUrl { get { - return this.lastModifiedDateTimeField; + return this.destinationUrlField; } set { - this.lastModifiedDateTimeField = value; + this.destinationUrlField = value; } } - /// The values of the custom fields associated with this creative. + /// 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("customFieldValues", Order = 8)] - public BaseCustomFieldValue[] customFieldValues { + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public DestinationUrlType destinationUrlType { get { - return this.customFieldValuesField; + return this.destinationUrlTypeField; } set { - this.customFieldValuesField = value; + this.destinationUrlTypeField = value; + this.destinationUrlTypeSpecified = true; + } + } + + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool destinationUrlTypeSpecified { + get { + return this.destinationUrlTypeFieldSpecified; + } + set { + this.destinationUrlTypeFieldSpecified = 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.

+ /// The valid actions that a destination URL may perform if the user clicks on the + /// ad. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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, - /// Phishing found in creative or landing page.

For more information see here.

+ [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum DestinationUrlType { + /// The value returned if the actual value is not exposed by the requested API + /// version. /// - PHISHING = 7, - /// The creative prompts the user to download a file.

For more information see here

+ UNKNOWN = 0, + /// Navigate to a web page. (a.k.a. "Click-through URL"). /// - DOWNLOAD_PROMPT_IN_CREATIVE = 9, - /// The creative sets an unauthorized cookie on a Google domain.

For more - /// information see here

+ CLICK_TO_WEB = 1, + /// Start an application. /// - UNAUTHORIZED_COOKIE_DETECTED = 10, - /// The creative has been temporarily paused while we investigate. + CLICK_TO_APP = 2, + /// Make a phone call. /// - TEMPORARY_PAUSE_FOR_VENDOR_INVESTIGATION = 11, - /// 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 = 8, + NONE = 4, } - /// A Creative that points to an externally hosted VAST ad and is - /// served via VAST XML as a VAST Wrapper. + /// A Creative that contains an arbitrary HTML snippet and file assets. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class VastRedirectCreative : Creative { - private string vastXmlUrlField; - - private VastRedirectType vastRedirectTypeField; - - private bool vastRedirectTypeFieldSpecified; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class CustomCreative : HasDestinationUrlCreative { + private string htmlSnippetField; - private int durationField; + private CustomCreativeAsset[] customCreativeAssetsField; - private bool durationFieldSpecified; + private bool isInterstitialField; - private long[] companionCreativeIdsField; + private bool isInterstitialFieldSpecified; - private ConversionEvent_TrackingUrlsMapEntry[] trackingUrlsField; + private LockedOrientation lockedOrientationField; - private string vastPreviewUrlField; + private bool lockedOrientationFieldSpecified; private SslScanResult sslScanResultField; @@ -7127,113 +6913,95 @@ public partial class VastRedirectCreative : Creative { private bool sslManualOverrideFieldSpecified; - /// The URL where the 3rd party VAST XML is hosted. This attribute is required. + private bool isSafeFrameCompatibleField; + + private bool isSafeFrameCompatibleFieldSpecified; + + private string[] thirdPartyImpressionTrackingUrlsField; + + /// The HTML snippet that this creative delivers. This attribute is required. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public string vastXmlUrl { + public string htmlSnippet { get { - return this.vastXmlUrlField; + return this.htmlSnippetField; } set { - this.vastXmlUrlField = value; + this.htmlSnippetField = value; } } - /// The type of VAST ad that this redirects to. This attribute is required. + /// A list of file assets that are associated with this creative, and can be + /// referenced in the snippet. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public VastRedirectType vastRedirectType { - get { - return this.vastRedirectTypeField; - } - set { - this.vastRedirectTypeField = value; - this.vastRedirectTypeSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool vastRedirectTypeSpecified { + [System.Xml.Serialization.XmlElementAttribute("customCreativeAssets", Order = 1)] + public CustomCreativeAsset[] customCreativeAssets { get { - return this.vastRedirectTypeFieldSpecified; + return this.customCreativeAssetsField; } set { - this.vastRedirectTypeFieldSpecified = value; + this.customCreativeAssetsField = value; } } - /// The duration of the VAST ad in milliseconds. This attribute is required. + /// 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 int duration { + public bool isInterstitial { get { - return this.durationField; + return this.isInterstitialField; } set { - this.durationField = value; - this.durationSpecified = 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 durationSpecified { - get { - return this.durationFieldSpecified; - } - set { - this.durationFieldSpecified = value; - } - } - - /// 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 { + public bool isInterstitialSpecified { get { - return this.companionCreativeIdsField; + return this.isInterstitialFieldSpecified; } set { - this.companionCreativeIdsField = value; + this.isInterstitialFieldSpecified = value; } } - /// A map from ConversionEvent to a list of URLs that will be pinged - /// when the event happens. This attribute is optional. + /// A locked orientation for this creative to be displayed in. /// - [System.Xml.Serialization.XmlElementAttribute("trackingUrls", Order = 4)] - public ConversionEvent_TrackingUrlsMapEntry[] trackingUrls { + [System.Xml.Serialization.XmlElementAttribute(Order = 3)] + public LockedOrientation lockedOrientation { get { - return this.trackingUrlsField; + return this.lockedOrientationField; } set { - this.trackingUrlsField = value; + this.lockedOrientationField = value; + this.lockedOrientationSpecified = true; } } - /// 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 = 5)] - public string vastPreviewUrl { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool lockedOrientationSpecified { get { - return this.vastPreviewUrlField; + return this.lockedOrientationFieldSpecified; } set { - this.vastPreviewUrlField = value; + this.lockedOrientationFieldSpecified = value; } } - /// The SSL compatibility scan result for this creative.

This attribute is + ///

The SSL compatibility scan result of this creative.

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

///
- [System.Xml.Serialization.XmlElementAttribute(Order = 6)] + [System.Xml.Serialization.XmlElementAttribute(Order = 4)] public SslScanResult sslScanResult { get { return this.sslScanResultField; @@ -7261,7 +7029,7 @@ public bool sslScanResultSpecified { /// attribute is optional and defaults to SslManualOverride#NO_OVERRIDE.

///
- [System.Xml.Serialization.XmlElementAttribute(Order = 7)] + [System.Xml.Serialization.XmlElementAttribute(Order = 5)] public SslManualOverride sslManualOverride { get { return this.sslManualOverrideField; @@ -7284,635 +7052,734 @@ public bool sslManualOverrideSpecified { this.sslManualOverrideFieldSpecified = value; } } - } - - - /// The types of VAST ads that a VastRedirectCreative can point to. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum SslScanResult { - /// The value returned if the actual value is not exposed by the requested API - /// version. + /// Whether the Creative is compatible for SafeFrame + /// rendering.

This attribute is optional and defaults to true.

///
- UNKNOWN = 0, - UNSCANNED = 1, - SCANNED_SSL = 2, - SCANNED_NON_SSL = 3, - } + [System.Xml.Serialization.XmlElementAttribute(Order = 6)] + 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; + } + } - /// Enum to store the creative SSL compatibility manual override. Its three states - /// are similar to that of SslScanResult. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum SslManualOverride { - /// The value returned if the actual value is not exposed by the requested API - /// version. + /// A list of impression tracking URLs to ping when this creative is displayed. This + /// field is optional. /// - UNKNOWN = 0, - NO_OVERRIDE = 1, - SSL_COMPATIBLE = 2, - NOT_SSL_COMPATIBLE = 3, + [System.Xml.Serialization.XmlElementAttribute("thirdPartyImpressionTrackingUrls", Order = 7)] + public string[] thirdPartyImpressionTrackingUrls { + get { + return this.thirdPartyImpressionTrackingUrlsField; + } + set { + this.thirdPartyImpressionTrackingUrlsField = value; + } + } } - /// 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. + /// 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.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class UnsupportedCreative : Creative { - private string unsupportedCreativeTypeField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public abstract partial class BaseVideoCreative : HasDestinationUrlCreative { + private int durationField; - /// The creative type that is unsupported by this API version. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public string unsupportedCreativeType { - get { - return this.unsupportedCreativeTypeField; - } - set { - this.unsupportedCreativeTypeField = value; - } - } - } + private bool durationFieldSpecified; + private bool allowDurationOverrideField; - /// A Creative that is served by a 3rd-party vendor. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ThirdPartyCreative : Creative { - private string snippetField; + private bool allowDurationOverrideFieldSpecified; - private string expandedSnippetField; + private ConversionEvent_TrackingUrlsMapEntry[] trackingUrlsField; - private SslScanResult sslScanResultField; + private long[] companionCreativeIdsField; - private bool sslScanResultFieldSpecified; + private string customParametersField; - private SslManualOverride sslManualOverrideField; + private SkippableAdType skippableAdTypeField; - private bool sslManualOverrideFieldSpecified; + private bool skippableAdTypeFieldSpecified; - private LockedOrientation lockedOrientationField; + private string vastPreviewUrlField; - private bool lockedOrientationFieldSpecified; + private SslScanResult sslScanResultField; - private bool isSafeFrameCompatibleField; + private bool sslScanResultFieldSpecified; - private bool isSafeFrameCompatibleFieldSpecified; + private SslManualOverride sslManualOverrideField; - private string[] thirdPartyImpressionTrackingUrlsField; + private bool sslManualOverrideFieldSpecified; - /// The HTML snippet that this creative delivers. This attribute is required. + /// The expected duration of this creative in milliseconds. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public string snippet { + public int duration { get { - return this.snippetField; + return this.durationField; } set { - this.snippetField = value; + this.durationField = value; + this.durationSpecified = true; } } - /// 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 { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool durationSpecified { get { - return this.expandedSnippetField; + return this.durationFieldSpecified; } set { - this.expandedSnippetField = value; + this.durationFieldSpecified = value; } } - /// The SSL compatibility scan result for this creative.

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

+ /// Allows the creative duration to differ from the actual asset durations. This + /// attribute is optional. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public SslScanResult sslScanResult { + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public bool allowDurationOverride { get { - return this.sslScanResultField; + return this.allowDurationOverrideField; } set { - this.sslScanResultField = value; - this.sslScanResultSpecified = 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 sslScanResultSpecified { + public bool allowDurationOverrideSpecified { get { - return this.sslScanResultFieldSpecified; + return this.allowDurationOverrideFieldSpecified; } set { - this.sslScanResultFieldSpecified = value; + this.allowDurationOverrideFieldSpecified = value; } } - /// The manual override for the SSL compatibility of this creative.

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

+ /// 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 = 3)] - public SslManualOverride sslManualOverride { + [System.Xml.Serialization.XmlElementAttribute("trackingUrls", Order = 2)] + public ConversionEvent_TrackingUrlsMapEntry[] trackingUrls { get { - return this.sslManualOverrideField; + return this.trackingUrlsField; } set { - this.sslManualOverrideField = value; - this.sslManualOverrideSpecified = true; + this.trackingUrlsField = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool sslManualOverrideSpecified { + /// 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.sslManualOverrideFieldSpecified; + return this.companionCreativeIdsField; } set { - this.sslManualOverrideFieldSpecified = value; + this.companionCreativeIdsField = value; } } - /// A locked orientation for this creative to be displayed in. + /// 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 LockedOrientation lockedOrientation { + public string customParameters { get { - return this.lockedOrientationField; + return this.customParametersField; } set { - this.lockedOrientationField = value; - this.lockedOrientationSpecified = true; + this.customParametersField = value; + } + } + + /// The type of skippable ad. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 5)] + public SkippableAdType skippableAdType { + get { + return this.skippableAdTypeField; + } + set { + 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 lockedOrientationSpecified { + public bool skippableAdTypeSpecified { get { - return this.lockedOrientationFieldSpecified; + return this.skippableAdTypeFieldSpecified; } set { - this.lockedOrientationFieldSpecified = value; + this.skippableAdTypeFieldSpecified = value; } } - /// Whether the Creative is compatible for SafeFrame - /// rendering.

This attribute is optional and defaults to true.

+ /// 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 = 5)] - public bool isSafeFrameCompatible { + [System.Xml.Serialization.XmlElementAttribute(Order = 6)] + public string vastPreviewUrl { get { - return this.isSafeFrameCompatibleField; + return this.vastPreviewUrlField; } set { - this.isSafeFrameCompatibleField = value; - this.isSafeFrameCompatibleSpecified = true; + this.vastPreviewUrlField = value; + } + } + + /// The SSL compatibility scan result of this creative.

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

+ ///
+ [System.Xml.Serialization.XmlElementAttribute(Order = 7)] + public SslScanResult sslScanResult { + get { + return this.sslScanResultField; + } + set { + this.sslScanResultField = value; + this.sslScanResultSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="sslScanResult" />, false otherwise.
[System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool isSafeFrameCompatibleSpecified { + public bool sslScanResultSpecified { get { - return this.isSafeFrameCompatibleFieldSpecified; + return this.sslScanResultFieldSpecified; } set { - this.isSafeFrameCompatibleFieldSpecified = value; + this.sslScanResultFieldSpecified = value; } } - /// A list of impression tracking URLs to ping when this creative is displayed. This - /// field is optional. + /// The manual override for the SSL compatibility of this creative.

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

///
- [System.Xml.Serialization.XmlElementAttribute("thirdPartyImpressionTrackingUrls", Order = 6)] - public string[] thirdPartyImpressionTrackingUrls { + [System.Xml.Serialization.XmlElementAttribute(Order = 8)] + public SslManualOverride sslManualOverride { get { - return this.thirdPartyImpressionTrackingUrlsField; + return this.sslManualOverrideField; } set { - this.thirdPartyImpressionTrackingUrlsField = 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 the orientation that a creative should be served with. + /// The different types of skippable ads. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum LockedOrientation { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum SkippableAdType { /// 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, + /// Skippable ad type is disabled. + /// + DISABLED = 1, + /// Skippable ad type is enabled. + /// + ENABLED = 2, + /// Skippable in-stream ad type. + /// + INSTREAM_SELECT = 3, } - /// A Creative that is created by the specified creative template. + /// A Creative that contains externally hosted video ads and is served + /// via VAST XML. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class TemplateCreative : Creative { - private long creativeTemplateIdField; - - private bool creativeTemplateIdFieldSpecified; - - private bool isInterstitialField; - - private bool isInterstitialFieldSpecified; - - private bool isNativeEligibleField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class VideoRedirectCreative : BaseVideoCreative { + private VideoRedirectAsset[] videoAssetsField; - private bool isNativeEligibleFieldSpecified; + private VideoRedirectAsset mezzanineFileField; - private bool isSafeFrameCompatibleField; + /// The video creative assets. + /// + [System.Xml.Serialization.XmlElementAttribute("videoAssets", Order = 0)] + public VideoRedirectAsset[] videoAssets { + get { + return this.videoAssetsField; + } + set { + this.videoAssetsField = value; + } + } - private bool isSafeFrameCompatibleFieldSpecified; + /// The high quality mezzanine video asset. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public VideoRedirectAsset mezzanineFile { + get { + return this.mezzanineFileField; + } + set { + this.mezzanineFileField = value; + } + } + } - private string destinationUrlField; - private BaseCreativeTemplateVariableValue[] creativeTemplateVariableValuesField; + /// A Creative that contains Ad Manager hosted video ads and is served + /// via VAST XML. This creative is read-only. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class VideoCreative : BaseVideoCreative { + } - private SslScanResult sslScanResultField; - private bool sslScanResultFieldSpecified; + /// 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.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class SetTopBoxCreative : BaseVideoCreative { + private string externalAssetIdField; - private SslManualOverride sslManualOverrideField; + private string providerIdField; - private bool sslManualOverrideFieldSpecified; + private string[] availabilityRegionIdsField; - private LockedOrientation lockedOrientationField; + private DateTime licenseWindowStartDateTimeField; - private bool lockedOrientationFieldSpecified; + private DateTime licenseWindowEndDateTimeField; - /// Creative template ID that this creative is created from. + /// 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 long creativeTemplateId { + public string externalAssetId { get { - return this.creativeTemplateIdField; + return this.externalAssetIdField; } set { - this.creativeTemplateIdField = value; - this.creativeTemplateIdSpecified = true; + this.externalAssetIdField = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool creativeTemplateIdSpecified { + /// 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 { get { - return this.creativeTemplateIdFieldSpecified; + return this.providerIdField; } set { - this.creativeTemplateIdFieldSpecified = value; + this.providerIdField = value; } } - /// true if this template instantiated creative is interstitial. This - /// attribute is read-only and is assigned by Google based on the creative template. + /// 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 = 1)] - public bool isInterstitial { + [System.Xml.Serialization.XmlElementAttribute("availabilityRegionIds", Order = 2)] + public string[] availabilityRegionIds { get { - return this.isInterstitialField; + return this.availabilityRegionIdsField; } set { - this.isInterstitialField = value; - this.isInterstitialSpecified = true; + this.availabilityRegionIdsField = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool isInterstitialSpecified { + /// 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 = 3)] + public DateTime licenseWindowStartDateTime { get { - return this.isInterstitialFieldSpecified; + return this.licenseWindowStartDateTimeField; } set { - this.isInterstitialFieldSpecified = value; + this.licenseWindowStartDateTimeField = 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. + /// 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 = 2)] - public bool isNativeEligible { + [System.Xml.Serialization.XmlElementAttribute(Order = 4)] + public DateTime licenseWindowEndDateTime { get { - return this.isNativeEligibleField; + return this.licenseWindowEndDateTimeField; } set { - this.isNativeEligibleField = value; - this.isNativeEligibleSpecified = true; + this.licenseWindowEndDateTimeField = value; } } + } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool isNativeEligibleSpecified { + + /// 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.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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.isNativeEligibleFieldSpecified; + return this.imageUrlField; } set { - this.isNativeEligibleFieldSpecified = value; + this.imageUrlField = value; } } + } - /// Whether the Creative is compatible for SafeFrame - /// rendering.

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

+ + /// 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.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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(Order = 3)] - public bool isSafeFrameCompatible { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public Size assetSize { get { - return this.isSafeFrameCompatibleField; + return this.assetSizeField; } set { - this.isSafeFrameCompatibleField = value; - this.isSafeFrameCompatibleSpecified = true; + this.assetSizeField = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool isSafeFrameCompatibleSpecified { + /// Minimum suggested duration in milliseconds. This attribute is optional. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public int duration { get { - return this.isSafeFrameCompatibleFieldSpecified; + return this.durationField; } set { - this.isSafeFrameCompatibleFieldSpecified = value; + this.durationField = value; + this.durationSpecified = true; } } - /// 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 { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool durationSpecified { get { - return this.destinationUrlField; + return this.durationFieldSpecified; } set { - this.destinationUrlField = value; + this.durationFieldSpecified = value; } } - /// Stores values of CreativeTemplateVariable - /// in the CreativeTemplate. + /// The IDs of the companion creatives that are associated with this creative. This + /// attribute is optional. /// - [System.Xml.Serialization.XmlElementAttribute("creativeTemplateVariableValues", Order = 5)] - public BaseCreativeTemplateVariableValue[] creativeTemplateVariableValues { + [System.Xml.Serialization.XmlElementAttribute("companionCreativeIds", Order = 2)] + public long[] companionCreativeIds { get { - return this.creativeTemplateVariableValuesField; + return this.companionCreativeIdsField; } set { - this.creativeTemplateVariableValuesField = value; + this.companionCreativeIdsField = value; } } - /// The SSL compatibility scan result for this creative.

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

+ /// 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 = 6)] - public SslScanResult sslScanResult { + [System.Xml.Serialization.XmlElementAttribute("trackingUrls", Order = 3)] + public ConversionEvent_TrackingUrlsMapEntry[] trackingUrls { get { - return this.sslScanResultField; + return this.trackingUrlsField; } set { - this.sslScanResultField = value; - this.sslScanResultSpecified = true; + this.trackingUrlsField = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool sslScanResultSpecified { + /// 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.sslScanResultFieldSpecified; + return this.customParametersField; } set { - this.sslScanResultFieldSpecified = value; + this.customParametersField = value; } } - /// The manual override for the SSL compatibility of this creative.

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

+ /// 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 = 7)] - public SslManualOverride sslManualOverride { + [System.Xml.Serialization.XmlElementAttribute(Order = 5)] + public string vastPreviewUrl { get { - return this.sslManualOverrideField; + return this.vastPreviewUrlField; } set { - this.sslManualOverrideField = value; - this.sslManualOverrideSpecified = true; + this.vastPreviewUrlField = value; } } + } - /// 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; - } - } - /// A locked orientation for this creative to be displayed in. + /// A Creative that loads an image asset from a specified URL. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class ImageRedirectCreative : BaseImageRedirectCreative { + private string altTextField; + + private string thirdPartyImpressionUrlField; + + /// 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 = 8)] - public LockedOrientation lockedOrientation { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public string altText { get { - return this.lockedOrientationField; + return this.altTextField; } set { - this.lockedOrientationField = value; - this.lockedOrientationSpecified = true; + this.altTextField = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool lockedOrientationSpecified { + /// An impression tracking URL to ping when this creative is displayed. This field + /// is optional has a maximum length of 1024 characters. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public string thirdPartyImpressionUrl { get { - return this.lockedOrientationFieldSpecified; + return this.thirdPartyImpressionUrlField; } set { - this.lockedOrientationFieldSpecified = value; + this.thirdPartyImpressionUrlField = 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. + /// 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.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ProgrammaticCreative : Creative { - private bool isSafeFrameCompatibleField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public abstract partial class BaseImageCreative : HasDestinationUrlCreative { + private bool overrideSizeField; - private bool isSafeFrameCompatibleFieldSpecified; + private bool overrideSizeFieldSpecified; + + private CreativeAsset primaryImageAssetField; - /// true if this Creative is served in a - /// SafeFrame. This field is deprecated and will be removed in a future API version. + /// Allows the creative size to differ from the actual image asset size. This + /// attribute is optional. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public bool isSafeFrameCompatible { + public bool overrideSize { get { - return this.isSafeFrameCompatibleField; + return this.overrideSizeField; } set { - this.isSafeFrameCompatibleField = value; - this.isSafeFrameCompatibleSpecified = 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 isSafeFrameCompatibleSpecified { + public bool overrideSizeSpecified { get { - return this.isSafeFrameCompatibleFieldSpecified; + return this.overrideSizeFieldSpecified; } set { - this.isSafeFrameCompatibleFieldSpecified = value; + 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; } } } - /// A Creative that isn't supported by Google DFP, but was migrated - /// from DART. Creatives of this type cannot be created or modified. + /// 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.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class LegacyDfpCreative : Creative { - } + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class ImageOverlayCreative : BaseImageCreative { + private long[] companionCreativeIdsField; + private ConversionEvent_TrackingUrlsMapEntry[] trackingUrlsField; - /// A Creative hosted by Campaign Manager.

Similar to third-party - /// creatives, a Campaign Manager tag is used to retrieve a creative asset. However, - /// Campaign Manager 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.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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 string customParametersField; - private SslScanResult sslScanResultField; + private int durationField; - private bool sslScanResultFieldSpecified; + private bool durationFieldSpecified; - private SslManualOverride sslManualOverrideField; + private string vastPreviewUrlField; - private bool sslManualOverrideFieldSpecified; + /// 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("companionCreativeIds", Order = 0)] + public long[] companionCreativeIds { + get { + return this.companionCreativeIdsField; + } + set { + this.companionCreativeIdsField = value; + } + } - private string[] thirdPartyImpressionTrackingUrlsField; + /// 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 = 0)] + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] public LockedOrientation lockedOrientation { get { return this.lockedOrientationField; @@ -7936,176 +7803,287 @@ public bool lockedOrientationSpecified { } } - /// 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. + /// 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 Size assetSize { + [System.Xml.Serialization.XmlElementAttribute(Order = 3)] + public string customParameters { get { - return this.assetSizeField; + return this.customParametersField; } set { - this.assetSizeField = value; + this.customParametersField = 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. + /// Minimum suggested duration in milliseconds. This attribute is optional. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public string internalRedirectUrl { + [System.Xml.Serialization.XmlElementAttribute(Order = 4)] + public int duration { get { - return this.internalRedirectUrlField; + return this.durationField; } set { - this.internalRedirectUrlField = value; + this.durationField = value; + this.durationSpecified = true; } } - /// Allows the creative size to differ from the actual size specified in the - /// internal redirect's url. This attribute is optional. + /// 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; + } + } + + /// 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 = 3)] - public bool overrideSize { + [System.Xml.Serialization.XmlElementAttribute(Order = 5)] + public string vastPreviewUrl { get { - return this.overrideSizeField; + return this.vastPreviewUrlField; } set { - this.overrideSizeField = value; - this.overrideSizeSpecified = true; + this.vastPreviewUrlField = value; } } + } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool overrideSizeSpecified { + + /// A Creative that displays an image. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class ImageCreative : BaseImageCreative { + private string altTextField; + + private string thirdPartyImpressionUrlField; + + 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.overrideSizeFieldSpecified; + return this.altTextField; } set { - this.overrideSizeFieldSpecified = value; + this.altTextField = value; } } - /// true if this internal redirect creative is interstitial. + /// An impression tracking URL to ping when this creative is displayed. This field + /// is optional has a maximum length of 1024 characters. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public bool isInterstitial { + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public string thirdPartyImpressionUrl { get { - return this.isInterstitialField; + return this.thirdPartyImpressionUrlField; } set { - this.isInterstitialField = value; - this.isInterstitialSpecified = true; + this.thirdPartyImpressionUrlField = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool isInterstitialSpecified { + /// 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.isInterstitialFieldSpecified; + return this.secondaryImageAssetsField; } set { - this.isInterstitialFieldSpecified = value; + this.secondaryImageAssetsField = value; } } + } - /// The SSL compatibility scan result for this creative.

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

+ + /// A Creative intended for mobile platforms that displays an image, + /// whose 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.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class AspectRatioImageCreative : HasDestinationUrlCreative { + private CreativeAsset[] imageAssetsField; + + private string altTextField; + + private string thirdPartyImpressionUrlField; + + private bool overrideSizeField; + + private bool overrideSizeFieldSpecified; + + /// 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 = 5)] - public SslScanResult sslScanResult { + [System.Xml.Serialization.XmlElementAttribute("imageAssets", Order = 0)] + public CreativeAsset[] imageAssets { get { - return this.sslScanResultField; + return this.imageAssetsField; } set { - this.sslScanResultField = value; - this.sslScanResultSpecified = true; + this.imageAssetsField = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool sslScanResultSpecified { + /// 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.sslScanResultFieldSpecified; + return this.altTextField; } set { - this.sslScanResultFieldSpecified = value; + this.altTextField = value; } } - /// The manual override for the SSL compatibility of this creative.

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

+ /// An impression tracking URL to ping when this creative is displayed. This field + /// is optional has a maximum length of 1024 characters. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 6)] - public SslManualOverride sslManualOverride { + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public string thirdPartyImpressionUrl { get { - return this.sslManualOverrideField; + return this.thirdPartyImpressionUrlField; } set { - this.sslManualOverrideField = value; - this.sslManualOverrideSpecified = true; + this.thirdPartyImpressionUrlField = value; + } + } + + /// 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.overrideSizeField; + } + set { + 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 sslManualOverrideSpecified { + public bool overrideSizeSpecified { get { - return this.sslManualOverrideFieldSpecified; + return this.overrideSizeFieldSpecified; } set { - this.sslManualOverrideFieldSpecified = value; + this.overrideSizeFieldSpecified = value; } } + } - /// A list of impression tracking URLs to ping when this creative is displayed. This - /// field is optional. + + /// 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.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class ClickTrackingCreative : Creative { + private string clickTrackingUrlField; + + /// The click tracking URL. This attribute is required. /// - [System.Xml.Serialization.XmlElementAttribute("thirdPartyImpressionTrackingUrls", Order = 7)] - public string[] thirdPartyImpressionTrackingUrls { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public string clickTrackingUrl { get { - return this.thirdPartyImpressionTrackingUrlsField; + return this.clickTrackingUrlField; } set { - this.thirdPartyImpressionTrackingUrlsField = value; + this.clickTrackingUrlField = value; } } } - /// A Creative that contains a zipped HTML5 bundle asset, a list of - /// third party impression trackers, and a third party click tracker. + /// A Creative that is created by a Rich Media Studio. /// + [System.Xml.Serialization.XmlIncludeAttribute(typeof(RichMediaStudioCreative))] [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class Html5Creative : Creative { - private bool overrideSizeField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public abstract partial class BaseRichMediaStudioCreative : Creative { + private long studioCreativeIdField; - private bool overrideSizeFieldSpecified; + private bool studioCreativeIdFieldSpecified; - private string[] thirdPartyImpressionTrackingUrlsField; + private RichMediaStudioCreativeFormat creativeFormatField; - private string thirdPartyClickTrackingUrlField; + private bool creativeFormatFieldSpecified; - private LockedOrientation lockedOrientationField; + private RichMediaStudioCreativeArtworkType artworkTypeField; - private bool lockedOrientationFieldSpecified; + 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; + + private bool billingAttributeFieldSpecified; + + private RichMediaStudioChildAssetProperty[] richMediaStudioChildAssetPropertiesField; private SslScanResult sslScanResultField; @@ -8115,413 +8093,289 @@ public partial class Html5Creative : Creative { 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. + /// The creative ID as known by Rich Media Studio creative. This attribute is + /// readonly. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public bool overrideSize { + public long studioCreativeId { get { - return this.overrideSizeField; + return this.studioCreativeIdField; } set { - this.overrideSizeField = value; - this.overrideSizeSpecified = true; + this.studioCreativeIdField = value; + this.studioCreativeIdSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="studioCreativeId" />, false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool overrideSizeSpecified { + public bool studioCreativeIdSpecified { get { - return this.overrideSizeFieldSpecified; + return this.studioCreativeIdFieldSpecified; } set { - this.overrideSizeFieldSpecified = value; + this.studioCreativeIdFieldSpecified = value; } } - /// Impression tracking URLs to ping when this creative is displayed. This field is - /// optional. + /// The creative format of the Rich Media Studio creative. This attribute is + /// readonly. /// - [System.Xml.Serialization.XmlElementAttribute("thirdPartyImpressionTrackingUrls", Order = 1)] - public string[] thirdPartyImpressionTrackingUrls { + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public RichMediaStudioCreativeFormat creativeFormat { get { - return this.thirdPartyImpressionTrackingUrlsField; + return this.creativeFormatField; } set { - this.thirdPartyImpressionTrackingUrlsField = value; + this.creativeFormatField = value; + this.creativeFormatSpecified = true; } } - /// A click tracking URL to ping when this creative is clicked. This field is - /// optional. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public string thirdPartyClickTrackingUrl { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool creativeFormatSpecified { get { - return this.thirdPartyClickTrackingUrlField; + return this.creativeFormatFieldSpecified; } set { - this.thirdPartyClickTrackingUrlField = value; + this.creativeFormatFieldSpecified = value; } } - /// A locked orientation for this creative to be displayed in. + /// The type of artwork used in this creative. This attribute is readonly. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public LockedOrientation lockedOrientation { + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public RichMediaStudioCreativeArtworkType artworkType { get { - return this.lockedOrientationField; + return this.artworkTypeField; } set { - this.lockedOrientationField = value; - this.lockedOrientationSpecified = true; + this.artworkTypeField = value; + this.artworkTypeSpecified = 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 artworkTypeSpecified { get { - return this.lockedOrientationFieldSpecified; + return this.artworkTypeFieldSpecified; } set { - this.lockedOrientationFieldSpecified = value; + this.artworkTypeFieldSpecified = value; } } - /// The SSL compatibility scan result of this creative.

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

+ /// The total size of all assets in bytes. This attribute is readonly. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public SslScanResult sslScanResult { + [System.Xml.Serialization.XmlElementAttribute(Order = 3)] + public long totalFileSize { get { - return this.sslScanResultField; + return this.totalFileSizeField; } set { - this.sslScanResultField = value; - this.sslScanResultSpecified = true; + this.totalFileSizeField = value; + this.totalFileSizeSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="totalFileSize" />, false otherwise.
[System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool sslScanResultSpecified { + public bool totalFileSizeSpecified { get { - return this.sslScanResultFieldSpecified; + return this.totalFileSizeFieldSpecified; } set { - this.sslScanResultFieldSpecified = value; + this.totalFileSizeFieldSpecified = value; } } - /// The manual override for the SSL compatibility of this creative.

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

+ /// Ad tag keys. This attribute is optional and updatable. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 5)] - public SslManualOverride sslManualOverride { + [System.Xml.Serialization.XmlElementAttribute("adTagKeys", Order = 4)] + public string[] adTagKeys { get { - return this.sslManualOverrideField; + return this.adTagKeysField; } set { - this.sslManualOverrideField = value; - this.sslManualOverrideSpecified = true; + this.adTagKeysField = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool sslManualOverrideSpecified { + /// Custom key values. This attribute is optional and updatable. + /// + [System.Xml.Serialization.XmlElementAttribute("customKeyValues", Order = 5)] + public string[] customKeyValues { get { - return this.sslManualOverrideFieldSpecified; + return this.customKeyValuesField; } set { - this.sslManualOverrideFieldSpecified = value; + this.customKeyValuesField = value; } } - /// Whether the Creative is compatible for SafeFrame - /// rendering.

This attribute is optional and defaults to true.

+ /// The survey URL for this creative. This attribute is optional and updatable. /// [System.Xml.Serialization.XmlElementAttribute(Order = 6)] - public bool isSafeFrameCompatible { + public string surveyUrl { get { - return this.isSafeFrameCompatibleField; + return this.surveyUrlField; } set { - this.isSafeFrameCompatibleField = value; - this.isSafeFrameCompatibleSpecified = true; + this.surveyUrlField = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool isSafeFrameCompatibleSpecified { + /// 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.isSafeFrameCompatibleFieldSpecified; + return this.allImpressionsUrlField; } set { - this.isSafeFrameCompatibleFieldSpecified = value; + this.allImpressionsUrlField = 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. + /// 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 = 7)] - public CreativeAsset html5Asset { + [System.Xml.Serialization.XmlElementAttribute(Order = 8)] + public string richMediaImpressionsUrl { get { - return this.html5AssetField; + return this.richMediaImpressionsUrlField; } set { - this.html5AssetField = value; + this.richMediaImpressionsUrlField = value; } } - } - - - /// 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(BaseFlashRedirectCreative))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(FlashRedirectOverlayCreative))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(FlashRedirectCreative))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(BaseFlashCreative))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(FlashOverlayCreative))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(FlashCreative))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(AspectRatioImageCreative))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public abstract partial class HasDestinationUrlCreative : Creative { - private string destinationUrlField; - - private DestinationUrlType destinationUrlTypeField; - 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. + /// 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 = 0)] - public string destinationUrl { + [System.Xml.Serialization.XmlElementAttribute(Order = 9)] + public string backupImageImpressionsUrl { get { - return this.destinationUrlField; + return this.backupImageImpressionsUrlField; } set { - this.destinationUrlField = value; + this.backupImageImpressionsUrlField = 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. + /// 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 = 1)] - public DestinationUrlType destinationUrlType { + [System.Xml.Serialization.XmlElementAttribute(Order = 10)] + public string overrideCss { get { - return this.destinationUrlTypeField; + return this.overrideCssField; } set { - this.destinationUrlTypeField = value; - this.destinationUrlTypeSpecified = true; + this.overrideCssField = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool destinationUrlTypeSpecified { + /// 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.destinationUrlTypeFieldSpecified; + return this.requiredFlashPluginVersionField; } set { - this.destinationUrlTypeFieldSpecified = value; + this.requiredFlashPluginVersionField = value; } } - } - - - /// The valid actions that a destination URL may perform if the user clicks on the - /// ad. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum DestinationUrlType { - /// 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, - } - - - /// A Creative that contains an arbitrary HTML snippet and file assets. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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; - - private string[] thirdPartyImpressionTrackingUrlsField; - /// The HTML snippet that this creative delivers. This attribute is required. + /// The duration of the creative in milliseconds. This attribute is optional and + /// updatable. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public string htmlSnippet { + [System.Xml.Serialization.XmlElementAttribute(Order = 12)] + public int duration { get { - return this.htmlSnippetField; + return this.durationField; } set { - this.htmlSnippetField = value; + this.durationField = value; + this.durationSpecified = true; } } - /// 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 { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool durationSpecified { get { - return this.customCreativeAssetsField; + return this.durationFieldSpecified; } set { - this.customCreativeAssetsField = value; + this.durationFieldSpecified = 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. + /// The billing attribute associated with this creative. This attribute is read + /// only. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public bool isInterstitial { + [System.Xml.Serialization.XmlElementAttribute(Order = 13)] + public RichMediaStudioCreativeBillingAttribute billingAttribute { get { - return this.isInterstitialField; + return this.billingAttributeField; } set { - this.isInterstitialField = value; - this.isInterstitialSpecified = true; + this.billingAttributeField = value; + this.billingAttributeSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="billingAttribute" />, false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool isInterstitialSpecified { + public bool billingAttributeSpecified { get { - return this.isInterstitialFieldSpecified; + return this.billingAttributeFieldSpecified; } set { - this.isInterstitialFieldSpecified = value; + this.billingAttributeFieldSpecified = value; } } - /// A locked orientation for this creative to be displayed in. + /// The list of child assets associated with this creative. This attribute is read + /// only. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public LockedOrientation lockedOrientation { - get { - return this.lockedOrientationField; - } - set { - this.lockedOrientationField = value; - this.lockedOrientationSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool lockedOrientationSpecified { + [System.Xml.Serialization.XmlElementAttribute("richMediaStudioChildAssetProperties", Order = 14)] + public RichMediaStudioChildAssetProperty[] richMediaStudioChildAssetProperties { get { - return this.lockedOrientationFieldSpecified; + return this.richMediaStudioChildAssetPropertiesField; } set { - this.lockedOrientationFieldSpecified = value; + this.richMediaStudioChildAssetPropertiesField = value; } } /// The SSL compatibility scan result of this creative.

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

///
- [System.Xml.Serialization.XmlElementAttribute(Order = 4)] + [System.Xml.Serialization.XmlElementAttribute(Order = 15)] public SslScanResult sslScanResult { get { return this.sslScanResultField; @@ -8549,7 +8403,7 @@ public bool sslScanResultSpecified { /// attribute is optional and defaults to SslManualOverride#NO_OVERRIDE.

///
- [System.Xml.Serialization.XmlElementAttribute(Order = 5)] + [System.Xml.Serialization.XmlElementAttribute(Order = 16)] public SslManualOverride sslManualOverride { get { return this.sslManualOverrideField; @@ -8572,3125 +8426,3662 @@ public bool sslManualOverrideSpecified { this.sslManualOverrideFieldSpecified = value; } } + } - /// Whether the Creative is compatible for SafeFrame - /// rendering.

This attribute is optional and defaults to true.

- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 6)] - 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; - } - } - /// A list of impression tracking URLs to ping when this creative is displayed. This - /// field is optional. + /// Different creative format supported by Rich Media Studio creative. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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. /// - [System.Xml.Serialization.XmlElementAttribute("thirdPartyImpressionTrackingUrls", Order = 7)] - public string[] thirdPartyImpressionTrackingUrls { - get { - return this.thirdPartyImpressionTrackingUrlsField; - } - set { - this.thirdPartyImpressionTrackingUrlsField = value; - } - } + 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, } - /// A base type for video creatives. + /// Rich Media Studio creative artwork types. /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(VideoRedirectCreative))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(VideoCreative))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(SetTopBoxCreative))] [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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, + } - private SkippableAdType skippableAdTypeField; - private bool skippableAdTypeFieldSpecified; + /// 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.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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, + } - private string vastPreviewUrlField; - private SslScanResult sslScanResultField; + /// 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.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class RichMediaStudioCreative : BaseRichMediaStudioCreative { + private LockedOrientation lockedOrientationField; - private bool sslScanResultFieldSpecified; + private bool lockedOrientationFieldSpecified; - private SslManualOverride sslManualOverrideField; + private bool isInterstitialField; - private bool sslManualOverrideFieldSpecified; + private bool isInterstitialFieldSpecified; - /// The expected duration of this creative in milliseconds. + /// A locked orientation for this creative to be displayed in. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public int duration { + public LockedOrientation lockedOrientation { get { - return this.durationField; + return this.lockedOrientationField; } set { - this.durationField = value; - this.durationSpecified = true; + this.lockedOrientationField = value; + this.lockedOrientationSpecified = 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 lockedOrientationSpecified { get { - return this.durationFieldSpecified; + return this.lockedOrientationFieldSpecified; } set { - this.durationFieldSpecified = value; + this.lockedOrientationFieldSpecified = value; } } - /// Allows the creative duration to differ from the actual asset durations. This - /// attribute is optional. + /// 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 allowDurationOverride { + public bool isInterstitial { get { - return this.allowDurationOverrideField; + return this.isInterstitialField; } set { - this.allowDurationOverrideField = value; - this.allowDurationOverrideSpecified = 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 allowDurationOverrideSpecified { + public bool isInterstitialSpecified { get { - return this.allowDurationOverrideFieldSpecified; + return this.isInterstitialFieldSpecified; } set { - this.allowDurationOverrideFieldSpecified = value; + this.isInterstitialFieldSpecified = value; } } + } - /// A map from ConversionEvent to a list of URLs that will be pinged - /// when the event happens. This attribute is optional. + + /// 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.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public abstract partial class HasHtmlSnippetDynamicAllocationCreative : BaseDynamicAllocationCreative { + private string codeSnippetField; + + /// 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("trackingUrls", Order = 2)] - public ConversionEvent_TrackingUrlsMapEntry[] trackingUrls { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public string codeSnippet { get { - return this.trackingUrlsField; + return this.codeSnippetField; } set { - this.trackingUrlsField = value; + this.codeSnippetField = value; } } + } - /// The IDs of the companion creatives that are associated with this creative. This - /// attribute is optional. + + /// An AdSense dynamic allocation creative. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class AdSenseCreative : HasHtmlSnippetDynamicAllocationCreative { + } + + + /// An Ad Exchange dynamic allocation creative. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class AdExchangeCreative : HasHtmlSnippetDynamicAllocationCreative { + private bool isNativeEligibleField; + + private bool isNativeEligibleFieldSpecified; + + private bool isInterstitialField; + + private bool isInterstitialFieldSpecified; + + /// Whether this creative is eligible for native ad-serving. This value is optional + /// and defaults to false. /// - [System.Xml.Serialization.XmlElementAttribute("companionCreativeIds", Order = 3)] - public long[] companionCreativeIds { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public bool isNativeEligible { get { - return this.companionCreativeIdsField; + return this.isNativeEligibleField; } set { - this.companionCreativeIdsField = value; + this.isNativeEligibleField = value; + this.isNativeEligibleSpecified = 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 isNativeEligibleSpecified { get { - return this.customParametersField; + return this.isNativeEligibleFieldSpecified; } set { - this.customParametersField = value; + this.isNativeEligibleFieldSpecified = value; } } - /// The type of skippable ad. + /// 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 = 5)] - public SkippableAdType skippableAdType { + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public bool isInterstitial { get { - return this.skippableAdTypeField; + return this.isInterstitialField; } set { - this.skippableAdTypeField = value; - this.skippableAdTypeSpecified = 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 skippableAdTypeSpecified { + public bool isInterstitialSpecified { get { - return this.skippableAdTypeFieldSpecified; + return this.isInterstitialFieldSpecified; } set { - this.skippableAdTypeFieldSpecified = value; + this.isInterstitialFieldSpecified = 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 = 6)] - 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.

+ /// Lists all errors associated with template instantiated creatives. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class TemplateInstantiatedCreativeError : ApiError { + private TemplateInstantiatedCreativeErrorReason reasonField; + + private bool reasonFieldSpecified; + + /// The error reason represented by an enum. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 7)] - public SslScanResult sslScanResult { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public TemplateInstantiatedCreativeErrorReason 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 reason for the error + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "TemplateInstantiatedCreativeError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum TemplateInstantiatedCreativeErrorReason { + /// A new creative cannot be created from an inactive creative template. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 8)] - public SslManualOverride sslManualOverride { + 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, + } + + + /// Error for converting flash to swiffy asset. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class SwiffyConversionError : ApiError { + private SwiffyConversionErrorReason reasonField; + + private bool reasonFieldSpecified; + + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public SwiffyConversionErrorReason 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 different types of skippable ads. + /// Error reason for SwiffyConversionError. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum SkippableAdType { - /// The value returned if the actual value is not exposed by the requested API - /// version. + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "SwiffyConversionError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum SwiffyConversionErrorReason { + /// Indicates the Swiffy service has an internal error that prevents the flash asset + /// being converted. /// - UNKNOWN = 0, - /// Skippable ad type is disabled. + SERVER_ERROR = 0, + /// Indicates the uploaded flash asset is not a valid flash file. /// - DISABLED = 1, - /// Skippable ad type is enabled. + INVALID_FLASH_FILE = 1, + /// Indicates the Swiffy service currently does not support converting this flash + /// asset. /// - ENABLED = 2, - /// Skippable in-stream ad type. + UNSUPPORTED_FLASH = 2, + /// The value returned if the actual value is not exposed by the requested API + /// version. /// - INSTREAM_SELECT = 3, + UNKNOWN = 3, } - /// A Creative that contains externally hosted video ads and is served - /// via VAST XML. + /// Errors associated with set-top box creatives. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class VideoRedirectCreative : BaseVideoCreative { - private VideoRedirectAsset[] videoAssetsField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class SetTopBoxCreativeError : ApiError { + private SetTopBoxCreativeErrorReason reasonField; - private VideoRedirectAsset mezzanineFileField; + private bool reasonFieldSpecified; - /// The video creative assets. + /// The error reason represented by an enum. /// - [System.Xml.Serialization.XmlElementAttribute("videoAssets", Order = 0)] - public VideoRedirectAsset[] videoAssets { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public SetTopBoxCreativeErrorReason 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. This creative is read-only. + /// Error reasons for set-top box creatives. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class VideoCreative : BaseVideoCreative { + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "SetTopBoxCreativeError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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. + /// + EXTERNAL_ASSET_ID_REQUIRED = 2, + /// Set-top box creative provider IDs are immutable after creation. + /// + PROVIDER_ID_IMMUTABLE = 3, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 4, } - /// 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 Studio creatives. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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/v201908")] + public partial class RichMediaStudioCreativeError : ApiError { + private RichMediaStudioCreativeErrorReason 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. + /// The error reason represented by an enum. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public string externalAssetId { + public RichMediaStudioCreativeErrorReason 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. + + /// The reasons for the target error. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "RichMediaStudioCreativeError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum RichMediaStudioCreativeErrorReason { + /// Only Studio can create a RichMediaStudioCreative. /// - [System.Xml.Serialization.XmlElementAttribute("availabilityRegionIds", Order = 2)] - public string[] availabilityRegionIds { + 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 = 9, + } + + + /// A list of all errors to be used for validating Size. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class RequiredSizeError : ApiError { + private RequiredSizeErrorReason reasonField; + + private bool reasonFieldSpecified; + + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public RequiredSizeErrorReason reason { get { - return this.availabilityRegionIdsField; + return this.reasonField; } set { - this.availabilityRegionIdsField = value; + this.reasonField = value; + this.reasonSpecified = true; } } - /// 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 = 3)] - public DateTime licenseWindowStartDateTime { + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool reasonSpecified { get { - return this.licenseWindowStartDateTimeField; + return this.reasonFieldSpecified; } set { - this.licenseWindowStartDateTimeField = value; + this.reasonFieldSpecified = value; } } + } - /// 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.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "RequiredSizeError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum RequiredSizeErrorReason { + /// Creative#size or LineItem#creativeSizes is missing. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public DateTime licenseWindowEndDateTime { - get { - return this.licenseWindowEndDateTimeField; - } - set { - this.licenseWindowEndDateTimeField = value; - } - } + REQUIRED = 0, + /// LineItemCreativeAssociation#sizes + /// must be a subset of LineItem#creativeSizes. + /// + NOT_ALLOWED = 1, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 2, } - /// The base type for creatives that load an image asset from a specified URL. + /// Caused by supplying a non-null value for an attribute that should be null. /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ImageRedirectOverlayCreative))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ImageRedirectCreative))] [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public abstract partial class BaseImageRedirectCreative : HasDestinationUrlCreative { - private string imageUrlField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class NullError : ApiError { + private NullErrorReason reasonField; - /// The URL where the actual asset resides. This attribute is required and has a - /// maximum length of 1024 characters. + private bool reasonFieldSpecified; + + /// The error reason represented by an enum. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public string imageUrl { + public NullErrorReason reason { get { - return this.imageUrlField; + return this.reasonField; } set { - this.imageUrlField = value; + 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; } } } - /// 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. + /// The reasons for the target error. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ImageRedirectOverlayCreative : BaseImageRedirectCreative { - private Size assetSizeField; - - private int durationField; - - private bool durationFieldSpecified; - - private long[] companionCreativeIdsField; + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "NullError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum NullErrorReason { + /// Specified list/container must not contain any null elements + /// + NULL_CONTENT = 0, + } - private ConversionEvent_TrackingUrlsMapEntry[] trackingUrlsField; - private string customParametersField; + /// Lists all errors associated with line item-to-creative association dates. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class LineItemCreativeAssociationError : ApiError { + private LineItemCreativeAssociationErrorReason 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. + /// The error reason represented by an enum. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public Size assetSize { + public LineItemCreativeAssociationErrorReason reason { get { - return this.assetSizeField; + return this.reasonField; } set { - this.assetSizeField = value; + this.reasonField = value; + this.reasonSpecified = true; } } - /// Minimum suggested duration in milliseconds. This attribute is optional. - /// - [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. + /// 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. + /// The reasons for the target error. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "LineItemCreativeAssociationError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum LineItemCreativeAssociationErrorReason { + /// Cannot associate a creative to the wrong advertiser /// - [System.Xml.Serialization.XmlElementAttribute("trackingUrls", Order = 3)] - public ConversionEvent_TrackingUrlsMapEntry[] trackingUrls { - get { - return this.trackingUrlsField; - } - set { - this.trackingUrlsField = 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. + CREATIVE_IN_WRONG_ADVERTISERS_LIBRARY = 0, + /// The creative type being associated is a invalid for the line item type. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public string customParameters { - get { - return this.customParametersField; - } - set { - this.customParametersField = value; - } - } - - /// An ad tag URL that will return a preview of the VAST XML response specific to - /// this creative. This attribute is read-only. + INVALID_LINEITEM_CREATIVE_PAIRING = 1, + /// Association start date cannot be before line item start date /// - [System.Xml.Serialization.XmlElementAttribute(Order = 5)] - public string vastPreviewUrl { - get { - return this.vastPreviewUrlField; - } - set { - this.vastPreviewUrlField = value; - } - } + 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 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. + /// + UNKNOWN = 16, } - /// A Creative that loads an image asset from a specified URL. + /// Errors specific to creating label entity associations. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ImageRedirectCreative : BaseImageRedirectCreative { - private string altTextField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class LabelEntityAssociationError : ApiError { + private LabelEntityAssociationErrorReason reasonField; - private string thirdPartyImpressionUrlField; + 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. + /// The error reason represented by an enum. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public string altText { + public LabelEntityAssociationErrorReason reason { get { - return this.altTextField; + return this.reasonField; } set { - this.altTextField = value; + this.reasonField = value; + this.reasonSpecified = true; } } - /// An impression tracking URL to ping when this creative is displayed. This field - /// is optional has a maximum length of 1024 characters. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public string thirdPartyImpressionUrl { + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool reasonSpecified { get { - return this.thirdPartyImpressionUrlField; + return this.reasonFieldSpecified; } set { - this.thirdPartyImpressionUrlField = value; + this.reasonFieldSpecified = value; } } } - /// The base type for creatives that display an image. + /// The reasons for the target error. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "LabelEntityAssociationError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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. + /// + DUPLICATE_ASSOCIATION_WITH_NEGATION = 3, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 4, + } + + + /// Lists all errors associated with phone numbers. /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ImageOverlayCreative))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ImageCreative))] [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public abstract partial class BaseImageCreative : HasDestinationUrlCreative { - private bool overrideSizeField; - - private bool overrideSizeFieldSpecified; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class InvalidPhoneNumberError : ApiError { + private InvalidPhoneNumberErrorReason 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 InvalidPhoneNumberErrorReason 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. + + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "InvalidPhoneNumberError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum InvalidPhoneNumberErrorReason { + /// The phone number is invalid. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public CreativeAsset primaryImageAsset { - get { - return this.primaryImageAssetField; - } - set { - this.primaryImageAssetField = value; - } - } + 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 = 2, } - /// 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. + /// Lists all errors associated with images. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ImageOverlayCreative : BaseImageCreative { - private long[] companionCreativeIdsField; - - private ConversionEvent_TrackingUrlsMapEntry[] trackingUrlsField; - - private LockedOrientation lockedOrientationField; - - private bool lockedOrientationFieldSpecified; - - private string customParametersField; - - 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("companionCreativeIds", Order = 0)] - public long[] companionCreativeIds { - get { - return this.companionCreativeIdsField; - } - set { - this.companionCreativeIdsField = value; - } - } + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class ImageError : ApiError { + private ImageErrorReason reasonField; - /// 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; - } - } + private bool reasonFieldSpecified; - /// A locked orientation for this creative to be displayed in. + /// The error reason represented by an enum. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public LockedOrientation lockedOrientation { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public ImageErrorReason 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 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 string customParameters { - get { - return this.customParametersField; - } - set { - this.customParametersField = value; - } - } - /// Minimum suggested duration in milliseconds. This attribute is optional. + /// The reasons for the target error. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ImageError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum ImageErrorReason { + /// The file's format is invalid. /// - [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 durationSpecified { - get { - return this.durationFieldSpecified; - } - set { - this.durationFieldSpecified = value; - } - } - - /// An ad tag URL that will return a preview of the VAST XML response specific to - /// this creative. This attribute is read-only. + INVALID_IMAGE = 0, + /// Size#width and Size#height + /// cannot be negative. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 5)] - public string vastPreviewUrl { - get { - return this.vastPreviewUrlField; - } - set { - this.vastPreviewUrlField = value; - } - } + 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 = 21, + /// 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, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 25, } - /// A Creative that displays an image. + /// Lists all errors associated with html5 file processing. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ImageCreative : BaseImageCreative { - private string altTextField; - - private string thirdPartyImpressionUrlField; - - private CreativeAsset[] secondaryImageAssetsField; - - private LockedOrientation lockedOrientationField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class HtmlBundleProcessorError : ApiError { + private HtmlBundleProcessorErrorReason reasonField; - private bool lockedOrientationFieldSpecified; + 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. + /// The error reason represented by an enum. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public string altText { + public HtmlBundleProcessorErrorReason reason { get { - return this.altTextField; + return this.reasonField; } set { - this.altTextField = value; + this.reasonField = value; + this.reasonSpecified = true; } } - /// An impression tracking URL to ping when this creative is displayed. This field - /// is optional has a maximum length of 1024 characters. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public string thirdPartyImpressionUrl { + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool reasonSpecified { get { - return this.thirdPartyImpressionUrlField; + return this.reasonFieldSpecified; } set { - this.thirdPartyImpressionUrlField = value; + this.reasonFieldSpecified = 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.

+ + /// Error reasons that may arise during HTML5 bundle processing. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "HtmlBundleProcessorError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum HtmlBundleProcessorErrorReason { + /// Cannot extract files from HTML5 bundle. /// - [System.Xml.Serialization.XmlElementAttribute("secondaryImageAssets", Order = 2)] - public CreativeAsset[] secondaryImageAssets { - get { - return this.secondaryImageAssetsField; - } - set { - this.secondaryImageAssetsField = value; - } - } - - /// A locked orientation for this creative to be displayed in. + CANNOT_EXTRACT_FILES_FROM_BUNDLE = 0, + /// Bundle cannot have hard-coded click tag url(s). /// - [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public LockedOrientation lockedOrientation { - get { - return this.lockedOrientationField; - } - set { - this.lockedOrientationField = value; - this.lockedOrientationSpecified = true; - } - } - - /// 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; - } - } + 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. + /// + PRIMARY_HTML_MISSING = 12, + /// Multiple HTML files are detected. One of them should be named as + /// index.html + /// + PRIMARY_HTML_UNDETERMINED = 13, + /// An SVG block could not be parsed. + /// + SVG_BLOCK_INVALID = 14, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 15, } - /// The base type for creatives that load a Flash asset from a specified URL. If the - /// remote flash asset cannot be served, a fallback image is used at an alternate - /// URL. + /// A list of all errors to be used for problems related to files. /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(FlashRedirectOverlayCreative))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(FlashRedirectCreative))] [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public abstract partial class BaseFlashRedirectCreative : HasDestinationUrlCreative { - private string flashUrlField; - - private string fallbackUrlField; - - private string fallbackPreviewUrlField; - - private SslScanResult sslScanResultField; - - private bool sslScanResultFieldSpecified; - - private SslManualOverride sslManualOverrideField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class FileError : ApiError { + private FileErrorReason reasonField; - private bool sslManualOverrideFieldSpecified; + private bool reasonFieldSpecified; - /// The URL where the Flash asset resides. This attribute is required and has a - /// maximum length of 1024 characters. - /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public string flashUrl { + public FileErrorReason reason { get { - return this.flashUrlField; + return this.reasonField; } set { - this.flashUrlField = value; + this.reasonField = value; + this.reasonSpecified = true; } } - /// The fallback URL to use if the Flash URL cannot be used. This attribute is - /// required and has a maximum length of 1024 characters. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public string fallbackUrl { + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool reasonSpecified { get { - return this.fallbackUrlField; + return this.reasonFieldSpecified; } set { - this.fallbackUrlField = value; + this.reasonFieldSpecified = value; } } + } - /// The URL of the fallback image for preview. This attribute is read-only and is - /// populated by Google. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public string fallbackPreviewUrl { - get { - return this.fallbackPreviewUrlField; - } - set { - this.fallbackPreviewUrlField = value; - } - } - /// The SSL compatibility scan result of this creative.

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

+ [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "FileError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum FileErrorReason { + /// The provided byte array is empty. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public SslScanResult sslScanResult { - get { - return this.sslScanResultField; - } - set { - this.sslScanResultField = value; - this.sslScanResultSpecified = true; - } - } + MISSING_CONTENTS = 0, + /// The provided file is larger than the maximum size defined for the network. + /// + SIZE_TOO_LARGE = 1, + /// 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 sslScanResultSpecified { - get { - return this.sslScanResultFieldSpecified; - } - set { - this.sslScanResultFieldSpecified = value; - } - } - /// 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 = 4)] - public SslManualOverride sslManualOverride { + /// 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.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class EntityLimitReachedError : ApiError { + private EntityLimitReachedErrorReason reasonField; + + private bool reasonFieldSpecified; + + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public EntityLimitReachedErrorReason 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; } } } - /// An overlay Creative that loads a Flash asset from a specified URL - /// and is served via VAST XML. Overlays cover part of the video content they are - /// displayed on top of. + /// The reasons for the entity limit reached error. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class FlashRedirectOverlayCreative : BaseFlashRedirectCreative { - private long[] companionCreativeIdsField; - - private ConversionEvent_TrackingUrlsMapEntry[] trackingUrlsField; - - private string customParametersField; - - private ApiFramework apiFrameworkField; - - private bool apiFrameworkFieldSpecified; - - private int durationField; + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "EntityLimitReachedError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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 value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 5, + } - private bool durationFieldSpecified; - private Size flashAssetSizeField; + /// Errors specific to editing custom field values + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class CustomFieldValueError : ApiError { + private CustomFieldValueErrorReason reasonField; - private string vastPreviewUrlField; + private bool reasonFieldSpecified; - /// The IDs of the companion creatives that are associated with this creative. This - /// attribute is optional. + /// The error reason represented by an enum. /// - [System.Xml.Serialization.XmlElementAttribute("companionCreativeIds", Order = 0)] - public long[] companionCreativeIds { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public CustomFieldValueErrorReason reason { get { - return this.companionCreativeIdsField; + return this.reasonField; } set { - this.companionCreativeIdsField = value; + this.reasonField = value; + this.reasonSpecified = 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 reasonSpecified { get { - return this.trackingUrlsField; + return this.reasonFieldSpecified; } set { - this.trackingUrlsField = value; + this.reasonFieldSpecified = value; } } + } - /// A comma separated key=value list of parameters that will be supplied to the - /// creative, written into the VAST node. If the #apiFramework is ApiFramework#VPAID, the value does not need to be - /// a comma separated key-value list (and can instead be any arbitrary string). This - /// attribute is optional. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public string customParameters { - get { - return this.customParametersField; - } - set { - this.customParametersField = value; - } - } - /// The API framework of the asset. This attribute is optional. + /// The reasons for the target error. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CustomFieldValueError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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 = 3)] - public ApiFramework apiFramework { - get { - return this.apiFrameworkField; - } - set { - this.apiFrameworkField = value; - this.apiFrameworkSpecified = true; - } - } + 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. + /// + CUSTOM_FIELD_OPTION_NOT_FOUND = 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 apiFrameworkSpecified { - get { - return this.apiFrameworkFieldSpecified; - } - set { - this.apiFrameworkFieldSpecified = value; - } - } - /// 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; - } - } + /// Lists all errors associated with custom creatives. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class CustomCreativeError : ApiError { + private CustomCreativeErrorReason reasonField; - /// 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 bool reasonFieldSpecified; - /// The size of the flash asset. Note that this may differ from #size if the asset is not expected to fill the entire video - /// player. This attribute is optional. + /// The error reason represented by an enum. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 5)] - public Size flashAssetSize { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public CustomCreativeErrorReason reason { get { - return this.flashAssetSizeField; + return this.reasonField; } set { - this.flashAssetSizeField = value; + this.reasonField = value; + this.reasonSpecified = true; } } - /// 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 = 6)] - public string vastPreviewUrl { + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool reasonSpecified { get { - return this.vastPreviewUrlField; + return this.reasonFieldSpecified; } set { - this.vastPreviewUrlField = value; + this.reasonFieldSpecified = value; } } } - /// The various ApiFramework types. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum ApiFramework { - NONE = 0, - CLICKTAG = 1, - VPAID = 2, - } - - - /// A Creative that loads a Flash asset from a specified URL. If the - /// remote flash asset cannot be served, a fallback image is used at an alternate - /// URL. + /// The reasons for the target error. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class FlashRedirectCreative : BaseFlashRedirectCreative { + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CustomCreativeError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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. + /// + SNIPPET_REFERENCES_MISSING_MACRO = 1, + /// The macro referenced in the snippet is not valid. + /// + UNRECOGNIZED_MACRO = 2, + /// Custom creatives are not allowed in this context. + /// + 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 = 6, } - /// A base type for creatives that display a Flash-based ad. If the Flash ad cannot - /// load, a fallback image is displayed instead. + /// An error that can occur while performing an operation on a creative template. /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(FlashOverlayCreative))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(FlashCreative))] [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public abstract partial class BaseFlashCreative : HasDestinationUrlCreative { - private bool overrideSizeField; - - private bool overrideSizeFieldSpecified; - - private bool clickTagRequiredField; - - private bool clickTagRequiredFieldSpecified; - - private SslScanResult sslScanResultField; - - private bool sslScanResultFieldSpecified; - - private SslManualOverride sslManualOverrideField; - - private bool sslManualOverrideFieldSpecified; - - private CreativeAsset flashAssetField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class CreativeTemplateOperationError : ApiError { + private CreativeTemplateOperationErrorReason reasonField; - private CreativeAsset fallbackImageAssetField; + private bool reasonFieldSpecified; - /// Allows the creative size to differ from the actual Flash asset size. This - /// attribute is optional. + /// The error reason represented by an enum. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public bool overrideSize { + public CreativeTemplateOperationErrorReason 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; } } + } - /// Specifies whether the Flash asset is required to have a click tag embedded in it - /// or not. This attribute is optional. + + /// The reasons for the target error. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CreativeTemplateOperationError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum CreativeTemplateOperationErrorReason { + /// The current user is not allowed to modify this creative template. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public bool clickTagRequired { - get { - return this.clickTagRequiredField; - } - set { - this.clickTagRequiredField = value; - this.clickTagRequiredSpecified = true; - } - } + NOT_ALLOWED = 0, + /// The operation is not applicable to the current state. (e.g. Trying to activate + /// an active creative template) + /// + NOT_APPLICABLE = 1, + /// 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 clickTagRequiredSpecified { - get { - return this.clickTagRequiredFieldSpecified; - } - set { - this.clickTagRequiredFieldSpecified = value; - } - } - /// The SSL compatibility scan result of this creative.

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

+ /// A catch-all error that lists all generic errors associated with + /// CreativeTemplate. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class CreativeTemplateError : ApiError { + private CreativeTemplateErrorReason reasonField; + + private bool reasonFieldSpecified; + + /// The error reason represented by an enum. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public SslScanResult sslScanResult { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public CreativeTemplateErrorReason 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 reasons for the target error. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CreativeTemplateError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum CreativeTemplateErrorReason { + /// The XML of the creative template definition is malformed and cannot be parsed. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public SslManualOverride sslManualOverride { + 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. + /// + NO_TARGET_PLATFORMS = 6, + /// More than one target platform is assigned to a single creative template. + /// + MULTIPLE_TARGET_PLATFORMS = 7, + /// The formatter contains a placeholder which is not defined as a variable. + /// + UNRECOGNIZED_PLACEHOLDER = 8, + /// There are variables defined which are not being used in the formatter. + /// + PLACEHOLDERS_NOT_IN_FORMATTER = 9, + /// The creative template is interstitial, but the formatter doesn't contain an + /// interstitial macro. + /// + MISSING_INTERSTITIAL_MACRO = 10, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 11, + } + + + /// Errors relating to creative sets & subclasses. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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 CreativeSetErrorReason 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 flash asset. This attribute is required. To view the Flash image, use the CreativeAsset#assetUrl. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public CreativeAsset flashAsset { - get { - return this.flashAssetField; - } - set { - this.flashAssetField = value; - } - } - /// The image asset to fall back on if the flash creative cannot be loaded. To view - /// the fallback image, use the CreativeAsset#assetUrl. + /// The reasons for the target error. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CreativeSetError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum CreativeSetErrorReason { + /// The 'video' feature is required but not enabled. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 5)] - public CreativeAsset fallbackImageAsset { - get { - return this.fallbackImageAssetField; - } - set { - this.fallbackImageAssetField = value; - } - } + 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. + /// + MASTER_CREATIVE_CANNOT_BELONG_TO_MULTIPLE_VIDEO_CREATIVE_SETS = 7, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 6, } - /// An overlay Creative that displays a Flash-based ad and is served - /// via VAST XML. Overlays cover part of the video content they are displayed on top - /// of. This creative is read-only. + /// Lists all errors associated with creatives. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class FlashOverlayCreative : BaseFlashCreative { - private long[] companionCreativeIdsField; - - private ConversionEvent_TrackingUrlsMapEntry[] trackingUrlsField; - - private string customParametersField; - - private ApiFramework apiFrameworkField; - - private bool apiFrameworkFieldSpecified; - - private int durationField; - - private bool durationFieldSpecified; - - private string vastPreviewUrlField; - - private LockedOrientation lockedOrientationField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class CreativeError : ApiError { + private CreativeErrorReason reasonField; - private bool lockedOrientationFieldSpecified; + private bool reasonFieldSpecified; - /// The IDs of the companion creatives that are associated with this creative. This - /// attribute is optional. + /// The error reason represented by an enum. /// - [System.Xml.Serialization.XmlElementAttribute("companionCreativeIds", Order = 0)] - public long[] companionCreativeIds { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public CreativeErrorReason reason { get { - return this.companionCreativeIdsField; + return this.reasonField; } set { - this.companionCreativeIdsField = value; + this.reasonField = value; + this.reasonSpecified = 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 reasonSpecified { get { - return this.trackingUrlsField; + return this.reasonFieldSpecified; } set { - this.trackingUrlsField = value; + this.reasonFieldSpecified = value; } } + } - /// A comma separated key=value list of parameters that will be supplied to the - /// creative, written into the VAST node. If the #apiFramework is ApiFramework#VPAID, the value does not need to be - /// a comma separated key-value list (and can instead be any arbitrary string). This - /// attribute is optional. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public string customParameters { - get { - return this.customParametersField; - } - set { - this.customParametersField = value; - } - } - /// The API framework of the asset. This attribute is optional. + /// The reasons for the target error. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CreativeError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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.XmlElementAttribute(Order = 3)] - public ApiFramework apiFramework { - get { - return this.apiFrameworkField; - } - set { - this.apiFrameworkField = value; - this.apiFrameworkSpecified = true; - } - } + 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. + /// + INVALID_INTERNAL_REDIRECT_URL = 1, + /// HasDestinationUrlCreative#destinationUrl + /// is required. + /// + 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, + /// 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 apiFrameworkSpecified { - get { - return this.apiFrameworkFieldSpecified; - } - set { - this.apiFrameworkFieldSpecified = value; - } - } - /// Minimum suggested duration in milliseconds. This attribute is optional. + /// Lists all errors associated with creative asset macros. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class CreativeAssetMacroError : ApiError { + private CreativeAssetMacroErrorReason reasonField; + + private bool reasonFieldSpecified; + + /// The error reason represented by an enum. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public int duration { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public CreativeAssetMacroErrorReason 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; } } + } - /// An ad tag URL that will return a preview of the VAST XML response specific to - /// this creative. This attribute is read-only. + + /// The reasons for the target error. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CreativeAssetMacroError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 5)] - public string vastPreviewUrl { - get { - return this.vastPreviewUrlField; - } - set { - this.vastPreviewUrlField = value; - } - } + INVALID_MACRO_NAME = 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. + + /// Lists all errors associated with assets. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class AssetError : ApiError { + private AssetErrorReason reasonField; + + private bool reasonFieldSpecified; + + /// The error reason represented by an enum. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 6)] - public LockedOrientation lockedOrientation { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public AssetErrorReason 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 that displays a Flash-based ad. If the Flash ad cannot - /// load, a fallback image is displayed instead. + /// The reasons for the target error. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class FlashCreative : BaseFlashCreative { - private SwiffyFallbackAsset swiffyAssetField; + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AssetError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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, + } - private bool createSwiffyAssetField; - private bool createSwiffyAssetFieldSpecified; + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", ConfigurationName = "Google.Api.Ads.AdManager.v201908.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.v201908.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); - private LockedOrientation lockedOrientationField; + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + System.Threading.Tasks.Task createCreativesAsync(Wrappers.CreativeService.createCreativesRequest request); - private bool lockedOrientationFieldSpecified; + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201908.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.v201908.CreativePage getCreativesByStatement(Google.Api.Ads.AdManager.v201908.Statement filterStatement); - private bool clickTagOverlayEnabledField; + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task getCreativesByStatementAsync(Google.Api.Ads.AdManager.v201908.Statement filterStatement); - private bool clickTagOverlayEnabledFieldSpecified; + // 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.v201908.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); - /// A Swiffy asset that can be used as a fallback for this flash creative. This - /// attribute is readonly. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public SwiffyFallbackAsset swiffyAsset { - get { - return this.swiffyAssetField; - } - set { - this.swiffyAssetField = value; - } - } + [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.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class CreativePage { + private int totalResultSetSizeField; + + private bool totalResultSetSizeFieldSpecified; + + private int startIndexField; - /// Enables Swiffy fallback asset creation and serving.

If true - /// during creation or update, the flash asset will be converted to a Swiffy asset. If successful, the Swiffy asset will be - /// used for ad serving, which may lead to additional latency.

To remove the - /// swiffy asset, set this attribute to false and update the flash asset.

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

+ private bool startIndexFieldSpecified; + + private Creative[] resultsField; + + /// The size of the total result set to which this page belongs. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public bool createSwiffyAsset { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public int totalResultSetSize { get { - return this.createSwiffyAssetField; + return this.totalResultSetSizeField; } set { - this.createSwiffyAssetField = value; - this.createSwiffyAssetSpecified = 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 createSwiffyAssetSpecified { + public bool totalResultSetSizeSpecified { get { - return this.createSwiffyAssetFieldSpecified; + return this.totalResultSetSizeFieldSpecified; } set { - this.createSwiffyAssetFieldSpecified = value; + this.totalResultSetSizeFieldSpecified = value; } } - /// A locked orientation for this creative to be displayed in. + /// The absolute index in the total result set on which this page begins. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public LockedOrientation lockedOrientation { + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public int startIndex { get { - return this.lockedOrientationField; + return this.startIndexField; } set { - this.lockedOrientationField = value; - this.lockedOrientationSpecified = 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 lockedOrientationSpecified { + public bool startIndexSpecified { get { - return this.lockedOrientationFieldSpecified; + return this.startIndexFieldSpecified; } set { - this.lockedOrientationFieldSpecified = value; + this.startIndexFieldSpecified = value; } } - /// Enables the creative to be served with click tag overlay.

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

+ /// The collection of creatives contained within this page. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public bool clickTagOverlayEnabled { + [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] + public Creative[] results { get { - return this.clickTagOverlayEnabledField; + return this.resultsField; } set { - this.clickTagOverlayEnabledField = value; - this.clickTagOverlayEnabledSpecified = true; + this.resultsField = value; } } + } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool clickTagOverlayEnabledSpecified { - get { - return this.clickTagOverlayEnabledFieldSpecified; - } - set { - this.clickTagOverlayEnabledFieldSpecified = value; - } - } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + public interface CreativeServiceInterfaceChannel : Google.Api.Ads.AdManager.v201908.CreativeServiceInterface, System.ServiceModel.IClientChannel + { } - /// A Creative intended for mobile platforms that displays an image, - /// whose size is defined as an aspect ratio, i.e. Size#isAspectRatio. It can have multiple images - /// whose dimensions conform to that aspect ratio. + /// 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 DFP Help + /// Center.

///
- [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class AspectRatioImageCreative : HasDestinationUrlCreative { - private CreativeAsset[] imageAssetsField; - - private string altTextField; - - private string thirdPartyImpressionUrlField; - - private bool overrideSizeField; - - private bool overrideSizeFieldSpecified; + [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() { + } - /// 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. + /// Creates a new instance of the class. /// - [System.Xml.Serialization.XmlElementAttribute("imageAssets", Order = 0)] - public CreativeAsset[] imageAssets { - get { - return this.imageAssetsField; - } - set { - this.imageAssetsField = value; - } + public CreativeService(string endpointConfigurationName) + : base(endpointConfigurationName) { } - /// 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. + /// Creates a new instance of the class. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public string altText { - get { - return this.altTextField; - } - set { - this.altTextField = value; - } + public CreativeService(string endpointConfigurationName, string remoteAddress) + : base(endpointConfigurationName, remoteAddress) { } - /// An impression tracking URL to ping when this creative is displayed. This field - /// is optional has a maximum length of 1024 characters. + /// Creates a new instance of the class. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public string thirdPartyImpressionUrl { - get { - return this.thirdPartyImpressionUrlField; - } - set { - this.thirdPartyImpressionUrlField = value; - } + public CreativeService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) + : base(endpointConfigurationName, remoteAddress) { } - /// Allows the actual image asset sizes to differ from the creative size. This - /// attribute is optional. + /// Creates a new instance of the class. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public bool overrideSize { - get { - return this.overrideSizeField; - } - set { - this.overrideSizeField = value; - this.overrideSizeSpecified = true; - } + public CreativeService(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 overrideSizeSpecified { - get { - return this.overrideSizeFieldSpecified; - } - set { - this.overrideSizeFieldSpecified = value; - } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + Wrappers.CreativeService.createCreativesResponse Google.Api.Ads.AdManager.v201908.CreativeServiceInterface.createCreatives(Wrappers.CreativeService.createCreativesRequest request) { + return base.Channel.createCreatives(request); } - } + /// Creates new Creative objects. + /// the creatives to create + /// the created creatives with their IDs filled in + public virtual Google.Api.Ads.AdManager.v201908.Creative[] createCreatives(Google.Api.Ads.AdManager.v201908.Creative[] creatives) { + Wrappers.CreativeService.createCreativesRequest inValue = new Wrappers.CreativeService.createCreativesRequest(); + inValue.creatives = creatives; + Wrappers.CreativeService.createCreativesResponse retVal = ((Google.Api.Ads.AdManager.v201908.CreativeServiceInterface)(this)).createCreatives(inValue); + return retVal.rval; + } - /// 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.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ClickTrackingCreative : Creative { - private string clickTrackingUrlField; + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201908.CreativeServiceInterface.createCreativesAsync(Wrappers.CreativeService.createCreativesRequest request) { + return base.Channel.createCreativesAsync(request); + } - /// 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; - } + public virtual System.Threading.Tasks.Task createCreativesAsync(Google.Api.Ads.AdManager.v201908.Creative[] creatives) { + Wrappers.CreativeService.createCreativesRequest inValue = new Wrappers.CreativeService.createCreativesRequest(); + inValue.creatives = creatives; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201908.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
+ ///
a Publisher Query Language statement used to + /// filter a set of creatives + /// the creatives that match the given filter + public virtual Google.Api.Ads.AdManager.v201908.CreativePage getCreativesByStatement(Google.Api.Ads.AdManager.v201908.Statement filterStatement) { + return base.Channel.getCreativesByStatement(filterStatement); } - } + public virtual System.Threading.Tasks.Task getCreativesByStatementAsync(Google.Api.Ads.AdManager.v201908.Statement filterStatement) { + return base.Channel.getCreativesByStatementAsync(filterStatement); + } - /// A Creative that is created by a Rich Media Studio. + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + Wrappers.CreativeService.updateCreativesResponse Google.Api.Ads.AdManager.v201908.CreativeServiceInterface.updateCreatives(Wrappers.CreativeService.updateCreativesRequest request) { + return base.Channel.updateCreatives(request); + } + + /// Updates the specified Creative objects. + /// the creatives to update + /// the updated creatives + public virtual Google.Api.Ads.AdManager.v201908.Creative[] updateCreatives(Google.Api.Ads.AdManager.v201908.Creative[] creatives) { + Wrappers.CreativeService.updateCreativesRequest inValue = new Wrappers.CreativeService.updateCreativesRequest(); + inValue.creatives = creatives; + Wrappers.CreativeService.updateCreativesResponse retVal = ((Google.Api.Ads.AdManager.v201908.CreativeServiceInterface)(this)).updateCreatives(inValue); + return retVal.rval; + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201908.CreativeServiceInterface.updateCreativesAsync(Wrappers.CreativeService.updateCreativesRequest request) { + return base.Channel.updateCreativesAsync(request); + } + + public virtual System.Threading.Tasks.Task updateCreativesAsync(Google.Api.Ads.AdManager.v201908.Creative[] creatives) { + Wrappers.CreativeService.updateCreativesRequest inValue = new Wrappers.CreativeService.updateCreativesRequest(); + inValue.creatives = creatives; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201908.CreativeServiceInterface)(this)).updateCreativesAsync(inValue)).Result.rval); + } + } + namespace Wrappers.CreativeSetService + { + } + /// A creative set is comprised of a master creative and its companion creatives. /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(RichMediaStudioCreative))] [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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/v201908")] + public partial class CreativeSet { + private long idField; - private bool billingAttributeFieldSpecified; + private bool idFieldSpecified; - private RichMediaStudioChildAssetProperty[] richMediaStudioChildAssetPropertiesField; + private string nameField; - private SslScanResult sslScanResultField; + private long masterCreativeIdField; - private bool sslScanResultFieldSpecified; + private bool masterCreativeIdFieldSpecified; - private SslManualOverride sslManualOverrideField; + private long[] companionCreativeIdsField; - private bool sslManualOverrideFieldSpecified; + private DateTime lastModifiedDateTimeField; - /// The creative ID as known by Rich Media Studio creative. This attribute is - /// readonly. + /// 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 studioCreativeId { + public long id { get { - return this.studioCreativeIdField; + return this.idField; } set { - this.studioCreativeIdField = value; - this.studioCreativeIdSpecified = 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 studioCreativeIdSpecified { + public bool idSpecified { get { - return this.studioCreativeIdFieldSpecified; + return this.idFieldSpecified; } set { - this.studioCreativeIdFieldSpecified = value; + this.idFieldSpecified = value; } } - /// The creative format of the Rich Media Studio creative. This attribute is - /// readonly. + /// 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 RichMediaStudioCreativeFormat creativeFormat { - get { - return this.creativeFormatField; - } - set { - this.creativeFormatField = value; - this.creativeFormatSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool creativeFormatSpecified { + public string name { get { - return this.creativeFormatFieldSpecified; + return this.nameField; } set { - this.creativeFormatFieldSpecified = value; + this.nameField = value; } } - /// The type of artwork used in this creative. This attribute is readonly. + /// The ID of the master creative associated with this creative set. This attribute + /// is required. /// [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public RichMediaStudioCreativeArtworkType artworkType { + public long masterCreativeId { get { - return this.artworkTypeField; + return this.masterCreativeIdField; } set { - this.artworkTypeField = value; - this.artworkTypeSpecified = true; + this.masterCreativeIdField = value; + this.masterCreativeIdSpecified = 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 artworkTypeSpecified { + public bool masterCreativeIdSpecified { get { - return this.artworkTypeFieldSpecified; + return this.masterCreativeIdFieldSpecified; } set { - this.artworkTypeFieldSpecified = value; + this.masterCreativeIdFieldSpecified = value; } } - /// The total size of all assets in bytes. This attribute is readonly. + /// The IDs of the companion creatives associated with this creative set. This + /// attribute is required. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public long totalFileSize { + [System.Xml.Serialization.XmlElementAttribute("companionCreativeIds", Order = 3)] + public long[] companionCreativeIds { get { - return this.totalFileSizeField; + return this.companionCreativeIdsField; } set { - this.totalFileSizeField = value; - this.totalFileSizeSpecified = true; + this.companionCreativeIdsField = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool totalFileSizeSpecified { + /// The date and time this creative set was last modified. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 4)] + public DateTime lastModifiedDateTime { get { - return this.totalFileSizeFieldSpecified; + return this.lastModifiedDateTimeField; } set { - this.totalFileSizeFieldSpecified = value; + this.lastModifiedDateTimeField = value; } } + } - /// Ad tag keys. This attribute is optional and updatable. + + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", ConfigurationName = "Google.Api.Ads.AdManager.v201908.CreativeSetServiceInterface")] + public interface CreativeSetServiceInterface + { + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201908.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v201908.CreativeSet createCreativeSet(Google.Api.Ads.AdManager.v201908.CreativeSet creativeSet); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task createCreativeSetAsync(Google.Api.Ads.AdManager.v201908.CreativeSet creativeSet); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201908.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v201908.CreativeSetPage getCreativeSetsByStatement(Google.Api.Ads.AdManager.v201908.Statement statement); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task getCreativeSetsByStatementAsync(Google.Api.Ads.AdManager.v201908.Statement statement); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201908.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v201908.CreativeSet updateCreativeSet(Google.Api.Ads.AdManager.v201908.CreativeSet creativeSet); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task updateCreativeSetAsync(Google.Api.Ads.AdManager.v201908.CreativeSet creativeSet); + } + + + /// Captures a page of CreativeSet objects. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class CreativeSetPage { + private int totalResultSetSizeField; + + private bool totalResultSetSizeFieldSpecified; + + private int startIndexField; + + private bool startIndexFieldSpecified; + + private CreativeSet[] resultsField; + + /// The size of the total result set to which this page belongs. /// - [System.Xml.Serialization.XmlElementAttribute("adTagKeys", Order = 4)] - public string[] adTagKeys { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public int totalResultSetSize { get { - return this.adTagKeysField; + return this.totalResultSetSizeField; } set { - this.adTagKeysField = value; + this.totalResultSetSizeField = value; + this.totalResultSetSizeSpecified = true; } } - /// Custom key values. This attribute is optional and updatable. - /// - [System.Xml.Serialization.XmlElementAttribute("customKeyValues", Order = 5)] - public string[] customKeyValues { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool totalResultSetSizeSpecified { get { - return this.customKeyValuesField; + return this.totalResultSetSizeFieldSpecified; } set { - this.customKeyValuesField = value; + this.totalResultSetSizeFieldSpecified = value; } } - /// The survey URL for this creative. This attribute is optional and updatable. + /// The absolute index in the total result set on which this page begins. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 6)] - public string surveyUrl { + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public int startIndex { get { - return this.surveyUrlField; + return this.startIndexField; } set { - this.surveyUrlField = value; + this.startIndexField = value; + this.startIndexSpecified = true; } } - /// 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 { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool startIndexSpecified { get { - return this.allImpressionsUrlField; + return this.startIndexFieldSpecified; } set { - this.allImpressionsUrlField = value; + this.startIndexFieldSpecified = 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. + /// The collection of creative sets contained within this page. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 8)] - public string richMediaImpressionsUrl { + [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] + public CreativeSet[] results { get { - return this.richMediaImpressionsUrlField; + return this.resultsField; } set { - this.richMediaImpressionsUrlField = value; + this.resultsField = value; } } + } - /// The tracking URL to be triggered when the Rich Media backup image is served. - /// This attribute is optional and updatable. + + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + public interface CreativeSetServiceInterfaceChannel : Google.Api.Ads.AdManager.v201908.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. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 9)] - public string backupImageImpressionsUrl { - get { - return this.backupImageImpressionsUrlField; - } - set { - this.backupImageImpressionsUrlField = value; - } + public CreativeSetService() { } - /// 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. + /// Creates a new instance of the class. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 10)] - public string overrideCss { - get { - return this.overrideCssField; - } - set { - this.overrideCssField = value; - } + public CreativeSetService(string endpointConfigurationName) + : base(endpointConfigurationName) { } - /// The Flash plugin version required to view this creative; e.g. Flash - /// 10.2/AS 3. This attribute is read only. + /// Creates a new instance of the class. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 11)] - public string requiredFlashPluginVersion { - get { - return this.requiredFlashPluginVersionField; - } - set { - this.requiredFlashPluginVersionField = value; - } + public CreativeSetService(string endpointConfigurationName, string remoteAddress) + : base(endpointConfigurationName, remoteAddress) { } - /// The duration of the creative in milliseconds. This attribute is optional and - /// updatable. + /// Creates a new instance of the class. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 12)] - public int duration { - get { - return this.durationField; - } - set { - this.durationField = value; - this.durationSpecified = true; - } + public CreativeSetService(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 durationSpecified { - get { - return this.durationFieldSpecified; - } - set { - this.durationFieldSpecified = value; - } + /// Creates a new instance of the class. + /// + public CreativeSetService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) + : base(binding, remoteAddress) { } - /// The billing attribute associated with this creative. This attribute is read - /// only. + /// Creates a new CreativeSet. + /// the creative set to create + /// the creative set with its ID filled in + public virtual Google.Api.Ads.AdManager.v201908.CreativeSet createCreativeSet(Google.Api.Ads.AdManager.v201908.CreativeSet creativeSet) { + return base.Channel.createCreativeSet(creativeSet); + } + + public virtual System.Threading.Tasks.Task createCreativeSetAsync(Google.Api.Ads.AdManager.v201908.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
+ ///
a Publisher Query Language statement used to filter a + /// set of creative sets + /// the creative sets that match the given filter + public virtual Google.Api.Ads.AdManager.v201908.CreativeSetPage getCreativeSetsByStatement(Google.Api.Ads.AdManager.v201908.Statement statement) { + return base.Channel.getCreativeSetsByStatement(statement); + } + + public virtual System.Threading.Tasks.Task getCreativeSetsByStatementAsync(Google.Api.Ads.AdManager.v201908.Statement statement) { + return base.Channel.getCreativeSetsByStatementAsync(statement); + } + + /// Updates the specified CreativeSet. + /// the creative set to update + /// the updated creative set + public virtual Google.Api.Ads.AdManager.v201908.CreativeSet updateCreativeSet(Google.Api.Ads.AdManager.v201908.CreativeSet creativeSet) { + return base.Channel.updateCreativeSet(creativeSet); + } + + public virtual System.Threading.Tasks.Task updateCreativeSetAsync(Google.Api.Ads.AdManager.v201908.CreativeSet creativeSet) { + return base.Channel.updateCreativeSetAsync(creativeSet); + } + } + namespace Wrappers.CreativeTemplateService + { + } + /// Stores variable choices that users can select from + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.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/v201908")] + public partial class ListStringCreativeTemplateVariableVariableChoice { + private string labelField; + + 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 = 13)] - public RichMediaStudioCreativeBillingAttribute billingAttribute { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public string label { get { - return this.billingAttributeField; + return this.labelField; } set { - this.billingAttributeField = value; - this.billingAttributeSpecified = true; + this.labelField = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool billingAttributeSpecified { + /// 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.billingAttributeFieldSpecified; + return this.valueField; } set { - this.billingAttributeFieldSpecified = value; + this.valueField = value; } } + } - /// The list of child assets associated with this creative. This attribute is read - /// only. + + /// 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.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public abstract partial class CreativeTemplateVariable { + private string labelField; + + private string uniqueNameField; + + 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("richMediaStudioChildAssetProperties", Order = 14)] - public RichMediaStudioChildAssetProperty[] richMediaStudioChildAssetProperties { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public string label { get { - return this.richMediaStudioChildAssetPropertiesField; + return this.labelField; } set { - this.richMediaStudioChildAssetPropertiesField = value; + this.labelField = value; } } - /// The SSL compatibility scan result of this creative.

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

+ /// 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 = 15)] - public SslScanResult sslScanResult { + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public string uniqueName { get { - return this.sslScanResultField; + return this.uniqueNameField; } set { - this.sslScanResultField = value; - this.sslScanResultSpecified = true; + this.uniqueNameField = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool sslScanResultSpecified { + /// 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.sslScanResultFieldSpecified; + return this.descriptionField; } set { - this.sslScanResultFieldSpecified = value; + this.descriptionField = value; } } - /// The manual override for the SSL compatibility of this creative.

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

+ /// true if this variable is required to be filled in by users when + /// creating TemplateCreative from the CreativeTemplate. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 16)] - public SslManualOverride sslManualOverride { + [System.Xml.Serialization.XmlElementAttribute(Order = 3)] + public bool isRequired { get { - return this.sslManualOverrideField; + return this.isRequiredField; } set { - this.sslManualOverrideField = value; - this.sslManualOverrideSpecified = true; + this.isRequiredField = value; + this.isRequiredSpecified = 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 isRequiredSpecified { get { - return this.sslManualOverrideFieldSpecified; + return this.isRequiredFieldSpecified; } set { - this.sslManualOverrideFieldSpecified = value; + this.isRequiredFieldSpecified = value; } } } - /// Different creative format supported by Rich Media Studio creative. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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, - } - - - /// Rich Media Studio creative artwork types. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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, - } - - - /// 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.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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, - } - - - /// A Creative that is created by a Rich Media Studio. You cannot - /// create this creative, but you can update some fields of this creative. + /// 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.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class RichMediaStudioCreative : BaseRichMediaStudioCreative { - private LockedOrientation lockedOrientationField; - - private bool lockedOrientationFieldSpecified; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class UrlCreativeTemplateVariable : CreativeTemplateVariable { + private string defaultValueField; - private bool isInterstitialField; + private bool isTrackingUrlField; - private bool isInterstitialFieldSpecified; + private bool isTrackingUrlFieldSpecified; - /// A locked orientation for this creative to be displayed in. + /// Default value to be filled in when creating creatives from the creative + /// template. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public LockedOrientation lockedOrientation { - get { - return this.lockedOrientationField; - } - set { - this.lockedOrientationField = value; - this.lockedOrientationSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool lockedOrientationSpecified { + public string defaultValue { get { - return this.lockedOrientationFieldSpecified; + return this.defaultValueField; } set { - this.lockedOrientationFieldSpecified = value; + this.defaultValueField = 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. + /// 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 isInterstitial { + public bool isTrackingUrl { get { - return this.isInterstitialField; + return this.isTrackingUrlField; } set { - this.isInterstitialField = value; - this.isInterstitialSpecified = true; + this.isTrackingUrlField = value; + this.isTrackingUrlSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="isTrackingUrl" />, false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool isInterstitialSpecified { + public bool isTrackingUrlSpecified { get { - return this.isInterstitialFieldSpecified; + return this.isTrackingUrlFieldSpecified; } set { - this.isInterstitialFieldSpecified = value; + this.isTrackingUrlFieldSpecified = value; } } } - /// 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.Xml.Serialization.XmlIncludeAttribute(typeof(AdMobBackfillCreative))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public abstract partial class BaseDynamicAllocationCreative : Creative { - } - - - /// Dynamic allocation creative with a backfill code snippet. + /// 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(AdSenseCreative))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(AdExchangeCreative))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ListStringCreativeTemplateVariable))] [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public abstract partial class HasHtmlSnippetDynamicAllocationCreative : BaseDynamicAllocationCreative { - private string codeSnippetField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class StringCreativeTemplateVariable : CreativeTemplateVariable { + private string defaultValueField; - /// 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. + /// Default value to be filled in when creating creatives from the creative + /// template. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public string codeSnippet { + public string defaultValue { get { - return this.codeSnippetField; + return this.defaultValueField; } set { - this.codeSnippetField = value; + this.defaultValueField = value; } } } - /// An AdSense dynamic allocation creative. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class AdSenseCreative : HasHtmlSnippetDynamicAllocationCreative { - } - - - /// An Ad Exchange dynamic allocation creative. + /// 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.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class AdExchangeCreative : HasHtmlSnippetDynamicAllocationCreative { - private bool isNativeEligibleField; - - private bool isNativeEligibleFieldSpecified; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class ListStringCreativeTemplateVariable : StringCreativeTemplateVariable { + private ListStringCreativeTemplateVariableVariableChoice[] choicesField; - private bool isInterstitialField; + private bool allowOtherChoiceField; - private bool isInterstitialFieldSpecified; + private bool allowOtherChoiceFieldSpecified; - /// Whether this creative is eligible for native ad-serving. This value is optional - /// and defaults to false. + /// The values within the list users need to select from. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - 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 { + [System.Xml.Serialization.XmlElementAttribute("choices", Order = 0)] + public ListStringCreativeTemplateVariableVariableChoice[] choices { get { - return this.isNativeEligibleFieldSpecified; + return this.choicesField; } set { - this.isNativeEligibleFieldSpecified = value; + this.choicesField = value; } } - /// true if this creative is interstitial. An interstitial creative - /// will not consider an impression served until it is fully rendered in the - /// browser. + /// 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 isInterstitial { + public bool allowOtherChoice { get { - return this.isInterstitialField; + return this.allowOtherChoiceField; } set { - this.isInterstitialField = value; - this.isInterstitialSpecified = true; + this.allowOtherChoiceField = value; + this.allowOtherChoiceSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="allowOtherChoice" />, false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool isInterstitialSpecified { + public bool allowOtherChoiceSpecified { get { - return this.isInterstitialFieldSpecified; + return this.allowOtherChoiceFieldSpecified; } set { - this.isInterstitialFieldSpecified = value; + this.allowOtherChoiceFieldSpecified = value; } } } - /// An AdMob backfill creative. + /// Represents a long variable defined in a creative template. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class AdMobBackfillCreative : BaseDynamicAllocationCreative { - private string additionalParametersField; - - private string publisherIdField; - - private LockedOrientation lockedOrientationField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class LongCreativeTemplateVariable : CreativeTemplateVariable { + private long defaultValueField; - private bool lockedOrientationFieldSpecified; + private bool defaultValueFieldSpecified; - /// Optional parameters that you can append to the request to AdMob, for example, - /// test=true&bgcolor=000000. + /// Default value to be filled in when creating creatives from the creative + /// template. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public string additionalParameters { + public long defaultValue { get { - return this.additionalParametersField; + return this.defaultValueField; } set { - this.additionalParametersField = value; + this.defaultValueField = value; + this.defaultValueSpecified = true; } } - /// The AdMob publisher ID. See the Ad Manager - /// Help Center for more information. This attribute is required. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public string publisherId { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool defaultValueSpecified { get { - return this.publisherIdField; + return this.defaultValueFieldSpecified; } set { - this.publisherIdField = value; + this.defaultValueFieldSpecified = 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. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool lockedOrientationSpecified { - get { - return this.lockedOrientationFieldSpecified; - } - set { - this.lockedOrientationFieldSpecified = value; - } - } - } - - - /// Lists all errors associated with template instantiated creatives. + /// 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.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class TemplateInstantiatedCreativeError : ApiError { - private TemplateInstantiatedCreativeErrorReason reasonField; - - private bool reasonFieldSpecified; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class AssetCreativeTemplateVariable : CreativeTemplateVariable { + private AssetCreativeTemplateVariableMimeType[] mimeTypesField; - /// The error reason represented by an enum. + /// 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(Order = 0)] - public TemplateInstantiatedCreativeErrorReason 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("mimeTypes", Order = 0)] + public AssetCreativeTemplateVariableMimeType[] mimeTypes { get { - return this.reasonFieldSpecified; + return this.mimeTypesField; } set { - this.reasonFieldSpecified = value; + this.mimeTypesField = value; } } } - /// The reason for the error + /// Different mime type that the asset variable supports. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "TemplateInstantiatedCreativeError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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.Xml.Serialization.XmlTypeAttribute(TypeName = "AssetCreativeTemplateVariable.MimeType", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum AssetCreativeTemplateVariableMimeType { + JPG = 0, + PNG = 1, + GIF = 2, + SWF = 3, } - /// Error for converting flash to swiffy asset. + /// A template upon which a creative can be created. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class SwiffyConversionError : ApiError { - private SwiffyConversionErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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 SwiffyConversionErrorReason 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; } } - } - - /// Error reason for SwiffyConversionError. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "SwiffyConversionError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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. + /// The name of the creative template. This attribute is required and has a maximum + /// length of 255 characters. /// - UNKNOWN = 3, - } + [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; + } + } - /// Errors associated with set-top box creatives. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class SetTopBoxCreativeError : ApiError { - private SetTopBoxCreativeErrorReason reasonField; + /// 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; + } + } - private bool reasonFieldSpecified; + /// 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 error reason represented by an enum. + /// The status of the CreativeTemplate. This attribute is read-only and + /// is assigned by Google. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public SetTopBoxCreativeErrorReason reason { + [System.Xml.Serialization.XmlElementAttribute(Order = 5)] + public CreativeTemplateStatus 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; } } - } - - - /// Error reasons for set-top box creatives. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "SetTopBoxCreativeError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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. - /// - EXTERNAL_ASSET_ID_REQUIRED = 2, - /// Set-top box creative provider IDs are immutable after creation. - /// - PROVIDER_ID_IMMUTABLE = 3, - /// An invalid tracking URL event type was set on the set-top box creative. - /// - INVALID_THIRD_PARTY_TRACKING_URL_EVENT_TYPE = 5, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 4, - } - - /// Lists all errors associated with Studio creatives. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class RichMediaStudioCreativeError : ApiError { - private RichMediaStudioCreativeErrorReason reasonField; - - private bool reasonFieldSpecified; - - /// The error reason represented by an enum. + /// The type of the CreativeTemplate. Publisher can only create + /// user-defined template /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public RichMediaStudioCreativeErrorReason reason { + [System.Xml.Serialization.XmlElementAttribute(Order = 6)] + public CreativeTemplateType type { get { - return this.reasonField; + return this.typeField; } set { - this.reasonField = value; - this.reasonSpecified = 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 reasonSpecified { + public bool typeSpecified { get { - return this.reasonFieldSpecified; + return this.typeFieldSpecified; } set { - this.reasonFieldSpecified = value; + this.typeFieldSpecified = value; } } - } - - /// The reasons for the target error. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "RichMediaStudioCreativeError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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. - /// - 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. + /// true if this creative template produces interstitial creatives. /// - UNKNOWN = 9, - } + [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; + } + } - /// A list of all errors to be used for validating Size. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class RequiredSizeError : ApiError { - private RequiredSizeErrorReason reasonField; + /// 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; + } + } - private bool reasonFieldSpecified; + /// 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; + } + } - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public RequiredSizeErrorReason reason { + /// 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.reasonField; + return this.isSafeFrameCompatibleField; } set { - this.reasonField = value; - this.reasonSpecified = 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 reasonSpecified { + public bool isSafeFrameCompatibleSpecified { get { - return this.reasonFieldSpecified; + return this.isSafeFrameCompatibleFieldSpecified; } set { - this.reasonFieldSpecified = value; + this.isSafeFrameCompatibleFieldSpecified = value; } } } + /// Describes status of the creative template + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "RequiredSizeError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum RequiredSizeErrorReason { - /// Creative#size or LineItem#creativeSizes is missing. + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum CreativeTemplateStatus { + /// The CreativeTemplate is active /// - REQUIRED = 0, - /// LineItemCreativeAssociation#sizes - /// must be a subset of LineItem#creativeSizes. + ACTIVE = 0, + /// The CreativeTemplate is inactive. Users cannot + /// create new creatives from this template, but existing ones can be edited and + /// continue to serve /// - NOT_ALLOWED = 1, - /// The value returned if the actual value is not exposed by the requested API - /// version. + INACTIVE = 1, + /// The CreativeTemplate is deleted. Creatives + /// created from this CreativeTemplate can no longer + /// serve. /// - UNKNOWN = 2, + DELETED = 2, + } + + + /// Describes type of the creative template. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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. + /// + USER_DEFINED = 1, } - /// Errors associated with violation of a NOT NULL check. + /// Captures a page of CreativeTemplate objects. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class NullError : ApiError { - private NullErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class CreativeTemplatePage { + private int totalResultSetSizeField; - private bool reasonFieldSpecified; + private bool totalResultSetSizeFieldSpecified; - /// The error reason represented by an enum. + 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 NullErrorReason 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 validation error. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "NullError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum NullErrorReason { - /// Specified list/container must not contain any null elements - /// - NULL_CONTENT = 0, - } - - - /// Lists all errors associated with line item-to-creative association dates. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class LineItemCreativeAssociationError : ApiError { - private LineItemCreativeAssociationErrorReason 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 LineItemCreativeAssociationErrorReason 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.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "LineItemCreativeAssociationError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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_CREAIVE_VAST_REDIRECT_TYPE = 17, - /// 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 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. + /// The collection of creative templates contained within this page. /// - UNKNOWN = 16, + [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] + public CreativeTemplate[] results { + get { + return this.resultsField; + } + set { + this.resultsField = value; + } + } } - /// Errors specific to creating label entity associations. + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", ConfigurationName = "Google.Api.Ads.AdManager.v201908.CreativeTemplateServiceInterface")] + public interface CreativeTemplateServiceInterface + { + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201908.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v201908.CreativeTemplatePage getCreativeTemplatesByStatement(Google.Api.Ads.AdManager.v201908.Statement filterStatement); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task getCreativeTemplatesByStatementAsync(Google.Api.Ads.AdManager.v201908.Statement filterStatement); + } + + + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + public interface CreativeTemplateServiceInterfaceChannel : Google.Api.Ads.AdManager.v201908.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
+ ///
a Publisher Query Language statement used to + /// filter a set of creative templates. + /// the creative templates that match the given filter + public virtual Google.Api.Ads.AdManager.v201908.CreativeTemplatePage getCreativeTemplatesByStatement(Google.Api.Ads.AdManager.v201908.Statement filterStatement) { + return base.Channel.getCreativeTemplatesByStatement(filterStatement); + } + + public virtual System.Threading.Tasks.Task getCreativeTemplatesByStatementAsync(Google.Api.Ads.AdManager.v201908.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/v201908", IsWrapped = true)] + public partial class createCreativeWrappersRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("creativeWrappers")] + public Google.Api.Ads.AdManager.v201908.CreativeWrapper[] creativeWrappers; + + /// Creates a new instance of the class. + public createCreativeWrappersRequest() { + } + + /// Creates a new instance of the class. + public createCreativeWrappersRequest(Google.Api.Ads.AdManager.v201908.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/v201908", IsWrapped = true)] + public partial class createCreativeWrappersResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("rval")] + public Google.Api.Ads.AdManager.v201908.CreativeWrapper[] rval; + + /// Creates a new instance of the class. + public createCreativeWrappersResponse() { + } + + /// Creates a new instance of the class. + public createCreativeWrappersResponse(Google.Api.Ads.AdManager.v201908.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/v201908", IsWrapped = true)] + public partial class updateCreativeWrappersRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("creativeWrappers")] + public Google.Api.Ads.AdManager.v201908.CreativeWrapper[] creativeWrappers; + + /// Creates a new instance of the class. + public updateCreativeWrappersRequest() { + } + + /// Creates a new instance of the class. + public updateCreativeWrappersRequest(Google.Api.Ads.AdManager.v201908.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/v201908", IsWrapped = true)] + public partial class updateCreativeWrappersResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("rval")] + public Google.Api.Ads.AdManager.v201908.CreativeWrapper[] rval; + + /// Creates a new instance of the class. + public updateCreativeWrappersResponse() { + } + + /// Creates a new instance of the class. + public updateCreativeWrappersResponse(Google.Api.Ads.AdManager.v201908.CreativeWrapper[] 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.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class LabelEntityAssociationError : ApiError { - private LabelEntityAssociationErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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 string htmlHeaderField; + + private string htmlFooterField; + + private string ampHeadField; + + private string ampBodyField; + + 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 LabelEntityAssociationErrorReason 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 header HTML snippet that this creative wrapper delivers. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public string htmlHeader { + get { + return this.htmlHeaderField; + } + set { + this.htmlHeaderField = value; + } + } + + /// The footer HTML snippet that this creative wrapper delivers. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 3)] + 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 = 4)] + 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 = 5)] + public string ampBody { + get { + return this.ampBodyField; + } + set { + this.ampBodyField = value; + } + } + + /// If there are multiple wrappers for a creative, then defines the + /// order in which the HTML snippets are rendered. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 6)] + public CreativeWrapperOrdering ordering { + get { + return this.orderingField; + } + set { + this.orderingField = value; + this.orderingSpecified = true; + } + } + + /// 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 = 7)] + 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 statusSpecified { + get { + return this.statusFieldSpecified; + } + set { + this.statusFieldSpecified = value; } } } - /// The reasons for the target error. + /// 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.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "LabelEntityAssociationError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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. + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum CreativeWrapperOrdering { + /// Wrapping occurs after #INNER but before #OUTER /// - INVALID_ASSOCIATION = 2, - /// The same label is being applied and negated to the same entity. + NO_PREFERENCE = 0, + /// Wrapping occurs as early as possible. /// - DUPLICATE_ASSOCIATION_WITH_NEGATION = 3, - /// 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 = 4, + OUTER = 2, } - /// Lists all errors associated with phone numbers. + /// 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.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum CreativeWrapperStatus { + ACTIVE = 0, + INACTIVE = 1, + } + + + /// Errors specific to labels. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class InvalidPhoneNumberError : ApiError { - private InvalidPhoneNumberErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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 InvalidPhoneNumberErrorReason reason { + public LabelErrorReason reason { get { return this.reasonField; } @@ -11715,16 +12106,18 @@ public bool reasonSpecified { } + /// The reasons for the target error. + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "InvalidPhoneNumberError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum InvalidPhoneNumberErrorReason { - /// The phone number is invalid. + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "LabelError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum LabelErrorReason { + /// A user created label cannot begin with the Google internal system label prefix. /// - INVALID_FORMAT = 0, - /// The phone number is too short. + INVALID_PREFIX = 0, + /// Label#name contains unsupported or reserved characters. /// - TOO_SHORT = 1, + NAME_INVALID_CHARS = 1, /// The value returned if the actual value is not exposed by the requested API /// version. /// @@ -11732,22 +12125,22 @@ public enum InvalidPhoneNumberErrorReason { } - /// Lists all errors associated with images. + /// Errors specific to creative wrappers. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ImageError : ApiError { - private ImageErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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 ImageErrorReason reason { + public CreativeWrapperErrorReason reason { get { return this.reasonField; } @@ -11772,705 +12165,816 @@ public bool reasonSpecified { } - /// The reasons for the target error. + /// The reasons for the creative wrapper error. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ImageError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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 = "CreativeWrapperError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum CreativeWrapperErrorReason { + /// The label is already associated with a CreativeWrapper. /// - UNEXPECTED_SIZE = 2, - /// The size of the asset is larger than that of the overlay creative. + LABEL_ALREADY_ASSOCIATED_WITH_CREATIVE_WRAPPER = 0, + /// The label type of a creative wrapper must be LabelType#CREATIVE_WRAPPER. /// - OVERLAY_SIZE_TOO_LARGE = 3, - /// Animated images are not allowed. + INVALID_LABEL_TYPE = 1, + /// A macro used inside the snippet is not recognized. /// - ANIMATED_NOT_ALLOWED = 4, - /// Animation length exceeded the allowed policy limit. + UNRECOGNIZED_MACRO = 2, + /// When creating a new creative wrapper, either header or footer should exist. /// - ANIMATION_TOO_LONG = 5, - /// Images in CMYK color formats are not allowed. + NEITHER_HEADER_NOR_FOOTER_SPECIFIED = 3, + /// The network has not been enabled for creating labels of type LabelType#CREATIVE_WRAPPER. /// - CMYK_JPEG_NOT_ALLOWED = 6, - /// Flash files are not allowed. + CANNOT_USE_CREATIVE_WRAPPER_TYPE = 4, + /// Cannot update CreativeWrapper#labelId. /// - 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 = 21, - /// 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. + 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. /// - 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.) + CANNOT_APPLY_TO_AD_UNIT_WITH_VIDEO_SIZES = 6, + /// Cannot apply LabelType#CREATIVE_WRAPPER + /// labels to an ad unit if AdUnit#targetPlatform is of type /// - MISSING_DEFAULT_ASSET = 24, + CANNOT_APPLY_TO_MOBILE_AD_UNIT = 7, /// The value returned if the actual value is not exposed by the requested API /// version. /// - UNKNOWN = 25, + UNKNOWN = 8, } - /// Lists all errors associated with html5 file processing. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class HtmlBundleProcessorError : ApiError { - private HtmlBundleProcessorErrorReason reasonField; + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", ConfigurationName = "Google.Api.Ads.AdManager.v201908.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.v201908.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); - private bool reasonFieldSpecified; + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + System.Threading.Tasks.Task createCreativeWrappersAsync(Wrappers.CreativeWrapperService.createCreativeWrappersRequest request); - /// The error reason represented by an enum. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public HtmlBundleProcessorErrorReason 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.v201908.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v201908.CreativeWrapperPage getCreativeWrappersByStatement(Google.Api.Ads.AdManager.v201908.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 getCreativeWrappersByStatementAsync(Google.Api.Ads.AdManager.v201908.Statement filterStatement); + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201908.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v201908.UpdateResult performCreativeWrapperAction(Google.Api.Ads.AdManager.v201908.CreativeWrapperAction creativeWrapperAction, Google.Api.Ads.AdManager.v201908.Statement filterStatement); - /// Error reasons that may arise during HTML5 bundle processing. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "HtmlBundleProcessorError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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. - /// - PRIMARY_HTML_MISSING = 12, - /// Multiple HTML files are detected. One of them should be named as - /// index.html - /// - PRIMARY_HTML_UNDETERMINED = 13, - /// An SVG block could not be parsed. - /// - SVG_BLOCK_INVALID = 14, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 15, + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task performCreativeWrapperActionAsync(Google.Api.Ads.AdManager.v201908.CreativeWrapperAction creativeWrapperAction, Google.Api.Ads.AdManager.v201908.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.v201908.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); } - /// A list of all errors to be used for problems related to files. + /// Captures a page of CreativeWrapper objects. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class FileError : ApiError { - private FileErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class CreativeWrapperPage { + private int totalResultSetSizeField; - private bool reasonFieldSpecified; + private bool totalResultSetSizeFieldSpecified; + + private int startIndexField; + + private bool startIndexFieldSpecified; + + private CreativeWrapper[] resultsField; + /// The size of the total result set to which this page belongs. + /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public FileErrorReason 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; } } - } - - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "FileError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum FileErrorReason { - /// The provided byte array is empty. - /// - MISSING_CONTENTS = 0, - /// The provided file is larger than the maximum size defined for the network. - /// - SIZE_TOO_LARGE = 1, - /// 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 = 2, - } - - - /// 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.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class EntityLimitReachedError : ApiError { - private EntityLimitReachedErrorReason reasonField; - - private bool reasonFieldSpecified; - - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public EntityLimitReachedErrorReason 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 entity limit reached error. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "EntityLimitReachedError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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 value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 5, - } - - - /// Errors specific to editing custom field values - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class CustomFieldValueError : ApiError { - private CustomFieldValueErrorReason reasonField; - - private bool reasonFieldSpecified; - /// The error reason represented by an enum. + /// The collection of creative wrappers contained within this page. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public CustomFieldValueErrorReason 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 CreativeWrapper[] 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 CreativeWrapper objects. /// + [System.Xml.Serialization.XmlIncludeAttribute(typeof(DeactivateCreativeWrappers))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ActivateCreativeWrappers))] [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CustomFieldValueError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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. - /// - CUSTOM_FIELD_OPTION_NOT_FOUND = 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/v201908")] + public abstract partial class CreativeWrapperAction { } - /// Lists all errors associated with custom creatives. + /// The action used for deactivating CreativeWrapper + /// objects. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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 CustomCreativeErrorReason 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/v201908")] + public partial class DeactivateCreativeWrappers : CreativeWrapperAction { } - /// The reasons for the target error. + /// The action used for activating CreativeWrapper + /// objects. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CustomCreativeError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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. - /// - SNIPPET_REFERENCES_MISSING_MACRO = 1, - /// The macro referenced in the snippet is not valid. - /// - UNRECOGNIZED_MACRO = 2, - /// Custom creatives are not allowed in this context. - /// - 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 = 6, + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class ActivateCreativeWrappers : CreativeWrapperAction { } - /// An error that can occur while performing an operation on a creative template. + /// Represents the result of performing an action on objects. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class CreativeTemplateOperationError : ApiError { - private CreativeTemplateOperationErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class UpdateResult { + private int numChangesField; - private bool reasonFieldSpecified; + private bool numChangesFieldSpecified; - /// The error reason represented by an enum. + /// The number of objects that were changed as a result of performing the action. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public CreativeTemplateOperationErrorReason reason { + public int numChanges { get { - return this.reasonField; + return this.numChangesField; } set { - this.reasonField = value; - this.reasonSpecified = 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 reasonSpecified { + public bool numChangesSpecified { get { - return this.reasonFieldSpecified; + return this.numChangesFieldSpecified; } set { - this.reasonFieldSpecified = value; + this.numChangesFieldSpecified = value; } } } - /// The reasons for the target error. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CreativeTemplateOperationError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum CreativeTemplateOperationErrorReason { - /// The current user is not allowed to modify this creative template. - /// - NOT_ALLOWED = 0, - /// The operation is not applicable to the current state. (e.g. Trying to activate - /// an active creative template) - /// - NOT_APPLICABLE = 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")] + public interface CreativeWrapperServiceInterfaceChannel : Google.Api.Ads.AdManager.v201908.CreativeWrapperServiceInterface, System.ServiceModel.IClientChannel + { } - /// A catch-all error that lists all generic errors associated with - /// CreativeTemplate. + /// 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.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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 CreativeTemplateErrorReason reason { - get { - return this.reasonField; - } - set { - this.reasonField = value; - this.reasonSpecified = true; - } + [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() { } - /// 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 CreativeWrapperService(string endpointConfigurationName) + : base(endpointConfigurationName) { + } + + /// Creates a new instance of the + /// class. + public CreativeWrapperService(string endpointConfigurationName, string remoteAddress) + : base(endpointConfigurationName, 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 CreativeWrapperService(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.v201908.CreativeWrapperServiceInterface.createCreativeWrappers(Wrappers.CreativeWrapperService.createCreativeWrappersRequest request) { + return base.Channel.createCreativeWrappers(request); + } + + /// Creates a new CreativeWrapper objects. The following fields are + /// required: + /// the creative wrappers to create + /// the creative wrappers with their IDs filled in + /// ApiException + public virtual Google.Api.Ads.AdManager.v201908.CreativeWrapper[] createCreativeWrappers(Google.Api.Ads.AdManager.v201908.CreativeWrapper[] creativeWrappers) { + Wrappers.CreativeWrapperService.createCreativeWrappersRequest inValue = new Wrappers.CreativeWrapperService.createCreativeWrappersRequest(); + inValue.creativeWrappers = creativeWrappers; + Wrappers.CreativeWrapperService.createCreativeWrappersResponse retVal = ((Google.Api.Ads.AdManager.v201908.CreativeWrapperServiceInterface)(this)).createCreativeWrappers(inValue); + return retVal.rval; + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201908.CreativeWrapperServiceInterface.createCreativeWrappersAsync(Wrappers.CreativeWrapperService.createCreativeWrappersRequest request) { + return base.Channel.createCreativeWrappersAsync(request); + } + + public virtual System.Threading.Tasks.Task createCreativeWrappersAsync(Google.Api.Ads.AdManager.v201908.CreativeWrapper[] creativeWrappers) { + Wrappers.CreativeWrapperService.createCreativeWrappersRequest inValue = new Wrappers.CreativeWrapperService.createCreativeWrappersRequest(); + inValue.creativeWrappers = creativeWrappers; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201908.CreativeWrapperServiceInterface)(this)).createCreativeWrappersAsync(inValue)).Result.rval); + } + + /// 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
+ ///
a Publisher Query Language statement used to + /// filter a set of creative wrappers. + /// the creative wrappers that match the given filter + public virtual Google.Api.Ads.AdManager.v201908.CreativeWrapperPage getCreativeWrappersByStatement(Google.Api.Ads.AdManager.v201908.Statement filterStatement) { + return base.Channel.getCreativeWrappersByStatement(filterStatement); + } + + public virtual System.Threading.Tasks.Task getCreativeWrappersByStatementAsync(Google.Api.Ads.AdManager.v201908.Statement filterStatement) { + return base.Channel.getCreativeWrappersByStatementAsync(filterStatement); + } + + /// Performs actions on CreativeWrapper objects that + /// match the given Statement#query. + /// the action to perform + /// a Publisher Query Language statement used to + /// filter a set of labels + /// the result of the action performed + public virtual Google.Api.Ads.AdManager.v201908.UpdateResult performCreativeWrapperAction(Google.Api.Ads.AdManager.v201908.CreativeWrapperAction creativeWrapperAction, Google.Api.Ads.AdManager.v201908.Statement filterStatement) { + return base.Channel.performCreativeWrapperAction(creativeWrapperAction, filterStatement); + } + + public virtual System.Threading.Tasks.Task performCreativeWrapperActionAsync(Google.Api.Ads.AdManager.v201908.CreativeWrapperAction creativeWrapperAction, Google.Api.Ads.AdManager.v201908.Statement filterStatement) { + return base.Channel.performCreativeWrapperActionAsync(creativeWrapperAction, filterStatement); + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + Wrappers.CreativeWrapperService.updateCreativeWrappersResponse Google.Api.Ads.AdManager.v201908.CreativeWrapperServiceInterface.updateCreativeWrappers(Wrappers.CreativeWrapperService.updateCreativeWrappersRequest request) { + return base.Channel.updateCreativeWrappers(request); + } + + /// Updates the specified CreativeWrapper objects. + /// the creative wrappers to update + /// the updated creative wrapper objects + /// ApiException + public virtual Google.Api.Ads.AdManager.v201908.CreativeWrapper[] updateCreativeWrappers(Google.Api.Ads.AdManager.v201908.CreativeWrapper[] creativeWrappers) { + Wrappers.CreativeWrapperService.updateCreativeWrappersRequest inValue = new Wrappers.CreativeWrapperService.updateCreativeWrappersRequest(); + inValue.creativeWrappers = creativeWrappers; + Wrappers.CreativeWrapperService.updateCreativeWrappersResponse retVal = ((Google.Api.Ads.AdManager.v201908.CreativeWrapperServiceInterface)(this)).updateCreativeWrappers(inValue); + return retVal.rval; + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201908.CreativeWrapperServiceInterface.updateCreativeWrappersAsync(Wrappers.CreativeWrapperService.updateCreativeWrappersRequest request) { + return base.Channel.updateCreativeWrappersAsync(request); + } + + public virtual System.Threading.Tasks.Task updateCreativeWrappersAsync(Google.Api.Ads.AdManager.v201908.CreativeWrapper[] creativeWrappers) { + Wrappers.CreativeWrapperService.updateCreativeWrappersRequest inValue = new Wrappers.CreativeWrapperService.updateCreativeWrappersRequest(); + inValue.creativeWrappers = creativeWrappers; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201908.CreativeWrapperServiceInterface)(this)).updateCreativeWrappersAsync(inValue)).Result.rval); + } + } + 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/v201908", IsWrapped = true)] + public partial class createCustomTargetingKeysRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("keys")] + public Google.Api.Ads.AdManager.v201908.CustomTargetingKey[] keys; + + /// Creates a new instance of the class. + public createCustomTargetingKeysRequest() { } - set { - this.reasonFieldSpecified = value; + + /// Creates a new instance of the class. + public createCustomTargetingKeysRequest(Google.Api.Ads.AdManager.v201908.CustomTargetingKey[] keys) { + this.keys = keys; } } - } - /// The reasons for the target error. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CreativeTemplateError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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. - /// - NO_TARGET_PLATFORMS = 6, - /// More than one target platform is assigned to a single creative template. - /// - MULTIPLE_TARGET_PLATFORMS = 7, - /// The formatter contains a placeholder which is not defined as a variable. - /// - UNRECOGNIZED_PLACEHOLDER = 8, - /// There are variables defined which are not being used in the formatter. - /// - PLACEHOLDERS_NOT_IN_FORMATTER = 9, - /// The creative template is interstitial, but the formatter doesn't contain an - /// interstitial macro. - /// - MISSING_INTERSTITIAL_MACRO = 10, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 11, - } + [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/v201908", IsWrapped = true)] + public partial class createCustomTargetingKeysResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("rval")] + public Google.Api.Ads.AdManager.v201908.CustomTargetingKey[] rval; + /// Creates a new instance of the class. + public createCustomTargetingKeysResponse() { + } - /// Errors relating to creative sets & subclasses. + /// Creates a new instance of the class. + public createCustomTargetingKeysResponse(Google.Api.Ads.AdManager.v201908.CustomTargetingKey[] 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 = "createCustomTargetingValues", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201908", IsWrapped = true)] + public partial class createCustomTargetingValuesRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("values")] + public Google.Api.Ads.AdManager.v201908.CustomTargetingValue[] values; + + /// Creates a new instance of the class. + public createCustomTargetingValuesRequest() { + } + + /// Creates a new instance of the class. + public createCustomTargetingValuesRequest(Google.Api.Ads.AdManager.v201908.CustomTargetingValue[] values) { + this.values = values; + } + } + + + [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/v201908", IsWrapped = true)] + public partial class createCustomTargetingValuesResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("rval")] + public Google.Api.Ads.AdManager.v201908.CustomTargetingValue[] rval; + + /// Creates a new instance of the class. + public createCustomTargetingValuesResponse() { + } + + /// Creates a new instance of the class. + public createCustomTargetingValuesResponse(Google.Api.Ads.AdManager.v201908.CustomTargetingValue[] 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 = "updateCustomTargetingKeys", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201908", IsWrapped = true)] + public partial class updateCustomTargetingKeysRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("keys")] + public Google.Api.Ads.AdManager.v201908.CustomTargetingKey[] keys; + + /// Creates a new instance of the class. + public updateCustomTargetingKeysRequest() { + } + + /// Creates a new instance of the class. + public updateCustomTargetingKeysRequest(Google.Api.Ads.AdManager.v201908.CustomTargetingKey[] keys) { + this.keys = keys; + } + } + + + [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/v201908", IsWrapped = true)] + public partial class updateCustomTargetingKeysResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("rval")] + public Google.Api.Ads.AdManager.v201908.CustomTargetingKey[] rval; + + /// Creates a new instance of the class. + public updateCustomTargetingKeysResponse() { + } + + /// Creates a new instance of the class. + public updateCustomTargetingKeysResponse(Google.Api.Ads.AdManager.v201908.CustomTargetingKey[] 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 = "updateCustomTargetingValues", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201908", IsWrapped = true)] + public partial class updateCustomTargetingValuesRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("values")] + public Google.Api.Ads.AdManager.v201908.CustomTargetingValue[] values; + + /// Creates a new instance of the class. + public updateCustomTargetingValuesRequest() { + } + + /// Creates a new instance of the class. + public updateCustomTargetingValuesRequest(Google.Api.Ads.AdManager.v201908.CustomTargetingValue[] values) { + this.values = values; + } + } + + + [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/v201908", IsWrapped = true)] + public partial class updateCustomTargetingValuesResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("rval")] + public Google.Api.Ads.AdManager.v201908.CustomTargetingValue[] rval; + + /// Creates a new instance of the class. + public updateCustomTargetingValuesResponse() { + } + + /// Creates a new instance of the class. + public updateCustomTargetingValuesResponse(Google.Api.Ads.AdManager.v201908.CustomTargetingValue[] rval) { + this.rval = rval; + } + } + } + /// CustomTargetingKey represents a key used for custom targeting. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class CreativeSetError : ApiError { - private CreativeSetErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class CustomTargetingKey { + private long idField; - private bool reasonFieldSpecified; + private bool idFieldSpecified; - /// The error reason represented by an enum. + private string nameField; + + private string displayNameField; + + private CustomTargetingKeyType typeField; + + 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 CreativeSetErrorReason 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; + } + } + + /// 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. + /// + [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 { + 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; + } + } + + /// Status of the CustomTargetingKey. This field is read-only. A key + /// can be activated and deactivated by calling CustomTargetingService#performCustomTargetingKeyAction. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 4)] + public CustomTargetingKeyStatus 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; + } + } + + /// Reportable state of a {@CustomTargetingKey} as defined in ReportableType. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 5)] + public ReportableType reportableType { + get { + return this.reportableTypeField; + } + set { + this.reportableTypeField = value; + this.reportableTypeSpecified = true; + } + } + + /// 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; } } } - /// The reasons for the target error. + /// Specifies the types for CustomTargetingKey objects. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CreativeSetError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum CreativeSetErrorReason { - /// The 'video' feature is required but not enabled. + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CustomTargetingKey.Type", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum CustomTargetingKeyType { + /// Target audiences by criteria values that are defined in advance. /// - VIDEO_FEATURE_REQUIRED = 0, - /// Video creatives (including overlays, VAST redirects, etc..) cannot be created or - /// updated through the API. + PREDEFINED = 0, + /// Target audiences by adding criteria values when creating line items. /// - CANNOT_CREATE_OR_UPDATE_VIDEO_CREATIVES = 1, - /// The 'roadblock' feature is required but not enabled. + FREEFORM = 1, + } + + + /// Describes the statuses for CustomTargetingKey objects. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CustomTargetingKey.Status", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum CustomTargetingKeyStatus { + /// The object is active. /// - ROADBLOCK_FEATURE_REQUIRED = 2, - /// A master creative cannot be a companion creative in the same creative set. + ACTIVE = 0, + /// The object is no longer active. /// - MASTER_CREATIVE_CANNOT_BE_COMPANION = 3, - /// Creatives in a creative set must be for the same advertiser. + INACTIVE = 1, + /// The value returned if the actual value is not exposed by the requested API + /// version. /// - INVALID_ADVERTISER = 4, - /// Updating a master creative in a creative set is not allowed. + UNKNOWN = 2, + } + + + /// Represents the reportable state of a custom key. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum ReportableType { + UNKNOWN = 0, + /// Available for reporting in the Ad Manager query tool. /// - UPDATE_MASTER_CREATIVE_NOT_ALLOWED = 5, - /// A master creative must belong to only one video creative set. + ON = 1, + /// Not available for reporting in the Ad Manager query tool. /// - MASTER_CREATIVE_CANNOT_BELONG_TO_MULTIPLE_VIDEO_CREATIVE_SETS = 7, - /// The value returned if the actual value is not exposed by the requested API - /// version. + OFF = 2, + /// Custom dimension available for reporting in the AdManager query tool. /// - UNKNOWN = 6, + CUSTOM_DIMENSION = 3, } - /// Lists all errors associated with creatives. + /// Lists errors relating to having too many children on an entity. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class CreativeError : ApiError { - private CreativeErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class EntityChildrenLimitReachedError : ApiError { + private EntityChildrenLimitReachedErrorReason reasonField; private bool reasonFieldSpecified; - /// The error reason represented by an enum. - /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public CreativeErrorReason reason { + public EntityChildrenLimitReachedErrorReason reason { get { return this.reasonField; } @@ -12495,96 +12999,97 @@ public bool reasonSpecified { } - /// The reasons for the target error. + /// The reasons for the entity children limit reached error. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CreativeError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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. - /// - 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. + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "EntityChildrenLimitReachedError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum EntityChildrenLimitReachedErrorReason { + /// The number of line items on the order exceeds the max number of line items + /// allowed per order in the network. /// - INVALID_INTERNAL_REDIRECT_URL = 1, - /// HasDestinationUrlCreative#destinationUrl - /// is required. + 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. /// - DESTINATION_URL_REQUIRED = 2, - /// HasDestinationUrlCreative#destinationUrl - /// must be empty when its type is DestinationUrlType#NONE. + 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. /// - DESTINATION_URL_NOT_EMPTY = 14, - /// The provided DestinationUrlType is not - /// supported for the creative type it is being used on. + 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. /// - DESTINATION_URL_TYPE_NOT_SUPPORTED = 15, - /// Cannot create or update legacy DART For Publishers creative. + TARGETING_EXPRESSION_LIMIT_FOR_LINE_ITEM_REACHED = 3, + /// The number of custom targeting values for the free-form or predefined custom + /// targeting key exceeds the max number allowed. /// - CANNOT_CREATE_OR_UPDATE_LEGACY_DFP_CREATIVE = 3, - /// Cannot create or update legacy mobile creative. + 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. /// - CANNOT_CREATE_OR_UPDATE_LEGACY_DFP_MOBILE_CREATIVE = 4, - /// The user is missing a necessary feature. + 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. /// - MISSING_FEATURE = 5, - /// Company type should be one of Advertisers, House Advertisers and Ad Networks. + 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. /// - INVALID_COMPANY_TYPE = 6, - /// Invalid size for AdSense dynamic allocation creative. Only valid AFC sizes are - /// allowed. + 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. /// - INVALID_ADSENSE_CREATIVE_SIZE = 7, - /// Invalid size for Ad Exchange dynamic allocation creative. Only valid Ad Exchange - /// sizes are allowed. + 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. /// - INVALID_AD_EXCHANGE_CREATIVE_SIZE = 8, - /// Assets associated with the same creative must be unique. + 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. /// - DUPLICATE_ASSET_IN_CREATIVE = 9, - /// A creative asset cannot contain an asset ID and a byte array. + 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. /// - CREATIVE_ASSET_CANNOT_HAVE_ID_AND_BYTE_ARRAY = 10, - /// Cannot create or update unsupported creative. + 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. /// - CANNOT_CREATE_OR_UPDATE_UNSUPPORTED_CREATIVE = 11, - /// Cannot create programmatic creatives. + 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. /// - CANNOT_CREATE_PROGRAMMATIC_CREATIVES = 12, - /// A creative must have valid size to use the third-party impression tracker. + 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. /// - INVALID_SIZE_FOR_THIRD_PARTY_IMPRESSION_TRACKER = 16, + TARGETING_EXPRESSION_LIMIT_FOR_PRESENTATION_ASSIGNMENT_REACHED = 16, /// The value returned if the actual value is not exposed by the requested API /// version. /// - UNKNOWN = 13, + UNKNOWN = 12, } - /// Lists all errors associated with creative asset macros. + /// Lists all errors related to CustomTargetingKey + /// and CustomTargetingValue objects. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class CreativeAssetMacroError : ApiError { - private CreativeAssetMacroErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class CustomTargetingError : ApiError { + private CustomTargetingErrorReason reasonField; private bool reasonFieldSpecified; - /// The error reason represented by an enum. - /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public CreativeAssetMacroErrorReason reason { + public CustomTargetingErrorReason reason { get { return this.reasonField; } @@ -12613,516 +13118,594 @@ public bool reasonSpecified { /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CreativeAssetMacroError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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. + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CustomTargetingError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum CustomTargetingErrorReason { + /// Requested CustomTargetingKey is not found. /// - INVALID_MACRO_NAME = 0, - /// The value returned if the actual value is not exposed by the requested API - /// version. + KEY_NOT_FOUND = 0, + /// Number of CustomTargetingKey objects created + /// exceeds the limit allowed for the network. /// - UNKNOWN = 1, - } - - - /// Lists all errors associated with assets. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class AssetError : ApiError { - private AssetErrorReason reasonField; - - private bool reasonFieldSpecified; - - /// The error reason represented by an enum. + KEY_COUNT_TOO_LARGE = 1, + /// CustomTargetingKey with the same CustomTargetingKey#name already exists. /// - [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.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AssetError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum AssetErrorReason { - /// An asset name must be unique across advertiser. + KEY_NAME_DUPLICATE = 2, + /// CustomTargetingKey#name is empty. /// - NON_UNIQUE_NAME = 0, - /// The file name is too long. + KEY_NAME_EMPTY = 3, + /// CustomTargetingKey#name is too long. /// - FILE_NAME_TOO_LONG = 1, - /// The file size is too large. + KEY_NAME_INVALID_LENGTH = 4, + /// CustomTargetingKey#name contains + /// unsupported or reserved characters. /// - FILE_SIZE_TOO_LARGE = 2, - /// Required client code is not present in the code snippet. + KEY_NAME_INVALID_CHARS = 5, + /// CustomTargetingKey#name matches one of the + /// reserved custom targeting key names. /// - MISSING_REQUIRED_DYNAMIC_ALLOCATION_CLIENT = 3, - /// Required height is not present in the code snippet. + KEY_NAME_RESERVED = 6, + /// CustomTargetingKey#displayName is + /// too long. /// - MISSING_REQUIRED_DYNAMIC_ALLOCATION_HEIGHT = 4, - /// Required width is not present in the code snippet. + KEY_DISPLAY_NAME_INVALID_LENGTH = 7, + /// Requested CustomTargetingValue is not found. /// - MISSING_REQUIRED_DYNAMIC_ALLOCATION_WIDTH = 5, - /// Required format is not present in the mobile code snippet. + 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. /// - MISSING_REQUIRED_DYNAMIC_ALLOCATION_FORMAT = 6, - /// The parameter value in the code snippet is invalid. + 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 . /// - INVALID_CODE_SNIPPET_PARAMETER_VALUE = 7, - /// Invalid asset Id. + VALUE_COUNT_FOR_KEY_TOO_LARGE = 10, + /// CustomTargetingValue with the same CustomTargetingValue#name already exists. /// - INVALID_ASSET_ID = 8, + 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, + /// 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, + /// Inactive AudienceSegment object cannot be + /// targeted. + /// + CANNOT_TARGET_INACTIVE_AUDIENCE_SEGMENT = 27, + /// Targeted AudienceSegment object is not valid. + /// + INVALID_AUDIENCE_SEGMENTS = 28, + /// 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 = 9, + UNKNOWN = 30, } [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", ConfigurationName = "Google.Api.Ads.AdManager.v201808.CreativeServiceInterface")] - public interface CreativeServiceInterface + [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", ConfigurationName = "Google.Api.Ads.AdManager.v201908.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.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201908.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.CustomTargetingService.createCustomTargetingKeysResponse createCustomTargetingKeys(Wrappers.CustomTargetingService.createCustomTargetingKeysRequest request); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task createCreativesAsync(Wrappers.CreativeService.createCreativesRequest request); + 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.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201908.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.v201908.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v201908.CustomTargetingKeyPage getCustomTargetingKeysByStatement(Google.Api.Ads.AdManager.v201908.Statement filterStatement); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task getCustomTargetingKeysByStatementAsync(Google.Api.Ads.AdManager.v201908.Statement filterStatement); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201908.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v201908.CustomTargetingValuePage getCustomTargetingValuesByStatement(Google.Api.Ads.AdManager.v201908.Statement filterStatement); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task getCustomTargetingValuesByStatementAsync(Google.Api.Ads.AdManager.v201908.Statement filterStatement); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201908.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v201908.UpdateResult performCustomTargetingKeyAction(Google.Api.Ads.AdManager.v201908.CustomTargetingKeyAction customTargetingKeyAction, Google.Api.Ads.AdManager.v201908.Statement filterStatement); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task performCustomTargetingKeyActionAsync(Google.Api.Ads.AdManager.v201908.CustomTargetingKeyAction customTargetingKeyAction, Google.Api.Ads.AdManager.v201908.Statement filterStatement); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201908.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.v201808.CreativePage getCreativesByStatement(Google.Api.Ads.AdManager.v201808.Statement filterStatement); + Google.Api.Ads.AdManager.v201908.UpdateResult performCustomTargetingValueAction(Google.Api.Ads.AdManager.v201908.CustomTargetingValueAction customTargetingValueAction, Google.Api.Ads.AdManager.v201908.Statement filterStatement); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getCreativesByStatementAsync(Google.Api.Ads.AdManager.v201808.Statement filterStatement); + System.Threading.Tasks.Task performCustomTargetingValueActionAsync(Google.Api.Ads.AdManager.v201908.CustomTargetingValueAction customTargetingValueAction, Google.Api.Ads.AdManager.v201908.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.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201908.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.CustomTargetingService.updateCustomTargetingKeysResponse updateCustomTargetingKeys(Wrappers.CustomTargetingService.updateCustomTargetingKeysRequest request); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task updateCreativesAsync(Wrappers.CreativeService.updateCreativesRequest request); + 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.v201908.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); } - /// Captures a page of Creative objects. + /// CustomTargetingValue represents a value used for custom targeting. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class CreativePage { - private int totalResultSetSizeField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class CustomTargetingValue { + private long customTargetingKeyIdField; - private bool totalResultSetSizeFieldSpecified; + private bool customTargetingKeyIdFieldSpecified; - private int startIndexField; + private long idField; - private bool startIndexFieldSpecified; + private bool idFieldSpecified; - private Creative[] resultsField; + private string nameField; - /// The size of the total result set to which this page belongs. + private string displayNameField; + + private CustomTargetingValueMatchType matchTypeField; + + private bool matchTypeFieldSpecified; + + private CustomTargetingValueStatus statusField; + + private bool statusFieldSpecified; + + /// The ID of the CustomTargetingKey for which this is the value. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public int totalResultSetSize { + public long customTargetingKeyId { get { - return this.totalResultSetSizeField; + return this.customTargetingKeyIdField; } set { - this.totalResultSetSizeField = value; - this.totalResultSetSizeSpecified = true; + this.customTargetingKeyIdField = value; + this.customTargetingKeyIdSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="customTargetingKeyId" />, false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool totalResultSetSizeSpecified { + public bool customTargetingKeyIdSpecified { get { - return this.totalResultSetSizeFieldSpecified; + return this.customTargetingKeyIdFieldSpecified; } set { - this.totalResultSetSizeFieldSpecified = value; + this.customTargetingKeyIdFieldSpecified = value; } } - /// The absolute index in the total result set on which this page begins. + /// The ID of the CustomTargetingValue. This value is readonly and is + /// populated by Google. /// [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public int startIndex { + 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 creatives contained within this page. + /// 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("results", Order = 2)] - public Creative[] results { + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + 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 CreativeServiceInterfaceChannel : Google.Api.Ads.AdManager.v201808.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 DFP 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. + /// Descriptive name for the value. /// - public CreativeService() { + [System.Xml.Serialization.XmlElementAttribute(Order = 3)] + public string displayName { + get { + return this.displayNameField; + } + set { + this.displayNameField = value; + } } - /// Creates a new instance of the class. + /// The way in which the CustomTargetingValue#name strings will be + /// matched. /// - public CreativeService(string endpointConfigurationName) - : base(endpointConfigurationName) { + [System.Xml.Serialization.XmlElementAttribute(Order = 4)] + public CustomTargetingValueMatchType matchType { + get { + return this.matchTypeField; + } + set { + this.matchTypeField = value; + this.matchTypeSpecified = true; + } } - /// Creates a new instance of the class. - /// - public CreativeService(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 matchTypeSpecified { + get { + return this.matchTypeFieldSpecified; + } + set { + this.matchTypeFieldSpecified = value; + } } - /// Creates a new instance of the class. + /// Status of the CustomTargetingValue. This field is read-only. A + /// value can be activated and deactivated by calling CustomTargetingService#performCustomTargetingValueAction. /// - public CreativeService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) - : base(endpointConfigurationName, remoteAddress) { + [System.Xml.Serialization.XmlElementAttribute(Order = 5)] + public CustomTargetingValueStatus status { + get { + return this.statusField; + } + set { + this.statusField = value; + this.statusSpecified = true; + } } - /// 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.v201808.CreativeServiceInterface.createCreatives(Wrappers.CreativeService.createCreativesRequest request) { - return base.Channel.createCreatives(request); - } - - /// Creates new Creative objects. - /// the creatives to create - /// the created creatives with their IDs filled in - public virtual Google.Api.Ads.AdManager.v201808.Creative[] createCreatives(Google.Api.Ads.AdManager.v201808.Creative[] creatives) { - Wrappers.CreativeService.createCreativesRequest inValue = new Wrappers.CreativeService.createCreativesRequest(); - inValue.creatives = creatives; - Wrappers.CreativeService.createCreativesResponse retVal = ((Google.Api.Ads.AdManager.v201808.CreativeServiceInterface)(this)).createCreatives(inValue); - return retVal.rval; - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201808.CreativeServiceInterface.createCreativesAsync(Wrappers.CreativeService.createCreativesRequest request) { - return base.Channel.createCreativesAsync(request); - } - - public virtual System.Threading.Tasks.Task createCreativesAsync(Google.Api.Ads.AdManager.v201808.Creative[] creatives) { - Wrappers.CreativeService.createCreativesRequest inValue = new Wrappers.CreativeService.createCreativesRequest(); - inValue.creatives = creatives; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201808.CreativeServiceInterface)(this)).createCreativesAsync(inValue)).Result.rval); + /// 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; + } } + } - /// 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
- ///
a Publisher Query Language statement used to - /// filter a set of creatives - /// the creatives that match the given filter - public virtual Google.Api.Ads.AdManager.v201808.CreativePage getCreativesByStatement(Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.getCreativesByStatement(filterStatement); - } - public virtual System.Threading.Tasks.Task getCreativesByStatementAsync(Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.getCreativesByStatementAsync(filterStatement); - } + /// Represents the ways in which CustomTargetingValue#name strings will be + /// matched with ad requests. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CustomTargetingValue.MatchType", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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, + } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.CreativeService.updateCreativesResponse Google.Api.Ads.AdManager.v201808.CreativeServiceInterface.updateCreatives(Wrappers.CreativeService.updateCreativesRequest request) { - return base.Channel.updateCreatives(request); - } - /// Updates the specified Creative objects. - /// the creatives to update - /// the updated creatives - public virtual Google.Api.Ads.AdManager.v201808.Creative[] updateCreatives(Google.Api.Ads.AdManager.v201808.Creative[] creatives) { - Wrappers.CreativeService.updateCreativesRequest inValue = new Wrappers.CreativeService.updateCreativesRequest(); - inValue.creatives = creatives; - Wrappers.CreativeService.updateCreativesResponse retVal = ((Google.Api.Ads.AdManager.v201808.CreativeServiceInterface)(this)).updateCreatives(inValue); - return retVal.rval; - } + /// Describes the statuses for CustomTargetingValue objects. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CustomTargetingValue.Status", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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, + } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201808.CreativeServiceInterface.updateCreativesAsync(Wrappers.CreativeService.updateCreativesRequest request) { - return base.Channel.updateCreativesAsync(request); - } - public virtual System.Threading.Tasks.Task updateCreativesAsync(Google.Api.Ads.AdManager.v201808.Creative[] creatives) { - Wrappers.CreativeService.updateCreativesRequest inValue = new Wrappers.CreativeService.updateCreativesRequest(); - inValue.creatives = creatives; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201808.CreativeServiceInterface)(this)).updateCreativesAsync(inValue)).Result.rval); - } - } - namespace Wrappers.CreativeSetService - { - } - /// A creative set is comprised of a master creative and its companion creatives. + /// Captures a page of CustomTargetingKey objects. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class CreativeSet { - private long idField; - - private bool idFieldSpecified; - - private string nameField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class CustomTargetingKeyPage { + private int totalResultSetSizeField; - private long masterCreativeIdField; + private bool totalResultSetSizeFieldSpecified; - private bool masterCreativeIdFieldSpecified; + private int startIndexField; - private long[] companionCreativeIdsField; + private bool startIndexFieldSpecified; - private DateTime lastModifiedDateTimeField; + private CustomTargetingKey[] resultsField; - /// Uniquely identifies the CreativeSet. This attribute is read-only - /// and is assigned by Google when a creative set is created. + /// 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 creative set. This attribute is required 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 { - get { - return this.nameField; - } - set { - this.nameField = value; - } - } - - /// The ID of the master creative associated with this creative set. This attribute - /// is required. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public long masterCreativeId { + public int startIndex { get { - return this.masterCreativeIdField; + return this.startIndexField; } set { - this.masterCreativeIdField = value; - this.masterCreativeIdSpecified = 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 masterCreativeIdSpecified { - get { - return this.masterCreativeIdFieldSpecified; - } - set { - this.masterCreativeIdFieldSpecified = value; - } - } - - /// 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 { + public bool startIndexSpecified { get { - return this.companionCreativeIdsField; + return this.startIndexFieldSpecified; } set { - this.companionCreativeIdsField = value; + this.startIndexFieldSpecified = value; } } - /// The date and time this creative set was last modified. + /// The collection of custom targeting keys contained within this page. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public DateTime lastModifiedDateTime { + [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] + public CustomTargetingKey[] results { get { - return this.lastModifiedDateTimeField; + return this.resultsField; } set { - this.lastModifiedDateTimeField = value; + this.resultsField = value; } } } - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", ConfigurationName = "Google.Api.Ads.AdManager.v201808.CreativeSetServiceInterface")] - public interface CreativeSetServiceInterface - { - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v201808.CreativeSet createCreativeSet(Google.Api.Ads.AdManager.v201808.CreativeSet creativeSet); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task createCreativeSetAsync(Google.Api.Ads.AdManager.v201808.CreativeSet creativeSet); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v201808.CreativeSetPage getCreativeSetsByStatement(Google.Api.Ads.AdManager.v201808.Statement statement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getCreativeSetsByStatementAsync(Google.Api.Ads.AdManager.v201808.Statement statement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v201808.CreativeSet updateCreativeSet(Google.Api.Ads.AdManager.v201808.CreativeSet creativeSet); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task updateCreativeSetAsync(Google.Api.Ads.AdManager.v201808.CreativeSet creativeSet); - } - - - /// Captures a page of CreativeSet objects. + /// Captures a page of CustomTargetingValue + /// objects. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class CreativeSetPage { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class CustomTargetingValuePage { private int totalResultSetSizeField; private bool totalResultSetSizeFieldSpecified; @@ -13131,7 +13714,7 @@ public partial class CreativeSetPage { private bool startIndexFieldSpecified; - private CreativeSet[] resultsField; + private CustomTargetingValue[] resultsField; /// The size of the total result set to which this page belongs. /// @@ -13185,10 +13768,10 @@ public bool startIndexSpecified { } } - /// The collection of creative sets contained within this page. + /// The collection of custom targeting keys contained within this page. /// [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] - public CreativeSet[] results { + public CustomTargetingValue[] results { get { return this.resultsField; } @@ -13199,514 +13782,526 @@ public CreativeSet[] results { } + /// 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.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public abstract partial class CustomTargetingKeyAction { + } + + + /// 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.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class DeleteCustomTargetingKeys : CustomTargetingKeyAction { + } + + + /// The action used for activating inactive (i.e. deleted) CustomTargetingKey objects. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public abstract partial class CustomTargetingValueAction { + } + + + /// Represents the delete action that can be performed on CustomTargetingValue objects. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class DeleteCustomTargetingValues : CustomTargetingValueAction { + } + + + /// The action used for activating inactive (i.e. deleted) CustomTargetingValue objects. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class ActivateCustomTargetingValues : CustomTargetingValueAction { + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public interface CreativeSetServiceInterfaceChannel : Google.Api.Ads.AdManager.v201808.CreativeSetServiceInterface, System.ServiceModel.IClientChannel + public interface CustomTargetingServiceInterfaceChannel : Google.Api.Ads.AdManager.v201908.CustomTargetingServiceInterface, System.ServiceModel.IClientChannel { } - /// Provides methods for adding, updating and retrieving CreativeSet 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 CreativeSetService : AdManagerSoapClient, ICreativeSetService { - /// Creates a new instance of the class. - /// - public CreativeSetService() { + public partial class CustomTargetingService : AdManagerSoapClient, ICustomTargetingService { + /// Creates a new instance of the + /// class. + public CustomTargetingService() { } - /// Creates a new instance of the class. - /// - public CreativeSetService(string endpointConfigurationName) + /// Creates a new instance of the + /// class. + public CustomTargetingService(string endpointConfigurationName) : base(endpointConfigurationName) { } - /// Creates a new instance of the class. - /// - public CreativeSetService(string endpointConfigurationName, string remoteAddress) + /// Creates a new instance of the + /// class. + public CustomTargetingService(string endpointConfigurationName, string remoteAddress) : base(endpointConfigurationName, remoteAddress) { } - /// Creates a new instance of the class. - /// - public CreativeSetService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) + /// Creates a new instance of the + /// class. + public CustomTargetingService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) : base(endpointConfigurationName, remoteAddress) { } - /// Creates a new instance of the class. - /// - public CreativeSetService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) + /// Creates a new instance of the + /// class. + public CustomTargetingService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) : base(binding, remoteAddress) { } - /// Creates a new CreativeSet. - /// the creative set to create - /// the creative set with its ID filled in - public virtual Google.Api.Ads.AdManager.v201808.CreativeSet createCreativeSet(Google.Api.Ads.AdManager.v201808.CreativeSet creativeSet) { - return base.Channel.createCreativeSet(creativeSet); + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + Wrappers.CustomTargetingService.createCustomTargetingKeysResponse Google.Api.Ads.AdManager.v201908.CustomTargetingServiceInterface.createCustomTargetingKeys(Wrappers.CustomTargetingService.createCustomTargetingKeysRequest request) { + return base.Channel.createCustomTargetingKeys(request); } - public virtual System.Threading.Tasks.Task createCreativeSetAsync(Google.Api.Ads.AdManager.v201808.CreativeSet creativeSet) { - return base.Channel.createCreativeSetAsync(creativeSet); + /// Creates new CustomTargetingKey objects. The + /// following fields are required: + /// the custom targeting keys to update + /// the updated custom targeting keys + public virtual Google.Api.Ads.AdManager.v201908.CustomTargetingKey[] createCustomTargetingKeys(Google.Api.Ads.AdManager.v201908.CustomTargetingKey[] keys) { + Wrappers.CustomTargetingService.createCustomTargetingKeysRequest inValue = new Wrappers.CustomTargetingService.createCustomTargetingKeysRequest(); + inValue.keys = keys; + Wrappers.CustomTargetingService.createCustomTargetingKeysResponse retVal = ((Google.Api.Ads.AdManager.v201908.CustomTargetingServiceInterface)(this)).createCustomTargetingKeys(inValue); + return retVal.rval; } - /// 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
- ///
a Publisher Query Language statement used to filter a - /// set of creative sets - /// the creative sets that match the given filter - public virtual Google.Api.Ads.AdManager.v201808.CreativeSetPage getCreativeSetsByStatement(Google.Api.Ads.AdManager.v201808.Statement statement) { - return base.Channel.getCreativeSetsByStatement(statement); + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201908.CustomTargetingServiceInterface.createCustomTargetingKeysAsync(Wrappers.CustomTargetingService.createCustomTargetingKeysRequest request) { + return base.Channel.createCustomTargetingKeysAsync(request); } - public virtual System.Threading.Tasks.Task getCreativeSetsByStatementAsync(Google.Api.Ads.AdManager.v201808.Statement statement) { - return base.Channel.getCreativeSetsByStatementAsync(statement); + public virtual System.Threading.Tasks.Task createCustomTargetingKeysAsync(Google.Api.Ads.AdManager.v201908.CustomTargetingKey[] keys) { + Wrappers.CustomTargetingService.createCustomTargetingKeysRequest inValue = new Wrappers.CustomTargetingService.createCustomTargetingKeysRequest(); + inValue.keys = keys; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201908.CustomTargetingServiceInterface)(this)).createCustomTargetingKeysAsync(inValue)).Result.rval); } - /// Updates the specified CreativeSet. - /// the creative set to update - /// the updated creative set - public virtual Google.Api.Ads.AdManager.v201808.CreativeSet updateCreativeSet(Google.Api.Ads.AdManager.v201808.CreativeSet creativeSet) { - return base.Channel.updateCreativeSet(creativeSet); + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + Wrappers.CustomTargetingService.createCustomTargetingValuesResponse Google.Api.Ads.AdManager.v201908.CustomTargetingServiceInterface.createCustomTargetingValues(Wrappers.CustomTargetingService.createCustomTargetingValuesRequest request) { + return base.Channel.createCustomTargetingValues(request); } - public virtual System.Threading.Tasks.Task updateCreativeSetAsync(Google.Api.Ads.AdManager.v201808.CreativeSet creativeSet) { - return base.Channel.updateCreativeSetAsync(creativeSet); + /// Creates new CustomTargetingValue objects. The + /// following fields are required: + /// the custom targeting values to update + /// the updated custom targeting keys + public virtual Google.Api.Ads.AdManager.v201908.CustomTargetingValue[] createCustomTargetingValues(Google.Api.Ads.AdManager.v201908.CustomTargetingValue[] values) { + Wrappers.CustomTargetingService.createCustomTargetingValuesRequest inValue = new Wrappers.CustomTargetingService.createCustomTargetingValuesRequest(); + inValue.values = values; + Wrappers.CustomTargetingService.createCustomTargetingValuesResponse retVal = ((Google.Api.Ads.AdManager.v201908.CustomTargetingServiceInterface)(this)).createCustomTargetingValues(inValue); + return retVal.rval; } - } - namespace Wrappers.CreativeTemplateService - { - } - /// Stores variable choices that users can select from - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.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/v201808")] - public partial class ListStringCreativeTemplateVariableVariableChoice { - private string labelField; - 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 string label { - get { - return this.labelField; - } - set { - this.labelField = value; - } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201908.CustomTargetingServiceInterface.createCustomTargetingValuesAsync(Wrappers.CustomTargetingService.createCustomTargetingValuesRequest request) { + return base.Channel.createCustomTargetingValuesAsync(request); } - /// 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.valueField; - } - set { - this.valueField = value; - } + public virtual System.Threading.Tasks.Task createCustomTargetingValuesAsync(Google.Api.Ads.AdManager.v201908.CustomTargetingValue[] values) { + Wrappers.CustomTargetingService.createCustomTargetingValuesRequest inValue = new Wrappers.CustomTargetingService.createCustomTargetingValuesRequest(); + inValue.values = values; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201908.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
+ ///
a Publisher Query Language statement used to + /// filter a set of custom targeting keys + /// the custom targeting keys that match the given filter + public virtual Google.Api.Ads.AdManager.v201908.CustomTargetingKeyPage getCustomTargetingKeysByStatement(Google.Api.Ads.AdManager.v201908.Statement filterStatement) { + return base.Channel.getCustomTargetingKeysByStatement(filterStatement); + } - /// 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.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public abstract partial class CreativeTemplateVariable { - private string labelField; - - private string uniqueNameField; + public virtual System.Threading.Tasks.Task getCustomTargetingKeysByStatementAsync(Google.Api.Ads.AdManager.v201908.Statement filterStatement) { + return base.Channel.getCustomTargetingKeysByStatementAsync(filterStatement); + } - private string descriptionField; + /// 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 PropertyObject Property
id CustomTargetingValue#id
customTargetingKeyId CustomTargetingValue#customTargetingKeyId
name CustomTargetingValue#name
displayName CustomTargetingValue#displayName
matchType CustomTargetingValue#matchType
+ ///
a Publisher Query Language statement used to + /// filter a set of custom targeting values + /// the custom targeting values that match the given filter + public virtual Google.Api.Ads.AdManager.v201908.CustomTargetingValuePage getCustomTargetingValuesByStatement(Google.Api.Ads.AdManager.v201908.Statement filterStatement) { + return base.Channel.getCustomTargetingValuesByStatement(filterStatement); + } - private bool isRequiredField; + public virtual System.Threading.Tasks.Task getCustomTargetingValuesByStatementAsync(Google.Api.Ads.AdManager.v201908.Statement filterStatement) { + return base.Channel.getCustomTargetingValuesByStatementAsync(filterStatement); + } - private bool isRequiredFieldSpecified; + /// Performs actions on CustomTargetingKey objects + /// that match the given Statement#query. + /// the action to perform + /// a Publisher Query Language statement used to + /// filter a set of custom targeting keys + /// the result of the action performed + public virtual Google.Api.Ads.AdManager.v201908.UpdateResult performCustomTargetingKeyAction(Google.Api.Ads.AdManager.v201908.CustomTargetingKeyAction customTargetingKeyAction, Google.Api.Ads.AdManager.v201908.Statement filterStatement) { + return base.Channel.performCustomTargetingKeyAction(customTargetingKeyAction, filterStatement); + } - /// 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 { - get { - return this.labelField; - } - set { - this.labelField = value; - } + public virtual System.Threading.Tasks.Task performCustomTargetingKeyActionAsync(Google.Api.Ads.AdManager.v201908.CustomTargetingKeyAction customTargetingKeyAction, Google.Api.Ads.AdManager.v201908.Statement filterStatement) { + return base.Channel.performCustomTargetingKeyActionAsync(customTargetingKeyAction, filterStatement); } - /// 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.uniqueNameField; - } - set { - this.uniqueNameField = value; - } + /// Performs actions on CustomTargetingValue + /// objects that match the given Statement#query. + /// the action to perform + /// a Publisher Query Language statement used to + /// filter a set of ad units + /// the result of the action performed + public virtual Google.Api.Ads.AdManager.v201908.UpdateResult performCustomTargetingValueAction(Google.Api.Ads.AdManager.v201908.CustomTargetingValueAction customTargetingValueAction, Google.Api.Ads.AdManager.v201908.Statement filterStatement) { + return base.Channel.performCustomTargetingValueAction(customTargetingValueAction, filterStatement); } - /// 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; - } + public virtual System.Threading.Tasks.Task performCustomTargetingValueActionAsync(Google.Api.Ads.AdManager.v201908.CustomTargetingValueAction customTargetingValueAction, Google.Api.Ads.AdManager.v201908.Statement filterStatement) { + return base.Channel.performCustomTargetingValueActionAsync(customTargetingValueAction, filterStatement); } - /// 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; - } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + Wrappers.CustomTargetingService.updateCustomTargetingKeysResponse Google.Api.Ads.AdManager.v201908.CustomTargetingServiceInterface.updateCustomTargetingKeys(Wrappers.CustomTargetingService.updateCustomTargetingKeysRequest request) { + return base.Channel.updateCustomTargetingKeys(request); } - /// 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; - } + /// Updates the specified CustomTargetingKey + /// objects. + /// the custom targeting keys to update + /// the updated custom targeting keys + public virtual Google.Api.Ads.AdManager.v201908.CustomTargetingKey[] updateCustomTargetingKeys(Google.Api.Ads.AdManager.v201908.CustomTargetingKey[] keys) { + Wrappers.CustomTargetingService.updateCustomTargetingKeysRequest inValue = new Wrappers.CustomTargetingService.updateCustomTargetingKeysRequest(); + inValue.keys = keys; + Wrappers.CustomTargetingService.updateCustomTargetingKeysResponse retVal = ((Google.Api.Ads.AdManager.v201908.CustomTargetingServiceInterface)(this)).updateCustomTargetingKeys(inValue); + return retVal.rval; } - } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201908.CustomTargetingServiceInterface.updateCustomTargetingKeysAsync(Wrappers.CustomTargetingService.updateCustomTargetingKeysRequest request) { + return base.Channel.updateCustomTargetingKeysAsync(request); + } - /// 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.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class UrlCreativeTemplateVariable : CreativeTemplateVariable { - private string defaultValueField; + public virtual System.Threading.Tasks.Task updateCustomTargetingKeysAsync(Google.Api.Ads.AdManager.v201908.CustomTargetingKey[] keys) { + Wrappers.CustomTargetingService.updateCustomTargetingKeysRequest inValue = new Wrappers.CustomTargetingService.updateCustomTargetingKeysRequest(); + inValue.keys = keys; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201908.CustomTargetingServiceInterface)(this)).updateCustomTargetingKeysAsync(inValue)).Result.rval); + } - private bool isTrackingUrlField; + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + Wrappers.CustomTargetingService.updateCustomTargetingValuesResponse Google.Api.Ads.AdManager.v201908.CustomTargetingServiceInterface.updateCustomTargetingValues(Wrappers.CustomTargetingService.updateCustomTargetingValuesRequest request) { + return base.Channel.updateCustomTargetingValues(request); + } - private bool isTrackingUrlFieldSpecified; + /// Updates the specified CustomTargetingValue + /// objects. + /// the custom targeting values to update + /// the updated custom targeting values + public virtual Google.Api.Ads.AdManager.v201908.CustomTargetingValue[] updateCustomTargetingValues(Google.Api.Ads.AdManager.v201908.CustomTargetingValue[] values) { + Wrappers.CustomTargetingService.updateCustomTargetingValuesRequest inValue = new Wrappers.CustomTargetingService.updateCustomTargetingValuesRequest(); + inValue.values = values; + Wrappers.CustomTargetingService.updateCustomTargetingValuesResponse retVal = ((Google.Api.Ads.AdManager.v201908.CustomTargetingServiceInterface)(this)).updateCustomTargetingValues(inValue); + return retVal.rval; + } - /// Default value to be filled in when creating creatives from the creative - /// template. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public string defaultValue { - get { - return this.defaultValueField; - } - set { - this.defaultValueField = value; - } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201908.CustomTargetingServiceInterface.updateCustomTargetingValuesAsync(Wrappers.CustomTargetingService.updateCustomTargetingValuesRequest request) { + return base.Channel.updateCustomTargetingValuesAsync(request); } - /// 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; - } + public virtual System.Threading.Tasks.Task updateCustomTargetingValuesAsync(Google.Api.Ads.AdManager.v201908.CustomTargetingValue[] values) { + Wrappers.CustomTargetingService.updateCustomTargetingValuesRequest inValue = new Wrappers.CustomTargetingService.updateCustomTargetingValuesRequest(); + inValue.values = values; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201908.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/v201908", IsWrapped = true)] + public partial class createCustomFieldOptionsRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("customFieldOptions")] + public Google.Api.Ads.AdManager.v201908.CustomFieldOption[] customFieldOptions; - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool isTrackingUrlSpecified { - get { - return this.isTrackingUrlFieldSpecified; + /// Creates a new instance of the class. + public createCustomFieldOptionsRequest() { } - set { - this.isTrackingUrlFieldSpecified = value; + + /// Creates a new instance of the class. + public createCustomFieldOptionsRequest(Google.Api.Ads.AdManager.v201908.CustomFieldOption[] customFieldOptions) { + this.customFieldOptions = customFieldOptions; } } - } - /// 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.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class StringCreativeTemplateVariable : CreativeTemplateVariable { - private string defaultValueField; + [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/v201908", IsWrapped = true)] + public partial class createCustomFieldOptionsResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("rval")] + public Google.Api.Ads.AdManager.v201908.CustomFieldOption[] rval; - /// Default value to be filled in when creating creatives from the creative - /// template. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public string defaultValue { - get { - return this.defaultValueField; + /// Creates a new instance of the class. + public createCustomFieldOptionsResponse() { } - set { - this.defaultValueField = value; + + /// Creates a new instance of the class. + public createCustomFieldOptionsResponse(Google.Api.Ads.AdManager.v201908.CustomFieldOption[] rval) { + this.rval = rval; } } - } - - - /// 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.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ListStringCreativeTemplateVariable : StringCreativeTemplateVariable { - private ListStringCreativeTemplateVariableVariableChoice[] choicesField; - private bool allowOtherChoiceField; - private bool allowOtherChoiceFieldSpecified; + [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/v201908", IsWrapped = true)] + public partial class createCustomFieldsRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("customFields")] + public Google.Api.Ads.AdManager.v201908.CustomField[] customFields; - /// 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; + /// Creates a new instance of the + /// class. + public createCustomFieldsRequest() { } - } - /// 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; + /// Creates a new instance of the + /// class. + public createCustomFieldsRequest(Google.Api.Ads.AdManager.v201908.CustomField[] customFields) { + this.customFields = customFields; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool allowOtherChoiceSpecified { - get { - return this.allowOtherChoiceFieldSpecified; + + [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/v201908", IsWrapped = true)] + public partial class createCustomFieldsResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("rval")] + public Google.Api.Ads.AdManager.v201908.CustomField[] rval; + + /// Creates a new instance of the + /// class. + public createCustomFieldsResponse() { } - set { - this.allowOtherChoiceFieldSpecified = value; + + /// Creates a new instance of the + /// class. + public createCustomFieldsResponse(Google.Api.Ads.AdManager.v201908.CustomField[] rval) { + this.rval = rval; } } - } - - /// Represents a long variable defined in a creative template. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class LongCreativeTemplateVariable : CreativeTemplateVariable { - private long defaultValueField; - private bool defaultValueFieldSpecified; + [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/v201908", IsWrapped = true)] + public partial class updateCustomFieldOptionsRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("customFieldOptions")] + public Google.Api.Ads.AdManager.v201908.CustomFieldOption[] customFieldOptions; - /// 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; + /// Creates a new instance of the class. + public updateCustomFieldOptionsRequest() { } - set { - this.defaultValueField = value; - this.defaultValueSpecified = true; + + /// Creates a new instance of the class. + public updateCustomFieldOptionsRequest(Google.Api.Ads.AdManager.v201908.CustomFieldOption[] customFieldOptions) { + this.customFieldOptions = customFieldOptions; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool defaultValueSpecified { - get { - return this.defaultValueFieldSpecified; + + [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/v201908", IsWrapped = true)] + public partial class updateCustomFieldOptionsResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("rval")] + public Google.Api.Ads.AdManager.v201908.CustomFieldOption[] rval; + + /// Creates a new instance of the class. + public updateCustomFieldOptionsResponse() { } - set { - this.defaultValueFieldSpecified = value; + + /// Creates a new instance of the class. + public updateCustomFieldOptionsResponse(Google.Api.Ads.AdManager.v201908.CustomFieldOption[] rval) { + this.rval = rval; } } - } - /// 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.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class AssetCreativeTemplateVariable : CreativeTemplateVariable { - private AssetCreativeTemplateVariableMimeType[] mimeTypesField; + [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/v201908", IsWrapped = true)] + public partial class updateCustomFieldsRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("customFields")] + public Google.Api.Ads.AdManager.v201908.CustomField[] customFields; - /// 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; + /// Creates a new instance of the + /// class. + public updateCustomFieldsRequest() { } - set { - this.mimeTypesField = value; + + /// Creates a new instance of the + /// class. + public updateCustomFieldsRequest(Google.Api.Ads.AdManager.v201908.CustomField[] customFields) { + this.customFields = customFields; } } - } - /// Different mime type that the asset variable supports. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AssetCreativeTemplateVariable.MimeType", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum AssetCreativeTemplateVariableMimeType { - JPG = 0, - PNG = 1, - GIF = 2, - SWF = 3, - } + [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/v201908", IsWrapped = true)] + public partial class updateCustomFieldsResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("rval")] + public Google.Api.Ads.AdManager.v201908.CustomField[] rval; + /// Creates a new instance of the + /// class. + public updateCustomFieldsResponse() { + } - /// A template upon which a creative can be created. + /// Creates a new instance of the + /// class. + public updateCustomFieldsResponse(Google.Api.Ads.AdManager.v201908.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.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class CreativeTemplate { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class CustomFieldOption { private long idField; 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 long customFieldIdField; - private bool isSafeFrameCompatibleField; + private bool customFieldIdFieldSpecified; - private bool isSafeFrameCompatibleFieldSpecified; + private string displayNameField; - /// Uniquely identifies the CreativeTemplate. This attribute is - /// read-only and is assigned by Google when a creative template is created. + /// Unique ID of this option. This value is readonly and is assigned by Google. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] public long id { @@ -13732,238 +14327,494 @@ public bool idSpecified { } } - /// The name of the creative template. This attribute is required and has a maximum - /// length of 255 characters. + /// The id of the custom field this option belongs to. /// [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public string name { + public long customFieldId { get { - return this.nameField; + return this.customFieldIdField; } set { - this.nameField = value; + this.customFieldIdField = value; + this.customFieldIdSpecified = true; } } - /// The description of the creative template. This attribute is optional. - /// - [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 customFieldIdSpecified { get { - return this.descriptionField; + return this.customFieldIdFieldSpecified; } set { - this.descriptionField = value; + this.customFieldIdFieldSpecified = value; } } - /// The list of creative template variables. This attribute is required. + /// The display name of this option. /// - [System.Xml.Serialization.XmlElementAttribute("variables", Order = 3)] - public CreativeTemplateVariable[] variables { + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public string displayName { get { - return this.variablesField; + return this.displayNameField; } set { - this.variablesField = value; + this.displayNameField = value; } } + } - /// The snippet of the creative template, with placeholders for the associated - /// variables. This attribute is required. + + /// Errors specific to editing custom fields + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class CustomFieldError : ApiError { + private CustomFieldErrorReason reasonField; + + private bool reasonFieldSpecified; + + /// The error reason represented by an enum. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public string snippet { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public CustomFieldErrorReason reason { get { - return this.snippetField; + return this.reasonField; } set { - this.snippetField = value; + this.reasonField = value; + this.reasonSpecified = true; } } - /// The status of the CreativeTemplate. This attribute is read-only and - /// is assigned by Google. + /// 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.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CustomFieldError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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 = 5)] - public CreativeTemplateStatus status { + 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/v201908", ConfigurationName = "Google.Api.Ads.AdManager.v201908.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.v201908.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.v201908.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.v201908.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v201908.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.v201908.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v201908.CustomFieldPage getCustomFieldsByStatement(Google.Api.Ads.AdManager.v201908.Statement filterStatement); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task getCustomFieldsByStatementAsync(Google.Api.Ads.AdManager.v201908.Statement filterStatement); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201908.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v201908.UpdateResult performCustomFieldAction(Google.Api.Ads.AdManager.v201908.CustomFieldAction customFieldAction, Google.Api.Ads.AdManager.v201908.Statement filterStatement); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task performCustomFieldActionAsync(Google.Api.Ads.AdManager.v201908.CustomFieldAction customFieldAction, Google.Api.Ads.AdManager.v201908.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.v201908.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.v201908.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.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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.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 type of the CreativeTemplate. Publisher can only create - /// user-defined template + /// 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 = 6)] - public CreativeTemplateType type { + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public string name { get { - return this.typeField; + return this.nameField; } set { - this.typeField = value; - this.typeSpecified = true; + this.nameField = value; } } - /// true, if a value is specified for , - /// false otherwise. + /// A description of the custom field. This value is optional. The maximum length is + /// 511 characters + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public string description { + get { + return this.descriptionField; + } + set { + this.descriptionField = value; + } + } + + /// Specifies whether or not the custom fields is active. This attribute is + /// read-only. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 3)] + 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 typeSpecified { + public bool isActiveSpecified { get { - return this.typeFieldSpecified; + return this.isActiveFieldSpecified; } set { - this.typeFieldSpecified = value; + this.isActiveFieldSpecified = value; } } - /// true if this creative template produces interstitial creatives. + /// 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 = 7)] - public bool isInterstitial { + [System.Xml.Serialization.XmlElementAttribute(Order = 4)] + public CustomFieldEntityType entityType { get { - return this.isInterstitialField; + return this.entityTypeField; } set { - this.isInterstitialField = value; - this.isInterstitialSpecified = 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 isInterstitialSpecified { + public bool entityTypeSpecified { get { - return this.isInterstitialFieldSpecified; + return this.entityTypeFieldSpecified; } set { - this.isInterstitialFieldSpecified = value; + this.entityTypeFieldSpecified = value; } } - /// true if this creative template produces native-eligible creatives. + /// 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 = 8)] - public bool isNativeEligible { + [System.Xml.Serialization.XmlElementAttribute(Order = 5)] + public CustomFieldDataType dataType { get { - return this.isNativeEligibleField; + return this.dataTypeField; } set { - this.isNativeEligibleField = value; - this.isNativeEligibleSpecified = true; + this.dataTypeField = value; + this.dataTypeSpecified = 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 isNativeEligibleSpecified { + public bool dataTypeSpecified { get { - return this.isNativeEligibleFieldSpecified; + return this.dataTypeFieldSpecified; } set { - this.isNativeEligibleFieldSpecified = value; + this.dataTypeFieldSpecified = value; } } - /// Whether the Creative produced is compatible for SafeFrame - /// rendering.

This attribute is optional and defaults to true.

+ /// How visible/accessible this field is in the UI. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 9)] - public bool isSafeFrameCompatible { + [System.Xml.Serialization.XmlElementAttribute(Order = 6)] + public CustomFieldVisibility visibility { get { - return this.isSafeFrameCompatibleField; + return this.visibilityField; } set { - this.isSafeFrameCompatibleField = value; - this.isSafeFrameCompatibleSpecified = 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 isSafeFrameCompatibleSpecified { + public bool visibilitySpecified { get { - return this.isSafeFrameCompatibleFieldSpecified; + return this.visibilityFieldSpecified; } set { - this.isSafeFrameCompatibleFieldSpecified = value; + this.visibilityFieldSpecified = value; } } } - /// Describes status of the creative template + /// Entity types recognized by custom fields /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum CreativeTemplateStatus { - /// The CreativeTemplate is active + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum CustomFieldEntityType { + /// Represents the LineItem type. /// - ACTIVE = 0, - /// The CreativeTemplate is inactive. Users cannot - /// create new creatives from this template, but existing ones can be edited and - /// continue to serve + LINE_ITEM = 0, + /// Represents the Order type. /// - INACTIVE = 1, - /// The CreativeTemplate is deleted. Creatives - /// created from this CreativeTemplate can no longer - /// serve. + ORDER = 1, + /// Represents the Creative type. /// - DELETED = 2, + 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, } - /// Describes type of the creative template. + /// The data types allowed for CustomField objects. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum CreativeTemplateType { - /// Creative templates that Google defines for users to use. + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum CustomFieldDataType { + /// A string field. The max length is 255 characters. /// - 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. + STRING = 0, + /// A number field. /// - USER_DEFINED = 1, + 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, } - /// Captures a page of CreativeTemplate objects. + /// The visibility levels of a custom field. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class CreativeTemplatePage { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class DropDownCustomField : CustomField { + private CustomFieldOption[] optionsField; + + /// The options allowed for this custom field. This is read only. + /// + [System.Xml.Serialization.XmlElementAttribute("options", Order = 0)] + public CustomFieldOption[] options { + get { + return this.optionsField; + } + set { + this.optionsField = value; + } + } + } + + + /// Captures a page of CustomField objects. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class CustomFieldPage { private int totalResultSetSizeField; private bool totalResultSetSizeFieldSpecified; @@ -13972,7 +14823,7 @@ public partial class CreativeTemplatePage { private bool startIndexFieldSpecified; - private CreativeTemplate[] resultsField; + private CustomField[] resultsField; /// The size of the total result set to which this page belongs. /// @@ -14026,10 +14877,10 @@ public bool startIndexSpecified { } } - /// The collection of creative templates contained within this page. + /// The collection of custom fields contained within this page. /// [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] - public CreativeTemplate[] results { + public CustomField[] results { get { return this.resultsField; } @@ -14040,107 +14891,273 @@ public CreativeTemplate[] results { } - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", ConfigurationName = "Google.Api.Ads.AdManager.v201808.CreativeTemplateServiceInterface")] - public interface CreativeTemplateServiceInterface - { - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v201808.CreativeTemplatePage getCreativeTemplatesByStatement(Google.Api.Ads.AdManager.v201808.Statement filterStatement); + /// 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.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class CustomFieldAction { + } - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getCreativeTemplatesByStatementAsync(Google.Api.Ads.AdManager.v201808.Statement filterStatement); + + /// The action used for deactivating CustomField objects. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class DeactivateCustomFields : CustomFieldAction { + } + + + /// The action used for activating CustomField objects. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class ActivateCustomFields : CustomFieldAction { } [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public interface CreativeTemplateServiceInterfaceChannel : Google.Api.Ads.AdManager.v201808.CreativeTemplateServiceInterface, System.ServiceModel.IClientChannel + public interface CustomFieldServiceInterfaceChannel : Google.Api.Ads.AdManager.v201908.CustomFieldServiceInterface, System.ServiceModel.IClientChannel { } - /// Provides methods for retrieving CreativeTemplate - /// objects. + /// 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 CreativeTemplateService : AdManagerSoapClient, ICreativeTemplateService { - /// Creates a new instance of the - /// class. - public CreativeTemplateService() { + public partial class CustomFieldService : AdManagerSoapClient, ICustomFieldService { + /// Creates a new instance of the class. + /// + public CustomFieldService() { } - /// Creates a new instance of the - /// class. - public CreativeTemplateService(string endpointConfigurationName) + /// Creates a new instance of the class. + /// + public CustomFieldService(string endpointConfigurationName) : base(endpointConfigurationName) { } - /// Creates a new instance of the - /// class. - public CreativeTemplateService(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 CreativeTemplateService(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 CreativeTemplateService(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) { } - /// 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
- ///
a Publisher Query Language statement used to - /// filter a set of creative templates. - /// the creative templates that match the given filter - public virtual Google.Api.Ads.AdManager.v201808.CreativeTemplatePage getCreativeTemplatesByStatement(Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.getCreativeTemplatesByStatement(filterStatement); + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + Wrappers.CustomFieldService.createCustomFieldOptionsResponse Google.Api.Ads.AdManager.v201908.CustomFieldServiceInterface.createCustomFieldOptions(Wrappers.CustomFieldService.createCustomFieldOptionsRequest request) { + return base.Channel.createCustomFieldOptions(request); } - public virtual System.Threading.Tasks.Task getCreativeTemplatesByStatementAsync(Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.getCreativeTemplatesByStatementAsync(filterStatement); - } + /// Creates new CustomFieldOption objects. The + /// following fields are required: + /// the custom fields to create + /// the created custom field options with their IDs filled in + public virtual Google.Api.Ads.AdManager.v201908.CustomFieldOption[] createCustomFieldOptions(Google.Api.Ads.AdManager.v201908.CustomFieldOption[] customFieldOptions) { + Wrappers.CustomFieldService.createCustomFieldOptionsRequest inValue = new Wrappers.CustomFieldService.createCustomFieldOptionsRequest(); + inValue.customFieldOptions = customFieldOptions; + Wrappers.CustomFieldService.createCustomFieldOptionsResponse retVal = ((Google.Api.Ads.AdManager.v201908.CustomFieldServiceInterface)(this)).createCustomFieldOptions(inValue); + return retVal.rval; + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201908.CustomFieldServiceInterface.createCustomFieldOptionsAsync(Wrappers.CustomFieldService.createCustomFieldOptionsRequest request) { + return base.Channel.createCustomFieldOptionsAsync(request); + } + + public virtual System.Threading.Tasks.Task createCustomFieldOptionsAsync(Google.Api.Ads.AdManager.v201908.CustomFieldOption[] customFieldOptions) { + Wrappers.CustomFieldService.createCustomFieldOptionsRequest inValue = new Wrappers.CustomFieldService.createCustomFieldOptionsRequest(); + inValue.customFieldOptions = customFieldOptions; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201908.CustomFieldServiceInterface)(this)).createCustomFieldOptionsAsync(inValue)).Result.rval); + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + Wrappers.CustomFieldService.createCustomFieldsResponse Google.Api.Ads.AdManager.v201908.CustomFieldServiceInterface.createCustomFields(Wrappers.CustomFieldService.createCustomFieldsRequest request) { + return base.Channel.createCustomFields(request); + } + + /// Creates new CustomField objects. The following fields + /// are required: + /// the custom fields to create + /// the created custom fields with their IDs filled in + public virtual Google.Api.Ads.AdManager.v201908.CustomField[] createCustomFields(Google.Api.Ads.AdManager.v201908.CustomField[] customFields) { + Wrappers.CustomFieldService.createCustomFieldsRequest inValue = new Wrappers.CustomFieldService.createCustomFieldsRequest(); + inValue.customFields = customFields; + Wrappers.CustomFieldService.createCustomFieldsResponse retVal = ((Google.Api.Ads.AdManager.v201908.CustomFieldServiceInterface)(this)).createCustomFields(inValue); + return retVal.rval; + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201908.CustomFieldServiceInterface.createCustomFieldsAsync(Wrappers.CustomFieldService.createCustomFieldsRequest request) { + return base.Channel.createCustomFieldsAsync(request); + } + + public virtual System.Threading.Tasks.Task createCustomFieldsAsync(Google.Api.Ads.AdManager.v201908.CustomField[] customFields) { + Wrappers.CustomFieldService.createCustomFieldsRequest inValue = new Wrappers.CustomFieldService.createCustomFieldsRequest(); + inValue.customFields = customFields; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201908.CustomFieldServiceInterface)(this)).createCustomFieldsAsync(inValue)).Result.rval); + } + + /// Returns the CustomFieldOption uniquely + /// identified by the given ID. + /// the ID of the custom field option, which must + /// already exist + /// the CustomFieldOption uniquely identified by the given + /// ID + public virtual Google.Api.Ads.AdManager.v201908.CustomFieldOption getCustomFieldOption(long customFieldOptionId) { + return base.Channel.getCustomFieldOption(customFieldOptionId); + } + + public virtual System.Threading.Tasks.Task getCustomFieldOptionAsync(long customFieldOptionId) { + return base.Channel.getCustomFieldOptionAsync(customFieldOptionId); + } + + /// 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
+ ///
a Publisher Query Language statement used to + /// filter a set of custom fields. + /// the custom fields that match the given filter + public virtual Google.Api.Ads.AdManager.v201908.CustomFieldPage getCustomFieldsByStatement(Google.Api.Ads.AdManager.v201908.Statement filterStatement) { + return base.Channel.getCustomFieldsByStatement(filterStatement); + } + + public virtual System.Threading.Tasks.Task getCustomFieldsByStatementAsync(Google.Api.Ads.AdManager.v201908.Statement filterStatement) { + return base.Channel.getCustomFieldsByStatementAsync(filterStatement); + } + + /// Performs actions on CustomField objects that match the + /// given Statement#query. + /// the action to perform + /// a Publisher Query Language statement used to + /// filter a set of custom fields + /// the result of the action performed + public virtual Google.Api.Ads.AdManager.v201908.UpdateResult performCustomFieldAction(Google.Api.Ads.AdManager.v201908.CustomFieldAction customFieldAction, Google.Api.Ads.AdManager.v201908.Statement filterStatement) { + return base.Channel.performCustomFieldAction(customFieldAction, filterStatement); + } + + public virtual System.Threading.Tasks.Task performCustomFieldActionAsync(Google.Api.Ads.AdManager.v201908.CustomFieldAction customFieldAction, Google.Api.Ads.AdManager.v201908.Statement filterStatement) { + return base.Channel.performCustomFieldActionAsync(customFieldAction, filterStatement); + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + Wrappers.CustomFieldService.updateCustomFieldOptionsResponse Google.Api.Ads.AdManager.v201908.CustomFieldServiceInterface.updateCustomFieldOptions(Wrappers.CustomFieldService.updateCustomFieldOptionsRequest request) { + return base.Channel.updateCustomFieldOptions(request); + } + + /// Updates the specified CustomFieldOption objects. + /// the custom field options to update + /// the updated custom field options + public virtual Google.Api.Ads.AdManager.v201908.CustomFieldOption[] updateCustomFieldOptions(Google.Api.Ads.AdManager.v201908.CustomFieldOption[] customFieldOptions) { + Wrappers.CustomFieldService.updateCustomFieldOptionsRequest inValue = new Wrappers.CustomFieldService.updateCustomFieldOptionsRequest(); + inValue.customFieldOptions = customFieldOptions; + Wrappers.CustomFieldService.updateCustomFieldOptionsResponse retVal = ((Google.Api.Ads.AdManager.v201908.CustomFieldServiceInterface)(this)).updateCustomFieldOptions(inValue); + return retVal.rval; + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201908.CustomFieldServiceInterface.updateCustomFieldOptionsAsync(Wrappers.CustomFieldService.updateCustomFieldOptionsRequest request) { + return base.Channel.updateCustomFieldOptionsAsync(request); + } + + public virtual System.Threading.Tasks.Task updateCustomFieldOptionsAsync(Google.Api.Ads.AdManager.v201908.CustomFieldOption[] customFieldOptions) { + Wrappers.CustomFieldService.updateCustomFieldOptionsRequest inValue = new Wrappers.CustomFieldService.updateCustomFieldOptionsRequest(); + inValue.customFieldOptions = customFieldOptions; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201908.CustomFieldServiceInterface)(this)).updateCustomFieldOptionsAsync(inValue)).Result.rval); + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + Wrappers.CustomFieldService.updateCustomFieldsResponse Google.Api.Ads.AdManager.v201908.CustomFieldServiceInterface.updateCustomFields(Wrappers.CustomFieldService.updateCustomFieldsRequest request) { + return base.Channel.updateCustomFields(request); + } + + /// Updates the specified CustomField objects. + /// the custom fields to update + /// the updated custom fields + public virtual Google.Api.Ads.AdManager.v201908.CustomField[] updateCustomFields(Google.Api.Ads.AdManager.v201908.CustomField[] customFields) { + Wrappers.CustomFieldService.updateCustomFieldsRequest inValue = new Wrappers.CustomFieldService.updateCustomFieldsRequest(); + inValue.customFields = customFields; + Wrappers.CustomFieldService.updateCustomFieldsResponse retVal = ((Google.Api.Ads.AdManager.v201908.CustomFieldServiceInterface)(this)).updateCustomFields(inValue); + return retVal.rval; + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201908.CustomFieldServiceInterface.updateCustomFieldsAsync(Wrappers.CustomFieldService.updateCustomFieldsRequest request) { + return base.Channel.updateCustomFieldsAsync(request); + } + + public virtual System.Threading.Tasks.Task updateCustomFieldsAsync(Google.Api.Ads.AdManager.v201908.CustomField[] customFields) { + Wrappers.CustomFieldService.updateCustomFieldsRequest inValue = new Wrappers.CustomFieldService.updateCustomFieldsRequest(); + inValue.customFields = customFields; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201908.CustomFieldServiceInterface)(this)).updateCustomFieldsAsync(inValue)).Result.rval); + } } - namespace Wrappers.CreativeWrapperService + 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 = "createCreativeWrappers", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201808", IsWrapped = true)] - public partial class createCreativeWrappersRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("creativeWrappers")] - public Google.Api.Ads.AdManager.v201808.CreativeWrapper[] creativeWrappers; + [System.ServiceModel.MessageContractAttribute(WrapperName = "getDeliveryForecast", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201908", IsWrapped = true)] + public partial class getDeliveryForecastRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("lineItems")] + public Google.Api.Ads.AdManager.v201908.ProspectiveLineItem[] lineItems; - /// Creates a new instance of the class. - public createCreativeWrappersRequest() { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 1)] + public Google.Api.Ads.AdManager.v201908.DeliveryForecastOptions forecastOptions; + + /// Creates a new instance of the + /// class. + public getDeliveryForecastRequest() { } - /// Creates a new instance of the class. - public createCreativeWrappersRequest(Google.Api.Ads.AdManager.v201808.CreativeWrapper[] creativeWrappers) { - this.creativeWrappers = creativeWrappers; + /// Creates a new instance of the + /// class. + public getDeliveryForecastRequest(Google.Api.Ads.AdManager.v201908.ProspectiveLineItem[] lineItems, Google.Api.Ads.AdManager.v201908.DeliveryForecastOptions forecastOptions) { + this.lineItems = lineItems; + this.forecastOptions = forecastOptions; } } @@ -14148,20 +15165,19 @@ public createCreativeWrappersRequest(Google.Api.Ads.AdManager.v201808.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/v201808", IsWrapped = true)] - public partial class createCreativeWrappersResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v201808.CreativeWrapper[] rval; + [System.ServiceModel.MessageContractAttribute(WrapperName = "getDeliveryForecastResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201908", IsWrapped = true)] + public partial class getDeliveryForecastResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] + public Google.Api.Ads.AdManager.v201908.DeliveryForecast rval; /// Creates a new instance of the class. - public createCreativeWrappersResponse() { + /// cref="getDeliveryForecastResponse"/> class.
+ public getDeliveryForecastResponse() { } /// Creates a new instance of the class. - public createCreativeWrappersResponse(Google.Api.Ads.AdManager.v201808.CreativeWrapper[] rval) { + /// cref="getDeliveryForecastResponse"/> class.
+ public getDeliveryForecastResponse(Google.Api.Ads.AdManager.v201908.DeliveryForecast rval) { this.rval = rval; } } @@ -14170,21 +15186,25 @@ public createCreativeWrappersResponse(Google.Api.Ads.AdManager.v201808.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/v201808", IsWrapped = true)] - public partial class updateCreativeWrappersRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("creativeWrappers")] - public Google.Api.Ads.AdManager.v201808.CreativeWrapper[] creativeWrappers; + [System.ServiceModel.MessageContractAttribute(WrapperName = "getDeliveryForecastByIds", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201908", IsWrapped = true)] + public partial class getDeliveryForecastByIdsRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("lineItemIds")] + public long[] lineItemIds; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 1)] + public Google.Api.Ads.AdManager.v201908.DeliveryForecastOptions forecastOptions; /// Creates a new instance of the class. - public updateCreativeWrappersRequest() { + /// cref="getDeliveryForecastByIdsRequest"/> class.
+ public getDeliveryForecastByIdsRequest() { } /// Creates a new instance of the class. - public updateCreativeWrappersRequest(Google.Api.Ads.AdManager.v201808.CreativeWrapper[] creativeWrappers) { - this.creativeWrappers = creativeWrappers; + /// cref="getDeliveryForecastByIdsRequest"/> class.
+ public getDeliveryForecastByIdsRequest(long[] lineItemIds, Google.Api.Ads.AdManager.v201908.DeliveryForecastOptions forecastOptions) { + this.lineItemIds = lineItemIds; + this.forecastOptions = forecastOptions; } } @@ -14192,2639 +15212,2378 @@ public updateCreativeWrappersRequest(Google.Api.Ads.AdManager.v201808.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/v201808", IsWrapped = true)] - public partial class updateCreativeWrappersResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v201808.CreativeWrapper[] rval; + [System.ServiceModel.MessageContractAttribute(WrapperName = "getDeliveryForecastByIdsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201908", IsWrapped = true)] + public partial class getDeliveryForecastByIdsResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] + public Google.Api.Ads.AdManager.v201908.DeliveryForecast rval; /// Creates a new instance of the class. - public updateCreativeWrappersResponse() { + /// cref="getDeliveryForecastByIdsResponse"/> class.
+ public getDeliveryForecastByIdsResponse() { } /// Creates a new instance of the class. - public updateCreativeWrappersResponse(Google.Api.Ads.AdManager.v201808.CreativeWrapper[] rval) { + /// cref="getDeliveryForecastByIdsResponse"/> class.
+ public getDeliveryForecastByIdsResponse(Google.Api.Ads.AdManager.v201908.DeliveryForecast 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.

+ /// GRP forecast breakdown counts associated with a gender and age demographic. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class CreativeWrapper { - private long idField; - - private bool idFieldSpecified; - - private long labelIdField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class GrpDemographicBreakdown { + private long availableUnitsField; - private bool labelIdFieldSpecified; + private bool availableUnitsFieldSpecified; - private string htmlHeaderField; + private long matchedUnitsField; - private string htmlFooterField; + private bool matchedUnitsFieldSpecified; - private string ampHeadField; + private GrpUnitType unitTypeField; - private string ampBodyField; + private bool unitTypeFieldSpecified; - private CreativeWrapperOrdering orderingField; + private GrpGender genderField; - private bool orderingFieldSpecified; + private bool genderFieldSpecified; - private CreativeWrapperStatus statusField; + private GrpAge ageField; - private bool statusFieldSpecified; + private bool ageFieldSpecified; - /// The unique ID of the CreativeWrapper. This value is readonly and is - /// assigned by Google. + /// The number of units matching the demographic breakdown that can be booked + /// without affecting the delivery of any reserved line items. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public long id { + public long availableUnits { get { - return this.idField; + return this.availableUnitsField; } set { - this.idField = value; - this.idSpecified = 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 idSpecified { + public bool availableUnitsSpecified { get { - return this.idFieldSpecified; + return this.availableUnitsFieldSpecified; } set { - this.idFieldSpecified = value; + this.availableUnitsFieldSpecified = 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. + /// The number of units matching the demographic and matching specified targeting + /// and delivery settings. /// [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public long labelId { + public long matchedUnits { get { - return this.labelIdField; + return this.matchedUnitsField; } set { - this.labelIdField = value; - this.labelIdSpecified = 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 labelIdSpecified { + public bool matchedUnitsSpecified { get { - return this.labelIdFieldSpecified; + return this.matchedUnitsFieldSpecified; } set { - this.labelIdFieldSpecified = value; + this.matchedUnitsFieldSpecified = value; } } - /// The header HTML snippet that this creative wrapper delivers. + /// The GrpUnitType associated with this demographic + /// breakdown. /// [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public string htmlHeader { - get { - return this.htmlHeaderField; - } - set { - this.htmlHeaderField = value; - } - } - - /// The footer HTML snippet that this creative wrapper delivers. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - 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 = 4)] - public string ampHead { + public GrpUnitType unitType { get { - return this.ampHeadField; + return this.unitTypeField; } set { - this.ampHeadField = value; + this.unitTypeField = value; + this.unitTypeSpecified = true; } } - /// The footer AMP snippet that this creative wrapper delivers. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 5)] - public string ampBody { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool unitTypeSpecified { get { - return this.ampBodyField; + return this.unitTypeFieldSpecified; } set { - this.ampBodyField = value; + this.unitTypeFieldSpecified = value; } } - /// If there are multiple wrappers for a creative, then defines the - /// order in which the HTML snippets are rendered. + /// The GrpGender associated with this demographic + /// breakdown. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 6)] - public CreativeWrapperOrdering ordering { + [System.Xml.Serialization.XmlElementAttribute(Order = 3)] + public GrpGender gender { get { - return this.orderingField; + return this.genderField; } set { - this.orderingField = value; - this.orderingSpecified = true; + this.genderField = value; + this.genderSpecified = 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 orderingSpecified { + public bool genderSpecified { get { - return this.orderingFieldSpecified; + return this.genderFieldSpecified; } set { - this.orderingFieldSpecified = value; + this.genderFieldSpecified = value; } } - /// The status of the CreativeWrapper. This attribute is readonly. + /// The GrpAge associated with this demographic breakdown. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 7)] - public CreativeWrapperStatus status { + [System.Xml.Serialization.XmlElementAttribute(Order = 4)] + public GrpAge age { get { - return this.statusField; + return this.ageField; } set { - this.statusField = value; - this.statusSpecified = true; + this.ageField = value; + this.ageSpecified = 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 ageSpecified { get { - return this.statusFieldSpecified; + return this.ageFieldSpecified; } set { - this.statusFieldSpecified = value; + this.ageFieldSpecified = value; } } } - /// 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. + /// Type of unit represented in a GRP demographic breakdown. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum CreativeWrapperOrdering { - /// Wrapping occurs after #INNER but before #OUTER + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum GrpUnitType { + /// The value returned if the actual value is not exposed by the requested API + /// version. /// - NO_PREFERENCE = 0, - /// Wrapping occurs as early as possible. + UNKNOWN = 0, + IMPRESSIONS = 1, + } + + + /// The demographic gender associated with a GRP demographic forecast. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum GrpGender { + /// 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 = 0, + /// When gender is not available due to low impression levels, GRP privacy + /// thresholds are activated and prevent us from specifying gender. /// - OUTER = 2, + GENDER_UNKNOWN = 1, + GENDER_FEMALE = 2, + GENDER_MALE = 3, } - /// Indicates whether the CreativeWrapper is active. HTML snippets are - /// served to creatives only when the creative wrapper is active. + /// The age range associated with a GRP demographic forecast. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum CreativeWrapperStatus { - ACTIVE = 0, - INACTIVE = 1, + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum GrpAge { + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 0, + /// When the age range is not available due to low impression levels, GRP privacy + /// thresholds are activated and prevent us from specifying age. + /// + AGE_UNKNOWN = 1, + AGE_0_TO_17 = 2, + AGE_18_TO_24 = 3, + AGE_25_TO_34 = 4, + AGE_35_TO_44 = 5, + AGE_45_TO_54 = 6, + AGE_55_TO_64 = 7, + AGE_65_PLUS = 8, + AGE_18_TO_49 = 9, + AGE_21_TO_34 = 10, + AGE_21_TO_49 = 11, + AGE_21_PLUS = 12, + AGE_25_TO_49 = 13, + AGE_21_TO_44 = 14, + AGE_21_TO_54 = 15, + AGE_21_TO_64 = 16, + AGE_35_TO_49 = 17, } - /// Errors specific to labels. + /// 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.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class LabelError : ApiError { - private LabelErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class AlternativeUnitTypeForecast { + private UnitType unitTypeField; - private bool reasonFieldSpecified; + private bool unitTypeFieldSpecified; - /// The error reason represented by an enum. + private long matchedUnitsField; + + private bool matchedUnitsFieldSpecified; + + private long availableUnitsField; + + private bool availableUnitsFieldSpecified; + + private long possibleUnitsField; + + private bool possibleUnitsFieldSpecified; + + /// The alternative unit type being presented. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public LabelErrorReason reason { + public UnitType unitType { get { - return this.reasonField; + return this.unitTypeField; } set { - this.reasonField = value; - this.reasonSpecified = 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 reasonSpecified { + public bool unitTypeSpecified { get { - return this.reasonFieldSpecified; + return this.unitTypeFieldSpecified; } set { - this.reasonFieldSpecified = value; + this.unitTypeFieldSpecified = value; } } - } - - - /// The reasons for the target error. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "LabelError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum LabelErrorReason { - /// A user created label cannot begin with the Google internal system label prefix. - /// - INVALID_PREFIX = 0, - /// Label#name contains unsupported or reserved characters. - /// - NAME_INVALID_CHARS = 1, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 2, - } - - - /// Errors specific to creative wrappers. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class CreativeWrapperError : ApiError { - private CreativeWrapperErrorReason reasonField; - private bool reasonFieldSpecified; - - /// The error reason represented by an enum. + /// The number of units, defined by #unitType, that match + /// the specified targeting and delivery settings. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public CreativeWrapperErrorReason reason { + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + 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 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 = 2)] + public long availableUnits { + get { + return this.availableUnitsField; + } + set { + this.availableUnitsField = value; + this.availableUnitsSpecified = true; + } + } + + /// 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 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 = 3)] + public long possibleUnits { + get { + return this.possibleUnitsField; + } + set { + this.possibleUnitsField = value; + this.possibleUnitsSpecified = true; + } + } + + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool possibleUnitsSpecified { + get { + return this.possibleUnitsFieldSpecified; + } + set { + this.possibleUnitsFieldSpecified = value; } } } - /// The reasons for the creative wrapper error. + /// 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.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CreativeWrapperError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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. + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum UnitType { + /// The number of impressions served by creatives associated with the line item. + /// Line items of all LineItemType support this + /// UnitType. /// - UNRECOGNIZED_MACRO = 2, - /// When creating a new creative wrapper, either header or footer should exist. + 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. /// - NEITHER_HEADER_NOR_FOOTER_SPECIFIED = 3, - /// The network has not been enabled for creating labels of type LabelType#CREATIVE_WRAPPER. + 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. /// - CANNOT_USE_CREATIVE_WRAPPER_TYPE = 4, - /// Cannot update CreativeWrapper#labelId. + 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. /// - 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. + 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. /// - CANNOT_APPLY_TO_AD_UNIT_WITH_VIDEO_SIZES = 6, - /// Cannot apply LabelType#CREATIVE_WRAPPER - /// labels to an ad unit if AdUnit#targetPlatform is of type + TOTAL_CPA_CONVERSIONS = 4, + /// The number of viewable impressions reported by creatives associated with the + /// line item. The LineItem#lineItemType must be + /// LineItemType#STANDARD. /// - CANNOT_APPLY_TO_MOBILE_AD_UNIT = 7, + VIEWABLE_IMPRESSIONS = 6, /// The value returned if the actual value is not exposed by the requested API /// version. /// - UNKNOWN = 8, + UNKNOWN = 5, } - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", ConfigurationName = "Google.Api.Ads.AdManager.v201808.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.v201808.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); + /// Describes contending line items for a Forecast. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class ContendingLineItem { + private long lineItemIdField; - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task createCreativeWrappersAsync(Wrappers.CreativeWrapperService.createCreativeWrappersRequest request); + private bool lineItemIdFieldSpecified; - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v201808.CreativeWrapperPage getCreativeWrappersByStatement(Google.Api.Ads.AdManager.v201808.Statement filterStatement); + private long contendingImpressionsField; - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getCreativeWrappersByStatementAsync(Google.Api.Ads.AdManager.v201808.Statement filterStatement); + private bool contendingImpressionsFieldSpecified; - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v201808.UpdateResult performCreativeWrapperAction(Google.Api.Ads.AdManager.v201808.CreativeWrapperAction creativeWrapperAction, Google.Api.Ads.AdManager.v201808.Statement filterStatement); + /// The Id of the contending line item. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public long lineItemId { + get { + return this.lineItemIdField; + } + set { + this.lineItemIdField = value; + this.lineItemIdSpecified = true; + } + } - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task performCreativeWrapperActionAsync(Google.Api.Ads.AdManager.v201808.CreativeWrapperAction creativeWrapperAction, Google.Api.Ads.AdManager.v201808.Statement filterStatement); + /// 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; + } + } - // 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.v201808.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); + /// 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. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public long contendingImpressions { + get { + return this.contendingImpressionsField; + } + set { + this.contendingImpressionsField = value; + this.contendingImpressionsSpecified = true; + } + } - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task updateCreativeWrappersAsync(Wrappers.CreativeWrapperService.updateCreativeWrappersRequest request); + /// 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; + } + } } - /// Captures a page of CreativeWrapper objects. + /// A single targeting criteria breakdown result. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class CreativeWrapperPage { - private int totalResultSetSizeField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class TargetingCriteriaBreakdown { + private TargetingDimension targetingDimensionField; - private bool totalResultSetSizeFieldSpecified; + private bool targetingDimensionFieldSpecified; - private int startIndexField; + private long targetingCriteriaIdField; - private bool startIndexFieldSpecified; + private bool targetingCriteriaIdFieldSpecified; - private CreativeWrapper[] resultsField; + private string targetingCriteriaNameField; - /// The size of the total result set to which this page belongs. + 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 int totalResultSetSize { + public TargetingDimension targetingDimension { get { - return this.totalResultSetSizeField; + return this.targetingDimensionField; } set { - this.totalResultSetSizeField = value; - this.totalResultSetSizeSpecified = true; + this.targetingDimensionField = value; + this.targetingDimensionSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="targetingDimension" />, false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool totalResultSetSizeSpecified { + public bool targetingDimensionSpecified { get { - return this.totalResultSetSizeFieldSpecified; + return this.targetingDimensionFieldSpecified; } set { - this.totalResultSetSizeFieldSpecified = value; + this.targetingDimensionFieldSpecified = value; } } - /// The absolute index in the total result set on which this page begins. + /// The unique ID of the targeting criteria. /// [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public int startIndex { + public long targetingCriteriaId { get { - return this.startIndexField; + return this.targetingCriteriaIdField; } set { - this.startIndexField = value; - this.startIndexSpecified = true; + this.targetingCriteriaIdField = value; + this.targetingCriteriaIdSpecified = 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 targetingCriteriaIdSpecified { + get { + return this.targetingCriteriaIdFieldSpecified; + } + set { + this.targetingCriteriaIdFieldSpecified = value; + } + } + + /// The name of the targeting criteria. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public string targetingCriteriaName { + get { + return this.targetingCriteriaNameField; + } + set { + this.targetingCriteriaNameField = value; + } + } + + /// When true, the breakdown is negative. + /// + [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 startIndexSpecified { + public bool excludedSpecified { get { - return this.startIndexFieldSpecified; + return this.excludedFieldSpecified; } set { - this.startIndexFieldSpecified = value; + this.excludedFieldSpecified = value; } } - /// The collection of creative wrappers contained within this page. + /// The available units for this breakdown. /// - [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] - public CreativeWrapper[] results { + [System.Xml.Serialization.XmlElementAttribute(Order = 4)] + public long availableUnits { get { - return this.resultsField; + return this.availableUnitsField; } set { - this.resultsField = value; + this.availableUnitsField = value; + this.availableUnitsSpecified = true; } } - } + /// 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; + } + } - /// 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.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public abstract partial class CreativeWrapperAction { + /// The matched units for this breakdown. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 5)] + public long matchedUnits { + get { + return this.matchedUnitsField; + } + set { + this.matchedUnitsField = value; + this.matchedUnitsSpecified = true; + } + } + + /// 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; + } + } } - /// The action used for deactivating CreativeWrapper - /// objects. + /// Targeting dimension of targeting breakdowns. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class DeactivateCreativeWrappers : CreativeWrapperAction { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 16, } - /// The action used for activating CreativeWrapper - /// objects. + /// Represents a single delivery data point, with both available and forecast + /// number. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ActivateCreativeWrappers : CreativeWrapperAction { - } + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class BreakdownForecast { + private long matchedField; + private bool matchedFieldSpecified; - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public interface CreativeWrapperServiceInterfaceChannel : Google.Api.Ads.AdManager.v201808.CreativeWrapperServiceInterface, System.ServiceModel.IClientChannel - { - } + private long availableField; + private bool availableFieldSpecified; - /// 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 CreativeWrapperService : AdManagerSoapClient, ICreativeWrapperService { - /// Creates a new instance of the - /// class. - public CreativeWrapperService() { - } + private long possibleField; - /// Creates a new instance of the - /// class. - public CreativeWrapperService(string endpointConfigurationName) - : base(endpointConfigurationName) { + private bool possibleFieldSpecified; + + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public long matched { + get { + return this.matchedField; + } + set { + this.matchedField = value; + this.matchedSpecified = true; + } } - /// Creates a new instance of the - /// class. - public CreativeWrapperService(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 matchedSpecified { + get { + return this.matchedFieldSpecified; + } + set { + this.matchedFieldSpecified = value; + } } - /// Creates a new instance of the - /// class. - public CreativeWrapperService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) - : base(endpointConfigurationName, remoteAddress) { + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public long available { + get { + return this.availableField; + } + set { + this.availableField = value; + this.availableSpecified = true; + } } - /// Creates a new instance of the - /// class. - public CreativeWrapperService(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 availableSpecified { + get { + return this.availableFieldSpecified; + } + set { + this.availableFieldSpecified = value; + } } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.CreativeWrapperService.createCreativeWrappersResponse Google.Api.Ads.AdManager.v201808.CreativeWrapperServiceInterface.createCreativeWrappers(Wrappers.CreativeWrapperService.createCreativeWrappersRequest request) { - return base.Channel.createCreativeWrappers(request); + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public long possible { + get { + return this.possibleField; + } + set { + this.possibleField = value; + this.possibleSpecified = true; + } } - /// Creates a new CreativeWrapper objects. The following fields are - /// required: - /// the creative wrappers to create - /// the creative wrappers with their IDs filled in - /// ApiException - public virtual Google.Api.Ads.AdManager.v201808.CreativeWrapper[] createCreativeWrappers(Google.Api.Ads.AdManager.v201808.CreativeWrapper[] creativeWrappers) { - Wrappers.CreativeWrapperService.createCreativeWrappersRequest inValue = new Wrappers.CreativeWrapperService.createCreativeWrappersRequest(); - inValue.creativeWrappers = creativeWrappers; - Wrappers.CreativeWrapperService.createCreativeWrappersResponse retVal = ((Google.Api.Ads.AdManager.v201808.CreativeWrapperServiceInterface)(this)).createCreativeWrappers(inValue); - return retVal.rval; - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201808.CreativeWrapperServiceInterface.createCreativeWrappersAsync(Wrappers.CreativeWrapperService.createCreativeWrappersRequest request) { - return base.Channel.createCreativeWrappersAsync(request); - } - - public virtual System.Threading.Tasks.Task createCreativeWrappersAsync(Google.Api.Ads.AdManager.v201808.CreativeWrapper[] creativeWrappers) { - Wrappers.CreativeWrapperService.createCreativeWrappersRequest inValue = new Wrappers.CreativeWrapperService.createCreativeWrappersRequest(); - inValue.creativeWrappers = creativeWrappers; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201808.CreativeWrapperServiceInterface)(this)).createCreativeWrappersAsync(inValue)).Result.rval); - } - - /// 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
- ///
a Publisher Query Language statement used to - /// filter a set of creative wrappers. - /// the creative wrappers that match the given filter - public virtual Google.Api.Ads.AdManager.v201808.CreativeWrapperPage getCreativeWrappersByStatement(Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.getCreativeWrappersByStatement(filterStatement); - } - - public virtual System.Threading.Tasks.Task getCreativeWrappersByStatementAsync(Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.getCreativeWrappersByStatementAsync(filterStatement); - } - - /// Performs actions on CreativeWrapper objects that - /// match the given Statement#query. - /// the action to perform - /// a Publisher Query Language statement used to - /// filter a set of labels - /// the result of the action performed - public virtual Google.Api.Ads.AdManager.v201808.UpdateResult performCreativeWrapperAction(Google.Api.Ads.AdManager.v201808.CreativeWrapperAction creativeWrapperAction, Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.performCreativeWrapperAction(creativeWrapperAction, filterStatement); + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool possibleSpecified { + get { + return this.possibleFieldSpecified; + } + set { + this.possibleFieldSpecified = value; + } } + } - public virtual System.Threading.Tasks.Task performCreativeWrapperActionAsync(Google.Api.Ads.AdManager.v201808.CreativeWrapperAction creativeWrapperAction, Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.performCreativeWrapperActionAsync(creativeWrapperAction, filterStatement); - } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.CreativeWrapperService.updateCreativeWrappersResponse Google.Api.Ads.AdManager.v201808.CreativeWrapperServiceInterface.updateCreativeWrappers(Wrappers.CreativeWrapperService.updateCreativeWrappersRequest request) { - return base.Channel.updateCreativeWrappers(request); - } + /// A single forecast breakdown entry. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class ForecastBreakdownEntry { + private string nameField; - /// Updates the specified CreativeWrapper objects. - /// the creative wrappers to update - /// the updated creative wrapper objects - /// ApiException - public virtual Google.Api.Ads.AdManager.v201808.CreativeWrapper[] updateCreativeWrappers(Google.Api.Ads.AdManager.v201808.CreativeWrapper[] creativeWrappers) { - Wrappers.CreativeWrapperService.updateCreativeWrappersRequest inValue = new Wrappers.CreativeWrapperService.updateCreativeWrappersRequest(); - inValue.creativeWrappers = creativeWrappers; - Wrappers.CreativeWrapperService.updateCreativeWrappersResponse retVal = ((Google.Api.Ads.AdManager.v201808.CreativeWrapperServiceInterface)(this)).updateCreativeWrappers(inValue); - return retVal.rval; - } + private BreakdownForecast forecastField; - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201808.CreativeWrapperServiceInterface.updateCreativeWrappersAsync(Wrappers.CreativeWrapperService.updateCreativeWrappersRequest request) { - return base.Channel.updateCreativeWrappersAsync(request); + /// The optional name of this entry, as specified in the corresponding ForecastBreakdownTarget#name field. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public string name { + get { + return this.nameField; + } + set { + this.nameField = value; + } } - public virtual System.Threading.Tasks.Task updateCreativeWrappersAsync(Google.Api.Ads.AdManager.v201808.CreativeWrapper[] creativeWrappers) { - Wrappers.CreativeWrapperService.updateCreativeWrappersRequest inValue = new Wrappers.CreativeWrapperService.updateCreativeWrappersRequest(); - inValue.creativeWrappers = creativeWrappers; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201808.CreativeWrapperServiceInterface)(this)).updateCreativeWrappersAsync(inValue)).Result.rval); + /// The forecast of this entry. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public BreakdownForecast forecast { + get { + return this.forecastField; + } + set { + this.forecastField = value; + } } } - 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/v201808", IsWrapped = true)] - public partial class createCustomTargetingKeysRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("keys")] - public Google.Api.Ads.AdManager.v201808.CustomTargetingKey[] keys; - /// Creates a new instance of the class. - public createCustomTargetingKeysRequest() { - } - /// Creates a new instance of the class. - public createCustomTargetingKeysRequest(Google.Api.Ads.AdManager.v201808.CustomTargetingKey[] keys) { - this.keys = keys; - } - } + /// Represents the breakdown entries for a list of targetings and/or creatives. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class ForecastBreakdown { + private DateTime startTimeField; + private DateTime endTimeField; - [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/v201808", IsWrapped = true)] - public partial class createCustomTargetingKeysResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v201808.CustomTargetingKey[] rval; + private ForecastBreakdownEntry[] breakdownEntriesField; - /// Creates a new instance of the class. - public createCustomTargetingKeysResponse() { + /// The starting time of the represented breakdown. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public DateTime startTime { + get { + return this.startTimeField; } - - /// Creates a new instance of the class. - public createCustomTargetingKeysResponse(Google.Api.Ads.AdManager.v201808.CustomTargetingKey[] rval) { - this.rval = rval; + set { + this.startTimeField = 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 = "createCustomTargetingValues", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201808", IsWrapped = true)] - public partial class createCustomTargetingValuesRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("values")] - public Google.Api.Ads.AdManager.v201808.CustomTargetingValue[] values; - - /// Creates a new instance of the class. - public createCustomTargetingValuesRequest() { + /// The end time of the represented breakdown. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public DateTime endTime { + get { + return this.endTimeField; } - - /// Creates a new instance of the class. - public createCustomTargetingValuesRequest(Google.Api.Ads.AdManager.v201808.CustomTargetingValue[] values) { - this.values = values; + set { + this.endTimeField = 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 = "createCustomTargetingValuesResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201808", IsWrapped = true)] - public partial class createCustomTargetingValuesResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v201808.CustomTargetingValue[] rval; - - /// Creates a new instance of the class. - public createCustomTargetingValuesResponse() { + /// The forecast breakdown entries in the same order as in the ForecastBreakdownOptions#targets + /// field. + /// + [System.Xml.Serialization.XmlElementAttribute("breakdownEntries", Order = 2)] + public ForecastBreakdownEntry[] breakdownEntries { + get { + return this.breakdownEntriesField; } - - /// Creates a new instance of the class. - public createCustomTargetingValuesResponse(Google.Api.Ads.AdManager.v201808.CustomTargetingValue[] rval) { - this.rval = rval; + set { + this.breakdownEntriesField = 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/v201808", IsWrapped = true)] - public partial class updateCustomTargetingKeysRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("keys")] - public Google.Api.Ads.AdManager.v201808.CustomTargetingKey[] keys; - - /// Creates a new instance of the class. - public updateCustomTargetingKeysRequest() { - } + /// 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.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class AvailabilityForecast { + private long lineItemIdField; - /// Creates a new instance of the class. - public updateCustomTargetingKeysRequest(Google.Api.Ads.AdManager.v201808.CustomTargetingKey[] keys) { - this.keys = keys; - } - } + private bool lineItemIdFieldSpecified; + private long orderIdField; - [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/v201808", IsWrapped = true)] - public partial class updateCustomTargetingKeysResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v201808.CustomTargetingKey[] rval; + private bool orderIdFieldSpecified; - /// Creates a new instance of the class. - public updateCustomTargetingKeysResponse() { - } + private UnitType unitTypeField; - /// Creates a new instance of the class. - public updateCustomTargetingKeysResponse(Google.Api.Ads.AdManager.v201808.CustomTargetingKey[] rval) { - this.rval = rval; - } - } + private bool unitTypeFieldSpecified; + private long availableUnitsField; - [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/v201808", IsWrapped = true)] - public partial class updateCustomTargetingValuesRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("values")] - public Google.Api.Ads.AdManager.v201808.CustomTargetingValue[] values; + private bool availableUnitsFieldSpecified; - /// Creates a new instance of the class. - public updateCustomTargetingValuesRequest() { - } + private long deliveredUnitsField; - /// Creates a new instance of the class. - public updateCustomTargetingValuesRequest(Google.Api.Ads.AdManager.v201808.CustomTargetingValue[] values) { - this.values = values; - } - } + private bool deliveredUnitsFieldSpecified; + private long matchedUnitsField; - [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/v201808", IsWrapped = true)] - public partial class updateCustomTargetingValuesResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v201808.CustomTargetingValue[] rval; + private bool matchedUnitsFieldSpecified; - /// Creates a new instance of the class. - public updateCustomTargetingValuesResponse() { - } + private long possibleUnitsField; - /// Creates a new instance of the class. - public updateCustomTargetingValuesResponse(Google.Api.Ads.AdManager.v201808.CustomTargetingValue[] rval) { - this.rval = rval; - } - } - } - /// CustomTargetingKey represents a key used for custom targeting. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class CustomTargetingKey { - private long idField; + private bool possibleUnitsFieldSpecified; - private bool idFieldSpecified; + private long reservedUnitsField; - private string nameField; + private bool reservedUnitsFieldSpecified; - private string displayNameField; + private ForecastBreakdown[] breakdownsField; - private CustomTargetingKeyType typeField; + private TargetingCriteriaBreakdown[] targetingCriteriaBreakdownsField; - private bool typeFieldSpecified; + private ContendingLineItem[] contendingLineItemsField; - private CustomTargetingKeyStatus statusField; + private AlternativeUnitTypeForecast[] alternativeUnitTypeForecastsField; - private bool statusFieldSpecified; + private GrpDemographicBreakdown[] demographicBreakdownsField; - /// The ID of the CustomTargetingKey. This value is readonly and is - /// populated by Google. + /// 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 id { + public long lineItemId { get { - return this.idField; + return this.lineItemIdField; } set { - this.idField = value; - this.idSpecified = 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 idSpecified { + public bool lineItemIdSpecified { get { - return this.idFieldSpecified; + return this.lineItemIdFieldSpecified; } set { - this.idFieldSpecified = value; + this.lineItemIdFieldSpecified = 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 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 string name { + public long orderId { get { - return this.nameField; + return this.orderIdField; } set { - this.nameField = value; + this.orderIdField = value; + this.orderIdSpecified = true; } } - /// Descriptive name for the key. + /// 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 string displayName { + public UnitType unitType { get { - return this.displayNameField; + return this.unitTypeField; } set { - this.displayNameField = value; + this.unitTypeField = value; + this.unitTypeSpecified = true; } } - /// Indicates whether users will select from predefined values or create new - /// targeting values, while specifying targeting criteria for a line item. + /// 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 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 CustomTargetingKeyType type { + public long availableUnits { get { - return this.typeField; + return this.availableUnitsField; } set { - this.typeField = value; - this.typeSpecified = 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 typeSpecified { + public bool availableUnitsSpecified { get { - return this.typeFieldSpecified; + return this.availableUnitsFieldSpecified; } set { - this.typeFieldSpecified = value; + this.availableUnitsFieldSpecified = 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 Goal#unitType, that + /// have already been served if the reservation is already running. /// [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public CustomTargetingKeyStatus status { + public long deliveredUnits { get { - return this.statusField; + return this.deliveredUnitsField; } set { - this.statusField = value; - this.statusSpecified = true; + this.deliveredUnitsField = value; + this.deliveredUnitsSpecified = 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 deliveredUnitsSpecified { get { - return this.statusFieldSpecified; + return this.deliveredUnitsFieldSpecified; } set { - this.statusFieldSpecified = value; + this.deliveredUnitsFieldSpecified = value; } } - } - - - /// Specifies the types for CustomTargetingKey objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CustomTargetingKey.Type", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum CustomTargetingKeyType { - /// Target audiences by criteria values that are defined in advance. - /// - PREDEFINED = 0, - /// Target audiences by adding criteria values when creating line items. - /// - FREEFORM = 1, - } - - /// Describes the statuses for CustomTargetingKey objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CustomTargetingKey.Status", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum CustomTargetingKeyStatus { - /// 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. + /// The number of units, defined by Goal#unitType, that + /// match the specified targeting and delivery settings. /// - UNKNOWN = 2, - } - - - /// Lists errors relating to having too many children on an entity. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class EntityChildrenLimitReachedError : ApiError { - private EntityChildrenLimitReachedErrorReason reasonField; - - private bool reasonFieldSpecified; - - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public EntityChildrenLimitReachedErrorReason reason { + [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 entity children limit reached error. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "EntityChildrenLimitReachedError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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. + /// 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.

///
- 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 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, - } - - - /// Lists all errors related to CustomTargetingKey - /// and CustomTargetingValue objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class CustomTargetingError : ApiError { - private CustomTargetingErrorReason reasonField; - - private bool reasonFieldSpecified; - - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public CustomTargetingErrorReason reason { + [System.Xml.Serialization.XmlElementAttribute(Order = 6)] + public long possibleUnits { get { - return this.reasonField; + return this.possibleUnitsField; } set { - this.reasonField = value; - this.reasonSpecified = 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 reasonSpecified { + public bool possibleUnitsSpecified { get { - return this.reasonFieldSpecified; + return this.possibleUnitsFieldSpecified; } set { - this.reasonFieldSpecified = value; + this.possibleUnitsFieldSpecified = value; } } - } - - - /// The reasons for the target error. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CustomTargetingError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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, - /// 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, - /// The CustomTargetingKey does not have any CustomTargetingValue associated with it. - /// - KEY_WITH_MISSING_VALUES = 20, - /// 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, - /// Inactive AudienceSegment object cannot be - /// targeted. - /// - CANNOT_TARGET_INACTIVE_AUDIENCE_SEGMENT = 27, - /// Targeted AudienceSegment object is not valid. - /// - INVALID_AUDIENCE_SEGMENTS = 28, - /// 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, - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", ConfigurationName = "Google.Api.Ads.AdManager.v201808.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.v201808.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.v201808.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.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v201808.CustomTargetingKeyPage getCustomTargetingKeysByStatement(Google.Api.Ads.AdManager.v201808.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getCustomTargetingKeysByStatementAsync(Google.Api.Ads.AdManager.v201808.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v201808.CustomTargetingValuePage getCustomTargetingValuesByStatement(Google.Api.Ads.AdManager.v201808.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getCustomTargetingValuesByStatementAsync(Google.Api.Ads.AdManager.v201808.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v201808.UpdateResult performCustomTargetingKeyAction(Google.Api.Ads.AdManager.v201808.CustomTargetingKeyAction customTargetingKeyAction, Google.Api.Ads.AdManager.v201808.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task performCustomTargetingKeyActionAsync(Google.Api.Ads.AdManager.v201808.CustomTargetingKeyAction customTargetingKeyAction, Google.Api.Ads.AdManager.v201808.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v201808.UpdateResult performCustomTargetingValueAction(Google.Api.Ads.AdManager.v201808.CustomTargetingValueAction customTargetingValueAction, Google.Api.Ads.AdManager.v201808.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task performCustomTargetingValueActionAsync(Google.Api.Ads.AdManager.v201808.CustomTargetingValueAction customTargetingValueAction, Google.Api.Ads.AdManager.v201808.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.v201808.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.v201808.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); - } - - - /// CustomTargetingValue represents a value used for custom targeting. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class CustomTargetingValue { - private long customTargetingKeyIdField; - - private bool customTargetingKeyIdFieldSpecified; - - private long idField; - - private bool idFieldSpecified; - - private string nameField; - - private string displayNameField; - - private CustomTargetingValueMatchType matchTypeField; - - private bool matchTypeFieldSpecified; - - private CustomTargetingValueStatus statusField; - private bool statusFieldSpecified; - - /// The ID of the CustomTargetingKey for which this is the value. + /// The number of reserved units, defined by Goal#unitType, requested. This can be an absolute or + /// percentage value. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public long customTargetingKeyId { + [System.Xml.Serialization.XmlElementAttribute(Order = 7)] + public long reservedUnits { get { - return this.customTargetingKeyIdField; + return this.reservedUnitsField; } set { - this.customTargetingKeyIdField = value; - this.customTargetingKeyIdSpecified = true; + this.reservedUnitsField = value; + this.reservedUnitsSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="reservedUnits" />, false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool customTargetingKeyIdSpecified { + public bool reservedUnitsSpecified { get { - return this.customTargetingKeyIdFieldSpecified; + return this.reservedUnitsFieldSpecified; } set { - this.customTargetingKeyIdFieldSpecified = value; + this.reservedUnitsFieldSpecified = value; } } - /// The ID of the CustomTargetingValue. This value is readonly and is - /// populated by Google. + /// 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, + /// availbleUnits=20]}] where the entries correspond to {IU=A} and + /// {IU=B, creative=1x1} respectively. For a time breakdown in the form + /// of ForecastBreakdownOptions{timeWindows=[1am, 2am, 3am]}, the + /// breakdowns field may look like:

  [
+		/// ForecastBreakdown{startTime=1am, endTime=2am,
+		/// breakdownEntries=[availableUnits=10], ForecastBreakdow{startTime=2am,
+		/// endTime=3am, breakdownEntries=[availalbleUnits=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=[availalbleUnits=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(Order = 1)] - public long id { + [System.Xml.Serialization.XmlElementAttribute("breakdowns", Order = 8)] + public ForecastBreakdown[] breakdowns { get { - return this.idField; + return this.breakdownsField; } set { - this.idField = value; - this.idSpecified = true; + this.breakdownsField = value; } } - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool idSpecified { + /// 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.idFieldSpecified; + return this.targetingCriteriaBreakdownsField; } set { - this.idFieldSpecified = value; + this.targetingCriteriaBreakdownsField = 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" + /// List of contending line items for this + /// forecast. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public string name { + [System.Xml.Serialization.XmlElementAttribute("contendingLineItems", Order = 10)] + public ContendingLineItem[] contendingLineItems { get { - return this.nameField; + return this.contendingLineItemsField; } set { - this.nameField = value; + this.contendingLineItemsField = value; } } - /// Descriptive name for the value. + /// Views of this forecast, with alternative unit types. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public string displayName { + [System.Xml.Serialization.XmlElementAttribute("alternativeUnitTypeForecasts", Order = 11)] + public AlternativeUnitTypeForecast[] alternativeUnitTypeForecasts { get { - return this.displayNameField; + return this.alternativeUnitTypeForecastsField; } set { - this.displayNameField = value; + this.alternativeUnitTypeForecastsField = value; } } - /// The way in which the CustomTargetingValue#name strings will be - /// matched. + /// The forecast result broken down by demographics. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public CustomTargetingValueMatchType matchType { + [System.Xml.Serialization.XmlElementAttribute("demographicBreakdowns", Order = 12)] + public GrpDemographicBreakdown[] demographicBreakdowns { get { - return this.matchTypeField; + return this.demographicBreakdownsField; } set { - this.matchTypeField = value; - this.matchTypeSpecified = true; + this.demographicBreakdownsField = value; } } + } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool matchTypeSpecified { + + /// Specifies inventory targeted by a breakdown entry. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class ForecastBreakdownTarget { + private string nameField; + + private Targeting targetingField; + + 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.matchTypeFieldSpecified; + return this.nameField; } set { - this.matchTypeFieldSpecified = value; + this.nameField = value; } } - /// Status of the CustomTargetingValue. This field is read-only. A - /// value can be activated and deactivated by calling CustomTargetingService#performCustomTargetingValueAction. + /// If specified, the targeting for this breakdown. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 5)] - public CustomTargetingValueStatus status { - get { - return this.statusField; + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public Targeting targeting { + get { + return this.targetingField; } set { - this.statusField = value; - this.statusSpecified = true; + this.targetingField = value; } } - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool statusSpecified { + /// If specified, restrict the breakdown to only inventory matching this creative. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public CreativePlaceholder creative { get { - return this.statusFieldSpecified; + return this.creativeField; } set { - this.statusFieldSpecified = value; + this.creativeField = value; } } } - /// Represents the ways in which CustomTargetingValue#name strings will be - /// matched with ad requests. + /// Contains targeting criteria for LineItem objects. See LineItem#targeting. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CustomTargetingValue.MatchType", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum CustomTargetingValueMatchType { - /// Used for exact matching. For example, the targeting value will - /// only match to the ad request car=honda. + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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; + + private RequestPlatformTargeting requestPlatformTargetingField; + + /// Specifies what geographical locations are targeted by the LineItem. This attribute is optional. /// - 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.

+ [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public GeoTargeting geoTargeting { + get { + return this.geoTargetingField; + } + set { + this.geoTargetingField = value; + } + } + + /// Specifies what inventory is targeted by the LineItem. + /// This attribute is required. The line item must target at least one ad unit or + /// placement. /// - 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. + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public InventoryTargeting inventoryTargeting { + get { + return this.inventoryTargetingField; + } + set { + this.inventoryTargetingField = value; + } + } + + /// Specifies the days of the week and times that are targeted by the LineItem. This attribute is optional. /// - 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.

+ [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public DayPartTargeting dayPartTargeting { + get { + return this.dayPartTargetingField; + } + set { + this.dayPartTargetingField = value; + } + } + + /// Specifies the dates and time ranges that are targeted by the LineItem. This attribute is optional. /// - 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.

+ [System.Xml.Serialization.XmlArrayAttribute(Order = 3)] + [System.Xml.Serialization.XmlArrayItemAttribute("targetedDateTimeRanges", IsNullable = false)] + public DateTimeRange[] dateTimeRangeTargeting { + get { + return this.dateTimeRangeTargetingField; + } + set { + this.dateTimeRangeTargetingField = value; + } + } + + /// Specifies the browsing technologies that are targeted by the LineItem. This attribute is optional. /// - 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.

+ [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:


///
- CONTAINS = 5, - /// The value returned if the actual value is not exposed by the requested API - /// version. + [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. /// - UNKNOWN = 6, + [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. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 7)] + public ContentTargeting contentTargeting { + get { + return this.contentTargetingField; + } + set { + this.contentTargetingField = value; + } + } + + /// Specifies targeting against video position types. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 8)] + public VideoPositionTargeting videoPositionTargeting { + get { + return this.videoPositionTargetingField; + } + set { + this.videoPositionTargetingField = value; + } + } + + /// Specifies targeting against mobile applications. + /// + [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. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 10)] + public BuyerUserListTargeting buyerUserListTargeting { + get { + return this.buyerUserListTargetingField; + } + set { + this.buyerUserListTargetingField = value; + } + } + + /// Specifies the request platforms that are targeted by the LineItem. This attribute is required for video line items. + ///

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.

+ ///
+ [System.Xml.Serialization.XmlElementAttribute(Order = 11)] + public RequestPlatformTargeting requestPlatformTargeting { + get { + return this.requestPlatformTargetingField; + } + set { + this.requestPlatformTargetingField = value; + } + } } - /// Describes the statuses for CustomTargetingValue objects. + /// 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 + /// excplicitly include California.
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CustomTargetingValue.Status", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum CustomTargetingValueStatus { - /// The object is active. - /// - ACTIVE = 0, - /// The object is no longer active. + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class GeoTargeting { + private Location[] targetedLocationsField; + + private Location[] excludedLocationsField; + + /// The geographical locations being targeted by the LineItem. /// - INACTIVE = 1, - /// The value returned if the actual value is not exposed by the requested API - /// version. + [System.Xml.Serialization.XmlElementAttribute("targetedLocations", Order = 0)] + public Location[] targetedLocations { + get { + return this.targetedLocationsField; + } + set { + this.targetedLocationsField = value; + } + } + + /// The geographical locations being excluded by the LineItem. /// - UNKNOWN = 2, + [System.Xml.Serialization.XmlElementAttribute("excludedLocations", Order = 1)] + public Location[] excludedLocations { + get { + return this.excludedLocationsField; + } + set { + this.excludedLocationsField = value; + } + } } - /// Captures a page of CustomTargetingKey objects. + /// 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.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class CustomTargetingKeyPage { - private int totalResultSetSizeField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class Location { + private long idField; - private bool totalResultSetSizeFieldSpecified; + private bool idFieldSpecified; - private int startIndexField; + private string typeField; - private bool startIndexFieldSpecified; + private int canonicalParentIdField; - private CustomTargetingKey[] resultsField; + private bool canonicalParentIdFieldSpecified; - /// The size of the total result set to which this page belongs. + private string displayNameField; + + /// Uniquely identifies each Location. /// [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. + /// The location type for this geographical entity (ex. "COUNTRY", "CITY", "STATE", + /// "COUNTY", etc.) /// [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public int startIndex { + public string type { get { - return this.startIndexField; + return this.typeField; } set { - this.startIndexField = value; - this.startIndexSpecified = true; + this.typeField = value; } } - /// true, if a value is specified for , false otherwise. + /// The nearest location parent's ID for this geographical entity. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public int canonicalParentId { + get { + return this.canonicalParentIdField; + } + set { + this.canonicalParentIdField = value; + this.canonicalParentIdSpecified = true; + } + } + + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool startIndexSpecified { + public bool canonicalParentIdSpecified { get { - return this.startIndexFieldSpecified; + return this.canonicalParentIdFieldSpecified; } set { - this.startIndexFieldSpecified = value; + this.canonicalParentIdFieldSpecified = value; } } - /// The collection of custom targeting keys contained within this page. + /// The localized name of the geographical entity. /// - [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] - public CustomTargetingKey[] results { + [System.Xml.Serialization.XmlElementAttribute(Order = 3)] + public string displayName { get { - return this.resultsField; + return this.displayNameField; } set { - this.resultsField = value; + this.displayNameField = value; } } } - /// Captures a page of CustomTargetingValue - /// objects. + /// A collection of targeted and excluded ad units and placements. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class CustomTargetingValuePage { - private int totalResultSetSizeField; - - private bool totalResultSetSizeFieldSpecified; - - private int startIndexField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class InventoryTargeting { + private AdUnitTargeting[] targetedAdUnitsField; - private bool startIndexFieldSpecified; + private AdUnitTargeting[] excludedAdUnitsField; - private CustomTargetingValue[] resultsField; + private long[] targetedPlacementIdsField; - /// The size of the total result set to which this page belongs. + /// A list of targeted AdUnitTargeting. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public int totalResultSetSize { + [System.Xml.Serialization.XmlElementAttribute("targetedAdUnits", Order = 0)] + public AdUnitTargeting[] targetedAdUnits { get { - return this.totalResultSetSizeField; + return this.targetedAdUnitsField; } set { - this.totalResultSetSizeField = value; - this.totalResultSetSizeSpecified = true; + this.targetedAdUnitsField = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool totalResultSetSizeSpecified { + /// A list of excluded AdUnitTargeting. + /// + [System.Xml.Serialization.XmlElementAttribute("excludedAdUnits", Order = 1)] + public AdUnitTargeting[] excludedAdUnits { get { - return this.totalResultSetSizeFieldSpecified; + return this.excludedAdUnitsField; } set { - this.totalResultSetSizeFieldSpecified = value; + this.excludedAdUnitsField = value; } } - /// The absolute index in the total result set on which this page begins. + /// A list of targeted Placement ids. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public int startIndex { + [System.Xml.Serialization.XmlElementAttribute("targetedPlacementIds", Order = 2)] + public long[] targetedPlacementIds { get { - return this.startIndexField; + return this.targetedPlacementIdsField; } set { - this.startIndexField = value; - this.startIndexSpecified = true; + this.targetedPlacementIdsField = value; } } + } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool startIndexSpecified { + + /// Represents targeted or excluded ad units. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class AdUnitTargeting { + private string adUnitIdField; + + private bool includeDescendantsField; + + private bool includeDescendantsFieldSpecified; + + /// Included or excluded ad unit id. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public string adUnitId { get { - return this.startIndexFieldSpecified; + return this.adUnitIdField; } set { - this.startIndexFieldSpecified = value; + this.adUnitIdField = value; } } - /// The collection of custom targeting keys contained within this page. + /// 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("results", Order = 2)] - public CustomTargetingValue[] results { + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public bool includeDescendants { get { - return this.resultsField; + return this.includeDescendantsField; } set { - this.resultsField = value; + this.includeDescendantsField = value; + this.includeDescendantsSpecified = true; } } - } - - /// 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.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public abstract partial class CustomTargetingKeyAction { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool includeDescendantsSpecified { + get { + return this.includeDescendantsFieldSpecified; + } + set { + this.includeDescendantsFieldSpecified = 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. + /// 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.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class DeleteCustomTargetingKeys : CustomTargetingKeyAction { - } + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class DayPartTargeting { + private DayPart[] dayPartsField; + private DeliveryTimeZone timeZoneField; - /// The action used for activating inactive (i.e. deleted) CustomTargetingKey objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ActivateCustomTargetingKeys : CustomTargetingKeyAction { + 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("dayParts", Order = 0)] + public DayPart[] dayParts { + get { + return this.dayPartsField; + } + set { + 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 the actions that can be performed on CustomTargetingValue objects. + /// DayPart represents a time-period within a day of the week which is + /// targeted by a LineItem. /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(DeleteCustomTargetingValues))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ActivateCustomTargetingValues))] [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public abstract partial class CustomTargetingValueAction { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class DayPart { + private DayOfWeek dayOfWeekField; + + private bool dayOfWeekFieldSpecified; + + 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 DayOfWeek dayOfWeek { + get { + return this.dayOfWeekField; + } + set { + this.dayOfWeekField = value; + this.dayOfWeekSpecified = true; + } + } + + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool dayOfWeekSpecified { + get { + return this.dayOfWeekFieldSpecified; + } + set { + this.dayOfWeekFieldSpecified = value; + } + } + + /// Represents the start time of the targeted period (inclusive). + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public TimeOfDay startTime { + get { + return this.startTimeField; + } + set { + this.startTimeField = value; + } + } + + /// Represents the end time of the targeted period (exclusive). + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public TimeOfDay endTime { + get { + return this.endTimeField; + } + set { + this.endTimeField = value; + } + } } - /// Represents the delete action that can be performed on CustomTargetingValue objects. + /// Days of the week. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class DeleteCustomTargetingValues : CustomTargetingValueAction { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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, } - /// The action used for activating inactive (i.e. deleted) CustomTargetingValue objects. + /// Represents a specific time in a day. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ActivateCustomTargetingValues : CustomTargetingValueAction { - } + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class TimeOfDay { + private int hourField; + private bool hourFieldSpecified; - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public interface CustomTargetingServiceInterfaceChannel : Google.Api.Ads.AdManager.v201808.CustomTargetingServiceInterface, System.ServiceModel.IClientChannel - { - } + private MinuteOfHour minuteField; + private bool minuteFieldSpecified; - /// 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() { + /// 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 int hour { + get { + return this.hourField; + } + set { + this.hourField = value; + this.hourSpecified = true; + } } - /// Creates a new instance of the - /// class. - public CustomTargetingService(string endpointConfigurationName) - : base(endpointConfigurationName) { + /// 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; + } } - /// Creates a new instance of the - /// class. - public CustomTargetingService(string endpointConfigurationName, string remoteAddress) - : base(endpointConfigurationName, remoteAddress) { + /// 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.minuteField; + } + set { + this.minuteField = value; + this.minuteSpecified = true; + } } - /// Creates a new instance of the - /// class. - public CustomTargetingService(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 minuteSpecified { + get { + return this.minuteFieldSpecified; + } + set { + this.minuteFieldSpecified = value; + } } + } - /// Creates a new instance of the - /// class. - public CustomTargetingService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) - : base(binding, remoteAddress) { - } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.CustomTargetingService.createCustomTargetingKeysResponse Google.Api.Ads.AdManager.v201808.CustomTargetingServiceInterface.createCustomTargetingKeys(Wrappers.CustomTargetingService.createCustomTargetingKeysRequest request) { - return base.Channel.createCustomTargetingKeys(request); - } + /// Minutes in an hour. Currently, only 0, 15, 30, and 45 are supported. This field + /// is required. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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, + } - /// Creates new CustomTargetingKey objects. The - /// following fields are required: - /// the custom targeting keys to update - /// the updated custom targeting keys - public virtual Google.Api.Ads.AdManager.v201808.CustomTargetingKey[] createCustomTargetingKeys(Google.Api.Ads.AdManager.v201808.CustomTargetingKey[] keys) { - Wrappers.CustomTargetingService.createCustomTargetingKeysRequest inValue = new Wrappers.CustomTargetingService.createCustomTargetingKeysRequest(); - inValue.keys = keys; - Wrappers.CustomTargetingService.createCustomTargetingKeysResponse retVal = ((Google.Api.Ads.AdManager.v201808.CustomTargetingServiceInterface)(this)).createCustomTargetingKeys(inValue); - return retVal.rval; - } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201808.CustomTargetingServiceInterface.createCustomTargetingKeysAsync(Wrappers.CustomTargetingService.createCustomTargetingKeysRequest request) { - return base.Channel.createCustomTargetingKeysAsync(request); - } + /// Represents the time zone to be used for DayPartTargeting. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum DeliveryTimeZone { + /// Use the time zone of the publisher. + /// + PUBLISHER = 0, + /// Use the time zone of the browser. + /// + BROWSER = 1, + } - public virtual System.Threading.Tasks.Task createCustomTargetingKeysAsync(Google.Api.Ads.AdManager.v201808.CustomTargetingKey[] keys) { - Wrappers.CustomTargetingService.createCustomTargetingKeysRequest inValue = new Wrappers.CustomTargetingService.createCustomTargetingKeysRequest(); - inValue.keys = keys; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201808.CustomTargetingServiceInterface)(this)).createCustomTargetingKeysAsync(inValue)).Result.rval); - } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.CustomTargetingService.createCustomTargetingValuesResponse Google.Api.Ads.AdManager.v201808.CustomTargetingServiceInterface.createCustomTargetingValues(Wrappers.CustomTargetingService.createCustomTargetingValuesRequest request) { - return base.Channel.createCustomTargetingValues(request); - } + /// Represents a range of dates (combined with time of day) that has an upper and/or + /// lower bound. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class DateTimeRange { + private DateTime startDateTimeField; - /// Creates new CustomTargetingValue objects. The - /// following fields are required: - /// the custom targeting values to update - /// the updated custom targeting keys - public virtual Google.Api.Ads.AdManager.v201808.CustomTargetingValue[] createCustomTargetingValues(Google.Api.Ads.AdManager.v201808.CustomTargetingValue[] values) { - Wrappers.CustomTargetingService.createCustomTargetingValuesRequest inValue = new Wrappers.CustomTargetingService.createCustomTargetingValuesRequest(); - inValue.values = values; - Wrappers.CustomTargetingService.createCustomTargetingValuesResponse retVal = ((Google.Api.Ads.AdManager.v201808.CustomTargetingServiceInterface)(this)).createCustomTargetingValues(inValue); - return retVal.rval; - } + private DateTime endDateTimeField; - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201808.CustomTargetingServiceInterface.createCustomTargetingValuesAsync(Wrappers.CustomTargetingService.createCustomTargetingValuesRequest request) { - return base.Channel.createCustomTargetingValuesAsync(request); + /// 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.startDateTimeField; + } + set { + this.startDateTimeField = value; + } } - public virtual System.Threading.Tasks.Task createCustomTargetingValuesAsync(Google.Api.Ads.AdManager.v201808.CustomTargetingValue[] values) { - Wrappers.CustomTargetingService.createCustomTargetingValuesRequest inValue = new Wrappers.CustomTargetingService.createCustomTargetingValuesRequest(); - inValue.values = values; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201808.CustomTargetingServiceInterface)(this)).createCustomTargetingValuesAsync(inValue)).Result.rval); + /// 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 { + get { + return this.endDateTimeField; + } + set { + this.endDateTimeField = value; + } } + } - /// 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
- ///
a Publisher Query Language statement used to - /// filter a set of custom targeting keys - /// the custom targeting keys that match the given filter - public virtual Google.Api.Ads.AdManager.v201808.CustomTargetingKeyPage getCustomTargetingKeysByStatement(Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.getCustomTargetingKeysByStatement(filterStatement); - } - public virtual System.Threading.Tasks.Task getCustomTargetingKeysByStatementAsync(Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.getCustomTargetingKeysByStatementAsync(filterStatement); - } + /// Provides LineItem objects the ability to target or + /// exclude technologies. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class TechnologyTargeting { + private BandwidthGroupTargeting bandwidthGroupTargetingField; - /// 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 PropertyObject Property
id CustomTargetingValue#id
customTargetingKeyId CustomTargetingValue#customTargetingKeyId
name CustomTargetingValue#name
displayName CustomTargetingValue#displayName
matchType CustomTargetingValue#matchType
- ///
a Publisher Query Language statement used to - /// filter a set of custom targeting values - /// the custom targeting values that match the given filter - public virtual Google.Api.Ads.AdManager.v201808.CustomTargetingValuePage getCustomTargetingValuesByStatement(Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.getCustomTargetingValuesByStatement(filterStatement); - } + private BrowserTargeting browserTargetingField; - public virtual System.Threading.Tasks.Task getCustomTargetingValuesByStatementAsync(Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.getCustomTargetingValuesByStatementAsync(filterStatement); - } + private BrowserLanguageTargeting browserLanguageTargetingField; - /// Performs actions on CustomTargetingKey objects - /// that match the given Statement#query. - /// the action to perform - /// a Publisher Query Language statement used to - /// filter a set of custom targeting keys - /// the result of the action performed - public virtual Google.Api.Ads.AdManager.v201808.UpdateResult performCustomTargetingKeyAction(Google.Api.Ads.AdManager.v201808.CustomTargetingKeyAction customTargetingKeyAction, Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.performCustomTargetingKeyAction(customTargetingKeyAction, filterStatement); - } + private DeviceCapabilityTargeting deviceCapabilityTargetingField; - public virtual System.Threading.Tasks.Task performCustomTargetingKeyActionAsync(Google.Api.Ads.AdManager.v201808.CustomTargetingKeyAction customTargetingKeyAction, Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.performCustomTargetingKeyActionAsync(customTargetingKeyAction, filterStatement); - } + private DeviceCategoryTargeting deviceCategoryTargetingField; - /// Performs actions on CustomTargetingValue - /// objects that match the given Statement#query. - /// the action to perform - /// a Publisher Query Language statement used to - /// filter a set of ad units - /// the result of the action performed - public virtual Google.Api.Ads.AdManager.v201808.UpdateResult performCustomTargetingValueAction(Google.Api.Ads.AdManager.v201808.CustomTargetingValueAction customTargetingValueAction, Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.performCustomTargetingValueAction(customTargetingValueAction, filterStatement); - } + private DeviceManufacturerTargeting deviceManufacturerTargetingField; - public virtual System.Threading.Tasks.Task performCustomTargetingValueActionAsync(Google.Api.Ads.AdManager.v201808.CustomTargetingValueAction customTargetingValueAction, Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.performCustomTargetingValueActionAsync(customTargetingValueAction, filterStatement); - } + private MobileCarrierTargeting mobileCarrierTargetingField; - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.CustomTargetingService.updateCustomTargetingKeysResponse Google.Api.Ads.AdManager.v201808.CustomTargetingServiceInterface.updateCustomTargetingKeys(Wrappers.CustomTargetingService.updateCustomTargetingKeysRequest request) { - return base.Channel.updateCustomTargetingKeys(request); - } + private MobileDeviceTargeting mobileDeviceTargetingField; - /// Updates the specified CustomTargetingKey - /// objects. - /// the custom targeting keys to update - /// the updated custom targeting keys - public virtual Google.Api.Ads.AdManager.v201808.CustomTargetingKey[] updateCustomTargetingKeys(Google.Api.Ads.AdManager.v201808.CustomTargetingKey[] keys) { - Wrappers.CustomTargetingService.updateCustomTargetingKeysRequest inValue = new Wrappers.CustomTargetingService.updateCustomTargetingKeysRequest(); - inValue.keys = keys; - Wrappers.CustomTargetingService.updateCustomTargetingKeysResponse retVal = ((Google.Api.Ads.AdManager.v201808.CustomTargetingServiceInterface)(this)).updateCustomTargetingKeys(inValue); - return retVal.rval; - } + private MobileDeviceSubmodelTargeting mobileDeviceSubmodelTargetingField; - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201808.CustomTargetingServiceInterface.updateCustomTargetingKeysAsync(Wrappers.CustomTargetingService.updateCustomTargetingKeysRequest request) { - return base.Channel.updateCustomTargetingKeysAsync(request); - } + private OperatingSystemTargeting operatingSystemTargetingField; - public virtual System.Threading.Tasks.Task updateCustomTargetingKeysAsync(Google.Api.Ads.AdManager.v201808.CustomTargetingKey[] keys) { - Wrappers.CustomTargetingService.updateCustomTargetingKeysRequest inValue = new Wrappers.CustomTargetingService.updateCustomTargetingKeysRequest(); - inValue.keys = keys; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201808.CustomTargetingServiceInterface)(this)).updateCustomTargetingKeysAsync(inValue)).Result.rval); - } + private OperatingSystemVersionTargeting operatingSystemVersionTargetingField; - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.CustomTargetingService.updateCustomTargetingValuesResponse Google.Api.Ads.AdManager.v201808.CustomTargetingServiceInterface.updateCustomTargetingValues(Wrappers.CustomTargetingService.updateCustomTargetingValuesRequest request) { - return base.Channel.updateCustomTargetingValues(request); + /// The bandwidth groups being targeted by the LineItem. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public BandwidthGroupTargeting bandwidthGroupTargeting { + get { + return this.bandwidthGroupTargetingField; + } + set { + this.bandwidthGroupTargetingField = value; + } } - /// Updates the specified CustomTargetingValue - /// objects. - /// the custom targeting values to update - /// the updated custom targeting values - public virtual Google.Api.Ads.AdManager.v201808.CustomTargetingValue[] updateCustomTargetingValues(Google.Api.Ads.AdManager.v201808.CustomTargetingValue[] values) { - Wrappers.CustomTargetingService.updateCustomTargetingValuesRequest inValue = new Wrappers.CustomTargetingService.updateCustomTargetingValuesRequest(); - inValue.values = values; - Wrappers.CustomTargetingService.updateCustomTargetingValuesResponse retVal = ((Google.Api.Ads.AdManager.v201808.CustomTargetingServiceInterface)(this)).updateCustomTargetingValues(inValue); - return retVal.rval; + /// The browsers being targeted by the LineItem. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public BrowserTargeting browserTargeting { + get { + return this.browserTargetingField; + } + set { + this.browserTargetingField = value; + } } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201808.CustomTargetingServiceInterface.updateCustomTargetingValuesAsync(Wrappers.CustomTargetingService.updateCustomTargetingValuesRequest request) { - return base.Channel.updateCustomTargetingValuesAsync(request); + /// The languages of browsers being targeted by the LineItem. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public BrowserLanguageTargeting browserLanguageTargeting { + get { + return this.browserLanguageTargetingField; + } + set { + this.browserLanguageTargetingField = value; + } } - public virtual System.Threading.Tasks.Task updateCustomTargetingValuesAsync(Google.Api.Ads.AdManager.v201808.CustomTargetingValue[] values) { - Wrappers.CustomTargetingService.updateCustomTargetingValuesRequest inValue = new Wrappers.CustomTargetingService.updateCustomTargetingValuesRequest(); - inValue.values = values; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201808.CustomTargetingServiceInterface)(this)).updateCustomTargetingValuesAsync(inValue)).Result.rval); + /// The device capabilities being targeted by the LineItem. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 3)] + public DeviceCapabilityTargeting deviceCapabilityTargeting { + get { + return this.deviceCapabilityTargetingField; + } + set { + this.deviceCapabilityTargetingField = value; + } } - } - 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/v201808", IsWrapped = true)] - public partial class createCustomFieldOptionsRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("customFieldOptions")] - public Google.Api.Ads.AdManager.v201808.CustomFieldOption[] customFieldOptions; - /// Creates a new instance of the class. - public createCustomFieldOptionsRequest() { + /// The device categories being targeted by the LineItem. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 4)] + public DeviceCategoryTargeting deviceCategoryTargeting { + get { + return this.deviceCategoryTargetingField; } - - /// Creates a new instance of the class. - public createCustomFieldOptionsRequest(Google.Api.Ads.AdManager.v201808.CustomFieldOption[] customFieldOptions) { - this.customFieldOptions = customFieldOptions; + set { + this.deviceCategoryTargetingField = 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/v201808", IsWrapped = true)] - public partial class createCustomFieldOptionsResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v201808.CustomFieldOption[] rval; - - /// Creates a new instance of the class. - public createCustomFieldOptionsResponse() { - } - - /// Creates a new instance of the class. - public createCustomFieldOptionsResponse(Google.Api.Ads.AdManager.v201808.CustomFieldOption[] 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 = "createCustomFields", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201808", IsWrapped = true)] - public partial class createCustomFieldsRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("customFields")] - public Google.Api.Ads.AdManager.v201808.CustomField[] customFields; - - /// Creates a new instance of the - /// class. - public createCustomFieldsRequest() { - } - - /// Creates a new instance of the - /// class. - public createCustomFieldsRequest(Google.Api.Ads.AdManager.v201808.CustomField[] customFields) { - this.customFields = customFields; - } - } - - - [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/v201808", IsWrapped = true)] - public partial class createCustomFieldsResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v201808.CustomField[] rval; - - /// Creates a new instance of the - /// class. - public createCustomFieldsResponse() { - } - - /// Creates a new instance of the - /// class. - public createCustomFieldsResponse(Google.Api.Ads.AdManager.v201808.CustomField[] 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 = "updateCustomFieldOptions", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201808", IsWrapped = true)] - public partial class updateCustomFieldOptionsRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("customFieldOptions")] - public Google.Api.Ads.AdManager.v201808.CustomFieldOption[] customFieldOptions; - - /// Creates a new instance of the class. - public updateCustomFieldOptionsRequest() { - } - - /// Creates a new instance of the class. - public updateCustomFieldOptionsRequest(Google.Api.Ads.AdManager.v201808.CustomFieldOption[] customFieldOptions) { - this.customFieldOptions = customFieldOptions; - } - } - - - [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/v201808", IsWrapped = true)] - public partial class updateCustomFieldOptionsResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v201808.CustomFieldOption[] rval; - - /// Creates a new instance of the class. - public updateCustomFieldOptionsResponse() { - } - - /// Creates a new instance of the class. - public updateCustomFieldOptionsResponse(Google.Api.Ads.AdManager.v201808.CustomFieldOption[] 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 = "updateCustomFields", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201808", IsWrapped = true)] - public partial class updateCustomFieldsRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("customFields")] - public Google.Api.Ads.AdManager.v201808.CustomField[] customFields; - - /// Creates a new instance of the - /// class. - public updateCustomFieldsRequest() { - } - - /// Creates a new instance of the - /// class. - public updateCustomFieldsRequest(Google.Api.Ads.AdManager.v201808.CustomField[] customFields) { - this.customFields = customFields; - } - } - - - [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/v201808", IsWrapped = true)] - public partial class updateCustomFieldsResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v201808.CustomField[] rval; - - /// Creates a new instance of the - /// class. - public updateCustomFieldsResponse() { + /// The device manufacturers being targeted by the LineItem. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 5)] + public DeviceManufacturerTargeting deviceManufacturerTargeting { + get { + return this.deviceManufacturerTargetingField; } - - /// Creates a new instance of the - /// class. - public updateCustomFieldsResponse(Google.Api.Ads.AdManager.v201808.CustomField[] rval) { - this.rval = rval; + set { + this.deviceManufacturerTargetingField = value; } } - } - /// 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.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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. + /// The mobile carriers being targeted by the LineItem. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public long id { + [System.Xml.Serialization.XmlElementAttribute(Order = 6)] + public MobileCarrierTargeting mobileCarrierTargeting { get { - return this.idField; + return this.mobileCarrierTargetingField; } set { - this.idField = value; - this.idSpecified = true; + this.mobileCarrierTargetingField = value; } } - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool idSpecified { + /// The mobile devices being targeted by the LineItem. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 7)] + public MobileDeviceTargeting mobileDeviceTargeting { get { - return this.idFieldSpecified; + return this.mobileDeviceTargetingField; } set { - this.idFieldSpecified = value; + this.mobileDeviceTargetingField = value; } } - /// The id of the custom field this option belongs to. + /// The mobile device submodels being targeted by the LineItem. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public long customFieldId { + [System.Xml.Serialization.XmlElementAttribute(Order = 8)] + public MobileDeviceSubmodelTargeting mobileDeviceSubmodelTargeting { get { - return this.customFieldIdField; + return this.mobileDeviceSubmodelTargetingField; } set { - this.customFieldIdField = value; - this.customFieldIdSpecified = true; + this.mobileDeviceSubmodelTargetingField = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool customFieldIdSpecified { + /// The operating systems being targeted by the LineItem. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 9)] + public OperatingSystemTargeting operatingSystemTargeting { get { - return this.customFieldIdFieldSpecified; + return this.operatingSystemTargetingField; } set { - this.customFieldIdFieldSpecified = value; + this.operatingSystemTargetingField = value; } } - /// The display name of this option. + /// The operating system versions being targeted by the LineItem. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public string displayName { + [System.Xml.Serialization.XmlElementAttribute(Order = 10)] + public OperatingSystemVersionTargeting operatingSystemVersionTargeting { get { - return this.displayNameField; + return this.operatingSystemVersionTargetingField; } set { - this.displayNameField = value; + this.operatingSystemVersionTargetingField = value; } } } - /// Errors specific to editing custom fields + /// Represents bandwidth groups that are being targeted or excluded by the LineItem. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class CustomFieldError : ApiError { - private CustomFieldErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class BandwidthGroupTargeting { + private bool isTargetedField; - private bool reasonFieldSpecified; + private bool isTargetedFieldSpecified; - /// The error reason represented by an enum. + 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 = 0)] - public CustomFieldErrorReason 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.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CustomFieldError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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. + /// The bandwidth groups that are being targeted or excluded by the LineItem. /// - UNKNOWN = 1, - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", ConfigurationName = "Google.Api.Ads.AdManager.v201808.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.v201808.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.v201808.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.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v201808.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.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v201808.CustomFieldPage getCustomFieldsByStatement(Google.Api.Ads.AdManager.v201808.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getCustomFieldsByStatementAsync(Google.Api.Ads.AdManager.v201808.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v201808.UpdateResult performCustomFieldAction(Google.Api.Ads.AdManager.v201808.CustomFieldAction customFieldAction, Google.Api.Ads.AdManager.v201808.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task performCustomFieldActionAsync(Google.Api.Ads.AdManager.v201808.CustomFieldAction customFieldAction, Google.Api.Ads.AdManager.v201808.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.v201808.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.v201808.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); + [System.Xml.Serialization.XmlElementAttribute("bandwidthGroups", Order = 1)] + public Technology[] bandwidthGroups { + get { + return this.bandwidthGroupsField; + } + set { + this.bandwidthGroupsField = value; + } + } } - /// An additional, user-created field on an entity. + /// Represents a technology entity that can be targeted. /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(DropDownCustomField))] + [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.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class CustomField { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class Technology { 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. + /// The unique ID of the Technology. This value is required for all + /// forms of TechnologyTargeting. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] public long id { @@ -16850,8 +17609,8 @@ public bool idSpecified { } } - /// Name of the CustomField. This is value is required to create a - /// custom field. The max length is 127 characters. + /// 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 { @@ -16862,10118 +17621,9434 @@ public string name { this.nameField = value; } } + } - /// A description of the custom field. This value is optional. The maximum length is - /// 511 characters - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public string description { - get { - return this.descriptionField; - } - set { - this.descriptionField = value; - } - } - /// Specifies whether or not the custom fields is active. This attribute is - /// read-only. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public bool isActive { - get { - return this.isActiveField; - } - set { - this.isActiveField = value; - this.isActiveSpecified = true; - } - } + /// Represents a specific version of an operating system. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class OperatingSystemVersion : Technology { + private int majorVersionField; - /// 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; - } - } + private bool majorVersionFieldSpecified; - /// The type of entity that this custom field is associated with. This attribute is - /// read-only if there exists a CustomFieldValue for - /// this field. + private int minorVersionField; + + private bool minorVersionFieldSpecified; + + private int microVersionField; + + private bool microVersionFieldSpecified; + + /// The operating system major version. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public CustomFieldEntityType entityType { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public int majorVersion { get { - return this.entityTypeField; + return this.majorVersionField; } set { - this.entityTypeField = value; - this.entityTypeSpecified = true; + this.majorVersionField = value; + this.majorVersionSpecified = 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 entityTypeSpecified { + public bool majorVersionSpecified { get { - return this.entityTypeFieldSpecified; + return this.majorVersionFieldSpecified; } set { - this.entityTypeFieldSpecified = value; + this.majorVersionFieldSpecified = value; } } - /// The type of data this custom field contains. This attribute is read-only if - /// there exists a CustomFieldValue for this field. + /// The operating system minor version. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 5)] - public CustomFieldDataType dataType { + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public int minorVersion { get { - return this.dataTypeField; + return this.minorVersionField; } set { - this.dataTypeField = value; - this.dataTypeSpecified = true; + this.minorVersionField = value; + this.minorVersionSpecified = 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 dataTypeSpecified { + public bool minorVersionSpecified { get { - return this.dataTypeFieldSpecified; + return this.minorVersionFieldSpecified; } set { - this.dataTypeFieldSpecified = value; + this.minorVersionFieldSpecified = value; } } - /// How visible/accessible this field is in the UI. + /// The operating system micro version. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 6)] - public CustomFieldVisibility visibility { + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public int microVersion { get { - return this.visibilityField; + return this.microVersionField; } set { - this.visibilityField = value; - this.visibilitySpecified = true; + this.microVersionField = value; + this.microVersionSpecified = 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 microVersionSpecified { get { - return this.visibilityFieldSpecified; + return this.microVersionFieldSpecified; } set { - this.visibilityFieldSpecified = value; + this.microVersionFieldSpecified = value; } } } - /// Entity types recognized by custom fields - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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. + /// Represents an Operating System, such as Linux, Mac OS or Windows. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class DropDownCustomField : CustomField { - private CustomFieldOption[] optionsField; - - /// The options allowed for this custom field. This is read only. - /// - [System.Xml.Serialization.XmlElementAttribute("options", Order = 0)] - public CustomFieldOption[] options { - get { - return this.optionsField; - } - set { - this.optionsField = value; - } - } + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class OperatingSystem : Technology { } - /// Captures a page of CustomField objects. + /// Represents a mobile device submodel. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class CustomFieldPage { - private int totalResultSetSizeField; - - private bool totalResultSetSizeFieldSpecified; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class MobileDeviceSubmodel : Technology { + private long mobileDeviceCriterionIdField; - private int startIndexField; + private bool mobileDeviceCriterionIdFieldSpecified; - private bool startIndexFieldSpecified; + private long deviceManufacturerCriterionIdField; - private CustomField[] resultsField; + private bool deviceManufacturerCriterionIdFieldSpecified; - /// The size of the total result set to which this page belongs. + /// The mobile device id. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public int totalResultSetSize { + public long mobileDeviceCriterionId { get { - return this.totalResultSetSizeField; + return this.mobileDeviceCriterionIdField; } set { - this.totalResultSetSizeField = value; - this.totalResultSetSizeSpecified = true; + this.mobileDeviceCriterionIdField = value; + this.mobileDeviceCriterionIdSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="mobileDeviceCriterionId" />, false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool totalResultSetSizeSpecified { + public bool mobileDeviceCriterionIdSpecified { get { - return this.totalResultSetSizeFieldSpecified; + return this.mobileDeviceCriterionIdFieldSpecified; } set { - this.totalResultSetSizeFieldSpecified = value; + this.mobileDeviceCriterionIdFieldSpecified = value; } } - /// The absolute index in the total result set on which this page begins. + /// The device manufacturer id. /// [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public int startIndex { + public long deviceManufacturerCriterionId { get { - return this.startIndexField; + return this.deviceManufacturerCriterionIdField; } set { - this.startIndexField = value; - this.startIndexSpecified = true; + this.deviceManufacturerCriterionIdField = value; + this.deviceManufacturerCriterionIdSpecified = 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 deviceManufacturerCriterionIdSpecified { get { - return this.startIndexFieldSpecified; + return this.deviceManufacturerCriterionIdFieldSpecified; } set { - this.startIndexFieldSpecified = value; + this.deviceManufacturerCriterionIdFieldSpecified = value; } } + } - /// The collection of custom fields contained within this page. + + /// Represents a Mobile Device. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class MobileDevice : Technology { + private long manufacturerCriterionIdField; + + private bool manufacturerCriterionIdFieldSpecified; + + /// Manufacturer Id. /// - [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] - public CustomField[] results { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public long manufacturerCriterionId { get { - return this.resultsField; + return this.manufacturerCriterionIdField; } set { - this.resultsField = value; + this.manufacturerCriterionIdField = value; + this.manufacturerCriterionIdSpecified = true; + } + } + + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool manufacturerCriterionIdSpecified { + get { + return this.manufacturerCriterionIdFieldSpecified; + } + set { + this.manufacturerCriterionIdFieldSpecified = value; } } } - /// Represents the actions that can be performed on CustomField objects. + /// 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.Xml.Serialization.XmlIncludeAttribute(typeof(DeactivateCustomFields))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ActivateCustomFields))] [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class CustomFieldAction { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class MobileCarrier : Technology { } - /// The action used for deactivating CustomField objects. + /// Represents a mobile device's manufacturer. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class DeactivateCustomFields : CustomFieldAction { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class DeviceManufacturer : Technology { } - /// The action used for activating CustomField objects. + /// Represents the category of a device. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ActivateCustomFields : CustomFieldAction { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class DeviceCategory : Technology { } - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public interface CustomFieldServiceInterfaceChannel : Google.Api.Ads.AdManager.v201808.CustomFieldServiceInterface, System.ServiceModel.IClientChannel - { + /// Represents a capability of a physical device. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class DeviceCapability : Technology { } - /// Provides methods for the creation and management of CustomField objects. + /// Represents a Browser's language. /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] [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() { - } + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class BrowserLanguage : Technology { + } - /// Creates a new instance of the class. - /// - public CustomFieldService(string endpointConfigurationName) - : base(endpointConfigurationName) { - } - /// Creates a new instance of the class. - /// - public CustomFieldService(string endpointConfigurationName, string remoteAddress) - : base(endpointConfigurationName, remoteAddress) { - } + /// Represents an internet browser. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class Browser : Technology { + private string majorVersionField; - /// Creates a new instance of the class. - /// - public CustomFieldService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) - : base(endpointConfigurationName, remoteAddress) { - } + private string minorVersionField; - /// Creates a new instance of the class. + /// Browser major version. /// - public CustomFieldService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) - : base(binding, remoteAddress) { - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.CustomFieldService.createCustomFieldOptionsResponse Google.Api.Ads.AdManager.v201808.CustomFieldServiceInterface.createCustomFieldOptions(Wrappers.CustomFieldService.createCustomFieldOptionsRequest request) { - return base.Channel.createCustomFieldOptions(request); - } - - /// Creates new CustomFieldOption objects. The - /// following fields are required: - /// the custom fields to create - /// the created custom field options with their IDs filled in - public virtual Google.Api.Ads.AdManager.v201808.CustomFieldOption[] createCustomFieldOptions(Google.Api.Ads.AdManager.v201808.CustomFieldOption[] customFieldOptions) { - Wrappers.CustomFieldService.createCustomFieldOptionsRequest inValue = new Wrappers.CustomFieldService.createCustomFieldOptionsRequest(); - inValue.customFieldOptions = customFieldOptions; - Wrappers.CustomFieldService.createCustomFieldOptionsResponse retVal = ((Google.Api.Ads.AdManager.v201808.CustomFieldServiceInterface)(this)).createCustomFieldOptions(inValue); - return retVal.rval; - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201808.CustomFieldServiceInterface.createCustomFieldOptionsAsync(Wrappers.CustomFieldService.createCustomFieldOptionsRequest request) { - return base.Channel.createCustomFieldOptionsAsync(request); - } - - public virtual System.Threading.Tasks.Task createCustomFieldOptionsAsync(Google.Api.Ads.AdManager.v201808.CustomFieldOption[] customFieldOptions) { - Wrappers.CustomFieldService.createCustomFieldOptionsRequest inValue = new Wrappers.CustomFieldService.createCustomFieldOptionsRequest(); - inValue.customFieldOptions = customFieldOptions; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201808.CustomFieldServiceInterface)(this)).createCustomFieldOptionsAsync(inValue)).Result.rval); - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.CustomFieldService.createCustomFieldsResponse Google.Api.Ads.AdManager.v201808.CustomFieldServiceInterface.createCustomFields(Wrappers.CustomFieldService.createCustomFieldsRequest request) { - return base.Channel.createCustomFields(request); - } - - /// Creates new CustomField objects. The following fields - /// are required: - /// the custom fields to create - /// the created custom fields with their IDs filled in - public virtual Google.Api.Ads.AdManager.v201808.CustomField[] createCustomFields(Google.Api.Ads.AdManager.v201808.CustomField[] customFields) { - Wrappers.CustomFieldService.createCustomFieldsRequest inValue = new Wrappers.CustomFieldService.createCustomFieldsRequest(); - inValue.customFields = customFields; - Wrappers.CustomFieldService.createCustomFieldsResponse retVal = ((Google.Api.Ads.AdManager.v201808.CustomFieldServiceInterface)(this)).createCustomFields(inValue); - return retVal.rval; - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201808.CustomFieldServiceInterface.createCustomFieldsAsync(Wrappers.CustomFieldService.createCustomFieldsRequest request) { - return base.Channel.createCustomFieldsAsync(request); - } - - public virtual System.Threading.Tasks.Task createCustomFieldsAsync(Google.Api.Ads.AdManager.v201808.CustomField[] customFields) { - Wrappers.CustomFieldService.createCustomFieldsRequest inValue = new Wrappers.CustomFieldService.createCustomFieldsRequest(); - inValue.customFields = customFields; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201808.CustomFieldServiceInterface)(this)).createCustomFieldsAsync(inValue)).Result.rval); - } - - /// Returns the CustomFieldOption uniquely - /// identified by the given ID. - /// the ID of the custom field option, which must - /// already exist - /// the CustomFieldOption uniquely identified by the given - /// ID - public virtual Google.Api.Ads.AdManager.v201808.CustomFieldOption getCustomFieldOption(long customFieldOptionId) { - return base.Channel.getCustomFieldOption(customFieldOptionId); - } - - public virtual System.Threading.Tasks.Task getCustomFieldOptionAsync(long customFieldOptionId) { - return base.Channel.getCustomFieldOptionAsync(customFieldOptionId); - } - - /// 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
- ///
a Publisher Query Language statement used to - /// filter a set of custom fields. - /// the custom fields that match the given filter - public virtual Google.Api.Ads.AdManager.v201808.CustomFieldPage getCustomFieldsByStatement(Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.getCustomFieldsByStatement(filterStatement); - } - - public virtual System.Threading.Tasks.Task getCustomFieldsByStatementAsync(Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.getCustomFieldsByStatementAsync(filterStatement); - } - - /// Performs actions on CustomField objects that match the - /// given Statement#query. - /// the action to perform - /// a Publisher Query Language statement used to - /// filter a set of custom fields - /// the result of the action performed - public virtual Google.Api.Ads.AdManager.v201808.UpdateResult performCustomFieldAction(Google.Api.Ads.AdManager.v201808.CustomFieldAction customFieldAction, Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.performCustomFieldAction(customFieldAction, filterStatement); - } - - public virtual System.Threading.Tasks.Task performCustomFieldActionAsync(Google.Api.Ads.AdManager.v201808.CustomFieldAction customFieldAction, Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.performCustomFieldActionAsync(customFieldAction, filterStatement); - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.CustomFieldService.updateCustomFieldOptionsResponse Google.Api.Ads.AdManager.v201808.CustomFieldServiceInterface.updateCustomFieldOptions(Wrappers.CustomFieldService.updateCustomFieldOptionsRequest request) { - return base.Channel.updateCustomFieldOptions(request); - } - - /// Updates the specified CustomFieldOption objects. - /// the custom field options to update - /// the updated custom field options - public virtual Google.Api.Ads.AdManager.v201808.CustomFieldOption[] updateCustomFieldOptions(Google.Api.Ads.AdManager.v201808.CustomFieldOption[] customFieldOptions) { - Wrappers.CustomFieldService.updateCustomFieldOptionsRequest inValue = new Wrappers.CustomFieldService.updateCustomFieldOptionsRequest(); - inValue.customFieldOptions = customFieldOptions; - Wrappers.CustomFieldService.updateCustomFieldOptionsResponse retVal = ((Google.Api.Ads.AdManager.v201808.CustomFieldServiceInterface)(this)).updateCustomFieldOptions(inValue); - return retVal.rval; - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201808.CustomFieldServiceInterface.updateCustomFieldOptionsAsync(Wrappers.CustomFieldService.updateCustomFieldOptionsRequest request) { - return base.Channel.updateCustomFieldOptionsAsync(request); - } - - public virtual System.Threading.Tasks.Task updateCustomFieldOptionsAsync(Google.Api.Ads.AdManager.v201808.CustomFieldOption[] customFieldOptions) { - Wrappers.CustomFieldService.updateCustomFieldOptionsRequest inValue = new Wrappers.CustomFieldService.updateCustomFieldOptionsRequest(); - inValue.customFieldOptions = customFieldOptions; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201808.CustomFieldServiceInterface)(this)).updateCustomFieldOptionsAsync(inValue)).Result.rval); - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.CustomFieldService.updateCustomFieldsResponse Google.Api.Ads.AdManager.v201808.CustomFieldServiceInterface.updateCustomFields(Wrappers.CustomFieldService.updateCustomFieldsRequest request) { - return base.Channel.updateCustomFields(request); + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public string majorVersion { + get { + return this.majorVersionField; + } + set { + this.majorVersionField = value; + } } - /// Updates the specified CustomField objects. - /// the custom fields to update - /// the updated custom fields - public virtual Google.Api.Ads.AdManager.v201808.CustomField[] updateCustomFields(Google.Api.Ads.AdManager.v201808.CustomField[] customFields) { - Wrappers.CustomFieldService.updateCustomFieldsRequest inValue = new Wrappers.CustomFieldService.updateCustomFieldsRequest(); - inValue.customFields = customFields; - Wrappers.CustomFieldService.updateCustomFieldsResponse retVal = ((Google.Api.Ads.AdManager.v201808.CustomFieldServiceInterface)(this)).updateCustomFields(inValue); - return retVal.rval; + /// Browser minor version. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public string minorVersion { + get { + return this.minorVersionField; + } + set { + this.minorVersionField = value; + } } + } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201808.CustomFieldServiceInterface.updateCustomFieldsAsync(Wrappers.CustomFieldService.updateCustomFieldsRequest request) { - return base.Channel.updateCustomFieldsAsync(request); - } - public virtual System.Threading.Tasks.Task updateCustomFieldsAsync(Google.Api.Ads.AdManager.v201808.CustomField[] customFields) { - Wrappers.CustomFieldService.updateCustomFieldsRequest inValue = new Wrappers.CustomFieldService.updateCustomFieldsRequest(); - inValue.customFields = customFields; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201808.CustomFieldServiceInterface)(this)).updateCustomFieldsAsync(inValue)).Result.rval); - } + /// 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.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class BandwidthGroup : Technology { } - namespace Wrappers.ExchangeRateService - { - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "createExchangeRates", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201808", IsWrapped = true)] - public partial class createExchangeRatesRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("exchangeRates")] - public Google.Api.Ads.AdManager.v201808.ExchangeRate[] exchangeRates; - /// Creates a new instance of the - /// class. - public createExchangeRatesRequest() { - } - /// Creates a new instance of the - /// class. - public createExchangeRatesRequest(Google.Api.Ads.AdManager.v201808.ExchangeRate[] exchangeRates) { - this.exchangeRates = exchangeRates; - } - } + /// Represents browsers that are being targeted or excluded by the LineItem. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class BrowserTargeting { + private bool isTargetedField; + private bool isTargetedFieldSpecified; - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "createExchangeRatesResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201808", IsWrapped = true)] - public partial class createExchangeRatesResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v201808.ExchangeRate[] rval; + private Technology[] browsersField; - /// Creates a new instance of the class. - public createExchangeRatesResponse() { + /// 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.isTargetedField; } - - /// Creates a new instance of the class. - public createExchangeRatesResponse(Google.Api.Ads.AdManager.v201808.ExchangeRate[] rval) { - this.rval = rval; + set { + this.isTargetedField = value; + this.isTargetedSpecified = 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 = "updateExchangeRates", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201808", IsWrapped = true)] - public partial class updateExchangeRatesRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("exchangeRates")] - public Google.Api.Ads.AdManager.v201808.ExchangeRate[] exchangeRates; - - /// Creates a new instance of the - /// class. - public updateExchangeRatesRequest() { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool isTargetedSpecified { + get { + return this.isTargetedFieldSpecified; } - - /// Creates a new instance of the - /// class. - public updateExchangeRatesRequest(Google.Api.Ads.AdManager.v201808.ExchangeRate[] exchangeRates) { - this.exchangeRates = exchangeRates; + set { + this.isTargetedFieldSpecified = 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 = "updateExchangeRatesResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201808", IsWrapped = true)] - public partial class updateExchangeRatesResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v201808.ExchangeRate[] rval; - - /// Creates a new instance of the class. - public updateExchangeRatesResponse() { + /// Browsers that are being targeted or excluded by the LineItem. + /// + [System.Xml.Serialization.XmlElementAttribute("browsers", Order = 1)] + public Technology[] browsers { + get { + return this.browsersField; } - - /// Creates a new instance of the class. - public updateExchangeRatesResponse(Google.Api.Ads.AdManager.v201808.ExchangeRate[] rval) { - this.rval = rval; + set { + this.browsersField = value; } } } - /// An ExchangeRate represents a currency which is one of the Network#secondaryCurrencyCodes, and - /// the latest exchange rate between this currency and Network#currencyCode. + + + /// Represents browser languages that are being targeted or excluded by the LineItem. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ExchangeRate { - private long idField; - - private bool idFieldSpecified; - - private string currencyCodeField; - - private ExchangeRateRefreshRate refreshRateField; - - private bool refreshRateFieldSpecified; - - private ExchangeRateDirection directionField; - - private bool directionFieldSpecified; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class BrowserLanguageTargeting { + private bool isTargetedField; - private long exchangeRateField; + private bool isTargetedFieldSpecified; - private bool exchangeRateFieldSpecified; + private Technology[] browserLanguagesField; - /// The ID of the ExchangeRate. This attribute is readonly and is - /// assigned by Google when an exchange rate is created. + /// Indicates whether browsers languages should be targeted or excluded. This + /// attribute is optional and defaults to true. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public long id { + public bool isTargeted { get { - return this.idField; + return this.isTargetedField; } set { - this.idField = value; - this.idSpecified = 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 idSpecified { + public bool isTargetedSpecified { get { - return this.idFieldSpecified; + return this.isTargetedFieldSpecified; } set { - this.idFieldSpecified = value; + this.isTargetedFieldSpecified = value; } } - /// The currency code that the #exchangeRate is related - /// to. The #exchangeRate is between #currencyCode and Network#currencyCode. This attribute is required - /// for creation and then is readonly. + /// Browser languages that are being targeted or excluded by the LineItem. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public string currencyCode { + [System.Xml.Serialization.XmlElementAttribute("browserLanguages", Order = 1)] + public Technology[] browserLanguages { get { - return this.currencyCodeField; + return this.browserLanguagesField; } set { - this.currencyCodeField = value; + this.browserLanguagesField = value; } } + } - /// The refresh rate at which the exchange rate is updated. This attribute is - /// required. + + /// Represents device capabilities that are being targeted or excluded by the LineItem. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class DeviceCapabilityTargeting { + private Technology[] targetedDeviceCapabilitiesField; + + private Technology[] excludedDeviceCapabilitiesField; + + /// Device capabilities that are being targeted by the LineItem. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public ExchangeRateRefreshRate refreshRate { + [System.Xml.Serialization.XmlElementAttribute("targetedDeviceCapabilities", Order = 0)] + public Technology[] targetedDeviceCapabilities { get { - return this.refreshRateField; + return this.targetedDeviceCapabilitiesField; } set { - this.refreshRateField = value; - this.refreshRateSpecified = true; + this.targetedDeviceCapabilitiesField = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool refreshRateSpecified { + /// Device capabilities that are being excluded by the LineItem. + /// + [System.Xml.Serialization.XmlElementAttribute("excludedDeviceCapabilities", Order = 1)] + public Technology[] excludedDeviceCapabilities { get { - return this.refreshRateFieldSpecified; + return this.excludedDeviceCapabilitiesField; } set { - this.refreshRateFieldSpecified = value; + this.excludedDeviceCapabilitiesField = value; } } + } - /// The direction that the #exchangeRate is in. It - /// determines whether the #exchangeRate is from #currencyCode to Network#currencyCode, or from Network#currencyCode to #currencyCode. This attribute is required. + + /// Represents device categories that are being targeted or excluded by the LineItem. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class DeviceCategoryTargeting { + private Technology[] targetedDeviceCategoriesField; + + private Technology[] excludedDeviceCategoriesField; + + /// Device categories that are being targeted by the LineItem. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public ExchangeRateDirection direction { + [System.Xml.Serialization.XmlElementAttribute("targetedDeviceCategories", Order = 0)] + public Technology[] targetedDeviceCategories { get { - return this.directionField; + return this.targetedDeviceCategoriesField; } set { - this.directionField = value; - this.directionSpecified = true; + this.targetedDeviceCategoriesField = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool directionSpecified { + /// Device categories that are being excluded by the LineItem. + /// + [System.Xml.Serialization.XmlElementAttribute("excludedDeviceCategories", Order = 1)] + public Technology[] excludedDeviceCategories { get { - return this.directionFieldSpecified; + return this.excludedDeviceCategoriesField; } set { - this.directionFieldSpecified = value; + this.excludedDeviceCategoriesField = value; } } + } + - /// The latest exchange rate at the #refreshRate and in - /// the #direction. The value is stored as the exchange - /// rate times 10,000,000,000 truncated to a long. When the #refreshRate is ExchangeRateRefreshRate#FIXED, this - /// attribute is required. When it is not, this attribute is readonly and is - /// assigned by Google with the exchange rate for the latest time period. + /// Represents device manufacturer that are being targeted or excluded by the LineItem. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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 = 4)] - public long exchangeRate { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public bool isTargeted { get { - return this.exchangeRateField; + return this.isTargetedField; } set { - this.exchangeRateField = value; - this.exchangeRateSpecified = 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 exchangeRateSpecified { + public bool isTargetedSpecified { get { - return this.exchangeRateFieldSpecified; + return this.isTargetedFieldSpecified; } set { - this.exchangeRateFieldSpecified = value; + this.isTargetedFieldSpecified = value; + } + } + + /// Device manufacturers that are being targeted or excluded by the LineItem. + /// + [System.Xml.Serialization.XmlElementAttribute("deviceManufacturers", Order = 1)] + public Technology[] deviceManufacturers { + get { + return this.deviceManufacturersField; + } + set { + this.deviceManufacturersField = value; } } } - /// Determines at which rate the exchange rate is refreshed. + /// Represents mobile carriers that are being targeted or excluded by the LineItem. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum ExchangeRateRefreshRate { - /// The exchange rate is input manually and not refreshed. - /// - FIXED = 0, - /// The exchange rate will be updated automatically by Google every day using the - /// latest day's rate. - /// - DAILY = 1, - /// The exchange rate will be updated automatically by Google every month using the - /// latest month's rate. + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class MobileCarrierTargeting { + private bool isTargetedField; + + private bool isTargetedFieldSpecified; + + private Technology[] mobileCarriersField; + + /// Indicates whether mobile carriers should be targeted or excluded. This attribute + /// is optional and defaults to true. /// - MONTHLY = 2, - /// The value returned if the actual value is not exposed by the requested API - /// version. + [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 { + get { + return this.isTargetedFieldSpecified; + } + set { + this.isTargetedFieldSpecified = value; + } + } + + /// Mobile carriers that are being targeted or excluded by the LineItem. /// - UNKNOWN = 3, + [System.Xml.Serialization.XmlElementAttribute("mobileCarriers", Order = 1)] + public Technology[] mobileCarriers { + get { + return this.mobileCarriersField; + } + set { + this.mobileCarriersField = value; + } + } } - /// Determines which direction (from which currency to which currency) the exchange - /// rate is in. + /// Represents mobile devices that are being targeted or excluded by the LineItem. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum ExchangeRateDirection { - /// The exchange rate is from ExchangeRate#currencyCode to Network#currencyCode. - /// - TO_NETWORK = 0, - /// The exchange rate is from Network#currencyCode to ExchangeRate#currencyCode. + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class MobileDeviceTargeting { + private Technology[] targetedMobileDevicesField; + + private Technology[] excludedMobileDevicesField; + + /// Mobile devices that are being targeted by the LineItem. /// - FROM_NETWORK = 1, - /// The value returned if the actual value is not exposed by the requested API - /// version. + [System.Xml.Serialization.XmlElementAttribute("targetedMobileDevices", Order = 0)] + public Technology[] targetedMobileDevices { + get { + return this.targetedMobileDevicesField; + } + set { + this.targetedMobileDevicesField = value; + } + } + + /// Mobile devices that are being excluded by the LineItem. /// - UNKNOWN = 2, + [System.Xml.Serialization.XmlElementAttribute("excludedMobileDevices", Order = 1)] + public Technology[] excludedMobileDevices { + get { + return this.excludedMobileDevicesField; + } + set { + this.excludedMobileDevicesField = value; + } + } } - /// Lists all errors associated with ExchangeRate - /// objects. + /// Represents mobile devices that are being targeted or excluded by the LineItem. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ExchangeRateError : ApiError { - private ExchangeRateErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class MobileDeviceSubmodelTargeting { + private Technology[] targetedMobileDeviceSubmodelsField; - private bool reasonFieldSpecified; + private Technology[] excludedMobileDeviceSubmodelsField; - /// The error reason represented by an enum. + /// Mobile device submodels that are being targeted by the LineItem. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public ExchangeRateErrorReason reason { + [System.Xml.Serialization.XmlElementAttribute("targetedMobileDeviceSubmodels", Order = 0)] + public Technology[] targetedMobileDeviceSubmodels { get { - return this.reasonField; + return this.targetedMobileDeviceSubmodelsField; } set { - this.reasonField = value; - this.reasonSpecified = true; + this.targetedMobileDeviceSubmodelsField = value; } } - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { + /// Mobile device submodels that are being excluded by the LineItem. + /// + [System.Xml.Serialization.XmlElementAttribute("excludedMobileDeviceSubmodels", Order = 1)] + public Technology[] excludedMobileDeviceSubmodels { get { - return this.reasonFieldSpecified; + return this.excludedMobileDeviceSubmodelsField; } set { - this.reasonFieldSpecified = value; + this.excludedMobileDeviceSubmodelsField = value; } } } - /// The reasons for the target error. + /// Represents operating systems that are being targeted or excluded by the LineItem. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ExchangeRateError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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 exchange rate cannot be deleted as it is still being used by active rate - /// cards. - /// - CANNOT_DELETE_EXCHANGE_RATE_WITH_ACTIVE_RATE_CARDS = 6, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 5, - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", ConfigurationName = "Google.Api.Ads.AdManager.v201808.ExchangeRateServiceInterface")] - public interface ExchangeRateServiceInterface - { - // 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.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Wrappers.ExchangeRateService.createExchangeRatesResponse createExchangeRates(Wrappers.ExchangeRateService.createExchangeRatesRequest request); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task createExchangeRatesAsync(Wrappers.ExchangeRateService.createExchangeRatesRequest request); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v201808.ExchangeRatePage getExchangeRatesByStatement(Google.Api.Ads.AdManager.v201808.Statement filterStatement); + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class OperatingSystemTargeting { + private bool isTargetedField; - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getExchangeRatesByStatementAsync(Google.Api.Ads.AdManager.v201808.Statement filterStatement); + private bool isTargetedFieldSpecified; - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v201808.UpdateResult performExchangeRateAction(Google.Api.Ads.AdManager.v201808.ExchangeRateAction exchangeRateAction, Google.Api.Ads.AdManager.v201808.Statement filterStatement); + private Technology[] operatingSystemsField; - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task performExchangeRateActionAsync(Google.Api.Ads.AdManager.v201808.ExchangeRateAction exchangeRateAction, Google.Api.Ads.AdManager.v201808.Statement filterStatement); + /// Indicates whether operating systems 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.isTargetedField; + } + set { + this.isTargetedField = value; + this.isTargetedSpecified = 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.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Wrappers.ExchangeRateService.updateExchangeRatesResponse updateExchangeRates(Wrappers.ExchangeRateService.updateExchangeRatesRequest request); + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool isTargetedSpecified { + get { + return this.isTargetedFieldSpecified; + } + set { + this.isTargetedFieldSpecified = value; + } + } - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task updateExchangeRatesAsync(Wrappers.ExchangeRateService.updateExchangeRatesRequest request); + /// Operating systems that are being targeted or excluded by the LineItem. + /// + [System.Xml.Serialization.XmlElementAttribute("operatingSystems", Order = 1)] + public Technology[] operatingSystems { + get { + return this.operatingSystemsField; + } + set { + this.operatingSystemsField = value; + } + } } - /// Captures a page of ExchangeRate objects. + /// Represents operating system versions that are being targeted or excluded by the + /// LineItem. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ExchangeRatePage { - private ExchangeRate[] resultsField; - - private int startIndexField; - - private bool startIndexFieldSpecified; - - private int totalResultSetSizeField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class OperatingSystemVersionTargeting { + private Technology[] targetedOperatingSystemVersionsField; - private bool totalResultSetSizeFieldSpecified; + private Technology[] excludedOperatingSystemVersionsField; - /// The collection of exchange rates contained within this page. + /// Operating system versions that are being targeted by the LineItem. /// - [System.Xml.Serialization.XmlElementAttribute("results", Order = 0)] - public ExchangeRate[] results { + [System.Xml.Serialization.XmlElementAttribute("targetedOperatingSystemVersions", Order = 0)] + public Technology[] targetedOperatingSystemVersions { get { - return this.resultsField; + return this.targetedOperatingSystemVersionsField; } set { - this.resultsField = value; + this.targetedOperatingSystemVersionsField = value; } } - /// The absolute index in the total result set on which this page begins. + /// Operating system versions that are being excluded by the LineItem. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public int startIndex { + [System.Xml.Serialization.XmlElementAttribute("excludedOperatingSystemVersions", Order = 1)] + public Technology[] excludedOperatingSystemVersions { get { - return this.startIndexField; + return this.excludedOperatingSystemVersionsField; } set { - this.startIndexField = value; - this.startIndexSpecified = true; + this.excludedOperatingSystemVersionsField = value; } } + } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool startIndexSpecified { + + /// 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.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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 { get { - return this.startIndexFieldSpecified; + return this.logicalOperatorField; } set { - this.startIndexFieldSpecified = value; + this.logicalOperatorField = value; + this.logicalOperatorSpecified = true; } } - /// The size of the total result set to which this page belongs. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public int totalResultSetSize { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool logicalOperatorSpecified { get { - return this.totalResultSetSizeField; + return this.logicalOperatorFieldSpecified; } set { - this.totalResultSetSizeField = value; - this.totalResultSetSizeSpecified = true; + this.logicalOperatorFieldSpecified = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool totalResultSetSizeSpecified { + /// The custom criteria. This attribute is required. + /// + [System.Xml.Serialization.XmlElementAttribute("children", Order = 1)] + public CustomCriteriaNode[] children { get { - return this.totalResultSetSizeFieldSpecified; + return this.childrenField; } set { - this.totalResultSetSizeFieldSpecified = value; + this.childrenField = value; } } } - /// Represents the actions that can be performed on ExchangeRate objects. + /// Specifies the available logical operators. /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(DeleteExchangeRates))] [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public abstract partial class ExchangeRateAction { + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CustomCriteriaSet.LogicalOperator", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum CustomCriteriaSetLogicalOperator { + AND = 0, + OR = 1, } - /// The action used to delete ExchangeRate objects. + /// 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.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class DeleteExchangeRates : ExchangeRateAction { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public abstract partial class CustomCriteriaNode { } - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public interface ExchangeRateServiceInterfaceChannel : Google.Api.Ads.AdManager.v201808.ExchangeRateServiceInterface, System.ServiceModel.IClientChannel - { + /// 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.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public abstract partial class CustomCriteriaLeaf : CustomCriteriaNode { } - /// Provides methods for adding, updating and retrieving ExchangeRate objects. + /// An AudienceSegmentCriteria object is used + /// to target AudienceSegment objects. /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public partial class ExchangeRateService : AdManagerSoapClient, IExchangeRateService { - /// Creates a new instance of the class. - /// - public ExchangeRateService() { - } + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class AudienceSegmentCriteria : CustomCriteriaLeaf { + private AudienceSegmentCriteriaComparisonOperator operatorField; - /// Creates a new instance of the class. - /// - public ExchangeRateService(string endpointConfigurationName) - : base(endpointConfigurationName) { - } + private bool operatorFieldSpecified; - /// Creates a new instance of the class. - /// - public ExchangeRateService(string endpointConfigurationName, string remoteAddress) - : base(endpointConfigurationName, remoteAddress) { - } + private long[] audienceSegmentIdsField; - /// Creates a new instance of the class. + /// The comparison operator. This attribute is required. /// - public ExchangeRateService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) - : base(endpointConfigurationName, remoteAddress) { - } - - /// Creates a new instance of the class. - /// - public ExchangeRateService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) - : base(binding, remoteAddress) { - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.ExchangeRateService.createExchangeRatesResponse Google.Api.Ads.AdManager.v201808.ExchangeRateServiceInterface.createExchangeRates(Wrappers.ExchangeRateService.createExchangeRatesRequest request) { - return base.Channel.createExchangeRates(request); - } - - /// Creates new ExchangeRate objects. For each exchange - /// rate, the following fields are required: - /// the exchange rates to create - /// the created exchange rates with their exchange rate values filled - /// in - public virtual Google.Api.Ads.AdManager.v201808.ExchangeRate[] createExchangeRates(Google.Api.Ads.AdManager.v201808.ExchangeRate[] exchangeRates) { - Wrappers.ExchangeRateService.createExchangeRatesRequest inValue = new Wrappers.ExchangeRateService.createExchangeRatesRequest(); - inValue.exchangeRates = exchangeRates; - Wrappers.ExchangeRateService.createExchangeRatesResponse retVal = ((Google.Api.Ads.AdManager.v201808.ExchangeRateServiceInterface)(this)).createExchangeRates(inValue); - return retVal.rval; - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201808.ExchangeRateServiceInterface.createExchangeRatesAsync(Wrappers.ExchangeRateService.createExchangeRatesRequest request) { - return base.Channel.createExchangeRatesAsync(request); - } - - public virtual System.Threading.Tasks.Task createExchangeRatesAsync(Google.Api.Ads.AdManager.v201808.ExchangeRate[] exchangeRates) { - Wrappers.ExchangeRateService.createExchangeRatesRequest inValue = new Wrappers.ExchangeRateService.createExchangeRatesRequest(); - inValue.exchangeRates = exchangeRates; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201808.ExchangeRateServiceInterface)(this)).createExchangeRatesAsync(inValue)).Result.rval); - } - - /// Gets a ExchangeRatePage of ExchangeRate objects that satisfy the given Statement#query. The following fields are supported - /// for filtering: - /// - /// - /// - /// - ///
PQL Property Object Property
id ExchangeRate#id
currencyCode ExchangeRate#currencyCode
refreshRate ExchangeRate#refreshRate
direction ExchangeRate#direction
exchangeRate ExchangeRate#exchangeRate
- ///
a Publisher Query Language statement used to - /// filter a set of exchange rates - /// the exchange rates that match the given filter - public virtual Google.Api.Ads.AdManager.v201808.ExchangeRatePage getExchangeRatesByStatement(Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.getExchangeRatesByStatement(filterStatement); - } - - public virtual System.Threading.Tasks.Task getExchangeRatesByStatementAsync(Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.getExchangeRatesByStatementAsync(filterStatement); - } - - /// Performs an action on ExchangeRate objects that - /// satisfy the given Statement#query. The following - /// fields are supported for filtering: - /// - /// - /// - /// - /// - ///
PQL - /// Property Object Property
id ExchangeRate#id
currencyCode ExchangeRate#currencyCode
refreshRate ExchangeRate#refreshRate
direction ExchangeRate#direction
exchangeRate ExchangeRate#exchangeRate
- ///
the action to perform - /// a Publisher Query Language statement used to - /// filter a set of exchange rates - /// the result of the action performed - public virtual Google.Api.Ads.AdManager.v201808.UpdateResult performExchangeRateAction(Google.Api.Ads.AdManager.v201808.ExchangeRateAction exchangeRateAction, Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.performExchangeRateAction(exchangeRateAction, filterStatement); - } - - public virtual System.Threading.Tasks.Task performExchangeRateActionAsync(Google.Api.Ads.AdManager.v201808.ExchangeRateAction exchangeRateAction, Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.performExchangeRateActionAsync(exchangeRateAction, filterStatement); - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.ExchangeRateService.updateExchangeRatesResponse Google.Api.Ads.AdManager.v201808.ExchangeRateServiceInterface.updateExchangeRates(Wrappers.ExchangeRateService.updateExchangeRatesRequest request) { - return base.Channel.updateExchangeRates(request); - } - - /// Updates the specified ExchangeRate objects. - /// the exchange rates to update - /// the updated exchange rates - public virtual Google.Api.Ads.AdManager.v201808.ExchangeRate[] updateExchangeRates(Google.Api.Ads.AdManager.v201808.ExchangeRate[] exchangeRates) { - Wrappers.ExchangeRateService.updateExchangeRatesRequest inValue = new Wrappers.ExchangeRateService.updateExchangeRatesRequest(); - inValue.exchangeRates = exchangeRates; - Wrappers.ExchangeRateService.updateExchangeRatesResponse retVal = ((Google.Api.Ads.AdManager.v201808.ExchangeRateServiceInterface)(this)).updateExchangeRates(inValue); - return retVal.rval; - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201808.ExchangeRateServiceInterface.updateExchangeRatesAsync(Wrappers.ExchangeRateService.updateExchangeRatesRequest request) { - return base.Channel.updateExchangeRatesAsync(request); - } - - public virtual System.Threading.Tasks.Task updateExchangeRatesAsync(Google.Api.Ads.AdManager.v201808.ExchangeRate[] exchangeRates) { - Wrappers.ExchangeRateService.updateExchangeRatesRequest inValue = new Wrappers.ExchangeRateService.updateExchangeRatesRequest(); - inValue.exchangeRates = exchangeRates; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201808.ExchangeRateServiceInterface)(this)).updateExchangeRatesAsync(inValue)).Result.rval); - } - } - namespace Wrappers.ActivityService - { - [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/v201808", IsWrapped = true)] - public partial class createActivitiesRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("activities")] - public Google.Api.Ads.AdManager.v201808.Activity[] activities; - - /// Creates a new instance of the - /// class. - public createActivitiesRequest() { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public AudienceSegmentCriteriaComparisonOperator @operator { + get { + return this.operatorField; } - - /// Creates a new instance of the - /// class. - public createActivitiesRequest(Google.Api.Ads.AdManager.v201808.Activity[] activities) { - this.activities = activities; + set { + this.operatorField = value; + this.operatorSpecified = 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 = "createActivitiesResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201808", IsWrapped = true)] - public partial class createActivitiesResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v201808.Activity[] rval; - - /// Creates a new instance of the - /// class. - public createActivitiesResponse() { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool operatorSpecified { + get { + return this.operatorFieldSpecified; } - - /// Creates a new instance of the - /// class. - public createActivitiesResponse(Google.Api.Ads.AdManager.v201808.Activity[] rval) { - this.rval = rval; + set { + this.operatorFieldSpecified = 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 = "updateActivities", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201808", IsWrapped = true)] - public partial class updateActivitiesRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("activities")] - public Google.Api.Ads.AdManager.v201808.Activity[] activities; - - /// Creates a new instance of the - /// class. - public updateActivitiesRequest() { + /// The ids of AudienceSegment objects used to target + /// audience segments. This attribute is required. + /// + [System.Xml.Serialization.XmlElementAttribute("audienceSegmentIds", Order = 1)] + public long[] audienceSegmentIds { + get { + return this.audienceSegmentIdsField; } - - /// Creates a new instance of the - /// class. - public updateActivitiesRequest(Google.Api.Ads.AdManager.v201808.Activity[] activities) { - this.activities = activities; + set { + this.audienceSegmentIdsField = 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 = "updateActivitiesResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201808", IsWrapped = true)] - public partial class updateActivitiesResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v201808.Activity[] rval; + /// Specifies the available comparison operators. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AudienceSegmentCriteria.ComparisonOperator", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum AudienceSegmentCriteriaComparisonOperator { + IS = 0, + IS_NOT = 1, + } - /// Creates a new instance of the - /// class. - public updateActivitiesResponse() { - } - /// Creates a new instance of the - /// class. - public updateActivitiesResponse(Google.Api.Ads.AdManager.v201808.Activity[] 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 CmsMetadataCriteria object is used to target + /// objects. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class Activity { - private int idField; - - private bool idFieldSpecified; - - private int activityGroupIdField; - - private bool activityGroupIdFieldSpecified; - - private string nameField; - - private string expectedURLField; - - private ActivityStatus statusField; - - private bool statusFieldSpecified; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class CmsMetadataCriteria : CustomCriteriaLeaf { + private CmsMetadataCriteriaComparisonOperator operatorField; - private ActivityType typeField; + private bool operatorFieldSpecified; - private bool typeFieldSpecified; + private long[] cmsMetadataValueIdsField; - /// The unique ID of the Activity. This value is readonly and is - /// assigned by Google. + /// The comparison operator. This attribute is required. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public int id { + public CmsMetadataCriteriaComparisonOperator @operator { get { - return this.idField; + return this.operatorField; } set { - this.idField = value; - this.idSpecified = 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 idSpecified { + public bool operatorSpecified { get { - return this.idFieldSpecified; + return this.operatorFieldSpecified; } set { - this.idFieldSpecified = value; + this.operatorFieldSpecified = value; } } - /// The ID of the ActivityGroup that this Activity belongs to. + /// The ids of CmsMetadataValue objects used to + /// target CMS metadata. This attribute is required. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public int activityGroupId { + [System.Xml.Serialization.XmlElementAttribute("cmsMetadataValueIds", Order = 1)] + public long[] cmsMetadataValueIds { get { - return this.activityGroupIdField; + return this.cmsMetadataValueIdsField; } set { - this.activityGroupIdField = value; - this.activityGroupIdSpecified = true; + this.cmsMetadataValueIdsField = value; } } + } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool activityGroupIdSpecified { - get { - return this.activityGroupIdFieldSpecified; - } - set { - this.activityGroupIdFieldSpecified = value; - } - } - /// The name of the Activity. 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; - } - set { - this.nameField = value; - } - } + /// Specifies the available comparison operators. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CmsMetadataCriteria.ComparisonOperator", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum CmsMetadataCriteriaComparisonOperator { + EQUALS = 0, + NOT_EQUALS = 1, + } - /// The URL of the webpage where the tags from this activity will be placed. This - /// attribute is optional. + + /// 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.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class CustomCriteria : CustomCriteriaLeaf { + private long keyIdField; + + private bool keyIdFieldSpecified; + + private long[] valueIdsField; + + private CustomCriteriaComparisonOperator operatorField; + + private bool operatorFieldSpecified; + + /// The CustomTargetingKey#id of the CustomTargetingKey object that was created using + /// CustomTargetingService. This attribute is + /// required. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public string expectedURL { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public long keyId { get { - return this.expectedURLField; + return this.keyIdField; } set { - this.expectedURLField = value; + this.keyIdField = value; + this.keyIdSpecified = true; } } - /// The status of this activity. This attribute is readonly. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public ActivityStatus status { + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool keyIdSpecified { get { - return this.statusField; + return this.keyIdFieldSpecified; } set { - this.statusField = value; - this.statusSpecified = true; + this.keyIdFieldSpecified = value; } } - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool statusSpecified { + /// 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.statusFieldSpecified; + return this.valueIdsField; } set { - this.statusFieldSpecified = value; + this.valueIdsField = value; } } - /// The activity type. This attribute is optional and defaults to Activity.Type#PAGE_VIEWS + /// The comparison operator. This attribute is required. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 5)] - public ActivityType type { + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public CustomCriteriaComparisonOperator @operator { get { - return this.typeField; + return this.operatorField; } set { - this.typeField = value; - this.typeSpecified = 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 typeSpecified { + public bool operatorSpecified { get { - return this.typeFieldSpecified; + return this.operatorFieldSpecified; } set { - this.typeFieldSpecified = value; + this.operatorFieldSpecified = value; } } } - /// The activity status. + /// Specifies the available comparison operators. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "Activity.Status", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum ActivityStatus { - ACTIVE = 0, - INACTIVE = 1, + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CustomCriteria.ComparisonOperator", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum CustomCriteriaComparisonOperator { + IS = 0, + IS_NOT = 1, } - /// The activity type. + /// 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.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "Activity.Type", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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. - /// - UNKNOWN = 7, - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", ConfigurationName = "Google.Api.Ads.AdManager.v201808.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.v201808.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.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class UserDomainTargeting { + private string[] domainsField; - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task createActivitiesAsync(Wrappers.ActivityService.createActivitiesRequest request); + private bool targetedField; - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v201808.ActivityPage getActivitiesByStatement(Google.Api.Ads.AdManager.v201808.Statement filterStatement); + private bool targetedFieldSpecified; - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getActivitiesByStatementAsync(Google.Api.Ads.AdManager.v201808.Statement filterStatement); + /// 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("domains", Order = 0)] + public string[] domains { + get { + return this.domainsField; + } + set { + this.domainsField = 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.v201808.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); + /// Indicates whether domains should be targeted or excluded. This attribute is + /// optional and defaults to true. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public bool targeted { + get { + return this.targetedField; + } + set { + this.targetedField = value; + this.targetedSpecified = true; + } + } - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task updateActivitiesAsync(Wrappers.ActivityService.updateActivitiesRequest request); + /// 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; + } + } } - /// Captures a page of Activity objects. + /// Used to target LineItems to specific videos on a + /// publisher's site. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ActivityPage { - private int totalResultSetSizeField; - - private bool totalResultSetSizeFieldSpecified; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class ContentTargeting { + private long[] targetedContentIdsField; - private int startIndexField; + private long[] excludedContentIdsField; - private bool startIndexFieldSpecified; + private long[] targetedVideoContentBundleIdsField; - private Activity[] resultsField; + private long[] excludedVideoContentBundleIdsField; - /// The size of the total result set to which this page belongs. + /// The IDs of content being targeted by the LineItem. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public int totalResultSetSize { + [System.Xml.Serialization.XmlElementAttribute("targetedContentIds", Order = 0)] + public long[] targetedContentIds { get { - return this.totalResultSetSizeField; + return this.targetedContentIdsField; } set { - this.totalResultSetSizeField = value; - this.totalResultSetSizeSpecified = true; + this.targetedContentIdsField = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool totalResultSetSizeSpecified { + /// The IDs of content being excluded by the LineItem. + /// + [System.Xml.Serialization.XmlElementAttribute("excludedContentIds", Order = 1)] + public long[] excludedContentIds { get { - return this.totalResultSetSizeFieldSpecified; + return this.excludedContentIdsField; } set { - this.totalResultSetSizeFieldSpecified = value; + this.excludedContentIdsField = value; } } - /// The absolute index in the total result set on which this page begins. + /// A list of video content bundles, represented by ContentBundle IDs, that are being targeted by the + /// LineItem. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public int startIndex { + [System.Xml.Serialization.XmlElementAttribute("targetedVideoContentBundleIds", Order = 2)] + public long[] targetedVideoContentBundleIds { get { - return this.startIndexField; + return this.targetedVideoContentBundleIdsField; } set { - this.startIndexField = value; - this.startIndexSpecified = true; + this.targetedVideoContentBundleIdsField = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool startIndexSpecified { + /// 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 { get { - return this.startIndexFieldSpecified; - } - set { - this.startIndexFieldSpecified = value; - } - } - - /// The collection of activities contained within this page. - /// - [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] - public Activity[] results { - get { - return this.resultsField; + return this.excludedVideoContentBundleIdsField; } set { - this.resultsField = value; + this.excludedVideoContentBundleIdsField = value; } } } - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public interface ActivityServiceInterfaceChannel : Google.Api.Ads.AdManager.v201808.ActivityServiceInterface, System.ServiceModel.IClientChannel - { - } - - - /// 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.

+ /// 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).

///
+ [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] [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. - /// - public ActivityService() { - } - - /// Creates a new instance of the class. - /// - public ActivityService(string endpointConfigurationName) - : base(endpointConfigurationName) { - } - - /// Creates a new instance of the class. - /// - public ActivityService(string endpointConfigurationName, string remoteAddress) - : base(endpointConfigurationName, remoteAddress) { - } - - /// Creates a new instance of the class. - /// - public ActivityService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) - : base(endpointConfigurationName, remoteAddress) { - } + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class VideoPositionTargeting { + private VideoPositionTarget[] targetedPositionsField; - /// Creates a new instance of the class. + /// The VideoTargetingPosition objects being + /// targeted by the video LineItem. /// - 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.v201808.ActivityServiceInterface.createActivities(Wrappers.ActivityService.createActivitiesRequest request) { - return base.Channel.createActivities(request); - } - - /// Creates a new Activity objects. - /// to be created. - /// the created activities with its IDs filled in. - public virtual Google.Api.Ads.AdManager.v201808.Activity[] createActivities(Google.Api.Ads.AdManager.v201808.Activity[] activities) { - Wrappers.ActivityService.createActivitiesRequest inValue = new Wrappers.ActivityService.createActivitiesRequest(); - inValue.activities = activities; - Wrappers.ActivityService.createActivitiesResponse retVal = ((Google.Api.Ads.AdManager.v201808.ActivityServiceInterface)(this)).createActivities(inValue); - return retVal.rval; - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201808.ActivityServiceInterface.createActivitiesAsync(Wrappers.ActivityService.createActivitiesRequest request) { - return base.Channel.createActivitiesAsync(request); - } - - public virtual System.Threading.Tasks.Task createActivitiesAsync(Google.Api.Ads.AdManager.v201808.Activity[] activities) { - Wrappers.ActivityService.createActivitiesRequest inValue = new Wrappers.ActivityService.createActivitiesRequest(); - inValue.activities = activities; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201808.ActivityServiceInterface)(this)).createActivitiesAsync(inValue)).Result.rval); - } - - /// 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
- ///
a statement used to filter a set of - /// activities. - /// the activities that match the given filter. - public virtual Google.Api.Ads.AdManager.v201808.ActivityPage getActivitiesByStatement(Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.getActivitiesByStatement(filterStatement); - } - - public virtual System.Threading.Tasks.Task getActivitiesByStatementAsync(Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.getActivitiesByStatementAsync(filterStatement); - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.ActivityService.updateActivitiesResponse Google.Api.Ads.AdManager.v201808.ActivityServiceInterface.updateActivities(Wrappers.ActivityService.updateActivitiesRequest request) { - return base.Channel.updateActivities(request); - } - - /// Updates the specified Activity objects. - /// to be updated. - /// the updated activities. - public virtual Google.Api.Ads.AdManager.v201808.Activity[] updateActivities(Google.Api.Ads.AdManager.v201808.Activity[] activities) { - Wrappers.ActivityService.updateActivitiesRequest inValue = new Wrappers.ActivityService.updateActivitiesRequest(); - inValue.activities = activities; - Wrappers.ActivityService.updateActivitiesResponse retVal = ((Google.Api.Ads.AdManager.v201808.ActivityServiceInterface)(this)).updateActivities(inValue); - return retVal.rval; - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201808.ActivityServiceInterface.updateActivitiesAsync(Wrappers.ActivityService.updateActivitiesRequest request) { - return base.Channel.updateActivitiesAsync(request); - } - - public virtual System.Threading.Tasks.Task updateActivitiesAsync(Google.Api.Ads.AdManager.v201808.Activity[] activities) { - Wrappers.ActivityService.updateActivitiesRequest inValue = new Wrappers.ActivityService.updateActivitiesRequest(); - inValue.activities = activities; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201808.ActivityServiceInterface)(this)).updateActivitiesAsync(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/v201808", IsWrapped = true)] - public partial class getDeliveryForecastRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("lineItems")] - public Google.Api.Ads.AdManager.v201808.ProspectiveLineItem[] lineItems; - - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 1)] - public Google.Api.Ads.AdManager.v201808.DeliveryForecastOptions forecastOptions; - - /// Creates a new instance of the - /// class. - public getDeliveryForecastRequest() { - } - - /// Creates a new instance of the - /// class. - public getDeliveryForecastRequest(Google.Api.Ads.AdManager.v201808.ProspectiveLineItem[] lineItems, Google.Api.Ads.AdManager.v201808.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/v201808", IsWrapped = true)] - public partial class getDeliveryForecastResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - public Google.Api.Ads.AdManager.v201808.DeliveryForecast rval; - - /// Creates a new instance of the class. - public getDeliveryForecastResponse() { - } - - /// Creates a new instance of the class. - public getDeliveryForecastResponse(Google.Api.Ads.AdManager.v201808.DeliveryForecast 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 = "getDeliveryForecastByIds", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201808", IsWrapped = true)] - public partial class getDeliveryForecastByIdsRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("lineItemIds")] - public long[] lineItemIds; - - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 1)] - public Google.Api.Ads.AdManager.v201808.DeliveryForecastOptions forecastOptions; - - /// Creates a new instance of the class. - public getDeliveryForecastByIdsRequest() { + [System.Xml.Serialization.XmlElementAttribute("targetedPositions", Order = 0)] + public VideoPositionTarget[] targetedPositions { + get { + return this.targetedPositionsField; } - - /// Creates a new instance of the class. - public getDeliveryForecastByIdsRequest(long[] lineItemIds, Google.Api.Ads.AdManager.v201808.DeliveryForecastOptions forecastOptions) { - this.lineItemIds = lineItemIds; - this.forecastOptions = forecastOptions; + set { + this.targetedPositionsField = 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 = "getDeliveryForecastByIdsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201808", IsWrapped = true)] - public partial class getDeliveryForecastByIdsResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - public Google.Api.Ads.AdManager.v201808.DeliveryForecast rval; - - /// Creates a new instance of the class. - public getDeliveryForecastByIdsResponse() { - } - - /// Creates a new instance of the class. - public getDeliveryForecastByIdsResponse(Google.Api.Ads.AdManager.v201808.DeliveryForecast rval) { - this.rval = rval; - } - } - } - /// GRP forecast breakdown counts associated with a gender and age demographic. + /// Represents the options for targetable positions within a video. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class GrpDemographicBreakdown { - private long availableUnitsField; - - private bool availableUnitsFieldSpecified; - - private long matchedUnitsField; - - private bool matchedUnitsFieldSpecified; - - private GrpUnitType unitTypeField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class VideoPositionTarget { + private VideoPosition videoPositionField; - private bool unitTypeFieldSpecified; + private VideoBumperType videoBumperTypeField; - private GrpGender genderField; + private bool videoBumperTypeFieldSpecified; - private bool genderFieldSpecified; + private VideoPositionWithinPod videoPositionWithinPodField; - private GrpAge ageField; + private long adSpotIdField; - private bool ageFieldSpecified; + private bool adSpotIdFieldSpecified; - /// The number of units matching the demographic breakdown that can be booked - /// without affecting the delivery of any reserved line items. + /// The video position to target. This attribute is required. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public long availableUnits { - get { - return this.availableUnitsField; - } - set { - this.availableUnitsField = value; - this.availableUnitsSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool availableUnitsSpecified { + public VideoPosition videoPosition { get { - return this.availableUnitsFieldSpecified; + return this.videoPositionField; } set { - this.availableUnitsFieldSpecified = value; + this.videoPositionField = value; } } - /// The number of units matching the demographic and matching specified targeting - /// and delivery settings. + /// 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 long matchedUnits { + public VideoBumperType videoBumperType { get { - return this.matchedUnitsField; + return this.videoBumperTypeField; } set { - this.matchedUnitsField = value; - this.matchedUnitsSpecified = true; + this.videoBumperTypeField = value; + this.videoBumperTypeSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="videoBumperType" />, false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool matchedUnitsSpecified { + public bool videoBumperTypeSpecified { get { - return this.matchedUnitsFieldSpecified; + return this.videoBumperTypeFieldSpecified; } set { - this.matchedUnitsFieldSpecified = value; + this.videoBumperTypeFieldSpecified = value; } } - /// The GrpUnitType associated with this demographic - /// breakdown. + /// 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. /// [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public GrpUnitType unitType { + public VideoPositionWithinPod videoPositionWithinPod { get { - return this.unitTypeField; + return this.videoPositionWithinPodField; } set { - this.unitTypeField = value; - this.unitTypeSpecified = true; + this.videoPositionWithinPodField = value; } } - /// true, if a value is specified for 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 = 3)] + 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 unitTypeSpecified { + public bool adSpotIdSpecified { get { - return this.unitTypeFieldSpecified; + return this.adSpotIdFieldSpecified; } set { - this.unitTypeFieldSpecified = value; + this.adSpotIdFieldSpecified = value; } } + } - /// The GrpGender associated with this demographic - /// breakdown. + + /// 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.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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). /// - [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public GrpGender gender { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public VideoPositionType positionType { get { - return this.genderField; + return this.positionTypeField; } set { - this.genderField = value; - this.genderSpecified = 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 genderSpecified { + public bool positionTypeSpecified { get { - return this.genderFieldSpecified; + return this.positionTypeFieldSpecified; } set { - this.genderFieldSpecified = value; + this.positionTypeFieldSpecified = value; } } - /// The GrpAge associated with this demographic breakdown. + /// The index of the mid-roll to target. Only valid if the positionType is VideoPositionType#MIDROLL, otherwise this + /// field will be ignored. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public GrpAge age { + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public int midrollIndex { get { - return this.ageField; + return this.midrollIndexField; } set { - this.ageField = value; - this.ageSpecified = 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 ageSpecified { + public bool midrollIndexSpecified { get { - return this.ageFieldSpecified; + return this.midrollIndexFieldSpecified; } set { - this.ageFieldSpecified = value; + this.midrollIndexFieldSpecified = value; } } } - /// Type of unit represented in a GRP demographic breakdown. + /// Represents a targetable position within a video. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum GrpUnitType { + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "VideoPosition.Type", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum VideoPositionType { /// The value returned if the actual value is not exposed by the requested API /// version. /// - UNKNOWN = 0, - IMPRESSIONS = 1, - } - - - /// The demographic gender associated with a GRP demographic forecast. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum GrpGender { - /// 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. /// - UNKNOWN = 0, - /// When gender is not available due to low impression levels, GRP privacy - /// thresholds are activated and prevent us from specifying gender. + ALL = 4, + /// The position defined as showing before the video starts playing. /// - GENDER_UNKNOWN = 1, - GENDER_FEMALE = 2, - GENDER_MALE = 3, + 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, } - /// The age range associated with a GRP demographic forecast. + /// 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.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum GrpAge { - /// 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/v201908")] + public enum VideoBumperType { + /// Represents the bumper position before the ad pod. /// - UNKNOWN = 0, - /// When the age range is not available due to low impression levels, GRP privacy - /// thresholds are activated and prevent us from specifying age. + BEFORE = 0, + /// Represents the bumper position after the ad pod. /// - AGE_UNKNOWN = 1, - AGE_0_TO_17 = 2, - AGE_18_TO_24 = 3, - AGE_25_TO_34 = 4, - AGE_35_TO_44 = 5, - AGE_45_TO_54 = 6, - AGE_55_TO_64 = 7, - AGE_65_PLUS = 8, - AGE_18_TO_49 = 9, - AGE_21_TO_34 = 10, - AGE_21_TO_49 = 11, - AGE_21_PLUS = 12, - AGE_25_TO_49 = 13, - AGE_21_TO_44 = 14, - AGE_21_TO_54 = 15, - AGE_21_TO_64 = 16, - AGE_35_TO_49 = 17, + AFTER = 1, } - /// 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.

+ /// 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.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class VideoPositionWithinPod { + private int indexField; - private bool possibleUnitsFieldSpecified; + private bool indexFieldSpecified; - /// The alternative unit type being presented. + /// 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 UnitType unitType { + public int index { get { - return this.unitTypeField; + return this.indexField; } set { - this.unitTypeField = value; - this.unitTypeSpecified = true; + this.indexField = value; + this.indexSpecified = 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 unitTypeSpecified { + public bool indexSpecified { get { - return this.unitTypeFieldSpecified; + return this.indexFieldSpecified; } set { - this.unitTypeFieldSpecified = value; + this.indexFieldSpecified = value; } } + } - /// The number of units, defined by #unitType, that match - /// the specified targeting and delivery settings. + + /// Provides line items the ability to target or exclude users' mobile applications. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class MobileApplicationTargeting { + private long[] mobileApplicationIdsField; + + private bool isTargetedField; + + private bool isTargetedFieldSpecified; + + /// The IDs that are being targeted or excluded + /// by the LineItem. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public long matchedUnits { + [System.Xml.Serialization.XmlElementAttribute("mobileApplicationIds", Order = 0)] + public long[] mobileApplicationIds { get { - return this.matchedUnitsField; + return this.mobileApplicationIdsField; } set { - this.matchedUnitsField = value; - this.matchedUnitsSpecified = true; + this.mobileApplicationIdsField = value; } } - /// 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; - } - } - - /// 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. + /// Indicates whether mobile apps should be targeted or excluded. This attribute is + /// optional and defaults to true. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public long availableUnits { + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public bool isTargeted { get { - return this.availableUnitsField; + return this.isTargetedField; } set { - this.availableUnitsField = value; - this.availableUnitsSpecified = 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 availableUnitsSpecified { + public bool isTargetedSpecified { get { - return this.availableUnitsFieldSpecified; + return this.isTargetedFieldSpecified; } set { - this.availableUnitsFieldSpecified = value; + this.isTargetedFieldSpecified = value; } } + } - /// The maximum number of units, defined by #unitType, that - /// could be booked by taking inventory away from lower-priority line items. + + /// The BuyerUserListTargeting associated with a programmatic LineItem or ProposalLineItem + /// object. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class BuyerUserListTargeting { + private bool hasBuyerUserListTargetingField; + + private bool hasBuyerUserListTargetingFieldSpecified; + + /// Whether the programmatic LineItem or object has buyer + /// user list targeting. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public long possibleUnits { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public bool hasBuyerUserListTargeting { get { - return this.possibleUnitsField; + return this.hasBuyerUserListTargetingField; } set { - this.possibleUnitsField = value; - this.possibleUnitsSpecified = true; + this.hasBuyerUserListTargetingField = value; + this.hasBuyerUserListTargetingSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="hasBuyerUserListTargeting" />, false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool possibleUnitsSpecified { + public bool hasBuyerUserListTargetingSpecified { get { - return this.possibleUnitsFieldSpecified; + return this.hasBuyerUserListTargetingFieldSpecified; } set { - this.possibleUnitsFieldSpecified = value; + this.hasBuyerUserListTargetingFieldSpecified = value; } } } - /// 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.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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 value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 5, - } - - - /// Describes contending line items for a Forecast. + /// 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.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ContendingLineItem { - private long lineItemIdField; - - private bool lineItemIdFieldSpecified; - - private long contendingImpressionsField; - - private bool contendingImpressionsFieldSpecified; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class RequestPlatformTargeting { + private RequestPlatform[] targetedRequestPlatformsField; - /// The Id of the contending line item. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public long lineItemId { + [System.Xml.Serialization.XmlElementAttribute("targetedRequestPlatforms", Order = 0)] + public RequestPlatform[] targetedRequestPlatforms { get { - return this.lineItemIdField; + return this.targetedRequestPlatformsField; } set { - this.lineItemIdField = value; - this.lineItemIdSpecified = true; + this.targetedRequestPlatformsField = value; } } + } - /// 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. + /// Represents the platform which requests and renders the ad. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum RequestPlatform { + /// The value returned if the actual value is not exposed by the requested API + /// version. /// - [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; - } - } + 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, } - /// A single targeting criteria breakdown result. + /// 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.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class TargetingCriteriaBreakdown { - private TargetingDimension targetingDimensionField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class CreativePlaceholder { + private Size sizeField; - private bool targetingDimensionFieldSpecified; + private long creativeTemplateIdField; - private long targetingCriteriaIdField; + private bool creativeTemplateIdFieldSpecified; - private bool targetingCriteriaIdFieldSpecified; + private CreativePlaceholder[] companionsField; - private string targetingCriteriaNameField; + private AppliedLabel[] appliedLabelsField; - private bool excludedField; + private AppliedLabel[] effectiveAppliedLabelsField; - private bool excludedFieldSpecified; + private int expectedCreativeCountField; - private long availableUnitsField; + private bool expectedCreativeCountFieldSpecified; - private bool availableUnitsFieldSpecified; + private CreativeSizeType creativeSizeTypeField; - private long matchedUnitsField; + private bool creativeSizeTypeFieldSpecified; - private bool matchedUnitsFieldSpecified; + private string targetingNameField; - /// The dimension of this breakdown + private bool isAmpOnlyField; + + private bool isAmpOnlyFieldSpecified; + + /// The dimensions that the creative is expected to have. This attribute is + /// required. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public TargetingDimension targetingDimension { + public Size size { get { - return this.targetingDimensionField; + return this.sizeField; } set { - this.targetingDimensionField = value; - this.targetingDimensionSpecified = true; + this.sizeField = value; + } + } + + /// The native creative template ID.

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

+ ///
+ [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public long creativeTemplateId { + get { + return this.creativeTemplateIdField; + } + set { + this.creativeTemplateIdField = value; + this.creativeTemplateIdSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="creativeTemplateId" />, false otherwise.
[System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool targetingDimensionSpecified { + public bool creativeTemplateIdSpecified { get { - return this.targetingDimensionFieldSpecified; + return this.creativeTemplateIdFieldSpecified; } set { - this.targetingDimensionFieldSpecified = value; + this.creativeTemplateIdFieldSpecified = value; } } - /// The unique ID of the targeting criteria. + /// 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(Order = 1)] - public long targetingCriteriaId { + [System.Xml.Serialization.XmlElementAttribute("companions", Order = 2)] + public CreativePlaceholder[] companions { get { - return this.targetingCriteriaIdField; + return this.companionsField; } set { - this.targetingCriteriaIdField = value; - this.targetingCriteriaIdSpecified = true; + this.companionsField = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool targetingCriteriaIdSpecified { + /// The set of label frequency caps applied directly to this creative placeholder. + /// + [System.Xml.Serialization.XmlElementAttribute("appliedLabels", Order = 3)] + public AppliedLabel[] appliedLabels { get { - return this.targetingCriteriaIdFieldSpecified; + return this.appliedLabelsField; } set { - this.targetingCriteriaIdFieldSpecified = value; + this.appliedLabelsField = value; } } - /// The name of the targeting criteria. + /// 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. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public string targetingCriteriaName { + [System.Xml.Serialization.XmlElementAttribute("effectiveAppliedLabels", Order = 4)] + public AppliedLabel[] effectiveAppliedLabels { get { - return this.targetingCriteriaNameField; + return this.effectiveAppliedLabelsField; } set { - this.targetingCriteriaNameField = value; + this.effectiveAppliedLabelsField = value; } } - /// When true, the breakdown is negative. + /// 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 = 3)] - public bool excluded { + [System.Xml.Serialization.XmlElementAttribute(Order = 5)] + public int expectedCreativeCount { get { - return this.excludedField; + return this.expectedCreativeCountField; } set { - this.excludedField = value; - this.excludedSpecified = true; + this.expectedCreativeCountField = value; + this.expectedCreativeCountSpecified = 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 expectedCreativeCountSpecified { get { - return this.excludedFieldSpecified; + return this.expectedCreativeCountFieldSpecified; } set { - this.excludedFieldSpecified = value; + this.expectedCreativeCountFieldSpecified = value; } } - /// The available units for this breakdown. + /// 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 = 4)] - public long availableUnits { + [System.Xml.Serialization.XmlElementAttribute(Order = 6)] + public CreativeSizeType creativeSizeType { get { - return this.availableUnitsField; + return this.creativeSizeTypeField; } set { - this.availableUnitsField = value; - this.availableUnitsSpecified = true; + this.creativeSizeTypeField = value; + this.creativeSizeTypeSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="creativeSizeType" />, false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool availableUnitsSpecified { + public bool creativeSizeTypeSpecified { get { - return this.availableUnitsFieldSpecified; + return this.creativeSizeTypeFieldSpecified; } set { - this.availableUnitsFieldSpecified = value; + this.creativeSizeTypeFieldSpecified = value; } } - /// The matched units for this breakdown. + /// 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 = 5)] - public long matchedUnits { + [System.Xml.Serialization.XmlElementAttribute(Order = 7)] + public string targetingName { get { - return this.matchedUnitsField; + return this.targetingNameField; } set { - this.matchedUnitsField = value; - this.matchedUnitsSpecified = true; + this.targetingNameField = value; } } - /// true, if a value is specified for , false otherwise. + /// 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; + } + set { + this.isAmpOnlyField = value; + this.isAmpOnlySpecified = true; + } + } + + /// true, if a value is specified for , false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool matchedUnitsSpecified { + public bool isAmpOnlySpecified { get { - return this.matchedUnitsFieldSpecified; + return this.isAmpOnlyFieldSpecified; } set { - this.matchedUnitsFieldSpecified = value; + this.isAmpOnlyFieldSpecified = value; } } } - /// Targeting dimension of targeting breakdowns. + /// 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.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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, - /// 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/v201908")] + public enum CreativeSizeType { + /// Dimension based size, an actual height and width. /// - UNKNOWN = 16, + 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, + /// Native size, which is a function of the how the client renders the creative. + /// This must be used with 1x1 size. + /// + NATIVE = 3, } - /// Represents a single delivery data point, with both available and forecast - /// number. + /// Configuration of forecast breakdown. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class BreakdownForecast { - private long matchedField; - - private bool matchedFieldSpecified; - - private long availableField; - - private bool availableFieldSpecified; - - private long possibleField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class ForecastBreakdownOptions { + private DateTime[] timeWindowsField; - private bool possibleFieldSpecified; + private ForecastBreakdownTarget[] targetsField; - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public long matched { + /// 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("timeWindows", Order = 0)] + public DateTime[] timeWindows { get { - return this.matchedField; + return this.timeWindowsField; } set { - this.matchedField = value; - this.matchedSpecified = true; + this.timeWindowsField = value; } } - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool matchedSpecified { + /// 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.matchedFieldSpecified; + return this.targetsField; } set { - this.matchedFieldSpecified = value; + this.targetsField = value; } } + } - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public long available { + + /// Forecasting options for line item availability forecasts. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class AvailabilityForecastOptions { + private bool includeTargetingCriteriaBreakdownField; + + private bool includeTargetingCriteriaBreakdownFieldSpecified; + + private bool includeContendingLineItemsField; + + private bool includeContendingLineItemsFieldSpecified; + + private ForecastBreakdownOptions breakdownField; + + /// 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.availableField; + return this.includeTargetingCriteriaBreakdownField; } set { - this.availableField = value; - this.availableSpecified = true; + this.includeTargetingCriteriaBreakdownField = value; + this.includeTargetingCriteriaBreakdownSpecified = 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 availableSpecified { + public bool includeTargetingCriteriaBreakdownSpecified { get { - return this.availableFieldSpecified; + return this.includeTargetingCriteriaBreakdownFieldSpecified; } set { - this.availableFieldSpecified = value; + this.includeTargetingCriteriaBreakdownFieldSpecified = value; } } - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public long possible { + /// 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.possibleField; + return this.includeContendingLineItemsField; } set { - this.possibleField = value; - this.possibleSpecified = true; + this.includeContendingLineItemsField = value; + this.includeContendingLineItemsSpecified = 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 possibleSpecified { + public bool includeContendingLineItemsSpecified { get { - return this.possibleFieldSpecified; + return this.includeContendingLineItemsFieldSpecified; } set { - this.possibleFieldSpecified = value; + this.includeContendingLineItemsFieldSpecified = value; + } + } + + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public ForecastBreakdownOptions breakdown { + get { + return this.breakdownField; + } + set { + this.breakdownField = value; } } } - /// A single forecast breakdown entry. + /// Marketplace info for ProposalLineItem with a + /// corresponding deal in Marketplace. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ForecastBreakdownEntry { - private string nameField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class ProposalLineItemMarketplaceInfo { + private AdExchangeEnvironment adExchangeEnvironmentField; - private BreakdownForecast forecastField; + private bool adExchangeEnvironmentFieldSpecified; - /// The optional name of this entry, as specified in the corresponding ForecastBreakdownTarget#name field. + /// The AdExchangeEnvironment of the marketplace + /// web property that is associated with this line item. This is only for proposal line items with a corresponding deal in + /// Marketplace. This attribute is + /// required. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public string name { + public AdExchangeEnvironment adExchangeEnvironment { get { - return this.nameField; + return this.adExchangeEnvironmentField; } set { - this.nameField = value; + this.adExchangeEnvironmentField = value; + this.adExchangeEnvironmentSpecified = true; } } - /// The forecast of this entry. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public BreakdownForecast forecast { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool adExchangeEnvironmentSpecified { get { - return this.forecastField; + return this.adExchangeEnvironmentFieldSpecified; } set { - this.forecastField = value; + this.adExchangeEnvironmentFieldSpecified = value; } } } - /// Represents the breakdown entries for a list of targetings and/or creatives. + /// Identifies the format of inventory or "channel" in which ads serve. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ForecastBreakdown { - private DateTime startTimeField; - - private DateTime endTimeField; - - private ForecastBreakdownEntry[] breakdownEntriesField; - - /// The starting time of the represented breakdown. + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum AdExchangeEnvironment { + /// Ads serve in a browser. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public DateTime startTime { - get { - return this.startTimeField; - } - set { - this.startTimeField = value; - } - } - - /// The end time of the represented breakdown. + DISPLAY = 0, + /// In-stream video ads serve in a video. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public DateTime endTime { - get { - return this.endTimeField; - } - set { - this.endTimeField = value; - } - } - - /// The forecast breakdown entries in the same order as in the ForecastBreakdownOptions#targets - /// field. + VIDEO = 1, + /// In-stream video ads serve in a game. /// - [System.Xml.Serialization.XmlElementAttribute("breakdownEntries", Order = 2)] - public ForecastBreakdownEntry[] breakdownEntries { - get { - return this.breakdownEntriesField; - } - set { - this.breakdownEntriesField = value; - } - } + 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, } - /// 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.

+ /// A ProposalLineItem is an instance of sales Product. It belongs to a Proposal and + /// is created according to a Product and RateCard. When the proposal is turned into an Order, this object is turned into a LineItem. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class AvailabilityForecast { - private long lineItemIdField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class ProposalLineItem { + private long idField; - private bool lineItemIdFieldSpecified; + private bool idFieldSpecified; - private long orderIdField; + private long proposalIdField; - private bool orderIdFieldSpecified; + private bool proposalIdFieldSpecified; - private UnitType unitTypeField; + private string nameField; - private bool unitTypeFieldSpecified; + private DateTime startDateTimeField; - private long availableUnitsField; + private DateTime endDateTimeField; - private bool availableUnitsFieldSpecified; + private string timeZoneIdField; - private long deliveredUnitsField; + private string internalNotesField; - private bool deliveredUnitsFieldSpecified; + private bool isArchivedField; - private long matchedUnitsField; + private bool isArchivedFieldSpecified; - private bool matchedUnitsFieldSpecified; + private Goal goalField; - private long possibleUnitsField; + private long contractedUnitsBoughtField; - private bool possibleUnitsFieldSpecified; + private bool contractedUnitsBoughtFieldSpecified; - private long reservedUnitsField; + private DeliveryRateType deliveryRateTypeField; - private bool reservedUnitsFieldSpecified; + private bool deliveryRateTypeFieldSpecified; - private ForecastBreakdown[] breakdownsField; + private RoadblockingType roadblockingTypeField; - private TargetingCriteriaBreakdown[] targetingCriteriaBreakdownsField; + private bool roadblockingTypeFieldSpecified; - private ContendingLineItem[] contendingLineItemsField; + private CompanionDeliveryOption companionDeliveryOptionField; - private AlternativeUnitTypeForecast[] alternativeUnitTypeForecastsField; + private bool companionDeliveryOptionFieldSpecified; - private GrpDemographicBreakdown[] demographicBreakdownsField; + private long videoMaxDurationField; - /// 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. + private bool videoMaxDurationFieldSpecified; + + 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 bool isProgrammaticField; + + private bool isProgrammaticFieldSpecified; + + private ProposalLineItemMarketplaceInfo marketplaceInfoField; + + private string additionalTermsField; + + private ProgrammaticCreativeSource programmaticCreativeSourceField; + + private bool programmaticCreativeSourceFieldSpecified; + + private long estimatedMinimumImpressionsField; + + private bool estimatedMinimumImpressionsFieldSpecified; + + /// The unique ID of the ProposalLineItem. This attribute is read-only. /// [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 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 orderId { + public long proposalId { get { - return this.orderIdField; + return this.proposalIdField; } set { - this.orderIdField = value; - this.orderIdSpecified = true; + this.proposalIdField = value; + this.proposalIdSpecified = 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 proposalIdSpecified { get { - return this.orderIdFieldSpecified; + return this.proposalIdFieldSpecified; } set { - this.orderIdFieldSpecified = value; + this.proposalIdFieldSpecified = 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 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 UnitType unitType { + public string name { get { - return this.unitTypeField; + return this.nameField; } set { - this.unitTypeField = value; - this.unitTypeSpecified = true; + this.nameField = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool unitTypeSpecified { + /// 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 { get { - return this.unitTypeFieldSpecified; + return this.startDateTimeField; } set { - this.unitTypeFieldSpecified = value; + this.startDateTimeField = 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. + /// 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 long availableUnits { + [System.Xml.Serialization.XmlElementAttribute(Order = 4)] + public DateTime endDateTime { get { - return this.availableUnitsField; + return this.endDateTimeField; } set { - this.availableUnitsField = value; - this.availableUnitsSpecified = true; + this.endDateTimeField = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool availableUnitsSpecified { + /// 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 when:
  • using programmatic guaranteed, using sales + /// management.
  • using programmatic guaranteed, not using sales + /// management.
+ ///
+ [System.Xml.Serialization.XmlElementAttribute(Order = 5)] + public string timeZoneId { get { - return this.availableUnitsFieldSpecified; + return this.timeZoneIdField; } set { - this.availableUnitsFieldSpecified = value; + this.timeZoneIdField = value; } } - /// The number of units, defined by Goal#unitType, that - /// have already been served if the reservation is already running. + /// 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 = 4)] - public long deliveredUnits { + [System.Xml.Serialization.XmlElementAttribute(Order = 6)] + public string internalNotes { get { - return this.deliveredUnitsField; + return this.internalNotesField; } set { - this.deliveredUnitsField = value; - this.deliveredUnitsSpecified = true; + this.internalNotesField = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool deliveredUnitsSpecified { + /// The archival status of the ProposalLineItem. This attribute is + /// read-only. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 7)] + public bool isArchived { get { - return this.deliveredUnitsFieldSpecified; + return this.isArchivedField; } set { - this.deliveredUnitsFieldSpecified = value; + this.isArchivedField = value; + this.isArchivedSpecified = true; } } - /// 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 { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool isArchivedSpecified { get { - return this.matchedUnitsField; + return this.isArchivedFieldSpecified; } set { - this.matchedUnitsField = value; - this.matchedUnitsSpecified = true; + this.isArchivedFieldSpecified = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool matchedUnitsSpecified { + /// 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 = 8)] + public Goal goal { get { - return this.matchedUnitsFieldSpecified; + return this.goalField; } set { - this.matchedUnitsFieldSpecified = value; + this.goalField = value; } } - /// 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.

+ /// The contracted number of impressions or clicks. If this is a LineItemType#SPONSORSHIP , has + /// RateType#CPD as a rate type, and #isProgrammatic is false, then this represents the + /// lifetime minimum impression. If this is a LineItemType#SPONSORSHIP , has + /// RateType#CPD as a rate type, and #isProgrammatic is true, then this represents the + /// daily minimum impression.

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 long possibleUnits { + [System.Xml.Serialization.XmlElementAttribute(Order = 9)] + public long contractedUnitsBought { get { - return this.possibleUnitsField; + return this.contractedUnitsBoughtField; } set { - this.possibleUnitsField = value; - this.possibleUnitsSpecified = true; + this.contractedUnitsBoughtField = value; + this.contractedUnitsBoughtSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="contractedUnitsBought" />, false otherwise.
[System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool possibleUnitsSpecified { + public bool contractedUnitsBoughtSpecified { get { - return this.possibleUnitsFieldSpecified; + return this.contractedUnitsBoughtFieldSpecified; } set { - this.possibleUnitsFieldSpecified = value; + this.contractedUnitsBoughtFieldSpecified = value; } } - /// The number of reserved units, defined by Goal#unitType, requested. This can be an absolute or - /// percentage value. + /// The strategy for delivering ads over the course of the 's duration. + /// This attribute is optional and default value is DeliveryRateType#EVENLY. For a Preferred deal + /// ProposalLineItem, the value can only be DeliveryRateType#FRONTLOADED. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 7)] - public long reservedUnits { + [System.Xml.Serialization.XmlElementAttribute(Order = 10)] + public DeliveryRateType deliveryRateType { get { - return this.reservedUnitsField; + return this.deliveryRateTypeField; } set { - this.reservedUnitsField = value; - this.reservedUnitsSpecified = 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 reservedUnitsSpecified { + public bool deliveryRateTypeSpecified { get { - return this.reservedUnitsFieldSpecified; + return this.deliveryRateTypeFieldSpecified; } set { - this.reservedUnitsFieldSpecified = value; + this.deliveryRateTypeFieldSpecified = 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, - /// availbleUnits=20]}] where the entries correspond to {IU=A} and - /// {IU=B, creative=1x1} respectively. For a time breakdown in the form - /// of ForecastBreakdownOptions{timeWindows=[1am, 2am, 3am]}, the - /// breakdowns field may look like:

  [
-		/// ForecastBreakdown{startTime=1am, endTime=2am,
-		/// breakdownEntries=[availableUnits=10], ForecastBreakdow{startTime=2am,
-		/// endTime=3am, breakdownEntries=[availalbleUnits=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=[availalbleUnits=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. + /// 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("breakdowns", Order = 8)] - public ForecastBreakdown[] breakdowns { + [System.Xml.Serialization.XmlElementAttribute(Order = 11)] + public RoadblockingType roadblockingType { get { - return this.breakdownsField; + return this.roadblockingTypeField; } set { - this.breakdownsField = value; + this.roadblockingTypeField = value; + this.roadblockingTypeSpecified = true; } } - /// The forecast result broken down by the targeting of the forecasted line item. - /// - [System.Xml.Serialization.XmlElementAttribute("targetingCriteriaBreakdowns", Order = 9)] - public TargetingCriteriaBreakdown[] targetingCriteriaBreakdowns { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool roadblockingTypeSpecified { get { - return this.targetingCriteriaBreakdownsField; + return this.roadblockingTypeFieldSpecified; } set { - this.targetingCriteriaBreakdownsField = value; + this.roadblockingTypeFieldSpecified = value; } } - /// List of contending line items for this - /// forecast. + /// 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("contendingLineItems", Order = 10)] - public ContendingLineItem[] contendingLineItems { + [System.Xml.Serialization.XmlElementAttribute(Order = 12)] + public CompanionDeliveryOption companionDeliveryOption { get { - return this.contendingLineItemsField; + return this.companionDeliveryOptionField; } set { - this.contendingLineItemsField = value; + this.companionDeliveryOptionField = value; + this.companionDeliveryOptionSpecified = true; } } - /// Views of this forecast, with alternative unit types. - /// - [System.Xml.Serialization.XmlElementAttribute("alternativeUnitTypeForecasts", Order = 11)] - public AlternativeUnitTypeForecast[] alternativeUnitTypeForecasts { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool companionDeliveryOptionSpecified { get { - return this.alternativeUnitTypeForecastsField; + return this.companionDeliveryOptionFieldSpecified; } set { - this.alternativeUnitTypeForecastsField = value; + this.companionDeliveryOptionFieldSpecified = value; } } - /// The forecast result broken down by demographics. + /// 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("demographicBreakdowns", Order = 12)] - public GrpDemographicBreakdown[] demographicBreakdowns { + [System.Xml.Serialization.XmlElementAttribute(Order = 13)] + public long videoMaxDuration { get { - return this.demographicBreakdownsField; + return this.videoMaxDurationField; } set { - this.demographicBreakdownsField = value; + this.videoMaxDurationField = value; + this.videoMaxDurationSpecified = true; } } - } - - - /// Specifies inventory targeted by a breakdown entry. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ForecastBreakdownTarget { - private string nameField; - - private Targeting targetingField; - - 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 { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool videoMaxDurationSpecified { get { - return this.nameField; + return this.videoMaxDurationFieldSpecified; } set { - this.nameField = value; + this.videoMaxDurationFieldSpecified = value; } } - /// If specified, the targeting for this breakdown. + /// 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.Xml.Serialization.XmlElementAttribute(Order = 1)] - public Targeting targeting { + [System.Xml.Serialization.XmlElementAttribute("frequencyCaps", Order = 14)] + public FrequencyCap[] frequencyCaps { get { - return this.targetingField; + return this.frequencyCapsField; } set { - this.targetingField = value; + this.frequencyCapsField = value; } } - /// If specified, restrict the breakdown to only inventory matching this creative. + /// 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 = 2)] - public CreativePlaceholder creative { + [System.Xml.Serialization.XmlElementAttribute(Order = 15)] + public long dfpLineItemId { get { - return this.creativeField; + return this.dfpLineItemIdField; } set { - this.creativeField = value; + this.dfpLineItemIdField = value; + this.dfpLineItemIdSpecified = true; } } - } - - - /// Contains targeting criteria for LineItem objects. See LineItem#targeting. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class Targeting { - private GeoTargeting geoTargetingField; - - private InventoryTargeting inventoryTargetingField; - - private DayPartTargeting dayPartTargetingField; - private TechnologyTargeting technologyTargetingField; - - private CustomCriteriaSet customTargetingField; - - private UserDomainTargeting userDomainTargetingField; - - private ContentTargeting contentTargetingField; - - private VideoPositionTargeting videoPositionTargetingField; - - private MobileApplicationTargeting mobileApplicationTargetingField; - - private RequestPlatformTargeting requestPlatformTargetingField; - - /// Specifies what geographical locations are targeted by the LineItem. This attribute is optional. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public GeoTargeting geoTargeting { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool dfpLineItemIdSpecified { get { - return this.geoTargetingField; + return this.dfpLineItemIdFieldSpecified; } set { - this.geoTargetingField = value; + this.dfpLineItemIdFieldSpecified = value; } } - /// Specifies what inventory is targeted by the LineItem. - /// This attribute is required. The line item must target at least one ad unit or - /// placement. + /// The corresponding LineItemType of the + /// ProposalLineItem. For a programmatic , the value can + /// only be one of: + /// This attribute is required. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public InventoryTargeting inventoryTargeting { + [System.Xml.Serialization.XmlElementAttribute(Order = 16)] + public LineItemType lineItemType { get { - return this.inventoryTargetingField; + return this.lineItemTypeField; } set { - this.inventoryTargetingField = value; + this.lineItemTypeField = value; + this.lineItemTypeSpecified = true; } } - /// 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 { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool lineItemTypeSpecified { get { - return this.dayPartTargetingField; + return this.lineItemTypeFieldSpecified; } set { - this.dayPartTargetingField = value; + this.lineItemTypeFieldSpecified = value; } } - /// Specifies the browsing technologies that are targeted by the LineItem. This attribute is optional. + /// The priority for the corresponding LineItem of the + /// ProposalLineItem. This attribute is optional during creation and + /// defaults to the product's priority, or a default + /// value assigned by Google. See LineItem#priority + /// for more information. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public TechnologyTargeting technologyTargeting { + [System.Xml.Serialization.XmlElementAttribute(Order = 17)] + public int lineItemPriority { get { - return this.technologyTargetingField; + return this.lineItemPriorityField; } set { - this.technologyTargetingField = value; + this.lineItemPriorityField = value; + this.lineItemPrioritySpecified = true; } } - /// 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(Order = 4)] - public CustomCriteriaSet customTargeting { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool lineItemPrioritySpecified { get { - return this.customTargetingField; + return this.lineItemPriorityFieldSpecified; } set { - this.customTargetingField = value; + this.lineItemPriorityFieldSpecified = 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. + /// The method used for billing the ProposalLineItem. This attribute is read-only when:
    + ///
  • using programmatic guaranteed, using sales management.
  • not using + /// programmatic, using sales management.
This attribute is required when:
  • using programmatic + /// guaranteed, not using sales management.
///
- [System.Xml.Serialization.XmlElementAttribute(Order = 5)] - public UserDomainTargeting userDomainTargeting { + [System.Xml.Serialization.XmlElementAttribute(Order = 18)] + public RateType rateType { get { - return this.userDomainTargetingField; + return this.rateTypeField; } set { - this.userDomainTargetingField = value; + this.rateTypeField = value; + this.rateTypeSpecified = true; } } - /// Specifies the video categories and individual videos targeted by the LineItem. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 6)] - public ContentTargeting contentTargeting { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool rateTypeSpecified { get { - return this.contentTargetingField; + return this.rateTypeFieldSpecified; } set { - this.contentTargetingField = value; + this.rateTypeFieldSpecified = value; } } - /// Specifies targeting against video position types. + /// Details about the creatives that are expected to serve through the + /// ProposalLineItem. This attribute is optional during creation and + /// defaults to the product's creative + /// placeholders. This attribute is required + /// when:
  • using programmatic guaranteed, not using sales + /// management.
///
- [System.Xml.Serialization.XmlElementAttribute(Order = 7)] - public VideoPositionTargeting videoPositionTargeting { + [System.Xml.Serialization.XmlElementAttribute("creativePlaceholders", Order = 19)] + public CreativePlaceholder[] creativePlaceholders { get { - return this.videoPositionTargetingField; + return this.creativePlaceholdersField; } set { - this.videoPositionTargetingField = value; + this.creativePlaceholdersField = value; } } - /// Specifies targeting against mobile applications. + /// Contains the targeting criteria for the ProposalLineItem. This + /// attribute is optional during creation and defaults to the product's targeting. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 8)] - public MobileApplicationTargeting mobileApplicationTargeting { + [System.Xml.Serialization.XmlElementAttribute(Order = 20)] + public Targeting targeting { get { - return this.mobileApplicationTargetingField; + return this.targetingField; } set { - this.mobileApplicationTargetingField = value; + this.targetingField = value; } } - /// Specifies the request platforms that are targeted by the LineItem. This attribute is required for video line items. - ///

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.

+ /// 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(Order = 9)] - public RequestPlatformTargeting requestPlatformTargeting { + [System.Xml.Serialization.XmlElementAttribute("customFieldValues", Order = 21)] + public BaseCustomFieldValue[] customFieldValues { get { - return this.requestPlatformTargetingField; + return this.customFieldValuesField; } set { - this.requestPlatformTargetingField = value; + this.customFieldValuesField = 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 - /// excplicitly include California.
- ///
- [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class GeoTargeting { - private Location[] targetedLocationsField; - - private Location[] excludedLocationsField; - /// The geographical locations being targeted by the LineItem. + /// The set of labels applied directly to the ProposalLineItem. This + /// attribute is optional. /// - [System.Xml.Serialization.XmlElementAttribute("targetedLocations", Order = 0)] - public Location[] targetedLocations { + [System.Xml.Serialization.XmlElementAttribute("appliedLabels", Order = 22)] + public AppliedLabel[] appliedLabels { get { - return this.targetedLocationsField; + return this.appliedLabelsField; } set { - this.targetedLocationsField = value; + this.appliedLabelsField = value; } } - /// The geographical locations being excluded by the LineItem. + /// 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("excludedLocations", Order = 1)] - public Location[] excludedLocations { + [System.Xml.Serialization.XmlElementAttribute("effectiveAppliedLabels", Order = 23)] + public AppliedLabel[] effectiveAppliedLabels { get { - return this.excludedLocationsField; + return this.effectiveAppliedLabelsField; } set { - this.excludedLocationsField = value; + this.effectiveAppliedLabelsField = value; } } - } - - - /// 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.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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. + /// 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.

///
- [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public long id { + [System.Xml.Serialization.XmlElementAttribute(Order = 24)] + public bool disableSameAdvertiserCompetitiveExclusion { get { - return this.idField; + return this.disableSameAdvertiserCompetitiveExclusionField; } set { - this.idField = value; - this.idSpecified = true; + this.disableSameAdvertiserCompetitiveExclusionField = value; + this.disableSameAdvertiserCompetitiveExclusionSpecified = 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 disableSameAdvertiserCompetitiveExclusionSpecified { get { - return this.idFieldSpecified; + return this.disableSameAdvertiserCompetitiveExclusionFieldSpecified; } set { - this.idFieldSpecified = value; + this.disableSameAdvertiserCompetitiveExclusionFieldSpecified = value; } } - /// The location type for this geographical entity (ex. "COUNTRY", "CITY", "STATE", - /// "COUNTY", etc.) + /// Indicates whether this ProposalLineItem has been sold. This + /// attribute is read-only. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public string type { + [System.Xml.Serialization.XmlElementAttribute(Order = 25)] + public bool isSold { get { - return this.typeField; + return this.isSoldField; } set { - this.typeField = value; + this.isSoldField = value; + this.isSoldSpecified = true; } } - /// The nearest location parent's ID for this geographical entity. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public int canonicalParentId { + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool isSoldSpecified { get { - return this.canonicalParentIdField; + return this.isSoldFieldSpecified; } set { - this.canonicalParentIdField = value; - this.canonicalParentIdSpecified = true; + this.isSoldFieldSpecified = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool canonicalParentIdSpecified { + /// 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.

+ ///

When using sales management, at least one of the four fields ProposalLineItem#netRate, ProposalLineItem#grossRate, ProposalLineItem#netCost and ProposalLineItem#grossCost is + /// required.

When not using sales management, at least one of the two fields + /// ProposalLineItem#netRate and ProposalLineItem#netCost is required.

+ ///
+ [System.Xml.Serialization.XmlElementAttribute(Order = 26)] + public Money netRate { get { - return this.canonicalParentIdFieldSpecified; + return this.netRateField; } set { - this.canonicalParentIdFieldSpecified = value; + this.netRateField = value; } } - /// The localized name of the geographical entity. + /// 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.

+ ///

When using sales management, at least one of the four fields ProposalLineItem#netRate, ProposalLineItem#grossRate, ProposalLineItem#netCost and ProposalLineItem#grossCost is + /// required.

When not using sales management, at least one of the two fields + /// ProposalLineItem#netRate and ProposalLineItem#netCost is required.

///
- [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public string displayName { + [System.Xml.Serialization.XmlElementAttribute(Order = 27)] + public Money netCost { get { - return this.displayNameField; + return this.netCostField; } set { - this.displayNameField = value; + this.netCostField = value; } } - } - - - /// A collection of targeted and excluded ad units and placements. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class InventoryTargeting { - private AdUnitTargeting[] targetedAdUnitsField; - - private AdUnitTargeting[] excludedAdUnitsField; - - private long[] targetedPlacementIdsField; - /// A list of targeted AdUnitTargeting. + /// 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("targetedAdUnits", Order = 0)] - public AdUnitTargeting[] targetedAdUnits { + [System.Xml.Serialization.XmlElementAttribute(Order = 28)] + public DeliveryIndicator deliveryIndicator { get { - return this.targetedAdUnitsField; + return this.deliveryIndicatorField; } set { - this.targetedAdUnitsField = value; + this.deliveryIndicatorField = value; } } - /// A list of excluded AdUnitTargeting. + /// 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.
  5. This attribute is read-only.
///
- [System.Xml.Serialization.XmlElementAttribute("excludedAdUnits", Order = 1)] - public AdUnitTargeting[] excludedAdUnits { + [System.Xml.Serialization.XmlArrayAttribute(Order = 29)] + [System.Xml.Serialization.XmlArrayItemAttribute("units", IsNullable = false)] + public long[] deliveryData { get { - return this.excludedAdUnitsField; + return this.deliveryDataField; } set { - this.excludedAdUnitsField = value; + this.deliveryDataField = value; } } - /// A list of targeted Placement ids. + /// 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("targetedPlacementIds", Order = 2)] - public long[] targetedPlacementIds { + [System.Xml.Serialization.XmlElementAttribute(Order = 30)] + public ComputedStatus computedStatus { get { - return this.targetedPlacementIdsField; + return this.computedStatusField; } set { - this.targetedPlacementIdsField = value; + this.computedStatusField = value; + this.computedStatusSpecified = true; } } - } - - - /// Represents targeted or excluded ad units. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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 computedStatusSpecified { + get { + return this.computedStatusFieldSpecified; + } + set { + this.computedStatusFieldSpecified = value; + } + } - /// Included or excluded ad unit id. + /// 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 = 0)] - public string adUnitId { + [System.Xml.Serialization.XmlElementAttribute(Order = 31)] + public DateTime lastModifiedDateTime { get { - return this.adUnitIdField; + return this.lastModifiedDateTimeField; } set { - this.adUnitIdField = value; + this.lastModifiedDateTimeField = value; } } - /// 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. + /// The reservation status of the ProposalLineItem. + /// This attribute is read-only. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public bool includeDescendants { + [System.Xml.Serialization.XmlElementAttribute(Order = 32)] + public ReservationStatus reservationStatus { get { - return this.includeDescendantsField; + return this.reservationStatusField; } set { - this.includeDescendantsField = value; - this.includeDescendantsSpecified = true; + this.reservationStatusField = value; + this.reservationStatusSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="reservationStatus" />, false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool includeDescendantsSpecified { + public bool reservationStatusSpecified { get { - return this.includeDescendantsFieldSpecified; + return this.reservationStatusFieldSpecified; } set { - this.includeDescendantsFieldSpecified = value; + this.reservationStatusFieldSpecified = 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. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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.

+ /// The last DateTime when the ProposalLineItem reserved inventory. This attribute + /// is read-only. /// - [System.Xml.Serialization.XmlElementAttribute("dayParts", Order = 0)] - public DayPart[] dayParts { + [System.Xml.Serialization.XmlElementAttribute(Order = 33)] + public DateTime lastReservationDateTime { get { - return this.dayPartsField; + return this.lastReservationDateTimeField; } set { - this.dayPartsField = value; + this.lastReservationDateTimeField = 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.

+ /// 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 can only be changed if the #linkStatus is LinkStatus#UNLINKED. Otherwise its value 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 DeliveryTimeZone timeZone { + [System.Xml.Serialization.XmlElementAttribute(Order = 34)] + public EnvironmentType environmentType { get { - return this.timeZoneField; + return this.environmentTypeField; } set { - this.timeZoneField = value; - this.timeZoneSpecified = true; + this.environmentTypeField = value; + this.environmentTypeSpecified = 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 timeZoneSpecified { + public bool environmentTypeSpecified { get { - return this.timeZoneFieldSpecified; + return this.environmentTypeFieldSpecified; } set { - this.timeZoneFieldSpecified = value; + this.environmentTypeFieldSpecified = value; } } - } - - - /// DayPart represents a time-period within a day of the week which is - /// targeted by a LineItem. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class DayPart { - private DayOfWeek dayOfWeekField; - private bool dayOfWeekFieldSpecified; - - private TimeOfDay startTimeField; - - private TimeOfDay endTimeField; + /// 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("allowedFormats", Order = 35)] + public AllowedFormats[] allowedFormats { + get { + return this.allowedFormatsField; + } + set { + this.allowedFormatsField = value; + } + } - /// Day of the week the target applies to. This field is required. + /// Whether or not the Proposal for this is a + /// programmatic deal. This attribute is populated from Proposal#isProgrammatic. This attribute is + /// read-only. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public DayOfWeek dayOfWeek { + [System.Xml.Serialization.XmlElementAttribute(Order = 36)] + public bool isProgrammatic { get { - return this.dayOfWeekField; + return this.isProgrammaticField; } set { - this.dayOfWeekField = value; - this.dayOfWeekSpecified = true; + this.isProgrammaticField = value; + this.isProgrammaticSpecified = 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 isProgrammaticSpecified { get { - return this.dayOfWeekFieldSpecified; + return this.isProgrammaticFieldSpecified; } set { - this.dayOfWeekFieldSpecified = value; + this.isProgrammaticFieldSpecified = value; } } - /// Represents the start time of the targeted period (inclusive). + /// The marketplace info if this proposal line item is programmatic, null otherwise. + /// This attribute is applicable when: + ///
  • using programmatic guaranteed, using sales management.
  • using + /// programmatic guaranteed, not using sales management.
This attribute is required when:
    + ///
  • using programmatic guaranteed, using sales management.
  • using + /// programmatic guaranteed, not using sales management.
///
- [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public TimeOfDay startTime { + [System.Xml.Serialization.XmlElementAttribute(Order = 37)] + public ProposalLineItemMarketplaceInfo marketplaceInfo { get { - return this.startTimeField; + return this.marketplaceInfoField; } set { - this.startTimeField = value; + this.marketplaceInfoField = value; } } - /// Represents the end time of the targeted period (exclusive). + /// Additional terms shown to the buyer in Marketplace. This attribute is applicable when:
  • using + /// programmatic guaranteed, using sales management.
  • using programmatic + /// guaranteed, not using sales management.
///
- [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public TimeOfDay endTime { + [System.Xml.Serialization.XmlElementAttribute(Order = 38)] + public string additionalTerms { get { - return this.endTimeField; + return this.additionalTermsField; } set { - this.endTimeField = value; + this.additionalTermsField = value; } } - } - - - /// Days of the week. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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. + /// Indicates the ProgrammaticCreativeSource of the + /// programmatic line item. This attribute is + /// applicable when:
  • using programmatic guaranteed, using sales + /// management.
  • using programmatic guaranteed, not using sales + /// management.
///
- [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public int hour { + [System.Xml.Serialization.XmlElementAttribute(Order = 39)] + public ProgrammaticCreativeSource programmaticCreativeSource { get { - return this.hourField; + return this.programmaticCreativeSourceField; } set { - this.hourField = value; - this.hourSpecified = true; + this.programmaticCreativeSourceField = value; + this.programmaticCreativeSourceSpecified = 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 programmaticCreativeSourceSpecified { get { - return this.hourFieldSpecified; + return this.programmaticCreativeSourceFieldSpecified; } set { - this.hourFieldSpecified = value; + this.programmaticCreativeSourceFieldSpecified = value; } } - /// Minutes in an hour. Currently, only 0, 15, 30, and 45 are supported. This field - /// is required. + /// The estimated minimum impressions that should be delivered for a proposal line + /// item. This attribute is applicable + /// when:
  • using preferred deals, not using sales management.
  • + ///
///
- [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public MinuteOfHour minute { + [System.Xml.Serialization.XmlElementAttribute(Order = 40)] + public long estimatedMinimumImpressions { get { - return this.minuteField; + return this.estimatedMinimumImpressionsField; } set { - this.minuteField = value; - this.minuteSpecified = 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 minuteSpecified { + public bool estimatedMinimumImpressionsSpecified { get { - return this.minuteFieldSpecified; + return this.estimatedMinimumImpressionsFieldSpecified; } set { - this.minuteFieldSpecified = value; + this.estimatedMinimumImpressionsFieldSpecified = value; } } } - /// Minutes in an hour. Currently, only 0, 15, 30, and 45 are supported. This field - /// is required. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum DeliveryTimeZone { - /// Use the time zone of the publisher. - /// - PUBLISHER = 0, - /// Use the time zone of the browser. - /// - BROWSER = 1, - } - - - /// Provides LineItem objects the ability to target or - /// exclude technologies. + /// Defines the criteria a LineItem needs to satisfy to meet + /// its delivery goal. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class TechnologyTargeting { - private BandwidthGroupTargeting bandwidthGroupTargetingField; - - private BrowserTargeting browserTargetingField; - - private BrowserLanguageTargeting browserLanguageTargetingField; - - private DeviceCapabilityTargeting deviceCapabilityTargetingField; - - private DeviceCategoryTargeting deviceCategoryTargetingField; - - private DeviceManufacturerTargeting deviceManufacturerTargetingField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class Goal { + private GoalType goalTypeField; - private MobileCarrierTargeting mobileCarrierTargetingField; + private bool goalTypeFieldSpecified; - private MobileDeviceTargeting mobileDeviceTargetingField; + private UnitType unitTypeField; - private MobileDeviceSubmodelTargeting mobileDeviceSubmodelTargetingField; + private bool unitTypeFieldSpecified; - private OperatingSystemTargeting operatingSystemTargetingField; + private long unitsField; - private OperatingSystemVersionTargeting operatingSystemVersionTargetingField; + private bool unitsFieldSpecified; - /// The bandwidth groups being targeted by the LineItem. + /// 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 BandwidthGroupTargeting bandwidthGroupTargeting { + public GoalType goalType { get { - return this.bandwidthGroupTargetingField; + return this.goalTypeField; } set { - this.bandwidthGroupTargetingField = value; + this.goalTypeField = value; + this.goalTypeSpecified = true; } } - /// The browsers being targeted by the LineItem. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public BrowserTargeting browserTargeting { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool goalTypeSpecified { get { - return this.browserTargetingField; + return this.goalTypeFieldSpecified; } set { - this.browserTargetingField = value; + this.goalTypeFieldSpecified = value; } } - /// The languages of browsers being targeted by the LineItem. + /// The type of the goal unit for the LineItem. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public BrowserLanguageTargeting browserLanguageTargeting { + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public UnitType unitType { get { - return this.browserLanguageTargetingField; + return this.unitTypeField; } set { - this.browserLanguageTargetingField = value; + this.unitTypeField = value; + this.unitTypeSpecified = 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 unitTypeSpecified { get { - return this.deviceCapabilityTargetingField; + return this.unitTypeFieldSpecified; } set { - this.deviceCapabilityTargetingField = value; + this.unitTypeFieldSpecified = value; } } - /// The device categories being targeted by the LineItem. + /// 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 = 4)] - public DeviceCategoryTargeting deviceCategoryTargeting { + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public long units { get { - return this.deviceCategoryTargetingField; + return this.unitsField; } set { - this.deviceCategoryTargetingField = value; + this.unitsField = value; + this.unitsSpecified = true; } } - /// The device manufacturers being targeted by the LineItem. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 5)] - public DeviceManufacturerTargeting deviceManufacturerTargeting { + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool unitsSpecified { get { - return this.deviceManufacturerTargetingField; + return this.unitsFieldSpecified; } set { - this.deviceManufacturerTargetingField = value; + this.unitsFieldSpecified = value; } } + } - /// The mobile carriers being targeted by the LineItem. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 6)] - public MobileCarrierTargeting mobileCarrierTargeting { - get { - return this.mobileCarrierTargetingField; - } - set { - this.mobileCarrierTargetingField = value; - } - } - /// The mobile devices being targeted by the LineItem. + /// Specifies the type of the goal for a LineItem. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum GoalType { + /// No goal is specified for the number of ads delivered. The LineItem#lineItemType must be one of: /// - [System.Xml.Serialization.XmlElementAttribute(Order = 7)] - public MobileDeviceTargeting mobileDeviceTargeting { - get { - return this.mobileDeviceTargetingField; - } - set { - this.mobileDeviceTargetingField = value; - } - } - - /// The mobile device submodels being targeted by the LineItem. + 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: /// - [System.Xml.Serialization.XmlElementAttribute(Order = 8)] - public MobileDeviceSubmodelTargeting mobileDeviceSubmodelTargeting { - get { - return this.mobileDeviceSubmodelTargetingField; - } - set { - this.mobileDeviceSubmodelTargetingField = value; - } - } - - /// The operating systems being targeted by the LineItem. + LIFETIME = 1, + /// There is a daily goal on the number of ads delivered for this line item. The LineItem#lineItemType must be one of: /// - [System.Xml.Serialization.XmlElementAttribute(Order = 9)] - public OperatingSystemTargeting operatingSystemTargeting { - get { - return this.operatingSystemTargetingField; - } - set { - this.operatingSystemTargetingField = value; - } - } - - /// The operating system versions being targeted by the LineItem. + DAILY = 2, + /// The value returned if the actual value is not exposed by the requested API + /// version. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 10)] - public OperatingSystemVersionTargeting operatingSystemVersionTargeting { - get { - return this.operatingSystemVersionTargetingField; - } - set { - this.operatingSystemVersionTargetingField = value; - } - } + UNKNOWN = 3, } - /// Represents bandwidth groups that are being targeted or excluded by the LineItem. + /// Possible delivery rates for a LineItem, which dictate the + /// manner in which they are served. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum DeliveryRateType { + /// Line items are served as evenly as possible across the number of days specified + /// in a line item's LineItem#duration. /// - [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 { - get { - return this.isTargetedFieldSpecified; - } - set { - this.isTargetedFieldSpecified = value; - } - } - - /// The bandwidth groups that are being targeted or excluded by the LineItem. + EVENLY = 0, + /// Line items are served more aggressively in the beginning of the flight date. /// - [System.Xml.Serialization.XmlElementAttribute("bandwidthGroups", Order = 1)] - public Technology[] bandwidthGroups { - get { - return this.bandwidthGroupsField; - } - set { - this.bandwidthGroupsField = value; - } - } + 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, } - /// Represents a technology entity that can be targeted. + /// Describes the roadblocking types. /// - [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.6.1055.0")] [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum RoadblockingType { + /// Only one creative from a line item can serve at a time. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public long id { - get { - return this.idField; - } - set { - this.idField = value; - this.idSpecified = true; - } - } + 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, + } - /// 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. + /// The delivery option for companions. Used for line items whose environmentType is + /// EnvironmentType#VIDEO_PLAYER. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public string name { - get { - return this.nameField; - } - set { - this.nameField = value; - } - } + 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, } - /// Represents a specific version of an operating system. + /// 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.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class OperatingSystemVersion : Technology { - private int majorVersionField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class FrequencyCap { + private int maxImpressionsField; - private bool majorVersionFieldSpecified; + private bool maxImpressionsFieldSpecified; - private int minorVersionField; + private int numTimeUnitsField; - private bool minorVersionFieldSpecified; + private bool numTimeUnitsFieldSpecified; - private int microVersionField; + private TimeUnit timeUnitField; - private bool microVersionFieldSpecified; + private bool timeUnitFieldSpecified; - /// The operating system major version. + /// The maximum number of impressions than can be served to a user within a + /// specified time period. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public int majorVersion { + public int maxImpressions { get { - return this.majorVersionField; + return this.maxImpressionsField; } set { - this.majorVersionField = value; - this.majorVersionSpecified = true; + this.maxImpressionsField = value; + this.maxImpressionsSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="maxImpressions" />, false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool majorVersionSpecified { + public bool maxImpressionsSpecified { get { - return this.majorVersionFieldSpecified; + return this.maxImpressionsFieldSpecified; } set { - this.majorVersionFieldSpecified = value; + this.maxImpressionsFieldSpecified = value; } } - /// The operating system minor version. + /// The number of FrequencyCap#timeUnit to represent the total time + /// period. /// [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public int minorVersion { + public int numTimeUnits { get { - return this.minorVersionField; + return this.numTimeUnitsField; } set { - this.minorVersionField = value; - this.minorVersionSpecified = true; + this.numTimeUnitsField = value; + this.numTimeUnitsSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="numTimeUnits" />, false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool minorVersionSpecified { + public bool numTimeUnitsSpecified { get { - return this.minorVersionFieldSpecified; + return this.numTimeUnitsFieldSpecified; } set { - this.minorVersionFieldSpecified = value; + this.numTimeUnitsFieldSpecified = value; } } - /// The operating system micro version. + /// The unit of time for specifying the time period. /// [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public int microVersion { + public TimeUnit timeUnit { get { - return this.microVersionField; + return this.timeUnitField; } set { - this.microVersionField = value; - this.microVersionSpecified = true; + this.timeUnitField = value; + this.timeUnitSpecified = 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 microVersionSpecified { + public bool timeUnitSpecified { get { - return this.microVersionFieldSpecified; + return this.timeUnitFieldSpecified; } set { - this.microVersionFieldSpecified = value; + this.timeUnitFieldSpecified = value; } } } - /// Represents an Operating System, such as Linux, Mac OS or Windows. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class OperatingSystem : Technology { - } - - - /// Represents a mobile device submodel. + /// Represent the possible time units for frequency capping. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class MobileDeviceSubmodel : Technology { - private long mobileDeviceCriterionIdField; - - private bool mobileDeviceCriterionIdFieldSpecified; - - private long deviceManufacturerCriterionIdField; - - private bool deviceManufacturerCriterionIdFieldSpecified; - - /// The mobile device id. + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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 = 0)] - public long mobileDeviceCriterionId { - get { - return this.mobileDeviceCriterionIdField; - } - set { - 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; - } - } - - /// The device manufacturer id. + POD = 6, + /// Per video stream. Only valid for entities in a EnvironmentType#VIDEO_PLAYER + /// environment. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public long deviceManufacturerCriterionId { - get { - return this.deviceManufacturerCriterionIdField; - } - set { - this.deviceManufacturerCriterionIdField = value; - this.deviceManufacturerCriterionIdSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. + STREAM = 7, + /// The value returned if the actual value is not exposed by the requested API + /// version. /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool deviceManufacturerCriterionIdSpecified { - get { - return this.deviceManufacturerCriterionIdFieldSpecified; - } - set { - this.deviceManufacturerCriterionIdFieldSpecified = value; - } - } + UNKNOWN = 8, } - /// Represents a Mobile Device. + /// 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.6.1055.0")] [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class MobileDevice : Technology { - private long manufacturerCriterionIdField; - - private bool manufacturerCriterionIdFieldSpecified; - - /// Manufacturer Id. + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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 = 0)] - public long manufacturerCriterionId { - get { - return this.manufacturerCriterionIdField; - } - set { - this.manufacturerCriterionIdField = value; - this.manufacturerCriterionIdSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool manufacturerCriterionIdSpecified { - get { - return this.manufacturerCriterionIdFieldSpecified; - } - set { - this.manufacturerCriterionIdFieldSpecified = 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.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class MobileCarrier : Technology { - } - - - /// Represents a mobile device's manufacturer. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class DeviceManufacturer : Technology { - } - - - /// Represents the category of a device. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class DeviceCategory : Technology { + 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, } - /// Represents a capability of a physical device. + /// 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.6.1055.0")] [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class DeviceCapability : Technology { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum RateType { + /// The rate applies to cost per mille (CPM) revenue. + /// + CPM = 0, + /// The rate applies to cost per click (CPC) revenue. + /// + CPC = 1, + /// The rate applies to cost per day (CPD) revenue. + /// + CPD = 2, + /// The rate applies to cost per unit (CPU) revenue. + /// + CPU = 3, + /// The rate applies to flat fee revenue. + /// + FLAT_FEE = 4, + /// The rate applies to Active View viewable cost per mille (vCPM) revenue. + /// + VCPM = 6, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 5, } - /// Represents a Browser's language. + /// Represents a money amount. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class BrowserLanguage : Technology { - } - + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class Money { + private string currencyCodeField; - /// Represents an internet browser. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class Browser : Technology { - private string majorVersionField; + private long microAmountField; - private string minorVersionField; + private bool microAmountFieldSpecified; - /// Browser major version. + /// Three letter currency code in string format. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public string majorVersion { + public string currencyCode { get { - return this.majorVersionField; + return this.currencyCodeField; } set { - this.majorVersionField = value; + this.currencyCodeField = value; } } - /// Browser minor version. + /// 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 string minorVersion { + public long microAmount { get { - return this.minorVersionField; + return this.microAmountField; } set { - this.minorVersionField = value; + this.microAmountField = value; + this.microAmountSpecified = 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.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class BandwidthGroup : Technology { + /// 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; + } + } } - /// Represents browsers that are being targeted or excluded by the LineItem. + /// Indicates the delivery performance of the LineItem. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class BrowserTargeting { - private bool isTargetedField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class DeliveryIndicator { + private double expectedDeliveryPercentageField; - private bool isTargetedFieldSpecified; + private bool expectedDeliveryPercentageFieldSpecified; - private Technology[] browsersField; + private double actualDeliveryPercentageField; - /// Indicates whether browsers should be targeted or excluded. This attribute is - /// optional and defaults to true. + private bool actualDeliveryPercentageFieldSpecified; + + /// How much the LineItem was expected to deliver as a percentage of LineItem#primaryGoal. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public bool isTargeted { + public double expectedDeliveryPercentage { get { - return this.isTargetedField; + return this.expectedDeliveryPercentageField; } set { - this.isTargetedField = value; - this.isTargetedSpecified = true; + this.expectedDeliveryPercentageField = value; + this.expectedDeliveryPercentageSpecified = 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 expectedDeliveryPercentageSpecified { get { - return this.isTargetedFieldSpecified; + return this.expectedDeliveryPercentageFieldSpecified; } set { - this.isTargetedFieldSpecified = value; + this.expectedDeliveryPercentageFieldSpecified = value; } } - /// Browsers that are being targeted or excluded by the LineItem. + /// How much the line item actually delivered as a percentage of LineItem#primaryGoal. /// - [System.Xml.Serialization.XmlElementAttribute("browsers", Order = 1)] - public Technology[] browsers { + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public double actualDeliveryPercentage { get { - return this.browsersField; + return this.actualDeliveryPercentageField; } set { - this.browsersField = value; + this.actualDeliveryPercentageField = value; + this.actualDeliveryPercentageSpecified = true; + } + } + + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool actualDeliveryPercentageSpecified { + get { + return this.actualDeliveryPercentageFieldSpecified; + } + set { + this.actualDeliveryPercentageFieldSpecified = value; } } } - /// Represents browser languages that are being targeted or excluded by the LineItem. + /// Describes the computed LineItem status that is derived + /// from the current state of the line item. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class BrowserLanguageTargeting { - private bool isTargetedField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum ComputedStatus { + /// The LineItem has past its LineItem#endDateTime with an auto extension, but + /// hasn't met its goal. + /// + DELIVERY_EXTENDED = 0, + /// The LineItem has begun serving. + /// + DELIVERING = 1, + /// The LineItem has been activated and is ready to serve. + /// + READY = 2, + /// The LineItem has been paused from serving. + /// + PAUSED = 3, + /// The LineItem is inactive. It is either caused by missing + /// creatives or the network disabling auto-activation. + /// + INACTIVE = 4, + /// The LineItem has been paused and its reserved inventory + /// has been released. The LineItem will not serve. + /// + PAUSED_INVENTORY_RELEASED = 5, + /// The LineItem has been submitted for approval. + /// + PENDING_APPROVAL = 6, + /// The LineItem has completed its run. + /// + 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, + } - private bool isTargetedFieldSpecified; - private Technology[] browserLanguagesField; + /// Represents the inventory reservation status for ProposalLineItem objects. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum ReservationStatus { + /// The inventory is reserved. + /// + 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, + } - /// Indicates whether browsers languages should be targeted or excluded. This - /// attribute is optional and defaults to true. + + /// Enum for the valid environments in which ads can be shown. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum EnvironmentType { + /// A regular web browser. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public bool isTargeted { - get { - return this.isTargetedField; - } - set { - this.isTargetedField = value; - this.isTargetedSpecified = true; - } - } + BROWSER = 0, + /// Video players. + /// + VIDEO_PLAYER = 1, + } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool isTargetedSpecified { - get { - return this.isTargetedFieldSpecified; - } - set { - this.isTargetedFieldSpecified = value; - } - } - /// Browser languages that are being targeted or excluded by the LineItem. + /// The formats that a publisher allows on their programmatic LineItem or ProposalLineItem. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum AllowedFormats { + /// Audio format. This is only relevant for programmatic video line items. /// - [System.Xml.Serialization.XmlElementAttribute("browserLanguages", Order = 1)] - public Technology[] browserLanguages { - get { - return this.browserLanguagesField; - } - set { - this.browserLanguagesField = value; - } - } + AUDIO = 0, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 1, } - /// Represents device capabilities that are being targeted or excluded by the Types of programmatic creative sources. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum ProgrammaticCreativeSource { + /// Indicates that the programmatic line item is associated with creatives provided + /// by the publisher. + /// + 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, + } + + + /// Represents the creative targeting criteria for a LineItem. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class DeviceCapabilityTargeting { - private Technology[] targetedDeviceCapabilitiesField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class CreativeTargeting { + private string nameField; - private Technology[] excludedDeviceCapabilitiesField; + private Targeting targetingField; - /// Device capabilities that are being targeted by the LineItem. + /// The name of this creative targeting. This attribute is required. /// - [System.Xml.Serialization.XmlElementAttribute("targetedDeviceCapabilities", Order = 0)] - public Technology[] targetedDeviceCapabilities { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public string name { get { - return this.targetedDeviceCapabilitiesField; + return this.nameField; } set { - this.targetedDeviceCapabilitiesField = value; + this.nameField = value; } } - /// Device capabilities that are being excluded by the LineItem. + /// The Targeting criteria of this creative targeting. This + /// attribute is required. /// - [System.Xml.Serialization.XmlElementAttribute("excludedDeviceCapabilities", Order = 1)] - public Technology[] excludedDeviceCapabilities { + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public Targeting targeting { get { - return this.excludedDeviceCapabilitiesField; + return this.targetingField; } set { - this.excludedDeviceCapabilitiesField = value; + this.targetingField = value; } } } - /// Represents device categories that are being targeted or excluded by the LineItem. + /// Data transfer object for the exchange deal info of a line item. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class DeviceCategoryTargeting { - private Technology[] targetedDeviceCategoriesField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class LineItemDealInfoDto { + private long externalDealIdField; - private Technology[] excludedDeviceCategoriesField; + private bool externalDealIdFieldSpecified; - /// Device categories that are being targeted by the LineItem. + /// 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("targetedDeviceCategories", Order = 0)] - public Technology[] targetedDeviceCategories { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public long externalDealId { get { - return this.targetedDeviceCategoriesField; + return this.externalDealIdField; } set { - this.targetedDeviceCategoriesField = value; + this.externalDealIdField = value; + this.externalDealIdSpecified = true; } } - /// Device categories that are being excluded by the LineItem. - /// - [System.Xml.Serialization.XmlElementAttribute("excludedDeviceCategories", Order = 1)] - public Technology[] excludedDeviceCategories { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool externalDealIdSpecified { get { - return this.excludedDeviceCategoriesField; + return this.externalDealIdFieldSpecified; } set { - this.excludedDeviceCategoriesField = value; + this.externalDealIdFieldSpecified = value; } } } - /// Represents device manufacturer that are being targeted or excluded by the LineItem. + /// 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.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class DeviceManufacturerTargeting { - private bool isTargetedField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class GrpSettings { + private long minTargetAgeField; - private bool isTargetedFieldSpecified; + private bool minTargetAgeFieldSpecified; - private Technology[] deviceManufacturersField; + private long maxTargetAgeField; - /// Indicates whether device manufacturers should be targeted or excluded. This - /// attribute is optional and defaults to true. + private bool maxTargetAgeFieldSpecified; + + private GrpTargetGender targetGenderField; + + private bool targetGenderFieldSpecified; + + private GrpProvider providerField; + + private bool providerFieldSpecified; + + private long targetImpressionGoalField; + + private bool targetImpressionGoalFieldSpecified; + + private bool enableNielsenCoViewingSupportField; + + private bool enableNielsenCoViewingSupportFieldSpecified; + + /// 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 bool isTargeted { + public long minTargetAge { get { - return this.isTargetedField; + return this.minTargetAgeField; } set { - this.isTargetedField = value; - this.isTargetedSpecified = 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 isTargetedSpecified { + public bool minTargetAgeSpecified { get { - return this.isTargetedFieldSpecified; + return this.minTargetAgeFieldSpecified; } set { - this.isTargetedFieldSpecified = value; + this.minTargetAgeFieldSpecified = value; } } - /// Device manufacturers that are being targeted or excluded by the LineItem. + /// Specifies the maximum target age (in years) of the LineItem. This field is only applicable if #provider is not null. /// - [System.Xml.Serialization.XmlElementAttribute("deviceManufacturers", Order = 1)] - public Technology[] deviceManufacturers { + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public long maxTargetAge { get { - return this.deviceManufacturersField; + return this.maxTargetAgeField; } set { - this.deviceManufacturersField = value; + this.maxTargetAgeField = value; + this.maxTargetAgeSpecified = true; } } - } - - - /// Represents mobile carriers that are being targeted or excluded by the LineItem. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class MobileCarrierTargeting { - private bool isTargetedField; - - private bool isTargetedFieldSpecified; - - private Technology[] mobileCarriersField; - /// Indicates whether mobile carriers 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 maxTargetAgeSpecified { get { - return this.isTargetedField; + return this.maxTargetAgeFieldSpecified; } set { - this.isTargetedField = value; - this.isTargetedSpecified = true; + this.maxTargetAgeFieldSpecified = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool isTargetedSpecified { + /// 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.isTargetedFieldSpecified; + return this.targetGenderField; } set { - this.isTargetedFieldSpecified = value; + this.targetGenderField = value; + this.targetGenderSpecified = true; } } - /// Mobile carriers that are being targeted or excluded by the LineItem. - /// - [System.Xml.Serialization.XmlElementAttribute("mobileCarriers", Order = 1)] - public Technology[] mobileCarriers { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool targetGenderSpecified { get { - return this.mobileCarriersField; + return this.targetGenderFieldSpecified; } set { - this.mobileCarriersField = value; + this.targetGenderFieldSpecified = value; } } - } - - - /// Represents mobile devices that are being targeted or excluded by the LineItem. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class MobileDeviceTargeting { - private Technology[] targetedMobileDevicesField; - - private Technology[] excludedMobileDevicesField; - /// Mobile devices that are being targeted by the LineItem. + /// Specifies the GRP provider of the LineItem. /// - [System.Xml.Serialization.XmlElementAttribute("targetedMobileDevices", Order = 0)] - public Technology[] targetedMobileDevices { + [System.Xml.Serialization.XmlElementAttribute(Order = 3)] + public GrpProvider provider { get { - return this.targetedMobileDevicesField; + return this.providerField; } set { - this.targetedMobileDevicesField = value; + this.providerField = value; + this.providerSpecified = true; } } - /// Mobile devices that are being excluded by the LineItem. - /// - [System.Xml.Serialization.XmlElementAttribute("excludedMobileDevices", Order = 1)] - public Technology[] excludedMobileDevices { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool providerSpecified { get { - return this.excludedMobileDevicesField; + return this.providerFieldSpecified; } set { - this.excludedMobileDevicesField = value; + this.providerFieldSpecified = value; } } - } - - - /// Represents mobile devices that are being targeted or excluded by the LineItem. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class MobileDeviceSubmodelTargeting { - private Technology[] targetedMobileDeviceSubmodelsField; - - private Technology[] excludedMobileDeviceSubmodelsField; - /// Mobile device submodels that are being targeted by the LineItem. + /// 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. /// - [System.Xml.Serialization.XmlElementAttribute("targetedMobileDeviceSubmodels", Order = 0)] - public Technology[] targetedMobileDeviceSubmodels { + [System.Xml.Serialization.XmlElementAttribute(Order = 4)] + public long targetImpressionGoal { get { - return this.targetedMobileDeviceSubmodelsField; + return this.targetImpressionGoalField; } set { - this.targetedMobileDeviceSubmodelsField = value; + this.targetImpressionGoalField = value; + this.targetImpressionGoalSpecified = true; } } - /// Mobile device submodels that are being excluded by the LineItem. - /// - [System.Xml.Serialization.XmlElementAttribute("excludedMobileDeviceSubmodels", Order = 1)] - public Technology[] excludedMobileDeviceSubmodels { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool targetImpressionGoalSpecified { get { - return this.excludedMobileDeviceSubmodelsField; + return this.targetImpressionGoalFieldSpecified; } set { - this.excludedMobileDeviceSubmodelsField = value; + this.targetImpressionGoalFieldSpecified = value; } } - } - - - /// Represents operating systems that are being targeted or excluded by the LineItem. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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. + /// Specifiies whether to enable Nielsen co-viewing for line items using Nielsen as + /// a GRP provider. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public bool isTargeted { + [System.Xml.Serialization.XmlElementAttribute(Order = 5)] + public bool enableNielsenCoViewingSupport { get { - return this.isTargetedField; + return this.enableNielsenCoViewingSupportField; } set { - this.isTargetedField = value; - this.isTargetedSpecified = true; + this.enableNielsenCoViewingSupportField = value; + this.enableNielsenCoViewingSupportSpecified = 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 enableNielsenCoViewingSupportSpecified { get { - return this.isTargetedFieldSpecified; + return this.enableNielsenCoViewingSupportFieldSpecified; } set { - this.isTargetedFieldSpecified = value; + this.enableNielsenCoViewingSupportFieldSpecified = value; } } + } - /// Operating systems that are being targeted or excluded by the LineItem. + + /// Represents the target gender for a GRP demographic targeted line item. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum GrpTargetGender { + /// The value returned if the actual value is not exposed by the requested API + /// version. /// - [System.Xml.Serialization.XmlElementAttribute("operatingSystems", Order = 1)] - public Technology[] operatingSystems { - get { - return this.operatingSystemsField; - } - set { - this.operatingSystemsField = 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, } - /// Represents operating system versions that are being targeted or excluded by the - /// LineItem. + /// Represents available GRP providers that a line item will have its target + /// demographic measured by. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum GrpProvider { + /// 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, + } + + + /// Contains data used to display information synchronized with Canoe for set-top + /// box enabled LineItem line items. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class OperatingSystemVersionTargeting { - private Technology[] targetedOperatingSystemVersionsField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class SetTopBoxInfo { + private SetTopBoxSyncStatus syncStatusField; - private Technology[] excludedOperatingSystemVersionsField; + private bool syncStatusFieldSpecified; - /// Operating system versions that are being targeted by the LineItem. + private CanoeSyncResult lastSyncResultField; + + private bool lastSyncResultFieldSpecified; + + private string lastSyncCanoeResponseMessageField; + + private string nielsenProductCategoryCodeField; + + /// Indicates if the line item is ready to be synced with Canoe or if there are + /// changes on this line item that are waiting to be pushed on the next sync with + /// Canoe. This attribute is read-only. /// - [System.Xml.Serialization.XmlElementAttribute("targetedOperatingSystemVersions", Order = 0)] - public Technology[] targetedOperatingSystemVersions { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public SetTopBoxSyncStatus syncStatus { get { - return this.targetedOperatingSystemVersionsField; + return this.syncStatusField; } set { - this.targetedOperatingSystemVersionsField = value; + this.syncStatusField = value; + this.syncStatusSpecified = true; } } - /// Operating system versions that are being excluded by the LineItem. - /// - [System.Xml.Serialization.XmlElementAttribute("excludedOperatingSystemVersions", Order = 1)] - public Technology[] excludedOperatingSystemVersions { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool syncStatusSpecified { get { - return this.excludedOperatingSystemVersionsField; + return this.syncStatusFieldSpecified; } set { - this.excludedOperatingSystemVersionsField = value; + this.syncStatusFieldSpecified = 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.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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. + /// The result of the last sync attempt with Canoe. This attribute is read-only. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public CustomCriteriaSetLogicalOperator logicalOperator { + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public CanoeSyncResult lastSyncResult { get { - return this.logicalOperatorField; + return this.lastSyncResultField; } set { - this.logicalOperatorField = value; - this.logicalOperatorSpecified = true; + this.lastSyncResultField = value; + this.lastSyncResultSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="lastSyncResult" />, false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool logicalOperatorSpecified { + public bool lastSyncResultSpecified { get { - return this.logicalOperatorFieldSpecified; + return this.lastSyncResultFieldSpecified; } set { - this.logicalOperatorFieldSpecified = value; + this.lastSyncResultFieldSpecified = value; } } - /// The custom criteria. This attribute is required. + /// The response that Canoe sent for the last sync attempt. This attribute is + /// read-only. /// - [System.Xml.Serialization.XmlElementAttribute("children", Order = 1)] - public CustomCriteriaNode[] children { + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public string lastSyncCanoeResponseMessage { get { - return this.childrenField; + return this.lastSyncCanoeResponseMessageField; } set { - this.childrenField = value; + this.lastSyncCanoeResponseMessageField = value; + } + } + + /// The Nielsen product category code for the line item. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 3)] + public string nielsenProductCategoryCode { + get { + return this.nielsenProductCategoryCodeField; + } + set { + this.nielsenProductCategoryCodeField = value; } } } - /// Specifies the available logical operators. + /// The set top box line item sync status. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CustomCriteriaSet.LogicalOperator", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum CustomCriteriaSetLogicalOperator { - AND = 0, - OR = 1, + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum SetTopBoxSyncStatus { + /// The line item is not ready to be synced. + /// + NOT_READY = 0, + /// The line item is currently being synced. + /// + SYNC_PENDING = 1, + /// The line item has been synced. + /// + SYNCED = 2, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 3, } - /// 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. + /// Represents sync result types between set-top box enabled line + /// items and Canoe. /// - [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.6.1055.0")] [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public abstract partial class CustomCriteriaNode { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum CanoeSyncResult { + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 0, + /// Sync message was accepted by Canoe. + /// + ACCEPTED = 1, + /// Sync message was rejected by Canoe. + /// + REJECTED = 2, } - /// A CustomCriteriaLeaf object represents a - /// generic leaf of CustomCriteria tree structure. + /// Stats contains trafficking statistics for LineItem and LineItemCreativeAssociation objects /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(AudienceSegmentCriteria))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(CmsMetadataCriteria))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(CustomCriteria))] [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public abstract partial class CustomCriteriaLeaf : CustomCriteriaNode { - } + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class Stats { + private long impressionsDeliveredField; + private bool impressionsDeliveredFieldSpecified; - /// An AudienceSegmentCriteria object is used - /// to target AudienceSegment objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class AudienceSegmentCriteria : CustomCriteriaLeaf { - private AudienceSegmentCriteriaComparisonOperator operatorField; + private long clicksDeliveredField; - private bool operatorFieldSpecified; + private bool clicksDeliveredFieldSpecified; - private long[] audienceSegmentIdsField; + private long videoCompletionsDeliveredField; - /// The comparison operator. This attribute is required. + private bool videoCompletionsDeliveredFieldSpecified; + + private long videoStartsDeliveredField; + + private bool videoStartsDeliveredFieldSpecified; + + private long viewableImpressionsDeliveredField; + + private bool viewableImpressionsDeliveredFieldSpecified; + + /// The number of impressions delivered. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public AudienceSegmentCriteriaComparisonOperator @operator { + public long impressionsDelivered { get { - return this.operatorField; + return this.impressionsDeliveredField; } set { - this.operatorField = value; - this.operatorSpecified = true; + this.impressionsDeliveredField = value; + this.impressionsDeliveredSpecified = 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 impressionsDeliveredSpecified { get { - return this.operatorFieldSpecified; + return this.impressionsDeliveredFieldSpecified; } set { - this.operatorFieldSpecified = value; + this.impressionsDeliveredFieldSpecified = value; } } - /// The ids of AudienceSegment objects used to target - /// audience segments. This attribute is required. + /// The number of clicks delivered. /// - [System.Xml.Serialization.XmlElementAttribute("audienceSegmentIds", Order = 1)] - public long[] audienceSegmentIds { + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public long clicksDelivered { get { - return this.audienceSegmentIdsField; + return this.clicksDeliveredField; } set { - this.audienceSegmentIdsField = value; + this.clicksDeliveredField = value; + this.clicksDeliveredSpecified = true; } } - } - - - /// Specifies the available comparison operators. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AudienceSegmentCriteria.ComparisonOperator", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum AudienceSegmentCriteriaComparisonOperator { - IS = 0, - IS_NOT = 1, - } - - /// A CmsMetadataCriteria object is used to target - /// objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class CmsMetadataCriteria : CustomCriteriaLeaf { - private CmsMetadataCriteriaComparisonOperator operatorField; - - private bool operatorFieldSpecified; - - private long[] cmsMetadataValueIdsField; + /// 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 comparison operator. This attribute is required. + /// The number of video completions delivered. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public CmsMetadataCriteriaComparisonOperator @operator { + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public long videoCompletionsDelivered { get { - return this.operatorField; + return this.videoCompletionsDeliveredField; } set { - this.operatorField = value; - this.operatorSpecified = true; + this.videoCompletionsDeliveredField = value; + this.videoCompletionsDeliveredSpecified = 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 videoCompletionsDeliveredSpecified { get { - return this.operatorFieldSpecified; + return this.videoCompletionsDeliveredFieldSpecified; } set { - this.operatorFieldSpecified = value; + this.videoCompletionsDeliveredFieldSpecified = value; } } - /// The ids of CmsMetadataValue objects used to - /// target CMS metadata. This attribute is required. + /// The number of video starts delivered. /// - [System.Xml.Serialization.XmlElementAttribute("cmsMetadataValueIds", Order = 1)] - public long[] cmsMetadataValueIds { + [System.Xml.Serialization.XmlElementAttribute(Order = 3)] + public long videoStartsDelivered { get { - return this.cmsMetadataValueIdsField; + return this.videoStartsDeliveredField; } set { - this.cmsMetadataValueIdsField = value; + 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 { + get { + return this.videoStartsDeliveredFieldSpecified; + } + set { + this.videoStartsDeliveredFieldSpecified = value; + } + } - /// Specifies the available comparison operators. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CmsMetadataCriteria.ComparisonOperator", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum CmsMetadataCriteriaComparisonOperator { - EQUALS = 0, - NOT_EQUALS = 1, + /// The number of viewable impressions delivered. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 4)] + public long viewableImpressionsDelivered { + get { + return this.viewableImpressionsDeliveredField; + } + set { + this.viewableImpressionsDeliveredField = value; + this.viewableImpressionsDeliveredSpecified = true; + } + } + + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool viewableImpressionsDeliveredSpecified { + get { + return this.viewableImpressionsDeliveredFieldSpecified; + } + set { + this.viewableImpressionsDeliveredFieldSpecified = value; + } + } } - /// A CustomCriteria object is used to perform custom - /// criteria targeting on custom targeting keys of type CustomTargetingKey.Type#PREDEFINED - /// or CustomTargetingKey.Type#FREEFORM. + /// 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.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class CustomCriteria : CustomCriteriaLeaf { - private long keyIdField; - - private bool keyIdFieldSpecified; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class LineItemActivityAssociation { + private int activityIdField; - private long[] valueIdsField; + private bool activityIdFieldSpecified; - private CustomCriteriaComparisonOperator operatorField; + private Money clickThroughConversionCostField; - private bool operatorFieldSpecified; + private Money viewThroughConversionCostField; - /// The CustomTargetingKey#id of the CustomTargetingKey object that was created using - /// CustomTargetingService. This attribute is - /// required. + /// The ID of the Activity to which the LineItem should be associated. This attribute is required. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public long keyId { + public int activityId { get { - return this.keyIdField; + return this.activityIdField; } set { - this.keyIdField = value; - this.keyIdSpecified = 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 keyIdSpecified { + public bool activityIdSpecified { get { - return this.keyIdFieldSpecified; + return this.activityIdFieldSpecified; } set { - this.keyIdFieldSpecified = value; + this.activityIdFieldSpecified = value; } } - /// The ids of CustomTargetingValue objects to - /// target the custom targeting key with id CustomCriteria#keyId. This attribute is - /// required. + /// 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("valueIds", Order = 1)] - public long[] valueIds { + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public Money clickThroughConversionCost { get { - return this.valueIdsField; + return this.clickThroughConversionCostField; } set { - this.valueIdsField = value; + this.clickThroughConversionCostField = value; } } - /// The comparison operator. This attribute is required. + /// 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 CustomCriteriaComparisonOperator @operator { - get { - return this.operatorField; - } - set { - this.operatorField = value; - this.operatorSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool operatorSpecified { + public Money viewThroughConversionCost { get { - return this.operatorFieldSpecified; + return this.viewThroughConversionCostField; } set { - this.operatorFieldSpecified = value; + this.viewThroughConversionCostField = value; } } } - /// Specifies the available comparison operators. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CustomCriteria.ComparisonOperator", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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. + /// The LineItemSummary represents the base class from which a + /// LineItem is derived. /// + [System.Xml.Serialization.XmlIncludeAttribute(typeof(LineItem))] [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class UserDomainTargeting { - private string[] domainsField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class LineItemSummary { + private long orderIdField; - private bool targetedField; + private bool orderIdFieldSpecified; - private bool targetedFieldSpecified; + private long idField; - /// 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. + 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 RoadblockingType roadblockingTypeField; + + private bool roadblockingTypeFieldSpecified; + + 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 DateTime lastModifiedDateTimeField; + + private DateTime creationDateTimeField; + + private bool isPrioritizedPreferredDealsEnabledField; + + private bool isPrioritizedPreferredDealsEnabledFieldSpecified; + + private int adExchangeAuctionOpeningPriorityField; + + private bool adExchangeAuctionOpeningPriorityFieldSpecified; + + private BaseCustomFieldValue[] customFieldValuesField; + + private bool isSetTopBoxEnabledField; + + private bool isSetTopBoxEnabledFieldSpecified; + + private bool isMissingCreativesField; + + private bool isMissingCreativesFieldSpecified; + + private SetTopBoxInfo setTopBoxDisplayInfoField; + + private ProgrammaticCreativeSource programmaticCreativeSourceField; + + private bool programmaticCreativeSourceFieldSpecified; + + private long videoMaxDurationField; + + private bool videoMaxDurationFieldSpecified; + + private Goal primaryGoalField; + + private Goal[] secondaryGoalsField; + + private GrpSettings grpSettingsField; + + private LineItemDealInfoDto dealInfoField; + + private long viewabilityProviderCompanyIdField; + + private bool viewabilityProviderCompanyIdFieldSpecified; + + private UserConsentEligibility userConsentEligibilityField; + + private bool userConsentEligibilityFieldSpecified; + + private ChildContentEligibility childContentEligibilityField; + + private bool childContentEligibilityFieldSpecified; + + /// The ID of the Order to which the belongs. This + /// attribute is required. /// - [System.Xml.Serialization.XmlElementAttribute("domains", Order = 0)] - public string[] domains { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public long orderId { get { - return this.domainsField; + return this.orderIdField; } set { - this.domainsField = value; + this.orderIdField = value; + this.orderIdSpecified = true; } } - /// Indicates whether domains should be targeted or excluded. This attribute is - /// optional and defaults to 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; + } + } + + /// Uniquely identifies the LineItem. This attribute is read-only and + /// is assigned by Google when a line item is created. /// [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public bool targeted { + public long id { get { - return this.targetedField; + return this.idField; } set { - this.targetedField = value; - this.targetedSpecified = 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 targetedSpecified { + public bool idSpecified { get { - return this.targetedFieldSpecified; + return this.idFieldSpecified; } set { - this.targetedFieldSpecified = value; + this.idFieldSpecified = value; } } - } - - - /// Used to target LineItems to specific videos on a - /// publisher's site. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ContentTargeting { - private long[] targetedContentIdsField; - - private long[] excludedContentIdsField; - - private long[] targetedVideoContentBundleIdsField; - private long[] excludedVideoContentBundleIdsField; - - private ContentMetadataKeyHierarchyTargeting[] targetedContentMetadataField; - - private ContentMetadataKeyHierarchyTargeting[] excludedContentMetadataField; - - /// The IDs of content being targeted by the LineItem. + /// The name of the line item. This attribute is required and has a maximum length + /// of 255 characters. /// - [System.Xml.Serialization.XmlElementAttribute("targetedContentIds", Order = 0)] - public long[] targetedContentIds { + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public string name { get { - return this.targetedContentIdsField; + return this.nameField; } set { - this.targetedContentIdsField = value; + this.nameField = value; } } - /// The IDs of content being excluded by the LineItem. + /// 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("excludedContentIds", Order = 1)] - public long[] excludedContentIds { + [System.Xml.Serialization.XmlElementAttribute(Order = 3)] + public string externalId { get { - return this.excludedContentIdsField; + return this.externalIdField; } set { - this.excludedContentIdsField = value; + this.externalIdField = value; } } - /// A list of video content bundles, represented by ContentBundle IDs, that are being targeted by the - /// LineItem. + /// The name of the Order. This value is read-only. /// - [System.Xml.Serialization.XmlElementAttribute("targetedVideoContentBundleIds", Order = 2)] - public long[] targetedVideoContentBundleIds { + [System.Xml.Serialization.XmlElementAttribute(Order = 4)] + public string orderName { get { - return this.targetedVideoContentBundleIdsField; + return this.orderNameField; } set { - this.targetedVideoContentBundleIdsField = value; + this.orderNameField = value; } } - /// A list of video content bundles, represented by ContentBundle IDs, that are being excluded 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("excludedVideoContentBundleIds", Order = 3)] - public long[] excludedVideoContentBundleIds { + [System.Xml.Serialization.XmlElementAttribute(Order = 5)] + public DateTime startDateTime { get { - return this.excludedVideoContentBundleIdsField; + return this.startDateTimeField; } set { - this.excludedVideoContentBundleIdsField = value; + this.startDateTimeField = value; } } - /// A list of content metadata within hierarchies that are being targeted 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("targetedContentMetadata", Order = 4)] - public ContentMetadataKeyHierarchyTargeting[] targetedContentMetadata { + [System.Xml.Serialization.XmlElementAttribute(Order = 6)] + public StartDateTimeType startDateTimeType { get { - return this.targetedContentMetadataField; + return this.startDateTimeTypeField; } set { - this.targetedContentMetadataField = value; + this.startDateTimeTypeField = value; + this.startDateTimeTypeSpecified = true; } } - /// A list of content metadata within hierarchies that are being excluded by the - /// LineItem. - /// - [System.Xml.Serialization.XmlElementAttribute("excludedContentMetadata", Order = 5)] - public ContentMetadataKeyHierarchyTargeting[] excludedContentMetadata { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool startDateTimeTypeSpecified { get { - return this.excludedContentMetadataField; + return this.startDateTimeTypeFieldSpecified; } set { - this.excludedContentMetadataField = value; + this.startDateTimeTypeFieldSpecified = value; } } - } - - - /// Represents one or more custom targeting - /// values from different CustomTargetingKey custom targeting - /// keys ANDed together. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ContentMetadataKeyHierarchyTargeting { - private long[] customTargetingValueIdsField; - /// The list of IDs of the targeted CustomTargetingValue objects that are ANDed - /// together.

Targeting values do not need to be in the order of the hierarchy - /// levels. For example, if the hierarchy is "show > season > genre" the - /// values could be "season=3, show=30rock, genre=comedy."

+ /// 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("customTargetingValueIds", Order = 0)] - public long[] customTargetingValueIds { + [System.Xml.Serialization.XmlElementAttribute(Order = 7)] + public DateTime endDateTime { get { - return this.customTargetingValueIdsField; + return this.endDateTimeField; } set { - this.customTargetingValueIdsField = value; + this.endDateTimeField = 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. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 8)] + public int autoExtensionDays { + get { + return this.autoExtensionDaysField; + } + set { + this.autoExtensionDaysField = value; + this.autoExtensionDaysSpecified = true; + } + } - /// 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).

- ///
- [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class VideoPositionTargeting { - private VideoPositionTarget[] targetedPositionsField; + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool autoExtensionDaysSpecified { + get { + return this.autoExtensionDaysFieldSpecified; + } + set { + this.autoExtensionDaysFieldSpecified = value; + } + } - /// The VideoTargetingPosition objects being - /// targeted by the video 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("targetedPositions", Order = 0)] - public VideoPositionTarget[] targetedPositions { + [System.Xml.Serialization.XmlElementAttribute(Order = 9)] + public bool unlimitedEndDateTime { get { - return this.targetedPositionsField; + return this.unlimitedEndDateTimeField; } set { - this.targetedPositionsField = value; + this.unlimitedEndDateTimeField = value; + this.unlimitedEndDateTimeSpecified = true; } } - } - - - /// Represents the options for targetable positions within a video. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class VideoPositionTarget { - private VideoPosition videoPositionField; - - private VideoBumperType videoBumperTypeField; - - private bool videoBumperTypeFieldSpecified; - - private VideoPositionWithinPod videoPositionWithinPodField; - /// The video position to target. This attribute is required. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public VideoPosition videoPosition { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool unlimitedEndDateTimeSpecified { get { - return this.videoPositionField; + return this.unlimitedEndDateTimeFieldSpecified; } set { - this.videoPositionField = value; + this.unlimitedEndDateTimeFieldSpecified = 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 strategy used for displaying multiple Creative + /// objects that are associated with the . This attribute is required. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public VideoBumperType videoBumperType { + [System.Xml.Serialization.XmlElementAttribute(Order = 10)] + public CreativeRotationType creativeRotationType { get { - return this.videoBumperTypeField; + return this.creativeRotationTypeField; } set { - this.videoBumperTypeField = value; - this.videoBumperTypeSpecified = true; + this.creativeRotationTypeField = value; + this.creativeRotationTypeSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="creativeRotationType" />, false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool videoBumperTypeSpecified { + public bool creativeRotationTypeSpecified { get { - return this.videoBumperTypeFieldSpecified; + return this.creativeRotationTypeFieldSpecified; } set { - this.videoBumperTypeFieldSpecified = value; + this.creativeRotationTypeFieldSpecified = 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 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 = 2)] - public VideoPositionWithinPod videoPositionWithinPod { + [System.Xml.Serialization.XmlElementAttribute(Order = 11)] + public DeliveryRateType deliveryRateType { get { - return this.videoPositionWithinPodField; + return this.deliveryRateTypeField; } set { - this.videoPositionWithinPodField = value; + this.deliveryRateTypeField = value; + this.deliveryRateTypeSpecified = true; } } - } - - /// 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.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class VideoPosition { - private VideoPositionType positionTypeField; - - private bool positionTypeFieldSpecified; - - private int midrollIndexField; - - private bool midrollIndexFieldSpecified; + /// 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 type of video position (pre-roll, mid-roll, or post-roll). + /// 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 VideoPositionType positionType { + [System.Xml.Serialization.XmlElementAttribute(Order = 12)] + public DeliveryForecastSource deliveryForecastSource { get { - return this.positionTypeField; + return this.deliveryForecastSourceField; } set { - this.positionTypeField = value; - this.positionTypeSpecified = true; + this.deliveryForecastSourceField = value; + this.deliveryForecastSourceSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="deliveryForecastSource" />, false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool positionTypeSpecified { + public bool deliveryForecastSourceSpecified { get { - return this.positionTypeFieldSpecified; + return this.deliveryForecastSourceFieldSpecified; } set { - this.positionTypeFieldSpecified = value; + this.deliveryForecastSourceFieldSpecified = value; } } - /// The index of the mid-roll to target. Only valid if the positionType is VideoPositionType#MIDROLL, otherwise this - /// field will be ignored. + /// 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 = 1)] - public int midrollIndex { + [System.Xml.Serialization.XmlElementAttribute(Order = 13)] + public RoadblockingType roadblockingType { get { - return this.midrollIndexField; + return this.roadblockingTypeField; } set { - this.midrollIndexField = value; - this.midrollIndexSpecified = 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 midrollIndexSpecified { + public bool roadblockingTypeSpecified { get { - return this.midrollIndexFieldSpecified; + return this.roadblockingTypeFieldSpecified; } set { - this.midrollIndexFieldSpecified = value; + this.roadblockingTypeFieldSpecified = value; } } - } - - - /// Represents a targetable position within a video. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "VideoPosition.Type", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum VideoPositionType { - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 3, - /// 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.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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. + /// The set of frequency capping units for this LineItem. This + /// attribute is optional. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public int index { + [System.Xml.Serialization.XmlElementAttribute("frequencyCaps", Order = 14)] + public FrequencyCap[] frequencyCaps { get { - return this.indexField; + return this.frequencyCapsField; } set { - this.indexField = value; - this.indexSpecified = true; + this.frequencyCapsField = value; } } - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool indexSpecified { + /// 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 = 15)] + public LineItemType lineItemType { get { - return this.indexFieldSpecified; + return this.lineItemTypeField; } set { - this.indexFieldSpecified = value; + this.lineItemTypeField = value; + this.lineItemTypeSpecified = true; } } - } - - - /// Provides line items the ability to target or exclude users' mobile applications. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class MobileApplicationTargeting { - private long[] mobileApplicationIdsField; - - private bool isTargetedField; - - private bool isTargetedFieldSpecified; - /// The IDs that are being targeted or excluded - /// by the LineItem. - /// - [System.Xml.Serialization.XmlElementAttribute("mobileApplicationIds", Order = 0)] - public long[] mobileApplicationIds { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool lineItemTypeSpecified { get { - return this.mobileApplicationIdsField; + return this.lineItemTypeFieldSpecified; } set { - this.mobileApplicationIdsField = value; + this.lineItemTypeFieldSpecified = value; } } - /// Indicates whether mobile apps should be targeted or excluded. This attribute is - /// optional and defaults to true. + /// 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 = 1)] - public bool isTargeted { + [System.Xml.Serialization.XmlElementAttribute(Order = 16)] + public int priority { get { - return this.isTargetedField; + return this.priorityField; } set { - this.isTargetedField = value; - this.isTargetedSpecified = 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 isTargetedSpecified { + public bool prioritySpecified { get { - return this.isTargetedFieldSpecified; + return this.priorityFieldSpecified; } set { - this.isTargetedFieldSpecified = value; + this.priorityFieldSpecified = 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.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class RequestPlatformTargeting { - private RequestPlatform[] targetedRequestPlatformsField; - [System.Xml.Serialization.XmlElementAttribute("targetedRequestPlatforms", Order = 0)] - public RequestPlatform[] targetedRequestPlatforms { + /// The amount of money to spend per impression or click. This attribute is required + /// for creating a LineItem. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 17)] + public Money costPerUnit { get { - return this.targetedRequestPlatformsField; + return this.costPerUnitField; } set { - this.targetedRequestPlatformsField = value; + this.costPerUnitField = value; } } - } - - - /// Represents the platform which requests and renders the ad. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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, - } - - - /// 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.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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. + /// 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(Order = 0)] - public Size size { + [System.Xml.Serialization.XmlElementAttribute(Order = 18)] + public Money valueCostPerUnit { get { - return this.sizeField; + return this.valueCostPerUnitField; } set { - this.sizeField = value; + this.valueCostPerUnitField = value; } } - /// The native creative template ID.

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

+ /// The method used for billing this LineItem. This attribute is + /// required. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public long creativeTemplateId { + [System.Xml.Serialization.XmlElementAttribute(Order = 19)] + public CostType costType { get { - return this.creativeTemplateIdField; + return this.costTypeField; } set { - this.creativeTemplateIdField = value; - this.creativeTemplateIdSpecified = true; + this.costTypeField = value; + this.costTypeSpecified = 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 creativeTemplateIdSpecified { + public bool costTypeSpecified { get { - return this.creativeTemplateIdFieldSpecified; + return this.costTypeFieldSpecified; } set { - this.creativeTemplateIdFieldSpecified = value; + this.costTypeFieldSpecified = 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. + /// 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("companions", Order = 2)] - public CreativePlaceholder[] companions { + [System.Xml.Serialization.XmlElementAttribute(Order = 20)] + public LineItemDiscountType discountType { get { - return this.companionsField; + return this.discountTypeField; } set { - this.companionsField = value; + this.discountTypeField = value; + this.discountTypeSpecified = true; } } - /// The set of label frequency caps applied directly to this creative placeholder. - /// - [System.Xml.Serialization.XmlElementAttribute("appliedLabels", Order = 3)] - public AppliedLabel[] appliedLabels { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool discountTypeSpecified { get { - return this.appliedLabelsField; + return this.discountTypeFieldSpecified; } set { - this.appliedLabelsField = value; + this.discountTypeFieldSpecified = 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. - /// - [System.Xml.Serialization.XmlElementAttribute("effectiveAppliedLabels", Order = 4)] - public AppliedLabel[] effectiveAppliedLabels { - get { - return this.effectiveAppliedLabelsField; - } - set { - this.effectiveAppliedLabelsField = 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 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(Order = 5)] - public int expectedCreativeCount { + [System.Xml.Serialization.XmlElementAttribute(Order = 21)] + public double discount { get { - return this.expectedCreativeCountField; + return this.discountField; } set { - this.expectedCreativeCountField = value; - this.expectedCreativeCountSpecified = true; + this.discountField = value; + this.discountSpecified = 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 expectedCreativeCountSpecified { + public bool discountSpecified { get { - return this.expectedCreativeCountFieldSpecified; + return this.discountFieldSpecified; } set { - this.expectedCreativeCountFieldSpecified = value; + this.discountFieldSpecified = 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). + /// 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(Order = 6)] - public CreativeSizeType creativeSizeType { + [System.Xml.Serialization.XmlElementAttribute(Order = 22)] + public long contractedUnitsBought { get { - return this.creativeSizeTypeField; + return this.contractedUnitsBoughtField; } set { - this.creativeSizeTypeField = value; - this.creativeSizeTypeSpecified = true; + this.contractedUnitsBoughtField = value; + this.contractedUnitsBoughtSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="contractedUnitsBought" />, false otherwise.
[System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool creativeSizeTypeSpecified { + public bool contractedUnitsBoughtSpecified { get { - return this.creativeSizeTypeFieldSpecified; + return this.contractedUnitsBoughtFieldSpecified; } set { - this.creativeSizeTypeFieldSpecified = value; + this.contractedUnitsBoughtFieldSpecified = 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.

+ /// 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(Order = 7)] - public string targetingName { + [System.Xml.Serialization.XmlElementAttribute("creativePlaceholders", Order = 23)] + public CreativePlaceholder[] creativePlaceholders { get { - return this.targetingNameField; + return this.creativePlaceholdersField; } set { - this.targetingNameField = value; + this.creativePlaceholdersField = 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.

+ /// This attribute is required and meaningful only if the LineItem#costType is CostType.CPA. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 8)] - public bool isAmpOnly { + [System.Xml.Serialization.XmlElementAttribute("activityAssociations", Order = 24)] + public LineItemActivityAssociation[] activityAssociations { get { - return this.isAmpOnlyField; + return this.activityAssociationsField; } set { - this.isAmpOnlyField = value; - this.isAmpOnlySpecified = true; + this.activityAssociationsField = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool isAmpOnlySpecified { + /// 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 = 25)] + public EnvironmentType environmentType { get { - return this.isAmpOnlyFieldSpecified; + return this.environmentTypeField; } set { - this.isAmpOnlyFieldSpecified = value; + this.environmentTypeField = value; + this.environmentTypeSpecified = true; } } - } - - - /// 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.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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, - /// Native size, which is a function of the how the client renders the creative. - /// This must be used with 1x1 size. - /// - NATIVE = 3, - } - - - /// Configuration of forecast breakdown. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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.

- ///
- [System.Xml.Serialization.XmlElementAttribute("timeWindows", Order = 0)] - public DateTime[] timeWindows { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool environmentTypeSpecified { get { - return this.timeWindowsField; + return this.environmentTypeFieldSpecified; } set { - this.timeWindowsField = value; + this.environmentTypeFieldSpecified = value; } } - /// For each time window, these are the breakdown targets. If none specified, the - /// targeting of the forecasted LineItem is assumed. + /// 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("targets", Order = 1)] - public ForecastBreakdownTarget[] targets { + [System.Xml.Serialization.XmlElementAttribute("allowedFormats", Order = 26)] + public AllowedFormats[] allowedFormats { get { - return this.targetsField; + return this.allowedFormatsField; } set { - this.targetsField = value; + this.allowedFormatsField = value; } } - } - - - /// Forecasting options for line item availability forecasts. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class AvailabilityForecastOptions { - private bool includeTargetingCriteriaBreakdownField; - - private bool includeTargetingCriteriaBreakdownFieldSpecified; - - private bool includeContendingLineItemsField; - - private bool includeContendingLineItemsFieldSpecified; - - private ForecastBreakdownOptions breakdownField; - /// When specified, forecast result for the availability line item will also include - /// breakdowns by its targeting in AvailabilityForecast#targetingCriteriaBreakdowns. + /// 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 = 0)] - public bool includeTargetingCriteriaBreakdown { + [System.Xml.Serialization.XmlElementAttribute(Order = 27)] + public CompanionDeliveryOption companionDeliveryOption { get { - return this.includeTargetingCriteriaBreakdownField; + return this.companionDeliveryOptionField; } set { - this.includeTargetingCriteriaBreakdownField = value; - this.includeTargetingCriteriaBreakdownSpecified = true; + this.companionDeliveryOptionField = value; + this.companionDeliveryOptionSpecified = true; } } /// true, if a value is specified for , false otherwise. - /// + /// cref="companionDeliveryOption" />, false otherwise.
[System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool includeTargetingCriteriaBreakdownSpecified { + public bool companionDeliveryOptionSpecified { get { - return this.includeTargetingCriteriaBreakdownFieldSpecified; + return this.companionDeliveryOptionFieldSpecified; } set { - this.includeTargetingCriteriaBreakdownFieldSpecified = value; + this.companionDeliveryOptionFieldSpecified = value; } } - /// When specified, the forecast result for the availability line item will also - /// include contending line items in AvailabilityForecast#contendingLineItems. + /// 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 = 1)] - public bool includeContendingLineItems { + [System.Xml.Serialization.XmlElementAttribute(Order = 28)] + public bool allowOverbook { get { - return this.includeContendingLineItemsField; + return this.allowOverbookField; } set { - this.includeContendingLineItemsField = value; - this.includeContendingLineItemsSpecified = 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 includeContendingLineItemsSpecified { - get { - return this.includeContendingLineItemsFieldSpecified; - } - set { - this.includeContendingLineItemsFieldSpecified = value; - } - } - - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public ForecastBreakdownOptions breakdown { + public bool allowOverbookSpecified { get { - return this.breakdownField; + return this.allowOverbookFieldSpecified; } set { - this.breakdownField = value; + this.allowOverbookFieldSpecified = value; } } - } - - - /// Marketplace info for ProposalLineItem with a - /// corresponding deal in Marketplace. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ProposalLineItemMarketplaceInfo { - private AdExchangeEnvironment adExchangeEnvironmentField; - - private bool adExchangeEnvironmentFieldSpecified; - /// The AdExchangeEnvironment of the marketplace - /// web property that is associated with this line item. This is only for proposal line items with a corresponding deal in - /// Marketplace. This attribute is - /// required. + /// 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 = 0)] - public AdExchangeEnvironment adExchangeEnvironment { + [System.Xml.Serialization.XmlElementAttribute(Order = 29)] + public bool skipInventoryCheck { get { - return this.adExchangeEnvironmentField; + return this.skipInventoryCheckField; } set { - this.adExchangeEnvironmentField = value; - this.adExchangeEnvironmentSpecified = 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 adExchangeEnvironmentSpecified { + public bool skipInventoryCheckSpecified { get { - return this.adExchangeEnvironmentFieldSpecified; + return this.skipInventoryCheckFieldSpecified; } set { - this.adExchangeEnvironmentFieldSpecified = value; + this.skipInventoryCheckFieldSpecified = value; } } - } - - - /// Identifies the format of inventory or "channel" in which ads serve. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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, - } - - - /// A PremiumFeature represents the feature type to be applied as a - /// premium on a RateCard. - /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(VideoPositionPremiumFeature))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(UserDomainPremiumFeature))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(UnknownPremiumFeature))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(PlacementPremiumFeature))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(OperatingSystemPremiumFeature))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(MobileCarrierPremiumFeature))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(GeographyPremiumFeature))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(FrequencyCapPremiumFeature))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(DeviceManufacturerPremiumFeature))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(DeviceCategoryPremiumFeature))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(DeviceCapabilityPremiumFeature))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(DaypartPremiumFeature))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(CustomTargetingPremiumFeature))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ContentBundlePremiumFeature))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(BrowserLanguagePremiumFeature))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(BrowserPremiumFeature))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(BandwidthPremiumFeature))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(AudienceSegmentPremiumFeature))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(AdUnitPremiumFeature))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public abstract partial class PremiumFeature { - } - - - /// A premium feature applied to video position targeting. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class VideoPositionPremiumFeature : PremiumFeature { - } - - - /// A premium feature applied to user domain targeting. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class UserDomainPremiumFeature : PremiumFeature { - } - - - /// The PremiumFeature returned if the actual feature - /// is not exposed by the requested API version. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class UnknownPremiumFeature : PremiumFeature { - } - - - /// A premium feature applied to placement targeting. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class PlacementPremiumFeature : PremiumFeature { - } - - - /// A premium feature applied to operating system targeting. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class OperatingSystemPremiumFeature : PremiumFeature { - } - - - /// A premium feature applied to mobile carrier targeting. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class MobileCarrierPremiumFeature : PremiumFeature { - } - - - /// A premium feature applied to geography targeting. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class GeographyPremiumFeature : PremiumFeature { - } - - - /// A premium feature applied to frequency caps. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class FrequencyCapPremiumFeature : PremiumFeature { - } - - - /// A premium feature applied to device manufacturer targeting. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class DeviceManufacturerPremiumFeature : PremiumFeature { - } - - - /// A premium feature applied to device category targeting. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class DeviceCategoryPremiumFeature : PremiumFeature { - } - - - /// A premium feature applied to device capability targeting. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class DeviceCapabilityPremiumFeature : PremiumFeature { - } - - - /// A premium feature applied to daypart targeting. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class DaypartPremiumFeature : PremiumFeature { - } - - - /// A premium feature applied to custom criteria targeting. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class CustomTargetingPremiumFeature : PremiumFeature { - private long customTargetingKeyIdField; - - private bool customTargetingKeyIdFieldSpecified; - - private long customTargetingValueIdField; - private bool customTargetingValueIdFieldSpecified; - - /// The ID of the CustomTargetingKey.

This - /// attribute is required and cannot be changed after creation.

+ /// 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 long customTargetingKeyId { + [System.Xml.Serialization.XmlElementAttribute(Order = 30)] + public bool skipCrossSellingRuleWarningChecks { get { - return this.customTargetingKeyIdField; + return this.skipCrossSellingRuleWarningChecksField; } set { - this.customTargetingKeyIdField = value; - this.customTargetingKeyIdSpecified = true; + this.skipCrossSellingRuleWarningChecksField = value; + this.skipCrossSellingRuleWarningChecksSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="skipCrossSellingRuleWarningChecks" />, false otherwise. + ///
[System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool customTargetingKeyIdSpecified { + public bool skipCrossSellingRuleWarningChecksSpecified { get { - return this.customTargetingKeyIdFieldSpecified; + return this.skipCrossSellingRuleWarningChecksFieldSpecified; } set { - this.customTargetingKeyIdFieldSpecified = value; + this.skipCrossSellingRuleWarningChecksFieldSpecified = value; } } - /// The ID of the CustomTargetingValue. - /// null if all custom targeting values of the #customTargetingKeyId should be matched. - ///

This attribute cannot be changed after creation.

+ /// 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(Order = 1)] - public long customTargetingValueId { + [System.Xml.Serialization.XmlElementAttribute(Order = 31)] + public bool reserveAtCreation { get { - return this.customTargetingValueIdField; + return this.reserveAtCreationField; } set { - this.customTargetingValueIdField = value; - this.customTargetingValueIdSpecified = true; + this.reserveAtCreationField = value; + this.reserveAtCreationSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="reserveAtCreation" />, false otherwise.
[System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool customTargetingValueIdSpecified { + public bool reserveAtCreationSpecified { get { - return this.customTargetingValueIdFieldSpecified; + return this.reserveAtCreationFieldSpecified; } set { - this.customTargetingValueIdFieldSpecified = value; + this.reserveAtCreationFieldSpecified = value; } } - } - - - /// A premium feature applied to content bundle targeting. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ContentBundlePremiumFeature : PremiumFeature { - } - - /// A premium feature applied to browser language targeting. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class BrowserLanguagePremiumFeature : PremiumFeature { - } - - - /// A premium feature applied to browser targeting. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class BrowserPremiumFeature : PremiumFeature { - } - - - /// A premium feature applied to bandwidth targeting. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class BandwidthPremiumFeature : PremiumFeature { - } - - - /// A premium feature applied to audience segment targeting. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class AudienceSegmentPremiumFeature : PremiumFeature { - private long audienceSegmentIdField; - - private bool audienceSegmentIdFieldSpecified; - - /// The ID of the AudienceSegment#id.

This - /// attribute is required and cannot be changed after creation.

+ /// 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 long audienceSegmentId { - get { - return this.audienceSegmentIdField; - } - set { - this.audienceSegmentIdField = value; - this.audienceSegmentIdSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool audienceSegmentIdSpecified { + [System.Xml.Serialization.XmlElementAttribute(Order = 32)] + public Stats stats { get { - return this.audienceSegmentIdFieldSpecified; + return this.statsField; } set { - this.audienceSegmentIdFieldSpecified = value; + this.statsField = value; } } - } - - - /// A premium feature applied to ad unit targeting. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class AdUnitPremiumFeature : PremiumFeature { - } - - - /// A premium of a RateCard which could be applied to the - /// line item and charges extra. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class PremiumRateValue { - private long premiumRateIdField; - - private bool premiumRateIdFieldSpecified; - private PremiumFeature premiumFeatureField; - - private RateType rateTypeField; - - private bool rateTypeFieldSpecified; - - private PremiumAdjustmentType adjustmentTypeField; - - private bool adjustmentTypeFieldSpecified; - - private long adjustmentSizeField; - - private bool adjustmentSizeFieldSpecified; - - /// The ID of the PremiumRate object to which this premium - /// rate value belongs. This attribute is readonly. + /// 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 = 0)] - public long premiumRateId { + [System.Xml.Serialization.XmlElementAttribute(Order = 33)] + public DeliveryIndicator deliveryIndicator { get { - return this.premiumRateIdField; + return this.deliveryIndicatorField; } set { - this.premiumRateIdField = value; - this.premiumRateIdSpecified = true; + this.deliveryIndicatorField = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool premiumRateIdSpecified { + /// 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 = 34)] + [System.Xml.Serialization.XmlArrayItemAttribute("units", IsNullable = false)] + public long[] deliveryData { get { - return this.premiumRateIdFieldSpecified; + return this.deliveryDataField; } set { - this.premiumRateIdFieldSpecified = value; + this.deliveryDataField = value; } } - /// The feature type of this premium rate value.

This attribute is required and - /// cannot be changed after creation.

+ /// 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 = 1)] - public PremiumFeature premiumFeature { + [System.Xml.Serialization.XmlElementAttribute(Order = 35)] + public Money budget { get { - return this.premiumFeatureField; + return this.budgetField; } set { - this.premiumFeatureField = value; + this.budgetField = value; } } - /// The rate type this premium rate value would be applied to. This attribute is - /// required. + /// The status of the LineItem. This attribute is readonly. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public RateType rateType { + [System.Xml.Serialization.XmlElementAttribute(Order = 36)] + public ComputedStatus status { get { - return this.rateTypeField; + return this.statusField; } set { - this.rateTypeField = value; - this.rateTypeSpecified = 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 rateTypeSpecified { + public bool statusSpecified { get { - return this.rateTypeFieldSpecified; + return this.statusFieldSpecified; } set { - this.rateTypeFieldSpecified = value; + this.statusFieldSpecified = value; } } - /// Whether the premium rate value is a percentage or absolute value to the product - /// rate. This attribute is required. + /// Describes whether or not inventory has been reserved for the . This + /// attribute is readonly and is assigned by Google. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public PremiumAdjustmentType adjustmentType { + [System.Xml.Serialization.XmlElementAttribute(Order = 37)] + public LineItemSummaryReservationStatus reservationStatus { get { - return this.adjustmentTypeField; + return this.reservationStatusField; } set { - this.adjustmentTypeField = value; - this.adjustmentTypeSpecified = true; + this.reservationStatusField = value; + this.reservationStatusSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="reservationStatus" />, false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool adjustmentTypeSpecified { + public bool reservationStatusSpecified { get { - return this.adjustmentTypeFieldSpecified; + return this.reservationStatusFieldSpecified; } set { - this.adjustmentTypeFieldSpecified = value; + this.reservationStatusFieldSpecified = value; } } - /// If #adjustmentType is PremiumAdjustmentType#ABSOLUTE_VALUE, - /// this value is in micros. If #adjustmentType is PremiumAdjustmentType#PERCENTAGE, - /// this value is in millipercent. This attribute is required. + /// The archival status of the LineItem. This attribute is readonly. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public long adjustmentSize { + [System.Xml.Serialization.XmlElementAttribute(Order = 38)] + public bool isArchived { get { - return this.adjustmentSizeField; + return this.isArchivedField; } set { - this.adjustmentSizeField = value; - this.adjustmentSizeSpecified = 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 adjustmentSizeSpecified { + public bool isArchivedSpecified { get { - return this.adjustmentSizeFieldSpecified; + return this.isArchivedFieldSpecified; } set { - this.adjustmentSizeFieldSpecified = value; + this.isArchivedFieldSpecified = value; } } - } - - - /// 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.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum RateType { - /// The rate applies to cost per mille (CPM) revenue. - /// - CPM = 0, - /// The rate applies to cost per click (CPC) revenue. - /// - CPC = 1, - /// The rate applies to cost per day (CPD) revenue. - /// - CPD = 2, - /// The rate applies to cost per unit (CPU) revenue. - /// - CPU = 3, - /// The rate applies to flat fee revenue. - /// - FLAT_FEE = 4, - /// The rate applies to Active View viewable cost per mille (vCPM) revenue. - /// - VCPM = 6, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 5, - } - - - /// Describes how to apply the adjustment to the base rate. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum PremiumAdjustmentType { - /// The adjustment size to the base rate is a percentage. - /// - PERCENTAGE = 0, - /// The adjustment size to the base rate is an absolute value. - /// - ABSOLUTE_VALUE = 1, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 2, - } - - - /// Represents the status of a triggered PremiumRateValue (formerly referred to as a - /// RateCardCustomization). - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ProposalLineItemPremium { - private PremiumRateValue premiumRateValueField; - - private ProposalLineItemPremiumStatus statusField; - - private bool statusFieldSpecified; - /// The PremiumRateValue triggered by the ProposalLineItem. This attribute is required. + /// 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(Order = 0)] - public PremiumRateValue premiumRateValue { + [System.Xml.Serialization.XmlElementAttribute(Order = 39)] + public string webPropertyCode { get { - return this.premiumRateValueField; + return this.webPropertyCodeField; } set { - this.premiumRateValueField = value; + this.webPropertyCodeField = value; } } - /// The status of the triggered premium. This attribute is required. + /// The set of labels applied directly to this line item. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public ProposalLineItemPremiumStatus status { + [System.Xml.Serialization.XmlElementAttribute("appliedLabels", Order = 40)] + public AppliedLabel[] appliedLabels { get { - return this.statusField; + return this.appliedLabelsField; } set { - this.statusField = value; - this.statusSpecified = true; + this.appliedLabelsField = value; } } - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool statusSpecified { + /// 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 = 41)] + public AppliedLabel[] effectiveAppliedLabels { get { - return this.statusFieldSpecified; + return this.effectiveAppliedLabelsField; } set { - this.statusFieldSpecified = value; + this.effectiveAppliedLabelsField = value; } } - } - - - /// Status of the premium triggered by a proposal line item. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum ProposalLineItemPremiumStatus { - /// Indicating the premium is included in the pricing. - /// - INCLUDED = 0, - /// Indicating the premium is excluded from the pricing. - /// - EXCLUDED = 1, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 2, - } - - - /// Specifies what targeting or attributes are customizable on a ProductTemplate. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class CustomizableAttributes { - private bool allowGeoTargetingCustomizationField; - - private bool allowGeoTargetingCustomizationFieldSpecified; - - private bool allowAdUnitTargetingCustomizationField; - - private bool allowAdUnitTargetingCustomizationFieldSpecified; - - private bool allowPlacementTargetingCustomizationField; - - private bool allowPlacementTargetingCustomizationFieldSpecified; - - private bool allowUserDomainTargetingCustomizationField; - - private bool allowUserDomainTargetingCustomizationFieldSpecified; - - private bool allowBandwidthGroupTargetingCustomizationField; - - private bool allowBandwidthGroupTargetingCustomizationFieldSpecified; - - private bool allowBrowserTargetingCustomizationField; - - private bool allowBrowserTargetingCustomizationFieldSpecified; - - private bool allowBrowserLanguageTargetingCustomizationField; - - private bool allowBrowserLanguageTargetingCustomizationFieldSpecified; - - private bool allowOperatingSystemTargetingCustomizationField; - - private bool allowOperatingSystemTargetingCustomizationFieldSpecified; - - private bool allowDeviceCapabilityTargetingCustomizationField; - - private bool allowDeviceCapabilityTargetingCustomizationFieldSpecified; - - private bool allowDeviceCategoryTargetingCustomizationField; - - private bool allowDeviceCategoryTargetingCustomizationFieldSpecified; - - private bool allowMobileApplicationTargetingCustomizationField; - - private bool allowMobileApplicationTargetingCustomizationFieldSpecified; - - private bool allowMobileCarrierTargetingCustomizationField; - - private bool allowMobileCarrierTargetingCustomizationFieldSpecified; - - private bool allowMobileDeviceAndManufacturerTargetingCustomizationField; - - private bool allowMobileDeviceAndManufacturerTargetingCustomizationFieldSpecified; - - private bool allowAudienceSegmentTargetingCustomizationField; - - private bool allowAudienceSegmentTargetingCustomizationFieldSpecified; - - private bool isAllCustomTargetingKeysCustomizableField; - private bool isAllCustomTargetingKeysCustomizableFieldSpecified; - - private long[] customizableCustomTargetingKeyIdsField; - - private bool allowDaypartTargetingCustomizationField; - - private bool allowDaypartTargetingCustomizationFieldSpecified; - - private bool allowFrequencyCapsCustomizationField; - - private bool allowFrequencyCapsCustomizationFieldSpecified; - - private bool allowDeliverySettingsCustomizationField; - - private bool allowDeliverySettingsCustomizationFieldSpecified; - - private bool allowCreativePlaceholdersCustomizationField; - - private bool allowCreativePlaceholdersCustomizationFieldSpecified; - - /// Allows customization by salespeople of geographical targeting when creating - /// proposal line items.

This attribute is optional and defaults to false.

+ /// 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 = 0)] - public bool allowGeoTargetingCustomization { + [System.Xml.Serialization.XmlElementAttribute(Order = 42)] + public bool disableSameAdvertiserCompetitiveExclusion { get { - return this.allowGeoTargetingCustomizationField; + return this.disableSameAdvertiserCompetitiveExclusionField; } set { - this.allowGeoTargetingCustomizationField = value; - this.allowGeoTargetingCustomizationSpecified = 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 allowGeoTargetingCustomizationSpecified { + public bool disableSameAdvertiserCompetitiveExclusionSpecified { get { - return this.allowGeoTargetingCustomizationFieldSpecified; + return this.disableSameAdvertiserCompetitiveExclusionFieldSpecified; } set { - this.allowGeoTargetingCustomizationFieldSpecified = value; + this.disableSameAdvertiserCompetitiveExclusionFieldSpecified = value; } } - /// Allows customization by salespeople of ad unit targeting in Targeting#inventoryTargeting when - /// creating proposal line items.

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

+ /// The application that last modified this line item. This attribute is read only + /// and is assigned by Google. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public bool allowAdUnitTargetingCustomization { + [System.Xml.Serialization.XmlElementAttribute(Order = 43)] + public string lastModifiedByApp { get { - return this.allowAdUnitTargetingCustomizationField; + return this.lastModifiedByAppField; } set { - this.allowAdUnitTargetingCustomizationField = value; - this.allowAdUnitTargetingCustomizationSpecified = true; + this.lastModifiedByAppField = value; } } - /// true, if a value is specified for , false otherwise. + /// Provides any additional notes that may annotate the . This + /// attribute is optional and has a maximum length of 65,535 characters. /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool allowAdUnitTargetingCustomizationSpecified { + [System.Xml.Serialization.XmlElementAttribute(Order = 44)] + public string notes { get { - return this.allowAdUnitTargetingCustomizationFieldSpecified; + return this.notesField; } set { - this.allowAdUnitTargetingCustomizationFieldSpecified = value; + this.notesField = value; } } - /// Allows customization by salespeople of placement targeting in Targeting#inventoryTargeting when - /// creating proposal line items.

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

+ /// The date and time this line item was last modified. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public bool allowPlacementTargetingCustomization { + [System.Xml.Serialization.XmlElementAttribute(Order = 45)] + public DateTime lastModifiedDateTime { get { - return this.allowPlacementTargetingCustomizationField; + return this.lastModifiedDateTimeField; } set { - this.allowPlacementTargetingCustomizationField = value; - this.allowPlacementTargetingCustomizationSpecified = true; + this.lastModifiedDateTimeField = value; } } - /// true, if a value is specified for , false otherwise. + /// This attribute may be null for line items created before this + /// feature was introduced. /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool allowPlacementTargetingCustomizationSpecified { + [System.Xml.Serialization.XmlElementAttribute(Order = 46)] + public DateTime creationDateTime { get { - return this.allowPlacementTargetingCustomizationFieldSpecified; + return this.creationDateTimeField; } set { - this.allowPlacementTargetingCustomizationFieldSpecified = value; + this.creationDateTimeField = value; } } - /// Allows customization by salespeople of user domain targeting when creating - /// proposal line items.

This attribute is optional and defaults to false.

+ /// Whether an AdExchange line item has prioritized preferred deals enabled. This + /// attribute is optional and defaults to false. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public bool allowUserDomainTargetingCustomization { + [System.Xml.Serialization.XmlElementAttribute(Order = 47)] + public bool isPrioritizedPreferredDealsEnabled { get { - return this.allowUserDomainTargetingCustomizationField; + return this.isPrioritizedPreferredDealsEnabledField; } set { - this.allowUserDomainTargetingCustomizationField = value; - this.allowUserDomainTargetingCustomizationSpecified = true; + this.isPrioritizedPreferredDealsEnabledField = value; + this.isPrioritizedPreferredDealsEnabledSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="isPrioritizedPreferredDealsEnabled" />, false otherwise. /// [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool allowUserDomainTargetingCustomizationSpecified { + public bool isPrioritizedPreferredDealsEnabledSpecified { get { - return this.allowUserDomainTargetingCustomizationFieldSpecified; + return this.isPrioritizedPreferredDealsEnabledFieldSpecified; } set { - this.allowUserDomainTargetingCustomizationFieldSpecified = value; + this.isPrioritizedPreferredDealsEnabledFieldSpecified = value; } } - /// Allows customization by salespeople of bandwidth group targeting when creating - /// proposal line items.

This attribute is optional and defaults to false.

+ /// The priority at which an Ad Exchange line item enters the open Ad Exchange + /// auction if the preferred deal fails to transact. This attribute is optional. If + /// prioritized preferred deals are enabled, it defaults to 12. Otherwise, it is + /// ignored. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public bool allowBandwidthGroupTargetingCustomization { + [System.Xml.Serialization.XmlElementAttribute(Order = 48)] + public int adExchangeAuctionOpeningPriority { get { - return this.allowBandwidthGroupTargetingCustomizationField; + return this.adExchangeAuctionOpeningPriorityField; } set { - this.allowBandwidthGroupTargetingCustomizationField = value; - this.allowBandwidthGroupTargetingCustomizationSpecified = true; + this.adExchangeAuctionOpeningPriorityField = value; + this.adExchangeAuctionOpeningPrioritySpecified = true; } } /// true, if a value is specified for , false - /// otherwise. + /// cref="adExchangeAuctionOpeningPriority" />, false otherwise. + ///
[System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool allowBandwidthGroupTargetingCustomizationSpecified { - get { - return this.allowBandwidthGroupTargetingCustomizationFieldSpecified; - } - set { - this.allowBandwidthGroupTargetingCustomizationFieldSpecified = value; - } - } - - /// Allows customization by salespeople of browser targeting when creating proposal - /// line items.

This attribute is optional and defaults to false.

- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 5)] - public bool allowBrowserTargetingCustomization { + public bool adExchangeAuctionOpeningPrioritySpecified { get { - return this.allowBrowserTargetingCustomizationField; + return this.adExchangeAuctionOpeningPriorityFieldSpecified; } set { - this.allowBrowserTargetingCustomizationField = value; - this.allowBrowserTargetingCustomizationSpecified = true; + this.adExchangeAuctionOpeningPriorityFieldSpecified = value; } } - /// true, if a value is specified for , false otherwise. + /// The values of the custom fields associated with this line item. /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool allowBrowserTargetingCustomizationSpecified { + [System.Xml.Serialization.XmlElementAttribute("customFieldValues", Order = 49)] + public BaseCustomFieldValue[] customFieldValues { get { - return this.allowBrowserTargetingCustomizationFieldSpecified; + return this.customFieldValuesField; } set { - this.allowBrowserTargetingCustomizationFieldSpecified = value; + this.customFieldValuesField = value; } } - /// Allows customization by salespeople of browser language targeting when creating - /// proposal line items.

This attribute is optional and defaults to false.

+ /// Flag that specifies whether this LineItem is a set-top box enabled + /// line item. Set-top box line items only support the following creative sizes: + /// 1920x1080 and 640x480.

This attribute is read-only after creation.

///
- [System.Xml.Serialization.XmlElementAttribute(Order = 6)] - public bool allowBrowserLanguageTargetingCustomization { + [System.Xml.Serialization.XmlElementAttribute(Order = 50)] + public bool isSetTopBoxEnabled { get { - return this.allowBrowserLanguageTargetingCustomizationField; + return this.isSetTopBoxEnabledField; } set { - this.allowBrowserLanguageTargetingCustomizationField = value; - this.allowBrowserLanguageTargetingCustomizationSpecified = true; + this.isSetTopBoxEnabledField = value; + this.isSetTopBoxEnabledSpecified = true; } } /// true, if a value is specified for , false - /// otherwise. + /// cref="isSetTopBoxEnabled" />, false otherwise.
[System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool allowBrowserLanguageTargetingCustomizationSpecified { + public bool isSetTopBoxEnabledSpecified { get { - return this.allowBrowserLanguageTargetingCustomizationFieldSpecified; + return this.isSetTopBoxEnabledFieldSpecified; } set { - this.allowBrowserLanguageTargetingCustomizationFieldSpecified = value; + this.isSetTopBoxEnabledFieldSpecified = value; } } - /// Allows customization by salespeople of operating system targeting when creating - /// proposal line items.

This attribute is optional and defaults to false.

+ /// 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 = 7)] - public bool allowOperatingSystemTargetingCustomization { + [System.Xml.Serialization.XmlElementAttribute(Order = 51)] + public bool isMissingCreatives { get { - return this.allowOperatingSystemTargetingCustomizationField; + return this.isMissingCreativesField; } set { - this.allowOperatingSystemTargetingCustomizationField = value; - this.allowOperatingSystemTargetingCustomizationSpecified = true; + this.isMissingCreativesField = value; + this.isMissingCreativesSpecified = true; } } /// true, if a value is specified for , false - /// otherwise. + /// cref="isMissingCreatives" />, false otherwise.
[System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool allowOperatingSystemTargetingCustomizationSpecified { + public bool isMissingCreativesSpecified { get { - return this.allowOperatingSystemTargetingCustomizationFieldSpecified; + return this.isMissingCreativesFieldSpecified; } set { - this.allowOperatingSystemTargetingCustomizationFieldSpecified = value; + this.isMissingCreativesFieldSpecified = value; } } - /// Allows customization by salespeople of device capability targeting when creating - /// proposal line items.

This attribute is optional and defaults to false.

+ /// Additional information for set-top box enabled line items. This attribute is + /// optional and only meaningful when #isSetTopBoxEnabled is true. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 8)] - public bool allowDeviceCapabilityTargetingCustomization { - get { - return this.allowDeviceCapabilityTargetingCustomizationField; - } - set { - this.allowDeviceCapabilityTargetingCustomizationField = value; - this.allowDeviceCapabilityTargetingCustomizationSpecified = true; - } - } - - /// true, if a value is specified for , false - /// otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool allowDeviceCapabilityTargetingCustomizationSpecified { + [System.Xml.Serialization.XmlElementAttribute(Order = 52)] + public SetTopBoxInfo setTopBoxDisplayInfo { get { - return this.allowDeviceCapabilityTargetingCustomizationFieldSpecified; + return this.setTopBoxDisplayInfoField; } set { - this.allowDeviceCapabilityTargetingCustomizationFieldSpecified = value; + this.setTopBoxDisplayInfoField = value; } } - /// Allows customization by salespeople of device category targeting when creating - /// proposal line items.

This attribute is optional and defaults to false.

+ /// 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(Order = 9)] - public bool allowDeviceCategoryTargetingCustomization { + [System.Xml.Serialization.XmlElementAttribute(Order = 53)] + public ProgrammaticCreativeSource programmaticCreativeSource { get { - return this.allowDeviceCategoryTargetingCustomizationField; + return this.programmaticCreativeSourceField; } set { - this.allowDeviceCategoryTargetingCustomizationField = value; - this.allowDeviceCategoryTargetingCustomizationSpecified = 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 allowDeviceCategoryTargetingCustomizationSpecified { + public bool programmaticCreativeSourceSpecified { get { - return this.allowDeviceCategoryTargetingCustomizationFieldSpecified; + return this.programmaticCreativeSourceFieldSpecified; } set { - this.allowDeviceCategoryTargetingCustomizationFieldSpecified = value; + this.programmaticCreativeSourceFieldSpecified = value; } } - /// Allows customization by salespeople of mobile application targeting when - /// creating proposal line items.

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

+ /// The max duration of a video creative associated with this in + /// milliseconds. This attribute is optional, defaults to 0, and only meaningful if + /// this is a video line item. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 10)] - public bool allowMobileApplicationTargetingCustomization { + [System.Xml.Serialization.XmlElementAttribute(Order = 54)] + public long videoMaxDuration { get { - return this.allowMobileApplicationTargetingCustomizationField; + return this.videoMaxDurationField; } set { - this.allowMobileApplicationTargetingCustomizationField = value; - this.allowMobileApplicationTargetingCustomizationSpecified = 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 allowMobileApplicationTargetingCustomizationSpecified { + public bool videoMaxDurationSpecified { get { - return this.allowMobileApplicationTargetingCustomizationFieldSpecified; + return this.videoMaxDurationFieldSpecified; } set { - this.allowMobileApplicationTargetingCustomizationFieldSpecified = value; + this.videoMaxDurationFieldSpecified = value; } } - /// Allows customization by salespeople of mobile carrier targeting when creating - /// proposal line items.

This attribute is optional and defaults to false.

+ /// The primary goal that this LineItem is associated with, which is + /// used in its pacing and budgeting. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 11)] - public bool allowMobileCarrierTargetingCustomization { + [System.Xml.Serialization.XmlElementAttribute(Order = 55)] + public Goal primaryGoal { get { - return this.allowMobileCarrierTargetingCustomizationField; + return this.primaryGoalField; } set { - this.allowMobileCarrierTargetingCustomizationField = value; - this.allowMobileCarrierTargetingCustomizationSpecified = true; + this.primaryGoalField = value; } } - /// true, if a value is specified for , false - /// otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool allowMobileCarrierTargetingCustomizationSpecified { + /// 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 = 56)] + public Goal[] secondaryGoals { get { - return this.allowMobileCarrierTargetingCustomizationFieldSpecified; + return this.secondaryGoalsField; } set { - this.allowMobileCarrierTargetingCustomizationFieldSpecified = value; + this.secondaryGoalsField = value; } } - /// Allows customization by salespeople of device manufacturer, mobile device, and - /// mobile device sub-model targeting when creating proposal line items.

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

+ /// Contains the information for a line item which has a target GRP demographic. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 12)] - public bool allowMobileDeviceAndManufacturerTargetingCustomization { + [System.Xml.Serialization.XmlElementAttribute(Order = 57)] + public GrpSettings grpSettings { get { - return this.allowMobileDeviceAndManufacturerTargetingCustomizationField; + return this.grpSettingsField; } set { - this.allowMobileDeviceAndManufacturerTargetingCustomizationField = value; - this.allowMobileDeviceAndManufacturerTargetingCustomizationSpecified = true; + this.grpSettingsField = value; } } - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool allowMobileDeviceAndManufacturerTargetingCustomizationSpecified { + /// The deal information associated with this line item, if it is programmatic. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 58)] + public LineItemDealInfoDto dealInfo { get { - return this.allowMobileDeviceAndManufacturerTargetingCustomizationFieldSpecified; + return this.dealInfoField; } set { - this.allowMobileDeviceAndManufacturerTargetingCustomizationFieldSpecified = value; + this.dealInfoField = value; } } - /// Allows customization by salespeople of audience segment targeting when creating - /// proposal line items.

This attribute is optional and defaults to false.

+ /// Optional ID of the Company that provides ad verification + /// for this line item. An error will be thrown if the company that the ID refernces + /// is not of type Company.Type#VIEWABILITY_PROVIDER. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 13)] - public bool allowAudienceSegmentTargetingCustomization { + [System.Xml.Serialization.XmlElementAttribute(Order = 59)] + public long viewabilityProviderCompanyId { get { - return this.allowAudienceSegmentTargetingCustomizationField; + return this.viewabilityProviderCompanyIdField; } set { - this.allowAudienceSegmentTargetingCustomizationField = value; - this.allowAudienceSegmentTargetingCustomizationSpecified = true; + this.viewabilityProviderCompanyIdField = value; + this.viewabilityProviderCompanyIdSpecified = true; } } /// true, if a value is specified for , false - /// otherwise. + /// cref="viewabilityProviderCompanyId" />, false otherwise.
[System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool allowAudienceSegmentTargetingCustomizationSpecified { + public bool viewabilityProviderCompanyIdSpecified { get { - return this.allowAudienceSegmentTargetingCustomizationFieldSpecified; + return this.viewabilityProviderCompanyIdFieldSpecified; } set { - this.allowAudienceSegmentTargetingCustomizationFieldSpecified = value; + this.viewabilityProviderCompanyIdFieldSpecified = value; } } - /// Specifies whether all custom targeting keys (except those used in ProductSegmentation#customTargetingSegment) - /// are allowed to be customized by salespeople.

If it's true, then #customizableCustomTargetingKeyIds - /// is ignored.

This attribute is optional and defaults to false.

+ /// User consent eligibility designation for this line item. This field is optional + /// and defaults to UserConsentEligibility#NONE. This field + /// has no effect on serving enforcement unless you opt to "Limit line items" in the + /// network's EU User Consent settings. See the Ad Manager + /// Help Center for more information. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 14)] - public bool isAllCustomTargetingKeysCustomizable { + [System.Xml.Serialization.XmlElementAttribute(Order = 60)] + public UserConsentEligibility userConsentEligibility { get { - return this.isAllCustomTargetingKeysCustomizableField; + return this.userConsentEligibilityField; } set { - this.isAllCustomTargetingKeysCustomizableField = value; - this.isAllCustomTargetingKeysCustomizableSpecified = true; + this.userConsentEligibilityField = value; + this.userConsentEligibilitySpecified = true; } } /// true, if a value is specified for , false otherwise. - /// + /// cref="userConsentEligibility" />, false otherwise.
[System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool isAllCustomTargetingKeysCustomizableSpecified { - get { - return this.isAllCustomTargetingKeysCustomizableFieldSpecified; - } - set { - this.isAllCustomTargetingKeysCustomizableFieldSpecified = value; - } - } - - /// Specifies what custom criteria salespeople are allow to customize. It refers the - /// key id of customizable custom criteria here.

If #isAllCustomTargetingKeysCustomizable - /// is true, then this attribute is ignored.

This attribute is - /// optional.

- ///
- [System.Xml.Serialization.XmlElementAttribute("customizableCustomTargetingKeyIds", Order = 15)] - public long[] customizableCustomTargetingKeyIds { + public bool userConsentEligibilitySpecified { get { - return this.customizableCustomTargetingKeyIdsField; + return this.userConsentEligibilityFieldSpecified; } set { - this.customizableCustomTargetingKeyIdsField = value; + this.userConsentEligibilityFieldSpecified = value; } } - /// Allows customization by salespeople of daypart targeting when creating proposal - /// line items.

This attribute is optional and defaults to false.

+ /// Child content eligibility designation for this line item.

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

///
- [System.Xml.Serialization.XmlElementAttribute(Order = 16)] - public bool allowDaypartTargetingCustomization { + [System.Xml.Serialization.XmlElementAttribute(Order = 61)] + public ChildContentEligibility childContentEligibility { get { - return this.allowDaypartTargetingCustomizationField; + return this.childContentEligibilityField; } set { - this.allowDaypartTargetingCustomizationField = value; - this.allowDaypartTargetingCustomizationSpecified = 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 allowDaypartTargetingCustomizationSpecified { + public bool childContentEligibilitySpecified { get { - return this.allowDaypartTargetingCustomizationFieldSpecified; + return this.childContentEligibilityFieldSpecified; } set { - this.allowDaypartTargetingCustomizationFieldSpecified = value; + this.childContentEligibilityFieldSpecified = value; } } + } - /// Allows customization by salespeople of frequency caps when creating proposal - /// line items.

This attribute is optional and defaults to false when ProductTemplate#productType is ProductType#DFP.

- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 17)] - public bool allowFrequencyCapsCustomization { - get { - return this.allowFrequencyCapsCustomizationField; - } - set { - this.allowFrequencyCapsCustomizationField = value; - this.allowFrequencyCapsCustomizationSpecified = true; - } - } - /// true, if a value is specified for , false otherwise. + /// 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.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum StartDateTimeType { + /// Use the value in #startDateTime. /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool allowFrequencyCapsCustomizationSpecified { - get { - return this.allowFrequencyCapsCustomizationFieldSpecified; - } - set { - this.allowFrequencyCapsCustomizationFieldSpecified = value; - } - } - - /// Allows customization by salespeople of delivery settings when creating proposal - /// line items.

The delivery settings of a ProductTemplate include ProductTemplate#roadblockingType, ProductTemplate#deliveryRateType, ProductTemplate#creativeRotationType - /// and ProductTemplate#companionDeliveryOption.

- ///

This attribute is optional and defaults to false when ProductTemplate#productType is ProductType#DFP.

+ 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. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 18)] - public bool allowDeliverySettingsCustomization { - get { - return this.allowDeliverySettingsCustomizationField; - } - set { - this.allowDeliverySettingsCustomizationField = value; - this.allowDeliverySettingsCustomizationSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. + 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. /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool allowDeliverySettingsCustomizationSpecified { - get { - return this.allowDeliverySettingsCustomizationFieldSpecified; - } - set { - this.allowDeliverySettingsCustomizationFieldSpecified = value; - } - } - - /// Allows customization of creative placeholders - /// when creating proposal line items.

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

+ ONE_HOUR_FROM_NOW = 2, + /// The value returned if the actual value is not exposed by the requested API + /// version. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 19)] - public bool allowCreativePlaceholdersCustomization { - get { - return this.allowCreativePlaceholdersCustomizationField; - } - set { - this.allowCreativePlaceholdersCustomizationField = value; - this.allowCreativePlaceholdersCustomizationSpecified = true; - } - } + UNKNOWN = 3, + } - /// true, if a value is specified for , false otherwise. + + /// The strategy to use for displaying multiple Creative + /// objects that are associated with a LineItem. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum CreativeRotationType { + /// Creatives are displayed roughly the same number of times over the duration of + /// the line item. /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool allowCreativePlaceholdersCustomizationSpecified { - get { - return this.allowCreativePlaceholdersCustomizationFieldSpecified; - } - set { - this.allowCreativePlaceholdersCustomizationFieldSpecified = value; - } - } + 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, } - /// A PropoalLineItemConstraints represents all the constraints set for - /// a ProposalLineItem and is always readonly. It comes from the Product, based on which the proposal line item is created. + /// Strategies for choosing forecasted traffic shapes to pace line items. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ProposalLineItemConstraints { - private bool allowCreativePlaceholdersCustomizationField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 2, + } - private bool allowCreativePlaceholdersCustomizationFieldSpecified; - private CreativePlaceholder[] builtInCreativePlaceholdersField; + /// Describes the LineItem actions that are billable. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 4, + } - private RoadblockingType builtInRoadblockingTypeField; - private bool builtInRoadblockingTypeFieldSpecified; + /// Describes the possible discount types on the cost of booking a LineItem. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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 DeliveryRateType builtInDeliveryRateTypeField; - private bool builtInDeliveryRateTypeFieldSpecified; + /// Specifies the reservation status of the LineItem. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "LineItemSummary.ReservationStatus", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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 CreativeRotationType builtInCreativeRotationTypeField; - private bool builtInCreativeRotationTypeFieldSpecified; + /// User consent eligibility designation for a LineItem. This + /// value is only relevant if a publisher has opted to "Limit line items" in the + /// network-level EU user consent settings, and only on specific types of LineItem. See the Ad Manager + /// Help Center for a full explanation of how and when this setting is used. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum UserConsentEligibility { + /// Don't serve for any EEA ad request. This line item is not eligible to serve on + /// any requests that originate in the EEA regardless of the consent bit in request. + /// + NONE = 0, + /// Don't limit serving. The network has marked this line item as one that does not + /// use any personalized data. The line item is therefore eligible to serve on + /// requests regardless of users' consent designations (in other words, for requests + /// that have either NPA=1 or no NPA). + /// + CONSENTED_OR_NPA = 1, + /// Don't serve for non-personalized ad requests. The network has marked this line + /// item as being eligible to serve on any consented request (i.e., on requests that + /// do not have NPA=1). The network therefore takes responsibility for + /// gathering consent from the user for any data sharing that may occur from third + /// parties present on the creatives that are associated with this line item. If a + /// non-consented request (a request that does have NPA=1) is received, this + /// line item will not be eligible for match. + /// + CONSENTED_ONLY = 2, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 3, + } - private CompanionDeliveryOption builtInCompanionDeliveryOptionField; - private bool builtInCompanionDeliveryOptionFieldSpecified; + /// 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.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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 FrequencyCap[] builtInFrequencyCapsField; - private Targeting productBuiltInTargetingField; + /// LineItem is an advertiser's commitment to purchase a specific + /// number of ad impressions, clicks, or time. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class LineItem : LineItemSummary { + private Targeting targetingField; - private CustomizableAttributes customizableAttributesField; + private CreativeTargeting[] creativeTargetingsField; - /// Allows customization of creative placeholders - /// when creating proposal line items.

This - /// attribute is read-only.

+ /// Contains the targeting criteria for the ad campaign. This attribute is required. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public bool allowCreativePlaceholdersCustomization { + public Targeting targeting { get { - return this.allowCreativePlaceholdersCustomizationField; + return this.targetingField; } set { - this.allowCreativePlaceholdersCustomizationField = value; - this.allowCreativePlaceholdersCustomizationSpecified = true; + this.targetingField = value; } } - /// true, if a value is specified for , false otherwise. + /// 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 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.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool allowCreativePlaceholdersCustomizationSpecified { + [System.Xml.Serialization.XmlElementAttribute("creativeTargetings", Order = 1)] + public CreativeTargeting[] creativeTargetings { get { - return this.allowCreativePlaceholdersCustomizationFieldSpecified; + return this.creativeTargetingsField; } set { - this.allowCreativePlaceholdersCustomizationFieldSpecified = value; + this.creativeTargetingsField = value; } } + } - /// The built-in creative placeholders for the - /// created ProposalLineItem.

This attribute is - /// read-only.

- ///
- [System.Xml.Serialization.XmlElementAttribute("builtInCreativePlaceholders", Order = 1)] - public CreativePlaceholder[] builtInCreativePlaceholders { - get { - return this.builtInCreativePlaceholdersField; - } - set { - this.builtInCreativePlaceholdersField = value; - } - } - /// The built-in roadblocking type for the created ProposalLineItem.

This attribute is - /// read-only.

+ /// Represents a prospective line item to be forecasted. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class ProspectiveLineItem { + private LineItem lineItemField; + + private ProposalLineItem proposalLineItemField; + + private long advertiserIdField; + + private bool advertiserIdFieldSpecified; + + /// 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 = 2)] - public RoadblockingType builtInRoadblockingType { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public LineItem lineItem { get { - return this.builtInRoadblockingTypeField; + return this.lineItemField; } set { - this.builtInRoadblockingTypeField = value; - this.builtInRoadblockingTypeSpecified = true; + this.lineItemField = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool builtInRoadblockingTypeSpecified { + /// 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.builtInRoadblockingTypeFieldSpecified; + return this.proposalLineItemField; } set { - this.builtInRoadblockingTypeFieldSpecified = value; + this.proposalLineItemField = value; } } - /// The built-in delivery rate type for the created ProposalLineItem.

This attribute is - /// read-only.

+ /// 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 = 3)] - public DeliveryRateType builtInDeliveryRateType { + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public long advertiserId { get { - return this.builtInDeliveryRateTypeField; + return this.advertiserIdField; } set { - this.builtInDeliveryRateTypeField = value; - this.builtInDeliveryRateTypeSpecified = true; + this.advertiserIdField = value; + this.advertiserIdSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="advertiserId" />, false otherwise.
[System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool builtInDeliveryRateTypeSpecified { + public bool advertiserIdSpecified { get { - return this.builtInDeliveryRateTypeFieldSpecified; + return this.advertiserIdFieldSpecified; } set { - this.builtInDeliveryRateTypeFieldSpecified = value; + this.advertiserIdFieldSpecified = value; } } + } - /// The built-in creative rotation type for the created ProposalLineItem.

This attribute is - /// read-only.

- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public CreativeRotationType builtInCreativeRotationType { + + /// Lists all errors related to VideoPositionTargeting. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class VideoPositionTargetingError : ApiError { + private VideoPositionTargetingErrorReason reasonField; + + private bool reasonFieldSpecified; + + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public VideoPositionTargetingErrorReason reason { get { - return this.builtInCreativeRotationTypeField; + return this.reasonField; } set { - this.builtInCreativeRotationTypeField = value; - this.builtInCreativeRotationTypeSpecified = 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 builtInCreativeRotationTypeSpecified { + public bool reasonSpecified { get { - return this.builtInCreativeRotationTypeFieldSpecified; + return this.reasonFieldSpecified; } set { - this.builtInCreativeRotationTypeFieldSpecified = value; + this.reasonFieldSpecified = value; } } + } + - /// The built-in companion delivery option for the created ProposalLineItem.

This attribute is - /// read-only.

+ /// The reasons for the video position targeting error. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "VideoPositionTargetingError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum VideoPositionTargetingErrorReason { + /// Video position targeting cannot contain both bumper and non-bumper targeting + /// values. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 5)] - public CompanionDeliveryOption builtInCompanionDeliveryOption { + 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.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class UserDomainTargetingError : ApiError { + private UserDomainTargetingErrorReason reasonField; + + private bool reasonFieldSpecified; + + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public UserDomainTargetingErrorReason reason { get { - return this.builtInCompanionDeliveryOptionField; + return this.reasonField; } set { - this.builtInCompanionDeliveryOptionField = value; - this.builtInCompanionDeliveryOptionSpecified = 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 builtInCompanionDeliveryOptionSpecified { + public bool reasonSpecified { get { - return this.builtInCompanionDeliveryOptionFieldSpecified; + return this.reasonFieldSpecified; } set { - this.builtInCompanionDeliveryOptionFieldSpecified = value; + this.reasonFieldSpecified = value; } } + } - /// The built-in frequency caps for the created ProposalLineItem.

This attribute is - /// read-only.

- ///
- [System.Xml.Serialization.XmlElementAttribute("builtInFrequencyCaps", Order = 6)] - public FrequencyCap[] builtInFrequencyCaps { - get { - return this.builtInFrequencyCapsField; - } - set { - this.builtInFrequencyCapsField = value; - } - } - /// Built-in targeting for the created ProposalLineItem.

This attribute is - /// read-only.

+ /// ApiErrorReason enum for user domain targeting + /// error. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "UserDomainTargetingError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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 Targeting productBuiltInTargeting { + INVALID_DOMAIN_NAMES = 0, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 1, + } + + + /// Errors related to timezones. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class TimeZoneError : ApiError { + private TimeZoneErrorReason reasonField; + + private bool reasonFieldSpecified; + + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public TimeZoneErrorReason reason { get { - return this.productBuiltInTargetingField; + return this.reasonField; } set { - this.productBuiltInTargetingField = value; + this.reasonField = value; + this.reasonSpecified = true; } } - /// Specifies what targeting or attributes for the created ProposalLineItem are customizable.

This attribute - /// is read-only.

- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 8)] - public CustomizableAttributes customizableAttributes { + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool reasonSpecified { get { - return this.customizableAttributesField; + return this.reasonFieldSpecified; } set { - this.customizableAttributesField = value; + this.reasonFieldSpecified = value; } } } - /// Describes the roadblocking types. + /// Describes reasons for invalid timezone. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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. + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "TimeZoneError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum TimeZoneErrorReason { + /// Indicates that the timezone ID provided is not supported. /// - 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). + 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"). /// - ALL_ROADBLOCK = 3, - /// A master/companion CreativeSet roadblocking type. A LineItem#creativePlaceholders must be - /// set accordingly. + TIMEZONE_ID_IN_WRONG_FORMAT = 1, + /// The value returned if the actual value is not exposed by the requested API + /// version. /// - CREATIVE_SET = 4, + UNKNOWN = 2, } - /// Possible delivery rates for a LineItem, which dictate the - /// manner in which they are served. + /// Technology targeting validation errors. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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, - } + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class TechnologyTargetingError : ApiError { + private TechnologyTargetingErrorReason reasonField; + private bool reasonFieldSpecified; - /// The strategy to use for displaying multiple Creative - /// objects that are associated with a LineItem. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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.Xml.Serialization.XmlElementAttribute(Order = 0)] + public TechnologyTargetingErrorReason 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 delivery option for companions. Used for line items whose environmentType is - /// EnvironmentType#VIDEO_PLAYER. + /// The reasons for the target error. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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. + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "TechnologyTargetingError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum TechnologyTargetingErrorReason { + /// Mobile line item cannot target web-only targeting criteria. /// - OPTIONAL = 0, - /// At least one companion must be served in order for the creative set to be used. + MOBILE_LINE_ITEM_CONTAINS_WEB_TECH_CRITERIA = 0, + /// Web line item cannot target mobile-only targeting criteria. /// - 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. + WEB_LINE_ITEM_CONTAINS_MOBILE_TECH_CRITERIA = 1, + /// The mobile carrier targeting feature is not enabled. /// - ALL = 2, - /// The delivery type is unknown. + MOBILE_CARRIER_TARGETING_FEATURE_NOT_ENABLED = 2, + /// The device capability targeting feature is not enabled. /// - UNKNOWN = 3, + DEVICE_CAPABILITY_TARGETING_FEATURE_NOT_ENABLED = 3, + /// The device category targeting feature is not enabled. + /// + DEVICE_CATEGORY_TARGETING_FEATURE_NOT_ENABLED = 4, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 5, } - /// Represents a limit on the number of times a single viewer can be exposed to the - /// same LineItem in a specified time period. + /// Errors related to a Team. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class FrequencyCap { - private int maxImpressionsField; - - private bool maxImpressionsFieldSpecified; - - private int numTimeUnitsField; - - private bool numTimeUnitsFieldSpecified; - - private TimeUnit timeUnitField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class TeamError : ApiError { + private TeamErrorReason reasonField; - private bool timeUnitFieldSpecified; + private bool reasonFieldSpecified; - /// The maximum number of impressions than can be served to a user within a - /// specified time period. + /// The error reason represented by an enum. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public int maxImpressions { + public TeamErrorReason reason { get { - return this.maxImpressionsField; + return this.reasonField; } set { - this.maxImpressionsField = value; - this.maxImpressionsSpecified = 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 maxImpressionsSpecified { + public bool reasonSpecified { get { - return this.maxImpressionsFieldSpecified; + return this.reasonFieldSpecified; } set { - this.maxImpressionsFieldSpecified = value; + this.reasonFieldSpecified = value; } } + } - /// The number of FrequencyCap#timeUnit to represent the total time - /// period. + + /// The reasons for the target error. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "TeamError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum TeamErrorReason { + /// User cannot use this entity because it is not on any of the user's teams. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public int numTimeUnits { + 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, + /// The all entities team access type cannot be overridden. + /// + ALL_TEAM_ACCESS_OVERRIDE_NOT_ALLOWED = 5, + /// 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.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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.numTimeUnitsField; + return this.reasonField; } set { - this.numTimeUnitsField = value; - this.numTimeUnitsSpecified = 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 numTimeUnitsSpecified { + public bool reasonSpecified { get { - return this.numTimeUnitsFieldSpecified; + return this.reasonFieldSpecified; } set { - this.numTimeUnitsFieldSpecified = value; + this.reasonFieldSpecified = value; } } + } - /// The unit of time for specifying the time period. + + /// Reason for set-top box error. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "SetTopBoxLineItemError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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 = 2)] - public TimeUnit timeUnit { + 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.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class AudienceSegmentError : ApiError { + private AudienceSegmentErrorReason reasonField; + + private bool reasonFieldSpecified; + + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public AudienceSegmentErrorReason reason { get { - return this.timeUnitField; + return this.reasonField; } set { - this.timeUnitField = value; - this.timeUnitSpecified = 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 timeUnitSpecified { + public bool reasonSpecified { get { - return this.timeUnitFieldSpecified; + return this.reasonFieldSpecified; } set { - this.timeUnitFieldSpecified = value; + this.reasonFieldSpecified = value; } } } - /// Represent the possible time units for frequency capping. + /// Reason of the given AudienceSegmentError. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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.XmlTypeAttribute(TypeName = "AudienceSegmentError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum AudienceSegmentErrorReason { + /// First party audience segment is not supported. /// - POD = 6, - /// Per video stream. Only valid for entities in a EnvironmentType#VIDEO_PLAYER - /// environment. + FIRST_PARTY_AUDIENCE_SEGMENT_NOT_SUPPORTED = 0, + /// Only rule-based first-party audience segments can be created. /// - STREAM = 7, + 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 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 occured when purchasing global licenses. + /// + AUDIENCE_SEGMENT_GLOBAL_LICENSE_ERROR = 17, /// The value returned if the actual value is not exposed by the requested API /// version. /// - UNKNOWN = 8, + UNKNOWN = 18, } - /// A ProposalLineItem is an instance of sales Product. It belongs to a Proposal and - /// is created according to a Product and RateCard. When the proposal is turned into an Order, this object is turned into a LineItem. + /// Lists all errors associated with LineItem's reservation details. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ProposalLineItem { - private long idField; - - private bool idFieldSpecified; - - private long proposalIdField; - - private bool proposalIdFieldSpecified; - - private long packageIdField; - - private bool packageIdFieldSpecified; - - private long rateCardIdField; - - private bool rateCardIdFieldSpecified; - - private long productIdField; - - private bool productIdFieldSpecified; - - private string nameField; - - private DateTime startDateTimeField; - - private DateTime endDateTimeField; - - private string timeZoneIdField; - - private string internalNotesField; - - private CostAdjustment costAdjustmentField; - - private bool costAdjustmentFieldSpecified; - - private bool isArchivedField; - - private bool isArchivedFieldSpecified; - - private Goal goalField; - - private int contractedQuantityBufferField; - - private bool contractedQuantityBufferFieldSpecified; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class ReservationDetailsError : ApiError { + private ReservationDetailsErrorReason reasonField; - private long scheduledQuantityField; + private bool reasonFieldSpecified; - private bool scheduledQuantityFieldSpecified; + /// The error reason represented by an enum. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public ReservationDetailsErrorReason reason { + get { + return this.reasonField; + } + set { + this.reasonField = value; + this.reasonSpecified = true; + } + } - private long contractedUnitsBoughtField; + /// 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 contractedUnitsBoughtFieldSpecified; - private DeliveryRateType deliveryRateTypeField; - - private bool deliveryRateTypeFieldSpecified; - - private RoadblockingType roadblockingTypeField; - - private bool roadblockingTypeFieldSpecified; - - private CompanionDeliveryOption companionDeliveryOptionField; - - private bool companionDeliveryOptionFieldSpecified; - - private CreativeRotationType creativeRotationTypeField; - - private bool creativeRotationTypeFieldSpecified; - - private long videoMaxDurationField; - - private bool videoMaxDurationFieldSpecified; - - 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 ProposalLineItemConstraints productConstraintsField; - - private ProposalLineItemPremium[] premiumsField; - - private bool isSoldField; - - private bool isSoldFieldSpecified; - - private Money baseRateField; - - private Money netRateField; - - private Money grossRateField; - - private Money netCostField; - - private Money grossCostField; - - private DeliveryIndicator deliveryIndicatorField; - - private long[] deliveryDataField; - - private ComputedStatus computedStatusField; - - private bool computedStatusFieldSpecified; - - private BillingCap billingCapField; - - private bool billingCapFieldSpecified; - - private BillingSchedule billingScheduleField; - - private bool billingScheduleFieldSpecified; - - private BillingSource billingSourceField; - - private bool billingSourceFieldSpecified; - - private BillingBase billingBaseField; - - private bool billingBaseFieldSpecified; - - private DateTime lastModifiedDateTimeField; - - private ReservationStatus reservationStatusField; - - private bool reservationStatusFieldSpecified; - - private DateTime lastReservationDateTimeField; - - private bool useThirdPartyAdServerFromProposalField; - - private bool useThirdPartyAdServerFromProposalFieldSpecified; - - private int thirdPartyAdServerIdField; - - private bool thirdPartyAdServerIdFieldSpecified; - - private string customThirdPartyAdServerNameField; - - private EnvironmentType environmentTypeField; - - private bool environmentTypeFieldSpecified; - - private bool isProgrammaticField; - - private bool isProgrammaticFieldSpecified; - - private LinkStatus linkStatusField; - - private bool linkStatusFieldSpecified; - - private ProposalLineItemMarketplaceInfo marketplaceInfoField; - - private PricingModel rateCardPricingModelField; - - private bool rateCardPricingModelFieldSpecified; - - private string additionalTermsField; - - private ProgrammaticCreativeSource programmaticCreativeSourceField; + /// The reasons for the target error. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ReservationDetailsError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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, + } - private bool programmaticCreativeSourceFieldSpecified; - private long estimatedMinimumImpressionsField; + /// Errors related to request platform targeting. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class RequestPlatformTargetingError : ApiError { + private RequestPlatformTargetingErrorReason reasonField; - private bool estimatedMinimumImpressionsFieldSpecified; + private bool reasonFieldSpecified; - /// The unique ID of the ProposalLineItem. This attribute is read-only. + /// The error reason represented by an enum. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public long id { + public RequestPlatformTargetingErrorReason 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; } } + } - /// 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. + + /// ApiErrorReason enum for the request platform + /// targeting error. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "RequestPlatformTargetingError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum RequestPlatformTargetingErrorReason { + /// The line item type does not support the targeted request platform type. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public long proposalId { + REQUEST_PLATFORM_TYPE_NOT_SUPPORTED_BY_LINE_ITEM_TYPE = 0, + /// 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.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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.proposalIdField; + return this.reasonField; } set { - this.proposalIdField = value; - this.proposalIdSpecified = 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 proposalIdSpecified { + public bool reasonSpecified { get { - return this.proposalIdFieldSpecified; + return this.reasonFieldSpecified; } set { - this.proposalIdFieldSpecified = value; + this.reasonFieldSpecified = value; } } + } - /// The unique ID of the Package, to which the - /// ProposalLineItem belongs. This attribute is assigned by Google when - /// creating the ProposalLineItem by performing the package action CreateProposalLineItemsFromPackages. - /// This attribute is applicable when: - ///
  • not using programmatic, using sales management.
This attribute is read-only when:
    - ///
  • not using programmatic, using sales management.
+ + /// The reasons for the target error. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "RegExError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum RegExErrorReason { + /// Invalid value found. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public long packageId { + 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.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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.packageIdField; + return this.reasonField; } set { - this.packageIdField = value; - this.packageIdSpecified = 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 packageIdSpecified { + public bool reasonSpecified { get { - return this.packageIdFieldSpecified; + return this.reasonFieldSpecified; } set { - this.packageIdFieldSpecified = value; + this.reasonFieldSpecified = value; } } + } - /// The unique ID of the RateCard, based on which the - /// ProposalLineItem is priced. The rate card must be associated with a - /// rate belonging to the product. This attribute is - /// required for creation and then is readonly. This attribute is applicable when:
  • using - /// programmatic guaranteed, using sales management.
  • not using - /// programmatic, using sales management.
This attribute is required when:
  • using programmatic - /// guaranteed, using sales management.
  • not using programmatic, using sales - /// management.
+ + /// Possible error reasons for a programmatic error. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ProgrammaticError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum ProgrammaticErrorReason { + /// Audience extension is not supported by programmatic line items. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public long rateCardId { + 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, + } + + + /// Lists all errors associated with orders. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class OrderError : ApiError { + private OrderErrorReason reasonField; + + private bool reasonFieldSpecified; + + /// The error reason represented by an enum. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public OrderErrorReason reason { get { - return this.rateCardIdField; + return this.reasonField; } set { - this.rateCardIdField = value; - this.rateCardIdSpecified = 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 rateCardIdSpecified { + public bool reasonSpecified { get { - return this.rateCardIdFieldSpecified; + return this.reasonFieldSpecified; } set { - this.rateCardIdFieldSpecified = value; + this.reasonFieldSpecified = value; } } + } - /// The unique ID of the Product, which the - /// ProposalLineItem is created from. This attribute is readonly after - /// creation. This attribute is read-only - /// when:
  • using programmatic guaranteed, not using sales - /// management.
This attribute is - /// required when:
  • using programmatic guaranteed, using sales - /// management.
  • not using programmatic, using sales management.
+ + /// The reasons for the target error. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "OrderError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum OrderErrorReason { + /// Updating a canceled order is not allowed. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public long productId { + 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.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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.productIdField; + return this.reasonField; } set { - this.productIdField = value; - this.productIdSpecified = 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 productIdSpecified { + public bool reasonSpecified { get { - return this.productIdFieldSpecified; + return this.reasonFieldSpecified; } set { - this.productIdFieldSpecified = value; + this.reasonFieldSpecified = 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 = 5)] - 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. + /// The reasons for the target error. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "OrderActionError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum OrderActionErrorReason { + /// The operation is not allowed due to lack of permissions. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 6)] - public DateTime startDateTime { - get { - return this.startDateTimeField; - } - set { - this.startDateTimeField = value; - } - } - - /// 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. + PERMISSION_DENIED = 0, + /// The operation is not applicable for the current state of the Order. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 7)] - public DateTime endDateTime { - get { - return this.endDateTimeField; - } - set { - this.endDateTimeField = 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 when:
  • using programmatic guaranteed, using sales - /// management.
  • using programmatic guaranteed, not using sales - /// management.
+ NOT_APPLICABLE = 1, + /// The Order is archived, an OrderAction cannot be applied to an archived order. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 8)] - public string timeZoneId { - get { - return this.timeZoneIdField; - } - set { - this.timeZoneIdField = 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. + IS_ARCHIVED = 2, + /// The Order is past its end date, An OrderAction cannot be applied to a order that has ended. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 9)] - public string internalNotes { - get { - return this.internalNotesField; - } - set { - this.internalNotesField = value; - } - } - - /// The cost adjustment applied to the ProposalLineItem. This attribute - /// is optional and default value is CostAdjustment#NONE. This attribute is applicable when:
  • using - /// programmatic guaranteed, using sales management.
  • not using - /// programmatic, using sales management.
This attribute is read-only when:
  • using programmatic - /// guaranteed, using sales management.
+ HAS_ENDED = 3, + /// A Order cannot be approved if it contains reservable LineItems that are unreserved. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 10)] - public CostAdjustment costAdjustment { - get { - return this.costAdjustmentField; - } - set { - this.costAdjustmentField = value; - this.costAdjustmentSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool costAdjustmentSpecified { - get { - return this.costAdjustmentFieldSpecified; - } - set { - this.costAdjustmentFieldSpecified = value; - } - } - - /// The archival status of the ProposalLineItem. This attribute is - /// read-only. + CANNOT_APPROVE_WITH_UNRESERVED_LINE_ITEMS = 4, + /// Deleting an Order with delivered line items is not allowed /// - [System.Xml.Serialization.XmlElementAttribute(Order = 11)] - 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 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. + CANNOT_DELETE_ORDER_WITH_DELIVERED_LINEITEMS = 5, + /// Cannot approve because company credit status is not active. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 12)] - public Goal goal { - get { - return this.goalField; - } - set { - this.goalField = value; - } - } - - /// A percentage number to a STANDARD line item with CPM or CPC as the rate type, so - /// that the scheduled delivery goal could be relaxed. This number is milli-percent - /// based, i.e. 10% would be 10000. This - /// attribute is applicable when:
  • not using programmatic, using - /// sales management.
+ CANNOT_APPROVE_COMPANY_CREDIT_STATUS_NOT_ACTIVE = 6, + /// The value returned if the actual value is not exposed by the requested API + /// version. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 13)] - public int contractedQuantityBuffer { - get { - return this.contractedQuantityBufferField; - } - set { - this.contractedQuantityBufferField = value; - this.contractedQuantityBufferSpecified = true; - } - } + UNKNOWN = 7, + } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool contractedQuantityBufferSpecified { - get { - return this.contractedQuantityBufferFieldSpecified; - } - set { - this.contractedQuantityBufferFieldSpecified = value; - } - } - /// The scheduled number of impressions or clicks of a STANDARD line item with CPM - /// or CPC as the rate type, so that the scheduled delivery goal could be relaxed. - /// This attribute is calculated from Goal#units and #contractedQuantityBuffer. This attribute is applicable when:
    - ///
  • not using programmatic, using sales management.
This attribute is read-only when:
    - ///
  • not using programmatic, using sales management.
- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 14)] - public long scheduledQuantity { - get { - return this.scheduledQuantityField; - } - set { - this.scheduledQuantityField = value; - this.scheduledQuantitySpecified = true; - } - } + /// Lists all errors for executing operations on line items + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class LineItemOperationError : ApiError { + private LineItemOperationErrorReason reasonField; - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool scheduledQuantitySpecified { - get { - return this.scheduledQuantityFieldSpecified; - } - set { - this.scheduledQuantityFieldSpecified = value; - } - } + private bool reasonFieldSpecified; - /// The contracted number of impressions or clicks. If this is a LineItemType#SPONSORSHIP , has - /// RateType#CPD as a rate type, and #isProgrammatic is false, then this represents the - /// lifetime minimum impression. If this is a LineItemType#SPONSORSHIP , has - /// RateType#CPD as a rate type, and #isProgrammatic is true, then this represents the - /// daily minimum impression.

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

+ /// The error reason represented by an enum. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 15)] - public long contractedUnitsBought { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public LineItemOperationErrorReason 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 { - get { - return this.contractedUnitsBoughtFieldSpecified; - } - set { - this.contractedUnitsBoughtFieldSpecified = value; - } - } - - /// The strategy for delivering ads over the course of the 's duration. - /// This attribute is optional and default value is DeliveryRateType#EVENLY. For a Preferred deal - /// ProposalLineItem, the value can only be DeliveryRateType#FRONTLOADED. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 16)] - public DeliveryRateType deliveryRateType { + public bool reasonSpecified { get { - return this.deliveryRateTypeField; + return this.reasonFieldSpecified; } set { - this.deliveryRateTypeField = value; - this.deliveryRateTypeSpecified = true; + this.reasonFieldSpecified = value; } } + } - /// 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 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.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "LineItemOperationError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum LineItemOperationErrorReason { + /// The operation is not allowed due to lack of permissions. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 17)] - public RoadblockingType roadblockingType { - get { - return this.roadblockingTypeField; - } - set { - this.roadblockingTypeField = value; - this.roadblockingTypeSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool roadblockingTypeSpecified { - get { - return this.roadblockingTypeFieldSpecified; - } - set { - this.roadblockingTypeFieldSpecified = 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. + NOT_ALLOWED = 0, + /// The operation is not applicable for the current state of the LineItem. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 18)] - public CompanionDeliveryOption companionDeliveryOption { - get { - return this.companionDeliveryOptionField; - } - set { - this.companionDeliveryOptionField = value; - this.companionDeliveryOptionSpecified = true; - } - } + 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_INVALID_COMPANY_CREDIT_STATUS = 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 companionDeliveryOptionSpecified { - get { - return this.companionDeliveryOptionFieldSpecified; - } - set { - this.companionDeliveryOptionFieldSpecified = value; - } - } - /// The strategy used for displaying multiple Creative - /// objects that are associated with the . This attribute is optional - /// and default value is CreativeRotationType#OPTIMIZED. This attribute is applicable when:
    - ///
  • not using programmatic, using sales management.
- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 19)] - public CreativeRotationType creativeRotationType { - get { - return this.creativeRotationTypeField; - } - set { - this.creativeRotationTypeField = value; - this.creativeRotationTypeSpecified = true; - } - } + /// Lists all errors associated with LineItem start and end dates. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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 creativeRotationTypeSpecified { - get { - return this.creativeRotationTypeFieldSpecified; - } - set { - this.creativeRotationTypeFieldSpecified = value; - } - } + private bool reasonFieldSpecified; - /// 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. + /// The error reason represented by an enum. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 20)] - public long videoMaxDuration { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public LineItemFlightDateErrorReason 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 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.Xml.Serialization.XmlElementAttribute("frequencyCaps", Order = 21)] - public FrequencyCap[] frequencyCaps { - get { - return this.frequencyCapsField; - } - set { - this.frequencyCapsField = value; - } - } - /// 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. + /// The reasons for the target error. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "LineItemFlightDateError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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 = 22)] - public long dfpLineItemId { - get { - return this.dfpLineItemIdField; - } - set { - this.dfpLineItemIdField = value; - this.dfpLineItemIdSpecified = true; - } - } + UNKNOWN = 4, + } - /// 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; - } - } - /// The corresponding LineItemType of the - /// ProposalLineItem. For a programmatic , the value can - /// only be one of: - /// This attribute is required. + /// A catch-all error that lists all generic errors associated with LineItem. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class LineItemError : ApiError { + private LineItemErrorReason reasonField; + + private bool reasonFieldSpecified; + + /// The error reason represented by an enum. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 23)] - public LineItemType lineItemType { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public LineItemErrorReason 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 product's priority, or a default - /// value assigned by Google. See LineItem#priority - /// for more information. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 24)] - public int lineItemPriority { - get { - return this.lineItemPriorityField; - } - set { - this.lineItemPriorityField = value; - this.lineItemPrioritySpecified = true; - } - } - /// 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; - } - } + /// The reasons for the target error. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "LineItemError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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. + /// + UPDATE_RESERVATION_NOT_ALLOWED = 1, + /// Roadblocking to display all creatives is not allowed. + /// + ALL_ROADBLOCK_NOT_ALLOWED = 2, + /// Roadblocking to display all master and companion creative set is not allowed. + /// + CREATIVE_SET_ROADBLOCK_NOT_ALLOWED = 3, + /// Fractional percentage is not allowed. + /// + FRACTIONAL_PERCENTAGE_NOT_ALLOWED = 4, + /// For certain LineItem configurations discounts are not allowed. + /// + 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, + /// 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, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 50, + } - /// The method used for billing the ProposalLineItem. This attribute is read-only when:
    - ///
  • using programmatic guaranteed, using sales management.
  • not using - /// programmatic, using sales management.
This attribute is required when:
  • using programmatic - /// guaranteed, not using sales management.
+ + /// Errors specific to associating activities to line items. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class LineItemActivityAssociationError : ApiError { + private LineItemActivityAssociationErrorReason reasonField; + + private bool reasonFieldSpecified; + + /// The error reason represented by an enum. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 25)] - public RateType rateType { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public LineItemActivityAssociationErrorReason 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's creative - /// placeholders. This attribute is required - /// when:
  • using programmatic guaranteed, not using sales - /// management.
+ + /// The reasons for the target error. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "LineItemActivityAssociationError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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.XmlElementAttribute("creativePlaceholders", Order = 26)] - public CreativePlaceholder[] creativePlaceholders { + INVALID_ACTIVITY_FOR_ADVERTISER = 0, + /// Activities can only be associated with line items of CostType.CPA. + /// + INVALID_COST_TYPE_FOR_ASSOCIATION = 1, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 2, + } + + + /// Lists the generic errors associated with AdUnit objects. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class InventoryUnitError : ApiError { + private InventoryUnitErrorReason reasonField; + + private bool reasonFieldSpecified; + + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public InventoryUnitErrorReason reason { get { - return this.creativePlaceholdersField; + return this.reasonField; } set { - this.creativePlaceholdersField = value; + this.reasonField = value; + this.reasonSpecified = true; } } - /// Contains the targeting criteria for the ProposalLineItem. This - /// attribute is optional during creation and defaults to the product's targeting. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 27)] - 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; } } + } - /// 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. + + /// Possible reasons for the error. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "InventoryUnitError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum InventoryUnitErrorReason { + /// AdUnit#explicitlyTargeted can be set to + /// true only in an Ad Manager 360 account. /// - [System.Xml.Serialization.XmlElementAttribute("customFieldValues", Order = 28)] - public BaseCustomFieldValue[] customFieldValues { - get { - return this.customFieldValuesField; - } - set { - this.customFieldValuesField = value; - } - } + 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, + } - /// The set of labels applied directly to the ProposalLineItem. This - /// attribute is optional. + + /// Lists all inventory errors caused by associating a line item with a targeting + /// expression. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class InventoryTargetingError : ApiError { + private InventoryTargetingErrorReason reasonField; + + private bool reasonFieldSpecified; + + /// The error reason represented by an enum. /// - [System.Xml.Serialization.XmlElementAttribute("appliedLabels", Order = 29)] - public AppliedLabel[] appliedLabels { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public InventoryTargetingErrorReason 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 = 30)] - 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.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "InventoryTargetingError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum InventoryTargetingErrorReason { + /// At least one placement or inventory unit is required /// - [System.Xml.Serialization.XmlElementAttribute(Order = 31)] - public bool disableSameAdvertiserCompetitiveExclusion { + 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, + } + + + /// Errors associated with line items with GRP settings. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class GrpSettingsError : ApiError { + private GrpSettingsErrorReason reasonField; + + private bool reasonFieldSpecified; + + /// The error reason represented by an enum. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public GrpSettingsErrorReason 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; } } + } - /// All the product constraints set for this ProposalLineItem. This attribute is applicable when:
    - ///
  • using programmatic guaranteed, using sales management.
  • not using - /// programmatic, using sales management.
This attribute is read-only when:
  • using programmatic - /// guaranteed, using sales management.
  • not using programmatic, using sales - /// management.
- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 32)] - public ProposalLineItemConstraints productConstraints { - get { - return this.productConstraintsField; - } - set { - this.productConstraintsField = value; - } - } - /// The premiums triggered by this ProposalLineItem and their statuses. - /// For those triggered premiums whose statues are not specified, the default status - /// is ProposalLineItemPremiumStatus#INCLUDED. - /// This attribute is applicable when: - ///
  • using programmatic guaranteed, using sales management.
  • not - /// using programmatic, using sales management.
+ /// Reason for GRP settings error. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "GrpSettingsError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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("premiums", Order = 33)] - public ProposalLineItemPremium[] premiums { - get { - return this.premiumsField; - } - set { - this.premiumsField = value; - } - } + INVALID_AGE_RANGE = 0, + /// GRP settings are only supported for video line items. + /// + LINE_ITEM_ENVIRONMENT_TYPE_NOT_SUPPORTED = 1, + /// 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 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, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 13, + } - /// Indicates whether this ProposalLineItem has been sold. This - /// attribute is read-only. + + /// Lists all errors associated with geographical targeting for a LineItem. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class GeoTargetingError : ApiError { + private GeoTargetingErrorReason reasonField; + + private bool reasonFieldSpecified; + + /// The error reason represented by an enum. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 34)] - public bool isSold { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public GeoTargetingErrorReason 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 base rate of the ProposalLineItem in proposal currency. This attribute is applicable when:
    - ///
  • using programmatic guaranteed, using sales management.
  • not using - /// programmatic, using sales management.
This attribute is read-only when:
  • using programmatic - /// guaranteed, using sales management.
  • not using programmatic, using sales - /// management.
- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 35)] - public Money baseRate { - get { - return this.baseRateField; - } - set { - this.baseRateField = 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.

- ///

When using sales management, at least one of the four fields ProposalLineItem#netRate, ProposalLineItem#grossRate, ProposalLineItem#netCost and ProposalLineItem#grossCost is - /// required.

When not using sales management, at least one of the two fields - /// ProposalLineItem#netRate and ProposalLineItem#netCost is required.

+ /// The reasons for the target error. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "GeoTargetingError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum GeoTargetingErrorReason { + /// A location that is targeted cannot also be excluded. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 36)] - public Money netRate { - get { - return this.netRateField; - } - set { - this.netRateField = 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 includes 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 four fields ProposalLineItem#netRate, ProposalLineItem#grossRate, ProposalLineItem#netCost and ProposalLineItem#grossCost is required. - /// This attribute is applicable - /// when:

  • using programmatic guaranteed, using sales - /// management.
  • not using programmatic, using sales management.
+ TARGETED_LOCATIONS_NOT_EXCLUDABLE = 0, + /// Excluded locations cannot have any of their children targeted. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 37)] - public Money grossRate { - get { - return this.grossRateField; - } - set { - this.grossRateField = 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.

- ///

When using sales management, at least one of the four fields ProposalLineItem#netRate, ProposalLineItem#grossRate, ProposalLineItem#netCost and ProposalLineItem#grossCost is - /// required.

When not using sales management, at least one of the two fields - /// ProposalLineItem#netRate and ProposalLineItem#netCost is required.

+ EXCLUDED_LOCATIONS_CANNOT_HAVE_CHILDREN_TARGETED = 1, + /// Postal codes cannot be excluded. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 38)] - public Money netCost { - get { - return this.netCostField; - } - set { - this.netCostField = 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 includes agency commission.

At least one of the four fields ProposalLineItem#netRate, ProposalLineItem#grossRate, ProposalLineItem#netCost and ProposalLineItem#grossCost is required. - /// This attribute is applicable - /// when:

  • using programmatic guaranteed, using sales - /// management.
  • not using programmatic, using sales management.
+ POSTAL_CODES_CANNOT_BE_EXCLUDED = 2, + /// Indicates that location targeting is not allowed. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 39)] - public Money grossCost { - get { - return this.grossCostField; - } - set { - this.grossCostField = 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. + UNTARGETABLE_LOCATION = 3, + /// The value returned if the actual value is not exposed by the requested API + /// version. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 40)] - public DeliveryIndicator deliveryIndicator { - get { - return this.deliveryIndicatorField; - } - set { - this.deliveryIndicatorField = value; - } - } + UNKNOWN = 4, + } - /// 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.
  5. This attribute is read-only.
- ///
- [System.Xml.Serialization.XmlArrayAttribute(Order = 41)] - [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 = 42)] - public ComputedStatus computedStatus { + /// Targeting validation errors that can be used by different targeting types. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class GenericTargetingError : ApiError { + private GenericTargetingErrorReason reasonField; + + private bool reasonFieldSpecified; + + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public GenericTargetingErrorReason reason { get { - return this.computedStatusField; + return this.reasonField; } set { - this.computedStatusField = value; - this.computedStatusSpecified = 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 computedStatusSpecified { + public bool reasonSpecified { get { - return this.computedStatusFieldSpecified; + return this.reasonFieldSpecified; } set { - this.computedStatusFieldSpecified = value; + this.reasonFieldSpecified = value; } } + } - /// Overrides the billing cap of this ProposalLineItem. This attribute - /// is optional. If this field is overridden, then other required billing fields (#billingSource, or #billingBase) also need to be overridden depending on - /// the #billingSource. That is, none of the billing - /// fields will inherit from their Proposal object anymore. - /// 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 applicable - /// when:
  • not using programmatic, using sales management.
+ + /// The reasons for the target error. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "GenericTargetingError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum GenericTargetingErrorReason { + /// Both including and excluding sibling criteria is disallowed. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 43)] - public BillingCap billingCap { + 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.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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.billingCapField; + return this.reasonField; } set { - this.billingCapField = value; - this.billingCapSpecified = 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 billingCapSpecified { + public bool reasonSpecified { get { - return this.billingCapFieldSpecified; + return this.reasonFieldSpecified; } set { - this.billingCapFieldSpecified = value; + this.reasonFieldSpecified = value; } } + } - /// Overrides the billing schedule of this ProposalLineItem. This - /// attribute is optional. If this field is overridden, then other required billing - /// fields (#billingSource, or #billingBase) also need to be overridden depending on - /// the #billingSource. That is, none of the billing - /// fields will inherit from their Proposal object anymore. - /// 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 applicable - /// when:
  • not using programmatic, using sales management.
+ + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "FrequencyCapError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 44)] - public BillingSchedule billingSchedule { + UNKNOWN = 6, + } + + + /// Errors that can result from a forecast request. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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.billingScheduleField; + return this.reasonField; } set { - this.billingScheduleField = value; - this.billingScheduleSpecified = 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 billingScheduleSpecified { + public bool reasonSpecified { get { - return this.billingScheduleFieldSpecified; + return this.reasonFieldSpecified; } set { - this.billingScheduleFieldSpecified = value; + this.reasonFieldSpecified = value; } } + } + + + /// Reason why a forecast could not be retrieved. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ForecastError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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 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.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class DayPartTargetingError : ApiError { + private DayPartTargetingErrorReason reasonField; + + private bool reasonFieldSpecified; - /// Overrides the billing source of this ProposalLineItem. This - /// attribute is optional. If this field is overridden, then other required billing - /// fields (#billingCap, #billingSchedule, or #billingBase) also need to be overridden depending on - /// this field. That is, none of the billing fields will inherit from their Proposal object anymore. 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 applicable when:
  • not using - /// programmatic, using sales management.
+ /// The error reason represented by an enum. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 45)] - public BillingSource billingSource { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public DayPartTargetingErrorReason reason { get { - return this.billingSourceField; + return this.reasonField; } set { - this.billingSourceField = value; - this.billingSourceSpecified = 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 billingSourceSpecified { + public bool reasonSpecified { get { - return this.billingSourceFieldSpecified; + return this.reasonFieldSpecified; } set { - this.billingSourceFieldSpecified = value; + this.reasonFieldSpecified = value; } } + } - /// Overrides the billing base of this ProposalLineItem. This attribute - /// is optional.

If this field is overridden, then other required billing fields - /// (#billingCap, #billingSchedule, or #billingSource) also need to be overridden depending - /// on the #billingSource. That is, none of the billing - /// fields will inherit from their Proposal object anymore. 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 applicable - /// when:

  • not using programmatic, using sales management.
  • - ///
+ + /// The reasons for the target error. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "DayPartTargetingError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum DayPartTargetingErrorReason { + /// Hour of day must be between 0 and 24, inclusive. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 46)] - public BillingBase billingBase { + 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. + /// + UNKNOWN = 4, + } + + + /// Lists all date time range errors caused by associating a line item with a + /// targeting expression. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class DateTimeRangeTargetingError : ApiError { + private DateTimeRangeTargetingErrorReason reasonField; + + private bool reasonFieldSpecified; + + /// The error reason represented by an enum. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public DateTimeRangeTargetingErrorReason reason { get { - return this.billingBaseField; + return this.reasonField; } set { - this.billingBaseField = value; - this.billingBaseSpecified = 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 billingBaseSpecified { + public bool reasonSpecified { get { - return this.billingBaseFieldSpecified; + return this.reasonFieldSpecified; } set { - this.billingBaseFieldSpecified = value; + this.reasonFieldSpecified = 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 = 47)] - public DateTime lastModifiedDateTime { - get { - return this.lastModifiedDateTimeField; - } - set { - this.lastModifiedDateTimeField = value; - } - } - /// The reservation status of the ProposalLineItem. - /// This attribute is read-only. + /// ApiErrorReason enum for date time range targeting + /// error. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "DateTimeRangeTargetingError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum DateTimeRangeTargetingErrorReason { + /// No targeted ranges exists. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 48)] - 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. + EMPTY_RANGES = 0, + /// Type of lineitem is not sponsorship. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 49)] - public DateTime lastReservationDateTime { - get { - return this.lastReservationDateTimeField; - } - set { - this.lastReservationDateTimeField = value; - } - } - - /// Whether to use the corresponding proposal's third party ad server. If this field - /// is true, thirdPartyAdServerId and will be ignored. - /// This attribute is applicable when: - ///
  • not using programmatic, using sales management.
+ NOT_SPONSORSHIP_LINEITEM = 1, + /// Past ranges are changed. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 50)] - public bool useThirdPartyAdServerFromProposal { - get { - return this.useThirdPartyAdServerFromProposalField; - } - set { - this.useThirdPartyAdServerFromProposalField = value; - this.useThirdPartyAdServerFromProposalSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. + PAST_RANGES_CHANGED = 2, + /// Targeted date time ranges overlap. /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool useThirdPartyAdServerFromProposalSpecified { - get { - return this.useThirdPartyAdServerFromProposalFieldSpecified; - } - set { - this.useThirdPartyAdServerFromProposalFieldSpecified = value; - } - } - - /// A predefined third party ad server, which will be used to fill in - /// reconciliation. All predefined third party ad servers can be found in the - /// Third_Party_Company PQL table. If actual third party ad server is - /// not in the predefined list, this field is set to 0, and actual third party ad - /// server name is set in . This - /// attribute is applicable when:
  • not using programmatic, using - /// sales management.
+ RANGES_OVERLAP = 3, + /// First date time does not match line item's start time. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 51)] - public int thirdPartyAdServerId { - get { - return this.thirdPartyAdServerIdField; - } - set { - this.thirdPartyAdServerIdField = value; - this.thirdPartyAdServerIdSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool thirdPartyAdServerIdSpecified { - get { - return this.thirdPartyAdServerIdFieldSpecified; - } - set { - this.thirdPartyAdServerIdFieldSpecified = value; - } - } - - /// When actual third party ad server is not in the predefined list, - /// thirdPartyAdServerId is set to 0, and actual third party ad server - /// name is set here. When thirdPartyAdServerId is not 0, this field is - /// ignored. This attribute is applicable - /// when:
  • not using programmatic, using sales management.
+ FIRST_DATE_TIME_DOES_NOT_MATCH_START_TIME = 12, + /// Last date time does not match line item's end time. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 52)] - public string customThirdPartyAdServerName { - get { - return this.customThirdPartyAdServerNameField; - } - set { - this.customThirdPartyAdServerNameField = 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 can only be changed if the #linkStatus is LinkStatus#UNLINKED. Otherwise its value is - /// read-only and set to Product#environmentType of the product this - /// proposal line item was created from.

+ LAST_DATE_TIME_DOES_NOT_MATCH_END_TIME = 13, + /// Targeted date time ranges fall out the active period of lineitem. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 53)] - public EnvironmentType environmentType { - get { - return this.environmentTypeField; - } - set { - this.environmentTypeField = value; - this.environmentTypeSpecified = true; - } - } + 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, + /// 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, + } - /// 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; - } - } - /// Whether or not the Proposal for this is a - /// programmatic deal. This attribute is populated from Proposal#isProgrammatic. This attribute is - /// read-only. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 54)] - public bool isProgrammatic { - get { - return this.isProgrammaticField; - } - set { - this.isProgrammaticField = value; - this.isProgrammaticSpecified = true; - } - } + /// Lists all errors associated with cross selling. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class CrossSellError : ApiError { + private CrossSellErrorReason reasonField; - /// 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; - } - } + private bool reasonFieldSpecified; - /// The status of the link between this ProposalLineItem and its {link - /// Product}. This attribute is applicable - /// when:
  • using programmatic guaranteed, using sales - /// management.
  • not using programmatic, using sales management.
- /// This attribute is read-only when:
    - ///
  • using programmatic guaranteed, using sales management.
  • not using - /// programmatic, using sales management.
+ /// The error reason represented by an enum. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 55)] - public LinkStatus linkStatus { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public CrossSellErrorReason reason { get { - return this.linkStatusField; + return this.reasonField; } set { - this.linkStatusField = value; - this.linkStatusSpecified = 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 linkStatusSpecified { + public bool reasonSpecified { get { - return this.linkStatusFieldSpecified; + return this.reasonFieldSpecified; } set { - this.linkStatusFieldSpecified = value; + this.reasonFieldSpecified = value; } } + } - /// The marketplace info if this proposal line item is programmatic, null otherwise. - /// This attribute is applicable when: - ///
  • using programmatic guaranteed, using sales management.
  • using - /// programmatic guaranteed, not using sales management.
This attribute is required when:
    - ///
  • using programmatic guaranteed, using sales management.
  • using - /// programmatic guaranteed, not using sales management.
+ + /// The reason of the error. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CrossSellError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum CrossSellErrorReason { + /// A company for cross-sell partner must be of type Company.Type#PARTNER. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 56)] - public ProposalLineItemMarketplaceInfo marketplaceInfo { - get { - return this.marketplaceInfoField; - } - set { - this.marketplaceInfoField = value; - } - } + 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 content provider publisher feature 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. + /// + 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 = 13, + } - /// RateCard pricing model for the ProposalLineItem. When the pricing model is PricingModel#NET refer to the netCost and netRate fields. When the - /// pricing model is PricingModel#GROSS refer to - /// the grossCost and grossRate - /// fields. This attribute is applicable - /// when:
  • using programmatic guaranteed, using sales - /// management.
  • not using programmatic, using sales management.
- /// This attribute is read-only when:
    - ///
  • using programmatic guaranteed, using sales management.
  • not using - /// programmatic, using sales management.
+ + /// Lists all errors due to Company#creditStatus. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class CompanyCreditStatusError : ApiError { + private CompanyCreditStatusErrorReason reasonField; + + private bool reasonFieldSpecified; + + /// The error reason represented by an enum. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 57)] - public PricingModel rateCardPricingModel { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public CompanyCreditStatusErrorReason reason { get { - return this.rateCardPricingModelField; + return this.reasonField; } set { - this.rateCardPricingModelField = value; - this.rateCardPricingModelSpecified = 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 rateCardPricingModelSpecified { + public bool reasonSpecified { get { - return this.rateCardPricingModelFieldSpecified; + return this.reasonFieldSpecified; } set { - this.rateCardPricingModelFieldSpecified = value; + this.reasonFieldSpecified = value; } } + } - /// Additional terms shown to the buyer in Marketplace. This attribute is applicable when:
  • using - /// programmatic guaranteed, using sales management.
  • using programmatic - /// guaranteed, not using sales management.
- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 58)] - public string additionalTerms { - get { - return this.additionalTermsField; - } - set { - this.additionalTermsField = value; - } - } - /// Indicates the ProgrammaticCreativeSource of the - /// programmatic line item. This attribute is - /// applicable when:
  • using programmatic guaranteed, using sales - /// management.
  • using programmatic guaranteed, not using sales - /// management.
+ /// The reasons for the target error. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CompanyCreditStatusError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 59)] - public ProgrammaticCreativeSource programmaticCreativeSource { - get { - return this.programmaticCreativeSourceField; - } - set { - this.programmaticCreativeSourceField = value; - this.programmaticCreativeSourceSpecified = true; - } - } + 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, + } - /// 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; - } - } - /// The estimated minimum impressions that should be delivered for a proposal line - /// item. This attribute is applicable - /// when:
  • using preferred deals, not using sales management.
  • - ///
+ /// Click tracking is a special line item type with a number of unique errors as + /// described below. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class ClickTrackingLineItemError : ApiError { + private ClickTrackingLineItemErrorReason reasonField; + + private bool reasonFieldSpecified; + + /// The error reason represented by an enum. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 60)] - public long estimatedMinimumImpressions { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public ClickTrackingLineItemErrorReason reason { get { - return this.estimatedMinimumImpressionsField; + return this.reasonField; } set { - this.estimatedMinimumImpressionsField = value; - this.estimatedMinimumImpressionsSpecified = 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 estimatedMinimumImpressionsSpecified { + public bool reasonSpecified { get { - return this.estimatedMinimumImpressionsFieldSpecified; + return this.reasonFieldSpecified; } set { - this.estimatedMinimumImpressionsFieldSpecified = value; + this.reasonFieldSpecified = value; } } } - /// Describes the cost adjustment of ProposalLineItem. + /// The reasons for the target error. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum CostAdjustment { - /// Indicates that the ProposalLineItem has no cost - /// adjustment. + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ClickTrackingLineItemError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum ClickTrackingLineItemErrorReason { + /// The line item type cannot be changed once created. /// - NONE = 0, - /// Indicates that the cost adjustment of the ProposalLineItem is make good. + 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. /// - MAKE_GOOD = 1, - /// Indicates that the cost adjustment of the ProposalLineItem is barter. + 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. /// - BARTER = 2, - /// Indicates that the cost adjustment of the ProposalLineItem is added value. + INVALID_DELIVERY_RATE_TYPE = 4, + /// Not all fields are supported by the click tracking line items. /// - ADDED_VALUE = 3, + UNSUPPORTED_FIELD = 5, /// The value returned if the actual value is not exposed by the requested API /// version. /// - UNKNOWN = 4, + UNKNOWN = 6, } - /// Defines the criteria a LineItem needs to satisfy to meet - /// its delivery goal. + /// Errors associated with audience extension enabled line items /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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/v201908")] + public partial class AudienceExtensionError : ApiError { + private AudienceExtensionErrorReason 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 AudienceExtensionErrorReason 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. + + /// Specific audience extension error reasons. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AudienceExtensionError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum AudienceExtensionErrorReason { + /// Frequency caps are not supported by audience extension line items /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public UnitType unitType { - get { - return this.unitTypeField; - } - set { - this.unitTypeField = value; - this.unitTypeSpecified = 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 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 { + /// Lists the generic errors associated with AdUnit#adUnitCode. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class AdUnitCodeError : ApiError { + private AdUnitCodeErrorReason reasonField; + + private bool reasonFieldSpecified; + + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public AdUnitCodeErrorReason reason { get { - return this.unitsField; + return this.reasonField; } set { - this.unitsField = value; - this.unitsSpecified = 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 unitsSpecified { + public bool reasonSpecified { get { - return this.unitsFieldSpecified; + return this.reasonFieldSpecified; } set { - this.unitsFieldSpecified = value; + this.reasonFieldSpecified = value; } } } - /// Specifies the type of the goal for a LineItem. - /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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 = "AdUnitCodeError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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. /// - 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: + 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. /// - LIFETIME = 1, - /// There is a daily goal on the number of ads delivered for this line item. The LineItem#lineItemType must be one of: + INVALID_CHARACTERS_WHEN_UTF_CHARACTERS_ARE_ALLOWED = 1, + /// For AdUnit#adUnitCode representing slot codes, + /// only alphanumeric characters, underscores, hyphens, periods and colons are + /// allowed. /// - DAILY = 2, + 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. /// @@ -26981,2718 +27056,3023 @@ public enum GoalType { } - /// LineItemType indicates the priority of a LineItem, determined by the way in which impressions are - /// reserved to be served for it. + /// Errors related to ad rule slots. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum LineItemType { - /// The type of LineItem for which a percentage of all the - /// impressions that are being sold are reserved. - /// - 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. + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AdRuleSlotError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum AdRuleSlotErrorReason { + /// Has a different status than the ad rule to which it belongs. /// - 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. + DIFFERENT_STATUS_THAN_AD_RULE = 0, + /// Min video ad duration is greater than max video ad duration. /// - 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. + INVALID_VIDEO_AD_DURATION_RANGE = 1, + /// Video mid-roll frequency type other than NONE for pre-roll or post-roll. /// - 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. + 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)
///
- 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. + 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. /// - CLICK_TRACKING = 7, - /// A LineItem using dynamic allocation backed by AdSense. + MALFORMED_VIDEO_MIDROLL_FREQUENCY_SINGLE_NUMBER = 4, + /// Min overlay ad duration is greater than max overlay ad duration. /// - ADSENSE = 8, - /// A LineItem using dynamic allocation backed by the Google - /// Ad Exchange. + INVALID_OVERLAY_AD_DURATION_RANGE = 5, + /// Overlay mid-roll frequency type other than NONE for pre-roll or post-roll. /// - 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_OVERLAY_MIDROLL_FREQUENCY_TYPE = 6, + /// Invalid format for overlay mid-roll frequency for list of numbers. See valid + /// formats above. /// - BUMPER = 10, - /// A LineItem using dynamic allocation backed by AdMob. + MALFORMED_OVERLAY_MIDROLL_FREQUENCY_CSV = 7, + /// Invalid format for overlay mid-roll frequency for a single number. /// - 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. + MALFORMED_OVERLAY_MIDROLL_FREQUENCY_SINGLE_NUMBER = 8, + /// Non-positive bumper duration when expecting a positive number. /// - PREFERRED_DEAL = 13, + INVALID_BUMPER_MAX_DURATION = 9, /// The value returned if the actual value is not exposed by the requested API /// version. /// - UNKNOWN = 12, + UNKNOWN = 10, } - /// Represents a money amount. + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", ConfigurationName = "Google.Api.Ads.AdManager.v201908.ForecastServiceInterface")] + public interface ForecastServiceInterface + { + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201908.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.v201908.AvailabilityForecast getAvailabilityForecast(Google.Api.Ads.AdManager.v201908.ProspectiveLineItem lineItem, Google.Api.Ads.AdManager.v201908.AvailabilityForecastOptions forecastOptions); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task getAvailabilityForecastAsync(Google.Api.Ads.AdManager.v201908.ProspectiveLineItem lineItem, Google.Api.Ads.AdManager.v201908.AvailabilityForecastOptions forecastOptions); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201908.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.v201908.AvailabilityForecast getAvailabilityForecastById(long lineItemId, Google.Api.Ads.AdManager.v201908.AvailabilityForecastOptions forecastOptions); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task getAvailabilityForecastByIdAsync(long lineItemId, Google.Api.Ads.AdManager.v201908.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.v201908.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.v201908.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); + } + + + /// Forecasting options for line item delivery forecasts. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class Money { - private string currencyCodeField; - - private long microAmountField; - - private bool microAmountFieldSpecified; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class DeliveryForecastOptions { + private long[] ignoredLineItemIdsField; - /// Three letter currency code in string format. + /// Line item IDs to be ignored while performing the delivery simulation. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public string currencyCode { + [System.Xml.Serialization.XmlElementAttribute("ignoredLineItemIds", Order = 0)] + public long[] ignoredLineItemIds { get { - return this.currencyCodeField; + return this.ignoredLineItemIdsField; } set { - this.currencyCodeField = value; + this.ignoredLineItemIdsField = 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. - /// - [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 { + /// The forecast of delivery for a list of ProspectiveLineItem objects to be reserved at the + /// same time. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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.microAmountFieldSpecified; + return this.lineItemDeliveryForecastsField; } set { - this.microAmountFieldSpecified = value; + this.lineItemDeliveryForecastsField = value; } } } - /// Indicates the delivery performance of the LineItem. + /// The forecasted delivery of a ProspectiveLineItem. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class DeliveryIndicator { - private double expectedDeliveryPercentageField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class LineItemDeliveryForecast { + private long lineItemIdField; - private bool expectedDeliveryPercentageFieldSpecified; + private bool lineItemIdFieldSpecified; - private double actualDeliveryPercentageField; + private long orderIdField; - private bool actualDeliveryPercentageFieldSpecified; + private bool orderIdFieldSpecified; - /// How much the LineItem was expected to deliver as a percentage of LineItem#primaryGoal. + 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 double expectedDeliveryPercentage { + public long lineItemId { get { - return this.expectedDeliveryPercentageField; + return this.lineItemIdField; } set { - this.expectedDeliveryPercentageField = value; - this.expectedDeliveryPercentageSpecified = 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 expectedDeliveryPercentageSpecified { + public bool lineItemIdSpecified { get { - return this.expectedDeliveryPercentageFieldSpecified; + return this.lineItemIdFieldSpecified; } set { - this.expectedDeliveryPercentageFieldSpecified = value; + this.lineItemIdFieldSpecified = value; } } - /// How much the line item actually delivered as a percentage of LineItem#primaryGoal. + /// 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 double actualDeliveryPercentage { + public long orderId { get { - return this.actualDeliveryPercentageField; + return this.orderIdField; } set { - this.actualDeliveryPercentageField = value; - this.actualDeliveryPercentageSpecified = 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 actualDeliveryPercentageSpecified { + public bool orderIdSpecified { get { - return this.actualDeliveryPercentageFieldSpecified; + return this.orderIdFieldSpecified; } set { - this.actualDeliveryPercentageFieldSpecified = value; + this.orderIdFieldSpecified = value; } } - } - - /// Describes the computed LineItem status that is derived - /// from the current state of the line item. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum ComputedStatus { - /// The LineItem has past its LineItem#endDateTime with an auto extension, but - /// hasn't met its goal. - /// - DELIVERY_EXTENDED = 0, - /// The LineItem has begun serving. - /// - DELIVERING = 1, - /// The LineItem has been activated and is ready to serve. - /// - READY = 2, - /// The LineItem has been paused from serving. - /// - PAUSED = 3, - /// The LineItem is inactive. It is either caused by missing - /// creatives or the network disabling auto-activation. + /// 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. /// - INACTIVE = 4, - /// The LineItem has been paused and its reserved inventory - /// has been released. The LineItem will not serve. - /// - PAUSED_INVENTORY_RELEASED = 5, - /// The LineItem has been submitted for approval. - /// - PENDING_APPROVAL = 6, - /// The LineItem has completed its run. - /// - 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, - } - - - /// Determines how the revenue amount will be capped for each billing month. This - /// cannot be used when BillingSource is BillingSource#CONTRACTED. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum BillingCap { - /// There is no cap for each billing month. - /// - NO_CAP = 0, - /// Use a billing source of capped actuals with a billing cap of cumulative to bill - /// your advertiser up to a campaign's capped amount, regardless of the number of - /// impressions that are served each month. - /// - CAPPED_CUMULATIVE = 1, - /// Use a billing source of capped actuals with a billing cap of the billing cycle - /// to bill your advertiser up to a capped amount for each billing cycle of a - /// campaign, regardless of the number of impressions that are served. - /// - CAPPED_PER_BILLING_CYCLE = 2, - /// Use a billing source of capped actuals with a billing cap of cumulative per - /// billing cycle to bill your advertiser up to a capped amount for each billing - /// cycle of a campaign and carry forward the balance of over- or under-delivered - /// impressions towards the number of impressions delivered in future billing cycles - /// of the campaign. - /// - CAPPED_CUMULATIVE_PER_BILLING_CYCLE = 3, - /// Use a billing source of capped actuals with a billing cap of cumulative per - /// billing cycle to bill your advertiser up to a capped amount for each cycle of a - /// campaign and carry forward the balance of over- or under-delivered impressions - /// towards the number of impressions delivered in future cycles of the campaign. - /// - CAPPED_WITH_ROLLOVER_PER_BILLING_CYCLE = 4, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 5, - } - - - /// Determines how much to bill in each billing cycle when a proposal is charged - /// based on the contracted value. This can only be used when BillingSource is BillingSource#CONTRACTED. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum BillingSchedule { - /// Charged based on the contracted value after the first month of the campaign. - /// - PREPAID = 0, - /// Charged based on the contracted value after the last month of the campaign. - /// - END_OF_THE_CAMPAIGN = 1, - /// Use a billing source of contracted with a billing schedule of straightline to - /// bill your advertiser the same amount each month, regardless of the number of - /// days in each month. - /// - STRAIGHTLINE = 2, - /// Use a billing source of contracted with a billing schedule of prorated to bill - /// your advertiser proportionally based on the amount of days in each month. - /// - PRORATED = 3, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 4, - } - - - /// Determines which billable numbers or delivery data (impressions, clicks, and so - /// on) will be used for billing purposes. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum BillingSource { - /// Charge based on the quantity of impressions, clicks, or days booked, regardless - /// of what actually delivered. - /// - CONTRACTED = 0, - /// Charge based on what actually delivered, as counted by Ad Manager. - /// - DFP_VOLUME = 1, - /// Charge based on what actually delivered, as counted by the third party ads - /// server. - /// - THIRD_PARTY_VOLUME = 2, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 3, - } - - - /// Determines the base of billing calculation. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum BillingBase { - /// Billing calculation (eg. proration) should be based on volume. - /// - VOLUME = 0, - /// Billing calculation (eg. proration) should be based on revenue. - /// - REVENUE = 1, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 2, - } - - - /// Represents the inventory reservation status for ProposalLineItem objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum ReservationStatus { - /// The inventory is reserved. - /// - 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, - } - - - /// Enum for the valid environments in which ads can be shown. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum EnvironmentType { - /// A regular web browser. - /// - BROWSER = 0, - /// Video players. - /// - VIDEO_PLAYER = 1, - } - - - /// Status of the link between ProposalLineItem and - /// its Product. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum LinkStatus { - LINKED = 0, - UNLINKED = 1, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 2, - } - - - /// The option to specify whether the proposal uses the Net or Gross pricing model. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum PricingModel { - /// Indicates using net pricing model to calculate the price. - /// - NET = 0, - /// Indicates using gross pricing model to calculate the price. - /// - GROSS = 1, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 2, - } - - - /// Types of programmatic creative sources. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum ProgrammaticCreativeSource { - /// Indicates that the programmatic line item is associated with creatives provided - /// by the publisher. - /// - 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, - } - - - /// Represents the creative targeting criteria for a LineItem. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class CreativeTargeting { - private string nameField; - - private Targeting targetingField; - - /// The name of this creative targeting. This attribute is required. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public string name { - get { - return this.nameField; - } - set { - this.nameField = value; - } - } - - /// The Targeting criteria of this creative targeting. This - /// attribute is required. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public Targeting targeting { - get { - return this.targetingField; - } - set { - this.targetingField = value; - } - } - } - - - /// 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.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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; - - /// 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 minTargetAge { + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public UnitType unitType { get { - return this.minTargetAgeField; + return this.unitTypeField; } set { - this.minTargetAgeField = value; - this.minTargetAgeSpecified = 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 minTargetAgeSpecified { + public bool unitTypeSpecified { get { - return this.minTargetAgeFieldSpecified; + return this.unitTypeFieldSpecified; } set { - this.minTargetAgeFieldSpecified = value; + this.unitTypeFieldSpecified = value; } } - /// Specifies the maximum target age (in years) of the LineItem. This field is only applicable if #provider is not null. + /// 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 = 1)] - public long maxTargetAge { + [System.Xml.Serialization.XmlElementAttribute(Order = 3)] + public long predictedDeliveryUnits { get { - return this.maxTargetAgeField; + return this.predictedDeliveryUnitsField; } set { - this.maxTargetAgeField = value; - this.maxTargetAgeSpecified = true; + this.predictedDeliveryUnitsField = value; + this.predictedDeliveryUnitsSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="predictedDeliveryUnits" />, false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool maxTargetAgeSpecified { + public bool predictedDeliveryUnitsSpecified { get { - return this.maxTargetAgeFieldSpecified; + return this.predictedDeliveryUnitsFieldSpecified; } set { - this.maxTargetAgeFieldSpecified = value; + this.predictedDeliveryUnitsFieldSpecified = value; } } - /// Specifies the target gender of the LineItem. This field - /// is only applicable if #provider is not null. + /// The number of units, defined by Goal#unitType, that + /// have already been served if the reservation is already running. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public GrpTargetGender targetGender { + [System.Xml.Serialization.XmlElementAttribute(Order = 4)] + public long deliveredUnits { get { - return this.targetGenderField; + return this.deliveredUnitsField; } set { - this.targetGenderField = value; - this.targetGenderSpecified = true; + this.deliveredUnitsField = value; + this.deliveredUnitsSpecified = 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; - } - } - - /// Specifies the GRP provider of the LineItem. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public GrpProvider provider { - get { - return this.providerField; - } - set { - this.providerField = value; - this.providerSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. + /// cref="deliveredUnits" />, false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool providerSpecified { + public bool deliveredUnitsSpecified { get { - return this.providerFieldSpecified; + return this.deliveredUnitsFieldSpecified; } set { - this.providerFieldSpecified = value; + this.deliveredUnitsFieldSpecified = 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 number of units, defined by Goal#unitType, that + /// match the specified LineItem#targeting and + /// delivery settings. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public long targetImpressionGoal { + [System.Xml.Serialization.XmlElementAttribute(Order = 5)] + public long matchedUnits { get { - return this.targetImpressionGoalField; + return this.matchedUnitsField; } set { - this.targetImpressionGoalField = value; - this.targetImpressionGoalSpecified = 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 targetImpressionGoalSpecified { + public bool matchedUnitsSpecified { get { - return this.targetImpressionGoalFieldSpecified; + return this.matchedUnitsFieldSpecified; } set { - this.targetImpressionGoalFieldSpecified = value; + this.matchedUnitsFieldSpecified = value; } } } - /// Represents the target gender for a GRP demographic targeted line item. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum GrpTargetGender { - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - 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, + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + public interface ForecastServiceInterfaceChannel : Google.Api.Ads.AdManager.v201908.ForecastServiceInterface, System.ServiceModel.IClientChannel + { } - /// Represents available GRP providers that a line item will have its target - /// demographic measured by. + /// 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
For prospective: 0
#x2013;#x2013;
Sponsorship != 20 and
!= + /// 50
1,200,000 1,200,000 600,000
For prospective: + /// 0
#x2013;#x2013;
Not Sponsorship <= + /// 500,000 3 * unitsBought / 2 unitsBought * 6600,000
For prospective: 0
#x2013;#x2013;
Not Sponsorship > 500,000 and <= 1,000,000unitsBought / 2 unitsBought * 6 600,000
For + /// prospective: 0
#x2013;#x2013;
Not Sponsorship> 1,000,000 and <= 1,500,000 unitsBought / 2 3 * + /// unitsBought / 2 600,000
For prospective: 0
#x2013;#x2013;
Not Sponsorship > + /// 1,500,000 unitsBought / 4 3 * unitsBought / 2600,000
For prospective: 0
#x2013;#x2013;
///
- [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum GrpProvider { - /// 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. + [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. /// - GOOGLE = 3, - } - + public ForecastService() { + } - /// Contains data used to display information synchronized with Canoe for set-top - /// box enabled LineItem line items. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class SetTopBoxInfo { - private SetTopBoxSyncStatus syncStatusField; + /// Creates a new instance of the class. + /// + public ForecastService(string endpointConfigurationName) + : base(endpointConfigurationName) { + } - private bool syncStatusFieldSpecified; + /// Creates a new instance of the class. + /// + public ForecastService(string endpointConfigurationName, string remoteAddress) + : base(endpointConfigurationName, remoteAddress) { + } - private CanoeSyncResult lastSyncResultField; + /// Creates a new instance of the class. + /// + public ForecastService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) + : base(endpointConfigurationName, remoteAddress) { + } - private bool lastSyncResultFieldSpecified; + /// Creates a new instance of the class. + /// + public ForecastService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) + : base(binding, remoteAddress) { + } - private string lastSyncCanoeResponseMessageField; + /// 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. + /// the prospective line item (new or existing) to be + /// forecasted for availability + /// options controlling the forecast + public virtual Google.Api.Ads.AdManager.v201908.AvailabilityForecast getAvailabilityForecast(Google.Api.Ads.AdManager.v201908.ProspectiveLineItem lineItem, Google.Api.Ads.AdManager.v201908.AvailabilityForecastOptions forecastOptions) { + return base.Channel.getAvailabilityForecast(lineItem, forecastOptions); + } - private string nielsenProductCategoryCodeField; + public virtual System.Threading.Tasks.Task getAvailabilityForecastAsync(Google.Api.Ads.AdManager.v201908.ProspectiveLineItem lineItem, Google.Api.Ads.AdManager.v201908.AvailabilityForecastOptions forecastOptions) { + return base.Channel.getAvailabilityForecastAsync(lineItem, forecastOptions); + } - /// Indicates if the line item is ready to be synced with Canoe or if there are - /// changes on this line item that are waiting to be pushed on the next sync with - /// Canoe. This attribute is read-only. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public SetTopBoxSyncStatus syncStatus { - get { - return this.syncStatusField; + /// 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.

+ ///
the ID of a LineItem to run the + /// forecast on. + /// options controlling the forecast + public virtual Google.Api.Ads.AdManager.v201908.AvailabilityForecast getAvailabilityForecastById(long lineItemId, Google.Api.Ads.AdManager.v201908.AvailabilityForecastOptions forecastOptions) { + return base.Channel.getAvailabilityForecastById(lineItemId, forecastOptions); + } + + public virtual System.Threading.Tasks.Task getAvailabilityForecastByIdAsync(long lineItemId, Google.Api.Ads.AdManager.v201908.AvailabilityForecastOptions forecastOptions) { + return base.Channel.getAvailabilityForecastByIdAsync(lineItemId, forecastOptions); + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + Wrappers.ForecastService.getDeliveryForecastResponse Google.Api.Ads.AdManager.v201908.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. + /// line items to be forecasted for delivery + /// options controlling the forecast + public virtual Google.Api.Ads.AdManager.v201908.DeliveryForecast getDeliveryForecast(Google.Api.Ads.AdManager.v201908.ProspectiveLineItem[] lineItems, Google.Api.Ads.AdManager.v201908.DeliveryForecastOptions forecastOptions) { + Wrappers.ForecastService.getDeliveryForecastRequest inValue = new Wrappers.ForecastService.getDeliveryForecastRequest(); + inValue.lineItems = lineItems; + inValue.forecastOptions = forecastOptions; + Wrappers.ForecastService.getDeliveryForecastResponse retVal = ((Google.Api.Ads.AdManager.v201908.ForecastServiceInterface)(this)).getDeliveryForecast(inValue); + return retVal.rval; + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201908.ForecastServiceInterface.getDeliveryForecastAsync(Wrappers.ForecastService.getDeliveryForecastRequest request) { + return base.Channel.getDeliveryForecastAsync(request); + } + + public virtual System.Threading.Tasks.Task getDeliveryForecastAsync(Google.Api.Ads.AdManager.v201908.ProspectiveLineItem[] lineItems, Google.Api.Ads.AdManager.v201908.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.v201908.ForecastServiceInterface)(this)).getDeliveryForecastAsync(inValue)).Result.rval); + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + Wrappers.ForecastService.getDeliveryForecastByIdsResponse Google.Api.Ads.AdManager.v201908.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. + /// the IDs of line items to be forecasted for + /// delivery + /// options controlling the forecast + public virtual Google.Api.Ads.AdManager.v201908.DeliveryForecast getDeliveryForecastByIds(long[] lineItemIds, Google.Api.Ads.AdManager.v201908.DeliveryForecastOptions forecastOptions) { + Wrappers.ForecastService.getDeliveryForecastByIdsRequest inValue = new Wrappers.ForecastService.getDeliveryForecastByIdsRequest(); + inValue.lineItemIds = lineItemIds; + inValue.forecastOptions = forecastOptions; + Wrappers.ForecastService.getDeliveryForecastByIdsResponse retVal = ((Google.Api.Ads.AdManager.v201908.ForecastServiceInterface)(this)).getDeliveryForecastByIds(inValue); + return retVal.rval; + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201908.ForecastServiceInterface.getDeliveryForecastByIdsAsync(Wrappers.ForecastService.getDeliveryForecastByIdsRequest request) { + return base.Channel.getDeliveryForecastByIdsAsync(request); + } + + public virtual System.Threading.Tasks.Task getDeliveryForecastByIdsAsync(long[] lineItemIds, Google.Api.Ads.AdManager.v201908.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.v201908.ForecastServiceInterface)(this)).getDeliveryForecastByIdsAsync(inValue)).Result.rval); + } + } + 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/v201908", IsWrapped = true)] + public partial class createAdUnitsRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("adUnits")] + public Google.Api.Ads.AdManager.v201908.AdUnit[] adUnits; + + /// Creates a new instance of the + /// class. + public createAdUnitsRequest() { } - set { - this.syncStatusField = value; - this.syncStatusSpecified = true; + + /// Creates a new instance of the + /// class. + public createAdUnitsRequest(Google.Api.Ads.AdManager.v201908.AdUnit[] adUnits) { + this.adUnits = adUnits; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool syncStatusSpecified { - get { - return this.syncStatusFieldSpecified; + + [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/v201908", IsWrapped = true)] + public partial class createAdUnitsResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("rval")] + public Google.Api.Ads.AdManager.v201908.AdUnit[] rval; + + /// Creates a new instance of the + /// class. + public createAdUnitsResponse() { } - set { - this.syncStatusFieldSpecified = value; + + /// Creates a new instance of the + /// class. + public createAdUnitsResponse(Google.Api.Ads.AdManager.v201908.AdUnit[] rval) { + this.rval = rval; } } - /// The result of the last sync attempt with Canoe. This attribute is read-only. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public CanoeSyncResult lastSyncResult { - get { - return this.lastSyncResultField; + + [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/v201908", IsWrapped = true)] + public partial class getAdUnitSizesByStatementRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] + public Google.Api.Ads.AdManager.v201908.Statement filterStatement; + + /// Creates a new instance of the class. + public getAdUnitSizesByStatementRequest() { } - set { - this.lastSyncResultField = value; - this.lastSyncResultSpecified = true; + + /// Creates a new instance of the class. + public getAdUnitSizesByStatementRequest(Google.Api.Ads.AdManager.v201908.Statement filterStatement) { + this.filterStatement = filterStatement; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool lastSyncResultSpecified { + + [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/v201908", IsWrapped = true)] + public partial class getAdUnitSizesByStatementResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("rval")] + public Google.Api.Ads.AdManager.v201908.AdUnitSize[] rval; + + /// Creates a new instance of the class. + public getAdUnitSizesByStatementResponse() { + } + + /// Creates a new instance of the class. + public getAdUnitSizesByStatementResponse(Google.Api.Ads.AdManager.v201908.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/v201908", IsWrapped = true)] + public partial class updateAdUnitsRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("adUnits")] + public Google.Api.Ads.AdManager.v201908.AdUnit[] adUnits; + + /// Creates a new instance of the + /// class. + public updateAdUnitsRequest() { + } + + /// Creates a new instance of the + /// class. + public updateAdUnitsRequest(Google.Api.Ads.AdManager.v201908.AdUnit[] adUnits) { + this.adUnits = 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/v201908", IsWrapped = true)] + public partial class updateAdUnitsResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("rval")] + public Google.Api.Ads.AdManager.v201908.AdUnit[] rval; + + /// Creates a new instance of the + /// class. + public updateAdUnitsResponse() { + } + + /// Creates a new instance of the + /// class. + public updateAdUnitsResponse(Google.Api.Ads.AdManager.v201908.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.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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.lastSyncResultFieldSpecified; + return this.frequencyCapField; } set { - this.lastSyncResultFieldSpecified = value; + this.frequencyCapField = value; } } - /// The response that Canoe sent for the last sync attempt. This attribute is - /// read-only. + /// ID of the label being capped on the AdUnit. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public string lastSyncCanoeResponseMessage { + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public long labelId { get { - return this.lastSyncCanoeResponseMessageField; + return this.labelIdField; } set { - this.lastSyncCanoeResponseMessageField = value; + this.labelIdField = value; + this.labelIdSpecified = true; } } - /// The Nielsen product category code for the line item. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public string nielsenProductCategoryCode { + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool labelIdSpecified { get { - return this.nielsenProductCategoryCodeField; + return this.labelIdFieldSpecified; } set { - this.nielsenProductCategoryCodeField = value; + this.labelIdFieldSpecified = value; } } } - /// The set top box line item sync status. + /// Contains the AdSense configuration for an AdUnit. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum SetTopBoxSyncStatus { - /// The line item is not ready to be synced. - /// - NOT_READY = 0, - /// The line item is currently being synced. - /// - SYNC_PENDING = 1, - /// The line item has been synced. - /// - SYNCED = 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/v201908")] + public partial class AdSenseSettings { + private bool adSenseEnabledField; + private bool adSenseEnabledFieldSpecified; - /// Represents sync result types between set-top box enabled line - /// items and Canoe. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum CanoeSyncResult { - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 0, - /// Sync message was accepted by Canoe. - /// - ACCEPTED = 1, - /// Sync message was rejected by Canoe. - /// - REJECTED = 2, - } + private string borderColorField; + private string titleColorField; - /// Stats contains trafficking statistics for LineItem and LineItemCreativeAssociation objects - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class Stats { - private long impressionsDeliveredField; + private string backgroundColorField; - private bool impressionsDeliveredFieldSpecified; + private string textColorField; - private long clicksDeliveredField; + private string urlColorField; - private bool clicksDeliveredFieldSpecified; + private AdSenseSettingsAdType adTypeField; - private long videoCompletionsDeliveredField; + private bool adTypeFieldSpecified; - private bool videoCompletionsDeliveredFieldSpecified; + private AdSenseSettingsBorderStyle borderStyleField; - private long videoStartsDeliveredField; + private bool borderStyleFieldSpecified; - private bool videoStartsDeliveredFieldSpecified; + private AdSenseSettingsFontFamily fontFamilyField; - private long viewableImpressionsDeliveredField; + private bool fontFamilyFieldSpecified; - private bool viewableImpressionsDeliveredFieldSpecified; + private AdSenseSettingsFontSize fontSizeField; - /// The number of impressions delivered. + 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 long impressionsDelivered { + public bool adSenseEnabled { get { - return this.impressionsDeliveredField; + return this.adSenseEnabledField; } set { - this.impressionsDeliveredField = value; - this.impressionsDeliveredSpecified = true; + this.adSenseEnabledField = value; + this.adSenseEnabledSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="adSenseEnabled" />, false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool impressionsDeliveredSpecified { + public bool adSenseEnabledSpecified { get { - return this.impressionsDeliveredFieldSpecified; + return this.adSenseEnabledFieldSpecified; } set { - this.impressionsDeliveredFieldSpecified = value; + this.adSenseEnabledFieldSpecified = value; } } - /// The number of clicks delivered. + /// 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 = 1)] - public long clicksDelivered { - get { - return this.clicksDeliveredField; - } - set { - this.clicksDeliveredField = value; - this.clicksDeliveredSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool clicksDeliveredSpecified { + public string borderColor { get { - return this.clicksDeliveredFieldSpecified; + return this.borderColorField; } set { - this.clicksDeliveredFieldSpecified = value; + this.borderColorField = value; } } - /// The number of video completions delivered. + /// 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 = 2)] - public long videoCompletionsDelivered { + public string titleColor { get { - return this.videoCompletionsDeliveredField; + return this.titleColorField; } set { - this.videoCompletionsDeliveredField = value; - this.videoCompletionsDeliveredSpecified = true; + this.titleColorField = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool videoCompletionsDeliveredSpecified { + /// 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 { get { - return this.videoCompletionsDeliveredFieldSpecified; + return this.backgroundColorField; } set { - this.videoCompletionsDeliveredFieldSpecified = value; + this.backgroundColorField = value; } } - /// The number of video starts delivered. + /// 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 = 3)] - public long videoStartsDelivered { + [System.Xml.Serialization.XmlElementAttribute(Order = 4)] + public string textColor { get { - return this.videoStartsDeliveredField; + return this.textColorField; } set { - this.videoStartsDeliveredField = value; - this.videoStartsDeliveredSpecified = true; + this.textColorField = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool videoStartsDeliveredSpecified { + /// 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 { get { - return this.videoStartsDeliveredFieldSpecified; + return this.urlColorField; } set { - this.videoStartsDeliveredFieldSpecified = value; + this.urlColorField = value; } } - /// The number of viewable impressions delivered. + /// 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 = 4)] - public long viewableImpressionsDelivered { + [System.Xml.Serialization.XmlElementAttribute(Order = 6)] + public AdSenseSettingsAdType adType { get { - return this.viewableImpressionsDeliveredField; + return this.adTypeField; } set { - this.viewableImpressionsDeliveredField = value; - this.viewableImpressionsDeliveredSpecified = 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 viewableImpressionsDeliveredSpecified { + public bool adTypeSpecified { get { - return this.viewableImpressionsDeliveredFieldSpecified; + return this.adTypeFieldSpecified; } set { - this.viewableImpressionsDeliveredFieldSpecified = value; + this.adTypeFieldSpecified = value; } } - } - - - /// 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.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class LineItemActivityAssociation { - private int activityIdField; - - private bool activityIdFieldSpecified; - - private Money clickThroughConversionCostField; - - private Money viewThroughConversionCostField; - /// The ID of the Activity to which the LineItem should be associated. This attribute is required. + /// 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 = 0)] - public int activityId { + [System.Xml.Serialization.XmlElementAttribute(Order = 7)] + public AdSenseSettingsBorderStyle borderStyle { get { - return this.activityIdField; + return this.borderStyleField; } set { - this.activityIdField = value; - this.activityIdSpecified = true; + this.borderStyleField = value; + this.borderStyleSpecified = 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 borderStyleSpecified { get { - return this.activityIdFieldSpecified; + return this.borderStyleFieldSpecified; } set { - this.activityIdFieldSpecified = value; + this.borderStyleFieldSpecified = 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. + /// 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 = 1)] - public Money clickThroughConversionCost { + [System.Xml.Serialization.XmlElementAttribute(Order = 8)] + public AdSenseSettingsFontFamily fontFamily { get { - return this.clickThroughConversionCostField; + return this.fontFamilyField; } set { - this.clickThroughConversionCostField = value; + this.fontFamilyField = value; + this.fontFamilySpecified = 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 fontFamilySpecified { + get { + return this.fontFamilyFieldSpecified; + } + set { + this.fontFamilyFieldSpecified = 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. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public Money viewThroughConversionCost { + [System.Xml.Serialization.XmlElementAttribute(Order = 9)] + public AdSenseSettingsFontSize fontSize { get { - return this.viewThroughConversionCostField; + return this.fontSizeField; } set { - this.viewThroughConversionCostField = value; + this.fontSizeField = value; + this.fontSizeSpecified = true; + } + } + + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool fontSizeSpecified { + get { + return this.fontSizeFieldSpecified; + } + set { + this.fontSizeFieldSpecified = value; } } } - /// The LineItemSummary represents the base class from which a - /// LineItem is derived. + /// Specifies the type of ads that can be served through this AdUnit. /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(LineItem))] [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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; + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AdSenseSettings.AdType", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum AdSenseSettingsAdType { + /// Allows text-only ads. + /// + TEXT = 0, + /// Allows image-only ads. + /// + IMAGE = 1, + /// Allows both text and image ads. + /// + TEXT_AND_IMAGE = 2, + } - private DateTime endDateTimeField; - private int autoExtensionDaysField; + /// Describes the border of the HTML elements used to surround an ad displayed by + /// the AdUnit. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AdSenseSettings.BorderStyle", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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, + } - private bool autoExtensionDaysFieldSpecified; - private bool unlimitedEndDateTimeField; + /// List of all possible font families. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AdSenseSettings.FontFamily", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum AdSenseSettingsFontFamily { + DEFAULT = 0, + ARIAL = 1, + TAHOMA = 2, + GEORGIA = 3, + TIMES = 4, + VERDANA = 5, + } - private bool unlimitedEndDateTimeFieldSpecified; - private CreativeRotationType creativeRotationTypeField; + /// List of all possible font sizes the user can choose. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AdSenseSettings.FontSize", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum AdSenseSettingsFontSize { + DEFAULT = 0, + SMALL = 1, + MEDIUM = 2, + LARGE = 3, + } - private bool creativeRotationTypeFieldSpecified; - private DeliveryRateType deliveryRateTypeField; + /// 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.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class AdUnitSize { + private Size sizeField; - private bool deliveryRateTypeFieldSpecified; + private EnvironmentType environmentTypeField; - private RoadblockingType roadblockingTypeField; + private bool environmentTypeFieldSpecified; - private bool roadblockingTypeFieldSpecified; + private AdUnitSize[] companionsField; - private FrequencyCap[] frequencyCapsField; + private string fullDisplayStringField; - private LineItemType lineItemTypeField; + /// 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; + } + } - private bool lineItemTypeFieldSpecified; + /// 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.environmentTypeField; + } + set { + this.environmentTypeField = value; + this.environmentTypeSpecified = true; + } + } - private int priorityField; + /// 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; + } + } - private bool priorityFieldSpecified; + /// 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; + } + } - private Money costPerUnitField; + /// 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.fullDisplayStringField; + } + set { + this.fullDisplayStringField = value; + } + } + } - private Money valueCostPerUnitField; - private CostType costTypeField; + /// The summary of a parent AdUnit. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class AdUnitParent { + private string idField; - private bool costTypeFieldSpecified; + private string nameField; - private LineItemDiscountType discountTypeField; + private string adUnitCodeField; - private bool discountTypeFieldSpecified; + /// The ID of the parent AdUnit. This value is readonly and is + /// populated by Google. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public string id { + get { + return this.idField; + } + set { + this.idField = value; + } + } - private double discountField; + /// The name of the parent AdUnit. This value is readonly and is + /// populated by Google. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public string name { + get { + return this.nameField; + } + set { + this.nameField = value; + } + } - private bool discountFieldSpecified; + /// 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.adUnitCodeField; + } + set { + this.adUnitCodeField = value; + } + } + } - private long contractedUnitsBoughtField; - private bool contractedUnitsBoughtFieldSpecified; + /// 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.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class AdUnit { + private string idField; - private CreativePlaceholder[] creativePlaceholdersField; + private string parentIdField; - private LineItemActivityAssociation[] activityAssociationsField; + private bool hasChildrenField; - private EnvironmentType environmentTypeField; + private bool hasChildrenFieldSpecified; - private bool environmentTypeFieldSpecified; + private AdUnitParent[] parentPathField; - private CompanionDeliveryOption companionDeliveryOptionField; + private string nameField; - private bool companionDeliveryOptionFieldSpecified; + private string descriptionField; - private bool allowOverbookField; + private AdUnitTargetWindow targetWindowField; - private bool allowOverbookFieldSpecified; + private bool targetWindowFieldSpecified; - private bool skipInventoryCheckField; + private InventoryStatus statusField; - private bool skipInventoryCheckFieldSpecified; + private bool statusFieldSpecified; - private bool skipCrossSellingRuleWarningChecksField; + private string adUnitCodeField; - private bool skipCrossSellingRuleWarningChecksFieldSpecified; + private AdUnitSize[] adUnitSizesField; - private bool reserveAtCreationField; + private bool isInterstitialField; - private bool reserveAtCreationFieldSpecified; + private bool isInterstitialFieldSpecified; - private Stats statsField; + private bool isNativeField; - private DeliveryIndicator deliveryIndicatorField; + private bool isNativeFieldSpecified; - private long[] deliveryDataField; + private bool isFluidField; - private Money budgetField; + private bool isFluidFieldSpecified; - private ComputedStatus statusField; + private bool explicitlyTargetedField; - private bool statusFieldSpecified; + private bool explicitlyTargetedFieldSpecified; - private LineItemSummaryReservationStatus reservationStatusField; + private AdSenseSettings adSenseSettingsField; - private bool reservationStatusFieldSpecified; + private ValueSourceType adSenseSettingsSourceField; - private bool isArchivedField; + private bool adSenseSettingsSourceFieldSpecified; - private bool isArchivedFieldSpecified; + private LabelFrequencyCap[] appliedLabelFrequencyCapsField; - private string webPropertyCodeField; + private LabelFrequencyCap[] effectiveLabelFrequencyCapsField; private AppliedLabel[] appliedLabelsField; private AppliedLabel[] effectiveAppliedLabelsField; - private bool disableSameAdvertiserCompetitiveExclusionField; - - private bool disableSameAdvertiserCompetitiveExclusionFieldSpecified; - - private string lastModifiedByAppField; + private long[] effectiveTeamIdsField; - private string notesField; + private long[] appliedTeamIdsField; private DateTime lastModifiedDateTimeField; - private DateTime creationDateTimeField; - - private bool isPrioritizedPreferredDealsEnabledField; + private SmartSizeMode smartSizeModeField; - private bool isPrioritizedPreferredDealsEnabledFieldSpecified; + private bool smartSizeModeFieldSpecified; - private int adExchangeAuctionOpeningPriorityField; + private int refreshRateField; - private bool adExchangeAuctionOpeningPriorityFieldSpecified; + private bool refreshRateFieldSpecified; - private BaseCustomFieldValue[] customFieldValuesField; + private string externalSetTopBoxChannelIdField; private bool isSetTopBoxEnabledField; private bool isSetTopBoxEnabledFieldSpecified; - private bool isMissingCreativesField; - - private bool isMissingCreativesFieldSpecified; - - private SetTopBoxInfo setTopBoxDisplayInfoField; - - private ProgrammaticCreativeSource programmaticCreativeSourceField; - - private bool programmaticCreativeSourceFieldSpecified; - - private long videoMaxDurationField; - - private bool videoMaxDurationFieldSpecified; - - private Goal primaryGoalField; - - private Goal[] secondaryGoalsField; - - private GrpSettings grpSettingsField; - - private long viewabilityProviderCompanyIdField; - - private bool viewabilityProviderCompanyIdFieldSpecified; - - private UserConsentEligibility userConsentEligibilityField; - - private bool userConsentEligibilityFieldSpecified; - - /// The ID of the Order to which the belongs. This - /// attribute is required. + /// 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 long orderId { + public string id { get { - return this.orderIdField; + return this.idField; } set { - this.orderIdField = value; - this.orderIdSpecified = true; + this.idField = value; } } - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool orderIdSpecified { + /// 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.orderIdFieldSpecified; + return this.parentIdField; } set { - this.orderIdFieldSpecified = value; + this.parentIdField = value; } } - /// Uniquely identifies the LineItem. This attribute is read-only and - /// is assigned by Google when a line item is created. + /// 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 = 1)] - public long id { + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public bool hasChildren { get { - return this.idField; + return this.hasChildrenField; } set { - this.idField = value; - this.idSpecified = true; + this.hasChildrenField = value; + this.hasChildrenSpecified = 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 line item. This attribute is required and has a maximum length - /// of 255 characters. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public string name { + public bool hasChildrenSpecified { get { - return this.nameField; + return this.hasChildrenFieldSpecified; } set { - this.nameField = value; + this.hasChildrenFieldSpecified = value; } } - /// An identifier for the LineItem that is meaningful to the publisher. - /// This attribute is optional and has a maximum length of 255 characters. + /// 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(Order = 3)] - public string externalId { + [System.Xml.Serialization.XmlElementAttribute("parentPath", Order = 3)] + public AdUnitParent[] parentPath { get { - return this.externalIdField; + return this.parentPathField; } set { - this.externalIdField = value; + this.parentPathField = value; } } - /// The name of the Order. This value is read-only. + /// 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 = 4)] - public string orderName { + public string name { get { - return this.orderNameField; + return this.nameField; } set { - this.orderNameField = value; + this.nameField = value; } } - /// The date and time on which the LineItem is enabled to begin - /// serving. This attribute is required and must be in the future. + /// 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 DateTime startDateTime { + public string description { get { - return this.startDateTimeField; + return this.descriptionField; } set { - this.startDateTimeField = value; + this.descriptionField = 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. + /// 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 = 6)] - public StartDateTimeType startDateTimeType { + public AdUnitTargetWindow targetWindow { get { - return this.startDateTimeTypeField; + return this.targetWindowField; } set { - this.startDateTimeTypeField = value; - this.startDateTimeTypeSpecified = true; + this.targetWindowField = value; + this.targetWindowSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="targetWindow" />, false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool startDateTimeTypeSpecified { + public bool targetWindowSpecified { get { - return this.startDateTimeTypeFieldSpecified; + return this.targetWindowFieldSpecified; } set { - this.startDateTimeTypeFieldSpecified = value; + this.targetWindowFieldSpecified = 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. + /// 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 = 7)] - public DateTime endDateTime { - get { - return this.endDateTimeField; - } - set { - this.endDateTimeField = 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. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 8)] - public int autoExtensionDays { + public InventoryStatus status { get { - return this.autoExtensionDaysField; + return this.statusField; } set { - this.autoExtensionDaysField = value; - this.autoExtensionDaysSpecified = 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 autoExtensionDaysSpecified { + public bool statusSpecified { get { - return this.autoExtensionDaysFieldSpecified; + return this.statusFieldSpecified; } set { - this.autoExtensionDaysFieldSpecified = value; + this.statusFieldSpecified = 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. + /// 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(Order = 9)] - public bool unlimitedEndDateTime { + [System.Xml.Serialization.XmlElementAttribute(Order = 8)] + public string adUnitCode { get { - return this.unlimitedEndDateTimeField; + return this.adUnitCodeField; } set { - this.unlimitedEndDateTimeField = value; - this.unlimitedEndDateTimeSpecified = true; + this.adUnitCodeField = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool unlimitedEndDateTimeSpecified { + /// 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("adUnitSizes", Order = 9)] + public AdUnitSize[] adUnitSizes { get { - return this.unlimitedEndDateTimeFieldSpecified; + return this.adUnitSizesField; } set { - this.unlimitedEndDateTimeFieldSpecified = value; + this.adUnitSizesField = value; } } - /// The strategy used for displaying multiple Creative - /// objects that are associated with the . This attribute is required. + /// Whether this is an interstitial ad unit. /// [System.Xml.Serialization.XmlElementAttribute(Order = 10)] - public CreativeRotationType creativeRotationType { + public bool isInterstitial { get { - return this.creativeRotationTypeField; + return this.isInterstitialField; } set { - this.creativeRotationTypeField = value; - this.creativeRotationTypeSpecified = 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 creativeRotationTypeSpecified { + public bool isInterstitialSpecified { get { - return this.creativeRotationTypeFieldSpecified; + return this.isInterstitialFieldSpecified; } set { - this.creativeRotationTypeFieldSpecified = value; + this.isInterstitialFieldSpecified = 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. + /// Whether this is a native ad unit. /// [System.Xml.Serialization.XmlElementAttribute(Order = 11)] - public DeliveryRateType deliveryRateType { + public bool isNative { get { - return this.deliveryRateTypeField; + return this.isNativeField; } set { - this.deliveryRateTypeField = value; - this.deliveryRateTypeSpecified = 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 deliveryRateTypeSpecified { + public bool isNativeSpecified { get { - return this.deliveryRateTypeFieldSpecified; + return this.isNativeFieldSpecified; } set { - this.deliveryRateTypeFieldSpecified = value; + this.isNativeFieldSpecified = 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. + /// Whether this is a fluid ad unit. /// [System.Xml.Serialization.XmlElementAttribute(Order = 12)] - public RoadblockingType roadblockingType { + public bool isFluid { get { - return this.roadblockingTypeField; + return this.isFluidField; } set { - this.roadblockingTypeField = value; - this.roadblockingTypeSpecified = 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 roadblockingTypeSpecified { + public bool isFluidSpecified { get { - return this.roadblockingTypeFieldSpecified; + return this.isFluidFieldSpecified; } set { - this.roadblockingTypeFieldSpecified = value; + this.isFluidFieldSpecified = value; } } - /// The set of frequency capping units for this LineItem. This - /// attribute is optional. + /// 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("frequencyCaps", Order = 13)] - public FrequencyCap[] frequencyCaps { + [System.Xml.Serialization.XmlElementAttribute(Order = 13)] + public bool explicitlyTargeted { get { - return this.frequencyCapsField; + return this.explicitlyTargetedField; } set { - this.frequencyCapsField = value; + this.explicitlyTargetedField = value; + this.explicitlyTargetedSpecified = true; } } - /// 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 = 14)] - public LineItemType lineItemType { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool explicitlyTargetedSpecified { get { - return this.lineItemTypeField; + return this.explicitlyTargetedFieldSpecified; } set { - this.lineItemTypeField = value; - this.lineItemTypeSpecified = true; + this.explicitlyTargetedFieldSpecified = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool lineItemTypeSpecified { + /// AdSense specific settings. To overwrite this, set the #adSenseSettingsSource to PropertySourceType#DIRECTLY_SPECIFIED + /// when setting the value of this field. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 14)] + public AdSenseSettings adSenseSettings { get { - return this.lineItemTypeFieldSpecified; + return this.adSenseSettingsField; } set { - this.lineItemTypeFieldSpecified = value; + this.adSenseSettingsField = 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.

+ /// 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 = 15)] - public int priority { + public ValueSourceType adSenseSettingsSource { get { - return this.priorityField; + return this.adSenseSettingsSourceField; } set { - this.priorityField = value; - this.prioritySpecified = true; + this.adSenseSettingsSourceField = value; + this.adSenseSettingsSourceSpecified = 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 prioritySpecified { + public bool adSenseSettingsSourceSpecified { get { - return this.priorityFieldSpecified; + return this.adSenseSettingsSourceFieldSpecified; } set { - this.priorityFieldSpecified = value; + this.adSenseSettingsSourceFieldSpecified = value; } } - /// The amount of money to spend per impression or click. This attribute is required - /// for creating a LineItem. + /// 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 = 16)] - public Money costPerUnit { + [System.Xml.Serialization.XmlElementAttribute("appliedLabelFrequencyCaps", Order = 16)] + public LabelFrequencyCap[] appliedLabelFrequencyCaps { get { - return this.costPerUnitField; + return this.appliedLabelFrequencyCapsField; } set { - this.costPerUnitField = value; + this.appliedLabelFrequencyCapsField = 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. + /// 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 = 17)] - public Money valueCostPerUnit { + [System.Xml.Serialization.XmlElementAttribute("effectiveLabelFrequencyCaps", Order = 17)] + public LabelFrequencyCap[] effectiveLabelFrequencyCaps { get { - return this.valueCostPerUnitField; + return this.effectiveLabelFrequencyCapsField; } set { - this.valueCostPerUnitField = value; + this.effectiveLabelFrequencyCapsField = value; } } - /// The method used for billing this LineItem. This attribute is - /// required. + /// The set of labels applied directly to this ad unit. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 18)] - public CostType costType { - get { - return this.costTypeField; - } - set { - this.costTypeField = value; - this.costTypeSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool costTypeSpecified { + [System.Xml.Serialization.XmlElementAttribute("appliedLabels", Order = 18)] + public AppliedLabel[] appliedLabels { get { - return this.costTypeFieldSpecified; + return this.appliedLabelsField; } set { - this.costTypeFieldSpecified = value; + this.appliedLabelsField = value; } } - /// The type of discount being applied to a LineItem, either percentage - /// based or absolute. This attribute is optional and defaults to LineItemDiscountType#PERCENTAGE. + /// 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 = 19)] - public LineItemDiscountType discountType { + [System.Xml.Serialization.XmlElementAttribute("effectiveAppliedLabels", Order = 19)] + public AppliedLabel[] effectiveAppliedLabels { get { - return this.discountTypeField; + return this.effectiveAppliedLabelsField; } set { - this.discountTypeField = value; - this.discountTypeSpecified = true; + this.effectiveAppliedLabelsField = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool discountTypeSpecified { + /// 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("effectiveTeamIds", Order = 20)] + public long[] effectiveTeamIds { get { - return this.discountTypeFieldSpecified; + return this.effectiveTeamIdsField; } set { - this.discountTypeFieldSpecified = value; + this.effectiveTeamIdsField = 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 IDs of all teams that this ad unit is on directly. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 20)] - public double discount { + [System.Xml.Serialization.XmlElementAttribute("appliedTeamIds", Order = 21)] + public long[] appliedTeamIds { get { - return this.discountField; + return this.appliedTeamIdsField; } set { - this.discountField = value; - this.discountSpecified = true; + this.appliedTeamIdsField = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool discountSpecified { + /// The date and time this ad unit was last modified. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 22)] + public DateTime lastModifiedDateTime { get { - return this.discountFieldSpecified; + return this.lastModifiedDateTimeField; } set { - this.discountFieldSpecified = value; + this.lastModifiedDateTimeField = 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 smart size mode for this ad unit. This attribute is optional and defaults to + /// SmartSizeMode#NONE for fixed sizes. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 21)] - public long contractedUnitsBought { + [System.Xml.Serialization.XmlElementAttribute(Order = 23)] + public SmartSizeMode smartSizeMode { get { - return this.contractedUnitsBoughtField; + return this.smartSizeModeField; } set { - this.contractedUnitsBoughtField = value; - this.contractedUnitsBoughtSpecified = true; + 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 contractedUnitsBoughtSpecified { - get { - return this.contractedUnitsBoughtFieldSpecified; - } - set { - this.contractedUnitsBoughtFieldSpecified = value; - } - } - - /// 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 = 22)] - public CreativePlaceholder[] creativePlaceholders { - get { - return this.creativePlaceholdersField; - } - set { - this.creativePlaceholdersField = value; - } - } - - /// This attribute is required and meaningful only if the LineItem#costType is CostType.CPA. - /// - [System.Xml.Serialization.XmlElementAttribute("activityAssociations", Order = 23)] - public LineItemActivityAssociation[] activityAssociations { + public bool smartSizeModeSpecified { get { - return this.activityAssociationsField; + return this.smartSizeModeFieldSpecified; } set { - this.activityAssociationsField = value; + this.smartSizeModeFieldSpecified = 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 - /// . + /// 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 = 24)] - public EnvironmentType environmentType { + public int refreshRate { get { - return this.environmentTypeField; + return this.refreshRateField; } set { - this.environmentTypeField = value; - this.environmentTypeSpecified = true; + this.refreshRateField = value; + this.refreshRateSpecified = 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 refreshRateSpecified { get { - return this.environmentTypeFieldSpecified; + return this.refreshRateFieldSpecified; } set { - this.environmentTypeFieldSpecified = value; + this.refreshRateFieldSpecified = 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.

+ /// 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 = 25)] - public CompanionDeliveryOption companionDeliveryOption { - get { - return this.companionDeliveryOptionField; - } - set { - this.companionDeliveryOptionField = value; - this.companionDeliveryOptionSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool companionDeliveryOptionSpecified { + public string externalSetTopBoxChannelId { get { - return this.companionDeliveryOptionFieldSpecified; + return this.externalSetTopBoxChannelIdField; } set { - this.companionDeliveryOptionFieldSpecified = value; + this.externalSetTopBoxChannelIdField = 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.

+ /// Flag that specifies whether this ad unit represents an external set-top box + /// channel. This attribute is read-only. /// [System.Xml.Serialization.XmlElementAttribute(Order = 26)] - public bool allowOverbook { + public bool isSetTopBoxEnabled { get { - return this.allowOverbookField; + return this.isSetTopBoxEnabledField; } set { - this.allowOverbookField = value; - this.allowOverbookSpecified = true; + this.isSetTopBoxEnabledField = value; + this.isSetTopBoxEnabledSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="isSetTopBoxEnabled" />, false otherwise.
[System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool allowOverbookSpecified { + public bool isSetTopBoxEnabledSpecified { get { - return this.allowOverbookFieldSpecified; + return this.isSetTopBoxEnabledFieldSpecified; } set { - this.allowOverbookFieldSpecified = value; + this.isSetTopBoxEnabledFieldSpecified = 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.

- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 27)] - 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; - } - } + /// Corresponds to an HTML link's target attribute. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AdUnit.TargetWindow", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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, + } - /// 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. + + /// Represents the status of objects that represent inventory - ad units and + /// placements. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum InventoryStatus { + /// The object is active. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 28)] - public bool skipCrossSellingRuleWarningChecks { - get { - return this.skipCrossSellingRuleWarningChecksField; - } - set { - this.skipCrossSellingRuleWarningChecksField = value; - this.skipCrossSellingRuleWarningChecksSpecified = true; - } - } + ACTIVE = 0, + /// The object is no longer active. + /// + INACTIVE = 1, + /// The object has been archived. + /// + ARCHIVED = 2, + } - /// true, if a value is specified for , false otherwise. + + /// Identifies the source of a field's value. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum ValueSourceType { + /// The field's value is inherited from the parent object. /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool skipCrossSellingRuleWarningChecksSpecified { - get { - return this.skipCrossSellingRuleWarningChecksFieldSpecified; - } - set { - this.skipCrossSellingRuleWarningChecksFieldSpecified = value; - } - } + 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, + } - /// 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. + + /// Represents smart size modes. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum SmartSizeMode { + /// The value returned if the actual value is not exposed by the requested API + /// version. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 29)] - public bool reserveAtCreation { + 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.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class InventoryUnitSizesError : ApiError { + private InventoryUnitSizesErrorReason reasonField; + + private bool reasonFieldSpecified; + + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public InventoryUnitSizesErrorReason reason { get { - return this.reserveAtCreationField; + return this.reasonField; } set { - this.reserveAtCreationField = value; - this.reserveAtCreationSpecified = 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 reserveAtCreationSpecified { + public bool reasonSpecified { get { - return this.reserveAtCreationFieldSpecified; + return this.reasonFieldSpecified; } set { - this.reserveAtCreationFieldSpecified = value; + this.reasonFieldSpecified = 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. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 30)] - public Stats stats { - get { - return this.statsField; - } - set { - this.statsField = 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. - ///
+ /// All possible reasons the error can be thrown. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "InventoryUnitSizesError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum InventoryUnitSizesErrorReason { + /// A size in the ad unit is too large or too small. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 31)] - public DeliveryIndicator deliveryIndicator { - get { - return this.deliveryIndicatorField; - } - set { - this.deliveryIndicatorField = 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.
+ INVALID_SIZES = 0, + /// A size is an aspect ratio, but the ad unit is not a mobile ad unit. /// - [System.Xml.Serialization.XmlArrayAttribute(Order = 32)] - [System.Xml.Serialization.XmlArrayItemAttribute("units", IsNullable = false)] - public long[] deliveryData { - get { - return this.deliveryDataField; - } - set { - this.deliveryDataField = value; - } - } - - /// The amount of money allocated to the LineItem. This attribute is - /// readonly and is populated by Google. The currency code is readonly. + INVALID_SIZE_FOR_PLATFORM = 1, + /// A size is video, but the video feature is not enabled. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 33)] - public Money budget { - get { - return this.budgetField; - } - set { - this.budgetField = value; - } - } - - /// The status of the LineItem. This attribute is readonly. + VIDEO_FEATURE_MISSING = 2, + /// A size is video in a mobile ad unit, but the mobile video feature is not + /// enabled. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 34)] - public ComputedStatus status { + 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.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class InventoryUnitRefreshRateError : ApiError { + private InventoryUnitRefreshRateErrorReason reasonField; + + private bool reasonFieldSpecified; + + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public InventoryUnitRefreshRateErrorReason reason { get { - return this.statusField; + return this.reasonField; } set { - this.statusField = value; - this.statusSpecified = 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 statusSpecified { + public bool reasonSpecified { get { - return this.statusFieldSpecified; + return this.reasonFieldSpecified; } set { - this.statusFieldSpecified = value; + this.reasonFieldSpecified = value; } } + } - /// Describes whether or not inventory has been reserved for the . This - /// attribute is readonly and is assigned by Google. + + /// Reasons for the error. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "InventoryUnitRefreshRateError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum InventoryUnitRefreshRateErrorReason { + /// The refresh rate must be between 30 and 120 seconds. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 35)] - public LineItemSummaryReservationStatus reservationStatus { + 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.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class InvalidColorError : ApiError { + private InvalidColorErrorReason reasonField; + + private bool reasonFieldSpecified; + + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public InvalidColorErrorReason reason { get { - return this.reservationStatusField; + return this.reasonField; } set { - this.reservationStatusField = value; - this.reservationStatusSpecified = 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 reservationStatusSpecified { + public bool reasonSpecified { get { - return this.reservationStatusFieldSpecified; + return this.reasonFieldSpecified; } set { - this.reservationStatusFieldSpecified = value; + this.reasonFieldSpecified = value; } } + } - /// The archival status of the LineItem. This attribute is readonly. + + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "InvalidColorError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum InvalidColorErrorReason { + /// The provided value is not a valid hexadecimal color. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 36)] - public bool isArchived { + 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.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class CompanyError : ApiError { + private CompanyErrorReason reasonField; + + private bool reasonFieldSpecified; + + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public CompanyErrorReason 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 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. + + /// Enumerates all possible company specific errors. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CompanyError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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 = 37)] - public string webPropertyCode { + 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, + } + + + /// Caused by creating an AdUnit object with an invalid + /// hierarchy. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class AdUnitHierarchyError : ApiError { + private AdUnitHierarchyErrorReason reasonField; + + private bool reasonFieldSpecified; + + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public AdUnitHierarchyErrorReason reason { get { - return this.webPropertyCodeField; + return this.reasonField; } set { - this.webPropertyCodeField = value; + this.reasonField = value; + this.reasonSpecified = true; } } - /// The set of labels applied directly to this line item. - /// - [System.Xml.Serialization.XmlElementAttribute("appliedLabels", Order = 38)] - public AppliedLabel[] appliedLabels { + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool reasonSpecified { get { - return this.appliedLabelsField; + return this.reasonFieldSpecified; } set { - this.appliedLabelsField = value; + this.reasonFieldSpecified = value; } } + } - /// 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.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AdUnitHierarchyError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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("effectiveAppliedLabels", Order = 39)] - public AppliedLabel[] effectiveAppliedLabels { + 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.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class AdSenseAccountError : ApiError { + private AdSenseAccountErrorReason reasonField; + + private bool reasonFieldSpecified; + + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public AdSenseAccountErrorReason reason { get { - return this.effectiveAppliedLabelsField; + return this.reasonField; } set { - this.effectiveAppliedLabelsField = value; + this.reasonField = value; + this.reasonSpecified = true; } } - /// 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 = 40)] - public bool disableSameAdvertiserCompetitiveExclusion { + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool reasonSpecified { get { - return this.disableSameAdvertiserCompetitiveExclusionField; + return this.reasonFieldSpecified; } set { - this.disableSameAdvertiserCompetitiveExclusionField = value; - this.disableSameAdvertiserCompetitiveExclusionSpecified = true; + this.reasonFieldSpecified = value; + } + } + } + + + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AdSenseAccountError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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. + /// + UNKNOWN = 6, + } + + + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", ConfigurationName = "Google.Api.Ads.AdManager.v201908.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.v201908.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.v201908.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.v201908.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v201908.AdUnitPage getAdUnitsByStatement(Google.Api.Ads.AdManager.v201908.Statement filterStatement); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task getAdUnitsByStatementAsync(Google.Api.Ads.AdManager.v201908.Statement filterStatement); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201908.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v201908.UpdateResult performAdUnitAction(Google.Api.Ads.AdManager.v201908.AdUnitAction adUnitAction, Google.Api.Ads.AdManager.v201908.Statement filterStatement); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task performAdUnitActionAsync(Google.Api.Ads.AdManager.v201908.AdUnitAction adUnitAction, Google.Api.Ads.AdManager.v201908.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.v201908.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.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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 = 0)] + public int totalResultSetSize { + get { + return this.totalResultSetSizeField; + } + set { + 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 disableSameAdvertiserCompetitiveExclusionSpecified { + public bool totalResultSetSizeSpecified { get { - return this.disableSameAdvertiserCompetitiveExclusionFieldSpecified; + return this.totalResultSetSizeFieldSpecified; } set { - this.disableSameAdvertiserCompetitiveExclusionFieldSpecified = value; + this.totalResultSetSizeFieldSpecified = value; } } - /// The application that last modified this line item. This attribute is read only - /// and is assigned by Google. + /// The absolute index in the total result set on which this page begins. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 41)] - public string lastModifiedByApp { + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public int startIndex { get { - return this.lastModifiedByAppField; + return this.startIndexField; } set { - this.lastModifiedByAppField = value; + this.startIndexField = value; + this.startIndexSpecified = 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 = 42)] - public string notes { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool startIndexSpecified { get { - return this.notesField; + return this.startIndexFieldSpecified; } set { - this.notesField = value; + this.startIndexFieldSpecified = value; } } - /// The date and time this line item was last modified. + /// The collection of ad units contained within this page. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 43)] - public DateTime lastModifiedDateTime { + [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] + public AdUnit[] results { get { - return this.lastModifiedDateTimeField; + return this.resultsField; } set { - this.lastModifiedDateTimeField = value; + this.resultsField = value; } } + } - /// This attribute may be null for line items created before this - /// feature was introduced. + + /// 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.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public abstract partial class AdUnitAction { + } + + + /// The action used for deactivating AdUnit objects. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class DeactivateAdUnits : AdUnitAction { + } + + + /// The action used for archiving AdUnit objects. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class ArchiveAdUnits : AdUnitAction { + } + + + /// The action used for activating AdUnit objects. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class ActivateAdUnits : AdUnitAction { + } + + + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + public interface InventoryServiceInterfaceChannel : Google.Api.Ads.AdManager.v201908.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. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 44)] - public DateTime creationDateTime { - get { - return this.creationDateTimeField; + public InventoryService() { + } + + /// Creates a new instance of the class. + /// + public InventoryService(string endpointConfigurationName) + : base(endpointConfigurationName) { + } + + /// Creates a new instance of the class. + /// + public InventoryService(string endpointConfigurationName, string remoteAddress) + : base(endpointConfigurationName, remoteAddress) { + } + + /// Creates a new instance of the class. + /// + public InventoryService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) + : base(endpointConfigurationName, remoteAddress) { + } + + /// Creates a new instance of the class. + /// + 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.v201908.InventoryServiceInterface.createAdUnits(Wrappers.InventoryService.createAdUnitsRequest request) { + return base.Channel.createAdUnits(request); + } + + /// Creates new AdUnit objects. + /// the ad units to create + /// the created ad units, with their IDs filled in + public virtual Google.Api.Ads.AdManager.v201908.AdUnit[] createAdUnits(Google.Api.Ads.AdManager.v201908.AdUnit[] adUnits) { + Wrappers.InventoryService.createAdUnitsRequest inValue = new Wrappers.InventoryService.createAdUnitsRequest(); + inValue.adUnits = adUnits; + Wrappers.InventoryService.createAdUnitsResponse retVal = ((Google.Api.Ads.AdManager.v201908.InventoryServiceInterface)(this)).createAdUnits(inValue); + return retVal.rval; + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201908.InventoryServiceInterface.createAdUnitsAsync(Wrappers.InventoryService.createAdUnitsRequest request) { + return base.Channel.createAdUnitsAsync(request); + } + + public virtual System.Threading.Tasks.Task createAdUnitsAsync(Google.Api.Ads.AdManager.v201908.AdUnit[] adUnits) { + Wrappers.InventoryService.createAdUnitsRequest inValue = new Wrappers.InventoryService.createAdUnitsRequest(); + inValue.adUnits = adUnits; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201908.InventoryServiceInterface)(this)).createAdUnitsAsync(inValue)).Result.rval); + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + Wrappers.InventoryService.getAdUnitSizesByStatementResponse Google.Api.Ads.AdManager.v201908.InventoryServiceInterface.getAdUnitSizesByStatement(Wrappers.InventoryService.getAdUnitSizesByStatementRequest request) { + return base.Channel.getAdUnitSizesByStatement(request); + } + + /// Gets a set of AdUnitSize objects that satisfy the given + /// Statement#query. The following fields are + /// supported for filtering: + ///
PQL Property Object Property
targetPlatformTargetPlatform
An exception + /// will be thrown for queries with unsupported fields. Paging is not supported, as + /// aren't the LIMIT and OFFSET PQL keywords. Only "=" operator is supported. + ///
a Publisher Query Language statement used to + /// filter a set of ad unit sizes + /// the ad unit sizes that match the given filter + public virtual Google.Api.Ads.AdManager.v201908.AdUnitSize[] getAdUnitSizesByStatement(Google.Api.Ads.AdManager.v201908.Statement filterStatement) { + Wrappers.InventoryService.getAdUnitSizesByStatementRequest inValue = new Wrappers.InventoryService.getAdUnitSizesByStatementRequest(); + inValue.filterStatement = filterStatement; + Wrappers.InventoryService.getAdUnitSizesByStatementResponse retVal = ((Google.Api.Ads.AdManager.v201908.InventoryServiceInterface)(this)).getAdUnitSizesByStatement(inValue); + return retVal.rval; + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201908.InventoryServiceInterface.getAdUnitSizesByStatementAsync(Wrappers.InventoryService.getAdUnitSizesByStatementRequest request) { + return base.Channel.getAdUnitSizesByStatementAsync(request); + } + + public virtual System.Threading.Tasks.Task getAdUnitSizesByStatementAsync(Google.Api.Ads.AdManager.v201908.Statement filterStatement) { + Wrappers.InventoryService.getAdUnitSizesByStatementRequest inValue = new Wrappers.InventoryService.getAdUnitSizesByStatementRequest(); + inValue.filterStatement = filterStatement; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201908.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
+ ///
a Publisher Query Language statement used to + /// filter a set of ad units + /// the ad units that match the given filter + public virtual Google.Api.Ads.AdManager.v201908.AdUnitPage getAdUnitsByStatement(Google.Api.Ads.AdManager.v201908.Statement filterStatement) { + return base.Channel.getAdUnitsByStatement(filterStatement); + } + + public virtual System.Threading.Tasks.Task getAdUnitsByStatementAsync(Google.Api.Ads.AdManager.v201908.Statement filterStatement) { + return base.Channel.getAdUnitsByStatementAsync(filterStatement); + } + + /// Performs actions on AdUnit objects that match the given Statement#query. + /// the action to perform + /// a Publisher Query Language statement used to + /// filter a set of ad units + /// the result of the action performed + public virtual Google.Api.Ads.AdManager.v201908.UpdateResult performAdUnitAction(Google.Api.Ads.AdManager.v201908.AdUnitAction adUnitAction, Google.Api.Ads.AdManager.v201908.Statement filterStatement) { + return base.Channel.performAdUnitAction(adUnitAction, filterStatement); + } + + public virtual System.Threading.Tasks.Task performAdUnitActionAsync(Google.Api.Ads.AdManager.v201908.AdUnitAction adUnitAction, Google.Api.Ads.AdManager.v201908.Statement filterStatement) { + return base.Channel.performAdUnitActionAsync(adUnitAction, filterStatement); + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + Wrappers.InventoryService.updateAdUnitsResponse Google.Api.Ads.AdManager.v201908.InventoryServiceInterface.updateAdUnits(Wrappers.InventoryService.updateAdUnitsRequest request) { + return base.Channel.updateAdUnits(request); + } + + /// Updates the specified AdUnit objects. + /// the ad units to update + /// the updated ad units + public virtual Google.Api.Ads.AdManager.v201908.AdUnit[] updateAdUnits(Google.Api.Ads.AdManager.v201908.AdUnit[] adUnits) { + Wrappers.InventoryService.updateAdUnitsRequest inValue = new Wrappers.InventoryService.updateAdUnitsRequest(); + inValue.adUnits = adUnits; + Wrappers.InventoryService.updateAdUnitsResponse retVal = ((Google.Api.Ads.AdManager.v201908.InventoryServiceInterface)(this)).updateAdUnits(inValue); + return retVal.rval; + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201908.InventoryServiceInterface.updateAdUnitsAsync(Wrappers.InventoryService.updateAdUnitsRequest request) { + return base.Channel.updateAdUnitsAsync(request); + } + + public virtual System.Threading.Tasks.Task updateAdUnitsAsync(Google.Api.Ads.AdManager.v201908.AdUnit[] adUnits) { + Wrappers.InventoryService.updateAdUnitsRequest inValue = new Wrappers.InventoryService.updateAdUnitsRequest(); + inValue.adUnits = adUnits; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201908.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/v201908", IsWrapped = true)] + public partial class createLabelsRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("labels")] + public Google.Api.Ads.AdManager.v201908.Label[] labels; + + /// Creates a new instance of the class. + /// + public createLabelsRequest() { } - set { - this.creationDateTimeField = value; + + /// Creates a new instance of the class. + /// + public createLabelsRequest(Google.Api.Ads.AdManager.v201908.Label[] labels) { + this.labels = labels; } } - /// Whether an AdExchange line item has prioritized preferred deals enabled. This - /// attribute is optional and defaults to false. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 45)] - public bool isPrioritizedPreferredDealsEnabled { - get { - return this.isPrioritizedPreferredDealsEnabledField; + + [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/v201908", IsWrapped = true)] + public partial class createLabelsResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("rval")] + public Google.Api.Ads.AdManager.v201908.Label[] rval; + + /// Creates a new instance of the + /// class. + public createLabelsResponse() { } - set { - this.isPrioritizedPreferredDealsEnabledField = value; - this.isPrioritizedPreferredDealsEnabledSpecified = true; + + /// Creates a new instance of the + /// class. + public createLabelsResponse(Google.Api.Ads.AdManager.v201908.Label[] rval) { + this.rval = rval; } } - /// true, if a value is specified for , false otherwise. - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool isPrioritizedPreferredDealsEnabledSpecified { - get { - return this.isPrioritizedPreferredDealsEnabledFieldSpecified; + + [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/v201908", IsWrapped = true)] + public partial class updateLabelsRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("labels")] + public Google.Api.Ads.AdManager.v201908.Label[] labels; + + /// Creates a new instance of the class. + /// + public updateLabelsRequest() { } - set { - this.isPrioritizedPreferredDealsEnabledFieldSpecified = value; + + /// Creates a new instance of the class. + /// + public updateLabelsRequest(Google.Api.Ads.AdManager.v201908.Label[] labels) { + this.labels = labels; } } - /// The priority at which an Ad Exchange line item enters the open Ad Exchange - /// auction if the preferred deal fails to transact. This attribute is optional. If - /// prioritized preferred deals are enabled, it defaults to 12. Otherwise, it is - /// ignored. + + [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/v201908", IsWrapped = true)] + public partial class updateLabelsResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("rval")] + public Google.Api.Ads.AdManager.v201908.Label[] rval; + + /// Creates a new instance of the + /// class. + public updateLabelsResponse() { + } + + /// Creates a new instance of the + /// class. + public updateLabelsResponse(Google.Api.Ads.AdManager.v201908.Label[] rval) { + this.rval = rval; + } + } + } + /// A canonical ad category. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 46)] - public int adExchangeAuctionOpeningPriority { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public long id { get { - return this.adExchangeAuctionOpeningPriorityField; + return this.idField; } set { - this.adExchangeAuctionOpeningPriorityField = value; - this.adExchangeAuctionOpeningPrioritySpecified = 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 adExchangeAuctionOpeningPrioritySpecified { + public bool idSpecified { get { - return this.adExchangeAuctionOpeningPriorityFieldSpecified; + return this.idFieldSpecified; } set { - this.adExchangeAuctionOpeningPriorityFieldSpecified = value; + this.idFieldSpecified = value; } } - /// The values of the custom fields associated with this line item. + /// Localized name of the category. /// - [System.Xml.Serialization.XmlElementAttribute("customFieldValues", Order = 47)] - public BaseCustomFieldValue[] customFieldValues { + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public string displayName { get { - return this.customFieldValuesField; + return this.displayNameField; } set { - this.customFieldValuesField = value; + this.displayNameField = value; } } - /// Flag that specifies whether this LineItem is a set-top box enabled - /// line item. Set-top box line items only support the following creative sizes: - /// 1920x1080 and 640x480.

This attribute is read-only after creation.

+ /// ID of the category's parent, or 0 if it has no parent. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 48)] - public bool isSetTopBoxEnabled { + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public long parentId { get { - return this.isSetTopBoxEnabledField; + return this.parentIdField; } set { - this.isSetTopBoxEnabledField = value; - this.isSetTopBoxEnabledSpecified = 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 isSetTopBoxEnabledSpecified { + public bool parentIdSpecified { get { - return this.isSetTopBoxEnabledFieldSpecified; + return this.parentIdFieldSpecified; } set { - this.isSetTopBoxEnabledFieldSpecified = value; + this.parentIdFieldSpecified = 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.Xml.Serialization.XmlElementAttribute(Order = 49)] - public bool isMissingCreatives { - get { - return this.isMissingCreativesField; - } - set { - this.isMissingCreativesField = value; - this.isMissingCreativesSpecified = true; - } - } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool isMissingCreativesSpecified { - get { - return this.isMissingCreativesFieldSpecified; - } - set { - this.isMissingCreativesFieldSpecified = value; - } - } + /// A Label is additional information that can be added to an entity. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class Label { + private long idField; - /// Additional information for set-top box enabled line items. This attribute is - /// optional and only meaningful when #isSetTopBoxEnabled is true. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 50)] - public SetTopBoxInfo setTopBoxDisplayInfo { - get { - return this.setTopBoxDisplayInfoField; - } - set { - this.setTopBoxDisplayInfoField = value; - } - } + private bool idFieldSpecified; - /// 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(Order = 51)] - public ProgrammaticCreativeSource programmaticCreativeSource { - get { - return this.programmaticCreativeSourceField; - } - set { - this.programmaticCreativeSourceField = value; - this.programmaticCreativeSourceSpecified = true; - } - } + private string nameField; - /// 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; - } - } + private string descriptionField; - /// The max duration of a video creative associated with this in - /// milliseconds. This attribute is optional, defaults to 0, and only meaningful if - /// this is a video line item. + 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 = 52)] - public long videoMaxDuration { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public long id { get { - return this.videoMaxDurationField; + return this.idField; } set { - this.videoMaxDurationField = value; - this.videoMaxDurationSpecified = 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 videoMaxDurationSpecified { - get { - return this.videoMaxDurationFieldSpecified; - } - set { - this.videoMaxDurationFieldSpecified = value; - } - } - - /// The primary goal that this LineItem is associated with, which is - /// used in its pacing and budgeting. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 53)] - public Goal primaryGoal { + public bool idSpecified { get { - return this.primaryGoalField; + return this.idFieldSpecified; } set { - this.primaryGoalField = value; + this.idFieldSpecified = 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. + /// 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("secondaryGoals", Order = 54)] - public Goal[] secondaryGoals { + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public string name { get { - return this.secondaryGoalsField; + return this.nameField; } set { - this.secondaryGoalsField = value; + this.nameField = value; } } - /// Contains the information for a line item which has a target GRP demographic. + /// A description of the label. This value is optional and its maximum length is 255 + /// characters. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 55)] - public GrpSettings grpSettings { + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public string description { get { - return this.grpSettingsField; + return this.descriptionField; } set { - this.grpSettingsField = value; + this.descriptionField = value; } } - /// Optional ID of the Company that provides ad verification - /// for this line item. An error will be thrown if the company that the ID refernces - /// is not of type Company.Type#VIEWABILITY_PROVIDER. + /// Specifies whether or not the label is active. This attribute is read-only. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 56)] - public long viewabilityProviderCompanyId { + [System.Xml.Serialization.XmlElementAttribute(Order = 3)] + public bool isActive { get { - return this.viewabilityProviderCompanyIdField; + return this.isActiveField; } set { - this.viewabilityProviderCompanyIdField = value; - this.viewabilityProviderCompanyIdSpecified = 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 viewabilityProviderCompanyIdSpecified { + public bool isActiveSpecified { get { - return this.viewabilityProviderCompanyIdFieldSpecified; + return this.isActiveFieldSpecified; } set { - this.viewabilityProviderCompanyIdFieldSpecified = value; + this.isActiveFieldSpecified = value; } } - /// User consent eligibility designation for this line item. This field is optional - /// and defaults to UserConsentEligibility#NONE. This field - /// has no effect on serving enforcement unless you opt to "Limit line items" in the - /// network's EU User Consent settings. See the Ad Manager - /// Help Center for more information. + /// Indicates the Ad Category associated with the label. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 57)] - public UserConsentEligibility userConsentEligibility { + [System.Xml.Serialization.XmlElementAttribute(Order = 4)] + public AdCategoryDto adCategory { get { - return this.userConsentEligibilityField; + return this.adCategoryField; } set { - this.userConsentEligibilityField = value; - this.userConsentEligibilitySpecified = true; + this.adCategoryField = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool userConsentEligibilitySpecified { + /// The types of the Label. + /// + [System.Xml.Serialization.XmlElementAttribute("types", Order = 5)] + public LabelType[] types { get { - return this.userConsentEligibilityFieldSpecified; + return this.typesField; } set { - this.userConsentEligibilityFieldSpecified = value; + this.typesField = value; } } } - /// 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.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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, - } - - - /// Describes the LineItem actions that are billable. + /// Represents the types of labels supported. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum CostType { - /// Cost per action. The LineItem#lineItemType - /// must be one of: + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum LabelType { + /// Allows for the creation of labels to exclude competing ads from showing on the + /// same page. /// - CPA = 0, - /// Cost per click. The LineItem#lineItemType - /// must be one of: + 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. /// - CPC = 1, - /// Cost per day. The LineItem#lineItemType must - /// be one of: + 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. /// - CPD = 2, - /// Cost per mille (cost per thousand impressions). The LineItem#lineItemType must be one of: + 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. /// - CPM = 3, - /// Cost per thousand Active View viewable impressions. The LineItem#lineItemType must be LineItemType#STANDARD. + 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. /// - VCPM = 5, + CANONICAL_CATEGORY = 5, /// The value returned if the actual value is not exposed by the requested API /// version. /// @@ -29700,1993 +30080,1508 @@ public enum CostType { } - /// Describes the possible discount types on the cost of booking a LineItem. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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, - } - - - /// Specifies the reservation status of the LineItem. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "LineItemSummary.ReservationStatus", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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, - } + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", ConfigurationName = "Google.Api.Ads.AdManager.v201908.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.v201908.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); - /// User consent eligibility designation for a LineItem. This - /// value is only relevant if a publisher has opted to "Limit line items" in the - /// network-level EU user consent settings, and only on specific types of LineItem. See the Ad Manager - /// Help Center for a full explanation of how and when this setting is used. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum UserConsentEligibility { - /// Don't serve for any EEA ad request. This line item is not eligible to serve on - /// any requests that originate in the EEA regardless of the consent bit in request. - /// - NONE = 0, - /// Don't limit serving. The network has marked this line item as one that does not - /// use any personalized data. The line item is therefore eligible to serve on - /// requests regardless of users' consent designations (in other words, for requests - /// that have either NPA=1 or no NPA). - /// - CONSENTED_OR_NPA = 1, - /// Don't serve for non-personalized ad requests. The network has marked this line - /// item as being eligible to serve on any consented request (i.e., on requests that - /// do not have NPA=1). The network therefore takes responsibility for - /// gathering consent from the user for any data sharing that may occur from third - /// parties present on the creatives that are associated with this line item. If a - /// non-consented request (a request that does have NPA=1) is received, this - /// line item will not be eligible for match. - /// - CONSENTED_ONLY = 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.v201908.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v201908.LabelPage getLabelsByStatement(Google.Api.Ads.AdManager.v201908.Statement filterStatement); + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task getLabelsByStatementAsync(Google.Api.Ads.AdManager.v201908.Statement filterStatement); - /// LineItem is an advertiser's commitment to purchase a specific - /// number of ad impressions, clicks, or time. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class LineItem : LineItemSummary { - private Targeting targetingField; + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201908.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v201908.UpdateResult performLabelAction(Google.Api.Ads.AdManager.v201908.LabelAction labelAction, Google.Api.Ads.AdManager.v201908.Statement filterStatement); - private CreativeTargeting[] creativeTargetingsField; + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task performLabelActionAsync(Google.Api.Ads.AdManager.v201908.LabelAction labelAction, Google.Api.Ads.AdManager.v201908.Statement filterStatement); - /// 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; - } - } + // 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.v201908.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); - /// 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 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; - } - } + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + System.Threading.Tasks.Task updateLabelsAsync(Wrappers.LabelService.updateLabelsRequest request); } - /// Represents a prospective line item to be forecasted. + /// Captures a page of Label objects. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ProspectiveLineItem { - private LineItem lineItemField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class LabelPage { + private int totalResultSetSizeField; - private ProposalLineItem proposalLineItemField; + private bool totalResultSetSizeFieldSpecified; - private long advertiserIdField; + private int startIndexField; - private bool advertiserIdFieldSpecified; + private bool startIndexFieldSpecified; - /// 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 Label[] resultsField; + + /// The size of the total result set to which this page belongs. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public LineItem lineItem { + public int totalResultSetSize { get { - return this.lineItemField; + return this.totalResultSetSizeField; } set { - this.lineItemField = value; + this.totalResultSetSizeField = value; + this.totalResultSetSizeSpecified = 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.

- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public ProposalLineItem proposalLineItem { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool totalResultSetSizeSpecified { get { - return this.proposalLineItemField; + return this.totalResultSetSizeFieldSpecified; } set { - this.proposalLineItemField = value; + this.totalResultSetSizeFieldSpecified = 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. + /// The absolute index in the total result set on which this page begins. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public long advertiserId { + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public int startIndex { get { - return this.advertiserIdField; + return this.startIndexField; } set { - this.advertiserIdField = value; - this.advertiserIdSpecified = 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 advertiserIdSpecified { + public bool startIndexSpecified { get { - return this.advertiserIdFieldSpecified; + return this.startIndexFieldSpecified; } set { - this.advertiserIdFieldSpecified = 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; } } } - /// Lists all errors related to VideoPositionTargeting. + /// Represents the actions that can be performed on Label + /// objects. /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(DeactivateLabels))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ActivateLabels))] + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class VideoPositionTargetingError : ApiError { - private VideoPositionTargetingErrorReason reasonField; - - private bool reasonFieldSpecified; - - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public VideoPositionTargetingErrorReason 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/v201908")] + public abstract partial class LabelAction { } - /// The reasons for the video position targeting error. + /// The action used for deactivating Label objects. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "VideoPositionTargetingError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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, - /// 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/v201908")] + public partial class DeactivateLabels : LabelAction { } - /// Lists all errors related to user domain targeting for a line item. + /// The action used for activating Label objects. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class UserDomainTargetingError : ApiError { - private UserDomainTargetingErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class ActivateLabels : LabelAction { + } - private bool reasonFieldSpecified; - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public UserDomainTargetingErrorReason reason { - get { - return this.reasonField; - } - set { - this.reasonField = value; - this.reasonSpecified = true; - } + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + public interface LabelServiceInterfaceChannel : Google.Api.Ads.AdManager.v201908.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. + /// + public LabelService() { } - /// 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) + : base(endpointConfigurationName) { } - } + /// Creates a new instance of the class. + /// + public LabelService(string endpointConfigurationName, string remoteAddress) + : base(endpointConfigurationName, remoteAddress) { + } - /// ApiErrorReason enum for user domain targeting - /// error. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "UserDomainTargetingError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum UserDomainTargetingErrorReason { - /// Invalid domain names. Domain names must be at most 67 characters long. And must - /// contain only alphanumeric characters and hyphens. + /// Creates a new instance of the class. /// - INVALID_DOMAIN_NAMES = 0, - /// The value returned if the actual value is not exposed by the requested API - /// version. + public LabelService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) + : base(endpointConfigurationName, remoteAddress) { + } + + /// Creates a new instance of the class. /// - UNKNOWN = 1, + 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.v201908.LabelServiceInterface.createLabels(Wrappers.LabelService.createLabelsRequest request) { + return base.Channel.createLabels(request); + } + + /// Creates new Label objects. + /// the labels to create + /// the created labels with their IDs filled in + public virtual Google.Api.Ads.AdManager.v201908.Label[] createLabels(Google.Api.Ads.AdManager.v201908.Label[] labels) { + Wrappers.LabelService.createLabelsRequest inValue = new Wrappers.LabelService.createLabelsRequest(); + inValue.labels = labels; + Wrappers.LabelService.createLabelsResponse retVal = ((Google.Api.Ads.AdManager.v201908.LabelServiceInterface)(this)).createLabels(inValue); + return retVal.rval; + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201908.LabelServiceInterface.createLabelsAsync(Wrappers.LabelService.createLabelsRequest request) { + return base.Channel.createLabelsAsync(request); + } + + public virtual System.Threading.Tasks.Task createLabelsAsync(Google.Api.Ads.AdManager.v201908.Label[] labels) { + Wrappers.LabelService.createLabelsRequest inValue = new Wrappers.LabelService.createLabelsRequest(); + inValue.labels = labels; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201908.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
name Label#name
description Label#description
isActive Label#isActive
+ ///
a Publisher Query Language statement used to + /// filter a set of labels. + /// the labels that match the given filter + public virtual Google.Api.Ads.AdManager.v201908.LabelPage getLabelsByStatement(Google.Api.Ads.AdManager.v201908.Statement filterStatement) { + return base.Channel.getLabelsByStatement(filterStatement); + } + + public virtual System.Threading.Tasks.Task getLabelsByStatementAsync(Google.Api.Ads.AdManager.v201908.Statement filterStatement) { + return base.Channel.getLabelsByStatementAsync(filterStatement); + } + + /// Performs actions on Label objects that match the given Statement#query. + /// the action to perform + /// a Publisher Query Language statement used to + /// filter a set of labels + /// the result of the action performed + public virtual Google.Api.Ads.AdManager.v201908.UpdateResult performLabelAction(Google.Api.Ads.AdManager.v201908.LabelAction labelAction, Google.Api.Ads.AdManager.v201908.Statement filterStatement) { + return base.Channel.performLabelAction(labelAction, filterStatement); + } + + public virtual System.Threading.Tasks.Task performLabelActionAsync(Google.Api.Ads.AdManager.v201908.LabelAction labelAction, Google.Api.Ads.AdManager.v201908.Statement filterStatement) { + return base.Channel.performLabelActionAsync(labelAction, filterStatement); + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + Wrappers.LabelService.updateLabelsResponse Google.Api.Ads.AdManager.v201908.LabelServiceInterface.updateLabels(Wrappers.LabelService.updateLabelsRequest request) { + return base.Channel.updateLabels(request); + } + + /// Updates the specified Label objects. + /// the labels to update + /// the updated labels + public virtual Google.Api.Ads.AdManager.v201908.Label[] updateLabels(Google.Api.Ads.AdManager.v201908.Label[] labels) { + Wrappers.LabelService.updateLabelsRequest inValue = new Wrappers.LabelService.updateLabelsRequest(); + inValue.labels = labels; + Wrappers.LabelService.updateLabelsResponse retVal = ((Google.Api.Ads.AdManager.v201908.LabelServiceInterface)(this)).updateLabels(inValue); + return retVal.rval; + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201908.LabelServiceInterface.updateLabelsAsync(Wrappers.LabelService.updateLabelsRequest request) { + return base.Channel.updateLabelsAsync(request); + } + + public virtual System.Threading.Tasks.Task updateLabelsAsync(Google.Api.Ads.AdManager.v201908.Label[] labels) { + Wrappers.LabelService.updateLabelsRequest inValue = new Wrappers.LabelService.updateLabelsRequest(); + inValue.labels = labels; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201908.LabelServiceInterface)(this)).updateLabelsAsync(inValue)).Result.rval); + } } + namespace Wrappers.ActivityService + { + [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/v201908", IsWrapped = true)] + public partial class createActivitiesRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("activities")] + public Google.Api.Ads.AdManager.v201908.Activity[] activities; + /// Creates a new instance of the + /// class. + public createActivitiesRequest() { + } - /// Errors related to timezones. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class TimeZoneError : ApiError { - private TimeZoneErrorReason reasonField; + /// Creates a new instance of the + /// class. + public createActivitiesRequest(Google.Api.Ads.AdManager.v201908.Activity[] activities) { + this.activities = activities; + } + } - private bool reasonFieldSpecified; - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public TimeZoneErrorReason reason { - get { - return this.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 = "createActivitiesResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201908", IsWrapped = true)] + public partial class createActivitiesResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("rval")] + public Google.Api.Ads.AdManager.v201908.Activity[] rval; + + /// Creates a new instance of the + /// class. + public createActivitiesResponse() { } - set { - this.reasonField = value; - this.reasonSpecified = true; + + /// Creates a new instance of the + /// class. + public createActivitiesResponse(Google.Api.Ads.AdManager.v201908.Activity[] 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; + + [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/v201908", IsWrapped = true)] + public partial class updateActivitiesRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("activities")] + public Google.Api.Ads.AdManager.v201908.Activity[] activities; + + /// Creates a new instance of the + /// class. + public updateActivitiesRequest() { } - set { - this.reasonFieldSpecified = value; + + /// Creates a new instance of the + /// class. + public updateActivitiesRequest(Google.Api.Ads.AdManager.v201908.Activity[] activities) { + this.activities = activities; } } - } - /// Describes reasons for invalid timezone. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "TimeZoneError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum TimeZoneErrorReason { - /// Indicates that the timezone ID provided is not supported. - /// - 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, - } + [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/v201908", IsWrapped = true)] + public partial class updateActivitiesResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("rval")] + public Google.Api.Ads.AdManager.v201908.Activity[] rval; + /// Creates a new instance of the + /// class. + public updateActivitiesResponse() { + } - /// Technology targeting validation errors. + /// Creates a new instance of the + /// class. + public updateActivitiesResponse(Google.Api.Ads.AdManager.v201908.Activity[] 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.

///
[System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class TechnologyTargetingError : ApiError { - private TechnologyTargetingErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class Activity { + private int idField; - private bool reasonFieldSpecified; + private bool idFieldSpecified; + + private int activityGroupIdField; + + private bool activityGroupIdFieldSpecified; + + private string nameField; + + private string expectedURLField; + + private ActivityStatus statusField; + + private bool statusFieldSpecified; + + private ActivityType typeField; + + private bool typeFieldSpecified; + /// The unique ID of the Activity. This value is readonly and is + /// assigned by Google. + /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public TechnologyTargetingErrorReason reason { + public int 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.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "TechnologyTargetingError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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 device category targeting feature is not enabled. - /// - DEVICE_CATEGORY_TARGETING_FEATURE_NOT_ENABLED = 4, - /// 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.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class TeamError : ApiError { - private TeamErrorReason reasonField; - private bool reasonFieldSpecified; - - /// The error reason represented by an enum. + /// The ID of the ActivityGroup that this Activity belongs to. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public TeamErrorReason reason { + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public int activityGroupId { get { - return this.reasonField; + return this.activityGroupIdField; } set { - this.reasonField = value; - this.reasonSpecified = true; + this.activityGroupIdField = value; + this.activityGroupIdSpecified = 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 activityGroupIdSpecified { get { - return this.reasonFieldSpecified; + return this.activityGroupIdFieldSpecified; } set { - this.reasonFieldSpecified = value; + this.activityGroupIdFieldSpecified = value; } } - } - - /// The reasons for the target error. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "TeamError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum TeamErrorReason { - /// User cannot use this entity because it is not on any of the user's teams. - /// - 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, - /// The all entities team access type cannot be overridden. - /// - ALL_TEAM_ACCESS_OVERRIDE_NOT_ALLOWED = 5, - /// 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. + /// The name of the Activity. This attribute is required and has a + /// maximum length of 255 characters. /// - UNKNOWN = 6, - } - - - /// Errors associated with set-top box line items. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class SetTopBoxLineItemError : ApiError { - private SetTopBoxLineItemErrorReason reasonField; + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public string name { + get { + return this.nameField; + } + set { + this.nameField = value; + } + } - private bool reasonFieldSpecified; + /// The URL of the webpage where the tags from this activity will be placed. This + /// attribute is optional. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 3)] + public string expectedURL { + get { + return this.expectedURLField; + } + set { + this.expectedURLField = value; + } + } - /// The error reason represented by an enum. + /// The status of this activity. This attribute is readonly. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public SetTopBoxLineItemErrorReason reason { + [System.Xml.Serialization.XmlElementAttribute(Order = 4)] + public ActivityStatus 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; } } - } - - /// Reason for set-top box error. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "SetTopBoxLineItemError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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. - /// - 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. + /// The activity type. This attribute is optional and defaults to Activity.Type#PAGE_VIEWS /// - 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.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class AudienceSegmentError : ApiError { - private AudienceSegmentErrorReason reasonField; - - private bool reasonFieldSpecified; - - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public AudienceSegmentErrorReason reason { + [System.Xml.Serialization.XmlElementAttribute(Order = 5)] + public ActivityType type { get { - return this.reasonField; + return this.typeField; } set { - this.reasonField = value; - this.reasonSpecified = 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 reasonSpecified { + public bool typeSpecified { get { - return this.reasonFieldSpecified; + return this.typeFieldSpecified; } set { - this.reasonFieldSpecified = value; + this.typeFieldSpecified = value; } } } - /// Reason of the given AudienceSegmentError. + /// The activity status. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AudienceSegmentError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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. + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "Activity.Status", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum ActivityStatus { + ACTIVE = 0, + INACTIVE = 1, + } + + + /// The activity type. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "Activity.Type", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum ActivityType { + /// Tracks conversions for each visit to a webpage. This is a counter type. /// - INVALID_AUDIENCE_SEGMENT_CUSTOM_KEY_NAME = 11, - /// The given custom value cannot be part of audience segment rule due to - /// unsupported characters. + 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. /// - INVALID_AUDIENCE_SEGMENT_CUSTOM_VALUE_NAME = 12, - /// Broad-match custom value cannot be part of audience segment rule. + 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. /// - INVALID_AUDIENCE_SEGMENT_CUSTOM_VALUE_MATCH_TYPE = 13, - /// Audience segment rule cannot contain itself. + 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. /// - INVALID_NESTED_FIRST_PARTY_AUDIENCE_SEGMENT = 14, - /// Audience segment rule cannot contain a nested third-party segment. + 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. /// - INVALID_NESTED_THIRD_PARTY_AUDIENCE_SEGMENT = 15, - /// Audience segment rule cannot contain a nested inactive segment. + TRANSACTIONS = 4, + /// Tracks conversions where the user has installed an iOS application. This is a + /// counter type. /// - INACTIVE_NESTED_AUDIENCE_SEGMENT = 16, - /// An error occured when purchasing global licenses. + IOS_APPLICATION_DOWNLOADS = 5, + /// Tracks conversions where the user has installed an Android application. This is + /// a counter type. /// - AUDIENCE_SEGMENT_GLOBAL_LICENSE_ERROR = 17, + ANDROID_APPLICATION_DOWNLOADS = 6, /// The value returned if the actual value is not exposed by the requested API /// version. /// - UNKNOWN = 18, + UNKNOWN = 7, } - /// Lists all errors associated with LineItem's reservation details. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ReservationDetailsError : ApiError { - private ReservationDetailsErrorReason reasonField; + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", ConfigurationName = "Google.Api.Ads.AdManager.v201908.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.v201908.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); - private bool reasonFieldSpecified; + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + System.Threading.Tasks.Task createActivitiesAsync(Wrappers.ActivityService.createActivitiesRequest request); - /// The error reason represented by an enum. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public ReservationDetailsErrorReason 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.v201908.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v201908.ActivityPage getActivitiesByStatement(Google.Api.Ads.AdManager.v201908.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 getActivitiesByStatementAsync(Google.Api.Ads.AdManager.v201908.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.v201908.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); - /// The reasons for the target error. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ReservationDetailsError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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, + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + System.Threading.Tasks.Task updateActivitiesAsync(Wrappers.ActivityService.updateActivitiesRequest request); } - /// Caused by supplying a value for an object attribute that does not conform to a - /// documented valid regular expression. + /// Captures a page of Activity objects. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class RegExError : ApiError { - private RegExErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class ActivityPage { + private int totalResultSetSizeField; - private bool reasonFieldSpecified; + private bool totalResultSetSizeFieldSpecified; - /// The error reason represented by an enum. + private int startIndexField; + + private bool startIndexFieldSpecified; + + private Activity[] resultsField; + + /// The size of the total result set to which this page belongs. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public RegExErrorReason 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.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "RegExError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ProgrammaticError : ApiError { - private ProgrammaticErrorReason 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 ProgrammaticErrorReason 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 activities contained within this page. + /// + [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] + public Activity[] results { + get { + return this.resultsField; + } + set { + this.resultsField = value; } } } - /// Possible error reasons for a programmatic error. + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + public interface ActivityServiceInterfaceChannel : Google.Api.Ads.AdManager.v201908.ActivityServiceInterface, System.ServiceModel.IClientChannel + { + } + + + /// 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.

///
- [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ProgrammaticError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum ProgrammaticErrorReason { - /// Audience extension is not supported by programmatic line items. - /// - AUDIENCE_EXTENSION_NOT_SUPPORTED = 0, - /// Auto extension days is not supported by programmatic line items. + [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. /// - AUTO_EXTENSION_DAYS_NOT_SUPPORTED = 1, - /// Video is currently not supported. + public ActivityService() { + } + + /// Creates a new instance of the class. /// - VIDEO_NOT_SUPPORTED = 2, - /// Roadblocking is not supported by programmatic line items. + public ActivityService(string endpointConfigurationName) + : base(endpointConfigurationName) { + } + + /// Creates a new instance of the class. /// - ROADBLOCKING_NOT_SUPPORTED = 3, - /// Programmatic line items do not support CreativeRotationType#SEQUENTIAL. + public ActivityService(string endpointConfigurationName, string remoteAddress) + : base(endpointConfigurationName, remoteAddress) { + } + + /// Creates a new instance of the class. /// - INVALID_CREATIVE_ROTATION = 4, - /// Programmatic line items only support LineItemType#STANDARD and LineItemType#SPONSORSHIP if the relevant - /// feature is on. + public ActivityService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) + : base(endpointConfigurationName, remoteAddress) { + } + + /// Creates a new instance of the class. /// - 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, + 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.v201908.ActivityServiceInterface.createActivities(Wrappers.ActivityService.createActivitiesRequest request) { + return base.Channel.createActivities(request); + } + + /// Creates a new Activity objects. + /// to be created. + /// the created activities with its IDs filled in. + public virtual Google.Api.Ads.AdManager.v201908.Activity[] createActivities(Google.Api.Ads.AdManager.v201908.Activity[] activities) { + Wrappers.ActivityService.createActivitiesRequest inValue = new Wrappers.ActivityService.createActivitiesRequest(); + inValue.activities = activities; + Wrappers.ActivityService.createActivitiesResponse retVal = ((Google.Api.Ads.AdManager.v201908.ActivityServiceInterface)(this)).createActivities(inValue); + return retVal.rval; + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201908.ActivityServiceInterface.createActivitiesAsync(Wrappers.ActivityService.createActivitiesRequest request) { + return base.Channel.createActivitiesAsync(request); + } + + public virtual System.Threading.Tasks.Task createActivitiesAsync(Google.Api.Ads.AdManager.v201908.Activity[] activities) { + Wrappers.ActivityService.createActivitiesRequest inValue = new Wrappers.ActivityService.createActivitiesRequest(); + inValue.activities = activities; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201908.ActivityServiceInterface)(this)).createActivitiesAsync(inValue)).Result.rval); + } + + /// 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
+ ///
a statement used to filter a set of + /// activities. + /// the activities that match the given filter. + public virtual Google.Api.Ads.AdManager.v201908.ActivityPage getActivitiesByStatement(Google.Api.Ads.AdManager.v201908.Statement filterStatement) { + return base.Channel.getActivitiesByStatement(filterStatement); + } + + public virtual System.Threading.Tasks.Task getActivitiesByStatementAsync(Google.Api.Ads.AdManager.v201908.Statement filterStatement) { + return base.Channel.getActivitiesByStatementAsync(filterStatement); + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + Wrappers.ActivityService.updateActivitiesResponse Google.Api.Ads.AdManager.v201908.ActivityServiceInterface.updateActivities(Wrappers.ActivityService.updateActivitiesRequest request) { + return base.Channel.updateActivities(request); + } + + /// Updates the specified Activity objects. + /// to be updated. + /// the updated activities. + public virtual Google.Api.Ads.AdManager.v201908.Activity[] updateActivities(Google.Api.Ads.AdManager.v201908.Activity[] activities) { + Wrappers.ActivityService.updateActivitiesRequest inValue = new Wrappers.ActivityService.updateActivitiesRequest(); + inValue.activities = activities; + Wrappers.ActivityService.updateActivitiesResponse retVal = ((Google.Api.Ads.AdManager.v201908.ActivityServiceInterface)(this)).updateActivities(inValue); + return retVal.rval; + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201908.ActivityServiceInterface.updateActivitiesAsync(Wrappers.ActivityService.updateActivitiesRequest request) { + return base.Channel.updateActivitiesAsync(request); + } + + public virtual System.Threading.Tasks.Task updateActivitiesAsync(Google.Api.Ads.AdManager.v201908.Activity[] activities) { + Wrappers.ActivityService.updateActivitiesRequest inValue = new Wrappers.ActivityService.updateActivitiesRequest(); + inValue.activities = activities; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201908.ActivityServiceInterface)(this)).updateActivitiesAsync(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/v201908", IsWrapped = true)] + public partial class createLineItemCreativeAssociationsRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("lineItemCreativeAssociations")] + public Google.Api.Ads.AdManager.v201908.LineItemCreativeAssociation[] lineItemCreativeAssociations; + /// Creates a new instance of the class. + public createLineItemCreativeAssociationsRequest() { + } - /// Lists all errors associated with orders. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class OrderError : ApiError { - private OrderErrorReason reasonField; + /// Creates a new instance of the class. + public createLineItemCreativeAssociationsRequest(Google.Api.Ads.AdManager.v201908.LineItemCreativeAssociation[] lineItemCreativeAssociations) { + this.lineItemCreativeAssociations = lineItemCreativeAssociations; + } + } - private bool reasonFieldSpecified; - /// The error reason represented by an enum. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public OrderErrorReason reason { - get { - return this.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 = "createLineItemCreativeAssociationsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201908", IsWrapped = true)] + public partial class createLineItemCreativeAssociationsResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("rval")] + public Google.Api.Ads.AdManager.v201908.LineItemCreativeAssociation[] rval; + + /// Creates a new instance of the class. + public createLineItemCreativeAssociationsResponse() { } - set { - this.reasonField = value; - this.reasonSpecified = true; + + /// Creates a new instance of the class. + public createLineItemCreativeAssociationsResponse(Google.Api.Ads.AdManager.v201908.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; + + [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/v201908", IsWrapped = true)] + public partial class getPreviewUrlsForNativeStylesRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] + public long lineItemId; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 1)] + public long creativeId; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 2)] + public string siteUrl; + + /// Creates a new instance of the class. + public getPreviewUrlsForNativeStylesRequest() { } - set { - this.reasonFieldSpecified = value; + + /// Creates a new instance of the class. + public getPreviewUrlsForNativeStylesRequest(long lineItemId, long creativeId, string siteUrl) { + this.lineItemId = lineItemId; + this.creativeId = creativeId; + this.siteUrl = siteUrl; } } - } - /// The reasons for the target error. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "OrderError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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. - /// - 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, - } + [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/v201908", IsWrapped = true)] + public partial class getPreviewUrlsForNativeStylesResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("rval")] + public Google.Api.Ads.AdManager.v201908.CreativeNativeStylePreview[] rval; + /// Creates a new instance of the class. + public getPreviewUrlsForNativeStylesResponse() { + } - /// Lists all errors associated with performing actions on Order - /// objects. + /// Creates a new instance of the class. + public getPreviewUrlsForNativeStylesResponse(Google.Api.Ads.AdManager.v201908.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/v201908", IsWrapped = true)] + public partial class updateLineItemCreativeAssociationsRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("lineItemCreativeAssociations")] + public Google.Api.Ads.AdManager.v201908.LineItemCreativeAssociation[] lineItemCreativeAssociations; + + /// Creates a new instance of the class. + public updateLineItemCreativeAssociationsRequest() { + } + + /// Creates a new instance of the class. + public updateLineItemCreativeAssociationsRequest(Google.Api.Ads.AdManager.v201908.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/v201908", IsWrapped = true)] + public partial class updateLineItemCreativeAssociationsResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("rval")] + public Google.Api.Ads.AdManager.v201908.LineItemCreativeAssociation[] rval; + + /// Creates a new instance of the class. + public updateLineItemCreativeAssociationsResponse() { + } + + /// Creates a new instance of the class. + public updateLineItemCreativeAssociationsResponse(Google.Api.Ads.AdManager.v201908.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.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class OrderActionError : ApiError { - private OrderActionErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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 OrderActionErrorReason 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; } } - } - - /// The reasons for the target error. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "OrderActionError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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. - /// - 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, + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public Stats value { + get { + return this.valueField; + } + set { + this.valueField = value; + } + } } - /// Lists all errors for executing operations on line items + /// Contains statistics such as impressions, clicks delivered and cost for LineItemCreativeAssociation objects. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class LineItemOperationError : ApiError { - private LineItemOperationErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class LineItemCreativeAssociationStats { + private Stats statsField; - private bool reasonFieldSpecified; + private Long_StatsMapEntry[] creativeSetStatsField; - /// The error reason represented by an enum. + private Money costInOrderCurrencyField; + + /// A Stats object that holds delivered impressions and clicks + /// statistics. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public LineItemOperationErrorReason reason { + public Stats stats { get { - return this.reasonField; + return this.statsField; } set { - this.reasonField = value; - this.reasonSpecified = true; + this.statsField = value; } } - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { + /// A map containing Stats objects for each creative belonging + /// to a creative set, null for non creative set associations. + /// + [System.Xml.Serialization.XmlElementAttribute("creativeSetStats", Order = 1)] + public Long_StatsMapEntry[] creativeSetStats { get { - return this.reasonFieldSpecified; + return this.creativeSetStatsField; } set { - this.reasonFieldSpecified = value; + this.creativeSetStatsField = value; } } - } - - /// The reasons for the target error. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "LineItemOperationError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum LineItemOperationErrorReason { - /// The operation is not allowed due to lack of permissions. - /// - NOT_ALLOWED = 0, - /// The operation is not applicable for the current state of the LineItem. - /// - 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_INVALID_COMPANY_CREDIT_STATUS = 7, - /// The value returned if the actual value is not exposed by the requested API - /// version. + /// The revenue generated thus far by the creative from its association with the + /// particular line item in the publisher's currency. /// - UNKNOWN = 8, + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public Money costInOrderCurrency { + get { + return this.costInOrderCurrencyField; + } + set { + this.costInOrderCurrencyField = value; + } + } } - /// Lists all errors associated with LineItem start and end dates. + /// 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.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class LineItemFlightDateError : ApiError { - private LineItemFlightDateErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class LineItemCreativeAssociation { + private long lineItemIdField; - private bool reasonFieldSpecified; + private bool lineItemIdFieldSpecified; - /// The error reason represented by an enum. + 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; + + 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 LineItemFlightDateErrorReason 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.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "LineItemFlightDateError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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. - /// - UNKNOWN = 4, - } - - - /// A catch-all error that lists all generic errors associated with LineItem. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class LineItemError : ApiError { - private LineItemErrorReason 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 master creative.

///
- [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public LineItemErrorReason 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; } } - } - - /// The reasons for the target error. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "LineItemError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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. - /// - UPDATE_RESERVATION_NOT_ALLOWED = 1, - /// Roadblocking to display all creatives is not allowed. - /// - ALL_ROADBLOCK_NOT_ALLOWED = 2, - /// Roadblocking to display all master and companion creative set is not allowed. - /// - CREATIVE_SET_ROADBLOCK_NOT_ALLOWED = 3, - /// Fractional percentage is not allowed. - /// - FRACTIONAL_PERCENTAGE_NOT_ALLOWED = 4, - /// For certain LineItem configurations discounts are not allowed. - /// - 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, - /// 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, - /// The value returned if the actual value is not exposed by the requested API - /// version. + /// 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.

///
- UNKNOWN = 50, - } - - - /// Errors specific to associating activities to line items. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class LineItemActivityAssociationError : ApiError { - private LineItemActivityAssociationErrorReason reasonField; + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public long creativeSetId { + get { + return this.creativeSetIdField; + } + set { + this.creativeSetIdField = value; + this.creativeSetIdSpecified = true; + } + } - private bool reasonFieldSpecified; + /// 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 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 LineItemActivityAssociationErrorReason 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; } } - } - - /// The reasons for the target error. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "LineItemActivityAssociationError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum LineItemActivityAssociationErrorReason { - /// When associating an activity to a line item the activity must belong to the same - /// advertiser as the line item. - /// - INVALID_ACTIVITY_FOR_ADVERTISER = 0, - /// Activities can only be associated with line items of CostType.CPA. - /// - INVALID_COST_TYPE_FOR_ASSOCIATION = 1, - /// The value returned if the actual value is not exposed by the requested API - /// version. + /// 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. /// - UNKNOWN = 2, - } - - - /// Lists the generic errors associated with AdUnit objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class InventoryUnitError : ApiError { - private InventoryUnitErrorReason reasonField; - - private bool reasonFieldSpecified; - - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public InventoryUnitErrorReason reason { + [System.Xml.Serialization.XmlElementAttribute(Order = 4)] + public int sequentialCreativeRotationIndex { get { - return this.reasonField; + return this.sequentialCreativeRotationIndexField; } set { - this.reasonField = value; - this.reasonSpecified = true; + this.sequentialCreativeRotationIndexField = value; + this.sequentialCreativeRotationIndexSpecified = 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 sequentialCreativeRotationIndexSpecified { get { - return this.reasonFieldSpecified; + return this.sequentialCreativeRotationIndexFieldSpecified; } set { - this.reasonFieldSpecified = value; + this.sequentialCreativeRotationIndexFieldSpecified = value; } } - } - - /// Possible reasons for the error. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "InventoryUnitError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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. + /// Overrides the value set for LineItem#startDateTime. This value is optional + /// and is only valid for Ad Manager 360 networks. /// - UNKNOWN = 4, - } - - - /// Lists all inventory errors caused by associating a line item with a targeting - /// expression. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class InventoryTargetingError : ApiError { - private InventoryTargetingErrorReason reasonField; - - private bool reasonFieldSpecified; + [System.Xml.Serialization.XmlElementAttribute(Order = 5)] + public DateTime startDateTime { + get { + return this.startDateTimeField; + } + set { + this.startDateTimeField = value; + } + } - /// The error reason represented by an enum. + /// 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 = 0)] - public InventoryTargetingErrorReason reason { + [System.Xml.Serialization.XmlElementAttribute(Order = 6)] + public StartDateTimeType startDateTimeType { get { - return this.reasonField; + return this.startDateTimeTypeField; } set { - this.reasonField = value; - this.reasonSpecified = true; + this.startDateTimeTypeField = value; + this.startDateTimeTypeSpecified = 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 startDateTimeTypeSpecified { get { - return this.reasonFieldSpecified; + return this.startDateTimeTypeFieldSpecified; } set { - this.reasonFieldSpecified = value; + this.startDateTimeTypeFieldSpecified = value; } } - } - - /// The reasons for the target error. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "InventoryTargetingError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum InventoryTargetingErrorReason { - /// At least one placement or inventory unit is required + /// Overrides LineItem#endDateTime. This value is + /// optional and is only valid for Ad Manager 360 networks. /// - AT_LEAST_ONE_PLACEMENT_OR_INVENTORY_UNIT_REQUIRED = 0, - /// The same inventory unit or placement cannot be targeted and excluded at the same - /// time + [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. /// - 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, - } - - - /// Errors associated with line items with GRP settings. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class GrpSettingsError : ApiError { - private GrpSettingsErrorReason reasonField; + [System.Xml.Serialization.XmlElementAttribute(Order = 8)] + public string destinationUrl { + get { + return this.destinationUrlField; + } + set { + this.destinationUrlField = value; + } + } - private bool reasonFieldSpecified; + /// 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 error reason represented by an enum. + /// The status of the association. This attribute is read-only. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public GrpSettingsErrorReason reason { + [System.Xml.Serialization.XmlElementAttribute(Order = 10)] + public LineItemCreativeAssociationStatus 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; + } + } + + /// 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; } } } - /// Reason for GRP settings error. + /// Describes the status of the association. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "GrpSettingsError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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, - /// GRP settings are only supported for video line items. - /// - LINE_ITEM_ENVIRONMENT_TYPE_NOT_SUPPORTED = 1, - /// 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 cannot be set once the line item has - /// started serving. + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "LineItemCreativeAssociation.Status", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum LineItemCreativeAssociationStatus { + /// The association is active and the associated Creative can + /// be served. /// - CANNOT_SET_GRP_AUDIENCE_GOAL = 17, - /// Impression goal based on GRP audience cannot be removed once the line item has - /// started serving. + ACTIVE = 0, + /// The association is active but the associated Creative may + /// not be served, because its size is not targeted by the line item. /// - CANNOT_REMOVE_GRP_AUDIENCE_GOAL = 18, - /// Unsupported geographic location targeted for line item with GRP audience goal. + NOT_SERVING = 1, + /// The association is inactive and the associated Creative + /// is ineligible for being served. /// - UNSUPPORTED_GEO_TARGETING = 12, + INACTIVE = 2, /// The value returned if the actual value is not exposed by the requested API /// version. /// - UNKNOWN = 13, + UNKNOWN = 4, } - /// Lists all errors associated with geographical targeting for a LineItem. + /// Lists all errors for executing operations on line item-to-creative associations /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class GeoTargetingError : ApiError { - private GeoTargetingErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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 GeoTargetingErrorReason reason { + public LineItemCreativeAssociationOperationErrorReason reason { get { return this.reasonField; } @@ -31715,41 +31610,38 @@ public bool reasonSpecified { /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "GeoTargetingError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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. + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "LineItemCreativeAssociationOperationError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum LineItemCreativeAssociationOperationErrorReason { + /// The operation is not allowed due to permissions /// - EXCLUDED_LOCATIONS_CANNOT_HAVE_CHILDREN_TARGETED = 1, - /// Postal codes cannot be excluded. + NOT_ALLOWED = 0, + /// The operation is not applicable to the current state /// - POSTAL_CODES_CANNOT_BE_EXCLUDED = 2, - /// Indicates that location targeting is not allowed. + NOT_APPLICABLE = 1, + /// Cannot activate an invalid creative /// - UNTARGETABLE_LOCATION = 3, + CANNOT_ACTIVATE_INVALID_CREATIVE = 2, /// The value returned if the actual value is not exposed by the requested API /// version. /// - UNKNOWN = 4, + UNKNOWN = 3, } - /// Targeting validation errors that can be used by different targeting types. + /// Errors associated with generation of creative preview URIs. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class GenericTargetingError : ApiError { - private GenericTargetingErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class CreativePreviewError : ApiError { + private CreativePreviewErrorReason reasonField; private bool reasonFieldSpecified; [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public GenericTargetingErrorReason reason { + public CreativePreviewErrorReason reason { get { return this.reasonField; } @@ -31774,1405 +31666,1570 @@ public bool reasonSpecified { } - /// The reasons for the target error. - /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "GenericTargetingError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum GenericTargetingErrorReason { - /// Both including and excluding sibling criteria is disallowed. + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CreativePreviewError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum CreativePreviewErrorReason { + /// The creative cannot be previewed on this page. /// - CONFLICTING_INCLUSION_OR_EXCLUSION_OF_SIBLINGS = 0, - /// Including descendants of excluded criteria is disallowed. + CANNOT_GENERATE_PREVIEW_URL = 0, + /// Preview URLs for native creatives must be retrieved with LineItemCreativeAssociationService#getPreviewUrlsForNativeStyles. /// - INCLUDING_DESCENDANTS_OF_EXCLUDED_CRITERIA = 1, + CANNOT_GENERATE_PREVIEW_URL_FOR_NATIVE_CREATIVES = 2, /// The value returned if the actual value is not exposed by the requested API /// version. /// - UNKNOWN = 2, + UNKNOWN = 1, } - /// Lists all errors associated with frequency caps. + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", ConfigurationName = "Google.Api.Ads.AdManager.v201908.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.v201908.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.v201908.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v201908.LineItemCreativeAssociationPage getLineItemCreativeAssociationsByStatement(Google.Api.Ads.AdManager.v201908.Statement filterStatement); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task getLineItemCreativeAssociationsByStatementAsync(Google.Api.Ads.AdManager.v201908.Statement filterStatement); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201908.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.v201908.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.v201908.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v201908.UpdateResult performLineItemCreativeAssociationAction(Google.Api.Ads.AdManager.v201908.LineItemCreativeAssociationAction lineItemCreativeAssociationAction, Google.Api.Ads.AdManager.v201908.Statement filterStatement); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task performLineItemCreativeAssociationActionAsync(Google.Api.Ads.AdManager.v201908.LineItemCreativeAssociationAction lineItemCreativeAssociationAction, Google.Api.Ads.AdManager.v201908.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.v201908.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. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class FrequencyCapError : ApiError { - private FrequencyCapErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class LineItemCreativeAssociationPage { + private int totalResultSetSizeField; - private bool reasonFieldSpecified; + private bool totalResultSetSizeFieldSpecified; - /// The error reason represented by an enum. + 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 FrequencyCapErrorReason 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; } } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "FrequencyCapError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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, - } - - - /// Errors that can result from a forecast request. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ForecastError : ApiError { - private ForecastErrorReason reasonField; - - private bool reasonFieldSpecified; - /// The reason for the forecast error. + /// The absolute index in the total result set on which this page begins. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public ForecastErrorReason 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; } } - } - - /// Reason why a forecast could not be retrieved. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ForecastError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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 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 = 7, + [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] + public LineItemCreativeAssociation[] results { + get { + return this.resultsField; + } + set { + this.resultsField = value; + } + } } - /// Lists all errors associated with day-part targeting for a line item. + /// Represents the NativeStyle of a Creative and its corresponding preview URL. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class DayPartTargetingError : ApiError { - private DayPartTargetingErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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 DayPartTargetingErrorReason 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; + } + } + + /// 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; } } } - /// The reasons for the target error. + /// 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.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "DayPartTargetingError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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. - /// - UNKNOWN = 4, + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public abstract partial class LineItemCreativeAssociationAction { } - /// Lists all date time range errors caused by associating a line item with a - /// targeting expression. + /// The action used for deleting LineItemCreativeAssociation objects. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class DateTimeRangeTargetingError : ApiError { - private DateTimeRangeTargetingErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class DeleteLineItemCreativeAssociations : LineItemCreativeAssociationAction { + } - private bool reasonFieldSpecified; - /// The error reason represented by an enum. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public DateTimeRangeTargetingErrorReason 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; - } - } - } - - - /// ApiErrorReason enum for date time range targeting - /// error. + /// The action used for deactivating LineItemCreativeAssociation objects. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "DateTimeRangeTargetingError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum DateTimeRangeTargetingErrorReason { - /// No targeted ranges exists. - /// - EMPTY_RANGES = 0, - /// Type of lineitem is not sponsorship. - /// - NOT_SPONSORSHIP_LINEITEM = 1, - /// Past ranges are changed. - /// - PAST_RANGES_CHANGED = 2, - /// Targeted date time ranges overlap. - /// - RANGES_OVERLAP = 3, - /// 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, - /// 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, + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class CrossSellError : ApiError { - private CrossSellErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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.v201908.LineItemCreativeAssociationServiceInterface, 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#creativeSizes.

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 DFP 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() { } - /// 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 LineItemCreativeAssociationService(string endpointConfigurationName) + : base(endpointConfigurationName) { + } + + /// 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.v201908.LineItemCreativeAssociationServiceInterface.createLineItemCreativeAssociations(Wrappers.LineItemCreativeAssociationService.createLineItemCreativeAssociationsRequest request) { + return base.Channel.createLineItemCreativeAssociations(request); + } + + /// Creates new LineItemCreativeAssociation objects + /// the line item creative associations + /// to create + /// the created line item creative associations with their IDs filled + /// in + public virtual Google.Api.Ads.AdManager.v201908.LineItemCreativeAssociation[] createLineItemCreativeAssociations(Google.Api.Ads.AdManager.v201908.LineItemCreativeAssociation[] lineItemCreativeAssociations) { + Wrappers.LineItemCreativeAssociationService.createLineItemCreativeAssociationsRequest inValue = new Wrappers.LineItemCreativeAssociationService.createLineItemCreativeAssociationsRequest(); + inValue.lineItemCreativeAssociations = lineItemCreativeAssociations; + Wrappers.LineItemCreativeAssociationService.createLineItemCreativeAssociationsResponse retVal = ((Google.Api.Ads.AdManager.v201908.LineItemCreativeAssociationServiceInterface)(this)).createLineItemCreativeAssociations(inValue); + return retVal.rval; + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201908.LineItemCreativeAssociationServiceInterface.createLineItemCreativeAssociationsAsync(Wrappers.LineItemCreativeAssociationService.createLineItemCreativeAssociationsRequest request) { + return base.Channel.createLineItemCreativeAssociationsAsync(request); + } + + public virtual System.Threading.Tasks.Task createLineItemCreativeAssociationsAsync(Google.Api.Ads.AdManager.v201908.LineItemCreativeAssociation[] lineItemCreativeAssociations) { + Wrappers.LineItemCreativeAssociationService.createLineItemCreativeAssociationsRequest inValue = new Wrappers.LineItemCreativeAssociationService.createLineItemCreativeAssociationsRequest(); + inValue.lineItemCreativeAssociations = lineItemCreativeAssociations; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201908.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
+ ///
a Publisher Query Language statement used to + /// filter a set of line item creative associations + /// the line item creative associations that match the given + /// filter + public virtual Google.Api.Ads.AdManager.v201908.LineItemCreativeAssociationPage getLineItemCreativeAssociationsByStatement(Google.Api.Ads.AdManager.v201908.Statement filterStatement) { + return base.Channel.getLineItemCreativeAssociationsByStatement(filterStatement); + } + + public virtual System.Threading.Tasks.Task getLineItemCreativeAssociationsByStatementAsync(Google.Api.Ads.AdManager.v201908.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. + /// the ID of the line item, which must already + /// exist + /// the ID of the creative, which must already + /// exist + /// the URL of the site that the creative should be previewed + /// in + /// a URL that references the specified site URL with the specified + /// creative served to it + 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.v201908.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. + /// the ID of the line item, which must already + /// exist + /// the ID of the creative, which must already exist and + /// must be a native creative + /// the URL of the site that the creative should be previewed + /// in + /// the URLs that references the specified site URL and can be used to + /// preview the specified creative with the available native styles + public virtual Google.Api.Ads.AdManager.v201908.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.v201908.LineItemCreativeAssociationServiceInterface)(this)).getPreviewUrlsForNativeStyles(inValue); + return retVal.rval; + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201908.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.v201908.LineItemCreativeAssociationServiceInterface)(this)).getPreviewUrlsForNativeStylesAsync(inValue)).Result.rval); + } + + /// Performs actions on LineItemCreativeAssociation objects that + /// match the given Statement#query. + /// the action to perform + /// a Publisher Query Language statement used to + /// filter a set of line item creative associations + /// the result of the action performed + public virtual Google.Api.Ads.AdManager.v201908.UpdateResult performLineItemCreativeAssociationAction(Google.Api.Ads.AdManager.v201908.LineItemCreativeAssociationAction lineItemCreativeAssociationAction, Google.Api.Ads.AdManager.v201908.Statement filterStatement) { + return base.Channel.performLineItemCreativeAssociationAction(lineItemCreativeAssociationAction, filterStatement); + } + + public virtual System.Threading.Tasks.Task performLineItemCreativeAssociationActionAsync(Google.Api.Ads.AdManager.v201908.LineItemCreativeAssociationAction lineItemCreativeAssociationAction, Google.Api.Ads.AdManager.v201908.Statement filterStatement) { + return base.Channel.performLineItemCreativeAssociationActionAsync(lineItemCreativeAssociationAction, filterStatement); + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + Wrappers.LineItemCreativeAssociationService.updateLineItemCreativeAssociationsResponse Google.Api.Ads.AdManager.v201908.LineItemCreativeAssociationServiceInterface.updateLineItemCreativeAssociations(Wrappers.LineItemCreativeAssociationService.updateLineItemCreativeAssociationsRequest request) { + return base.Channel.updateLineItemCreativeAssociations(request); + } + + /// Updates the specified LineItemCreativeAssociation objects + /// the line item creative associations + /// to update + /// the updated line item creative associations + public virtual Google.Api.Ads.AdManager.v201908.LineItemCreativeAssociation[] updateLineItemCreativeAssociations(Google.Api.Ads.AdManager.v201908.LineItemCreativeAssociation[] lineItemCreativeAssociations) { + Wrappers.LineItemCreativeAssociationService.updateLineItemCreativeAssociationsRequest inValue = new Wrappers.LineItemCreativeAssociationService.updateLineItemCreativeAssociationsRequest(); + inValue.lineItemCreativeAssociations = lineItemCreativeAssociations; + Wrappers.LineItemCreativeAssociationService.updateLineItemCreativeAssociationsResponse retVal = ((Google.Api.Ads.AdManager.v201908.LineItemCreativeAssociationServiceInterface)(this)).updateLineItemCreativeAssociations(inValue); + return retVal.rval; + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201908.LineItemCreativeAssociationServiceInterface.updateLineItemCreativeAssociationsAsync(Wrappers.LineItemCreativeAssociationService.updateLineItemCreativeAssociationsRequest request) { + return base.Channel.updateLineItemCreativeAssociationsAsync(request); + } + + public virtual System.Threading.Tasks.Task updateLineItemCreativeAssociationsAsync(Google.Api.Ads.AdManager.v201908.LineItemCreativeAssociation[] lineItemCreativeAssociations) { + Wrappers.LineItemCreativeAssociationService.updateLineItemCreativeAssociationsRequest inValue = new Wrappers.LineItemCreativeAssociationService.updateLineItemCreativeAssociationsRequest(); + inValue.lineItemCreativeAssociations = lineItemCreativeAssociations; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201908.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/v201908", IsWrapped = true)] + public partial class createLineItemsRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("lineItems")] + public Google.Api.Ads.AdManager.v201908.LineItem[] lineItems; + + /// Creates a new instance of the + /// class. + public createLineItemsRequest() { } - set { - this.reasonFieldSpecified = value; + + /// Creates a new instance of the + /// class. + public createLineItemsRequest(Google.Api.Ads.AdManager.v201908.LineItem[] lineItems) { + this.lineItems = lineItems; } } - } - /// The reason of the error. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CrossSellError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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 content provider publisher feature 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. - /// - 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 = 13, - } + [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/v201908", IsWrapped = true)] + public partial class createLineItemsResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("rval")] + public Google.Api.Ads.AdManager.v201908.LineItem[] rval; + /// Creates a new instance of the + /// class. + public createLineItemsResponse() { + } - /// Lists all errors related to ContentMetadataTargeting. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ContentMetadataTargetingError : ApiError { - private ContentMetadataTargetingErrorReason reasonField; + /// Creates a new instance of the + /// class. + public createLineItemsResponse(Google.Api.Ads.AdManager.v201908.LineItem[] rval) { + this.rval = rval; + } + } - private bool reasonFieldSpecified; - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public ContentMetadataTargetingErrorReason reason { - get { - return this.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 = "updateLineItems", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201908", IsWrapped = true)] + public partial class updateLineItemsRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("lineItems")] + public Google.Api.Ads.AdManager.v201908.LineItem[] lineItems; + + /// Creates a new instance of the + /// class. + public updateLineItemsRequest() { } - set { - this.reasonField = value; - this.reasonSpecified = true; + + /// Creates a new instance of the + /// class. + public updateLineItemsRequest(Google.Api.Ads.AdManager.v201908.LineItem[] lineItems) { + this.lineItems = lineItems; } } - /// 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 = "updateLineItemsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201908", IsWrapped = true)] + public partial class updateLineItemsResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("rval")] + public Google.Api.Ads.AdManager.v201908.LineItem[] rval; + + /// Creates a new instance of the + /// class. + public updateLineItemsResponse() { } - set { - this.reasonFieldSpecified = value; + + /// Creates a new instance of the + /// class. + public updateLineItemsResponse(Google.Api.Ads.AdManager.v201908.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/v201908", ConfigurationName = "Google.Api.Ads.AdManager.v201908.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.v201908.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); - /// The reasons for the metadata targeting error. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ContentMetadataTargetingError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum ContentMetadataTargetingErrorReason { - /// One or more of the values specified in a do not belong to the keys - /// defined in any of the hierarchies on the network. - /// - VALUES_DO_NOT_BELONG_TO_A_HIERARCHY = 0, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 1, + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201908.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.v201908.LineItemPage getLineItemsByStatement(Google.Api.Ads.AdManager.v201908.Statement filterStatement); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task getLineItemsByStatementAsync(Google.Api.Ads.AdManager.v201908.Statement filterStatement); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201908.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")] + bool hasCustomPacingCurve(long lineItemId); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task hasCustomPacingCurveAsync(long lineItemId); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201908.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.v201908.UpdateResult performLineItemAction(Google.Api.Ads.AdManager.v201908.LineItemAction lineItemAction, Google.Api.Ads.AdManager.v201908.Statement filterStatement); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task performLineItemActionAsync(Google.Api.Ads.AdManager.v201908.LineItemAction lineItemAction, Google.Api.Ads.AdManager.v201908.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.v201908.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); } - /// Lists all errors due to Company#creditStatus. + /// Captures a page of LineItem objects. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class CompanyCreditStatusError : ApiError { - private CompanyCreditStatusErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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 reasons for the target error. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CompanyCreditStatusError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ClickTrackingLineItemError : ApiError { - private ClickTrackingLineItemErrorReason 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 ClickTrackingLineItemErrorReason 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.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ClickTrackingLineItemError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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. + /// The collection of line items contained within this page. /// - UNKNOWN = 6, + [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] + public LineItem[] results { + get { + return this.resultsField; + } + set { + this.resultsField = value; + } + } } - /// Errors associated with audience extension enabled line items + /// 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.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class AudienceExtensionError : ApiError { - private AudienceExtensionErrorReason reasonField; - - private bool reasonFieldSpecified; - - /// The error reason represented by an enum. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public AudienceExtensionErrorReason 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/v201908")] + public abstract partial class LineItemAction { } - /// Specific audience extension error reasons. + /// The action used for unarchiving LineItem objects. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AudienceExtensionError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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/v201908")] + public partial class UnarchiveLineItems : LineItemAction { } - /// Lists the generic errors associated with AdUnit#adUnitCode. + /// The action used for resuming LineItem objects. /// + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ResumeAndOverbookLineItems))] [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class AdUnitCodeError : ApiError { - private AdUnitCodeErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class ResumeLineItems : LineItemAction { + private bool skipInventoryCheckField; - private bool reasonFieldSpecified; + 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 AdUnitCodeErrorReason 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 action used for resuming and overbooking LineItem + /// objects. + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AdUnitCodeError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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, 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/v201908")] + public partial class ResumeAndOverbookLineItems : ResumeLineItems { } - /// Errors related to ad rule slots. + /// The action used for reserving LineItem objects. /// + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ReserveAndOverbookLineItems))] [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class AdRuleSlotError : ApiError { - private AdRuleSlotErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class ReserveLineItems : LineItemAction { + private bool skipInventoryCheckField; - private bool reasonFieldSpecified; + 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 AdRuleSlotErrorReason 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 reason for AdRuleSlotErrors. + /// The action used for reserving and overbooking LineItem + /// objects. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AdRuleSlotError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 10, + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class ReserveAndOverbookLineItems : ReserveLineItems { } - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", ConfigurationName = "Google.Api.Ads.AdManager.v201808.ForecastServiceInterface")] - public interface ForecastServiceInterface - { - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201808.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.v201808.AvailabilityForecast getAvailabilityForecast(Google.Api.Ads.AdManager.v201808.ProspectiveLineItem lineItem, Google.Api.Ads.AdManager.v201808.AvailabilityForecastOptions forecastOptions); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getAvailabilityForecastAsync(Google.Api.Ads.AdManager.v201808.ProspectiveLineItem lineItem, Google.Api.Ads.AdManager.v201808.AvailabilityForecastOptions forecastOptions); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201808.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.v201808.AvailabilityForecast getAvailabilityForecastById(long lineItemId, Google.Api.Ads.AdManager.v201808.AvailabilityForecastOptions forecastOptions); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getAvailabilityForecastByIdAsync(long lineItemId, Google.Api.Ads.AdManager.v201808.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.v201808.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.v201808.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); + /// The action used for releasing LineItem objects. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class ReleaseLineItems : LineItemAction { } - /// Forecasting options for line item delivery forecasts. + /// The action used for pausing LineItem objects. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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.ignoredLineItemIdsField; - } - set { - this.ignoredLineItemIdsField = value; - } - } + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class PauseLineItems : LineItemAction { } - /// The forecast of delivery for a list of ProspectiveLineItem objects to be reserved at the - /// same time. + /// 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.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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.lineItemDeliveryForecastsField; - } - set { - this.lineItemDeliveryForecastsField = value; - } - } + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class DeleteLineItems : LineItemAction { } - /// The forecasted delivery of a ProspectiveLineItem. + /// The action used for archiving LineItem objects. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class LineItemDeliveryForecast { - private long lineItemIdField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class ArchiveLineItems : LineItemAction { + } - private bool lineItemIdFieldSpecified; - private long orderIdField; + /// The action used for activating LineItem objects. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class ActivateLineItems : LineItemAction { + } - private bool orderIdFieldSpecified; - private UnitType unitTypeField; + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + public interface LineItemServiceInterfaceChannel : Google.Api.Ads.AdManager.v201908.LineItemServiceInterface, System.ServiceModel.IClientChannel + { + } - private bool unitTypeFieldSpecified; - private long predictedDeliveryUnitsField; + /// 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 DFP 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() { + } - private bool predictedDeliveryUnitsFieldSpecified; + /// Creates a new instance of the class. + /// + public LineItemService(string endpointConfigurationName) + : base(endpointConfigurationName) { + } - private long deliveredUnitsField; + /// Creates a new instance of the class. + /// + public LineItemService(string endpointConfigurationName, string remoteAddress) + : base(endpointConfigurationName, remoteAddress) { + } - private bool deliveredUnitsFieldSpecified; + /// Creates a new instance of the class. + /// + public LineItemService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) + : base(endpointConfigurationName, remoteAddress) { + } - private long matchedUnitsField; + /// Creates a new instance of the class. + /// + public LineItemService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) + : base(binding, remoteAddress) { + } - private bool matchedUnitsFieldSpecified; + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + Wrappers.LineItemService.createLineItemsResponse Google.Api.Ads.AdManager.v201908.LineItemServiceInterface.createLineItems(Wrappers.LineItemService.createLineItemsRequest request) { + return base.Channel.createLineItems(request); + } - /// 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. + /// Creates new LineItem objects. + /// the line items to create + /// the created line items with their IDs filled in + public virtual Google.Api.Ads.AdManager.v201908.LineItem[] createLineItems(Google.Api.Ads.AdManager.v201908.LineItem[] lineItems) { + Wrappers.LineItemService.createLineItemsRequest inValue = new Wrappers.LineItemService.createLineItemsRequest(); + inValue.lineItems = lineItems; + Wrappers.LineItemService.createLineItemsResponse retVal = ((Google.Api.Ads.AdManager.v201908.LineItemServiceInterface)(this)).createLineItems(inValue); + return retVal.rval; + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201908.LineItemServiceInterface.createLineItemsAsync(Wrappers.LineItemService.createLineItemsRequest request) { + return base.Channel.createLineItemsAsync(request); + } + + public virtual System.Threading.Tasks.Task createLineItemsAsync(Google.Api.Ads.AdManager.v201908.LineItem[] lineItems) { + Wrappers.LineItemService.createLineItemsRequest inValue = new Wrappers.LineItemService.createLineItemsRequest(); + inValue.lineItems = lineItems; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201908.LineItemServiceInterface)(this)).createLineItemsAsync(inValue)).Result.rval); + } + + /// 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
Targeting LineItem#targeting
UnitsBought LineItem#unitsBought
+ ///
a Publisher Query Language statement used to + /// filter a set of line items. + /// the line items that match the given filter + public virtual Google.Api.Ads.AdManager.v201908.LineItemPage getLineItemsByStatement(Google.Api.Ads.AdManager.v201908.Statement filterStatement) { + return base.Channel.getLineItemsByStatement(filterStatement); + } + + public virtual System.Threading.Tasks.Task getLineItemsByStatementAsync(Google.Api.Ads.AdManager.v201908.Statement filterStatement) { + return base.Channel.getLineItemsByStatementAsync(filterStatement); + } + + /// Returns whether a custom pacing curve has been uploaded to Google Cloud Storage + /// for a line item. + /// the ID of the line item + public virtual bool hasCustomPacingCurve(long lineItemId) { + return base.Channel.hasCustomPacingCurve(lineItemId); + } + + public virtual System.Threading.Tasks.Task hasCustomPacingCurveAsync(long lineItemId) { + return base.Channel.hasCustomPacingCurveAsync(lineItemId); + } + + /// Performs actions on LineItem objects that match the given + /// Statement#query. + /// the action to perform + /// a Publisher Query Language statement used to + /// filter a set of line items + /// the result of the action performed + public virtual Google.Api.Ads.AdManager.v201908.UpdateResult performLineItemAction(Google.Api.Ads.AdManager.v201908.LineItemAction lineItemAction, Google.Api.Ads.AdManager.v201908.Statement filterStatement) { + return base.Channel.performLineItemAction(lineItemAction, filterStatement); + } + + public virtual System.Threading.Tasks.Task performLineItemActionAsync(Google.Api.Ads.AdManager.v201908.LineItemAction lineItemAction, Google.Api.Ads.AdManager.v201908.Statement filterStatement) { + return base.Channel.performLineItemActionAsync(lineItemAction, filterStatement); + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + Wrappers.LineItemService.updateLineItemsResponse Google.Api.Ads.AdManager.v201908.LineItemServiceInterface.updateLineItems(Wrappers.LineItemService.updateLineItemsRequest request) { + return base.Channel.updateLineItems(request); + } + + /// Updates the specified LineItem objects. + /// the line items to update + /// the updated line items + public virtual Google.Api.Ads.AdManager.v201908.LineItem[] updateLineItems(Google.Api.Ads.AdManager.v201908.LineItem[] lineItems) { + Wrappers.LineItemService.updateLineItemsRequest inValue = new Wrappers.LineItemService.updateLineItemsRequest(); + inValue.lineItems = lineItems; + Wrappers.LineItemService.updateLineItemsResponse retVal = ((Google.Api.Ads.AdManager.v201908.LineItemServiceInterface)(this)).updateLineItems(inValue); + return retVal.rval; + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201908.LineItemServiceInterface.updateLineItemsAsync(Wrappers.LineItemService.updateLineItemsRequest request) { + return base.Channel.updateLineItemsAsync(request); + } + + public virtual System.Threading.Tasks.Task updateLineItemsAsync(Google.Api.Ads.AdManager.v201908.LineItem[] lineItems) { + Wrappers.LineItemService.updateLineItemsRequest inValue = new Wrappers.LineItemService.updateLineItemsRequest(); + inValue.lineItems = lineItems; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201908.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.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class LineItemTemplate { + 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 LineItemType lineItemTypeField; + + private bool lineItemTypeFieldSpecified; + + private DeliveryRateType deliveryRateTypeField; + + 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. + /// 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.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 orderIdSpecified { + public bool isDefaultSpecified { get { - return this.orderIdFieldSpecified; + return this.isDefaultFieldSpecified; } set { - this.orderIdFieldSpecified = value; + this.isDefaultFieldSpecified = 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 default name of a new . This + /// attribute is optional and has a maximum length of 127 characters. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public UnitType unitType { + [System.Xml.Serialization.XmlElementAttribute(Order = 3)] + public string lineItemName { get { - return this.unitTypeField; + return this.lineItemNameField; } set { - this.unitTypeField = value; - this.unitTypeSpecified = true; + this.lineItemNameField = value; } } - /// true, if a value is specified for , false otherwise. + /// The default value for the LineItem#enabledForSameAdvertiserException + /// field of a new LineItem. This attribute is required. + /// + [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 unitTypeSpecified { + public bool enabledForSameAdvertiserExceptionSpecified { get { - return this.unitTypeFieldSpecified; + return this.enabledForSameAdvertiserExceptionFieldSpecified; } set { - this.unitTypeFieldSpecified = value; + this.enabledForSameAdvertiserExceptionFieldSpecified = 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 notes for a new . This + /// attribute is optional and has a maximum length of 65,535 characters. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public long predictedDeliveryUnits { + [System.Xml.Serialization.XmlElementAttribute(Order = 5)] + public string notes { get { - return this.predictedDeliveryUnitsField; + return this.notesField; } set { - this.predictedDeliveryUnitsField = value; - this.predictedDeliveryUnitsSpecified = 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 predictedDeliveryUnitsSpecified { + public bool lineItemTypeSpecified { get { - return this.predictedDeliveryUnitsFieldSpecified; + return this.lineItemTypeFieldSpecified; } set { - this.predictedDeliveryUnitsFieldSpecified = value; + this.lineItemTypeFieldSpecified = value; } } - /// The number of units, defined by Goal#unitType, that - /// have already been served if the reservation is already running. + /// The default delivery strategy for a new + /// LineItem. This attribute is required. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public long deliveredUnits { + [System.Xml.Serialization.XmlElementAttribute(Order = 7)] + public DeliveryRateType deliveryRateType { get { - return this.deliveredUnitsField; + return this.deliveryRateTypeField; } set { - this.deliveredUnitsField = value; - this.deliveredUnitsSpecified = 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 deliveredUnitsSpecified { + public bool deliveryRateTypeSpecified { get { - return this.deliveredUnitsFieldSpecified; + return this.deliveryRateTypeFieldSpecified; } set { - this.deliveredUnitsFieldSpecified = value; + this.deliveryRateTypeFieldSpecified = value; } } - /// The number of units, defined by Goal#unitType, that - /// match the specified LineItem#targeting and - /// delivery settings. + /// The default roadblocking strategy for a + /// new LineItem. This attribute is required. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 5)] - public long matchedUnits { + [System.Xml.Serialization.XmlElementAttribute(Order = 8)] + public RoadblockingType roadblockingType { get { - return this.matchedUnitsField; + return this.roadblockingTypeField; } set { - this.matchedUnitsField = value; - this.matchedUnitsSpecified = 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 matchedUnitsSpecified { + public bool roadblockingTypeSpecified { get { - return this.matchedUnitsFieldSpecified; + return this.roadblockingTypeFieldSpecified; } set { - this.matchedUnitsFieldSpecified = value; + this.roadblockingTypeFieldSpecified = value; } } - } + /// The default creative rotation + /// strategy for a new LineItem. This attribute is required. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 9)] + public CreativeRotationType creativeRotationType { + get { + return this.creativeRotationTypeField; + } + set { + this.creativeRotationTypeField = value; + this.creativeRotationTypeSpecified = true; + } + } - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public interface ForecastServiceInterfaceChannel : Google.Api.Ads.AdManager.v201808.ForecastServiceInterface, System.ServiceModel.IClientChannel - { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool creativeRotationTypeSpecified { + get { + return this.creativeRotationTypeFieldSpecified; + } + set { + this.creativeRotationTypeFieldSpecified = value; + } + } } - /// 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
For prospective: 0
#x2013;#x2013;
Sponsorship != 20 and
!= - /// 50
1,200,000 1,200,000 600,000
For prospective: - /// 0
#x2013;#x2013;
Not Sponsorship <= - /// 500,000 3 * unitsBought / 2 unitsBought * 6600,000
For prospective: 0
#x2013;#x2013;
Not Sponsorship > 500,000 and <= 1,000,000unitsBought / 2 unitsBought * 6 600,000
For - /// prospective: 0
#x2013;#x2013;
Not Sponsorship> 1,000,000 and <= 1,500,000 unitsBought / 2 3 * - /// unitsBought / 2 600,000
For prospective: 0
#x2013;#x2013;
Not Sponsorship > - /// 1,500,000 unitsBought / 4 3 * unitsBought / 2600,000
For prospective: 0
#x2013;#x2013;
+ /// Captures a page of LineItemTemplate objects. /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] [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() { - } + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class LineItemTemplatePage { + private int totalResultSetSizeField; - /// Creates a new instance of the class. - /// - public ForecastService(string endpointConfigurationName) - : base(endpointConfigurationName) { - } + private bool totalResultSetSizeFieldSpecified; - /// Creates a new instance of the class. + private int startIndexField; + + private bool startIndexFieldSpecified; + + private LineItemTemplate[] resultsField; + + /// The size of the total result set to which this page belongs. /// - public ForecastService(string endpointConfigurationName, string remoteAddress) - : base(endpointConfigurationName, remoteAddress) { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public int totalResultSetSize { + get { + return this.totalResultSetSizeField; + } + set { + this.totalResultSetSizeField = value; + this.totalResultSetSizeSpecified = true; + } } - /// Creates a new instance of the class. - /// - public ForecastService(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 totalResultSetSizeSpecified { + get { + return this.totalResultSetSizeFieldSpecified; + } + set { + this.totalResultSetSizeFieldSpecified = value; + } } - /// Creates a new instance of the class. + /// The absolute index in the total result set on which this page begins. /// - public ForecastService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) - : base(binding, remoteAddress) { + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public int startIndex { + get { + return this.startIndexField; + } + set { + this.startIndexField = value; + this.startIndexSpecified = true; + } } - /// 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. - /// the prospective line item (new or existing) to be - /// forecasted for availability - /// options controlling the forecast - public virtual Google.Api.Ads.AdManager.v201808.AvailabilityForecast getAvailabilityForecast(Google.Api.Ads.AdManager.v201808.ProspectiveLineItem lineItem, Google.Api.Ads.AdManager.v201808.AvailabilityForecastOptions forecastOptions) { - return base.Channel.getAvailabilityForecast(lineItem, forecastOptions); + /// 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 getAvailabilityForecastAsync(Google.Api.Ads.AdManager.v201808.ProspectiveLineItem lineItem, Google.Api.Ads.AdManager.v201808.AvailabilityForecastOptions forecastOptions) { - return base.Channel.getAvailabilityForecastAsync(lineItem, forecastOptions); + /// The collection of line item templates contained within this page. + /// + [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] + public LineItemTemplate[] results { + get { + return this.resultsField; + } + set { + this.resultsField = value; + } } + } - /// 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.

- ///
the ID of a LineItem to run the - /// forecast on. - /// options controlling the forecast - public virtual Google.Api.Ads.AdManager.v201808.AvailabilityForecast getAvailabilityForecastById(long lineItemId, Google.Api.Ads.AdManager.v201808.AvailabilityForecastOptions forecastOptions) { - return base.Channel.getAvailabilityForecastById(lineItemId, forecastOptions); - } - public virtual System.Threading.Tasks.Task getAvailabilityForecastByIdAsync(long lineItemId, Google.Api.Ads.AdManager.v201808.AvailabilityForecastOptions forecastOptions) { - return base.Channel.getAvailabilityForecastByIdAsync(lineItemId, forecastOptions); - } + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", ConfigurationName = "Google.Api.Ads.AdManager.v201908.LineItemTemplateServiceInterface")] + public interface LineItemTemplateServiceInterface + { + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201908.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v201908.LineItemTemplatePage getLineItemTemplatesByStatement(Google.Api.Ads.AdManager.v201908.Statement filterStatement); - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.ForecastService.getDeliveryForecastResponse Google.Api.Ads.AdManager.v201808.ForecastServiceInterface.getDeliveryForecast(Wrappers.ForecastService.getDeliveryForecastRequest request) { - return base.Channel.getDeliveryForecast(request); - } + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task getLineItemTemplatesByStatementAsync(Google.Api.Ads.AdManager.v201908.Statement filterStatement); + } - /// 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. - /// line items to be forecasted for delivery - /// options controlling the forecast - public virtual Google.Api.Ads.AdManager.v201808.DeliveryForecast getDeliveryForecast(Google.Api.Ads.AdManager.v201808.ProspectiveLineItem[] lineItems, Google.Api.Ads.AdManager.v201808.DeliveryForecastOptions forecastOptions) { - Wrappers.ForecastService.getDeliveryForecastRequest inValue = new Wrappers.ForecastService.getDeliveryForecastRequest(); - inValue.lineItems = lineItems; - inValue.forecastOptions = forecastOptions; - Wrappers.ForecastService.getDeliveryForecastResponse retVal = ((Google.Api.Ads.AdManager.v201808.ForecastServiceInterface)(this)).getDeliveryForecast(inValue); - return retVal.rval; + + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + public interface LineItemTemplateServiceInterfaceChannel : Google.Api.Ads.AdManager.v201908.LineItemTemplateServiceInterface, System.ServiceModel.IClientChannel + { + } + + + /// 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 LineItemTemplateService : AdManagerSoapClient, ILineItemTemplateService { + /// Creates a new instance of the + /// class. + public LineItemTemplateService() { } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201808.ForecastServiceInterface.getDeliveryForecastAsync(Wrappers.ForecastService.getDeliveryForecastRequest request) { - return base.Channel.getDeliveryForecastAsync(request); + /// Creates a new instance of the + /// class. + public LineItemTemplateService(string endpointConfigurationName) + : base(endpointConfigurationName) { } - public virtual System.Threading.Tasks.Task getDeliveryForecastAsync(Google.Api.Ads.AdManager.v201808.ProspectiveLineItem[] lineItems, Google.Api.Ads.AdManager.v201808.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.v201808.ForecastServiceInterface)(this)).getDeliveryForecastAsync(inValue)).Result.rval); + /// Creates a new instance of the + /// class. + public LineItemTemplateService(string endpointConfigurationName, string remoteAddress) + : base(endpointConfigurationName, remoteAddress) { } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.ForecastService.getDeliveryForecastByIdsResponse Google.Api.Ads.AdManager.v201808.ForecastServiceInterface.getDeliveryForecastByIds(Wrappers.ForecastService.getDeliveryForecastByIdsRequest request) { - return base.Channel.getDeliveryForecastByIds(request); + /// Creates a new instance of the + /// class. + public LineItemTemplateService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) + : base(endpointConfigurationName, remoteAddress) { } - /// 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. - /// the IDs of line items to be forecasted for - /// delivery - /// options controlling the forecast - public virtual Google.Api.Ads.AdManager.v201808.DeliveryForecast getDeliveryForecastByIds(long[] lineItemIds, Google.Api.Ads.AdManager.v201808.DeliveryForecastOptions forecastOptions) { - Wrappers.ForecastService.getDeliveryForecastByIdsRequest inValue = new Wrappers.ForecastService.getDeliveryForecastByIdsRequest(); - inValue.lineItemIds = lineItemIds; - inValue.forecastOptions = forecastOptions; - Wrappers.ForecastService.getDeliveryForecastByIdsResponse retVal = ((Google.Api.Ads.AdManager.v201808.ForecastServiceInterface)(this)).getDeliveryForecastByIds(inValue); - return retVal.rval; + /// Creates a new instance of the + /// class. + public LineItemTemplateService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) + : base(binding, remoteAddress) { } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201808.ForecastServiceInterface.getDeliveryForecastByIdsAsync(Wrappers.ForecastService.getDeliveryForecastByIdsRequest request) { - return base.Channel.getDeliveryForecastByIdsAsync(request); + /// 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
+ ///
a Publisher Query Language statement used to + /// filter a set of line item templates + /// the line item templates that match the given filter + /// if a RuntimeException is thrown + public virtual Google.Api.Ads.AdManager.v201908.LineItemTemplatePage getLineItemTemplatesByStatement(Google.Api.Ads.AdManager.v201908.Statement filterStatement) { + return base.Channel.getLineItemTemplatesByStatement(filterStatement); } - public virtual System.Threading.Tasks.Task getDeliveryForecastByIdsAsync(long[] lineItemIds, Google.Api.Ads.AdManager.v201808.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.v201808.ForecastServiceInterface)(this)).getDeliveryForecastByIdsAsync(inValue)).Result.rval); + public virtual System.Threading.Tasks.Task getLineItemTemplatesByStatementAsync(Google.Api.Ads.AdManager.v201908.Statement filterStatement) { + return base.Channel.getLineItemTemplatesByStatementAsync(filterStatement); } } - namespace Wrappers.InventoryService + 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 = "createAdUnits", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201808", IsWrapped = true)] - public partial class createAdUnitsRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("adUnits")] - public Google.Api.Ads.AdManager.v201808.AdUnit[] adUnits; + [System.ServiceModel.MessageContractAttribute(WrapperName = "createLiveStreamEvents", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201908", IsWrapped = true)] + public partial class createLiveStreamEventsRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("liveStreamEvents")] + public Google.Api.Ads.AdManager.v201908.LiveStreamEvent[] liveStreamEvents; - /// Creates a new instance of the - /// class. - public createAdUnitsRequest() { + /// Creates a new instance of the class. + public createLiveStreamEventsRequest() { } - /// Creates a new instance of the - /// class. - public createAdUnitsRequest(Google.Api.Ads.AdManager.v201808.AdUnit[] adUnits) { - this.adUnits = adUnits; + /// Creates a new instance of the class. + public createLiveStreamEventsRequest(Google.Api.Ads.AdManager.v201908.LiveStreamEvent[] liveStreamEvents) { + this.liveStreamEvents = liveStreamEvents; } } @@ -33180,20 +33237,20 @@ public createAdUnitsRequest(Google.Api.Ads.AdManager.v201808.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/v201808", IsWrapped = true)] - public partial class createAdUnitsResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "createLiveStreamEventsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201908", IsWrapped = true)] + public partial class createLiveStreamEventsResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v201808.AdUnit[] rval; + public Google.Api.Ads.AdManager.v201908.LiveStreamEvent[] rval; - /// Creates a new instance of the - /// class. - public createAdUnitsResponse() { + /// Creates a new instance of the class. + public createLiveStreamEventsResponse() { } - /// Creates a new instance of the - /// class. - public createAdUnitsResponse(Google.Api.Ads.AdManager.v201808.AdUnit[] rval) { + /// Creates a new instance of the class. + public createLiveStreamEventsResponse(Google.Api.Ads.AdManager.v201908.LiveStreamEvent[] rval) { this.rval = rval; } } @@ -33202,20 +33259,21 @@ public createAdUnitsResponse(Google.Api.Ads.AdManager.v201808.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/v201808", IsWrapped = true)] - public partial class getAdUnitSizesByStatementRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - public Google.Api.Ads.AdManager.v201808.Statement filterStatement; + [System.ServiceModel.MessageContractAttribute(WrapperName = "registerSessionsForMonitoring", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201908", IsWrapped = true)] + public partial class registerSessionsForMonitoringRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("sessionIds")] + public string[] sessionIds; /// Creates a new instance of the class. - public getAdUnitSizesByStatementRequest() { + /// cref="registerSessionsForMonitoringRequest"/> class.
+ public registerSessionsForMonitoringRequest() { } /// Creates a new instance of the class. - public getAdUnitSizesByStatementRequest(Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - this.filterStatement = filterStatement; + /// cref="registerSessionsForMonitoringRequest"/> class.
+ public registerSessionsForMonitoringRequest(string[] sessionIds) { + this.sessionIds = sessionIds; } } @@ -33223,20 +33281,20 @@ public getAdUnitSizesByStatementRequest(Google.Api.Ads.AdManager.v201808.Stateme [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/v201808", IsWrapped = true)] - public partial class getAdUnitSizesByStatementResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "registerSessionsForMonitoringResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201908", IsWrapped = true)] + public partial class registerSessionsForMonitoringResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v201808.AdUnitSize[] rval; + public string[] rval; /// Creates a new instance of the class. - public getAdUnitSizesByStatementResponse() { + /// cref="registerSessionsForMonitoringResponse"/> class.
+ public registerSessionsForMonitoringResponse() { } /// Creates a new instance of the class. - public getAdUnitSizesByStatementResponse(Google.Api.Ads.AdManager.v201808.AdUnitSize[] rval) { + /// cref="registerSessionsForMonitoringResponse"/> class.
+ public registerSessionsForMonitoringResponse(string[] rval) { this.rval = rval; } } @@ -33245,21 +33303,21 @@ public getAdUnitSizesByStatementResponse(Google.Api.Ads.AdManager.v201808.AdUnit [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/v201808", IsWrapped = true)] - public partial class updateAdUnitsRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("adUnits")] - public Google.Api.Ads.AdManager.v201808.AdUnit[] adUnits; + [System.ServiceModel.MessageContractAttribute(WrapperName = "updateLiveStreamEvents", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201908", IsWrapped = true)] + public partial class updateLiveStreamEventsRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("liveStreamEvents")] + public Google.Api.Ads.AdManager.v201908.LiveStreamEvent[] liveStreamEvents; - /// Creates a new instance of the - /// class. - public updateAdUnitsRequest() { + /// Creates a new instance of the class. + public updateLiveStreamEventsRequest() { } - /// Creates a new instance of the - /// class. - public updateAdUnitsRequest(Google.Api.Ads.AdManager.v201808.AdUnit[] adUnits) { - this.adUnits = adUnits; + /// Creates a new instance of the class. + public updateLiveStreamEventsRequest(Google.Api.Ads.AdManager.v201908.LiveStreamEvent[] liveStreamEvents) { + this.liveStreamEvents = liveStreamEvents; } } @@ -33267,1218 +33325,822 @@ public updateAdUnitsRequest(Google.Api.Ads.AdManager.v201808.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/v201808", IsWrapped = true)] - public partial class updateAdUnitsResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "updateLiveStreamEventsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201908", IsWrapped = true)] + public partial class updateLiveStreamEventsResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v201808.AdUnit[] rval; + public Google.Api.Ads.AdManager.v201908.LiveStreamEvent[] rval; - /// Creates a new instance of the - /// class. - public updateAdUnitsResponse() { + /// Creates a new instance of the class. + public updateLiveStreamEventsResponse() { } - /// Creates a new instance of the - /// class. - public updateAdUnitsResponse(Google.Api.Ads.AdManager.v201808.AdUnit[] rval) { + /// Creates a new instance of the class. + public updateLiveStreamEventsResponse(Google.Api.Ads.AdManager.v201908.LiveStreamEvent[] 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. + /// Settings for the HLS (HTTP Live Streaming) master playlist. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class LabelFrequencyCap { - private FrequencyCap frequencyCapField; - - private long labelIdField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class MasterPlaylistSettings { + private RefreshType refreshTypeField; - private bool labelIdFieldSpecified; + private bool refreshTypeFieldSpecified; - /// The frequency cap to be applied with this label. + /// Indicates how the master playlist gets refreshed. This field is optional and + /// defaults to RefreshType#AUTOMATIC. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public FrequencyCap frequencyCap { + public RefreshType refreshType { get { - return this.frequencyCapField; + return this.refreshTypeField; } set { - this.frequencyCapField = value; + this.refreshTypeField = value; + this.refreshTypeSpecified = true; } } - /// ID of the label being capped on the AdUnit. + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool refreshTypeSpecified { + get { + return this.refreshTypeFieldSpecified; + } + set { + this.refreshTypeFieldSpecified = value; + } + } + } + + + /// Enumerates the different ways an HLS master playlist on a live stream will can + /// be refreshed. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum RefreshType { + /// The master playlist will automatically be refreshed. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public long labelId { + 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.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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 analagous to the EXT-X-PLAYLIST-TYPE HLS tag. This field is + /// optional and will default to PlaylistType#LIVE. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public PlaylistType playlistType { get { - return this.labelIdField; + return this.playlistTypeField; } set { - this.labelIdField = value; - this.labelIdSpecified = 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 labelIdSpecified { + public bool playlistTypeSpecified { get { - return this.labelIdFieldSpecified; + return this.playlistTypeFieldSpecified; } set { - this.labelIdFieldSpecified = value; + this.playlistTypeFieldSpecified = value; + } + } + + /// 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 = 1)] + public MasterPlaylistSettings masterPlaylistSettings { + get { + return this.masterPlaylistSettingsField; + } + set { + this.masterPlaylistSettingsField = value; } } } - /// Contains the AdSense configuration for an AdUnit. + /// 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.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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. + /// + 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, + } + + + /// 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 event, 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 event.

///
[System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class AdSenseSettings { - private bool adSenseEnabledField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class LiveStreamEvent { + private long idField; - private bool adSenseEnabledFieldSpecified; + private bool idFieldSpecified; - private string borderColorField; + private string nameField; - private string titleColorField; + private string descriptionField; - private string backgroundColorField; + private LiveStreamEventStatus statusField; - private string textColorField; + private bool statusFieldSpecified; - private string urlColorField; + private DateTime creationDateTimeField; - private AdSenseSettingsAdType adTypeField; + private DateTime lastModifiedDateTimeField; - private bool adTypeFieldSpecified; + private DateTime startDateTimeField; - private AdSenseSettingsBorderStyle borderStyleField; + private StartDateTimeType startDateTimeTypeField; - private bool borderStyleFieldSpecified; + private bool startDateTimeTypeFieldSpecified; - private AdSenseSettingsFontFamily fontFamilyField; + private DateTime endDateTimeField; - private bool fontFamilyFieldSpecified; + private bool unlimitedEndDateTimeField; - private AdSenseSettingsFontSize fontSizeField; + private bool unlimitedEndDateTimeFieldSpecified; - private bool fontSizeFieldSpecified; + private long totalEstimatedConcurrentUsersField; - /// 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. + private bool totalEstimatedConcurrentUsersFieldSpecified; + + private string[] contentUrlsField; + + private string[] adTagsField; + + private string liveStreamEventCodeField; + + 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 long adHolidayDurationField; + + private bool adHolidayDurationFieldSpecified; + + private bool enableDurationlessAdBreaksField; + + private bool enableDurationlessAdBreaksFieldSpecified; + + private long defaultAdBreakDurationField; + + private bool defaultAdBreakDurationFieldSpecified; + + private long[] daiAuthenticationKeyIdsField; + + private long[] sourceContentConfigurationIdsField; + + private HlsSettings hlsSettingsField; + + private StreamingFormat streamingFormatField; + + private bool streamingFormatFieldSpecified; + + /// The unique ID of the LiveStreamEvent. This value is read-only 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 LiveStreamEvent. This value is required to create a + /// live stream event and has a maximum length of 255 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. + /// Additional notes to annotate the event with. This attribute is optional and has + /// a maximum length of 65,535 characters. /// [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public string titleColor { + public string description { get { - return this.titleColorField; + return this.descriptionField; } set { - this.titleColorField = value; + this.descriptionField = value; } } - /// 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. + /// 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. /// [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public string backgroundColor { + public LiveStreamEventStatus status { get { - return this.backgroundColorField; + return this.statusField; } set { - this.backgroundColorField = value; + this.statusField = value; + this.statusSpecified = true; } } - /// 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 { + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool statusSpecified { get { - return this.textColorField; + return this.statusFieldSpecified; } set { - this.textColorField = value; + this.statusFieldSpecified = value; } } - /// 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 - /// . + /// The date and time this LiveStreamEvent was created. This attribute + /// is read-only. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 5)] - public string urlColor { + [System.Xml.Serialization.XmlElementAttribute(Order = 4)] + public DateTime creationDateTime { get { - return this.urlColorField; + return this.creationDateTimeField; } set { - this.urlColorField = value; + this.creationDateTimeField = 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 date and time this LiveStreamEvent was last modified. This + /// attribute is read-only. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 6)] - public AdSenseSettingsAdType adType { + [System.Xml.Serialization.XmlElementAttribute(Order = 5)] + public DateTime lastModifiedDateTime { get { - return this.adTypeField; + return this.lastModifiedDateTimeField; } set { - this.adTypeField = value; - this.adTypeSpecified = true; + this.lastModifiedDateTimeField = value; } } - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool adTypeSpecified { + /// 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. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 6)] + public DateTime startDateTime { get { - return this.adTypeFieldSpecified; + return this.startDateTimeField; } set { - this.adTypeFieldSpecified = value; + this.startDateTimeField = 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. + /// 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 = 7)] - public AdSenseSettingsBorderStyle borderStyle { + public StartDateTimeType startDateTimeType { get { - return this.borderStyleField; + return this.startDateTimeTypeField; } set { - this.borderStyleField = value; - this.borderStyleSpecified = true; + this.startDateTimeTypeField = value; + this.startDateTimeTypeSpecified = 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 borderStyleSpecified { + public bool startDateTimeTypeSpecified { get { - return this.borderStyleFieldSpecified; + return this.startDateTimeTypeFieldSpecified; } set { - this.borderStyleFieldSpecified = value; + this.startDateTimeTypeFieldSpecified = 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 scheduled end date and time of this LiveStreamEvent. This + /// attribute is required if unlimitedEndDateTime is false and ignored + /// if unlimitedEndDateTime is true. /// [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 DateTime endDateTime { get { - return this.fontFamilyFieldSpecified; + return this.endDateTimeField; } set { - this.fontFamilyFieldSpecified = value; + this.endDateTimeField = 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. + /// 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(Order = 9)] - public AdSenseSettingsFontSize fontSize { + public bool unlimitedEndDateTime { get { - return this.fontSizeField; + return this.unlimitedEndDateTimeField; } set { - this.fontSizeField = value; - this.fontSizeSpecified = true; + this.unlimitedEndDateTimeField = value; + this.unlimitedEndDateTimeSpecified = 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 fontSizeSpecified { - get { - return this.fontSizeFieldSpecified; - } - set { - this.fontSizeFieldSpecified = value; - } - } - } - - - /// Specifies the type of ads that can be served through this AdUnit. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AdSenseSettings.AdType", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum AdSenseSettingsAdType { - /// Allows text-only ads. - /// - 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.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AdSenseSettings.BorderStyle", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AdSenseSettings.FontFamily", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AdSenseSettings.FontSize", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class AdUnitSize { - private Size sizeField; - - private EnvironmentType environmentTypeField; - - private bool environmentTypeFieldSpecified; - - private AdUnitSize[] companionsField; - - private string fullDisplayStringField; - - /// The permissible creative size that can be served inside this ad unit. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public Size size { + public bool unlimitedEndDateTimeSpecified { get { - return this.sizeField; + return this.unlimitedEndDateTimeFieldSpecified; } set { - this.sizeField = value; + this.unlimitedEndDateTimeFieldSpecified = value; } } - /// The environment type of the ad unit size. The default value is EnvironmentType#BROWSER. + /// The total number of concurrent users expected to watch this event across all + /// regions. This attribute is optional and default value is 0. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public EnvironmentType environmentType { + [System.Xml.Serialization.XmlElementAttribute(Order = 10)] + public long totalEstimatedConcurrentUsers { get { - return this.environmentTypeField; + return this.totalEstimatedConcurrentUsersField; } set { - this.environmentTypeField = value; - this.environmentTypeSpecified = true; + this.totalEstimatedConcurrentUsersField = value; + this.totalEstimatedConcurrentUsersSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="totalEstimatedConcurrentUsers" />, false otherwise. + /// [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool environmentTypeSpecified { + public bool totalEstimatedConcurrentUsersSpecified { get { - return this.environmentTypeFieldSpecified; + return this.totalEstimatedConcurrentUsersFieldSpecified; } set { - this.environmentTypeFieldSpecified = value; + this.totalEstimatedConcurrentUsersFieldSpecified = 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. + /// The list of URLs pointing to the live stream content in Content Delivery + /// Network. This attribute is required. /// - [System.Xml.Serialization.XmlElementAttribute("companions", Order = 2)] - public AdUnitSize[] companions { + [System.Xml.Serialization.XmlElementAttribute("contentUrls", Order = 11)] + public string[] contentUrls { get { - return this.companionsField; + return this.contentUrlsField; } set { - this.companionsField = value; + this.contentUrlsField = value; } } - /// The full (including companion sizes, if applicable) display string of the size, - /// e.g. "300x250" or "300x250v (180x150)" + /// 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(Order = 3)] - public string fullDisplayString { + [System.Xml.Serialization.XmlElementAttribute("adTags", Order = 12)] + public string[] adTags { get { - return this.fullDisplayStringField; + return this.adTagsField; } set { - this.fullDisplayStringField = value; + this.adTagsField = value; } } - } - - - /// The summary of a parent AdUnit. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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. + /// This code is used in constructing a live stream event master playlist URL. This + /// attribute is read-only and is assigned by Google. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public string id { + [System.Xml.Serialization.XmlElementAttribute(Order = 13)] + public string liveStreamEventCode { get { - return this.idField; + return this.liveStreamEventCodeField; } set { - this.idField = value; + this.liveStreamEventCodeField = value; } } - /// The name of the parent AdUnit. This value is readonly and is - /// populated by Google. + /// ID corresponding to the slate for this live event. If not set, network default + /// value will be used. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public string name { + [System.Xml.Serialization.XmlElementAttribute(Order = 14)] + public long slateCreativeId { get { - return this.nameField; + return this.slateCreativeIdField; } set { - this.nameField = value; + this.slateCreativeIdField = value; + this.slateCreativeIdSpecified = 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. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public string adUnitCode { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool slateCreativeIdSpecified { get { - return this.adUnitCodeField; + return this.slateCreativeIdFieldSpecified; } set { - this.adUnitCodeField = value; + this.slateCreativeIdFieldSpecified = 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("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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; - /// 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. + /// 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. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public string id { + [System.Xml.Serialization.XmlElementAttribute(Order = 15)] + public int dvrWindowSeconds { get { - return this.idField; + return this.dvrWindowSecondsField; } set { - this.idField = value; + this.dvrWindowSecondsField = value; + this.dvrWindowSecondsSpecified = true; } } - /// 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 { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool dvrWindowSecondsSpecified { get { - return this.parentIdField; + return this.dvrWindowSecondsFieldSpecified; } set { - this.parentIdField = value; + this.dvrWindowSecondsFieldSpecified = value; } } - /// This field is set to true if the ad unit has any children. This - /// attribute is read-only and is populated by Google. + /// Whether the event's stream requests to the IMA SDK API will be authenticated + /// using the DAI authentication keys. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public bool hasChildren { + [System.Xml.Serialization.XmlElementAttribute(Order = 16)] + public bool enableDaiAuthenticationKeys { get { - return this.hasChildrenField; + return this.enableDaiAuthenticationKeysField; } set { - this.hasChildrenField = value; - this.hasChildrenSpecified = true; + this.enableDaiAuthenticationKeysField = value; + this.enableDaiAuthenticationKeysSpecified = 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 { - get { - return this.hasChildrenFieldSpecified; - } - set { - this.hasChildrenFieldSpecified = 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. - /// - [System.Xml.Serialization.XmlElementAttribute("parentPath", Order = 3)] - public AdUnitParent[] parentPath { + public bool enableDaiAuthenticationKeysSpecified { get { - return this.parentPathField; + return this.enableDaiAuthenticationKeysFieldSpecified; } set { - this.parentPathField = value; + this.enableDaiAuthenticationKeysFieldSpecified = 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 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 = 4)] - public string name { + [System.Xml.Serialization.XmlElementAttribute(Order = 17)] + public AdBreakFillType adBreakFillType { get { - return this.nameField; + return this.adBreakFillTypeField; } set { - this.nameField = value; + this.adBreakFillTypeField = value; + this.adBreakFillTypeSpecified = 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 adBreakFillTypeSpecified { get { - return this.descriptionField; + return this.adBreakFillTypeFieldSpecified; } set { - this.descriptionField = value; + this.adBreakFillTypeFieldSpecified = 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. + /// 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. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 6)] - public AdUnitTargetWindow targetWindow { + [System.Xml.Serialization.XmlElementAttribute(Order = 18)] + public long adHolidayDuration { get { - return this.targetWindowField; + return this.adHolidayDurationField; } set { - this.targetWindowField = value; - this.targetWindowSpecified = true; + this.adHolidayDurationField = value; + this.adHolidayDurationSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="adHolidayDuration" />, false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool targetWindowSpecified { + public bool adHolidayDurationSpecified { get { - return this.targetWindowFieldSpecified; + return this.adHolidayDurationFieldSpecified; } set { - this.targetWindowFieldSpecified = value; + this.adHolidayDurationFieldSpecified = 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. + /// 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; /// - [System.Xml.Serialization.XmlElementAttribute(Order = 7)] - public InventoryStatus status { + [System.Xml.Serialization.XmlElementAttribute(Order = 19)] + public bool enableDurationlessAdBreaks { get { - return this.statusField; + return this.enableDurationlessAdBreaksField; } set { - this.statusField = value; - this.statusSpecified = 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 statusSpecified { + public bool enableDurationlessAdBreaksSpecified { get { - return this.statusFieldSpecified; + return this.enableDurationlessAdBreaksFieldSpecified; } set { - this.statusFieldSpecified = value; + this.enableDurationlessAdBreaksFieldSpecified = 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 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; /// - [System.Xml.Serialization.XmlElementAttribute(Order = 8)] - public string adUnitCode { + [System.Xml.Serialization.XmlElementAttribute(Order = 20)] + public long defaultAdBreakDuration { get { - return this.adUnitCodeField; + return this.defaultAdBreakDurationField; } set { - this.adUnitCodeField = value; - } - } - - /// 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("adUnitSizes", Order = 9)] - public AdUnitSize[] adUnitSizes { - get { - return this.adUnitSizesField; - } - set { - this.adUnitSizesField = value; - } - } - - /// Whether this is an interstitial ad unit. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 10)] - 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; - } - } - - /// Whether this is a native ad unit. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 11)] - public bool isNative { - get { - return this.isNativeField; - } - set { - this.isNativeField = value; - this.isNativeSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool isNativeSpecified { - get { - return this.isNativeFieldSpecified; - } - set { - this.isNativeFieldSpecified = value; - } - } - - /// Whether this is a fluid ad unit. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 12)] - 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; - } - } - - /// 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 = 13)] - public bool explicitlyTargeted { - get { - return this.explicitlyTargetedField; - } - set { - this.explicitlyTargetedField = value; - this.explicitlyTargetedSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool explicitlyTargetedSpecified { - get { - return this.explicitlyTargetedFieldSpecified; - } - set { - this.explicitlyTargetedFieldSpecified = value; - } - } - - /// AdSense specific settings. To overwrite this, set the #adSenseSettingsSource to PropertySourceType#DIRECTLY_SPECIFIED - /// when setting the value of this field. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 14)] - public AdSenseSettings adSenseSettings { - get { - return this.adSenseSettingsField; - } - set { - this.adSenseSettingsField = value; - } - } - - /// 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 = 15)] - public ValueSourceType adSenseSettingsSource { - get { - return this.adSenseSettingsSourceField; - } - set { - this.adSenseSettingsSourceField = value; - this.adSenseSettingsSourceSpecified = true; + this.defaultAdBreakDurationField = value; + this.defaultAdBreakDurationSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="defaultAdBreakDuration" />, false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool adSenseSettingsSourceSpecified { - get { - return this.adSenseSettingsSourceFieldSpecified; - } - set { - this.adSenseSettingsSourceFieldSpecified = 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. - /// - [System.Xml.Serialization.XmlElementAttribute("appliedLabelFrequencyCaps", Order = 16)] - public LabelFrequencyCap[] appliedLabelFrequencyCaps { - get { - return this.appliedLabelFrequencyCapsField; - } - set { - this.appliedLabelFrequencyCapsField = 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. - /// - [System.Xml.Serialization.XmlElementAttribute("effectiveLabelFrequencyCaps", Order = 17)] - public LabelFrequencyCap[] effectiveLabelFrequencyCaps { - get { - return this.effectiveLabelFrequencyCapsField; - } - set { - this.effectiveLabelFrequencyCapsField = value; - } - } - - /// The set of labels applied directly to this ad unit. - /// - [System.Xml.Serialization.XmlElementAttribute("appliedLabels", Order = 18)] - public AppliedLabel[] appliedLabels { - get { - return this.appliedLabelsField; - } - set { - this.appliedLabelsField = value; - } - } - - /// 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("effectiveAppliedLabels", Order = 19)] - public AppliedLabel[] effectiveAppliedLabels { - get { - return this.effectiveAppliedLabelsField; - } - set { - this.effectiveAppliedLabelsField = 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. - /// - [System.Xml.Serialization.XmlElementAttribute("effectiveTeamIds", Order = 20)] - public long[] effectiveTeamIds { + public bool defaultAdBreakDurationSpecified { get { - return this.effectiveTeamIdsField; + return this.defaultAdBreakDurationFieldSpecified; } set { - this.effectiveTeamIdsField = value; + this.defaultAdBreakDurationFieldSpecified = value; } } - /// The IDs of all teams that this ad unit is on directly. + /// The list of DaiAuthenticationKey IDs used to + /// authenticate requests for this live stream. /// - [System.Xml.Serialization.XmlElementAttribute("appliedTeamIds", Order = 21)] - public long[] appliedTeamIds { + [System.Xml.Serialization.XmlElementAttribute("daiAuthenticationKeyIds", Order = 21)] + public long[] daiAuthenticationKeyIds { get { - return this.appliedTeamIdsField; + return this.daiAuthenticationKeyIdsField; } set { - this.appliedTeamIdsField = value; + this.daiAuthenticationKeyIdsField = value; } } - /// The date and time this ad unit was last modified. + /// The list of CdnConfiguration IDs that provide + /// settings for ingesting and delivering the videos associated with this source. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 22)] - public DateTime lastModifiedDateTime { + [System.Xml.Serialization.XmlElementAttribute("sourceContentConfigurationIds", Order = 22)] + public long[] sourceContentConfigurationIds { get { - return this.lastModifiedDateTimeField; + return this.sourceContentConfigurationIdsField; } set { - this.lastModifiedDateTimeField = value; + this.sourceContentConfigurationIdsField = value; } } - /// The smart size mode for this ad unit. This attribute is optional and defaults to - /// SmartSizeMode#NONE for fixed sizes. + /// 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 = 23)] - public SmartSizeMode smartSizeMode { - get { - return this.smartSizeModeField; - } - set { - this.smartSizeModeField = value; - this.smartSizeModeSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool smartSizeModeSpecified { + public HlsSettings hlsSettings { get { - return this.smartSizeModeFieldSpecified; + return this.hlsSettingsField; } set { - this.smartSizeModeFieldSpecified = value; + this.hlsSettingsField = 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. + /// The streaming format of the LiveStreamEvent media. /// [System.Xml.Serialization.XmlElementAttribute(Order = 24)] - public int refreshRate { - get { - return this.refreshRateField; - } - set { - this.refreshRateField = value; - this.refreshRateSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool refreshRateSpecified { - get { - return this.refreshRateFieldSpecified; - } - set { - this.refreshRateFieldSpecified = 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. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 25)] - public string externalSetTopBoxChannelId { - get { - return this.externalSetTopBoxChannelIdField; - } - set { - this.externalSetTopBoxChannelIdField = value; - } - } - - /// Flag that specifies whether this ad unit represents an external set-top box - /// channel. This attribute is read-only. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 26)] - public bool isSetTopBoxEnabled { + public StreamingFormat streamingFormat { get { - return this.isSetTopBoxEnabledField; + return this.streamingFormatField; } set { - this.isSetTopBoxEnabledField = value; - this.isSetTopBoxEnabledSpecified = true; + this.streamingFormatField = value; + this.streamingFormatSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="streamingFormat" />, false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool isSetTopBoxEnabledSpecified { + public bool streamingFormatSpecified { get { - return this.isSetTopBoxEnabledFieldSpecified; + return this.streamingFormatFieldSpecified; } set { - this.isSetTopBoxEnabledFieldSpecified = value; + this.streamingFormatFieldSpecified = value; } } } - /// Corresponds to an HTML link's target attribute. + /// Describes the status of a LiveStreamEvent object. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AdUnit.TargetWindow", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum AdUnitTargetWindow { - /// Specifies that the link should open in the full body of the page. + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum LiveStreamEventStatus { + /// Indicates the LiveStreamEvent has been created and + /// is eligible for streaming. /// - TOP = 0, - /// Specifies that the link should open in a new window. + ACTIVE = 0, + /// Indicates the LiveStreamEvent has been archived. /// - BLANK = 1, - } - - - /// Represents the status of objects that represent inventory - ad units and - /// placements. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum InventoryStatus { - /// The object is active. + ARCHIVED = 1, + /// Indicates the LiveStreamEvent has been paused. + /// This can be made #ACTIVE at later time. /// - ACTIVE = 0, - /// The object is no longer active. + PAUSED = 2, + /// Indicates that the stream is still being served, but ad insertion should be + /// paused temporarily. /// - INACTIVE = 1, - /// The object has been archived. + ADS_PAUSED = 3, + /// The value returned if the actual value is not exposed by the requested API + /// version. /// - ARCHIVED = 2, + UNKNOWN = 4, } - /// Identifies the source of a field's value. + /// Describes what should be used to fill an empty ad break during a live stream. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum ValueSourceType { - /// The field's value is inherited from the parent object. + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum AdBreakFillType { + /// Ad break should be filled with slate. /// - PARENT = 0, - /// The field's value is user specified and not inherited. + SLATE = 0, + /// Ad break should be filled with underlying content. /// - DIRECTLY_SPECIFIED = 1, + UNDERLYING_CONTENT = 1, /// The value returned if the actual value is not exposed by the requested API /// version. /// @@ -34486,42 +34148,39 @@ public enum ValueSourceType { } - /// Represents smart size modes. + /// The LiveStreamEvent streaming format. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum SmartSizeMode { - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 0, - /// Fixed size mode (default). + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum StreamingFormat { + /// The format of the live stream media is HTTP Live Streaming. /// - NONE = 1, - /// The height is fixed for the request, the width is a range. + HLS = 0, + /// The format of the live stream media is MPEG-DASH. /// - SMART_BANNER = 2, - /// Height and width are ranges. + DASH = 1, + /// The value returned if the actual value is not exposed by the requested API + /// version. /// - DYNAMIC_SIZE = 3, + UNKNOWN = 2, } - /// An error specifically for InventoryUnitSizes. + /// Lists all errors associated with the Session Activity Monitor (SAM). /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class InventoryUnitSizesError : ApiError { - private InventoryUnitSizesErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class SamSessionError : ApiError { + private SamSessionErrorReason reasonField; private bool reasonFieldSpecified; [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public InventoryUnitSizesErrorReason reason { + public SamSessionErrorReason reason { get { return this.reasonField; } @@ -34546,61 +34205,41 @@ public bool reasonSpecified { } - /// All possible reasons the error can be thrown. + /// Describes reasons for SAM session errors. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "InventoryUnitSizesError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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. + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "SamSessionError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum SamSessionErrorReason { + /// SAM session could not be registered for monitoring. /// - ASPECT_RATIO_NOT_SUPPORTED = 7, - /// A video size has companions, but companions are not allowed for the network + COULD_NOT_REGISTER_SESSION = 0, + /// User specified an invalid format for a session ID.

Session IDs are UUIDs and + /// look like "123e4567-e89b-12d3-a456-426655440000".

///
- VIDEO_COMPANIONS_NOT_SUPPORTED = 8, + MALFORMED_SESSION_ID = 1, /// The value returned if the actual value is not exposed by the requested API /// version. /// - UNKNOWN = 9, + UNKNOWN = 2, } - /// Lists errors relating to AdUnit#refreshRate. + /// Lists all errors associated with LiveStreamEvent + /// slate creative id. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class InventoryUnitRefreshRateError : ApiError { - private InventoryUnitRefreshRateErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class LiveStreamEventSlateError : ApiError { + private LiveStreamEventSlateErrorReason reasonField; private bool reasonFieldSpecified; [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public InventoryUnitRefreshRateErrorReason reason { + public LiveStreamEventSlateErrorReason reason { get { return this.reasonField; } @@ -34625,36 +34264,42 @@ public bool reasonSpecified { } - /// Reasons for the error. + /// Describes reasons for LiveStreamEventSlateError. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "InventoryUnitRefreshRateError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum InventoryUnitRefreshRateErrorReason { - /// The refresh rate must be between 30 and 120 seconds. + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "LiveStreamEventSlateError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum LiveStreamEventSlateErrorReason { + /// The slate creative ID does not correspond to a slate creative. /// - INVALID_RANGE = 0, + 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 value returned if the actual value is not exposed by the requested API /// version. /// - UNKNOWN = 1, + UNKNOWN = 2, } - /// A list of all errors associated with a color attribute. + /// Lists the errors associated with setting the LiveStreamEvent DVR window duration. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class InvalidColorError : ApiError { - private InvalidColorErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class LiveStreamEventDvrWindowError : ApiError { + private LiveStreamEventDvrWindowErrorReason reasonField; private bool reasonFieldSpecified; [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public InvalidColorErrorReason reason { + public LiveStreamEventDvrWindowErrorReason reason { get { return this.reasonField; } @@ -34679,34 +34324,39 @@ public bool reasonSpecified { } + /// Describes reasons for LiveStreamEventDvrWindowError. + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "InvalidColorError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum InvalidColorErrorReason { - /// The provided value is not a valid hexadecimal color. + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "LiveStreamEventDvrWindowError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum LiveStreamEventDvrWindowErrorReason { + /// The DVR window cannot be higher than the value allowed for this network. /// - INVALID_FORMAT = 0, + 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 = 1, + UNKNOWN = 2, } - /// A list of all errors associated with companies. + /// Lists all errors associated with live stream event start and end date times. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class CompanyError : ApiError { - private CompanyErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class LiveStreamEventDateTimeError : ApiError { + private LiveStreamEventDateTimeErrorReason reasonField; private bool reasonFieldSpecified; [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public CompanyErrorReason reason { + public LiveStreamEventDateTimeErrorReason reason { get { return this.reasonField; } @@ -34731,69 +34381,43 @@ public bool reasonSpecified { } - /// Enumerates all possible company specific errors. + /// Describes reasons for LiveStreamEventDateTimeError. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CompanyError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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. - /// - 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. + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "LiveStreamEventDateTimeError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum LiveStreamEventDateTimeErrorReason { + /// Cannot create a new live stream event with a start date in the past. /// - 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. + START_DATE_TIME_IS_IN_PAST = 0, + /// End date must be after the start date. /// - INVALID_LABEL_ASSOCIATION = 6, - /// Indicates that the Company.Type does not support - /// default billing settings. + END_DATE_TIME_NOT_AFTER_START_DATE_TIME = 1, + /// DateTimes after 1 January 2037 are not supported. /// - INVALID_COMPANY_TYPE_FOR_DEFAULT_BILLING_SETTING = 7, - /// Indicates that the format of the default billing setting is wrong. + END_DATE_TIME_TOO_LATE = 2, + /// The value returned if the actual value is not exposed by the requested API + /// version. /// - 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, + UNKNOWN = 3, } - /// Caused by creating an AdUnit object with an invalid - /// hierarchy. + /// Lists all errors associated with LiveStreamEvent + /// CDN configurations. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class AdUnitHierarchyError : ApiError { - private AdUnitHierarchyErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class LiveStreamEventCdnSettingsError : ApiError { + private LiveStreamEventCdnSettingsErrorReason reasonField; private bool reasonFieldSpecified; [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public AdUnitHierarchyErrorReason reason { + public LiveStreamEventCdnSettingsErrorReason reason { get { return this.reasonField; } @@ -34818,22 +34442,20 @@ public bool reasonSpecified { } + /// Describes reasons for LiveStreamEventCdnSettingsError. + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AdUnitHierarchyError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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.XmlTypeAttribute(TypeName = "LiveStreamEventCdnSettingsError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum LiveStreamEventCdnSettingsErrorReason { + /// CDN configurations in a single LiveStreamEvent + /// cannot have duplicate URL prefixes. /// - 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. + CDN_CONFIGURATIONS_MUST_HAVE_UNIQUE_CDN_URL_PREFIXES = 0, + /// Only CDN configurations of type can be listed in LiveStreamEvent#sourceContentConfigurations. /// - INVALID_PARENT = 1, + MUST_BE_LIVE_CDN_CONFIGURATION = 1, /// The value returned if the actual value is not exposed by the requested API /// version. /// @@ -34841,20 +34463,20 @@ public enum AdUnitHierarchyErrorReason { } - /// Error for AdSense related API calls. + /// Lists all errors associated with live stream event action. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class AdSenseAccountError : ApiError { - private AdSenseAccountErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class LiveStreamEventActionError : ApiError { + private LiveStreamEventActionErrorReason reasonField; private bool reasonFieldSpecified; [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public AdSenseAccountErrorReason reason { + public LiveStreamEventActionErrorReason reason { get { return this.reasonField; } @@ -34879,109 +34501,107 @@ public bool reasonSpecified { } + /// Describes reasons for LiveStreamEventActionError. + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AdSenseAccountError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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.XmlTypeAttribute(TypeName = "LiveStreamEventActionError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum LiveStreamEventActionErrorReason { + /// The operation is not applicable to the current status. /// - 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. + INVALID_STATUS_TRANSITION = 0, + /// The operation cannot be applied because the live stream event is archived. /// - GET_AD_SLOT_API_ERROR = 1, - /// An error occurred while trying to get an associated web property's ad channels. + IS_ARCHIVED = 1, + /// Both the live stream event slate and the network default slate are not set. /// - 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. + INVALID_SLATE_SETTING = 4, + /// The slate creative has not been transcoded. /// - 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. + SLATE_CREATIVE_NOT_TRANSCODED = 5, + /// Unable to activate live stream event that has an associated archived slate. /// - 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. + SLATE_CREATIVE_ARCHIVED = 6, + /// A live stream cannot be activated if it is using inactive DAI authentication + /// keys. /// - UNEXPECTED_API_RESPONSE_ERROR = 5, + 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 = 6, + UNKNOWN = 2, } [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", ConfigurationName = "Google.Api.Ads.AdManager.v201808.InventoryServiceInterface")] - public interface InventoryServiceInterface + [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", ConfigurationName = "Google.Api.Ads.AdManager.v201908.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.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201908.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); + Wrappers.LiveStreamEventService.createLiveStreamEventsResponse createLiveStreamEvents(Wrappers.LiveStreamEventService.createLiveStreamEventsRequest request); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task createAdUnitsAsync(Wrappers.InventoryService.createAdUnitsRequest request); + 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.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201908.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); + Google.Api.Ads.AdManager.v201908.LiveStreamEventPage getLiveStreamEventsByStatement(Google.Api.Ads.AdManager.v201908.Statement filterStatement); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task getAdUnitSizesByStatementAsync(Wrappers.InventoryService.getAdUnitSizesByStatementRequest request); + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task getLiveStreamEventsByStatementAsync(Google.Api.Ads.AdManager.v201908.Statement filterStatement); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201908.ApiException), Action = "", Name = "ApiExceptionFault")] [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v201808.AdUnitPage getAdUnitsByStatement(Google.Api.Ads.AdManager.v201808.Statement filterStatement); + Google.Api.Ads.AdManager.v201908.UpdateResult performLiveStreamEventAction(Google.Api.Ads.AdManager.v201908.LiveStreamEventAction liveStreamEventAction, Google.Api.Ads.AdManager.v201908.Statement filterStatement); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getAdUnitsByStatementAsync(Google.Api.Ads.AdManager.v201808.Statement filterStatement); + System.Threading.Tasks.Task performLiveStreamEventActionAsync(Google.Api.Ads.AdManager.v201908.LiveStreamEventAction liveStreamEventAction, Google.Api.Ads.AdManager.v201908.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.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201908.ApiException), Action = "", Name = "ApiExceptionFault")] [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v201808.UpdateResult performAdUnitAction(Google.Api.Ads.AdManager.v201808.AdUnitAction adUnitAction, Google.Api.Ads.AdManager.v201808.Statement filterStatement); + Wrappers.LiveStreamEventService.registerSessionsForMonitoringResponse registerSessionsForMonitoring(Wrappers.LiveStreamEventService.registerSessionsForMonitoringRequest request); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task performAdUnitActionAsync(Google.Api.Ads.AdManager.v201808.AdUnitAction adUnitAction, Google.Api.Ads.AdManager.v201808.Statement filterStatement); + System.Threading.Tasks.Task registerSessionsForMonitoringAsync(Wrappers.LiveStreamEventService.registerSessionsForMonitoringRequest 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.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201908.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); + Wrappers.LiveStreamEventService.updateLiveStreamEventsResponse updateLiveStreamEvents(Wrappers.LiveStreamEventService.updateLiveStreamEventsRequest request); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task updateAdUnitsAsync(Wrappers.InventoryService.updateAdUnitsRequest request); + System.Threading.Tasks.Task updateLiveStreamEventsAsync(Wrappers.LiveStreamEventService.updateLiveStreamEventsRequest request); } - /// Captures a page of AdUnit objects. + /// Captures a page of LiveStreamEvent objects. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class AdUnitPage { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class LiveStreamEventPage { private int totalResultSetSizeField; private bool totalResultSetSizeFieldSpecified; @@ -34990,7 +34610,7 @@ public partial class AdUnitPage { private bool startIndexFieldSpecified; - private AdUnit[] resultsField; + private LiveStreamEvent[] resultsField; /// The size of the total result set to which this page belongs. /// @@ -35044,10 +34664,10 @@ public bool startIndexSpecified { } } - /// The collection of ad units contained within this page. + /// The collection of live stream events contained within this page. /// [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] - public AdUnit[] results { + public LiveStreamEvent[] results { get { return this.resultsField; } @@ -35058,243 +34678,271 @@ public AdUnit[] results { } - /// Represents the actions that can be performed on AdUnit + /// 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.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public abstract partial class LiveStreamEventAction { + } + + + /// 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.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class RefreshLiveStreamEventMasterPlaylists : LiveStreamEventAction { + } + + + /// The action used for pausing LiveStreamEvent /// 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.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public abstract partial class AdUnitAction { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class PauseLiveStreamEvents : LiveStreamEventAction { } - /// The action used for deactivating AdUnit objects. + /// The action used for pausing ads for LiveStreamEvent objects. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class DeactivateAdUnits : AdUnitAction { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class PauseLiveStreamEventAds : LiveStreamEventAction { } - /// The action used for archiving AdUnit objects. + /// The action used for archiving LiveStreamEvent + /// objects. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ArchiveAdUnits : AdUnitAction { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class ArchiveLiveStreamEvents : LiveStreamEventAction { } - /// The action used for activating AdUnit objects. + /// The action used for activating LiveStreamEvent + /// objects. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ActivateAdUnits : AdUnitAction { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class ActivateLiveStreamEvents : LiveStreamEventAction { } [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public interface InventoryServiceInterfaceChannel : Google.Api.Ads.AdManager.v201808.InventoryServiceInterface, System.ServiceModel.IClientChannel + public interface LiveStreamEventServiceInterfaceChannel : Google.Api.Ads.AdManager.v201908.LiveStreamEventServiceInterface, 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.

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

This feature is not yet + /// openly available for DFP 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 InventoryService : AdManagerSoapClient, IInventoryService { - /// Creates a new instance of the class. - /// - public InventoryService() { + public partial class LiveStreamEventService : AdManagerSoapClient, ILiveStreamEventService { + /// Creates a new instance of the + /// class. + public LiveStreamEventService() { } - /// Creates a new instance of the class. - /// - public InventoryService(string endpointConfigurationName) + /// Creates a new instance of the + /// class. + public LiveStreamEventService(string endpointConfigurationName) : base(endpointConfigurationName) { } - /// Creates a new instance of the class. - /// - public InventoryService(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 InventoryService(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 InventoryService(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.InventoryService.createAdUnitsResponse Google.Api.Ads.AdManager.v201808.InventoryServiceInterface.createAdUnits(Wrappers.InventoryService.createAdUnitsRequest request) { - return base.Channel.createAdUnits(request); + Wrappers.LiveStreamEventService.createLiveStreamEventsResponse Google.Api.Ads.AdManager.v201908.LiveStreamEventServiceInterface.createLiveStreamEvents(Wrappers.LiveStreamEventService.createLiveStreamEventsRequest request) { + return base.Channel.createLiveStreamEvents(request); } - /// Creates new AdUnit objects. - /// the ad units to create - /// the created ad units, with their IDs filled in - public virtual Google.Api.Ads.AdManager.v201808.AdUnit[] createAdUnits(Google.Api.Ads.AdManager.v201808.AdUnit[] adUnits) { - Wrappers.InventoryService.createAdUnitsRequest inValue = new Wrappers.InventoryService.createAdUnitsRequest(); - inValue.adUnits = adUnits; - Wrappers.InventoryService.createAdUnitsResponse retVal = ((Google.Api.Ads.AdManager.v201808.InventoryServiceInterface)(this)).createAdUnits(inValue); + /// Creates new LiveStreamEvent objects. The following + /// fields are required: + /// the live stream events to create + /// the created live stream events with their IDs filled in + public virtual Google.Api.Ads.AdManager.v201908.LiveStreamEvent[] createLiveStreamEvents(Google.Api.Ads.AdManager.v201908.LiveStreamEvent[] liveStreamEvents) { + Wrappers.LiveStreamEventService.createLiveStreamEventsRequest inValue = new Wrappers.LiveStreamEventService.createLiveStreamEventsRequest(); + inValue.liveStreamEvents = liveStreamEvents; + Wrappers.LiveStreamEventService.createLiveStreamEventsResponse retVal = ((Google.Api.Ads.AdManager.v201908.LiveStreamEventServiceInterface)(this)).createLiveStreamEvents(inValue); return retVal.rval; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201808.InventoryServiceInterface.createAdUnitsAsync(Wrappers.InventoryService.createAdUnitsRequest request) { - return base.Channel.createAdUnitsAsync(request); + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201908.LiveStreamEventServiceInterface.createLiveStreamEventsAsync(Wrappers.LiveStreamEventService.createLiveStreamEventsRequest request) { + return base.Channel.createLiveStreamEventsAsync(request); } - public virtual System.Threading.Tasks.Task createAdUnitsAsync(Google.Api.Ads.AdManager.v201808.AdUnit[] adUnits) { - Wrappers.InventoryService.createAdUnitsRequest inValue = new Wrappers.InventoryService.createAdUnitsRequest(); - inValue.adUnits = adUnits; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201808.InventoryServiceInterface)(this)).createAdUnitsAsync(inValue)).Result.rval); + public virtual System.Threading.Tasks.Task createLiveStreamEventsAsync(Google.Api.Ads.AdManager.v201908.LiveStreamEvent[] liveStreamEvents) { + Wrappers.LiveStreamEventService.createLiveStreamEventsRequest inValue = new Wrappers.LiveStreamEventService.createLiveStreamEventsRequest(); + inValue.liveStreamEvents = liveStreamEvents; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201908.LiveStreamEventServiceInterface)(this)).createLiveStreamEventsAsync(inValue)).Result.rval); } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.InventoryService.getAdUnitSizesByStatementResponse Google.Api.Ads.AdManager.v201808.InventoryServiceInterface.getAdUnitSizesByStatement(Wrappers.InventoryService.getAdUnitSizesByStatementRequest request) { - return base.Channel.getAdUnitSizesByStatement(request); + /// 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
+ ///
a Publisher Query Language statement to filter a + /// list of live stream events + /// the live stream events that match the filter + public virtual Google.Api.Ads.AdManager.v201908.LiveStreamEventPage getLiveStreamEventsByStatement(Google.Api.Ads.AdManager.v201908.Statement filterStatement) { + return base.Channel.getLiveStreamEventsByStatement(filterStatement); } - /// Gets a set of AdUnitSize objects that satisfy the given - /// Statement#query. The following fields are - /// supported for filtering: - ///
PQL Property Object Property
targetPlatformTargetPlatform
An exception - /// will be thrown for queries with unsupported fields. Paging is not supported, as - /// aren't the LIMIT and OFFSET PQL keywords. Only "=" operator is supported. - ///
a Publisher Query Language statement used to - /// filter a set of ad unit sizes - /// the ad unit sizes that match the given filter - public virtual Google.Api.Ads.AdManager.v201808.AdUnitSize[] getAdUnitSizesByStatement(Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - Wrappers.InventoryService.getAdUnitSizesByStatementRequest inValue = new Wrappers.InventoryService.getAdUnitSizesByStatementRequest(); - inValue.filterStatement = filterStatement; - Wrappers.InventoryService.getAdUnitSizesByStatementResponse retVal = ((Google.Api.Ads.AdManager.v201808.InventoryServiceInterface)(this)).getAdUnitSizesByStatement(inValue); - return retVal.rval; + public virtual System.Threading.Tasks.Task getLiveStreamEventsByStatementAsync(Google.Api.Ads.AdManager.v201908.Statement filterStatement) { + return base.Channel.getLiveStreamEventsByStatementAsync(filterStatement); } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201808.InventoryServiceInterface.getAdUnitSizesByStatementAsync(Wrappers.InventoryService.getAdUnitSizesByStatementRequest request) { - return base.Channel.getAdUnitSizesByStatementAsync(request); + /// Performs actions on LiveStreamEvent objects that + /// match the given Statement#query. + /// the action to perform + /// a Publisher Query Language statement used to + /// filter a set of live stream events + /// the result of the action performed + public virtual Google.Api.Ads.AdManager.v201908.UpdateResult performLiveStreamEventAction(Google.Api.Ads.AdManager.v201908.LiveStreamEventAction liveStreamEventAction, Google.Api.Ads.AdManager.v201908.Statement filterStatement) { + return base.Channel.performLiveStreamEventAction(liveStreamEventAction, filterStatement); } - public virtual System.Threading.Tasks.Task getAdUnitSizesByStatementAsync(Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - Wrappers.InventoryService.getAdUnitSizesByStatementRequest inValue = new Wrappers.InventoryService.getAdUnitSizesByStatementRequest(); - inValue.filterStatement = filterStatement; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201808.InventoryServiceInterface)(this)).getAdUnitSizesByStatementAsync(inValue)).Result.rval); + public virtual System.Threading.Tasks.Task performLiveStreamEventActionAsync(Google.Api.Ads.AdManager.v201908.LiveStreamEventAction liveStreamEventAction, Google.Api.Ads.AdManager.v201908.Statement filterStatement) { + return base.Channel.performLiveStreamEventActionAsync(liveStreamEventAction, filterStatement); } - /// 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
- ///
a Publisher Query Language statement used to - /// filter a set of ad units - /// the ad units that match the given filter - public virtual Google.Api.Ads.AdManager.v201808.AdUnitPage getAdUnitsByStatement(Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.getAdUnitsByStatement(filterStatement); + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + Wrappers.LiveStreamEventService.registerSessionsForMonitoringResponse Google.Api.Ads.AdManager.v201908.LiveStreamEventServiceInterface.registerSessionsForMonitoring(Wrappers.LiveStreamEventService.registerSessionsForMonitoringRequest request) { + return base.Channel.registerSessionsForMonitoring(request); } - public virtual System.Threading.Tasks.Task getAdUnitsByStatementAsync(Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.getAdUnitsByStatementAsync(filterStatement); + /// 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.

+ ///
a list of session IDs to register for + /// monitoring + /// the list of session IDs that were registered for monitoring + /// if there is an error registering any of the + /// session IDs + public virtual string[] registerSessionsForMonitoring(string[] sessionIds) { + Wrappers.LiveStreamEventService.registerSessionsForMonitoringRequest inValue = new Wrappers.LiveStreamEventService.registerSessionsForMonitoringRequest(); + inValue.sessionIds = sessionIds; + Wrappers.LiveStreamEventService.registerSessionsForMonitoringResponse retVal = ((Google.Api.Ads.AdManager.v201908.LiveStreamEventServiceInterface)(this)).registerSessionsForMonitoring(inValue); + return retVal.rval; } - /// Performs actions on AdUnit objects that match the given Statement#query. - /// the action to perform - /// a Publisher Query Language statement used to - /// filter a set of ad units - /// the result of the action performed - public virtual Google.Api.Ads.AdManager.v201808.UpdateResult performAdUnitAction(Google.Api.Ads.AdManager.v201808.AdUnitAction adUnitAction, Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.performAdUnitAction(adUnitAction, filterStatement); + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201908.LiveStreamEventServiceInterface.registerSessionsForMonitoringAsync(Wrappers.LiveStreamEventService.registerSessionsForMonitoringRequest request) { + return base.Channel.registerSessionsForMonitoringAsync(request); } - public virtual System.Threading.Tasks.Task performAdUnitActionAsync(Google.Api.Ads.AdManager.v201808.AdUnitAction adUnitAction, Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.performAdUnitActionAsync(adUnitAction, filterStatement); + public virtual System.Threading.Tasks.Task registerSessionsForMonitoringAsync(string[] sessionIds) { + Wrappers.LiveStreamEventService.registerSessionsForMonitoringRequest inValue = new Wrappers.LiveStreamEventService.registerSessionsForMonitoringRequest(); + inValue.sessionIds = sessionIds; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201908.LiveStreamEventServiceInterface)(this)).registerSessionsForMonitoringAsync(inValue)).Result.rval); } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.InventoryService.updateAdUnitsResponse Google.Api.Ads.AdManager.v201808.InventoryServiceInterface.updateAdUnits(Wrappers.InventoryService.updateAdUnitsRequest request) { - return base.Channel.updateAdUnits(request); + Wrappers.LiveStreamEventService.updateLiveStreamEventsResponse Google.Api.Ads.AdManager.v201908.LiveStreamEventServiceInterface.updateLiveStreamEvents(Wrappers.LiveStreamEventService.updateLiveStreamEventsRequest request) { + return base.Channel.updateLiveStreamEvents(request); } - /// Updates the specified AdUnit objects. - /// the ad units to update - /// the updated ad units - public virtual Google.Api.Ads.AdManager.v201808.AdUnit[] updateAdUnits(Google.Api.Ads.AdManager.v201808.AdUnit[] adUnits) { - Wrappers.InventoryService.updateAdUnitsRequest inValue = new Wrappers.InventoryService.updateAdUnitsRequest(); - inValue.adUnits = adUnits; - Wrappers.InventoryService.updateAdUnitsResponse retVal = ((Google.Api.Ads.AdManager.v201808.InventoryServiceInterface)(this)).updateAdUnits(inValue); + /// Updates the specified LiveStreamEvent objects. + /// the live stream events to update + /// the updated live stream events + /// if there is an error updating the live stream + /// events + public virtual Google.Api.Ads.AdManager.v201908.LiveStreamEvent[] updateLiveStreamEvents(Google.Api.Ads.AdManager.v201908.LiveStreamEvent[] liveStreamEvents) { + Wrappers.LiveStreamEventService.updateLiveStreamEventsRequest inValue = new Wrappers.LiveStreamEventService.updateLiveStreamEventsRequest(); + inValue.liveStreamEvents = liveStreamEvents; + Wrappers.LiveStreamEventService.updateLiveStreamEventsResponse retVal = ((Google.Api.Ads.AdManager.v201908.LiveStreamEventServiceInterface)(this)).updateLiveStreamEvents(inValue); return retVal.rval; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201808.InventoryServiceInterface.updateAdUnitsAsync(Wrappers.InventoryService.updateAdUnitsRequest request) { - return base.Channel.updateAdUnitsAsync(request); + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201908.LiveStreamEventServiceInterface.updateLiveStreamEventsAsync(Wrappers.LiveStreamEventService.updateLiveStreamEventsRequest request) { + return base.Channel.updateLiveStreamEventsAsync(request); } - public virtual System.Threading.Tasks.Task updateAdUnitsAsync(Google.Api.Ads.AdManager.v201808.AdUnit[] adUnits) { - Wrappers.InventoryService.updateAdUnitsRequest inValue = new Wrappers.InventoryService.updateAdUnitsRequest(); - inValue.adUnits = adUnits; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201808.InventoryServiceInterface)(this)).updateAdUnitsAsync(inValue)).Result.rval); + public virtual System.Threading.Tasks.Task updateLiveStreamEventsAsync(Google.Api.Ads.AdManager.v201908.LiveStreamEvent[] liveStreamEvents) { + Wrappers.LiveStreamEventService.updateLiveStreamEventsRequest inValue = new Wrappers.LiveStreamEventService.updateLiveStreamEventsRequest(); + inValue.liveStreamEvents = liveStreamEvents; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201908.LiveStreamEventServiceInterface)(this)).updateLiveStreamEventsAsync(inValue)).Result.rval); } } - namespace Wrappers.LabelService + 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 = "createLabels", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201808", IsWrapped = true)] - public partial class createLabelsRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("labels")] - public Google.Api.Ads.AdManager.v201808.Label[] labels; + [System.ServiceModel.MessageContractAttribute(WrapperName = "createMobileApplications", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201908", IsWrapped = true)] + public partial class createMobileApplicationsRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("mobileApplications")] + public Google.Api.Ads.AdManager.v201908.MobileApplication[] mobileApplications; - /// Creates a new instance of the class. - /// - public createLabelsRequest() { + /// Creates a new instance of the class. + public createMobileApplicationsRequest() { } - /// Creates a new instance of the class. - /// - public createLabelsRequest(Google.Api.Ads.AdManager.v201808.Label[] labels) { - this.labels = labels; + /// Creates a new instance of the class. + public createMobileApplicationsRequest(Google.Api.Ads.AdManager.v201908.MobileApplication[] mobileApplications) { + this.mobileApplications = mobileApplications; } } @@ -35302,20 +34950,20 @@ public createLabelsRequest(Google.Api.Ads.AdManager.v201808.Label[] 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 = "createLabelsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201808", IsWrapped = true)] - public partial class createLabelsResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "createMobileApplicationsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201908", IsWrapped = true)] + public partial class createMobileApplicationsResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v201808.Label[] rval; + public Google.Api.Ads.AdManager.v201908.MobileApplication[] rval; - /// Creates a new instance of the - /// class. - public createLabelsResponse() { + /// Creates a new instance of the class. + public createMobileApplicationsResponse() { } - /// Creates a new instance of the - /// class. - public createLabelsResponse(Google.Api.Ads.AdManager.v201808.Label[] rval) { + /// Creates a new instance of the class. + public createMobileApplicationsResponse(Google.Api.Ads.AdManager.v201908.MobileApplication[] rval) { this.rval = rval; } } @@ -35324,21 +34972,21 @@ public createLabelsResponse(Google.Api.Ads.AdManager.v201808.Label[] 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 = "updateLabels", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201808", IsWrapped = true)] - public partial class updateLabelsRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("labels")] - public Google.Api.Ads.AdManager.v201808.Label[] labels; + [System.ServiceModel.MessageContractAttribute(WrapperName = "updateMobileApplications", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201908", IsWrapped = true)] + public partial class updateMobileApplicationsRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("mobileApplications")] + public Google.Api.Ads.AdManager.v201908.MobileApplication[] mobileApplications; - /// Creates a new instance of the class. - /// - public updateLabelsRequest() { + /// Creates a new instance of the class. + public updateMobileApplicationsRequest() { } - /// Creates a new instance of the class. - /// - public updateLabelsRequest(Google.Api.Ads.AdManager.v201808.Label[] labels) { - this.labels = labels; + /// Creates a new instance of the class. + public updateMobileApplicationsRequest(Google.Api.Ads.AdManager.v201908.MobileApplication[] mobileApplications) { + this.mobileApplications = mobileApplications; } } @@ -35346,48 +34994,65 @@ public updateLabelsRequest(Google.Api.Ads.AdManager.v201808.Label[] 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/v201808", IsWrapped = true)] - public partial class updateLabelsResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "updateMobileApplicationsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201908", IsWrapped = true)] + public partial class updateMobileApplicationsResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v201808.Label[] rval; + public Google.Api.Ads.AdManager.v201908.MobileApplication[] rval; - /// Creates a new instance of the - /// class. - public updateLabelsResponse() { + /// Creates a new instance of the class. + public updateMobileApplicationsResponse() { } - /// Creates a new instance of the - /// class. - public updateLabelsResponse(Google.Api.Ads.AdManager.v201808.Label[] rval) { + /// Creates a new instance of the class. + public updateMobileApplicationsResponse(Google.Api.Ads.AdManager.v201908.MobileApplication[] rval) { this.rval = rval; } } } - /// A Label is additional information that can be added to an entity. + /// 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.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class Label { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class MobileApplication { private long idField; private bool idFieldSpecified; - private string nameField; + private string displayNameField; - private string descriptionField; + private string appStoreIdField; - private bool isActiveField; + private MobileApplicationStore appStoreField; - private bool isActiveFieldSpecified; + private bool appStoreFieldSpecified; - private LabelType[] typesField; + private bool isArchivedField; - /// Unique ID of the Label. This value is readonly and is assigned by - /// Google. + private bool isArchivedFieldSpecified; + + private string appStoreNameField; + + private string developerNameField; + + private MobileApplicationPlatform platformField; + + private bool platformFieldSpecified; + + private bool isFreeField; + + private bool isFreeFieldSpecified; + + private string downloadUrlField; + + /// 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 { @@ -35413,160 +35078,382 @@ public bool idSpecified { } } - /// Name of the Label. This is value is required to create a label and - /// has a maximum length of 127 characters. + /// The display name of the mobile application. This attribute is required and has a + /// maximum length of 255 characters. /// [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; } } - /// A description of the label. This value is optional and its maximum length is 255 - /// characters. + /// 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 = 2)] - public string description { + public string appStoreId { get { - return this.descriptionField; + return this.appStoreIdField; } set { - this.descriptionField = value; + this.appStoreIdField = value; } } - /// Specifies whether or not the label is active. This attribute is read-only. + /// The app store the mobile application belongs to. This attribute is required for + /// creation and then is read-only. /// [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public bool isActive { + public MobileApplicationStore appStore { get { - return this.isActiveField; + return this.appStoreField; } set { - this.isActiveField = value; - this.isActiveSpecified = true; + this.appStoreField = value; + this.appStoreSpecified = 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 appStoreSpecified { get { - return this.isActiveFieldSpecified; + return this.appStoreFieldSpecified; } set { - this.isActiveFieldSpecified = value; + this.appStoreFieldSpecified = value; } } - /// The types of the Label. + /// The archival status of the mobile application. This attribute is read-only. /// - [System.Xml.Serialization.XmlElementAttribute("types", Order = 4)] - public LabelType[] types { + [System.Xml.Serialization.XmlElementAttribute(Order = 4)] + public bool isArchived { get { - return this.typesField; + return this.isArchivedField; } set { - this.typesField = value; + 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; + } + } - /// Represents the types of labels supported. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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, - /// The value returned if the actual value is not exposed by the requested API - /// version. + /// The name of the application on the app store. This attribute is read-only and + /// populated by Google. /// - UNKNOWN = 4, - } + [System.Xml.Serialization.XmlElementAttribute(Order = 5)] + public string appStoreName { + get { + return this.appStoreNameField; + } + set { + this.appStoreNameField = value; + } + } + + /// The name of the developer of the mobile application. This attribute is read-only + /// and populated by Google. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 6)] + public string developerName { + get { + return this.developerNameField; + } + set { + this.developerNameField = value; + } + } + + /// The platform the mobile application runs on. This attribute is read-only and + /// populated by Google. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 7)] + public MobileApplicationPlatform platform { + get { + return this.platformField; + } + set { + this.platformField = value; + this.platformSpecified = true; + } + } + + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool platformSpecified { + get { + return this.platformFieldSpecified; + } + set { + this.platformFieldSpecified = value; + } + } + + /// 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 = 8)] + public bool isFree { + get { + return this.isFreeField; + } + set { + this.isFreeField = value; + this.isFreeSpecified = true; + } + } + + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool isFreeSpecified { + get { + return this.isFreeFieldSpecified; + } + set { + this.isFreeFieldSpecified = value; + } + } + + /// 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(Order = 9)] + public string downloadUrl { + get { + return this.downloadUrlField; + } + set { + this.downloadUrlField = value; + } + } + } + + + /// A store a MobileApplication is available on. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum MobileApplicationStore { + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 0, + APPLE_ITUNES = 1, + GOOGLE_PLAY = 2, + } + + + /// A platform a MobileApplication can run on. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum MobileApplicationPlatform { + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 0, + ANDROID = 1, + IOS = 2, + } + + + /// Lists all errors associated with MobileApplication objects. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class MobileApplicationError : ApiError { + private MobileApplicationErrorReason reasonField; + + private bool reasonFieldSpecified; + + /// The error reason represented by an enum. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public MobileApplicationErrorReason 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 MobileApplication. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "MobileApplicationError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum MobileApplicationErrorReason { + /// Could not find the ID of the app being claimed in any app stores. + /// + INVALID_APP_ID = 0, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 1, + } + + + /// Lists all error reasons associated with performing actions on MobileApplication objects. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class MobileApplicationActionError : ApiError { + private MobileApplicationActionErrorReason reasonField; + + private bool reasonFieldSpecified; + + /// The error reason represented by an enum. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public MobileApplicationActionErrorReason 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.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "MobileApplicationActionError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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, + } [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", ConfigurationName = "Google.Api.Ads.AdManager.v201808.LabelServiceInterface")] - public interface LabelServiceInterface + [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", ConfigurationName = "Google.Api.Ads.AdManager.v201908.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.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201908.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); + Wrappers.MobileApplicationService.createMobileApplicationsResponse createMobileApplications(Wrappers.MobileApplicationService.createMobileApplicationsRequest request); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task createLabelsAsync(Wrappers.LabelService.createLabelsRequest request); + System.Threading.Tasks.Task createMobileApplicationsAsync(Wrappers.MobileApplicationService.createMobileApplicationsRequest request); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201908.ApiException), Action = "", Name = "ApiExceptionFault")] [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v201808.LabelPage getLabelsByStatement(Google.Api.Ads.AdManager.v201808.Statement filterStatement); + Google.Api.Ads.AdManager.v201908.MobileApplicationPage getMobileApplicationsByStatement(Google.Api.Ads.AdManager.v201908.Statement filterStatement); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getLabelsByStatementAsync(Google.Api.Ads.AdManager.v201808.Statement filterStatement); + System.Threading.Tasks.Task getMobileApplicationsByStatementAsync(Google.Api.Ads.AdManager.v201908.Statement filterStatement); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201908.ApiException), Action = "", Name = "ApiExceptionFault")] [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v201808.UpdateResult performLabelAction(Google.Api.Ads.AdManager.v201808.LabelAction labelAction, Google.Api.Ads.AdManager.v201808.Statement filterStatement); + Google.Api.Ads.AdManager.v201908.UpdateResult performMobileApplicationAction(Google.Api.Ads.AdManager.v201908.MobileApplicationAction mobileApplicationAction, Google.Api.Ads.AdManager.v201908.Statement filterStatement); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task performLabelActionAsync(Google.Api.Ads.AdManager.v201808.LabelAction labelAction, Google.Api.Ads.AdManager.v201808.Statement filterStatement); + System.Threading.Tasks.Task performMobileApplicationActionAsync(Google.Api.Ads.AdManager.v201908.MobileApplicationAction mobileApplicationAction, Google.Api.Ads.AdManager.v201908.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.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201908.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); + Wrappers.MobileApplicationService.updateMobileApplicationsResponse updateMobileApplications(Wrappers.MobileApplicationService.updateMobileApplicationsRequest request); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task updateLabelsAsync(Wrappers.LabelService.updateLabelsRequest request); + System.Threading.Tasks.Task updateMobileApplicationsAsync(Wrappers.MobileApplicationService.updateMobileApplicationsRequest request); } - /// Captures a page of Label objects. + /// Captures a page of mobile applications. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class LabelPage { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class MobileApplicationPage { private int totalResultSetSizeField; private bool totalResultSetSizeFieldSpecified; @@ -35575,7 +35462,7 @@ public partial class LabelPage { private bool startIndexFieldSpecified; - private Label[] resultsField; + private MobileApplication[] resultsField; /// The size of the total result set to which this page belongs. /// @@ -35629,10 +35516,10 @@ public bool startIndexSpecified { } } - /// The collection of labels contained within this page. + /// The collection of mobile applications contained within this page. /// [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] - public Label[] results { + public MobileApplication[] results { get { return this.resultsField; } @@ -35643,190 +35530,187 @@ public Label[] results { } - /// Represents the actions that can be performed on Label - /// objects. + /// Represents the actions that can be performed on mobile applications. /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(DeactivateLabels))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ActivateLabels))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ArchiveMobileApplications))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(UnarchiveMobileApplications))] [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public abstract partial class LabelAction { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public abstract partial class MobileApplicationAction { } - /// The action used for deactivating Label objects. + /// The action used to deactivate MobileApplication + /// objects. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class DeactivateLabels : LabelAction { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class ArchiveMobileApplications : MobileApplicationAction { } - /// The action used for activating Label objects. + /// The action used to activate MobileApplication + /// objects. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ActivateLabels : LabelAction { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class UnarchiveMobileApplications : MobileApplicationAction { } [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public interface LabelServiceInterfaceChannel : Google.Api.Ads.AdManager.v201808.LabelServiceInterface, System.ServiceModel.IClientChannel + public interface MobileApplicationServiceInterfaceChannel : Google.Api.Ads.AdManager.v201908.MobileApplicationServiceInterface, System.ServiceModel.IClientChannel { } - /// Provides methods for the creation and management of Labels. + /// Provides methods for retrieving MobileApplication objects. /// [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. - /// - public LabelService() { + public partial class MobileApplicationService : AdManagerSoapClient, IMobileApplicationService { + /// Creates a new instance of the + /// class. + public MobileApplicationService() { } - /// Creates a new instance of the class. - /// - public LabelService(string endpointConfigurationName) + /// Creates a new instance of the + /// class. + public MobileApplicationService(string endpointConfigurationName) : base(endpointConfigurationName) { } - /// Creates a new instance of the class. - /// - public LabelService(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 LabelService(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 LabelService(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.LabelService.createLabelsResponse Google.Api.Ads.AdManager.v201808.LabelServiceInterface.createLabels(Wrappers.LabelService.createLabelsRequest request) { - return base.Channel.createLabels(request); + Wrappers.MobileApplicationService.createMobileApplicationsResponse Google.Api.Ads.AdManager.v201908.MobileApplicationServiceInterface.createMobileApplications(Wrappers.MobileApplicationService.createMobileApplicationsRequest request) { + return base.Channel.createMobileApplications(request); } - /// Creates new Label objects. - /// the labels to create - /// the created labels with their IDs filled in - public virtual Google.Api.Ads.AdManager.v201808.Label[] createLabels(Google.Api.Ads.AdManager.v201808.Label[] labels) { - Wrappers.LabelService.createLabelsRequest inValue = new Wrappers.LabelService.createLabelsRequest(); - inValue.labels = labels; - Wrappers.LabelService.createLabelsResponse retVal = ((Google.Api.Ads.AdManager.v201808.LabelServiceInterface)(this)).createLabels(inValue); + /// Creates and claims mobile applications to be + /// used for targeting in the network. + /// the mobileApplications to create + /// the created mobileApplications with their IDs filled in + public virtual Google.Api.Ads.AdManager.v201908.MobileApplication[] createMobileApplications(Google.Api.Ads.AdManager.v201908.MobileApplication[] mobileApplications) { + Wrappers.MobileApplicationService.createMobileApplicationsRequest inValue = new Wrappers.MobileApplicationService.createMobileApplicationsRequest(); + inValue.mobileApplications = mobileApplications; + Wrappers.MobileApplicationService.createMobileApplicationsResponse retVal = ((Google.Api.Ads.AdManager.v201908.MobileApplicationServiceInterface)(this)).createMobileApplications(inValue); return retVal.rval; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201808.LabelServiceInterface.createLabelsAsync(Wrappers.LabelService.createLabelsRequest request) { - return base.Channel.createLabelsAsync(request); + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201908.MobileApplicationServiceInterface.createMobileApplicationsAsync(Wrappers.MobileApplicationService.createMobileApplicationsRequest request) { + return base.Channel.createMobileApplicationsAsync(request); } - public virtual System.Threading.Tasks.Task createLabelsAsync(Google.Api.Ads.AdManager.v201808.Label[] labels) { - Wrappers.LabelService.createLabelsRequest inValue = new Wrappers.LabelService.createLabelsRequest(); - inValue.labels = labels; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201808.LabelServiceInterface)(this)).createLabelsAsync(inValue)).Result.rval); + public virtual System.Threading.Tasks.Task createMobileApplicationsAsync(Google.Api.Ads.AdManager.v201908.MobileApplication[] mobileApplications) { + Wrappers.MobileApplicationService.createMobileApplicationsRequest inValue = new Wrappers.MobileApplicationService.createMobileApplicationsRequest(); + inValue.mobileApplications = mobileApplications; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201908.MobileApplicationServiceInterface)(this)).createMobileApplicationsAsync(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
name Label#name
description Label#description
isActive Label#isActive
+ /// 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
///
a Publisher Query Language statement used to - /// filter a set of labels. - /// the labels that match the given filter - public virtual Google.Api.Ads.AdManager.v201808.LabelPage getLabelsByStatement(Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.getLabelsByStatement(filterStatement); + /// filter a set of mobile applications. + /// the mobile applications that match the given filter + public virtual Google.Api.Ads.AdManager.v201908.MobileApplicationPage getMobileApplicationsByStatement(Google.Api.Ads.AdManager.v201908.Statement filterStatement) { + return base.Channel.getMobileApplicationsByStatement(filterStatement); } - public virtual System.Threading.Tasks.Task getLabelsByStatementAsync(Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.getLabelsByStatementAsync(filterStatement); + public virtual System.Threading.Tasks.Task getMobileApplicationsByStatementAsync(Google.Api.Ads.AdManager.v201908.Statement filterStatement) { + return base.Channel.getMobileApplicationsByStatementAsync(filterStatement); } - /// Performs actions on Label objects that match the given Statement#query. - /// the action to perform + /// Performs an action on mobile applications. + /// the action to perform /// a Publisher Query Language statement used to - /// filter a set of labels + /// filter a set of mobile applications. /// the result of the action performed - public virtual Google.Api.Ads.AdManager.v201808.UpdateResult performLabelAction(Google.Api.Ads.AdManager.v201808.LabelAction labelAction, Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.performLabelAction(labelAction, filterStatement); + public virtual Google.Api.Ads.AdManager.v201908.UpdateResult performMobileApplicationAction(Google.Api.Ads.AdManager.v201908.MobileApplicationAction mobileApplicationAction, Google.Api.Ads.AdManager.v201908.Statement filterStatement) { + return base.Channel.performMobileApplicationAction(mobileApplicationAction, filterStatement); } - public virtual System.Threading.Tasks.Task performLabelActionAsync(Google.Api.Ads.AdManager.v201808.LabelAction labelAction, Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.performLabelActionAsync(labelAction, filterStatement); + public virtual System.Threading.Tasks.Task performMobileApplicationActionAsync(Google.Api.Ads.AdManager.v201908.MobileApplicationAction mobileApplicationAction, Google.Api.Ads.AdManager.v201908.Statement filterStatement) { + return base.Channel.performMobileApplicationActionAsync(mobileApplicationAction, filterStatement); } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.LabelService.updateLabelsResponse Google.Api.Ads.AdManager.v201808.LabelServiceInterface.updateLabels(Wrappers.LabelService.updateLabelsRequest request) { - return base.Channel.updateLabels(request); + Wrappers.MobileApplicationService.updateMobileApplicationsResponse Google.Api.Ads.AdManager.v201908.MobileApplicationServiceInterface.updateMobileApplications(Wrappers.MobileApplicationService.updateMobileApplicationsRequest request) { + return base.Channel.updateMobileApplications(request); } - /// Updates the specified Label objects. - /// the labels to update - /// the updated labels - public virtual Google.Api.Ads.AdManager.v201808.Label[] updateLabels(Google.Api.Ads.AdManager.v201808.Label[] labels) { - Wrappers.LabelService.updateLabelsRequest inValue = new Wrappers.LabelService.updateLabelsRequest(); - inValue.labels = labels; - Wrappers.LabelService.updateLabelsResponse retVal = ((Google.Api.Ads.AdManager.v201808.LabelServiceInterface)(this)).updateLabels(inValue); + /// Updates the specified mobile applications. + /// the mobile applications to be updated + /// the updated mobileApplications + public virtual Google.Api.Ads.AdManager.v201908.MobileApplication[] updateMobileApplications(Google.Api.Ads.AdManager.v201908.MobileApplication[] mobileApplications) { + Wrappers.MobileApplicationService.updateMobileApplicationsRequest inValue = new Wrappers.MobileApplicationService.updateMobileApplicationsRequest(); + inValue.mobileApplications = mobileApplications; + Wrappers.MobileApplicationService.updateMobileApplicationsResponse retVal = ((Google.Api.Ads.AdManager.v201908.MobileApplicationServiceInterface)(this)).updateMobileApplications(inValue); return retVal.rval; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201808.LabelServiceInterface.updateLabelsAsync(Wrappers.LabelService.updateLabelsRequest request) { - return base.Channel.updateLabelsAsync(request); + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201908.MobileApplicationServiceInterface.updateMobileApplicationsAsync(Wrappers.MobileApplicationService.updateMobileApplicationsRequest request) { + return base.Channel.updateMobileApplicationsAsync(request); } - public virtual System.Threading.Tasks.Task updateLabelsAsync(Google.Api.Ads.AdManager.v201808.Label[] labels) { - Wrappers.LabelService.updateLabelsRequest inValue = new Wrappers.LabelService.updateLabelsRequest(); - inValue.labels = labels; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201808.LabelServiceInterface)(this)).updateLabelsAsync(inValue)).Result.rval); + public virtual System.Threading.Tasks.Task updateMobileApplicationsAsync(Google.Api.Ads.AdManager.v201908.MobileApplication[] mobileApplications) { + Wrappers.MobileApplicationService.updateMobileApplicationsRequest inValue = new Wrappers.MobileApplicationService.updateMobileApplicationsRequest(); + inValue.mobileApplications = mobileApplications; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201908.MobileApplicationServiceInterface)(this)).updateMobileApplicationsAsync(inValue)).Result.rval); } } - namespace Wrappers.LineItemCreativeAssociationService + 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 = "createLineItemCreativeAssociations", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201808", IsWrapped = true)] - public partial class createLineItemCreativeAssociationsRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("lineItemCreativeAssociations")] - public Google.Api.Ads.AdManager.v201808.LineItemCreativeAssociation[] lineItemCreativeAssociations; - - /// Creates a new instance of the class. - public createLineItemCreativeAssociationsRequest() { - } - - /// Creates a new instance of the class. - public createLineItemCreativeAssociationsRequest(Google.Api.Ads.AdManager.v201808.LineItemCreativeAssociation[] lineItemCreativeAssociations) { - this.lineItemCreativeAssociations = lineItemCreativeAssociations; + [System.ServiceModel.MessageContractAttribute(WrapperName = "getAllNetworks", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201908", IsWrapped = true)] + public partial class getAllNetworksRequest { + /// Creates a new instance of the + /// class. + public getAllNetworksRequest() { } } @@ -35834,15760 +35718,216 @@ public createLineItemCreativeAssociationsRequest(Google.Api.Ads.AdManager.v20180 [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/v201808", IsWrapped = true)] - public partial class createLineItemCreativeAssociationsResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "getAllNetworksResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201908", IsWrapped = true)] + public partial class getAllNetworksResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v201808.LineItemCreativeAssociation[] rval; + public Google.Api.Ads.AdManager.v201908.Network[] rval; - /// Creates a new instance of the class. - public createLineItemCreativeAssociationsResponse() { + /// Creates a new instance of the + /// class. + public getAllNetworksResponse() { } - /// Creates a new instance of the class. - public createLineItemCreativeAssociationsResponse(Google.Api.Ads.AdManager.v201808.LineItemCreativeAssociation[] rval) { + /// Creates a new instance of the + /// class. + public getAllNetworksResponse(Google.Api.Ads.AdManager.v201908.Network[] rval) { this.rval = rval; } } + } + /// Network represents a network. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class Network { + private long idField; + private bool 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 = "getPreviewUrlsForNativeStyles", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201808", IsWrapped = true)] - public partial class getPreviewUrlsForNativeStylesRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - public long lineItemId; + private string displayNameField; - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 1)] - public long creativeId; + private string networkCodeField; - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 2)] - public string siteUrl; + private string propertyCodeField; - /// Creates a new instance of the class. - public getPreviewUrlsForNativeStylesRequest() { - } + private string timeZoneField; - /// Creates a new instance of the class. - public getPreviewUrlsForNativeStylesRequest(long lineItemId, long creativeId, string siteUrl) { - this.lineItemId = lineItemId; - this.creativeId = creativeId; - this.siteUrl = siteUrl; - } - } + private string currencyCodeField; + private string[] secondaryCurrencyCodesField; - [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/v201808", IsWrapped = true)] - public partial class getPreviewUrlsForNativeStylesResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v201808.CreativeNativeStylePreview[] rval; + private string effectiveRootAdUnitIdField; - /// Creates a new instance of the class. - public getPreviewUrlsForNativeStylesResponse() { - } + private bool isTestField; - /// Creates a new instance of the class. - public getPreviewUrlsForNativeStylesResponse(Google.Api.Ads.AdManager.v201808.CreativeNativeStylePreview[] rval) { - this.rval = rval; + private bool isTestFieldSpecified; + + /// The unique ID of the Network. 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; } } - - [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/v201808", IsWrapped = true)] - public partial class updateLineItemCreativeAssociationsRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("lineItemCreativeAssociations")] - public Google.Api.Ads.AdManager.v201808.LineItemCreativeAssociation[] lineItemCreativeAssociations; - - /// Creates a new instance of the class. - public updateLineItemCreativeAssociationsRequest() { + /// 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 updateLineItemCreativeAssociationsRequest(Google.Api.Ads.AdManager.v201808.LineItemCreativeAssociation[] lineItemCreativeAssociations) { - this.lineItemCreativeAssociations = lineItemCreativeAssociations; + 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 = "updateLineItemCreativeAssociationsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201808", IsWrapped = true)] - public partial class updateLineItemCreativeAssociationsResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v201808.LineItemCreativeAssociation[] rval; - - /// Creates a new instance of the class. - public updateLineItemCreativeAssociationsResponse() { + /// The display name of the network. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public string displayName { + get { + return this.displayNameField; } - - /// Creates a new instance of the class. - public updateLineItemCreativeAssociationsResponse(Google.Api.Ads.AdManager.v201808.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.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class Long_StatsMapEntry { - private long keyField; - - private bool keyFieldSpecified; - - private Stats valueField; - - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public long key { - get { - return this.keyField; - } - set { - this.keyField = value; - this.keySpecified = true; - } - } - - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool keySpecified { - get { - return this.keyFieldSpecified; - } - set { - this.keyFieldSpecified = value; - } - } - - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public Stats value { - get { - return this.valueField; - } - set { - this.valueField = value; - } - } - } - - - /// Contains statistics such as impressions, clicks delivered and cost for LineItemCreativeAssociation objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class LineItemCreativeAssociationStats { - private Stats statsField; - - private Long_StatsMapEntry[] creativeSetStatsField; - - private Money costInOrderCurrencyField; - - /// A Stats object that holds delivered impressions and clicks - /// statistics. - /// - [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. - /// - [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. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public Money costInOrderCurrency { - get { - return this.costInOrderCurrencyField; - } - set { - this.costInOrderCurrencyField = 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. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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; - - 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 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; - } - } - - /// 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 master creative.

- ///
- [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; + set { + this.displayNameField = 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 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 long creativeSetId { - get { - return this.creativeSetIdField; - } - set { - this.creativeSetIdField = value; - this.creativeSetIdSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool creativeSetIdSpecified { + public string networkCode { get { - return this.creativeSetIdFieldSpecified; + return this.networkCodeField; } set { - this.creativeSetIdFieldSpecified = value; + this.networkCodeField = 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. + /// The property code. This field is read-only. /// [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 { + public string propertyCode { get { - return this.manualCreativeRotationWeightFieldSpecified; + return this.propertyCodeField; } set { - this.manualCreativeRotationWeightFieldSpecified = value; + this.propertyCodeField = 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. + /// The time zone associated with the delivery of orders and reporting. This field + /// is read-only. /// [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 { + public string timeZone { get { - return this.sequentialCreativeRotationIndexFieldSpecified; + return this.timeZoneField; } set { - this.sequentialCreativeRotationIndexFieldSpecified = value; + this.timeZoneField = value; } } - /// Overrides the value set for LineItem#startDateTime. This value is optional - /// and is only valid for Ad Manager 360 networks. + /// The primary currency code. This field is read-only. /// [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. - /// - [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 { + public string currencyCode { get { - return this.targetingNameField; + return this.currencyCodeField; } set { - this.targetingNameField = value; + this.currencyCodeField = value; } } - } - - - /// Describes the status of the association. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "LineItemCreativeAssociation.Status", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class LineItemCreativeAssociationOperationError : ApiError { - private LineItemCreativeAssociationOperationErrorReason reasonField; - private bool reasonFieldSpecified; - - /// The error reason represented by an enum. + /// Currencies that can be used as an alternative to the Network#currencyCode for trafficking line items. /// - [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 { + [System.Xml.Serialization.XmlElementAttribute("secondaryCurrencyCodes", Order = 6)] + public string[] secondaryCurrencyCodes { get { - return this.reasonFieldSpecified; + return this.secondaryCurrencyCodesField; } set { - this.reasonFieldSpecified = value; + this.secondaryCurrencyCodesField = value; } - } - } - - - /// The reasons for the target error. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "LineItemCreativeAssociationOperationError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CreativePreviewError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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, - /// 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/v201808", ConfigurationName = "Google.Api.Ads.AdManager.v201808.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.v201808.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.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v201808.LineItemCreativeAssociationPage getLineItemCreativeAssociationsByStatement(Google.Api.Ads.AdManager.v201808.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getLineItemCreativeAssociationsByStatementAsync(Google.Api.Ads.AdManager.v201808.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201808.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.v201808.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.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v201808.UpdateResult performLineItemCreativeAssociationAction(Google.Api.Ads.AdManager.v201808.LineItemCreativeAssociationAction lineItemCreativeAssociationAction, Google.Api.Ads.AdManager.v201808.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task performLineItemCreativeAssociationActionAsync(Google.Api.Ads.AdManager.v201808.LineItemCreativeAssociationAction lineItemCreativeAssociationAction, Google.Api.Ads.AdManager.v201808.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.v201808.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. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class LineItemCreativeAssociationPage { - private int totalResultSetSizeField; - - private bool totalResultSetSizeFieldSpecified; - - 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 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 line item creative associations contained within this page. - /// - [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] - public LineItemCreativeAssociation[] results { - get { - return this.resultsField; - } - set { - this.resultsField = value; - } - } - } - - - /// Represents the NativeStyle of a Creative and its corresponding preview URL. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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; - } - } - } - - - /// 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.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public abstract partial class LineItemCreativeAssociationAction { - } - - - /// The action used for deleting LineItemCreativeAssociation objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class DeleteLineItemCreativeAssociations : LineItemCreativeAssociationAction { - } - - - /// The action used for deactivating LineItemCreativeAssociation objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class DeactivateLineItemCreativeAssociations : LineItemCreativeAssociationAction { - } - - - /// The action used for activating LineItemCreativeAssociation objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ActivateLineItemCreativeAssociations : LineItemCreativeAssociationAction { - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public interface LineItemCreativeAssociationServiceInterfaceChannel : Google.Api.Ads.AdManager.v201808.LineItemCreativeAssociationServiceInterface, 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#creativeSizes.

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 DFP 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) { - } - - /// 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.v201808.LineItemCreativeAssociationServiceInterface.createLineItemCreativeAssociations(Wrappers.LineItemCreativeAssociationService.createLineItemCreativeAssociationsRequest request) { - return base.Channel.createLineItemCreativeAssociations(request); - } - - /// Creates new LineItemCreativeAssociation objects - /// the line item creative associations - /// to create - /// the created line item creative associations with their IDs filled - /// in - public virtual Google.Api.Ads.AdManager.v201808.LineItemCreativeAssociation[] createLineItemCreativeAssociations(Google.Api.Ads.AdManager.v201808.LineItemCreativeAssociation[] lineItemCreativeAssociations) { - Wrappers.LineItemCreativeAssociationService.createLineItemCreativeAssociationsRequest inValue = new Wrappers.LineItemCreativeAssociationService.createLineItemCreativeAssociationsRequest(); - inValue.lineItemCreativeAssociations = lineItemCreativeAssociations; - Wrappers.LineItemCreativeAssociationService.createLineItemCreativeAssociationsResponse retVal = ((Google.Api.Ads.AdManager.v201808.LineItemCreativeAssociationServiceInterface)(this)).createLineItemCreativeAssociations(inValue); - return retVal.rval; - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201808.LineItemCreativeAssociationServiceInterface.createLineItemCreativeAssociationsAsync(Wrappers.LineItemCreativeAssociationService.createLineItemCreativeAssociationsRequest request) { - return base.Channel.createLineItemCreativeAssociationsAsync(request); - } - - public virtual System.Threading.Tasks.Task createLineItemCreativeAssociationsAsync(Google.Api.Ads.AdManager.v201808.LineItemCreativeAssociation[] lineItemCreativeAssociations) { - Wrappers.LineItemCreativeAssociationService.createLineItemCreativeAssociationsRequest inValue = new Wrappers.LineItemCreativeAssociationService.createLineItemCreativeAssociationsRequest(); - inValue.lineItemCreativeAssociations = lineItemCreativeAssociations; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201808.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
- ///
a Publisher Query Language statement used to - /// filter a set of line item creative associations - /// the line item creative associations that match the given - /// filter - public virtual Google.Api.Ads.AdManager.v201808.LineItemCreativeAssociationPage getLineItemCreativeAssociationsByStatement(Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.getLineItemCreativeAssociationsByStatement(filterStatement); - } - - public virtual System.Threading.Tasks.Task getLineItemCreativeAssociationsByStatementAsync(Google.Api.Ads.AdManager.v201808.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. - /// the ID of the line item, which must already - /// exist - /// the ID of the creative, which must already - /// exist - /// the URL of the site that the creative should be previewed - /// in - /// a URL that references the specified site URL with the specified - /// creative served to it - 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.v201808.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. - /// the ID of the line item, which must already - /// exist - /// the ID of the creative, which must already exist and - /// must be a native creative - /// the URL of the site that the creative should be previewed - /// in - /// the URLs that references the specified site URL and can be used to - /// preview the specified creative with the available native styles - public virtual Google.Api.Ads.AdManager.v201808.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.v201808.LineItemCreativeAssociationServiceInterface)(this)).getPreviewUrlsForNativeStyles(inValue); - return retVal.rval; - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201808.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.v201808.LineItemCreativeAssociationServiceInterface)(this)).getPreviewUrlsForNativeStylesAsync(inValue)).Result.rval); - } - - /// Performs actions on LineItemCreativeAssociation objects that - /// match the given Statement#query. - /// the action to perform - /// a Publisher Query Language statement used to - /// filter a set of line item creative associations - /// the result of the action performed - public virtual Google.Api.Ads.AdManager.v201808.UpdateResult performLineItemCreativeAssociationAction(Google.Api.Ads.AdManager.v201808.LineItemCreativeAssociationAction lineItemCreativeAssociationAction, Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.performLineItemCreativeAssociationAction(lineItemCreativeAssociationAction, filterStatement); - } - - public virtual System.Threading.Tasks.Task performLineItemCreativeAssociationActionAsync(Google.Api.Ads.AdManager.v201808.LineItemCreativeAssociationAction lineItemCreativeAssociationAction, Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.performLineItemCreativeAssociationActionAsync(lineItemCreativeAssociationAction, filterStatement); - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.LineItemCreativeAssociationService.updateLineItemCreativeAssociationsResponse Google.Api.Ads.AdManager.v201808.LineItemCreativeAssociationServiceInterface.updateLineItemCreativeAssociations(Wrappers.LineItemCreativeAssociationService.updateLineItemCreativeAssociationsRequest request) { - return base.Channel.updateLineItemCreativeAssociations(request); - } - - /// Updates the specified LineItemCreativeAssociation objects - /// the line item creative associations - /// to update - /// the updated line item creative associations - public virtual Google.Api.Ads.AdManager.v201808.LineItemCreativeAssociation[] updateLineItemCreativeAssociations(Google.Api.Ads.AdManager.v201808.LineItemCreativeAssociation[] lineItemCreativeAssociations) { - Wrappers.LineItemCreativeAssociationService.updateLineItemCreativeAssociationsRequest inValue = new Wrappers.LineItemCreativeAssociationService.updateLineItemCreativeAssociationsRequest(); - inValue.lineItemCreativeAssociations = lineItemCreativeAssociations; - Wrappers.LineItemCreativeAssociationService.updateLineItemCreativeAssociationsResponse retVal = ((Google.Api.Ads.AdManager.v201808.LineItemCreativeAssociationServiceInterface)(this)).updateLineItemCreativeAssociations(inValue); - return retVal.rval; - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201808.LineItemCreativeAssociationServiceInterface.updateLineItemCreativeAssociationsAsync(Wrappers.LineItemCreativeAssociationService.updateLineItemCreativeAssociationsRequest request) { - return base.Channel.updateLineItemCreativeAssociationsAsync(request); - } - - public virtual System.Threading.Tasks.Task updateLineItemCreativeAssociationsAsync(Google.Api.Ads.AdManager.v201808.LineItemCreativeAssociation[] lineItemCreativeAssociations) { - Wrappers.LineItemCreativeAssociationService.updateLineItemCreativeAssociationsRequest inValue = new Wrappers.LineItemCreativeAssociationService.updateLineItemCreativeAssociationsRequest(); - inValue.lineItemCreativeAssociations = lineItemCreativeAssociations; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201808.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/v201808", IsWrapped = true)] - public partial class createLineItemsRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("lineItems")] - public Google.Api.Ads.AdManager.v201808.LineItem[] lineItems; - - /// Creates a new instance of the - /// class. - public createLineItemsRequest() { - } - - /// Creates a new instance of the - /// class. - public createLineItemsRequest(Google.Api.Ads.AdManager.v201808.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/v201808", IsWrapped = true)] - public partial class createLineItemsResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v201808.LineItem[] rval; - - /// Creates a new instance of the - /// class. - public createLineItemsResponse() { - } - - /// Creates a new instance of the - /// class. - public createLineItemsResponse(Google.Api.Ads.AdManager.v201808.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/v201808", IsWrapped = true)] - public partial class updateLineItemsRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("lineItems")] - public Google.Api.Ads.AdManager.v201808.LineItem[] lineItems; - - /// Creates a new instance of the - /// class. - public updateLineItemsRequest() { - } - - /// Creates a new instance of the - /// class. - public updateLineItemsRequest(Google.Api.Ads.AdManager.v201808.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/v201808", IsWrapped = true)] - public partial class updateLineItemsResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v201808.LineItem[] rval; - - /// Creates a new instance of the - /// class. - public updateLineItemsResponse() { - } - - /// Creates a new instance of the - /// class. - public updateLineItemsResponse(Google.Api.Ads.AdManager.v201808.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/v201808", ConfigurationName = "Google.Api.Ads.AdManager.v201808.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.v201808.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.v201808.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.v201808.LineItemPage getLineItemsByStatement(Google.Api.Ads.AdManager.v201808.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getLineItemsByStatementAsync(Google.Api.Ads.AdManager.v201808.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201808.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.v201808.UpdateResult performLineItemAction(Google.Api.Ads.AdManager.v201808.LineItemAction lineItemAction, Google.Api.Ads.AdManager.v201808.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task performLineItemActionAsync(Google.Api.Ads.AdManager.v201808.LineItemAction lineItemAction, Google.Api.Ads.AdManager.v201808.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.v201808.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.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class LineItemPage { - private int totalResultSetSizeField; - - private bool totalResultSetSizeFieldSpecified; - - 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 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 line items contained within this page. - /// - [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] - public LineItem[] results { - get { - return this.resultsField; - } - set { - this.resultsField = value; - } - } - } - - - /// 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.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public abstract partial class LineItemAction { - } - - - /// The action used for unarchiving LineItem objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class UnarchiveLineItems : LineItemAction { - } - - - /// The action used for resuming LineItem objects. - /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ResumeAndOverbookLineItems))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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 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 resuming and overbooking LineItem - /// objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ResumeAndOverbookLineItems : ResumeLineItems { - } - - - /// The action used for reserving LineItem objects. - /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ReserveAndOverbookLineItems))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ReserveAndOverbookLineItems : ReserveLineItems { - } - - - /// The action used for releasing LineItem objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ReleaseLineItems : LineItemAction { - } - - - /// The action used for pausing LineItem objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class DeleteLineItems : LineItemAction { - } - - - /// The action used for archiving LineItem objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ArchiveLineItems : LineItemAction { - } - - - /// The action used for activating LineItem objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ActivateLineItems : LineItemAction { - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public interface LineItemServiceInterfaceChannel : Google.Api.Ads.AdManager.v201808.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 DFP 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() { - } - - /// Creates a new instance of the class. - /// - public LineItemService(string endpointConfigurationName) - : base(endpointConfigurationName) { - } - - /// Creates a new instance of the class. - /// - public LineItemService(string endpointConfigurationName, string remoteAddress) - : base(endpointConfigurationName, remoteAddress) { - } - - /// Creates a new instance of the class. - /// - public LineItemService(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) - : base(binding, remoteAddress) { - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.LineItemService.createLineItemsResponse Google.Api.Ads.AdManager.v201808.LineItemServiceInterface.createLineItems(Wrappers.LineItemService.createLineItemsRequest request) { - return base.Channel.createLineItems(request); - } - - /// Creates new LineItem objects. - /// the line items to create - /// the created line items with their IDs filled in - public virtual Google.Api.Ads.AdManager.v201808.LineItem[] createLineItems(Google.Api.Ads.AdManager.v201808.LineItem[] lineItems) { - Wrappers.LineItemService.createLineItemsRequest inValue = new Wrappers.LineItemService.createLineItemsRequest(); - inValue.lineItems = lineItems; - Wrappers.LineItemService.createLineItemsResponse retVal = ((Google.Api.Ads.AdManager.v201808.LineItemServiceInterface)(this)).createLineItems(inValue); - return retVal.rval; - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201808.LineItemServiceInterface.createLineItemsAsync(Wrappers.LineItemService.createLineItemsRequest request) { - return base.Channel.createLineItemsAsync(request); - } - - public virtual System.Threading.Tasks.Task createLineItemsAsync(Google.Api.Ads.AdManager.v201808.LineItem[] lineItems) { - Wrappers.LineItemService.createLineItemsRequest inValue = new Wrappers.LineItemService.createLineItemsRequest(); - inValue.lineItems = lineItems; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201808.LineItemServiceInterface)(this)).createLineItemsAsync(inValue)).Result.rval); - } - - /// 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
Targeting LineItem#targeting
UnitsBought LineItem#unitsBought
- ///
a Publisher Query Language statement used to - /// filter a set of line items. - /// the line items that match the given filter - public virtual Google.Api.Ads.AdManager.v201808.LineItemPage getLineItemsByStatement(Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.getLineItemsByStatement(filterStatement); - } - - public virtual System.Threading.Tasks.Task getLineItemsByStatementAsync(Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.getLineItemsByStatementAsync(filterStatement); - } - - /// Performs actions on LineItem objects that match the given - /// Statement#query. - /// the action to perform - /// a Publisher Query Language statement used to - /// filter a set of line items - /// the result of the action performed - public virtual Google.Api.Ads.AdManager.v201808.UpdateResult performLineItemAction(Google.Api.Ads.AdManager.v201808.LineItemAction lineItemAction, Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.performLineItemAction(lineItemAction, filterStatement); - } - - public virtual System.Threading.Tasks.Task performLineItemActionAsync(Google.Api.Ads.AdManager.v201808.LineItemAction lineItemAction, Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.performLineItemActionAsync(lineItemAction, filterStatement); - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.LineItemService.updateLineItemsResponse Google.Api.Ads.AdManager.v201808.LineItemServiceInterface.updateLineItems(Wrappers.LineItemService.updateLineItemsRequest request) { - return base.Channel.updateLineItems(request); - } - - /// Updates the specified LineItem objects. - /// the line items to update - /// the updated line items - public virtual Google.Api.Ads.AdManager.v201808.LineItem[] updateLineItems(Google.Api.Ads.AdManager.v201808.LineItem[] lineItems) { - Wrappers.LineItemService.updateLineItemsRequest inValue = new Wrappers.LineItemService.updateLineItemsRequest(); - inValue.lineItems = lineItems; - Wrappers.LineItemService.updateLineItemsResponse retVal = ((Google.Api.Ads.AdManager.v201808.LineItemServiceInterface)(this)).updateLineItems(inValue); - return retVal.rval; - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201808.LineItemServiceInterface.updateLineItemsAsync(Wrappers.LineItemService.updateLineItemsRequest request) { - return base.Channel.updateLineItemsAsync(request); - } - - public virtual System.Threading.Tasks.Task updateLineItemsAsync(Google.Api.Ads.AdManager.v201808.LineItem[] lineItems) { - Wrappers.LineItemService.updateLineItemsRequest inValue = new Wrappers.LineItemService.updateLineItemsRequest(); - inValue.lineItems = lineItems; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201808.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.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class LineItemTemplate { - 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 LineItemType lineItemTypeField; - - private bool lineItemTypeFieldSpecified; - - private DeliveryRateType deliveryRateTypeField; - - 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 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 LineItemTemplate. This attribute is required. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public string name { - get { - return this.nameField; - } - set { - this.nameField = 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. - /// - [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 { - get { - return this.isDefaultFieldSpecified; - } - set { - this.isDefaultFieldSpecified = value; - } - } - - /// 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.lineItemNameField; - } - set { - this.lineItemNameField = value; - } - } - - /// The default value for the LineItem#enabledForSameAdvertiserException - /// field of a new LineItem. This attribute is required. - /// - [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 { - get { - return this.enabledForSameAdvertiserExceptionFieldSpecified; - } - set { - this.enabledForSameAdvertiserExceptionFieldSpecified = value; - } - } - - /// The default notes for a new . This - /// attribute is optional and has a maximum length of 65,535 characters. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 5)] - public string notes { - get { - return this.notesField; - } - set { - 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. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool lineItemTypeSpecified { - get { - return this.lineItemTypeFieldSpecified; - } - set { - this.lineItemTypeFieldSpecified = value; - } - } - - /// The default delivery strategy for a new - /// LineItem. This attribute is required. - /// - [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 { - get { - return this.deliveryRateTypeFieldSpecified; - } - set { - this.deliveryRateTypeFieldSpecified = value; - } - } - - /// The default roadblocking strategy for a - /// new LineItem. This attribute is required. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 8)] - public RoadblockingType roadblockingType { - get { - return this.roadblockingTypeField; - } - set { - this.roadblockingTypeField = value; - this.roadblockingTypeSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool roadblockingTypeSpecified { - get { - return this.roadblockingTypeFieldSpecified; - } - set { - this.roadblockingTypeFieldSpecified = value; - } - } - - /// The default creative rotation - /// strategy for a new LineItem. This attribute is required. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 9)] - public CreativeRotationType creativeRotationType { - get { - return this.creativeRotationTypeField; - } - set { - this.creativeRotationTypeField = value; - this.creativeRotationTypeSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool creativeRotationTypeSpecified { - get { - return this.creativeRotationTypeFieldSpecified; - } - set { - this.creativeRotationTypeFieldSpecified = value; - } - } - } - - - /// Captures a page of LineItemTemplate objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class LineItemTemplatePage { - private int totalResultSetSizeField; - - private bool totalResultSetSizeFieldSpecified; - - private int startIndexField; - - private bool startIndexFieldSpecified; - - private LineItemTemplate[] 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 line item templates contained within this page. - /// - [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] - public LineItemTemplate[] 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/v201808", ConfigurationName = "Google.Api.Ads.AdManager.v201808.LineItemTemplateServiceInterface")] - public interface LineItemTemplateServiceInterface - { - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v201808.LineItemTemplatePage getLineItemTemplatesByStatement(Google.Api.Ads.AdManager.v201808.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getLineItemTemplatesByStatementAsync(Google.Api.Ads.AdManager.v201808.Statement filterStatement); - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public interface LineItemTemplateServiceInterfaceChannel : Google.Api.Ads.AdManager.v201808.LineItemTemplateServiceInterface, System.ServiceModel.IClientChannel - { - } - - - /// 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 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
- ///
a Publisher Query Language statement used to - /// filter a set of line item templates - /// the line item templates that match the given filter - /// if a RuntimeException is thrown - public virtual Google.Api.Ads.AdManager.v201808.LineItemTemplatePage getLineItemTemplatesByStatement(Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.getLineItemTemplatesByStatement(filterStatement); - } - - public virtual System.Threading.Tasks.Task getLineItemTemplatesByStatementAsync(Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.getLineItemTemplatesByStatementAsync(filterStatement); - } - } - 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/v201808", IsWrapped = true)] - public partial class createLiveStreamEventsRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("liveStreamEvents")] - public Google.Api.Ads.AdManager.v201808.LiveStreamEvent[] liveStreamEvents; - - /// Creates a new instance of the class. - public createLiveStreamEventsRequest() { - } - - /// Creates a new instance of the class. - public createLiveStreamEventsRequest(Google.Api.Ads.AdManager.v201808.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/v201808", IsWrapped = true)] - public partial class createLiveStreamEventsResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v201808.LiveStreamEvent[] rval; - - /// Creates a new instance of the class. - public createLiveStreamEventsResponse() { - } - - /// Creates a new instance of the class. - public createLiveStreamEventsResponse(Google.Api.Ads.AdManager.v201808.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 = "registerSessionsForMonitoring", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201808", IsWrapped = true)] - public partial class registerSessionsForMonitoringRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("sessionIds")] - public string[] sessionIds; - - /// Creates a new instance of the class. - public registerSessionsForMonitoringRequest() { - } - - /// Creates a new instance of the class. - public registerSessionsForMonitoringRequest(string[] sessionIds) { - this.sessionIds = sessionIds; - } - } - - - [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/v201808", IsWrapped = true)] - public partial class registerSessionsForMonitoringResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public string[] rval; - - /// Creates a new instance of the class. - public registerSessionsForMonitoringResponse() { - } - - /// Creates a new instance of the class. - public registerSessionsForMonitoringResponse(string[] 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/v201808", IsWrapped = true)] - public partial class updateLiveStreamEventsRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("liveStreamEvents")] - public Google.Api.Ads.AdManager.v201808.LiveStreamEvent[] liveStreamEvents; - - /// Creates a new instance of the class. - public updateLiveStreamEventsRequest() { - } - - /// Creates a new instance of the class. - public updateLiveStreamEventsRequest(Google.Api.Ads.AdManager.v201808.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/v201808", IsWrapped = true)] - public partial class updateLiveStreamEventsResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v201808.LiveStreamEvent[] rval; - - /// Creates a new instance of the class. - public updateLiveStreamEventsResponse() { - } - - /// Creates a new instance of the class. - public updateLiveStreamEventsResponse(Google.Api.Ads.AdManager.v201808.LiveStreamEvent[] rval) { - this.rval = rval; - } - } - } - /// LiveStream settings that are specific to the HTTP live - /// streaming (HLS) protocol. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class HlsSettings { - private PlaylistType playlistTypeField; - - private bool playlistTypeFieldSpecified; - - /// Indicates the type of the playlist associated with this live stream. The - /// playlist type is analagous to the EXT-X-PLAYLIST-TYPE HLS tag. This field is - /// optional and will default to PlaylistType#LIVE. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public PlaylistType playlistType { - get { - return this.playlistTypeField; - } - set { - this.playlistTypeField = value; - this.playlistTypeSpecified = true; - } - } - - /// 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; - } - } - } - - - /// 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.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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. - /// - 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, - } - - - /// 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 event, 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 event.

- ///
- [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class LiveStreamEvent { - private long idField; - - private bool idFieldSpecified; - - private string nameField; - - private string descriptionField; - - 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 liveStreamEventCodeField; - - private int dvrWindowSecondsField; - - private bool dvrWindowSecondsFieldSpecified; - - private bool enableDaiAuthenticationKeysField; - - private bool enableDaiAuthenticationKeysFieldSpecified; - - private AdBreakFillType adBreakFillTypeField; - - private bool adBreakFillTypeFieldSpecified; - - private long adHolidayDurationField; - - private bool adHolidayDurationFieldSpecified; - - private bool enableDurationlessAdBreaksField; - - private bool enableDurationlessAdBreaksFieldSpecified; - - private long defaultAdBreakDurationField; - - private bool defaultAdBreakDurationFieldSpecified; - - private long[] daiAuthenticationKeyIdsField; - - private long[] sourceContentConfigurationIdsField; - - private HlsSettings hlsSettingsField; - - /// The unique ID of the LiveStreamEvent. 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 LiveStreamEvent. This value is required to create a - /// live stream event 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; - } - } - - /// Additional notes to annotate the event with. This attribute is optional and has - /// a maximum length of 65,535 characters. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public string description { - get { - return this.descriptionField; - } - set { - this.descriptionField = value; - } - } - - /// 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. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - 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 { - get { - return this.statusFieldSpecified; - } - set { - this.statusFieldSpecified = value; - } - } - - /// The date and time this LiveStreamEvent was created. This attribute - /// is read-only. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public DateTime creationDateTime { - get { - return this.creationDateTimeField; - } - set { - this.creationDateTimeField = value; - } - } - - /// The date and time this LiveStreamEvent was last modified. This - /// attribute is read-only. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 5)] - public DateTime lastModifiedDateTime { - get { - return this.lastModifiedDateTimeField; - } - set { - this.lastModifiedDateTimeField = value; - } - } - - /// 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. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 6)] - public DateTime startDateTime { - get { - return this.startDateTimeField; - } - set { - this.startDateTimeField = value; - } - } - - /// 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 = 7)] - 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; - } - } - - /// The scheduled end date and time of this LiveStreamEvent. This - /// attribute is required if unlimitedEndDateTime is false and ignored - /// if unlimitedEndDateTime is true. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 8)] - public DateTime endDateTime { - get { - return this.endDateTimeField; - } - set { - this.endDateTimeField = value; - } - } - - /// 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(Order = 9)] - 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 total number of concurrent users expected to watch this event across all - /// regions. This attribute is optional and default value is 0. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 10)] - public long totalEstimatedConcurrentUsers { - get { - return this.totalEstimatedConcurrentUsersField; - } - set { - this.totalEstimatedConcurrentUsersField = value; - this.totalEstimatedConcurrentUsersSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool totalEstimatedConcurrentUsersSpecified { - get { - return this.totalEstimatedConcurrentUsersFieldSpecified; - } - set { - this.totalEstimatedConcurrentUsersFieldSpecified = value; - } - } - - /// The list of URLs pointing to the live stream content in Content Delivery - /// Network. This attribute is required. - /// - [System.Xml.Serialization.XmlElementAttribute("contentUrls", Order = 11)] - public string[] contentUrls { - get { - return this.contentUrlsField; - } - set { - this.contentUrlsField = value; - } - } - - /// 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 = 12)] - public string[] adTags { - get { - return this.adTagsField; - } - set { - this.adTagsField = value; - } - } - - /// This code is used in constructing a live stream event master playlist URL. This - /// attribute is read-only and is assigned by Google. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 13)] - public string liveStreamEventCode { - get { - return this.liveStreamEventCodeField; - } - set { - this.liveStreamEventCodeField = 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. - /// - [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 { - get { - return this.dvrWindowSecondsFieldSpecified; - } - set { - this.dvrWindowSecondsFieldSpecified = value; - } - } - - /// Whether the event's stream requests to the IMA SDK API will be authenticated - /// using the DAI authentication keys. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 15)] - public bool enableDaiAuthenticationKeys { - get { - return this.enableDaiAuthenticationKeysField; - } - set { - this.enableDaiAuthenticationKeysField = value; - this.enableDaiAuthenticationKeysSpecified = true; - } - } - - /// 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 = 16)] - public AdBreakFillType adBreakFillType { - get { - return this.adBreakFillTypeField; - } - set { - this.adBreakFillTypeField = value; - this.adBreakFillTypeSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool adBreakFillTypeSpecified { - get { - return this.adBreakFillTypeFieldSpecified; - } - set { - this.adBreakFillTypeFieldSpecified = 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. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 17)] - 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; - } - } - - /// 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; - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 18)] - public bool enableDurationlessAdBreaks { - get { - return this.enableDurationlessAdBreaksField; - } - set { - this.enableDurationlessAdBreaksField = value; - this.enableDurationlessAdBreaksSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool enableDurationlessAdBreaksSpecified { - get { - return this.enableDurationlessAdBreaksFieldSpecified; - } - set { - this.enableDurationlessAdBreaksFieldSpecified = 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; - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 19)] - public long defaultAdBreakDuration { - get { - return this.defaultAdBreakDurationField; - } - set { - this.defaultAdBreakDurationField = value; - this.defaultAdBreakDurationSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool defaultAdBreakDurationSpecified { - get { - return this.defaultAdBreakDurationFieldSpecified; - } - set { - this.defaultAdBreakDurationFieldSpecified = value; - } - } - - /// The list of DaiAuthenticationKey IDs used to - /// authenticate requests for this live stream. - /// - [System.Xml.Serialization.XmlElementAttribute("daiAuthenticationKeyIds", Order = 20)] - public long[] daiAuthenticationKeyIds { - get { - return this.daiAuthenticationKeyIdsField; - } - set { - this.daiAuthenticationKeyIdsField = value; - } - } - - /// The list of CdnConfiguration IDs that provide - /// settings for ingesting and delivering the videos associated with this source. - /// - [System.Xml.Serialization.XmlElementAttribute("sourceContentConfigurationIds", Order = 21)] - public long[] sourceContentConfigurationIds { - get { - return this.sourceContentConfigurationIdsField; - } - set { - this.sourceContentConfigurationIdsField = 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. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 22)] - public HlsSettings hlsSettings { - get { - return this.hlsSettingsField; - } - set { - this.hlsSettingsField = value; - } - } - } - - - /// Describes the status of a LiveStreamEvent object. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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, - } - - - /// Describes what should be used to fill an empty ad break during a live stream. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum AdBreakFillType { - /// Ad break should be filled with slate. - /// - SLATE = 0, - /// Ad break should be filled with underlying content. - /// - UNDERLYING_CONTENT = 1, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 2, - } - - - /// Lists all errors associated with the Session Activity Monitor (SAM). - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class SamSessionError : ApiError { - private SamSessionErrorReason reasonField; - - private bool reasonFieldSpecified; - - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public SamSessionErrorReason 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 SAM session errors. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "SamSessionError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum SamSessionErrorReason { - /// SAM session could not be registered for monitoring. - /// - COULD_NOT_REGISTER_SESSION = 0, - /// User specified an invalid format for a session ID.

Session IDs are UUIDs and - /// look like "123e4567-e89b-12d3-a456-426655440000".

- ///
- MALFORMED_SESSION_ID = 1, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 2, - } - - - /// Lists the errors associated with setting the LiveStreamEvent DVR window duration. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class LiveStreamEventDvrWindowError : ApiError { - private LiveStreamEventDvrWindowErrorReason reasonField; - - private bool reasonFieldSpecified; - - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public LiveStreamEventDvrWindowErrorReason 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 LiveStreamEventDvrWindowError. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "LiveStreamEventDvrWindowError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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, - } - - - /// Lists all errors associated with live stream event start and end date times. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class LiveStreamEventDateTimeError : ApiError { - private LiveStreamEventDateTimeErrorReason reasonField; - - private bool reasonFieldSpecified; - - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public LiveStreamEventDateTimeErrorReason 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 LiveStreamEventDateTimeError. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "LiveStreamEventDateTimeError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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. - /// - UNKNOWN = 3, - } - - - /// Lists all errors associated with LiveStreamEvent - /// CDN configurations. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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; - } - } - } - - - /// Describes reasons for LiveStreamEventCdnSettingsError. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "LiveStreamEventCdnSettingsError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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, - } - - - /// Lists all errors associated with live stream event action. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class LiveStreamEventActionError : ApiError { - private LiveStreamEventActionErrorReason reasonField; - - private bool reasonFieldSpecified; - - [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; - } - } - } - - - /// Describes reasons for LiveStreamEventActionError. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "LiveStreamEventActionError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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, - /// 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.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", ConfigurationName = "Google.Api.Ads.AdManager.v201808.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.v201808.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.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task createLiveStreamEventsAsync(Wrappers.LiveStreamEventService.createLiveStreamEventsRequest request); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v201808.LiveStreamEventPage getLiveStreamEventsByStatement(Google.Api.Ads.AdManager.v201808.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getLiveStreamEventsByStatementAsync(Google.Api.Ads.AdManager.v201808.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v201808.UpdateResult performLiveStreamEventAction(Google.Api.Ads.AdManager.v201808.LiveStreamEventAction liveStreamEventAction, Google.Api.Ads.AdManager.v201808.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task performLiveStreamEventActionAsync(Google.Api.Ads.AdManager.v201808.LiveStreamEventAction liveStreamEventAction, Google.Api.Ads.AdManager.v201808.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.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Wrappers.LiveStreamEventService.registerSessionsForMonitoringResponse registerSessionsForMonitoring(Wrappers.LiveStreamEventService.registerSessionsForMonitoringRequest request); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task registerSessionsForMonitoringAsync(Wrappers.LiveStreamEventService.registerSessionsForMonitoringRequest 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.v201808.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); - } - - - /// Captures a page of LiveStreamEvent objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class LiveStreamEventPage { - private int totalResultSetSizeField; - - private bool totalResultSetSizeFieldSpecified; - - private int startIndexField; - - private bool startIndexFieldSpecified; - - private LiveStreamEvent[] 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 live stream events contained within this page. - /// - [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] - public LiveStreamEvent[] results { - get { - return this.resultsField; - } - set { - this.resultsField = value; - } - } - } - - - /// Represents the actions that can be performed on LiveStreamEvent objects. - /// - [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.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public abstract partial class LiveStreamEventAction { - } - - - /// The action used for pausing LiveStreamEvent - /// objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class PauseLiveStreamEvents : LiveStreamEventAction { - } - - - /// The action used for pausing ads for LiveStreamEvent objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class PauseLiveStreamEventAds : LiveStreamEventAction { - } - - - /// The action used for archiving LiveStreamEvent - /// objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ArchiveLiveStreamEvents : LiveStreamEventAction { - } - - - /// The action used for activating LiveStreamEvent - /// objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ActivateLiveStreamEvents : LiveStreamEventAction { - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public interface LiveStreamEventServiceInterfaceChannel : Google.Api.Ads.AdManager.v201808.LiveStreamEventServiceInterface, System.ServiceModel.IClientChannel - { - } - - - /// Provides methods for creating, updating and retrieving LiveStreamEvent objects.

This feature is not yet - /// openly available for DFP 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 LiveStreamEventService : AdManagerSoapClient, ILiveStreamEventService { - /// Creates a new instance of the - /// class. - public LiveStreamEventService() { - } - - /// Creates a new instance of the - /// class. - public LiveStreamEventService(string endpointConfigurationName) - : base(endpointConfigurationName) { - } - - /// Creates a new instance of the - /// class. - public LiveStreamEventService(string endpointConfigurationName, string remoteAddress) - : base(endpointConfigurationName, 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 LiveStreamEventService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) - : base(binding, remoteAddress) { - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.LiveStreamEventService.createLiveStreamEventsResponse Google.Api.Ads.AdManager.v201808.LiveStreamEventServiceInterface.createLiveStreamEvents(Wrappers.LiveStreamEventService.createLiveStreamEventsRequest request) { - return base.Channel.createLiveStreamEvents(request); - } - - /// Creates new LiveStreamEvent objects. The following - /// fields are required: - /// the live stream events to create - /// the created live stream events with their IDs filled in - public virtual Google.Api.Ads.AdManager.v201808.LiveStreamEvent[] createLiveStreamEvents(Google.Api.Ads.AdManager.v201808.LiveStreamEvent[] liveStreamEvents) { - Wrappers.LiveStreamEventService.createLiveStreamEventsRequest inValue = new Wrappers.LiveStreamEventService.createLiveStreamEventsRequest(); - inValue.liveStreamEvents = liveStreamEvents; - Wrappers.LiveStreamEventService.createLiveStreamEventsResponse retVal = ((Google.Api.Ads.AdManager.v201808.LiveStreamEventServiceInterface)(this)).createLiveStreamEvents(inValue); - return retVal.rval; - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201808.LiveStreamEventServiceInterface.createLiveStreamEventsAsync(Wrappers.LiveStreamEventService.createLiveStreamEventsRequest request) { - return base.Channel.createLiveStreamEventsAsync(request); - } - - public virtual System.Threading.Tasks.Task createLiveStreamEventsAsync(Google.Api.Ads.AdManager.v201808.LiveStreamEvent[] liveStreamEvents) { - Wrappers.LiveStreamEventService.createLiveStreamEventsRequest inValue = new Wrappers.LiveStreamEventService.createLiveStreamEventsRequest(); - inValue.liveStreamEvents = liveStreamEvents; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201808.LiveStreamEventServiceInterface)(this)).createLiveStreamEventsAsync(inValue)).Result.rval); - } - - /// 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
- ///
a Publisher Query Language statement to filter a - /// list of live stream events - /// the live stream events that match the filter - public virtual Google.Api.Ads.AdManager.v201808.LiveStreamEventPage getLiveStreamEventsByStatement(Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.getLiveStreamEventsByStatement(filterStatement); - } - - public virtual System.Threading.Tasks.Task getLiveStreamEventsByStatementAsync(Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.getLiveStreamEventsByStatementAsync(filterStatement); - } - - /// Performs actions on LiveStreamEvent objects that - /// match the given Statement#query. - /// the action to perform - /// a Publisher Query Language statement used to - /// filter a set of live stream events - /// the result of the action performed - public virtual Google.Api.Ads.AdManager.v201808.UpdateResult performLiveStreamEventAction(Google.Api.Ads.AdManager.v201808.LiveStreamEventAction liveStreamEventAction, Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.performLiveStreamEventAction(liveStreamEventAction, filterStatement); - } - - public virtual System.Threading.Tasks.Task performLiveStreamEventActionAsync(Google.Api.Ads.AdManager.v201808.LiveStreamEventAction liveStreamEventAction, Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.performLiveStreamEventActionAsync(liveStreamEventAction, filterStatement); - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.LiveStreamEventService.registerSessionsForMonitoringResponse Google.Api.Ads.AdManager.v201808.LiveStreamEventServiceInterface.registerSessionsForMonitoring(Wrappers.LiveStreamEventService.registerSessionsForMonitoringRequest request) { - return base.Channel.registerSessionsForMonitoring(request); - } - - /// 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.

- ///
a list of session IDs to register for - /// monitoring - /// the list of session IDs that were registered for monitoring - /// if there is an error registering any of the - /// session IDs - public virtual string[] registerSessionsForMonitoring(string[] sessionIds) { - Wrappers.LiveStreamEventService.registerSessionsForMonitoringRequest inValue = new Wrappers.LiveStreamEventService.registerSessionsForMonitoringRequest(); - inValue.sessionIds = sessionIds; - Wrappers.LiveStreamEventService.registerSessionsForMonitoringResponse retVal = ((Google.Api.Ads.AdManager.v201808.LiveStreamEventServiceInterface)(this)).registerSessionsForMonitoring(inValue); - return retVal.rval; - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201808.LiveStreamEventServiceInterface.registerSessionsForMonitoringAsync(Wrappers.LiveStreamEventService.registerSessionsForMonitoringRequest request) { - return base.Channel.registerSessionsForMonitoringAsync(request); - } - - public virtual System.Threading.Tasks.Task registerSessionsForMonitoringAsync(string[] sessionIds) { - Wrappers.LiveStreamEventService.registerSessionsForMonitoringRequest inValue = new Wrappers.LiveStreamEventService.registerSessionsForMonitoringRequest(); - inValue.sessionIds = sessionIds; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201808.LiveStreamEventServiceInterface)(this)).registerSessionsForMonitoringAsync(inValue)).Result.rval); - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.LiveStreamEventService.updateLiveStreamEventsResponse Google.Api.Ads.AdManager.v201808.LiveStreamEventServiceInterface.updateLiveStreamEvents(Wrappers.LiveStreamEventService.updateLiveStreamEventsRequest request) { - return base.Channel.updateLiveStreamEvents(request); - } - - /// Updates the specified LiveStreamEvent objects. - /// the live stream events to update - /// the updated live stream events - /// if there is an error updating the live stream - /// events - public virtual Google.Api.Ads.AdManager.v201808.LiveStreamEvent[] updateLiveStreamEvents(Google.Api.Ads.AdManager.v201808.LiveStreamEvent[] liveStreamEvents) { - Wrappers.LiveStreamEventService.updateLiveStreamEventsRequest inValue = new Wrappers.LiveStreamEventService.updateLiveStreamEventsRequest(); - inValue.liveStreamEvents = liveStreamEvents; - Wrappers.LiveStreamEventService.updateLiveStreamEventsResponse retVal = ((Google.Api.Ads.AdManager.v201808.LiveStreamEventServiceInterface)(this)).updateLiveStreamEvents(inValue); - return retVal.rval; - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201808.LiveStreamEventServiceInterface.updateLiveStreamEventsAsync(Wrappers.LiveStreamEventService.updateLiveStreamEventsRequest request) { - return base.Channel.updateLiveStreamEventsAsync(request); - } - - public virtual System.Threading.Tasks.Task updateLiveStreamEventsAsync(Google.Api.Ads.AdManager.v201808.LiveStreamEvent[] liveStreamEvents) { - Wrappers.LiveStreamEventService.updateLiveStreamEventsRequest inValue = new Wrappers.LiveStreamEventService.updateLiveStreamEventsRequest(); - inValue.liveStreamEvents = liveStreamEvents; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201808.LiveStreamEventServiceInterface)(this)).updateLiveStreamEventsAsync(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/v201808", IsWrapped = true)] - public partial class createMobileApplicationsRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("mobileApplications")] - public Google.Api.Ads.AdManager.v201808.MobileApplication[] mobileApplications; - - /// Creates a new instance of the class. - public createMobileApplicationsRequest() { - } - - /// Creates a new instance of the class. - public createMobileApplicationsRequest(Google.Api.Ads.AdManager.v201808.MobileApplication[] mobileApplications) { - this.mobileApplications = mobileApplications; - } - } - - - [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/v201808", IsWrapped = true)] - public partial class createMobileApplicationsResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v201808.MobileApplication[] rval; - - /// Creates a new instance of the class. - public createMobileApplicationsResponse() { - } - - /// Creates a new instance of the class. - public createMobileApplicationsResponse(Google.Api.Ads.AdManager.v201808.MobileApplication[] 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 = "updateMobileApplications", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201808", IsWrapped = true)] - public partial class updateMobileApplicationsRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("mobileApplications")] - public Google.Api.Ads.AdManager.v201808.MobileApplication[] mobileApplications; - - /// Creates a new instance of the class. - public updateMobileApplicationsRequest() { - } - - /// Creates a new instance of the class. - public updateMobileApplicationsRequest(Google.Api.Ads.AdManager.v201808.MobileApplication[] mobileApplications) { - this.mobileApplications = mobileApplications; - } - } - - - [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/v201808", IsWrapped = true)] - public partial class updateMobileApplicationsResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v201808.MobileApplication[] rval; - - /// Creates a new instance of the class. - public updateMobileApplicationsResponse() { - } - - /// Creates a new instance of the class. - public updateMobileApplicationsResponse(Google.Api.Ads.AdManager.v201808.MobileApplication[] rval) { - this.rval = rval; - } - } - } - /// 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.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class MobileApplication { - private long idField; - - private bool idFieldSpecified; - - private string displayNameField; - - private string appStoreIdField; - - private MobileApplicationStore appStoreField; - - private bool appStoreFieldSpecified; - - private bool isArchivedField; - - private bool isArchivedFieldSpecified; - - private string appStoreNameField; - - private string developerNameField; - - private MobileApplicationPlatform platformField; - - private bool platformFieldSpecified; - - private bool isFreeField; - - private bool isFreeFieldSpecified; - - private string downloadUrlField; - - /// 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 { - 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 mobile application. This attribute is required and has a - /// maximum length of 255 characters. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public string displayName { - get { - return this.displayNameField; - } - set { - this.displayNameField = value; - } - } - - /// 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 = 2)] - public string appStoreId { - get { - return this.appStoreIdField; - } - set { - this.appStoreIdField = value; - } - } - - /// The app store the mobile application belongs to. This attribute is required for - /// creation and then is read-only. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public MobileApplicationStore appStore { - get { - return this.appStoreField; - } - set { - this.appStoreField = value; - this.appStoreSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool appStoreSpecified { - get { - return this.appStoreFieldSpecified; - } - set { - this.appStoreFieldSpecified = value; - } - } - - /// The archival status of the mobile application. This attribute is read-only. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - 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 name of the application on the app store. This attribute is read-only and - /// populated by Google. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 5)] - public string appStoreName { - get { - return this.appStoreNameField; - } - set { - this.appStoreNameField = value; - } - } - - /// The name of the developer of the mobile application. This attribute is read-only - /// and populated by Google. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 6)] - public string developerName { - get { - return this.developerNameField; - } - set { - this.developerNameField = value; - } - } - - /// The platform the mobile application runs on. This attribute is read-only and - /// populated by Google. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 7)] - public MobileApplicationPlatform platform { - get { - return this.platformField; - } - set { - this.platformField = value; - this.platformSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool platformSpecified { - get { - return this.platformFieldSpecified; - } - set { - this.platformFieldSpecified = value; - } - } - - /// 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 = 8)] - public bool isFree { - get { - return this.isFreeField; - } - set { - this.isFreeField = value; - this.isFreeSpecified = true; - } - } - - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool isFreeSpecified { - get { - return this.isFreeFieldSpecified; - } - set { - this.isFreeFieldSpecified = value; - } - } - - /// 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(Order = 9)] - public string downloadUrl { - get { - return this.downloadUrlField; - } - set { - this.downloadUrlField = value; - } - } - } - - - /// A store a MobileApplication is available on. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum MobileApplicationStore { - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 0, - APPLE_ITUNES = 1, - GOOGLE_PLAY = 2, - } - - - /// A platform a MobileApplication can run on. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum MobileApplicationPlatform { - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 0, - ANDROID = 1, - IOS = 2, - } - - - /// Lists all errors associated with MobileApplication objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class MobileApplicationError : ApiError { - private MobileApplicationErrorReason reasonField; - - private bool reasonFieldSpecified; - - /// The error reason represented by an enum. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public MobileApplicationErrorReason 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 MobileApplication. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "MobileApplicationError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum MobileApplicationErrorReason { - /// Could not find the ID of the app being claimed in any app stores. - /// - INVALID_APP_ID = 0, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 1, - } - - - /// Lists all error reasons associated with performing actions on MobileApplication objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class MobileApplicationActionError : ApiError { - private MobileApplicationActionErrorReason reasonField; - - private bool reasonFieldSpecified; - - /// The error reason represented by an enum. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public MobileApplicationActionErrorReason 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.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "MobileApplicationActionError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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, - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", ConfigurationName = "Google.Api.Ads.AdManager.v201808.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.v201808.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.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v201808.MobileApplicationPage getMobileApplicationsByStatement(Google.Api.Ads.AdManager.v201808.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getMobileApplicationsByStatementAsync(Google.Api.Ads.AdManager.v201808.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v201808.UpdateResult performMobileApplicationAction(Google.Api.Ads.AdManager.v201808.MobileApplicationAction mobileApplicationAction, Google.Api.Ads.AdManager.v201808.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task performMobileApplicationActionAsync(Google.Api.Ads.AdManager.v201808.MobileApplicationAction mobileApplicationAction, Google.Api.Ads.AdManager.v201808.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.v201808.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); - } - - - /// Captures a page of mobile applications. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class MobileApplicationPage { - private int totalResultSetSizeField; - - private bool totalResultSetSizeFieldSpecified; - - private int startIndexField; - - private bool startIndexFieldSpecified; - - private MobileApplication[] 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 mobile applications contained within this page. - /// - [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] - public MobileApplication[] results { - get { - return this.resultsField; - } - set { - this.resultsField = 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.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public abstract partial class MobileApplicationAction { - } - - - /// The action used to deactivate MobileApplication - /// objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ArchiveMobileApplications : MobileApplicationAction { - } - - - /// The action used to activate MobileApplication - /// objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class UnarchiveMobileApplications : MobileApplicationAction { - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public interface MobileApplicationServiceInterfaceChannel : Google.Api.Ads.AdManager.v201808.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) { - } - - /// Creates a new instance of the - /// class. - public MobileApplicationService(string endpointConfigurationName, string remoteAddress) - : base(endpointConfigurationName, 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 MobileApplicationService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) - : base(binding, remoteAddress) { - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.MobileApplicationService.createMobileApplicationsResponse Google.Api.Ads.AdManager.v201808.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 mobileApplications to create - /// the created mobileApplications with their IDs filled in - public virtual Google.Api.Ads.AdManager.v201808.MobileApplication[] createMobileApplications(Google.Api.Ads.AdManager.v201808.MobileApplication[] mobileApplications) { - Wrappers.MobileApplicationService.createMobileApplicationsRequest inValue = new Wrappers.MobileApplicationService.createMobileApplicationsRequest(); - inValue.mobileApplications = mobileApplications; - Wrappers.MobileApplicationService.createMobileApplicationsResponse retVal = ((Google.Api.Ads.AdManager.v201808.MobileApplicationServiceInterface)(this)).createMobileApplications(inValue); - return retVal.rval; - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201808.MobileApplicationServiceInterface.createMobileApplicationsAsync(Wrappers.MobileApplicationService.createMobileApplicationsRequest request) { - return base.Channel.createMobileApplicationsAsync(request); - } - - public virtual System.Threading.Tasks.Task createMobileApplicationsAsync(Google.Api.Ads.AdManager.v201808.MobileApplication[] mobileApplications) { - Wrappers.MobileApplicationService.createMobileApplicationsRequest inValue = new Wrappers.MobileApplicationService.createMobileApplicationsRequest(); - inValue.mobileApplications = mobileApplications; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201808.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
- ///
a Publisher Query Language statement used to - /// filter a set of mobile applications. - /// the mobile applications that match the given filter - public virtual Google.Api.Ads.AdManager.v201808.MobileApplicationPage getMobileApplicationsByStatement(Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.getMobileApplicationsByStatement(filterStatement); - } - - public virtual System.Threading.Tasks.Task getMobileApplicationsByStatementAsync(Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.getMobileApplicationsByStatementAsync(filterStatement); - } - - /// Performs an action on mobile applications. - /// the action to perform - /// a Publisher Query Language statement used to - /// filter a set of mobile applications. - /// the result of the action performed - public virtual Google.Api.Ads.AdManager.v201808.UpdateResult performMobileApplicationAction(Google.Api.Ads.AdManager.v201808.MobileApplicationAction mobileApplicationAction, Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.performMobileApplicationAction(mobileApplicationAction, filterStatement); - } - - public virtual System.Threading.Tasks.Task performMobileApplicationActionAsync(Google.Api.Ads.AdManager.v201808.MobileApplicationAction mobileApplicationAction, Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.performMobileApplicationActionAsync(mobileApplicationAction, filterStatement); - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.MobileApplicationService.updateMobileApplicationsResponse Google.Api.Ads.AdManager.v201808.MobileApplicationServiceInterface.updateMobileApplications(Wrappers.MobileApplicationService.updateMobileApplicationsRequest request) { - return base.Channel.updateMobileApplications(request); - } - - /// Updates the specified mobile applications. - /// the mobile applications to be updated - /// the updated mobileApplications - public virtual Google.Api.Ads.AdManager.v201808.MobileApplication[] updateMobileApplications(Google.Api.Ads.AdManager.v201808.MobileApplication[] mobileApplications) { - Wrappers.MobileApplicationService.updateMobileApplicationsRequest inValue = new Wrappers.MobileApplicationService.updateMobileApplicationsRequest(); - inValue.mobileApplications = mobileApplications; - Wrappers.MobileApplicationService.updateMobileApplicationsResponse retVal = ((Google.Api.Ads.AdManager.v201808.MobileApplicationServiceInterface)(this)).updateMobileApplications(inValue); - return retVal.rval; - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201808.MobileApplicationServiceInterface.updateMobileApplicationsAsync(Wrappers.MobileApplicationService.updateMobileApplicationsRequest request) { - return base.Channel.updateMobileApplicationsAsync(request); - } - - public virtual System.Threading.Tasks.Task updateMobileApplicationsAsync(Google.Api.Ads.AdManager.v201808.MobileApplication[] mobileApplications) { - Wrappers.MobileApplicationService.updateMobileApplicationsRequest inValue = new Wrappers.MobileApplicationService.updateMobileApplicationsRequest(); - inValue.mobileApplications = mobileApplications; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201808.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/v201808", 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/v201808", IsWrapped = true)] - public partial class getAllNetworksResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v201808.Network[] rval; - - /// Creates a new instance of the - /// class. - public getAllNetworksResponse() { - } - - /// Creates a new instance of the - /// class. - public getAllNetworksResponse(Google.Api.Ads.AdManager.v201808.Network[] rval) { - this.rval = rval; - } - } - } - /// Network represents a network. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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. - /// - [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. - /// - [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. - /// - [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. - /// - [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. - /// - [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. - /// - [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. - /// - [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. - /// - [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. - /// - [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; - } - } - } - - - /// List all errors associated with number precisions. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class PrecisionError : ApiError { - private PrecisionErrorReason reasonField; - - private bool reasonFieldSpecified; - - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public PrecisionErrorReason 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 precision errors. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "PrecisionError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum PrecisionErrorReason { - /// The lowest N digits of the number must be zero. - /// - WRONG_PRECISION = 0, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 1, - } - - - /// An error for a network. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class NetworkError : ApiError { - private NetworkErrorReason reasonField; - - private bool reasonFieldSpecified; - - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public NetworkErrorReason 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 reasons for NetworkError - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "NetworkError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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, - } - - - /// Caused by supplying a value for an email attribute that is not a valid email - /// address. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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; - } - } - } - - - /// Describes reasons for an email to be invalid. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "InvalidEmailError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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, - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", ConfigurationName = "Google.Api.Ads.AdManager.v201808.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.v201808.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.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v201808.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.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v201808.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.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v201808.Network updateNetwork(Google.Api.Ads.AdManager.v201808.Network network); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task updateNetworkAsync(Google.Api.Ads.AdManager.v201808.Network network); - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public interface NetworkServiceInterfaceChannel : Google.Api.Ads.AdManager.v201808.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.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() { - } - - /// Creates a new instance of the class. - /// - public NetworkService(string endpointConfigurationName) - : base(endpointConfigurationName) { - } - - /// Creates a new instance of the class. - /// - public NetworkService(string endpointConfigurationName, string remoteAddress) - : base(endpointConfigurationName, remoteAddress) { - } - - /// Creates a new instance of the class. - /// - public NetworkService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) - : base(endpointConfigurationName, remoteAddress) { - } - - /// Creates a new instance of the class. - /// - public NetworkService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) - : base(binding, remoteAddress) { - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.NetworkService.getAllNetworksResponse Google.Api.Ads.AdManager.v201808.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.

- ///
the networks to which the current login has access - public virtual Google.Api.Ads.AdManager.v201808.Network[] getAllNetworks() { - Wrappers.NetworkService.getAllNetworksRequest inValue = new Wrappers.NetworkService.getAllNetworksRequest(); - Wrappers.NetworkService.getAllNetworksResponse retVal = ((Google.Api.Ads.AdManager.v201808.NetworkServiceInterface)(this)).getAllNetworks(inValue); - return retVal.rval; - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201808.NetworkServiceInterface.getAllNetworksAsync(Wrappers.NetworkService.getAllNetworksRequest request) { - return base.Channel.getAllNetworksAsync(request); - } - - 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.v201808.NetworkServiceInterface)(this)).getAllNetworksAsync(inValue)).Result.rval); - } - - /// Returns the current network for which requests are being made. - /// the network for which the user is currently making the - /// request - public virtual Google.Api.Ads.AdManager.v201808.Network getCurrentNetwork() { - return base.Channel.getCurrentNetwork(); - } - - public virtual System.Threading.Tasks.Task getCurrentNetworkAsync() { - return base.Channel.getCurrentNetworkAsync(); - } - - /// 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.


- ///
- public virtual Google.Api.Ads.AdManager.v201808.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. - /// the network that needs to be updated - /// the updated network - public virtual Google.Api.Ads.AdManager.v201808.Network updateNetwork(Google.Api.Ads.AdManager.v201808.Network network) { - return base.Channel.updateNetwork(network); - } - - public virtual System.Threading.Tasks.Task updateNetworkAsync(Google.Api.Ads.AdManager.v201808.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/v201808", IsWrapped = true)] - public partial class createOrdersRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("orders")] - public Google.Api.Ads.AdManager.v201808.Order[] orders; - - /// Creates a new instance of the class. - /// - public createOrdersRequest() { - } - - /// Creates a new instance of the class. - /// - public createOrdersRequest(Google.Api.Ads.AdManager.v201808.Order[] orders) { - this.orders = orders; - } - } - - - [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/v201808", IsWrapped = true)] - public partial class createOrdersResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v201808.Order[] rval; - - /// Creates a new instance of the - /// class. - public createOrdersResponse() { - } - - /// Creates a new instance of the - /// class. - public createOrdersResponse(Google.Api.Ads.AdManager.v201808.Order[] 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 = "updateOrders", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201808", IsWrapped = true)] - public partial class updateOrdersRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("orders")] - public Google.Api.Ads.AdManager.v201808.Order[] orders; - - /// Creates a new instance of the class. - /// - public updateOrdersRequest() { - } - - /// Creates a new instance of the class. - /// - public updateOrdersRequest(Google.Api.Ads.AdManager.v201808.Order[] orders) { - this.orders = orders; - } - } - - - [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/v201808", IsWrapped = true)] - public partial class updateOrdersResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v201808.Order[] rval; - - /// Creates a new instance of the - /// class. - public updateOrdersResponse() { - } - - /// Creates a new instance of the - /// class. - public updateOrdersResponse(Google.Api.Ads.AdManager.v201808.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. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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; - - private bool isProgrammaticFieldSpecified; - - private long[] appliedTeamIdsField; - - private DateTime lastModifiedDateTimeField; - - private BaseCustomFieldValue[] customFieldValuesField; - - /// The unique ID of the Order. 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 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 { - get { - return this.nameField; - } - set { - this.nameField = value; - } - } - - /// 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 { - get { - return this.startDateTimeField; - } - set { - this.startDateTimeField = 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. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public DateTime endDateTime { - get { - return this.endDateTimeField; - } - set { - this.endDateTimeField = 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 { - 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 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 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; - } - } - - /// 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; - } - } - - /// 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 { - get { - return this.externalOrderIdField; - } - set { - this.externalOrderIdField = value; - this.externalOrderIdSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool externalOrderIdSpecified { - get { - return this.externalOrderIdFieldSpecified; - } - set { - this.externalOrderIdFieldSpecified = 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 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(Order = 11)] - 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 advertiserIdSpecified { - get { - return this.advertiserIdFieldSpecified; - } - set { - this.advertiserIdFieldSpecified = value; - } - } - - /// List of IDs for advertiser contacts of the order. - /// - [System.Xml.Serialization.XmlElementAttribute("advertiserContactIds", Order = 12)] - public long[] advertiserContactIds { - get { - return this.advertiserContactIdsField; - } - set { - this.advertiserContactIdsField = value; - } - } - - /// 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 agencyId { - get { - return this.agencyIdField; - } - set { - this.agencyIdField = value; - this.agencyIdSpecified = true; - } - } - - /// 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; - } - } - - /// List of IDs for agency contacts of the order. - /// - [System.Xml.Serialization.XmlElementAttribute("agencyContactIds", Order = 14)] - public long[] agencyContactIds { - get { - return this.agencyContactIdsField; - } - set { - this.agencyContactIdsField = value; - } - } - - /// 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 long creatorId { - get { - return this.creatorIdField; - } - set { - this.creatorIdField = value; - this.creatorIdSpecified = true; - } - } - - /// 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; - } - } - - /// 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 long traffickerId { - get { - return this.traffickerIdField; - } - set { - this.traffickerIdField = value; - this.traffickerIdSpecified = true; - } - } - - /// 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; - } - } - - /// 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; - } - } - - /// 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 salespersonId { - get { - return this.salespersonIdField; - } - set { - this.salespersonIdField = value; - this.salespersonIdSpecified = true; - } - } - - /// 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; - } - } - - /// The IDs of the secondary salespeople associated with the order. This value is - /// optional. - /// - [System.Xml.Serialization.XmlElementAttribute("secondarySalespersonIds", Order = 19)] - public long[] secondarySalespersonIds { - get { - return this.secondarySalespersonIdsField; - } - set { - this.secondarySalespersonIdsField = value; - } - } - - /// 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 totalImpressionsDelivered { - get { - return this.totalImpressionsDeliveredField; - } - set { - this.totalImpressionsDeliveredField = value; - this.totalImpressionsDeliveredSpecified = true; - } - } - - /// 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; - } - } - - /// 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 long totalClicksDelivered { - get { - return this.totalClicksDeliveredField; - } - set { - this.totalClicksDeliveredField = value; - this.totalClicksDeliveredSpecified = true; - } - } - - /// 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; - } - } - - /// 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; - } - set { - this.totalViewableImpressionsDeliveredField = value; - this.totalViewableImpressionsDeliveredSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - /// - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool totalViewableImpressionsDeliveredSpecified { - get { - return this.totalViewableImpressionsDeliveredFieldSpecified; - } - set { - this.totalViewableImpressionsDeliveredFieldSpecified = value; - } - } - - /// 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; - } - set { - this.totalBudgetField = value; - } - } - - /// The set of labels applied directly to this order. - /// - [System.Xml.Serialization.XmlElementAttribute("appliedLabels", Order = 24)] - public AppliedLabel[] appliedLabels { - get { - return this.appliedLabelsField; - } - set { - this.appliedLabelsField = value; - } - } - - /// 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; - } - set { - this.effectiveAppliedLabelsField = value; - } - } - - /// 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; - } - set { - this.lastModifiedByAppField = value; - } - } - - /// 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 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; - } - } - - /// The IDs of all teams that this order is on directly. - /// - [System.Xml.Serialization.XmlElementAttribute("appliedTeamIds", Order = 28)] - public long[] appliedTeamIds { - get { - return this.appliedTeamIdsField; - } - set { - this.appliedTeamIdsField = value; - } - } - - /// The date and time this order was last modified. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 29)] - public DateTime lastModifiedDateTime { - get { - return this.lastModifiedDateTimeField; - } - set { - this.lastModifiedDateTimeField = value; - } - } - - /// The values of the custom fields associated with this order. - /// - [System.Xml.Serialization.XmlElementAttribute("customFieldValues", Order = 30)] - public BaseCustomFieldValue[] customFieldValues { - get { - return this.customFieldValuesField; - } - set { - this.customFieldValuesField = value; - } - } - } - - - /// Describes the order statuses. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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. - /// - 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, - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", ConfigurationName = "Google.Api.Ads.AdManager.v201808.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.v201808.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); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task createOrdersAsync(Wrappers.OrderService.createOrdersRequest request); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v201808.OrderPage getOrdersByStatement(Google.Api.Ads.AdManager.v201808.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getOrdersByStatementAsync(Google.Api.Ads.AdManager.v201808.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v201808.UpdateResult performOrderAction(Google.Api.Ads.AdManager.v201808.OrderAction orderAction, Google.Api.Ads.AdManager.v201808.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task performOrderActionAsync(Google.Api.Ads.AdManager.v201808.OrderAction orderAction, Google.Api.Ads.AdManager.v201808.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.v201808.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.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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 = 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 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.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public abstract partial class OrderAction { - } - - - /// The action used for unarchiving Order objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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 = 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 submitting and overbooking Order objects - /// for approval. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class RetractOrdersWithoutReservationChanges : OrderAction { - } - - - /// The action used for retracting Order objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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 = 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 resuming and overbooking Order objects. - /// All LineItem objects within the order will resume as - /// well. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ResumeAndOverbookOrders : ResumeOrders { - } - - - /// The action used for pausing all LineItem objects within - /// an order. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class DeleteOrders : OrderAction { - } - - - /// The action used for archiving Order objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ApproveOrdersWithoutReservationChanges : OrderAction { - } - - - /// 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.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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 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 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.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ApproveAndOverbookOrders : ApproveOrders { - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public interface OrderServiceInterfaceChannel : Google.Api.Ads.AdManager.v201808.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. - /// - public OrderService() { - } - - /// Creates a new instance of the class. - /// - public OrderService(string endpointConfigurationName) - : base(endpointConfigurationName) { - } - - /// Creates a new instance of the class. - /// - public OrderService(string endpointConfigurationName, string remoteAddress) - : base(endpointConfigurationName, remoteAddress) { - } - - /// Creates a new instance of the class. - /// - public OrderService(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) - : base(binding, remoteAddress) { - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.OrderService.createOrdersResponse Google.Api.Ads.AdManager.v201808.OrderServiceInterface.createOrders(Wrappers.OrderService.createOrdersRequest request) { - return base.Channel.createOrders(request); - } - - /// Creates new Order objects. - /// the orders to create - /// the created orders with their IDs filled in - public virtual Google.Api.Ads.AdManager.v201808.Order[] createOrders(Google.Api.Ads.AdManager.v201808.Order[] orders) { - Wrappers.OrderService.createOrdersRequest inValue = new Wrappers.OrderService.createOrdersRequest(); - inValue.orders = orders; - Wrappers.OrderService.createOrdersResponse retVal = ((Google.Api.Ads.AdManager.v201808.OrderServiceInterface)(this)).createOrders(inValue); - return retVal.rval; - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201808.OrderServiceInterface.createOrdersAsync(Wrappers.OrderService.createOrdersRequest request) { - return base.Channel.createOrdersAsync(request); - } - - public virtual System.Threading.Tasks.Task createOrdersAsync(Google.Api.Ads.AdManager.v201808.Order[] orders) { - Wrappers.OrderService.createOrdersRequest inValue = new Wrappers.OrderService.createOrdersRequest(); - inValue.orders = orders; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201808.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
advertiserId Order#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
- ///
a Publisher Query Language statement used to - /// filter a set of orders - /// the orders that match the given filter - public virtual Google.Api.Ads.AdManager.v201808.OrderPage getOrdersByStatement(Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.getOrdersByStatement(filterStatement); - } - - public virtual System.Threading.Tasks.Task getOrdersByStatementAsync(Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.getOrdersByStatementAsync(filterStatement); - } - - /// Performs actions on Order objects that match the given Statement#query. - /// the action to perform - /// a Publisher Query Language statement used to - /// filter a set of orders - /// the result of the action performed - public virtual Google.Api.Ads.AdManager.v201808.UpdateResult performOrderAction(Google.Api.Ads.AdManager.v201808.OrderAction orderAction, Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.performOrderAction(orderAction, filterStatement); - } - - public virtual System.Threading.Tasks.Task performOrderActionAsync(Google.Api.Ads.AdManager.v201808.OrderAction orderAction, Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.performOrderActionAsync(orderAction, filterStatement); - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.OrderService.updateOrdersResponse Google.Api.Ads.AdManager.v201808.OrderServiceInterface.updateOrders(Wrappers.OrderService.updateOrdersRequest request) { - return base.Channel.updateOrders(request); - } - - /// Updates the specified Order objects. - /// the orders to update - /// the updated orders - public virtual Google.Api.Ads.AdManager.v201808.Order[] updateOrders(Google.Api.Ads.AdManager.v201808.Order[] orders) { - Wrappers.OrderService.updateOrdersRequest inValue = new Wrappers.OrderService.updateOrdersRequest(); - inValue.orders = orders; - Wrappers.OrderService.updateOrdersResponse retVal = ((Google.Api.Ads.AdManager.v201808.OrderServiceInterface)(this)).updateOrders(inValue); - return retVal.rval; - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201808.OrderServiceInterface.updateOrdersAsync(Wrappers.OrderService.updateOrdersRequest request) { - return base.Channel.updateOrdersAsync(request); - } - - public virtual System.Threading.Tasks.Task updateOrdersAsync(Google.Api.Ads.AdManager.v201808.Order[] orders) { - Wrappers.OrderService.updateOrdersRequest inValue = new Wrappers.OrderService.updateOrdersRequest(); - inValue.orders = orders; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201808.OrderServiceInterface)(this)).updateOrdersAsync(inValue)).Result.rval); - } - } - namespace Wrappers.AdExclusionRuleService - { - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "createAdExclusionRules", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201808", IsWrapped = true)] - public partial class createAdExclusionRulesRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("adExclusionRules")] - public Google.Api.Ads.AdManager.v201808.AdExclusionRule[] adExclusionRules; - - /// Creates a new instance of the class. - public createAdExclusionRulesRequest() { - } - - /// Creates a new instance of the class. - public createAdExclusionRulesRequest(Google.Api.Ads.AdManager.v201808.AdExclusionRule[] adExclusionRules) { - this.adExclusionRules = adExclusionRules; - } - } - - - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "createAdExclusionRulesResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201808", IsWrapped = true)] - public partial class createAdExclusionRulesResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v201808.AdExclusionRule[] rval; - - /// Creates a new instance of the class. - public createAdExclusionRulesResponse() { - } - - /// Creates a new instance of the class. - public createAdExclusionRulesResponse(Google.Api.Ads.AdManager.v201808.AdExclusionRule[] 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 = "updateAdExclusionRules", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201808", IsWrapped = true)] - public partial class updateAdExclusionRulesRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("adExclusionRules")] - public Google.Api.Ads.AdManager.v201808.AdExclusionRule[] adExclusionRules; - - /// Creates a new instance of the class. - public updateAdExclusionRulesRequest() { - } - - /// Creates a new instance of the class. - public updateAdExclusionRulesRequest(Google.Api.Ads.AdManager.v201808.AdExclusionRule[] adExclusionRules) { - this.adExclusionRules = adExclusionRules; - } - } - - - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "updateAdExclusionRulesResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201808", IsWrapped = true)] - public partial class updateAdExclusionRulesResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v201808.AdExclusionRule[] rval; - - /// Creates a new instance of the class. - public updateAdExclusionRulesResponse() { - } - - /// Creates a new instance of the class. - public updateAdExclusionRulesResponse(Google.Api.Ads.AdManager.v201808.AdExclusionRule[] rval) { - this.rval = rval; - } - } - } - /// Represents an inventory blocking rule, which prevents certain ads from being - /// served to specified ad units. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class AdExclusionRule { - private long idField; - - private bool idFieldSpecified; - - private string nameField; - - private bool isActiveField; - - private bool isActiveFieldSpecified; - - private InventoryTargeting inventoryTargetingField; - - private bool isBlockAllField; - - private bool isBlockAllFieldSpecified; - - private long[] blockedLabelIdsField; - - private long[] allowedLabelIdsField; - - private AdExclusionRuleType typeField; - - private bool typeFieldSpecified; - - /// The unique ID of the AdExclusionRule. This attribute 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 AdExclusionRule. This attribute is required. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public string name { - get { - return this.nameField; - } - set { - this.nameField = value; - } - } - - /// Whether or not the AdExclusionRule is active. An inactive rule will - /// have no effect on adserving. This attribute is readonly. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - 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; - } - } - - /// The targeting information about which AdUnitTargeting objects this rule is in effect for. - /// Any AdUnitTargeting objects included here will - /// have their children included implicitly. Children of a targeted ad unit can be - /// excluded. This attribute is required. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public InventoryTargeting inventoryTargeting { - get { - return this.inventoryTargetingField; - } - set { - this.inventoryTargetingField = value; - } - } - - /// Whether or not this rule blocks all ads from serving other than the labels or - /// advertisers specified. This attribute is optional and defaults to false. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public bool isBlockAll { - get { - return this.isBlockAllField; - } - set { - this.isBlockAllField = value; - this.isBlockAllSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool isBlockAllSpecified { - get { - return this.isBlockAllFieldSpecified; - } - set { - this.isBlockAllFieldSpecified = value; - } - } - - /// The labels that will be blocked from serving. Any advertiser, order or line item - /// with one of these labels will not serve on the relevant ad units and their - /// children. - /// - [System.Xml.Serialization.XmlElementAttribute("blockedLabelIds", Order = 5)] - public long[] blockedLabelIds { - get { - return this.blockedLabelIdsField; - } - set { - this.blockedLabelIdsField = value; - } - } - - /// The allowed list of labels that will not be blocked by this rule. This trumps - /// the values of #isBlockAllLabels and #blockedLabelIds. For example, if a rule specifies a - /// blocked label "Cars", and an allowed label "Sports", any ad that is labeled both - /// "Sports" and "Cars" will not be blocked by this rule. - /// - [System.Xml.Serialization.XmlElementAttribute("allowedLabelIds", Order = 6)] - public long[] allowedLabelIds { - get { - return this.allowedLabelIdsField; - } - set { - this.allowedLabelIdsField = value; - } - } - - /// The derived type of this rule: whether it is associated with labels, unified - /// entities, or competitive groups. Because it is derived, it is also read-only, so - /// changes made to this field will not be persisted. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 7)] - public AdExclusionRuleType 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; - } - } - } - - - /// The derived type of this rule: whether it is associated with labels, unified - /// entities, or competitive groups. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum AdExclusionRuleType { - /// Rule is associated with labels and is relevant only for direct reservations. - /// - LABEL = 0, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 1, - } - - - /// Ad exclusion rule specific errors. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class AdExclusionRuleError : ApiError { - private AdExclusionRuleErrorReason reasonField; - - private bool reasonFieldSpecified; - - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public AdExclusionRuleErrorReason 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 ad exclusion rule error. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AdExclusionRuleError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum AdExclusionRuleErrorReason { - /// The AdExclusionRule#inventoryTargeting - /// cannot target the root ad unit if AdExclusionRule#isBlockAll is true. - /// - BLOCK_ALL_RULE_CANNOT_INCLUDE_ROOT_AD_UNIT = 0, - /// The AdExclusionRule#blockedLabelIds must - /// be empty if AdExclusionRule#isBlockAll - /// is true. - /// - BLOCK_ALL_RULE_CANNOT_HAVE_BLOCKED_LABELS = 1, - /// The AdExclusionRule#allowedLabelIds must - /// contain allowed labels if AdExclusionRule#isBlockAll is true. - /// - BLOCK_ALL_RULE_MUST_CONTAIN_ALLOWED_LABELS = 2, - /// The AdExclusionRule must contain blocking - /// information. - /// - RULE_MUST_CONTAIN_BLOCKING = 3, - /// The same label ID cannot be contained in both AdExclusionRule#allowedLabelIds and - /// AdExclusionRule#blockedLabelIds. - /// - BLOCKED_LABEL_ALSO_ALLOWED = 4, - /// Label IDs included in AdExclusionRule#allowedLabelIds and - /// AdExclusionRule#blockedLabelIds - /// must correspond to Label objects with type Label#AD_EXCLUSION. - /// - LABELS_MUST_BE_AD_EXCLUSION_TYPE = 5, - /// The same ad unit cannot be included in both InventoryTargeting#targetedAdUnits - /// and InventoryTargeting#excludedAdUnits - /// in AdExclusionRule#inventoryTargeting. - /// - EXCLUDED_AD_UNIT_ALSO_INCLUDED = 6, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 7, - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", ConfigurationName = "Google.Api.Ads.AdManager.v201808.AdExclusionRuleServiceInterface")] - public interface AdExclusionRuleServiceInterface - { - // 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.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Wrappers.AdExclusionRuleService.createAdExclusionRulesResponse createAdExclusionRules(Wrappers.AdExclusionRuleService.createAdExclusionRulesRequest request); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task createAdExclusionRulesAsync(Wrappers.AdExclusionRuleService.createAdExclusionRulesRequest request); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v201808.AdExclusionRulePage getAdExclusionRulesByStatement(Google.Api.Ads.AdManager.v201808.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getAdExclusionRulesByStatementAsync(Google.Api.Ads.AdManager.v201808.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v201808.UpdateResult performAdExclusionRuleAction(Google.Api.Ads.AdManager.v201808.AdExclusionRuleAction adExclusionRuleAction, Google.Api.Ads.AdManager.v201808.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task performAdExclusionRuleActionAsync(Google.Api.Ads.AdManager.v201808.AdExclusionRuleAction adExclusionRuleAction, Google.Api.Ads.AdManager.v201808.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.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Wrappers.AdExclusionRuleService.updateAdExclusionRulesResponse updateAdExclusionRules(Wrappers.AdExclusionRuleService.updateAdExclusionRulesRequest request); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task updateAdExclusionRulesAsync(Wrappers.AdExclusionRuleService.updateAdExclusionRulesRequest request); - } - - - /// Represents a page of AdExclusionRule objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class AdExclusionRulePage { - private int totalResultSetSizeField; - - private bool totalResultSetSizeFieldSpecified; - - private int startIndexField; - - private bool startIndexFieldSpecified; - - private AdExclusionRule[] 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 audience segments contained within this page. - /// - [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] - public AdExclusionRule[] results { - get { - return this.resultsField; - } - set { - this.resultsField = value; - } - } - } - - - /// Represents the actions that can be performed on AdExclusionRule objects. - /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(DeactivateAdExclusionRules))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ActivateAdExclusionRules))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public abstract partial class AdExclusionRuleAction { - } - - - /// Deactivate action. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class DeactivateAdExclusionRules : AdExclusionRuleAction { - } - - - /// Activate action. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ActivateAdExclusionRules : AdExclusionRuleAction { - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public interface AdExclusionRuleServiceInterfaceChannel : Google.Api.Ads.AdManager.v201808.AdExclusionRuleServiceInterface, System.ServiceModel.IClientChannel - { - } - - - /// Provides methods for creating, updating and retrieving AdExclusionRule objects.

An AdExclusionRule provides a way to block specified ads - /// from showing on portions of your site. Each rule specifies the inventory on - /// which the rule is in effect, and the labels to block on that inventory.

- ///
- [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public partial class AdExclusionRuleService : AdManagerSoapClient, IAdExclusionRuleService { - /// Creates a new instance of the - /// class. - public AdExclusionRuleService() { - } - - /// Creates a new instance of the - /// class. - public AdExclusionRuleService(string endpointConfigurationName) - : base(endpointConfigurationName) { - } - - /// Creates a new instance of the - /// class. - public AdExclusionRuleService(string endpointConfigurationName, string remoteAddress) - : base(endpointConfigurationName, remoteAddress) { - } - - /// Creates a new instance of the - /// class. - public AdExclusionRuleService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) - : base(endpointConfigurationName, remoteAddress) { - } - - /// Creates a new instance of the - /// class. - public AdExclusionRuleService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) - : base(binding, remoteAddress) { - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.AdExclusionRuleService.createAdExclusionRulesResponse Google.Api.Ads.AdManager.v201808.AdExclusionRuleServiceInterface.createAdExclusionRules(Wrappers.AdExclusionRuleService.createAdExclusionRulesRequest request) { - return base.Channel.createAdExclusionRules(request); - } - - /// Creates new AdExclusionRule objects. - /// the ad exclusion rules to create - /// the created rules with their IDs filled in - public virtual Google.Api.Ads.AdManager.v201808.AdExclusionRule[] createAdExclusionRules(Google.Api.Ads.AdManager.v201808.AdExclusionRule[] adExclusionRules) { - Wrappers.AdExclusionRuleService.createAdExclusionRulesRequest inValue = new Wrappers.AdExclusionRuleService.createAdExclusionRulesRequest(); - inValue.adExclusionRules = adExclusionRules; - Wrappers.AdExclusionRuleService.createAdExclusionRulesResponse retVal = ((Google.Api.Ads.AdManager.v201808.AdExclusionRuleServiceInterface)(this)).createAdExclusionRules(inValue); - return retVal.rval; - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201808.AdExclusionRuleServiceInterface.createAdExclusionRulesAsync(Wrappers.AdExclusionRuleService.createAdExclusionRulesRequest request) { - return base.Channel.createAdExclusionRulesAsync(request); - } - - public virtual System.Threading.Tasks.Task createAdExclusionRulesAsync(Google.Api.Ads.AdManager.v201808.AdExclusionRule[] adExclusionRules) { - Wrappers.AdExclusionRuleService.createAdExclusionRulesRequest inValue = new Wrappers.AdExclusionRuleService.createAdExclusionRulesRequest(); - inValue.adExclusionRules = adExclusionRules; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201808.AdExclusionRuleServiceInterface)(this)).createAdExclusionRulesAsync(inValue)).Result.rval); - } - - /// Gets a AdExclusionRulePage of AdExclusionRule objects that satisfy the given Statement#query. The following fields are supported - /// for filtering: - /// - ///
PQL Property Object Property
id AdExclusionRule#id
name AdExclusionRule#name
status AdExclusionRule#status
- ///
a Publisher Query Language statement used to - /// filter a set of rules - /// the rules that match the given filter - public virtual Google.Api.Ads.AdManager.v201808.AdExclusionRulePage getAdExclusionRulesByStatement(Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.getAdExclusionRulesByStatement(filterStatement); - } - - public virtual System.Threading.Tasks.Task getAdExclusionRulesByStatementAsync(Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.getAdExclusionRulesByStatementAsync(filterStatement); - } - - /// Performs action on AdExclusionRule objects that - /// satisfy the given Statement#query. - /// the action to perform - /// a Publisher Query Language statement used to - /// filter a set of ad exclusion rules - /// the result of the action performed - public virtual Google.Api.Ads.AdManager.v201808.UpdateResult performAdExclusionRuleAction(Google.Api.Ads.AdManager.v201808.AdExclusionRuleAction adExclusionRuleAction, Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.performAdExclusionRuleAction(adExclusionRuleAction, filterStatement); - } - - public virtual System.Threading.Tasks.Task performAdExclusionRuleActionAsync(Google.Api.Ads.AdManager.v201808.AdExclusionRuleAction adExclusionRuleAction, Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.performAdExclusionRuleActionAsync(adExclusionRuleAction, filterStatement); - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.AdExclusionRuleService.updateAdExclusionRulesResponse Google.Api.Ads.AdManager.v201808.AdExclusionRuleServiceInterface.updateAdExclusionRules(Wrappers.AdExclusionRuleService.updateAdExclusionRulesRequest request) { - return base.Channel.updateAdExclusionRules(request); - } - - /// Updates the specified AdExclusionRule objects. - /// the ad exclusion rules to update - /// the updated rules - public virtual Google.Api.Ads.AdManager.v201808.AdExclusionRule[] updateAdExclusionRules(Google.Api.Ads.AdManager.v201808.AdExclusionRule[] adExclusionRules) { - Wrappers.AdExclusionRuleService.updateAdExclusionRulesRequest inValue = new Wrappers.AdExclusionRuleService.updateAdExclusionRulesRequest(); - inValue.adExclusionRules = adExclusionRules; - Wrappers.AdExclusionRuleService.updateAdExclusionRulesResponse retVal = ((Google.Api.Ads.AdManager.v201808.AdExclusionRuleServiceInterface)(this)).updateAdExclusionRules(inValue); - return retVal.rval; - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201808.AdExclusionRuleServiceInterface.updateAdExclusionRulesAsync(Wrappers.AdExclusionRuleService.updateAdExclusionRulesRequest request) { - return base.Channel.updateAdExclusionRulesAsync(request); - } - - public virtual System.Threading.Tasks.Task updateAdExclusionRulesAsync(Google.Api.Ads.AdManager.v201808.AdExclusionRule[] adExclusionRules) { - Wrappers.AdExclusionRuleService.updateAdExclusionRulesRequest inValue = new Wrappers.AdExclusionRuleService.updateAdExclusionRulesRequest(); - inValue.adExclusionRules = adExclusionRules; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201808.AdExclusionRuleServiceInterface)(this)).updateAdExclusionRulesAsync(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/v201808", IsWrapped = true)] - public partial class createPlacementsRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("placements")] - public Google.Api.Ads.AdManager.v201808.Placement[] placements; - - /// Creates a new instance of the - /// class. - public createPlacementsRequest() { - } - - /// Creates a new instance of the - /// class. - public createPlacementsRequest(Google.Api.Ads.AdManager.v201808.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 = "createPlacementsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201808", IsWrapped = true)] - public partial class createPlacementsResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v201808.Placement[] rval; - - /// Creates a new instance of the - /// class. - public createPlacementsResponse() { - } - - /// Creates a new instance of the - /// class. - public createPlacementsResponse(Google.Api.Ads.AdManager.v201808.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/v201808", IsWrapped = true)] - public partial class updatePlacementsRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("placements")] - public Google.Api.Ads.AdManager.v201808.Placement[] placements; - - /// Creates a new instance of the - /// class. - public updatePlacementsRequest() { - } - - /// Creates a new instance of the - /// class. - public updatePlacementsRequest(Google.Api.Ads.AdManager.v201808.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/v201808", IsWrapped = true)] - public partial class updatePlacementsResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v201808.Placement[] rval; - - /// Creates a new instance of the - /// class. - public updatePlacementsResponse() { - } - - /// Creates a new instance of the - /// class. - public updatePlacementsResponse(Google.Api.Ads.AdManager.v201808.Placement[] rval) { - this.rval = rval; - } - } - } - /// Contains information required for AdWords advertisers to place their ads. - /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(Placement))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class SiteTargetingInfo { - } - - - /// A Placement groups related AdUnit objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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 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 Placement. This value 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; - } - } - - /// 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 { - 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. - /// - [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. - /// - [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. - /// - [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. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 6)] - public DateTime lastModifiedDateTime { - get { - return this.lastModifiedDateTimeField; - } - set { - this.lastModifiedDateTimeField = value; - } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", ConfigurationName = "Google.Api.Ads.AdManager.v201808.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.v201808.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.v201808.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.v201808.PlacementPage getPlacementsByStatement(Google.Api.Ads.AdManager.v201808.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getPlacementsByStatementAsync(Google.Api.Ads.AdManager.v201808.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201808.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.v201808.UpdateResult performPlacementAction(Google.Api.Ads.AdManager.v201808.PlacementAction placementAction, Google.Api.Ads.AdManager.v201808.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task performPlacementActionAsync(Google.Api.Ads.AdManager.v201808.PlacementAction placementAction, Google.Api.Ads.AdManager.v201808.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.v201808.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); - } - - - /// Captures a page of Placement objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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; - } - } - - /// 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 placements contained within this page. - /// - [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] - public Placement[] results { - get { - return this.resultsField; - } - set { - this.resultsField = value; - } - } - } - - - /// 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.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public abstract partial class PlacementAction { - } - - - /// The action used for deactivating Placement objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class DeactivatePlacements : PlacementAction { - } - - - /// The action used for archiving Placement objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ArchivePlacements : PlacementAction { - } - - - /// The action used for activating Placement objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ActivatePlacements : PlacementAction { - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public interface PlacementServiceInterfaceChannel : Google.Api.Ads.AdManager.v201808.PlacementServiceInterface, System.ServiceModel.IClientChannel - { - } - - - /// 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.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. - /// - public PlacementService() { - } - - /// Creates a new instance of the class. - /// - public PlacementService(string endpointConfigurationName) - : base(endpointConfigurationName) { - } - - /// Creates a new instance of the class. - /// - public PlacementService(string endpointConfigurationName, string remoteAddress) - : base(endpointConfigurationName, remoteAddress) { - } - - /// Creates a new instance of the class. - /// - public PlacementService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) - : base(endpointConfigurationName, remoteAddress) { - } - - /// Creates a new instance of the class. - /// - 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.v201808.PlacementServiceInterface.createPlacements(Wrappers.PlacementService.createPlacementsRequest request) { - return base.Channel.createPlacements(request); - } - - /// Creates new Placement objects. - /// the placements to create - /// the new placements, with their IDs filled in - public virtual Google.Api.Ads.AdManager.v201808.Placement[] createPlacements(Google.Api.Ads.AdManager.v201808.Placement[] placements) { - Wrappers.PlacementService.createPlacementsRequest inValue = new Wrappers.PlacementService.createPlacementsRequest(); - inValue.placements = placements; - Wrappers.PlacementService.createPlacementsResponse retVal = ((Google.Api.Ads.AdManager.v201808.PlacementServiceInterface)(this)).createPlacements(inValue); - return retVal.rval; - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201808.PlacementServiceInterface.createPlacementsAsync(Wrappers.PlacementService.createPlacementsRequest request) { - return base.Channel.createPlacementsAsync(request); - } - - public virtual System.Threading.Tasks.Task createPlacementsAsync(Google.Api.Ads.AdManager.v201808.Placement[] placements) { - Wrappers.PlacementService.createPlacementsRequest inValue = new Wrappers.PlacementService.createPlacementsRequest(); - inValue.placements = placements; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201808.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
descriptionPlacement#description
id Placement#id
name Placement#name
placementCode Placement#placementCode
status Placement#status
lastModifiedDateTime Placement#lastModifiedDateTime
- ///
a Publisher Query Language statement used to - /// filter a set of placements - /// the placements that match the given filter - public virtual Google.Api.Ads.AdManager.v201808.PlacementPage getPlacementsByStatement(Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.getPlacementsByStatement(filterStatement); - } - - public virtual System.Threading.Tasks.Task getPlacementsByStatementAsync(Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.getPlacementsByStatementAsync(filterStatement); - } - - /// Performs actions on Placement objects that match the - /// given Statement#query. - /// the action to perform - /// a Publisher Query Language statement used to - /// filter a set of placements - /// the result of the action performed - public virtual Google.Api.Ads.AdManager.v201808.UpdateResult performPlacementAction(Google.Api.Ads.AdManager.v201808.PlacementAction placementAction, Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.performPlacementAction(placementAction, filterStatement); - } - - public virtual System.Threading.Tasks.Task performPlacementActionAsync(Google.Api.Ads.AdManager.v201808.PlacementAction placementAction, Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.performPlacementActionAsync(placementAction, filterStatement); - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.PlacementService.updatePlacementsResponse Google.Api.Ads.AdManager.v201808.PlacementServiceInterface.updatePlacements(Wrappers.PlacementService.updatePlacementsRequest request) { - return base.Channel.updatePlacements(request); - } - - /// Updates the specified Placement objects. - /// the placements to update - /// the updated placements - public virtual Google.Api.Ads.AdManager.v201808.Placement[] updatePlacements(Google.Api.Ads.AdManager.v201808.Placement[] placements) { - Wrappers.PlacementService.updatePlacementsRequest inValue = new Wrappers.PlacementService.updatePlacementsRequest(); - inValue.placements = placements; - Wrappers.PlacementService.updatePlacementsResponse retVal = ((Google.Api.Ads.AdManager.v201808.PlacementServiceInterface)(this)).updatePlacements(inValue); - return retVal.rval; - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201808.PlacementServiceInterface.updatePlacementsAsync(Wrappers.PlacementService.updatePlacementsRequest request) { - return base.Channel.updatePlacementsAsync(request); - } - - public virtual System.Threading.Tasks.Task updatePlacementsAsync(Google.Api.Ads.AdManager.v201808.Placement[] placements) { - Wrappers.PlacementService.updatePlacementsRequest inValue = new Wrappers.PlacementService.updatePlacementsRequest(); - inValue.placements = placements; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201808.PlacementServiceInterface)(this)).updatePlacementsAsync(inValue)).Result.rval); - } - } - namespace Wrappers.PremiumRateService - { - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "createPremiumRates", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201808", IsWrapped = true)] - public partial class createPremiumRatesRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("premiumRates")] - public Google.Api.Ads.AdManager.v201808.PremiumRate[] premiumRates; - - /// Creates a new instance of the - /// class. - public createPremiumRatesRequest() { - } - - /// Creates a new instance of the - /// class. - public createPremiumRatesRequest(Google.Api.Ads.AdManager.v201808.PremiumRate[] premiumRates) { - this.premiumRates = premiumRates; - } - } - - - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "createPremiumRatesResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201808", IsWrapped = true)] - public partial class createPremiumRatesResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v201808.PremiumRate[] rval; - - /// Creates a new instance of the - /// class. - public createPremiumRatesResponse() { - } - - /// Creates a new instance of the - /// class. - public createPremiumRatesResponse(Google.Api.Ads.AdManager.v201808.PremiumRate[] 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 = "updatePremiumRates", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201808", IsWrapped = true)] - public partial class updatePremiumRatesRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("premiumRates")] - public Google.Api.Ads.AdManager.v201808.PremiumRate[] premiumRates; - - /// Creates a new instance of the - /// class. - public updatePremiumRatesRequest() { - } - - /// Creates a new instance of the - /// class. - public updatePremiumRatesRequest(Google.Api.Ads.AdManager.v201808.PremiumRate[] premiumRates) { - this.premiumRates = premiumRates; - } - } - - - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "updatePremiumRatesResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201808", IsWrapped = true)] - public partial class updatePremiumRatesResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v201808.PremiumRate[] rval; - - /// Creates a new instance of the - /// class. - public updatePremiumRatesResponse() { - } - - /// Creates a new instance of the - /// class. - public updatePremiumRatesResponse(Google.Api.Ads.AdManager.v201808.PremiumRate[] rval) { - this.rval = rval; - } - } - } - /// A premium rate holding a set of PremiumRateValue - /// objects with the same PremiumFeature. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class PremiumRate { - private long idField; - - private bool idFieldSpecified; - - private long rateCardIdField; - - private bool rateCardIdFieldSpecified; - - private PricingMethod pricingMethodField; - - private bool pricingMethodFieldSpecified; - - private PremiumFeature premiumFeatureField; - - private PremiumRateValue[] premiumRateValuesField; - - /// Uniquely identifies the PremiumRate object. This attribute is - /// read-only and is assigned by Google when a premium rate is created. - /// - [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 RateCard object to which this premium rate - /// belongs. This attribute is required and cannot be changed after creation. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public long rateCardId { - get { - return this.rateCardIdField; - } - set { - this.rateCardIdField = value; - this.rateCardIdSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool rateCardIdSpecified { - get { - return this.rateCardIdFieldSpecified; - } - set { - this.rateCardIdFieldSpecified = value; - } - } - - /// The method of deciding which PremiumRateValue - /// objects from this to apply to a ProposalLineItem. This attribute is required. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public PricingMethod pricingMethod { - get { - return this.pricingMethodField; - } - set { - this.pricingMethodField = value; - this.pricingMethodSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool pricingMethodSpecified { - get { - return this.pricingMethodFieldSpecified; - } - set { - this.pricingMethodFieldSpecified = value; - } - } - - /// The feature type of this premium rate. This attribute is required and cannot be - /// changed after creation. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public PremiumFeature premiumFeature { - get { - return this.premiumFeatureField; - } - set { - this.premiumFeatureField = value; - } - } - - /// The premiums rate values in this rate. - /// - [System.Xml.Serialization.XmlElementAttribute("premiumRateValues", Order = 4)] - public PremiumRateValue[] premiumRateValues { - get { - return this.premiumRateValuesField; - } - set { - this.premiumRateValuesField = value; - } - } - } - - - /// Describes which PremiumRateValue objects from the - /// PremiumRate to apply to a ProposalLineItem. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum PricingMethod { - /// Applies sum of all matched PremiumRateValue - /// objects in the PremiumRate. - /// - SUM = 0, - /// Applies the matched PremiumRateValue with highest - /// adjustment size. - /// - HIGHEST = 1, - /// Only PremiumRateValue objects with 'Any' matching - /// value are allowed to be added to this PremiumRate. - /// - ANY_VALUE = 2, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 3, - } - - - /// An error having to do with PremiumRate. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class PremiumRateError : ApiError { - private PremiumRateErrorReason reasonField; - - private bool reasonFieldSpecified; - - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public PremiumRateErrorReason 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.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "PremiumRateError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum PremiumRateErrorReason { - /// The rate type of the PremiumRateValue is invalid. - /// - INVALID_RATE_TYPE = 0, - /// The pricing method of the PremiumRate is invalid. - /// - INVALID_PRICING_METHOD = 1, - /// The premium feature of the PremiumRate is invalid. - /// - INVALID_PREMIUM_FEATURE = 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/v201808", ConfigurationName = "Google.Api.Ads.AdManager.v201808.PremiumRateServiceInterface")] - public interface PremiumRateServiceInterface - { - // 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.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Wrappers.PremiumRateService.createPremiumRatesResponse createPremiumRates(Wrappers.PremiumRateService.createPremiumRatesRequest request); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task createPremiumRatesAsync(Wrappers.PremiumRateService.createPremiumRatesRequest request); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v201808.PremiumRatePage getPremiumRatesByStatement(Google.Api.Ads.AdManager.v201808.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getPremiumRatesByStatementAsync(Google.Api.Ads.AdManager.v201808.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.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Wrappers.PremiumRateService.updatePremiumRatesResponse updatePremiumRates(Wrappers.PremiumRateService.updatePremiumRatesRequest request); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task updatePremiumRatesAsync(Wrappers.PremiumRateService.updatePremiumRatesRequest request); - } - - - /// Captures a page of PremiumRate objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class PremiumRatePage { - private PremiumRate[] resultsField; - - private int startIndexField; - - private bool startIndexFieldSpecified; - - private int totalResultSetSizeField; - - private bool totalResultSetSizeFieldSpecified; - - /// The collection of premium rates contained within this page. - /// - [System.Xml.Serialization.XmlElementAttribute("results", Order = 0)] - public PremiumRate[] results { - get { - return this.resultsField; - } - set { - this.resultsField = 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 size of the total result set to which this page belongs. - /// - [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; - } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public interface PremiumRateServiceInterfaceChannel : Google.Api.Ads.AdManager.v201808.PremiumRateServiceInterface, System.ServiceModel.IClientChannel - { - } - - - /// Provides methods for managing PremiumRate objects. - ///

To use this service, you need to have the new sales management solution - /// enabled on your network. If you do not see a "Sales" tab in DoubleClick for Publishers (DFP), you will - /// not be able to use this service.

- ///
- [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public partial class PremiumRateService : AdManagerSoapClient, IPremiumRateService { - /// Creates a new instance of the class. - /// - public PremiumRateService() { - } - - /// Creates a new instance of the class. - /// - public PremiumRateService(string endpointConfigurationName) - : base(endpointConfigurationName) { - } - - /// Creates a new instance of the class. - /// - public PremiumRateService(string endpointConfigurationName, string remoteAddress) - : base(endpointConfigurationName, remoteAddress) { - } - - /// Creates a new instance of the class. - /// - public PremiumRateService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) - : base(endpointConfigurationName, remoteAddress) { - } - - /// Creates a new instance of the class. - /// - public PremiumRateService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) - : base(binding, remoteAddress) { - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.PremiumRateService.createPremiumRatesResponse Google.Api.Ads.AdManager.v201808.PremiumRateServiceInterface.createPremiumRates(Wrappers.PremiumRateService.createPremiumRatesRequest request) { - return base.Channel.createPremiumRates(request); - } - - /// Creates a list of new PremiumRate objects. - /// the premium rates to be created - /// the premium rates with their IDs filled in - public virtual Google.Api.Ads.AdManager.v201808.PremiumRate[] createPremiumRates(Google.Api.Ads.AdManager.v201808.PremiumRate[] premiumRates) { - Wrappers.PremiumRateService.createPremiumRatesRequest inValue = new Wrappers.PremiumRateService.createPremiumRatesRequest(); - inValue.premiumRates = premiumRates; - Wrappers.PremiumRateService.createPremiumRatesResponse retVal = ((Google.Api.Ads.AdManager.v201808.PremiumRateServiceInterface)(this)).createPremiumRates(inValue); - return retVal.rval; - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201808.PremiumRateServiceInterface.createPremiumRatesAsync(Wrappers.PremiumRateService.createPremiumRatesRequest request) { - return base.Channel.createPremiumRatesAsync(request); - } - - public virtual System.Threading.Tasks.Task createPremiumRatesAsync(Google.Api.Ads.AdManager.v201808.PremiumRate[] premiumRates) { - Wrappers.PremiumRateService.createPremiumRatesRequest inValue = new Wrappers.PremiumRateService.createPremiumRatesRequest(); - inValue.premiumRates = premiumRates; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201808.PremiumRateServiceInterface)(this)).createPremiumRatesAsync(inValue)).Result.rval); - } - - /// Gets a PremiumRatePage of PremiumRate objects that satisfy the given Statement#query. The following fields are supported - /// for filtering: - /// - /// - ///
PQL Property Object Property
id PremiumRate#id
rateCardId PremiumRate#rateCardId
pricingMethod PremiumRate#pricingMethod
- ///
a Publisher Query Language statement to filter a - /// list of premium rates. - /// the premium rates that match the filter - public virtual Google.Api.Ads.AdManager.v201808.PremiumRatePage getPremiumRatesByStatement(Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.getPremiumRatesByStatement(filterStatement); - } - - public virtual System.Threading.Tasks.Task getPremiumRatesByStatementAsync(Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.getPremiumRatesByStatementAsync(filterStatement); - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.PremiumRateService.updatePremiumRatesResponse Google.Api.Ads.AdManager.v201808.PremiumRateServiceInterface.updatePremiumRates(Wrappers.PremiumRateService.updatePremiumRatesRequest request) { - return base.Channel.updatePremiumRates(request); - } - - /// Updates the specified PremiumRate objects. - /// the premium rates to be updated - /// the updated premium rates - public virtual Google.Api.Ads.AdManager.v201808.PremiumRate[] updatePremiumRates(Google.Api.Ads.AdManager.v201808.PremiumRate[] premiumRates) { - Wrappers.PremiumRateService.updatePremiumRatesRequest inValue = new Wrappers.PremiumRateService.updatePremiumRatesRequest(); - inValue.premiumRates = premiumRates; - Wrappers.PremiumRateService.updatePremiumRatesResponse retVal = ((Google.Api.Ads.AdManager.v201808.PremiumRateServiceInterface)(this)).updatePremiumRates(inValue); - return retVal.rval; - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201808.PremiumRateServiceInterface.updatePremiumRatesAsync(Wrappers.PremiumRateService.updatePremiumRatesRequest request) { - return base.Channel.updatePremiumRatesAsync(request); - } - - public virtual System.Threading.Tasks.Task updatePremiumRatesAsync(Google.Api.Ads.AdManager.v201808.PremiumRate[] premiumRates) { - Wrappers.PremiumRateService.updatePremiumRatesRequest inValue = new Wrappers.PremiumRateService.updatePremiumRatesRequest(); - inValue.premiumRates = premiumRates; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201808.PremiumRateServiceInterface)(this)).updatePremiumRatesAsync(inValue)).Result.rval); - } - } - namespace Wrappers.ProductService - { - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "updateProducts", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201808", IsWrapped = true)] - public partial class updateProductsRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("products")] - public Google.Api.Ads.AdManager.v201808.Product[] products; - - /// Creates a new instance of the - /// class. - public updateProductsRequest() { - } - - /// Creates a new instance of the - /// class. - public updateProductsRequest(Google.Api.Ads.AdManager.v201808.Product[] products) { - this.products = products; - } - } - - - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "updateProductsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201808", IsWrapped = true)] - public partial class updateProductsResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v201808.Product[] rval; - - /// Creates a new instance of the - /// class. - public updateProductsResponse() { - } - - /// Creates a new instance of the - /// class. - public updateProductsResponse(Google.Api.Ads.AdManager.v201808.Product[] rval) { - this.rval = rval; - } - } - } - /// Marketplace information for a programmatic Product. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ProductMarketplaceInfo { - private AdExchangeEnvironment adExchangeEnvironmentField; - - private bool adExchangeEnvironmentFieldSpecified; - - private string additionalTermsField; - - private ValueSourceType additionalTermsSourceField; - - private bool additionalTermsSourceFieldSpecified; - - /// The AdExchangeEnvironment of the AdX Web - /// Property this product will serve to. This - /// attribute is read-only when:
  • using programmatic guaranteed, - /// using sales management.
This - /// attribute is required when:
  • using programmatic guaranteed, not - /// using sales management.
- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public AdExchangeEnvironment adExchangeEnvironment { - get { - return this.adExchangeEnvironmentField; - } - set { - this.adExchangeEnvironmentField = value; - this.adExchangeEnvironmentSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool adExchangeEnvironmentSpecified { - get { - return this.adExchangeEnvironmentFieldSpecified; - } - set { - this.adExchangeEnvironmentFieldSpecified = value; - } - } - - /// Additional terms shown to the buyer in Marketplace. When using sales management, - /// this attribute is populated with the additional terms value - /// from the product template this product is created from. To overwrite this, set - /// the #additionalTermsSource to ValueSourceType#DIRECTLY_SPECIFIED - /// when setting the value of this field. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public string additionalTerms { - get { - return this.additionalTermsField; - } - set { - this.additionalTermsField = value; - } - } - - /// Specifies the source of the #additionalTerms - /// value. To revert an overridden value to its default, set this field to ValueSourceType#PARENT. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public ValueSourceType additionalTermsSource { - get { - return this.additionalTermsSourceField; - } - set { - this.additionalTermsSourceField = value; - this.additionalTermsSourceSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool additionalTermsSourceSpecified { - get { - return this.additionalTermsSourceFieldSpecified; - } - set { - this.additionalTermsSourceFieldSpecified = value; - } - } - } - - - /// Proposal line items are created from products, - /// from which their properties are copied. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class Product { - private string nameField; - - private ValueSourceType nameSourceField; - - private bool nameSourceFieldSpecified; - - private ProductStatus statusField; - - private bool statusFieldSpecified; - - private ProductType productTypeField; - - private bool productTypeFieldSpecified; - - private long productTemplateIdField; - - private bool productTemplateIdFieldSpecified; - - private long idField; - - private bool idFieldSpecified; - - private string notesField; - - private string productTemplateDescriptionField; - - private DateTime lastModifiedDateTimeField; - - private RateType rateTypeField; - - private bool rateTypeFieldSpecified; - - private RoadblockingType roadblockingTypeField; - - private bool roadblockingTypeFieldSpecified; - - private DeliveryRateType deliveryRateTypeField; - - private bool deliveryRateTypeFieldSpecified; - - private CreativeRotationType creativeRotationTypeField; - - private bool creativeRotationTypeFieldSpecified; - - private CompanionDeliveryOption companionDeliveryOptionField; - - private bool companionDeliveryOptionFieldSpecified; - - private CreativePlaceholder[] creativePlaceholdersField; - - private LineItemType lineItemTypeField; - - private bool lineItemTypeFieldSpecified; - - private int priorityField; - - private bool priorityFieldSpecified; - - private FrequencyCap[] frequencyCapsField; - - private Targeting builtInTargetingField; - - private CustomizableAttributes customizableAttributesField; - - private BaseCustomFieldValue[] customFieldValuesField; - - private EnvironmentType environmentTypeField; - - private bool environmentTypeFieldSpecified; - - private ProductMarketplaceInfo productMarketplaceInfoField; - - private long videoMaxDurationField; - - private bool videoMaxDurationFieldSpecified; - - /// The name of the Product. This attribute is populated by Google, but - /// can be updated. To overwrite this, set the #nameSource - /// to ValueSourceType#DIRECTLY_SPECIFIED - /// when setting the value of this field. It has maximum length of 255 characters if - /// overridden via update. This attribute is - /// required. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public string name { - get { - return this.nameField; - } - set { - this.nameField = value; - } - } - - /// Specifies the source of the Product#name value. To - /// revert an overridden value to its default, set this field to ValueSourceType#PARENT. This attribute is applicable when:
    - ///
  • using programmatic guaranteed, using sales management.
  • not using - /// programmatic, using sales management.
- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public ValueSourceType nameSource { - get { - return this.nameSourceField; - } - set { - this.nameSourceField = value; - this.nameSourceSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool nameSourceSpecified { - get { - return this.nameSourceFieldSpecified; - } - set { - this.nameSourceFieldSpecified = value; - } - } - - /// The status of the Product. This attribute is read-only. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public ProductStatus 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 Product. This will always be ProductType#DFP for programmatic guaranteed products. - /// This attribute is read-only when:
    - ///
  • using programmatic guaranteed, using sales management.
  • not using - /// programmatic, using sales management.
- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public ProductType productType { - get { - return this.productTypeField; - } - set { - this.productTypeField = value; - this.productTypeSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool productTypeSpecified { - get { - return this.productTypeFieldSpecified; - } - set { - this.productTypeFieldSpecified = value; - } - } - - /// The ID of the ProductTemplate from which this product is generated. - /// This attribute is applicable when: - ///
  • using programmatic guaranteed, using sales management.
  • not - /// using programmatic, using sales management.
This attribute is read-only when:
  • using programmatic - /// guaranteed, using sales management.
  • not using programmatic, using sales - /// management.
- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public long productTemplateId { - get { - return this.productTemplateIdField; - } - set { - this.productTemplateIdField = value; - this.productTemplateIdSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool productTemplateIdSpecified { - get { - return this.productTemplateIdFieldSpecified; - } - set { - this.productTemplateIdFieldSpecified = value; - } - } - - /// Unique identifier of the Product. This attribute is read-only and - /// is assigned by Google when a Product is created. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 5)] - 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 notes of this product. This attribute is optional, with a maximum length of - /// 511 characters. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 6)] - public string notes { - get { - return this.notesField; - } - set { - this.notesField = value; - } - } - - /// The description of the ProductTemplate from which this product is - /// generated. This attribute is applicable - /// when:
  • using programmatic guaranteed, using sales - /// management.
  • not using programmatic, using sales management.
- /// This attribute is read-only when:
    - ///
  • using programmatic guaranteed, using sales management.
  • not using - /// programmatic, using sales management.
- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 7)] - public string productTemplateDescription { - get { - return this.productTemplateDescriptionField; - } - set { - this.productTemplateDescriptionField = value; - } - } - - /// The date and time this product was last modified. This attribute is read-only - /// and is assigned by Google when a product is updated. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 8)] - public DateTime lastModifiedDateTime { - get { - return this.lastModifiedDateTimeField; - } - set { - this.lastModifiedDateTimeField = value; - } - } - - /// The method used for billing the created ProposalLineItem. This attribute is read-only when:
  • using programmatic - /// guaranteed, using sales management.
  • not using programmatic, using sales - /// management.
- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 9)] - public RateType rateType { - get { - return this.rateTypeField; - } - set { - this.rateTypeField = value; - this.rateTypeSpecified = true; - } - } - - /// 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; - } - } - - /// The strategy for serving roadblocked creatives, i.e. instances where multiple - /// creatives must be served together on a single web page. This attribute is applicable when:
  • using - /// programmatic guaranteed, using sales management.
  • not using - /// programmatic, using sales management.
This attribute is read-only when:
  • using programmatic - /// guaranteed, using sales management.
  • not using programmatic, using sales - /// management.
- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 10)] - public RoadblockingType roadblockingType { - get { - return this.roadblockingTypeField; - } - set { - this.roadblockingTypeField = value; - this.roadblockingTypeSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool roadblockingTypeSpecified { - get { - return this.roadblockingTypeFieldSpecified; - } - set { - this.roadblockingTypeFieldSpecified = value; - } - } - - /// The strategy for delivering ads over the course of the line item's duration. - /// This attribute is applicable when: - ///
  • using programmatic guaranteed, using sales management.
  • not - /// using programmatic, using sales management.
This attribute is read-only when:
  • using programmatic - /// guaranteed, using sales management.
  • not using programmatic, using sales - /// management.
- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 11)] - 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 { - get { - return this.deliveryRateTypeFieldSpecified; - } - set { - this.deliveryRateTypeFieldSpecified = value; - } - } - - /// The strategy used for displaying multiple Creative - /// objects that are associated with the created ProposalLineItem. - /// This attribute is applicable when: - ///
  • using programmatic guaranteed, using sales management.
  • not - /// using programmatic, using sales management.
This attribute is read-only when:
  • using programmatic - /// guaranteed, using sales management.
  • not using programmatic, using sales - /// management.
- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 12)] - public CreativeRotationType creativeRotationType { - get { - return this.creativeRotationTypeField; - } - set { - this.creativeRotationTypeField = value; - this.creativeRotationTypeSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool creativeRotationTypeSpecified { - get { - return this.creativeRotationTypeFieldSpecified; - } - set { - this.creativeRotationTypeFieldSpecified = value; - } - } - - /// The delivery option for companions. This - /// attribute is applicable when:
  • using programmatic guaranteed, - /// using sales management.
  • not using programmatic, using sales - /// management.
This attribute is - /// read-only when:
  • using programmatic guaranteed, using sales - /// management.
  • not using programmatic, using sales management.
- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 13)] - public CompanionDeliveryOption companionDeliveryOption { - get { - return this.companionDeliveryOptionField; - } - set { - this.companionDeliveryOptionField = value; - this.companionDeliveryOptionSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool companionDeliveryOptionSpecified { - get { - return this.companionDeliveryOptionFieldSpecified; - } - set { - this.companionDeliveryOptionFieldSpecified = value; - } - } - - /// Details about the creatives that are expected to serve for the created ProposalLineItem.

For a #roadblockingType of RoadblockingType#CREATIVE_SET, all - /// creative placeholders must have a master and at least one companion size. This attribute is read-only when:

    - ///
  • using programmatic guaranteed, using sales management.
  • not using - /// programmatic, using sales management.
- ///
- [System.Xml.Serialization.XmlElementAttribute("creativePlaceholders", Order = 14)] - public CreativePlaceholder[] creativePlaceholders { - get { - return this.creativePlaceholdersField; - } - set { - this.creativePlaceholdersField = value; - } - } - - /// Indicates the line item type for the created ProposalLineItem. This attribute is read-only when:
  • using programmatic - /// guaranteed, using sales management.
  • not using programmatic, using sales - /// management.
- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 15)] - 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 { - get { - return this.lineItemTypeFieldSpecified; - } - set { - this.lineItemTypeFieldSpecified = value; - } - } - - /// The priority for the created ProposalLineItem. - /// The priority is a value between 1 and 16. This - /// attribute is read-only when:
  • using programmatic guaranteed, - /// using sales management.
  • not using programmatic, using sales - /// management.
- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 16)] - 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 set of frequency capping units for the created ProposalLineItem. Each frequency cap in the list - /// must have unique TimeUnit. This attribute is applicable when:
  • using - /// programmatic guaranteed, using sales management.
  • not using - /// programmatic, using sales management.
This attribute is read-only when:
  • using programmatic - /// guaranteed, using sales management.
  • not using programmatic, using sales - /// management.
- ///
- [System.Xml.Serialization.XmlElementAttribute("frequencyCaps", Order = 17)] - public FrequencyCap[] frequencyCaps { - get { - return this.frequencyCapsField; - } - set { - this.frequencyCapsField = value; - } - } - - /// The targeting for the created ProposalLineItem. - /// For those scenarios using sales management, it's a combination of ProductTemplate#productSegmentation - /// and ProductTemplate#builtInTargeting. - /// See details in ProductTemplate. This attribute is read-only when:
    - ///
  • using programmatic guaranteed, using sales management.
  • not using - /// programmatic, using sales management.
- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 18)] - public Targeting builtInTargeting { - get { - return this.builtInTargetingField; - } - set { - this.builtInTargetingField = value; - } - } - - /// Specifies what targeting or attributes for the created ProposalLineItem are customizable. This attribute is applicable when:
    - ///
  • using programmatic guaranteed, using sales management.
  • not using - /// programmatic, using sales management.
This attribute is read-only when:
  • using programmatic - /// guaranteed, using sales management.
  • not using programmatic, using sales - /// management.
- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 19)] - public CustomizableAttributes customizableAttributes { - get { - return this.customizableAttributesField; - } - set { - this.customizableAttributesField = value; - } - } - - /// The values of the custom fields associated with this . This - /// attribute is optional. This attribute is - /// applicable when:
  • using programmatic guaranteed, using sales - /// management.
  • not using programmatic, using sales management.
- ///
- [System.Xml.Serialization.XmlElementAttribute("customFieldValues", Order = 20)] - public BaseCustomFieldValue[] customFieldValues { - get { - return this.customFieldValuesField; - } - set { - this.customFieldValuesField = value; - } - } - - /// The environment that the created ProposalLineItem - /// will target. The default value is EnvironmentType#BROWSER. If this value is EnvironmentType#VIDEO_PLAYER, then the - /// ProposalLineItem can only target ad units that have sizes whose AdUnitSize#environmentType is also EnvironmentType#VIDEO_PLAYER. This attribute is read-only when:
    - ///
  • using programmatic guaranteed, using sales management.
  • not using - /// programmatic, using sales management.
- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 21)] - 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; - } - } - - /// Marketplace information of this Product. This attribute is applicable when:
  • using - /// programmatic guaranteed, using sales management.
This attribute is required when:
    - ///
  • using programmatic guaranteed, using sales management.
- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 22)] - public ProductMarketplaceInfo productMarketplaceInfo { - get { - return this.productMarketplaceInfoField; - } - set { - this.productMarketplaceInfoField = value; - } - } - - /// The max duration of a video creative associated with this in - /// milliseconds. This value is only meaningful if this is a video product. This attribute is applicable when:
    - ///
  • using programmatic guaranteed, using sales management.
  • not using - /// programmatic, using sales management.
This attribute is read-only when:
  • using programmatic - /// guaranteed, using sales management.
  • not using programmatic, using sales - /// management.
- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 23)] - public long videoMaxDuration { - get { - return this.videoMaxDurationField; - } - set { - this.videoMaxDurationField = value; - this.videoMaxDurationSpecified = true; - } - } - - /// 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; - } - } - } - - - /// Describes the different statuses for Product. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum ProductStatus { - /// Accessible to sales person. - /// - ACTIVE = 0, - /// Not accessible to sales person. - /// - INACTIVE = 1, - /// Products can no longer be used. - /// - ARCHIVED = 2, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 3, - } - - - /// Describes the type of Product. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum ProductType { - /// For line items that are booked and managed in DFP. - /// - DFP = 0, - /// Offline charges indicate services you render for a client which are also outside - /// of the DFP system, such as consulting or creative services. - /// - OFFLINE = 1, - /// For campaigns that are booked and managed by a third party outside of DFP. - /// - NON_DFP = 2, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 3, - } - - - /// Captures a page of ProductDto objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ProductPage { - private int totalResultSetSizeField; - - private bool totalResultSetSizeFieldSpecified; - - private int startIndexField; - - private bool startIndexFieldSpecified; - - private Product[] 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 products contained within this page. - /// - [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] - public Product[] results { - get { - return this.resultsField; - } - set { - this.resultsField = value; - } - } - } - - - /// Lists all programmatic errors associated with products which can be used in - /// Marketplace. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ProgrammaticProductError : ApiError { - private ProgrammaticProductErrorReason reasonField; - - private bool reasonFieldSpecified; - - /// The error reason represented by an enum. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public ProgrammaticProductErrorReason 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.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ProgrammaticProductError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum ProgrammaticProductErrorReason { - /// Product Marketplace info cannot be - /// null. - /// - PRODUCT_MARKETPLACE_INFO_IS_NULL = 0, - /// AdExchange environment cannot be - /// null. - /// - ENVIRONMENT_IS_NULL = 1, - /// AdExchange environment is invalid. - /// - INVALID_AD_EXCHANGE_ENVIRONMENT = 2, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 3, - } - - - /// Lists all programmatic errors associated with entities which can be used in - /// Marketplace. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ProgrammaticEntitiesError : ApiError { - private ProgrammaticEntitiesErrorReason reasonField; - - private bool reasonFieldSpecified; - - /// The error reason represented by an enum. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public ProgrammaticEntitiesErrorReason 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.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ProgrammaticEntitiesError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum ProgrammaticEntitiesErrorReason { - /// RateType is not supported. - /// - INVALID_RATE_TYPE = 0, - /// EnvironmentType must match AdExchange environment. - /// - INVALID_ENVIRONMENT_TYPE = 1, - /// ProductType is not supported. - /// - INVALID_PRODUCT_TYPE = 2, - /// LineItemType is not supported. - /// - INVALID_LINE_ITEM_TYPE = 3, - /// RoadblockingType is not supported. - /// - INVALID_ROADBLOCKING_TYPE = 4, - /// DeliveryRateType is not supported. - /// - INVALID_DELIVERY_RATE_TYPE = 5, - /// CompanionDeliveryOption is not supported. - /// - INVALID_COMPANION_DELIVERY_OPTION = 6, - /// CreativeRotationType is not supported. - /// - INVALID_CREATIVE_ROTATION_TYPE = 7, - /// CreativePlaceholder should not have - /// companions. - /// - INVALID_COMPANION_CREATIVE_PLACEHOLDER = 8, - /// Creative placeholders cannot be - /// null or empty. - /// - EMPTY_CREATIVE_PLACEHOLDER = 9, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 10, - } - - - /// Lists all error reasons associated with products. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ProductError : ApiError { - private ProductErrorReason reasonField; - - private bool reasonFieldSpecified; - - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public ProductErrorReason 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.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ProductError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum ProductErrorReason { - /// The specified template is not found. - /// - TEMPLATE_NOT_FOUND = 0, - /// The product ID is not correctly formed. - /// - MALFORMED_PRODUCT_ID = 1, - /// The product ID does not match the expanded features configured in its product - /// template. - /// - BAD_PRODUCT_ID_FEATURE = 2, - /// The product template ID specified in the parameters does not match the product - /// template ID implied in the product ID. - /// - BAD_PRODUCT_TEMPLATE_ID = 3, - /// Cannot update an archived product. - /// - CANNOT_UPDATE_ARCHIVED_PRODUCT = 4, - /// The query is too large to be processed. - /// - QUERY_TOO_LARGE = 5, - /// When not using sales management, products should not have - /// product templates. - /// - PRODUCT_TEMPLATE_ID_IS_NOT_ZERO = 7, - /// When not using sales management, products cannot have - /// zero-value rates. - /// - INVALID_RATE = 8, - /// When not using sales management, the currency code for products must be the same as the network default currency - /// code. - /// - INVALID_CURRENCY = 9, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 6, - } - - - /// Lists all error reasons associated with performing actions on products. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ProductActionError : ApiError { - private ProductActionErrorReason reasonField; - - private bool reasonFieldSpecified; - - /// The error reason represented by an enum. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public ProductActionErrorReason 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.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ProductActionError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum ProductActionErrorReason { - /// The operation is not applicable for a {@like Product product's} current status. - /// - NOT_APPLICABLE = 0, - /// You must agree to share contact information, brand features and product data - /// before publishing products to the Marketplace. - /// - DEALS_LEGAL_AGREEMENT_NOT_ACCEPTED = 2, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 1, - } - - - /// Errors associated with preferred deal proposal line - /// items. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class PreferredDealError : ApiError { - private PreferredDealErrorReason reasonField; - - private bool reasonFieldSpecified; - - /// The error reason represented by an enum. - /// - [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.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "PreferredDealError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum PreferredDealErrorReason { - INVALID_PRIORITY = 0, - /// Preferred deal proposal line items only support - /// RateType#CPM. - /// - INVALID_RATE_TYPE = 1, - /// Preferred deal proposal line items do not support - /// frequency caps. - /// - INVALID_FREQUENCY_CAPS = 2, - /// Preferred deal proposal line items only support - /// RoadblockingType#ONE_OR_MORE. - /// - INVALID_ROADBLOCKING_TYPE = 3, - /// Preferred deal proposal line items only support - /// DeliveryRateType#FRONTLOADED. - /// - INVALID_DELIVERY_RATE_TYPE = 4, - UNKNOWN = 5, - } - - - /// Lists all non-programmatic errors associated with products which can't be used - /// in Marketplace. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class NonProgrammaticProductError : ApiError { - private NonProgrammaticProductErrorReason reasonField; - - private bool reasonFieldSpecified; - - /// The error reason represented by an enum. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public NonProgrammaticProductErrorReason 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.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "NonProgrammaticProductError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum NonProgrammaticProductErrorReason { - /// Product Marketplace info should be - /// null for non-programmatic products. - /// - PRODUCT_MARKETPLACE_INFO_IS_NOT_NULL = 0, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 1, - } - - - /// An error having to do with BaseRate. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class BaseRateError : ApiError { - private BaseRateErrorReason reasonField; - - private bool reasonFieldSpecified; - - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public BaseRateErrorReason 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.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "BaseRateError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum BaseRateErrorReason { - /// The currency code is invalid. - /// - INVALID_CURRENCY_CODE = 1, - /// Cannot create or activate a base rate if the product template is archived. - /// - PRODUCT_TEMPLATE_ARCHIVED = 2, - /// Cannot create or activate a product package item base rate if the product - /// package item is archived. - /// - PRODUCT_PACKAGE_ITEM_ARCHIVED = 9, - /// The PQL statement can only contain one of , productId - /// or . - /// - CANNOT_QUERY_ON_MULTIPLE_TYPES = 10, - /// Product package must be associated with the rate card of the product package - /// item base rate.

See ProductPackage#rateCardIds.

- ///
- PRODUCT_PACKAGE_RATE_CARD_ASSOCIATION_MISSING = 11, - /// Indicates that the requested operation is not supported. - /// - UNSUPPORTED_OPERATION = 3, - /// Cannot delete a product package item base rate when its product package is - /// active. - /// - PRODUCT_PACKAGE_ACTIVE = 12, - /// Cannot create a base rate to a product if its product template does not have a - /// base rate on this rate card. - /// - PRODUCT_TEMPLATE_BASE_RATE_NOT_FOUND = 4, - /// Cannot delete a base rate on a product template if its products still have base - /// rates on this rate card. - /// - PRODUCT_BASE_RATE_EXISTS = 5, - /// Marketplace rate cards should only have Marketplace Product/ProductTemplate base rates. Non-Marketplace rate - /// cards should use traditional base rates. - /// - INVALID_RATE_CARD_CHANNEL = 7, - /// Marketplace does not support base rates with zero-value - /// rates. - /// - ZERO_MARKETPLACE_RATE_NOT_SUPPORTED = 8, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 6, - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", ConfigurationName = "Google.Api.Ads.AdManager.v201808.ProductServiceInterface")] - public interface ProductServiceInterface - { - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v201808.ProductPage getProductsByStatement(Google.Api.Ads.AdManager.v201808.Statement statement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getProductsByStatementAsync(Google.Api.Ads.AdManager.v201808.Statement statement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v201808.UpdateResult performProductAction(Google.Api.Ads.AdManager.v201808.ProductAction productAction, Google.Api.Ads.AdManager.v201808.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task performProductActionAsync(Google.Api.Ads.AdManager.v201808.ProductAction productAction, Google.Api.Ads.AdManager.v201808.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.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Wrappers.ProductService.updateProductsResponse updateProducts(Wrappers.ProductService.updateProductsRequest request); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task updateProductsAsync(Wrappers.ProductService.updateProductsRequest request); - } - - - /// Represents the actions that can be performed on products. - /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(WithdrawProducts))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(PublishProducts))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(DeactivateProducts))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ActivateProducts))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public abstract partial class ProductAction { - } - - - /// The action used to withdraw products from Marketplace. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class WithdrawProducts : ProductAction { - } - - - /// The action used to publish products to Marketplace. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class PublishProducts : ProductAction { - } - - - /// The action used to deactivate products. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class DeactivateProducts : ProductAction { - } - - - /// The action used to activate products. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ActivateProducts : ProductAction { - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public interface ProductServiceInterfaceChannel : Google.Api.Ads.AdManager.v201808.ProductServiceInterface, System.ServiceModel.IClientChannel - { - } - - - /// Provides methods for updating and retrieving Product - /// objects.

A Product represents a line item proposal. Products are - /// generated from ProductTemplate product templates on a periodic - /// basis using the product template's attributes. Products are typically used by - /// inventory managers to restrict what salespeople can sell.

To use this - /// service, you need to have the new sales management solution enabled on your - /// network. If you do not see a "Sales" tab in DoubleClick for Publishers (DFP), you will - /// not be able to use this service.

- ///
- [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public partial class ProductService : AdManagerSoapClient, IProductService { - /// Creates a new instance of the class. - /// - public ProductService() { - } - - /// Creates a new instance of the class. - /// - public ProductService(string endpointConfigurationName) - : base(endpointConfigurationName) { - } - - /// Creates a new instance of the class. - /// - public ProductService(string endpointConfigurationName, string remoteAddress) - : base(endpointConfigurationName, remoteAddress) { - } - - /// Creates a new instance of the class. - /// - public ProductService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) - : base(endpointConfigurationName, remoteAddress) { - } - - /// Creates a new instance of the class. - /// - public ProductService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) - : base(binding, remoteAddress) { - } - - /// Gets a ProductPage of Product - /// objects that satisfy the criteria specified by given Statement#query.

When using sales management, the - /// following fields are supported for filtering and/or sorting.

- /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - ///
PQL Property Object Property Filterable Sortable
rateCardId Rate card ID which the product is - /// associated with Yes No
status Product#status Yes Yes
lineItemType Product#lineItemType YesYes
productType Product#productType YesYes
rateType Product#rateType Yes Yes
productTemplateId Product#productTemplateId YesNo
name Product#name Yes Yes
description Product#description Yes No
id Product#idYes Yes
lastModifiedDateTimeProduct#lastModifiedDateTimeYes Yes
- ///
a Publisher Query Language statement which specifies the - /// filtering criteria over products - /// the products that match the given statement - public virtual Google.Api.Ads.AdManager.v201808.ProductPage getProductsByStatement(Google.Api.Ads.AdManager.v201808.Statement statement) { - return base.Channel.getProductsByStatement(statement); - } - - public virtual System.Threading.Tasks.Task getProductsByStatementAsync(Google.Api.Ads.AdManager.v201808.Statement statement) { - return base.Channel.getProductsByStatementAsync(statement); - } - - /// Performs action on Product objects that satisfy the given - /// Statement. - /// the action to perform - /// a Publisher Query Language statement used to - /// filter a set of products. - /// the result of the action performed - public virtual Google.Api.Ads.AdManager.v201808.UpdateResult performProductAction(Google.Api.Ads.AdManager.v201808.ProductAction productAction, Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.performProductAction(productAction, filterStatement); - } - - public virtual System.Threading.Tasks.Task performProductActionAsync(Google.Api.Ads.AdManager.v201808.ProductAction productAction, Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.performProductActionAsync(productAction, filterStatement); - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.ProductService.updateProductsResponse Google.Api.Ads.AdManager.v201808.ProductServiceInterface.updateProducts(Wrappers.ProductService.updateProductsRequest request) { - return base.Channel.updateProducts(request); - } - - /// Updates the specified Product objects. Note non-updatable - /// fields will not be backfilled. - /// the products to update - /// the updated products - public virtual Google.Api.Ads.AdManager.v201808.Product[] updateProducts(Google.Api.Ads.AdManager.v201808.Product[] products) { - Wrappers.ProductService.updateProductsRequest inValue = new Wrappers.ProductService.updateProductsRequest(); - inValue.products = products; - Wrappers.ProductService.updateProductsResponse retVal = ((Google.Api.Ads.AdManager.v201808.ProductServiceInterface)(this)).updateProducts(inValue); - return retVal.rval; - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201808.ProductServiceInterface.updateProductsAsync(Wrappers.ProductService.updateProductsRequest request) { - return base.Channel.updateProductsAsync(request); - } - - public virtual System.Threading.Tasks.Task updateProductsAsync(Google.Api.Ads.AdManager.v201808.Product[] products) { - Wrappers.ProductService.updateProductsRequest inValue = new Wrappers.ProductService.updateProductsRequest(); - inValue.products = products; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201808.ProductServiceInterface)(this)).updateProductsAsync(inValue)).Result.rval); - } - } - namespace Wrappers.ProductTemplateService - { - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "createProductTemplates", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201808", IsWrapped = true)] - public partial class createProductTemplatesRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("productTemplates")] - public Google.Api.Ads.AdManager.v201808.ProductTemplate[] productTemplates; - - /// Creates a new instance of the class. - public createProductTemplatesRequest() { - } - - /// Creates a new instance of the class. - public createProductTemplatesRequest(Google.Api.Ads.AdManager.v201808.ProductTemplate[] productTemplates) { - this.productTemplates = productTemplates; - } - } - - - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "createProductTemplatesResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201808", IsWrapped = true)] - public partial class createProductTemplatesResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v201808.ProductTemplate[] rval; - - /// Creates a new instance of the class. - public createProductTemplatesResponse() { - } - - /// Creates a new instance of the class. - public createProductTemplatesResponse(Google.Api.Ads.AdManager.v201808.ProductTemplate[] 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 = "updateProductTemplates", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201808", IsWrapped = true)] - public partial class updateProductTemplatesRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("productTemplates")] - public Google.Api.Ads.AdManager.v201808.ProductTemplate[] productTemplates; - - /// Creates a new instance of the class. - public updateProductTemplatesRequest() { - } - - /// Creates a new instance of the class. - public updateProductTemplatesRequest(Google.Api.Ads.AdManager.v201808.ProductTemplate[] productTemplates) { - this.productTemplates = productTemplates; - } - } - - - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "updateProductTemplatesResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201808", IsWrapped = true)] - public partial class updateProductTemplatesResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v201808.ProductTemplate[] rval; - - /// Creates a new instance of the class. - public updateProductTemplatesResponse() { - } - - /// Creates a new instance of the class. - public updateProductTemplatesResponse(Google.Api.Ads.AdManager.v201808.ProductTemplate[] rval) { - this.rval = rval; - } - } - } - /// Marketplace information for a programmatic ProductTemplate. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ProductTemplateMarketplaceInfo { - private AdExchangeEnvironment adExchangeEnvironmentField; - - private bool adExchangeEnvironmentFieldSpecified; - - private string additionalTermsField; - - /// The AdExchangeEnvironment of the AdX Web - /// Property this product will serve to.

This field is required.

- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public AdExchangeEnvironment adExchangeEnvironment { - get { - return this.adExchangeEnvironmentField; - } - set { - this.adExchangeEnvironmentField = value; - this.adExchangeEnvironmentSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool adExchangeEnvironmentSpecified { - get { - return this.adExchangeEnvironmentFieldSpecified; - } - set { - this.adExchangeEnvironmentFieldSpecified = value; - } - } - - /// Additional terms shown to the buyer in Marketplace.

This field is - /// optional.

- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public string additionalTerms { - get { - return this.additionalTermsField; - } - set { - this.additionalTermsField = value; - } - } - } - - - /// Segmentations used to create products. Within a product template, for each - /// segmentation, a product will be created for the combination of all other - /// segments within other segmentations.

For example, a product with 3 - /// segmentations with only 1 segment for each will produce 1 x 1 x 1 = - /// 1 product. A product with 3 segmentations with 2 segments for each will - /// produce 2 x 2 x 2 = 8 products.

- ///
- [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ProductSegmentation { - private GeoTargeting geoSegmentField; - - private AdUnitTargeting[] adUnitSegmentsField; - - private long[] placementSegmentField; - - private CustomCriteria[] customTargetingSegmentField; - - private UserDomainTargeting userDomainSegmentField; - - private BandwidthGroupTargeting bandwidthSegmentField; - - private BrowserTargeting browserSegmentField; - - private BrowserLanguageTargeting browserLanguageSegmentField; - - private OperatingSystemTargeting operatingSystemSegmentField; - - private OperatingSystemVersionTargeting operatingSystemVersionSegmentField; - - private MobileCarrierTargeting mobileCarrierSegmentField; - - private DeviceCapabilityTargeting deviceCapabilitySegmentField; - - private DeviceCategoryTargeting deviceCategorySegmentField; - - private DeviceManufacturerTargeting deviceManufacturerSegmentField; - - private MobileDeviceTargeting mobileDeviceSegmentField; - - private MobileDeviceSubmodelTargeting mobileDeviceSubmodelSegmentField; - - private CreativePlaceholder[] sizeSegmentField; - - private MobileApplicationTargeting mobileApplicationSegmentField; - - private VideoPositionTarget[] videoPositionSegmentField; - - /// The geographic segmentation. Segments should be set on the GeoTargeting#targetedLocations field. - ///

This attribute is optional.

- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public GeoTargeting geoSegment { - get { - return this.geoSegmentField; - } - set { - this.geoSegmentField = value; - } - } - - /// The ad unit targeting segmentation. For each ad unit segment, AdUnitTargeting#includeDescendants - /// must be true.

This attribute is optional.

- ///
- [System.Xml.Serialization.XmlElementAttribute("adUnitSegments", Order = 1)] - public AdUnitTargeting[] adUnitSegments { - get { - return this.adUnitSegmentsField; - } - set { - this.adUnitSegmentsField = value; - } - } - - /// The placement targeting segmentation.

This attribute is optional.

- ///
- [System.Xml.Serialization.XmlArrayAttribute(Order = 2)] - [System.Xml.Serialization.XmlArrayItemAttribute("targetedPlacementIds", IsNullable = false)] - public long[] placementSegment { - get { - return this.placementSegmentField; - } - set { - this.placementSegmentField = value; - } - } - - /// The custom targeting segmentation.

This attribute is optional.

- ///
- [System.Xml.Serialization.XmlElementAttribute("customTargetingSegment", Order = 3)] - public CustomCriteria[] customTargetingSegment { - get { - return this.customTargetingSegmentField; - } - set { - this.customTargetingSegmentField = value; - } - } - - /// The user domain segmentation. UserDomainTargeting#isTargeted must be - /// true.

This attribute is optional.

- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public UserDomainTargeting userDomainSegment { - get { - return this.userDomainSegmentField; - } - set { - this.userDomainSegmentField = value; - } - } - - /// The bandwidth segmentation. BandwidthGroupTargeting#isTargeted - /// must be true.

This attribute is optional.

- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 5)] - public BandwidthGroupTargeting bandwidthSegment { - get { - return this.bandwidthSegmentField; - } - set { - this.bandwidthSegmentField = value; - } - } - - /// The browser segmentation. BrowserTargeting#isTargeted must be - /// true.

This attribute is optional.

- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 6)] - public BrowserTargeting browserSegment { - get { - return this.browserSegmentField; - } - set { - this.browserSegmentField = value; - } - } - - /// The browser language segmentation. BrowserLanguageTargeting#isTargeted - /// must be true.

This attribute is optional.

- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 7)] - public BrowserLanguageTargeting browserLanguageSegment { - get { - return this.browserLanguageSegmentField; - } - set { - this.browserLanguageSegmentField = value; - } - } - - /// The operating system segmentation. OperatingSystemTargeting#isTargeted - /// must be true. We only allow segment by Operating_System, not - /// Operating_System_Version (will be ignored).

This attribute is optional.

- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 8)] - public OperatingSystemTargeting operatingSystemSegment { - get { - return this.operatingSystemSegmentField; - } - set { - this.operatingSystemSegmentField = value; - } - } - - /// The operating system version segmentation. OperatingSystemVersionTargeting#isTargeted - /// must be true.

This attribute is optional.

- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 9)] - public OperatingSystemVersionTargeting operatingSystemVersionSegment { - get { - return this.operatingSystemVersionSegmentField; - } - set { - this.operatingSystemVersionSegmentField = value; - } - } - - /// The mobile carrier segmentation. MobileCarrierTargeting#isTargeted - /// must be true.

This attribute is optional.

- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 10)] - public MobileCarrierTargeting mobileCarrierSegment { - get { - return this.mobileCarrierSegmentField; - } - set { - this.mobileCarrierSegmentField = value; - } - } - - /// The device capability segmentation. DeviceCapabilityTargeting#excludedDeviceCapabilities must be empty - /// or null.

This attribute is optional.

- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 11)] - public DeviceCapabilityTargeting deviceCapabilitySegment { - get { - return this.deviceCapabilitySegmentField; - } - set { - this.deviceCapabilitySegmentField = value; - } - } - - /// The device category segmentation. DeviceCategoryTargeting#excludedDeviceCategories - /// must be empty or null.

This attribute is optional.

- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 12)] - public DeviceCategoryTargeting deviceCategorySegment { - get { - return this.deviceCategorySegmentField; - } - set { - this.deviceCategorySegmentField = value; - } - } - - /// The device manufacturer segmentation. DeviceFamilyTargeting#isTargeted - /// must be true.

This attribute is optional.

- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 13)] - public DeviceManufacturerTargeting deviceManufacturerSegment { - get { - return this.deviceManufacturerSegmentField; - } - set { - this.deviceManufacturerSegmentField = value; - } - } - - /// The mobile device segmentation. MobileDeviceTargeting#excludedMobileDevices - /// must be empty or null.

This attribute is optional.

- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 14)] - public MobileDeviceTargeting mobileDeviceSegment { - get { - return this.mobileDeviceSegmentField; - } - set { - this.mobileDeviceSegmentField = value; - } - } - - /// The mobile device submodel segmentation. MobileDeviceSubmodelTargeting#excludedMobileDeviceSubmodels must be - /// empty or null. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 15)] - public MobileDeviceSubmodelTargeting mobileDeviceSubmodelSegment { - get { - return this.mobileDeviceSubmodelSegmentField; - } - set { - this.mobileDeviceSubmodelSegmentField = value; - } - } - - /// The creative size segmentation.

This attribute is optional.

- ///
- [System.Xml.Serialization.XmlElementAttribute("sizeSegment", Order = 16)] - public CreativePlaceholder[] sizeSegment { - get { - return this.sizeSegmentField; - } - set { - this.sizeSegmentField = value; - } - } - - /// The mobile application segmentation.

This attribute is optional.

- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 17)] - public MobileApplicationTargeting mobileApplicationSegment { - get { - return this.mobileApplicationSegmentField; - } - set { - this.mobileApplicationSegmentField = value; - } - } - - /// The video position segmentation.

This attribute is optional.

- ///
- [System.Xml.Serialization.XmlArrayAttribute(Order = 18)] - [System.Xml.Serialization.XmlArrayItemAttribute("targetedPositions", IsNullable = false)] - public VideoPositionTarget[] videoPositionSegment { - get { - return this.videoPositionSegmentField; - } - set { - this.videoPositionSegmentField = value; - } - } - } - - - /// ProductTemplate is used to generate products. All generated - /// products will inherit all attributes from their , except for - /// segmentation, which will be included in the Product#targeting. The generated products in turn - /// will be used to create proposal line items so - /// that almost all attributes in the product template are properties of the - /// proposal line item. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ProductTemplate { - private long idField; - - private bool idFieldSpecified; - - private string nameField; - - private DateTime creationDateTimeField; - - private DateTime lastModifiedDateTimeField; - - private string descriptionField; - - private string nameMacroField; - - private ProductTemplateStatus statusField; - - private bool statusFieldSpecified; - - private ProductType productTypeField; - - private bool productTypeFieldSpecified; - - private long creatorIdField; - - private bool creatorIdFieldSpecified; - - private RateType rateTypeField; - - private bool rateTypeFieldSpecified; - - private RoadblockingType roadblockingTypeField; - - private bool roadblockingTypeFieldSpecified; - - private DeliveryRateType deliveryRateTypeField; - - private bool deliveryRateTypeFieldSpecified; - - private CreativeRotationType creativeRotationTypeField; - - private bool creativeRotationTypeFieldSpecified; - - private CompanionDeliveryOption companionDeliveryOptionField; - - private bool companionDeliveryOptionFieldSpecified; - - private CreativePlaceholder[] creativePlaceholdersField; - - private LineItemType lineItemTypeField; - - private bool lineItemTypeFieldSpecified; - - private int priorityField; - - private bool priorityFieldSpecified; - - private FrequencyCap[] frequencyCapsField; - - private ProductSegmentation productSegmentationField; - - private Targeting builtInTargetingField; - - private CustomizableAttributes customizableAttributesField; - - private BaseCustomFieldValue[] customFieldValuesField; - - private EnvironmentType environmentTypeField; - - private bool environmentTypeFieldSpecified; - - private long videoMaxDurationField; - - private bool videoMaxDurationFieldSpecified; - - private ProductTemplateMarketplaceInfo productTemplateMarketplaceInfoField; - - /// Uniquely identifies the ProductTemplate. This attribute is - /// read-only and is assigned by Google when a ProductTemplate is - /// created. - /// - [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 ProductTemplate. This attribute has maximum length - /// of 255 characters. This attribute is - /// required. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public string name { - get { - return this.nameField; - } - set { - this.nameField = value; - } - } - - /// The creation time of the ProductTemplate. This attribute is - /// read-only and is assigned by Google when a ProductTemplate is - /// created. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public DateTime creationDateTime { - get { - return this.creationDateTimeField; - } - set { - this.creationDateTimeField = value; - } - } - - /// The date and time this ProductTemplate was last modified. This - /// attribute is read-only and is assigned by Google when a is - /// updated. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public DateTime lastModifiedDateTime { - get { - return this.lastModifiedDateTimeField; - } - set { - this.lastModifiedDateTimeField = value; - } - } - - /// The description of the ProductTemplate. This attribute has maximum - /// length of 511 characters. This attribute is optional. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public string description { - get { - return this.descriptionField; - } - set { - this.descriptionField = value; - } - } - - /// The name macro of the ProductTemplate. The name macro is used to - /// generate the Product#name. This attribute is required and has - /// maximum length of 1023 characters. The name macro can contain plain text and - /// several placeholders that will be replaced with values specified in the - /// ProductTemplate when generating product names. Allowed placeholders - /// are: - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - ///
Placeholder Segmentation
<ad-unit> ProductSegmentation#adUnitSegments
<placement> ProductSegmentation#placementSegment
<location> ProductSegmentation#geoSegment
<user-domain> ProductSegmentation#userDomainSegment
<bandwidth-group> ProductSegmentation#bandwidthSegment
<browser> ProductSegmentation#browserSegment
<browser-language> ProductSegmentation#browserLanguageSegment
<operating-system> ProductSegmentation#operatingSystemSegment
<frequency-cap> #frequencyCaps
<rate-type> #rateType
<creative-placeholder-size> #creativePlaceholders
<line-item-type> #lineItemType
<line-item-priority> #priority
<template-name> #name
Each placeholder should appear no more than once and all expanded - /// features must have their corresponding placeholders in the name macro. This - /// attribute is required. - ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 5)] - public string nameMacro { - get { - return this.nameMacroField; - } - set { - this.nameMacroField = value; - } - } - - /// The status of the ProductTemplate. This attribute is read-only. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 6)] - public ProductTemplateStatus 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 generated Product. Note: if the type is ProductType#OFFLINE, then the following fields - /// must be null or empty: #roadblockingType, #lineItemType, #frequencyCaps, #productSegmentation and #targeting. This - /// attribute is required. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 7)] - public ProductType productType { - get { - return this.productTypeField; - } - set { - this.productTypeField = value; - this.productTypeSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool productTypeSpecified { - get { - return this.productTypeFieldSpecified; - } - set { - this.productTypeFieldSpecified = value; - } - } - - /// The id of the user who created the . This - /// attribute is read-only and is assigned by Google. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 8)] - public long creatorId { - get { - return this.creatorIdField; - } - set { - this.creatorIdField = value; - this.creatorIdSpecified = true; - } - } - - /// 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; - } - } - - /// The method used for billing the created ProposalLineItem. This attribute is required. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 9)] - public RateType rateType { - get { - return this.rateTypeField; - } - set { - this.rateTypeField = value; - this.rateTypeSpecified = true; - } - } - - /// 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; - } - } - - /// 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 if #productType is ProductType#DFP, or RoadblockingType#CREATIVE_SET if there - /// are companion sizes in #creativePlaceholders. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 10)] - public RoadblockingType roadblockingType { - get { - return this.roadblockingTypeField; - } - set { - this.roadblockingTypeField = value; - this.roadblockingTypeSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool roadblockingTypeSpecified { - get { - return this.roadblockingTypeFieldSpecified; - } - set { - this.roadblockingTypeFieldSpecified = value; - } - } - - /// The strategy for delivering ads over the course of the line item's duration. - /// This attribute is optional and defaults to DeliveryRateType#EVENLY if #productType is ProductType#DFP. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 11)] - 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 { - get { - return this.deliveryRateTypeFieldSpecified; - } - set { - this.deliveryRateTypeFieldSpecified = value; - } - } - - /// The strategy used for displaying multiple Creative - /// objects that are associated with the created ProposalLineItem. This - /// attribute is optional and defaults to CreativeRotationType#OPTIMIZED if #productType is ProductType#DFP. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 12)] - public CreativeRotationType creativeRotationType { - get { - return this.creativeRotationTypeField; - } - set { - this.creativeRotationTypeField = value; - this.creativeRotationTypeSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool creativeRotationTypeSpecified { - get { - return this.creativeRotationTypeFieldSpecified; - } - set { - this.creativeRotationTypeFieldSpecified = 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.

This field is optional and defaults to CompanionDeliveryOption#OPTIONAL if - /// the above conditions are met and #productType is ProductType#DFP.

- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 13)] - public CompanionDeliveryOption companionDeliveryOption { - get { - return this.companionDeliveryOptionField; - } - set { - this.companionDeliveryOptionField = value; - this.companionDeliveryOptionSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool companionDeliveryOptionSpecified { - get { - return this.companionDeliveryOptionFieldSpecified; - } - set { - this.companionDeliveryOptionFieldSpecified = value; - } - } - - /// Details about the creatives that are expected to serve for the created ProposalLineItem.

For a #roadblockingType of RoadblockingType#CREATIVE_SET, all - /// creative placeholders must have a master and at least one companion size. This - /// attribute is required when #productType is ProductType#DFP.

- ///
- [System.Xml.Serialization.XmlElementAttribute("creativePlaceholders", Order = 14)] - public CreativePlaceholder[] creativePlaceholders { - get { - return this.creativePlaceholdersField; - } - set { - this.creativePlaceholdersField = value; - } - } - - /// Indicates the line item type for the created ProposalLineItem. This attribute is required when #productType is ProductType#DFP. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 15)] - 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 { - get { - return this.lineItemTypeFieldSpecified; - } - set { - this.lineItemTypeFieldSpecified = value; - } - } - - /// Priority of ProposalLineItem. The priority is a - /// value between 1 and 16. If not specified, the default priority of the LineItemType will be assigned. The following default, - /// minimum and maximum priority values is allowed for each line item type: - /// - /// - /// - /// - /// - /// - /// - ///
LineItemType Default Priority Minimum Priority Maximum priority
LineItemType#SPONSORSHIP4 2 5
LineItemType#STANDARD 86 10
LineItemType#NETWORK 1211 14
LineItemType#BULK 12 1114
LineItemType#PRICE_PRIORITY12 11 14
LineItemType#HOUSE 16 1516
Note: it's ignored when #productType is ProductType#OFFLINE. - ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 16)] - 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 set of frequency capping units for the created ProposalLineItem. Each frequency cap in the list - /// must have unique TimeUnit. This attribute is optional. - /// - [System.Xml.Serialization.XmlElementAttribute("frequencyCaps", Order = 17)] - public FrequencyCap[] frequencyCaps { - get { - return this.frequencyCapsField; - } - set { - this.frequencyCapsField = value; - } - } - - /// The product segmentation. The combination from the segments and the #targeting will produce the targeting on the resulting ProposalLineItem. Any type of segmentation cannot - /// also be used for targeting. This attribute is optional. Note: if you specify ProducSegmentation#geoSegment, then ProductTemplateTargeting#geoTargeting - /// must be null or empty, vice versa. This also applies to other targeting and - /// segmentation. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 18)] - public ProductSegmentation productSegmentation { - get { - return this.productSegmentationField; - } - set { - this.productSegmentationField = value; - } - } - - /// Targeting to be included in the created ProposalLineItem. Any type targeted cannot also be - /// used for segmentation.

This attribute is optional. Note: if #productType is ProductType#DFP and #productSegmentation is not specified, this - /// attribute is required.

- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 19)] - public Targeting builtInTargeting { - get { - return this.builtInTargetingField; - } - set { - this.builtInTargetingField = value; - } - } - - /// Specifies what targeting or attributes for the created ProposalLineItem are customizable.

This attribute - /// is optional. If not specified, then no targeting or attributes are - /// customizable.

- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 20)] - public CustomizableAttributes customizableAttributes { - get { - return this.customizableAttributesField; - } - set { - this.customizableAttributesField = value; - } - } - - /// The values of the custom fields associated with this . This - /// attribute is optional. - /// - [System.Xml.Serialization.XmlElementAttribute("customFieldValues", Order = 21)] - public BaseCustomFieldValue[] customFieldValues { - get { - return this.customFieldValuesField; - } - set { - this.customFieldValuesField = value; - } - } - - /// The environment that the created ProposalLineItem - /// is targeting. The default value is EnvironmentType#BROWSER. If this value is EnvironmentType#VIDEO_PLAYER, then the - /// ProposalLineItem can only target - /// AdUnits that have AdUnitSizes whose is - /// also VIDEO_PLAYER. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 22)] - 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 max duration of a video creative associated with this in - /// milliseconds. This attribute is optional, defaults to 0, and only meaningful if - /// this is a video product template. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 23)] - public long videoMaxDuration { - get { - return this.videoMaxDurationField; - } - set { - this.videoMaxDurationField = value; - this.videoMaxDurationSpecified = true; - } - } - - /// 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; - } - } - - /// Marketplace information of this ProductTemplate. This attribute is applicable when:
    - ///
  • using programmatic guaranteed, using sales management.
This attribute is required when:
    - ///
  • using programmatic guaranteed, using sales management.
- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 24)] - public ProductTemplateMarketplaceInfo productTemplateMarketplaceInfo { - get { - return this.productTemplateMarketplaceInfoField; - } - set { - this.productTemplateMarketplaceInfoField = value; - } - } - } - - - /// Describes the different statuses for ProductTemplate. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum ProductTemplateStatus { - /// Product template is active, and all products it generates without status - /// overridden are available in product catalog. - /// - ACTIVE = 0, - /// Not used. - /// - DRAFT = 1, - /// Product template is inactive, no product is generated. - /// - CANCELED = 2, - /// No unarchived proposal should reference this template and report on it. All - /// persisted products based on this product template are archived as well. - /// - ARCHIVED = 3, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 4, - } - - - /// A catch-all error that lists all generic errors associated with ProductTemplate. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ProductTemplateError : ApiError { - private ProductTemplateErrorReason reasonField; - - private bool reasonFieldSpecified; - - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public ProductTemplateErrorReason 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.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ProductTemplateError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum ProductTemplateErrorReason { - /// One feature affinity should be expanded or not-expanded exclusively. - /// - INVALID_FEATURE_EXPANDED_EXCLUSIVE = 0, - /// Expanded feature should have false default targeting type. - /// - INVALID_EXPANDED_FEATURE_DEFAULT_NOT_TARGETED = 1, - /// Expanded feature should be default locked. - /// - INVALID_EXPANDED_FEATURE_DEFAULT_LOCKED = 2, - /// Expanded feature value should have true targeting type. - /// - INVALID_EXPANDED_FEATURE_VALUE_TARGETED = 3, - /// Expanded feature value should be default locked. - /// - INVALID_EXPANDED_FEATURE_VALUE_LOCKED = 4, - /// The feature type is mismatch with feature value's type. - /// - INVALID_FEATURE_TYPE = 5, - /// The roadblocking type is invalid. - /// - INVALID_ROADBLOCKING_TYPE = 6, - /// The delivery rate type is invalid. - /// - INVALID_DELIVERY_RATE_TYPE = 60, - /// The creative rotation type is invalid. - /// - INVALID_CREATIVE_ROTATION_TYPE = 61, - /// The companion delivery option is invalid. - /// - INVALID_COMPANION_DELIVERY_OPTION = 62, - /// The targeting is invalid. - /// - INVALID_TARGETING = 7, - /// The frequency cap is invalid. - /// - INVALID_FREQUENCY_CAPS = 8, - /// The technology criteria is included and excluded at same time. - /// - INVALID_TECHNOLOGY_INCLUDE_EXCLUDE = 9, - INVALID_EXPANDED_PRODUCT_COUNT = 10, - /// The target platform should always be WEB. - /// - INVALID_TARGET_PLATFORM = 11, - /// The non-targeting feature cannot have default target type TRUE. - /// - INVALID_NON_TARGETING_FEATURE = 12, - /// The feature's targeted value number breaks the cardinality request, it should - /// have at least one value. - /// - INVALID_FEATURE_CARDINALITY_AT_LEAST_ONE = 13, - /// The feature's targeted value number breaks the cardinality request, it should - /// have at most one value. - /// - INVALID_FEATURE_CARDINALITY_AT_MOST_ONE = 14, - /// The feature's targeted value number breaks the cardinality request, it should - /// have exactly one value. - /// - INVALID_FEATURE_CARDINALITY_EXACTLY_ONE = 15, - /// The feature is invalid for offline product template. - /// - INVALID_FEATURE_FOR_OFFLINE = 16, - /// The rate type is invalid for offline product template. - /// - INVALID_RATE_TYPE_FOR_OFFLINE = 17, - /// The rate type should be in the valid set for corresponding line item type of a - /// dfp product template. - /// - INVALID_RATE_TYPE_FOR_DFP = 18, - /// The rate type should be in the valid set for corresponding line item type of a - /// ProductType#NON_DFP product template. - /// - INVALID_RATE_TYPE_FOR_NON_DFP = 19, - /// One or more values on the product template are not valid for a LineItemType#CLICK_TRACKING line item - /// type. - /// - INVALID_VALUES_FOR_CLICK_TRACKING_LINE_ITEM_TYPE = 20, - /// The segmentation or targeting on the product template is not valid for a LineItemType#CLICK_TRACKING line item - /// type. - /// - INVALID_SEGMENTATION_OR_TARGETING_FOR_CLICK_TRACKING_LINE_ITEM_TYPE = 21, - /// The line item priority feature is not match with line item type feature. - /// - INVALID_LINE_ITEM_PRIORITY = 22, - /// The line item type value is not supported. - /// - INVALID_LINE_ITEM_TYPE = 23, - /// The environment type is not valid. - /// - INVALID_ENVIRONMENT_TYPE = 24, - /// Duplication of placeholder for feature type affinity exists in name macro. - /// - DUPLICATED_PLACEHOLDER_IN_NAMEMACRO = 25, - /// Expanded features are not allowed in non expandable feature affinity. - /// - INVALID_EXPANDED_FEATURE_IN_NON_EXPANDABLE_AFFINITY = 26, - /// The default target type of the feature is not supported. - /// - INVALID_FEATURE_DEFAULT_TARGET_TYPE = 27, - /// The target type of the value is invalid. - /// - INVALID_FEATURE_VALUE_TARGET_TYPE = 28, - /// The default locked of feature is different with locked of feature values. - /// - INVALID_FEATURE_AND_VALUE_LOCK_EXCLUSIVE = 29, - /// The creative placeholder should have at least a master size, or has one master - /// and multiple companion sizes. - /// - INVALID_CREATIVE_PLACEHOLDER = 30, - /// Duplicated features with the same feature type. - /// - DUPLICATED_FEATURE = 31, - /// Duplicated custom criteria key. - /// - DUPLICATED_CUSTOM_TARGETING_KEY = 32, - /// Duplicated custom criteria value. - /// - DUPLICATED_CUSTOM_TARGETING_VALUE = 33, - /// The id of custom criteria key is invalid. - /// - INVALID_CUSTOM_TARGETING_KEY_ID = 34, - /// The id of custom criteria value is invalid. - /// - INVALID_CUSTOM_TARGETING_VALUE_ID = 35, - /// Missing custom targeting values. - /// - MISSING_CUSTOM_TARGETING_VALUES = 36, - /// A child location can not be targeted if any one of its parent locations is also - /// targeted. - /// - LOCATION_CANNOT_BE_TARGETED_IF_PARENT_IS_TARGETED = 37, - /// A child location can not be excluded if any one of its parent locations is also - /// excluded. - /// - LOCATION_CANNOT_BE_EXCLUDED_IF_PARENT_IS_EXCLUDED = 38, - /// An excluded location must have one targeted parent when targeted location is not - /// empty. - /// - LOCATION_CANNOT_BE_EXCLUDED_DIRECTLY_WHEN_HAVE_TARGETED_LOCATION = 39, - /// Customizable key is used in custom targeting segment. - /// - CUSTOMIZABLE_CUSTOM_KEY_CANNOT_BE_SEGMENTED = 40, - /// Custom targeting key is already used in custom targeting segment. - /// - CUSTOM_KEY_USED_IN_TARGETING_CANNOT_BE_SEGMENTED = 41, - /// A placeholder for an expanded feature type affinity is missing in name macro. - /// - MISSING_EXPANDED_FEATURE_PLACEHOLDER_IN_NAMEMACRO = 43, - /// The feature type affinity with placeholder been added is missing corresponding - /// value. - /// - MISSING_FEATURE_VALUE_OF_NAMEMACRO_PLACEHOLDER = 44, - /// The feature type affinity with placeholder been added is not specified. - /// - MISSING_FEATURE_OF_NAMEMACRO_PLACEHOLDER = 45, - /// The SubTypeId of custom criteria feature is not specified. - /// - MISSING_SUBTYPE_FOR_CUSTOM_TARGETING = 46, - /// A placeholder contains companions but the roadblocking type is not CREATIVE_SET - /// or the product type is offline. - /// - COMPANION_NOT_ALLOWED = 47, - /// A placeholder does not contain companions but the roadblocking type is - /// CREATIVE_SET. - /// - MISSING_COMPANION = 48, - /// A placeholder's master size is the same as another placeholder. - /// - DUPLICATED_MASTER_SIZE = 49, - /// Non-native placeholders cannot have creative templates. - /// - CANNOT_HAVE_CREATIVE_TEMPLATE = 63, - /// Placeholders can only have native creative templates. - /// - NATIVE_CREATIVE_TEMPLATE_REQUIRED = 64, - /// Cannot include native placeholders without native creative templates. - /// - CANNOT_INCLUDE_NATIVE_PLACEHOLDER_WITHOUT_TEMPLATE_ID = 65, - /// The feature is readonly. - /// - CANNOT_MODIFY_READONLY_FEATURE = 50, - /// The product type can not be modified after creation. - /// - CANNOT_MODIFY_PRODUCT_TYPE = 51, - /// Cannot add new segmentations after product template is saved. - /// - CANNOT_ADD_SEGMENTATION = 52, - /// Cannot remove segmentations after product template is saved. - /// - CANNOT_REMOVE_SEGMENTATION = 53, - /// Cannot remove value from segmentation after product template is saved. - /// - CANNOT_REMOVE_VALUE_FROM_SEGMENTATION = 54, - /// Cannot add feature value for custom targeting. - /// - CANNOT_ADD_FEATURE_VALUE_FOR_CUSTOM_TARGETING = 55, - /// Cannot modify a builtin targeting feature. - /// - CANNOT_MODIFY_BUILTIN_TARGETING_FEATURE = 56, - /// Cannot update an archived product template. - /// - CANNOT_UPDATE_ARCHIVED_PRODUCT_TEMPLATE = 57, - /// There are video position values that are invalid for the LineItemType. - /// - INVALID_VIDEO_POSITION_VALUE_FOR_LINE_ITEM_TYPE = 58, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 59, - } - - - /// An error lists all error reasons associated with performing action on ProductTemplate objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ProductTemplateActionError : ApiError { - private ProductTemplateActionErrorReason reasonField; - - private bool reasonFieldSpecified; - - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public ProductTemplateActionErrorReason 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.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ProductTemplateActionError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum ProductTemplateActionErrorReason { - /// The operation is not applicable to the current status. - /// - NOT_APPLICABLE = 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/v201808", ConfigurationName = "Google.Api.Ads.AdManager.v201808.ProductTemplateServiceInterface")] - public interface ProductTemplateServiceInterface - { - // 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.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Wrappers.ProductTemplateService.createProductTemplatesResponse createProductTemplates(Wrappers.ProductTemplateService.createProductTemplatesRequest request); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task createProductTemplatesAsync(Wrappers.ProductTemplateService.createProductTemplatesRequest request); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v201808.ProductTemplatePage getProductTemplatesByStatement(Google.Api.Ads.AdManager.v201808.Statement statement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getProductTemplatesByStatementAsync(Google.Api.Ads.AdManager.v201808.Statement statement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v201808.UpdateResult performProductTemplateAction(Google.Api.Ads.AdManager.v201808.ProductTemplateAction action, Google.Api.Ads.AdManager.v201808.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task performProductTemplateActionAsync(Google.Api.Ads.AdManager.v201808.ProductTemplateAction action, Google.Api.Ads.AdManager.v201808.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.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Wrappers.ProductTemplateService.updateProductTemplatesResponse updateProductTemplates(Wrappers.ProductTemplateService.updateProductTemplatesRequest request); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task updateProductTemplatesAsync(Wrappers.ProductTemplateService.updateProductTemplatesRequest request); - } - - - /// Captures a page of ProductTemplate objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ProductTemplatePage { - private int totalResultSetSizeField; - - private bool totalResultSetSizeFieldSpecified; - - private int startIndexField; - - private bool startIndexFieldSpecified; - - private ProductTemplate[] 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 ProductTemplate contained within - /// this page. - /// - [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] - public ProductTemplate[] results { - get { - return this.resultsField; - } - set { - this.resultsField = value; - } - } - } - - - /// Represents the actions that can be performed on product templates. - /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(UnarchiveProductTemplates))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(DeactivateProductTemplates))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ArchiveProductTemplates))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ActivateProductTemplates))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public abstract partial class ProductTemplateAction { - } - - - /// The action used for unarchiving ProductTemplate - /// objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class UnarchiveProductTemplates : ProductTemplateAction { - } - - - /// The action used for deactivating product templates. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class DeactivateProductTemplates : ProductTemplateAction { - } - - - /// The action used for archiving product template. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ArchiveProductTemplates : ProductTemplateAction { - } - - - /// The action used for activating product templates. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ActivateProductTemplates : ProductTemplateAction { - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public interface ProductTemplateServiceInterfaceChannel : Google.Api.Ads.AdManager.v201808.ProductTemplateServiceInterface, System.ServiceModel.IClientChannel - { - } - - - /// Provides methods for creating, updating and retrieving ProductTemplate objects.

A product template is - /// used to generate a set of products. Products allow inventory managers to control - /// what salespeople can sell.

To use this service, you need to have the new - /// sales management solution enabled on your network. If you do not see a "Sales" - /// tab in DoubleClick for Publishers - /// (DFP), you will not be able to use this service.

- ///
- [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public partial class ProductTemplateService : AdManagerSoapClient, IProductTemplateService { - /// Creates a new instance of the - /// class. - public ProductTemplateService() { - } - - /// Creates a new instance of the - /// class. - public ProductTemplateService(string endpointConfigurationName) - : base(endpointConfigurationName) { - } - - /// Creates a new instance of the - /// class. - public ProductTemplateService(string endpointConfigurationName, string remoteAddress) - : base(endpointConfigurationName, remoteAddress) { - } - - /// Creates a new instance of the - /// class. - public ProductTemplateService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) - : base(endpointConfigurationName, remoteAddress) { - } - - /// Creates a new instance of the - /// class. - public ProductTemplateService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) - : base(binding, remoteAddress) { - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.ProductTemplateService.createProductTemplatesResponse Google.Api.Ads.AdManager.v201808.ProductTemplateServiceInterface.createProductTemplates(Wrappers.ProductTemplateService.createProductTemplatesRequest request) { - return base.Channel.createProductTemplates(request); - } - - /// Creates new ProductTemplate objects. - /// the productTemplates to create - /// the persisted product templates with their Ids filled in - public virtual Google.Api.Ads.AdManager.v201808.ProductTemplate[] createProductTemplates(Google.Api.Ads.AdManager.v201808.ProductTemplate[] productTemplates) { - Wrappers.ProductTemplateService.createProductTemplatesRequest inValue = new Wrappers.ProductTemplateService.createProductTemplatesRequest(); - inValue.productTemplates = productTemplates; - Wrappers.ProductTemplateService.createProductTemplatesResponse retVal = ((Google.Api.Ads.AdManager.v201808.ProductTemplateServiceInterface)(this)).createProductTemplates(inValue); - return retVal.rval; - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201808.ProductTemplateServiceInterface.createProductTemplatesAsync(Wrappers.ProductTemplateService.createProductTemplatesRequest request) { - return base.Channel.createProductTemplatesAsync(request); - } - - public virtual System.Threading.Tasks.Task createProductTemplatesAsync(Google.Api.Ads.AdManager.v201808.ProductTemplate[] productTemplates) { - Wrappers.ProductTemplateService.createProductTemplatesRequest inValue = new Wrappers.ProductTemplateService.createProductTemplatesRequest(); - inValue.productTemplates = productTemplates; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201808.ProductTemplateServiceInterface)(this)).createProductTemplatesAsync(inValue)).Result.rval); - } - - /// Gets a ProductTemplatePage of ProductTemplate objects that satisfy the filtering - /// criteria specified by given Statement#query. The - /// following fields are supported for filtering: - /// - /// - /// - /// - /// - /// - /// - /// - ///
PQL - /// Property Object Property
id ProductTemplate#id
name ProductTemplate#name
nameMacro ProductTemplate#nameMacro
description ProductTemplate#description
status ProductTemplate#status
lastModifiedDateTime ProductTemplate#lastModifiedDateTime
lineItemType LineItemType
productType ProductType
rateType RateType
- ///
a Publisher Query Language statement which specifies the - /// filtering criteria over productTemplates - /// the productTemplates that match the given statement - public virtual Google.Api.Ads.AdManager.v201808.ProductTemplatePage getProductTemplatesByStatement(Google.Api.Ads.AdManager.v201808.Statement statement) { - return base.Channel.getProductTemplatesByStatement(statement); - } - - public virtual System.Threading.Tasks.Task getProductTemplatesByStatementAsync(Google.Api.Ads.AdManager.v201808.Statement statement) { - return base.Channel.getProductTemplatesByStatementAsync(statement); - } - - /// Performs action on ProductTemplate objects that - /// satisfy the given Statement#query. - /// the action to perform - /// a Publisher Query Language statement used to - /// filter a set of product templates - /// the result of the action performed - public virtual Google.Api.Ads.AdManager.v201808.UpdateResult performProductTemplateAction(Google.Api.Ads.AdManager.v201808.ProductTemplateAction action, Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.performProductTemplateAction(action, filterStatement); - } - - public virtual System.Threading.Tasks.Task performProductTemplateActionAsync(Google.Api.Ads.AdManager.v201808.ProductTemplateAction action, Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.performProductTemplateActionAsync(action, filterStatement); - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.ProductTemplateService.updateProductTemplatesResponse Google.Api.Ads.AdManager.v201808.ProductTemplateServiceInterface.updateProductTemplates(Wrappers.ProductTemplateService.updateProductTemplatesRequest request) { - return base.Channel.updateProductTemplates(request); - } - - /// Updates the specified ProductTemplate objects. - /// the product templates to update - /// the updated product templates - public virtual Google.Api.Ads.AdManager.v201808.ProductTemplate[] updateProductTemplates(Google.Api.Ads.AdManager.v201808.ProductTemplate[] productTemplates) { - Wrappers.ProductTemplateService.updateProductTemplatesRequest inValue = new Wrappers.ProductTemplateService.updateProductTemplatesRequest(); - inValue.productTemplates = productTemplates; - Wrappers.ProductTemplateService.updateProductTemplatesResponse retVal = ((Google.Api.Ads.AdManager.v201808.ProductTemplateServiceInterface)(this)).updateProductTemplates(inValue); - return retVal.rval; - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201808.ProductTemplateServiceInterface.updateProductTemplatesAsync(Wrappers.ProductTemplateService.updateProductTemplatesRequest request) { - return base.Channel.updateProductTemplatesAsync(request); - } - - public virtual System.Threading.Tasks.Task updateProductTemplatesAsync(Google.Api.Ads.AdManager.v201808.ProductTemplate[] productTemplates) { - Wrappers.ProductTemplateService.updateProductTemplatesRequest inValue = new Wrappers.ProductTemplateService.updateProductTemplatesRequest(); - inValue.productTemplates = productTemplates; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201808.ProductTemplateServiceInterface)(this)).updateProductTemplatesAsync(inValue)).Result.rval); - } - } - namespace Wrappers.ProposalService - { - [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/v201808", IsWrapped = true)] - public partial class createProposalsRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("proposals")] - public Google.Api.Ads.AdManager.v201808.Proposal[] proposals; - - /// Creates a new instance of the - /// class. - public createProposalsRequest() { - } - - /// Creates a new instance of the - /// class. - public createProposalsRequest(Google.Api.Ads.AdManager.v201808.Proposal[] proposals) { - this.proposals = proposals; - } - } - - - [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/v201808", IsWrapped = true)] - public partial class createProposalsResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v201808.Proposal[] rval; - - /// Creates a new instance of the - /// class. - public createProposalsResponse() { - } - - /// Creates a new instance of the - /// class. - public createProposalsResponse(Google.Api.Ads.AdManager.v201808.Proposal[] 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 = "updateProposals", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201808", IsWrapped = true)] - public partial class updateProposalsRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("proposals")] - public Google.Api.Ads.AdManager.v201808.Proposal[] proposals; - - /// Creates a new instance of the - /// class. - public updateProposalsRequest() { - } - - /// Creates a new instance of the - /// class. - public updateProposalsRequest(Google.Api.Ads.AdManager.v201808.Proposal[] proposals) { - this.proposals = proposals; - } - } - - - [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/v201808", IsWrapped = true)] - public partial class updateProposalsResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v201808.Proposal[] rval; - - /// Creates a new instance of the - /// class. - public updateProposalsResponse() { - } - - /// Creates a new instance of the - /// class. - public updateProposalsResponse(Google.Api.Ads.AdManager.v201808.Proposal[] rval) { - this.rval = rval; - } - } - } - /// Represents the buyer RFP information associated with a Proposal describing the requirements from the buyer. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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; - - private CreativePlaceholder[] creativePlaceholdersField; - - 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 when:
  • using programmatic - /// guaranteed, not using sales management.
  • using preferred deals, not - /// using sales management.
- ///
- [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 when:
    - ///
  • using programmatic guaranteed, not using sales management.
  • using - /// preferred deals, not using sales management.
- ///
- [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 unitsSpecified { - get { - return this.unitsFieldSpecified; - } - set { - this.unitsFieldSpecified = 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 - /// when:
  • using programmatic guaranteed, not using sales - /// management.
  • using preferred deals, not using sales management.
  • - ///
- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public Money budget { - get { - return this.budgetField; - } - set { - this.budgetField = value; - } - } - - /// Currency code for this deal's budget and CPM. This attribute is read-only when:
  • using programmatic - /// guaranteed, not using sales management.
  • using preferred deals, not - /// using sales management.
- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public string currencyCode { - get { - return this.currencyCodeField; - } - set { - this.currencyCodeField = value; - } - } - - /// The DateTime in which the proposed deal should start - /// serving. This attribute is read-only - /// when:
  • using programmatic guaranteed, not using sales - /// management.
  • using preferred deals, not using sales management.
  • - ///
- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public DateTime startDateTime { - get { - return this.startDateTimeField; - } - set { - this.startDateTimeField = value; - } - } - - /// The DateTime in which the proposed deal should end - /// serving. This attribute is read-only - /// when:
  • using programmatic guaranteed, not using sales - /// management.
  • using preferred deals, not using sales management.
  • - ///
- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 5)] - public DateTime endDateTime { - get { - return this.endDateTimeField; - } - set { - 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 when:
    - ///
  • using programmatic guaranteed, not using sales management.
  • using - /// preferred deals, not using sales management.
- ///
- [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 when:
    - ///
  • using programmatic guaranteed, not using sales management.
  • using - /// preferred deals, not using sales management.
- ///
- [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 when:
    - ///
  • using programmatic guaranteed, not using sales management.
  • using - /// preferred deals, not using sales management.
- ///
- [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 when:
    - ///
  • using programmatic guaranteed, not using sales management.
  • using - /// preferred deals, not using sales management.
- ///
- [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 when:
    - ///
  • using programmatic guaranteed, not using sales management.
  • using - /// preferred deals, not using sales management.
- ///
- [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. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool adExchangeEnvironmentSpecified { - get { - return this.adExchangeEnvironmentFieldSpecified; - } - set { - this.adExchangeEnvironmentFieldSpecified = 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 when:
  • using programmatic guaranteed, not using sales - /// management.
  • using preferred deals, not using sales management.
  • - ///
- ///
- [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 { - get { - return this.rfpTypeFieldSpecified; - } - set { - this.rfpTypeFieldSpecified = value; - } - } - } - - - /// Decribes the type of BuyerRfp. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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, - } - - - /// An error that occurs for an internal Ad Manager process that happens in the - /// background. For example, Proposal workflows can have - /// background tasks that may have offline errors. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class OfflineError { - private string fieldPathField; - - private string triggerField; - - private DateTime errorTimeField; - - private string reasonField; - - /// The OGNL field path to identify cause of error. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public string fieldPath { - get { - return this.fieldPathField; - } - set { - this.fieldPathField = value; - } - } - - /// The data that caused the error. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public string trigger { - get { - return this.triggerField; - } - set { - this.triggerField = value; - } - } - - /// The time when this error occurred. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public DateTime errorTime { - get { - return this.errorTimeField; - } - set { - this.errorTimeField = value; - } - } - - /// The error reason represented by a string. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public string reason { - get { - return this.reasonField; - } - set { - this.reasonField = value; - } - } - } - - - /// Marketplace info for a proposal with a corresponding order in Marketplace. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ProposalMarketplaceInfo { - private bool hasLocalVersionEditsField; - - private bool hasLocalVersionEditsFieldSpecified; - - private NegotiationStatus negotiationStatusField; - - private bool negotiationStatusFieldSpecified; - - private string marketplaceCommentField; - - private bool isNewVersionFromBuyerField; - - private bool isNewVersionFromBuyerFieldSpecified; - - private long buyerAccountIdField; - - private bool buyerAccountIdFieldSpecified; - - /// 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 = 0)] - public bool hasLocalVersionEdits { - get { - return this.hasLocalVersionEditsField; - } - set { - this.hasLocalVersionEditsField = value; - this.hasLocalVersionEditsSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool hasLocalVersionEditsSpecified { - get { - return this.hasLocalVersionEditsFieldSpecified; - } - set { - this.hasLocalVersionEditsFieldSpecified = value; - } - } - - /// The negotiation status of the Proposal. This attribute is - /// read-only. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public NegotiationStatus negotiationStatus { - get { - return this.negotiationStatusField; - } - set { - this.negotiationStatusField = value; - this.negotiationStatusSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool negotiationStatusSpecified { - get { - return this.negotiationStatusFieldSpecified; - } - set { - this.negotiationStatusFieldSpecified = value; - } - } - - /// The comment on the Proposal to be sent to the buyer. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public string marketplaceComment { - get { - return this.marketplaceCommentField; - } - set { - this.marketplaceCommentField = 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. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public bool isNewVersionFromBuyer { - get { - return this.isNewVersionFromBuyerField; - } - set { - this.isNewVersionFromBuyerField = value; - this.isNewVersionFromBuyerSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool isNewVersionFromBuyerSpecified { - get { - return this.isNewVersionFromBuyerFieldSpecified; - } - set { - this.isNewVersionFromBuyerFieldSpecified = value; - } - } - - /// The ID of the buyer that this Proposal is being negotiated with. - /// This attribute is required. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public long buyerAccountId { - get { - return this.buyerAccountIdField; - } - set { - this.buyerAccountIdField = value; - this.buyerAccountIdSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool buyerAccountIdSpecified { - get { - return this.buyerAccountIdFieldSpecified; - } - set { - this.buyerAccountIdFieldSpecified = value; - } - } - } - - - /// Represents the proposal's negotiation status for - /// Marketplace. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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, - } - - - /// Details describing why a Proposal was retracted. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class RetractionDetails { - private long retractionReasonIdField; - - private bool retractionReasonIdFieldSpecified; - - private string commentsField; - - /// The ID of the reason for why the Proposal was retracted. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public long retractionReasonId { - get { - return this.retractionReasonIdField; - } - set { - this.retractionReasonIdField = value; - this.retractionReasonIdSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool retractionReasonIdSpecified { - get { - return this.retractionReasonIdFieldSpecified; - } - set { - this.retractionReasonIdFieldSpecified = value; - } - } - - /// Comments on why the Proposal was retracted. This field is - /// optional and has a maximum length of 1023 characters. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public string comments { - get { - return this.commentsField; - } - set { - this.commentsField = value; - } - } - } - - - /// Represents a terms and conditions that has been added to a Proposal. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ProposalTermsAndConditions { - private long termsAndConditionsIdField; - - private bool termsAndConditionsIdFieldSpecified; - - private string nameField; - - private string contentField; - - /// The ID of the terms and conditions added to the proposal. This attribute is required. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public long termsAndConditionsId { - get { - return this.termsAndConditionsIdField; - } - set { - this.termsAndConditionsIdField = value; - this.termsAndConditionsIdSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool termsAndConditionsIdSpecified { - get { - return this.termsAndConditionsIdFieldSpecified; - } - set { - this.termsAndConditionsIdFieldSpecified = value; - } - } - - /// The name of the terms and conditions at the time it was added to the proposal. - /// This is a snapshot of the terms and conditions' name. It will not be updated if - /// the terms and conditions name is updated. This attribute is read-only. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public string name { - get { - return this.nameField; - } - set { - this.nameField = value; - } - } - - /// The content of the terms and conditions at the time it was added to the - /// proposal. This is a snapshot of the terms and conditions' content. It will not - /// be updated if the terms and conditions content is updated. This attribute is - /// read-only. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public string content { - get { - return this.contentField; - } - set { - this.contentField = value; - } - } - } - - - /// A link that can be added as a resource to a Proposal. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ProposalLink { - private long idField; - - private bool idFieldSpecified; - - private string nameField; - - private long creatorIdField; - - private bool creatorIdFieldSpecified; - - private string urlField; - - private string descriptionField; - - private DateTime creationDateTimeField; - - /// The unique ID of the ProposalLink. 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; - } - } - - /// 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 ProposalLink. Must be unique under the same Proposal. This attribute has a maximum length of 255 - /// characters. This attribute is required. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public string name { - get { - return this.nameField; - } - set { - this.nameField = value; - } - } - - /// The unique ID of the User who created the . This - /// attribute is read-only. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public long creatorId { - get { - return this.creatorIdField; - } - set { - this.creatorIdField = value; - this.creatorIdSpecified = true; - } - } - - /// 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; - } - } - - /// The link to the ProposalLink resource. This attribute is required. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public string url { - get { - return this.urlField; - } - set { - this.urlField = value; - } - } - - /// The description for the ProposalLink. This attribute is optional - /// and has a maximum length of 1023 characters. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public string description { - get { - return this.descriptionField; - } - set { - this.descriptionField = value; - } - } - - /// The creation time of the ProposalLink. This attribute is assigned - /// by Google when the ProposalLink is created. This attribute is - /// read-only. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 5)] - public DateTime creationDateTime { - get { - return this.creationDateTimeField; - } - set { - this.creationDateTimeField = value; - } - } - } - - - /// An action that is being or was done to progress the workflow. - /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(SendNotificationProgressAction))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ReserveInventoryProgressAction))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(RequestApprovalProgressAction))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public abstract partial class ProgressAction { - private DateTime evaluationTimeField; - - private EvaluationStatus evaluationStatusField; - - private bool evaluationStatusFieldSpecified; - - /// The DateTime this action was evaluated. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public DateTime evaluationTime { - get { - return this.evaluationTimeField; - } - set { - this.evaluationTimeField = value; - } - } - - /// The status of this action. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public EvaluationStatus evaluationStatus { - get { - return this.evaluationStatusField; - } - set { - this.evaluationStatusField = value; - this.evaluationStatusSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool evaluationStatusSpecified { - get { - return this.evaluationStatusFieldSpecified; - } - set { - this.evaluationStatusFieldSpecified = value; - } - } - } - - - /// The status of various entities in a workflow. The entity can be a workflow, a - /// workflow step, or a workflow action. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum EvaluationStatus { - /// When a Proposal is retracted the associated workflow is - /// canceled. Including the steps, rules and actions. - /// - CANCELED = 0, - /// The entity is in a completed state. If the entity is a workflow, it means that - /// all steps have been completed. If the entity is a step, it means all actions in - /// the step have been completed. If the entity is a workflow action, it means it - /// has been done. - /// - COMPLETED = 1, - /// The entity is in a failed state. If the entity is a workflow, it means that some - /// step has failed. If the entity is a step, it means some actions in the step have - /// failed. If the entity is a workflow action, it means it has failed. - /// - FAILED = 2, - /// The entity is in progress. If the entity is a workflow, it means that some steps - /// have yet to be started. If the entity is a step, it means some actions in the - /// step are still in a pending state. If the entity is a workflow action, it means - /// the action is ongoing. - /// - IN_PROGRESS = 3, - /// The entity has not been started. If the entity is a step, it has not been - /// started by the workflow execution process If the entity is a workflow action, it - /// means that the step has not been triggered. - /// - INACTIVE = 4, - /// The action is skipped because the Proposal and/or proposal line items do not trigger the conditions - /// for the step. This value is only for actions. - /// - SKIPPED = 5, - /// The action is triggered because the Proposal and/or proposal line items trigger the conditions for the - /// step, but the step itself has not started yet. - /// - INACTIVE_BUT_TRIGGERED = 6, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 7, - } - - - /// Action requiring a notification to be sent before the workflow can continue. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class SendNotificationProgressAction : ProgressAction { - } - - - /// Action requiring inventory to be reserved before the workflow can continue. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ReserveInventoryProgressAction : ProgressAction { - } - - - /// Action requiring approval before the workflow can continue. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class RequestApprovalProgressAction : ProgressAction { - private long approverIdField; - - private bool approverIdFieldSpecified; - - private long[] eligibleApproverUserIdsField; - - private long[] eligibleApproverTeamIdsField; - - private string commentField; - - private WorkflowApprovalRequestStatus approvalStatusField; - - private bool approvalStatusFieldSpecified; - - /// The User#ID of the user who performed this action. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public long approverId { - get { - return this.approverIdField; - } - set { - this.approverIdField = value; - this.approverIdSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool approverIdSpecified { - get { - return this.approverIdFieldSpecified; - } - set { - this.approverIdFieldSpecified = value; - } - } - - /// The IDs of users who are eligible to approve this action. - /// - [System.Xml.Serialization.XmlElementAttribute("eligibleApproverUserIds", Order = 1)] - public long[] eligibleApproverUserIds { - get { - return this.eligibleApproverUserIdsField; - } - set { - this.eligibleApproverUserIdsField = value; - } - } - - /// The IDs of teams who are eligible to approve this action. - /// - [System.Xml.Serialization.XmlElementAttribute("eligibleApproverTeamIds", Order = 2)] - public long[] eligibleApproverTeamIds { - get { - return this.eligibleApproverTeamIdsField; - } - set { - this.eligibleApproverTeamIdsField = value; - } - } - - /// A comment left by the approver. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public string comment { - get { - return this.commentField; - } - set { - this.commentField = value; - } - } - - /// The approval status of this action. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public WorkflowApprovalRequestStatus approvalStatus { - get { - return this.approvalStatusField; - } - set { - this.approvalStatusField = value; - this.approvalStatusSpecified = true; - } - } - - /// 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; - } - } - } - - - /// The status of the workflow approval request. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum WorkflowApprovalRequestStatus { - /// The request is pending approval. - /// - PENDING_APPROVAL = 0, - /// The workflow approval request has been approved. - /// - APPROVED = 1, - /// The workflow approval request has been rejected. - /// - REJECTED = 2, - /// The workflow request was retracted because the proposal was retracted. - /// - RETRACTED = 3, - /// The entity might have a non-applicable status in several scenarios: - /// - NOT_APPLICABLE = 5, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 4, - } - - - /// Describes a rule in a workflow step. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ProgressRule { - private ProgressAction[] actionsField; - - private string nameField; - - private WorkflowEvaluationStatus evaluationStatusField; - - private bool evaluationStatusFieldSpecified; - - private DateTime evaluationTimeField; - - private bool isExternalField; - - private bool isExternalFieldSpecified; - - /// Pending or completed actions for this rule. - /// - [System.Xml.Serialization.XmlElementAttribute("actions", Order = 0)] - public ProgressAction[] actions { - get { - return this.actionsField; - } - set { - this.actionsField = value; - } - } - - /// The name of this rule. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public string name { - get { - return this.nameField; - } - set { - this.nameField = value; - } - } - - /// The status of this rule. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public WorkflowEvaluationStatus evaluationStatus { - get { - return this.evaluationStatusField; - } - set { - this.evaluationStatusField = value; - this.evaluationStatusSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool evaluationStatusSpecified { - get { - return this.evaluationStatusFieldSpecified; - } - set { - this.evaluationStatusFieldSpecified = value; - } - } - - /// The DateTime this rule was evaluated. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public DateTime evaluationTime { - get { - return this.evaluationTimeField; - } - set { - this.evaluationTimeField = value; - } - } - - /// Whether this rule is evaluated by external system. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public bool isExternal { - get { - return this.isExternalField; - } - set { - this.isExternalField = value; - this.isExternalSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool isExternalSpecified { - get { - return this.isExternalFieldSpecified; - } - set { - this.isExternalFieldSpecified = value; - } - } - } - - - /// The status of a workflow rule during workflow execution. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum WorkflowEvaluationStatus { - /// The workflow external condition is pending evaluation. - /// - PENDING = 0, - /// The workflow external condition has been triggered. - /// - TRIGGERED = 1, - /// The workflow external condition has not been triggered. - /// - NOT_TRIGGERED = 2, - /// The associated proposal was retracted, this rule is no longer valid. - /// - CANCELLED = 3, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 4, - } - - - /// Describes a step in a workflow. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ProgressStep { - private ProgressRule[] rulesField; - - private EvaluationStatus evaluationStatusField; - - private bool evaluationStatusFieldSpecified; - - /// The rules in this step. - /// - [System.Xml.Serialization.XmlElementAttribute("rules", Order = 0)] - public ProgressRule[] rules { - get { - return this.rulesField; - } - set { - this.rulesField = value; - } - } - - /// The status of this step. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public EvaluationStatus evaluationStatus { - get { - return this.evaluationStatusField; - } - set { - this.evaluationStatusField = value; - this.evaluationStatusSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool evaluationStatusSpecified { - get { - return this.evaluationStatusFieldSpecified; - } - set { - this.evaluationStatusFieldSpecified = value; - } - } - } - - - /// The progress indicator of a proposal's workflow. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class WorkflowProgress { - private ProgressStep[] stepsField; - - private long submitterIdField; - - private bool submitterIdFieldSpecified; - - private EvaluationStatus evaluationStatusField; - - private bool evaluationStatusFieldSpecified; - - private DateTime submissionTimeField; - - private DateTime evaluationTimeField; - - private bool isProcessingField; - - private bool isProcessingFieldSpecified; - - /// The steps in this workflow. - /// - [System.Xml.Serialization.XmlElementAttribute("steps", Order = 0)] - public ProgressStep[] steps { - get { - return this.stepsField; - } - set { - this.stepsField = value; - } - } - - /// The ID of the user who submitted the Proposal. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public long submitterId { - get { - return this.submitterIdField; - } - set { - this.submitterIdField = value; - this.submitterIdSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool submitterIdSpecified { - get { - return this.submitterIdFieldSpecified; - } - set { - this.submitterIdFieldSpecified = value; - } - } - - /// The status of this workflow. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public EvaluationStatus evaluationStatus { - get { - return this.evaluationStatusField; - } - set { - this.evaluationStatusField = value; - this.evaluationStatusSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool evaluationStatusSpecified { - get { - return this.evaluationStatusFieldSpecified; - } - set { - this.evaluationStatusFieldSpecified = value; - } - } - - /// The DateTime the proposal was submitted. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public DateTime submissionTime { - get { - return this.submissionTimeField; - } - set { - this.submissionTimeField = value; - } - } - - /// The DateTime this workflow was evaluated. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public DateTime evaluationTime { - get { - return this.evaluationTimeField; - } - set { - this.evaluationTimeField = value; - } - } - - /// Whether any offline processing is occurring. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 5)] - public bool isProcessing { - get { - return this.isProcessingField; - } - set { - this.isProcessingField = value; - this.isProcessingSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool isProcessingSpecified { - get { - return this.isProcessingFieldSpecified; - } - set { - this.isProcessingFieldSpecified = value; - } - } - } - - - /// A SalespersonSplit represents a salesperson and his/her split. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class SalespersonSplit { - private long userIdField; - - private bool userIdFieldSpecified; - - private int splitField; - - private bool splitFieldSpecified; - - /// 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 split can be attributed to the salesperson. The percentage value is stored - /// as millipercents, and must be multiples of 10 with the range from 0 to 100000. - /// The default value is 0. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public int split { - get { - return this.splitField; - } - set { - this.splitField = value; - this.splitSpecified = true; - } - } - - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool splitSpecified { - get { - return this.splitFieldSpecified; - } - set { - this.splitFieldSpecified = 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.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - 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 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; - } - } - } - - - /// Describes the type of a Company associated with a Proposal. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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 PricingModel pricingModelField; - - private bool pricingModelFieldSpecified; - - private DateTime startDateTimeField; - - private DateTime endDateTimeField; - - private string timeZoneIdField; - - private ProposalStatus statusField; - - private bool statusFieldSpecified; - - private bool isArchivedField; - - private bool isArchivedFieldSpecified; - - private ProposalCompanyAssociation advertiserField; - - private ProposalCompanyAssociation[] agenciesField; - - private long probabilityOfCloseField; - - private bool probabilityOfCloseFieldSpecified; - - private BillingCap billingCapField; - - private bool billingCapFieldSpecified; - - private BillingSchedule billingScheduleField; - - private bool billingScheduleFieldSpecified; - - private BillingSource billingSourceField; - - private bool billingSourceFieldSpecified; - - private BillingBase billingBaseField; - - private bool billingBaseFieldSpecified; - - private string poNumberField; - - private string internalNotesField; - - private Money budgetField; - - private SalespersonSplit primarySalespersonField; - - private SalespersonSplit[] secondarySalespeopleField; - - private long[] salesPlannerIdsField; - - private long primaryTraffickerIdField; - - private bool primaryTraffickerIdFieldSpecified; - - private long[] secondaryTraffickerIdsField; - - private long[] sellerContactIdsField; - - private long[] appliedTeamIdsField; - - private BaseCustomFieldValue[] customFieldValuesField; - - private AppliedLabel[] appliedLabelsField; - - private AppliedLabel[] effectiveAppliedLabelsField; - - private long advertiserDiscountField; - - private bool advertiserDiscountFieldSpecified; - - private long proposalDiscountField; - - private bool proposalDiscountFieldSpecified; - - private string currencyCodeField; - - private long exchangeRateField; - - private bool exchangeRateFieldSpecified; - - private bool refreshExchangeRateField; - - private bool refreshExchangeRateFieldSpecified; - - private long agencyCommissionField; - - private bool agencyCommissionFieldSpecified; - - private long valueAddedTaxField; - - private bool valueAddedTaxFieldSpecified; - - private bool isSoldField; - - private bool isSoldFieldSpecified; - - private ProposalApprovalStatus approvalStatusField; - - private bool approvalStatusFieldSpecified; - - private WorkflowProgress workflowProgressField; - - private DateTime lastModifiedDateTimeField; - - private ProposalLink[] resourcesField; - - private DateTime actualExpiryTimeField; - - private DateTime expectedExpiryTimeField; - - private int thirdPartyAdServerIdField; - - private bool thirdPartyAdServerIdFieldSpecified; - - private string customThirdPartyAdServerNameField; - - private ProposalTermsAndConditions[] termsAndConditionsField; - - private RetractionDetails lastRetractionDetailsField; - - private ProposalMarketplaceInfo marketplaceInfoField; - - private OfflineError[] offlineErrorsField; - - private bool hasOfflineErrorsField; - - private bool hasOfflineErrorsFieldSpecified; - - private BuyerRfp buyerRfpField; - - private bool hasBuyerRfpField; - - private bool hasBuyerRfpFieldSpecified; - - /// 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; - } - } - - /// 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; - } - } - - /// 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; - } - 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; - } - } - - /// 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 { - get { - return this.dfpOrderIdField; - } - set { - this.dfpOrderIdField = value; - this.dfpOrderIdSpecified = true; - } - } - - /// 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. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public string name { - get { - return this.nameField; - } - set { - this.nameField = value; - } - } - - /// The option to specify whether the Proposal uses the Net or Gross - /// pricing model. This field is optional and defaults to PricingModel#NET. This attribute is applicable when:
  • not using - /// programmatic, using sales management.
- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public PricingModel pricingModel { - get { - return this.pricingModelField; - } - set { - this.pricingModelField = value; - this.pricingModelSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool pricingModelSpecified { - get { - return this.pricingModelFieldSpecified; - } - set { - this.pricingModelFieldSpecified = 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. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 5)] - 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. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 6)] - public DateTime endDateTime { - get { - return this.endDateTimeField; - } - set { - this.endDateTimeField = value; - } - } - - /// The time zone ID in tz database format (e.g. "America/Los_Angeles") for this - /// Proposal. 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 applicable when:
    - ///
  • not using programmatic, using sales management.
- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 7)] - public string timeZoneId { - get { - return this.timeZoneIdField; - } - set { - this.timeZoneIdField = value; - } - } - - /// The status of the Proposal. This attribute is read-only. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 8)] - 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. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 9)] - 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. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 10)] - 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. - /// - [System.Xml.Serialization.XmlElementAttribute("agencies", Order = 11)] - public ProposalCompanyAssociation[] agencies { - get { - return this.agenciesField; - } - set { - this.agenciesField = value; - } - } - - /// The probability to close this Proposal. This percentage value is in - /// terms of millipercent, and should be multiples of 10 with the range from 0 to - /// 100000. This attribute will be used to calculate the revenue in reporting. This attribute is applicable when:
    - ///
  • using programmatic guaranteed, using sales management.
  • not using - /// programmatic, using sales management.
This attribute is required when:
  • using programmatic - /// guaranteed, using sales management.
  • not using programmatic, using sales - /// management.
- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 12)] - public long probabilityOfClose { - get { - return this.probabilityOfCloseField; - } - set { - this.probabilityOfCloseField = value; - this.probabilityOfCloseSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool probabilityOfCloseSpecified { - get { - return this.probabilityOfCloseFieldSpecified; - } - set { - this.probabilityOfCloseFieldSpecified = value; - } - } - - /// The billing cap of this Proposal. This attribute is optional and - /// default value is BillingCap#CAPPED_CUMULATIVE. Either - /// this attribute or #billingSchedule will be used, - /// according to the #billingSource. 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 applicable when:
    - ///
  • not using programmatic, using sales management.
- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 13)] - public BillingCap billingCap { - get { - return this.billingCapField; - } - set { - this.billingCapField = value; - this.billingCapSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool billingCapSpecified { - get { - return this.billingCapFieldSpecified; - } - set { - this.billingCapFieldSpecified = value; - } - } - - /// The billing schedule of this Proposal. This attribute is optional - /// and default value is BillingSchedule#PRORATED. Either this - /// attribute or #billingCap will be used, according to - /// the #billingSource. 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 applicable when:
    - ///
  • not using programmatic, using sales management.
- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 14)] - public BillingSchedule billingSchedule { - get { - return this.billingScheduleField; - } - set { - this.billingScheduleField = value; - this.billingScheduleSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool billingScheduleSpecified { - get { - return this.billingScheduleFieldSpecified; - } - set { - this.billingScheduleFieldSpecified = value; - } - } - - /// The billing source of this Proposal. This attribute is optional and - /// default value is BillingSource#THIRD_PARTY_VOLUME. If - /// the value is BillingSource#CONTRACTED, - /// the #billingSchedule will be used for billing, - /// otherwise the billingCap will be used. 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 applicable when:
    - ///
  • not using programmatic, using sales management.
- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 15)] - public BillingSource billingSource { - get { - return this.billingSourceField; - } - set { - this.billingSourceField = value; - this.billingSourceSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool billingSourceSpecified { - get { - return this.billingSourceFieldSpecified; - } - set { - this.billingSourceFieldSpecified = value; - } - } - - /// The billing base of this Proposal. For example, for a flat fee contracted #billingSource, set this to BillingBase#REVENUE. This attribute is optional - /// and defaults to BillingBase#VOLUME. 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 applicable when: - ///
  • not using programmatic, using sales management.
- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 16)] - public BillingBase billingBase { - get { - return this.billingBaseField; - } - set { - this.billingBaseField = value; - this.billingBaseSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool billingBaseSpecified { - get { - return this.billingBaseFieldSpecified; - } - set { - this.billingBaseFieldSpecified = value; - } - } - - /// User defined purchase order number for the Proposal. This attribute - /// is optional and has a maximum length of 63 characters. It is copied to Order#poNumber 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 applicable - /// when:
  • using programmatic guaranteed, using sales - /// management.
  • not using programmatic, using sales management.
- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 17)] - public string poNumber { - get { - return this.poNumberField; - } - set { - this.poNumberField = 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. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 18)] - public string internalNotes { - get { - return this.internalNotesField; - } - set { - this.internalNotesField = value; - } - } - - /// The total budget allocated for all the proposal line items belonging to the - /// Proposal. It supports precision of 2 decimal places in terms of the - /// fundamental currency unit, so the Money#microAmount must be multiples of 10000. This - /// attribute is optional and default value is 0. The Money#currencyCode is readonly. This attribute is applicable when:
    - ///
  • using programmatic guaranteed, using sales management.
  • not using - /// programmatic, using sales management.
- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 19)] - public Money budget { - get { - return this.budgetField; - } - set { - this.budgetField = 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. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 20)] - public SalespersonSplit primarySalesperson { - get { - return this.primarySalespersonField; - } - set { - this.primarySalespersonField = value; - } - } - - /// List of secondary salespeople who are responsible for the sales of the - /// Proposal besides primary salesperson. This attribute is optional. A - /// proposal could have 8 secondary salespeople at most, but must also have a #primarySalesperson if any secondary salesperson - /// exists. 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 applicable - /// when:
  • using programmatic guaranteed, using sales - /// management.
  • not using programmatic, using sales management.
- ///
- [System.Xml.Serialization.XmlElementAttribute("secondarySalespeople", Order = 21)] - public SalespersonSplit[] secondarySalespeople { - get { - return this.secondarySalespeopleField; - } - set { - this.secondarySalespeopleField = 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. - /// - [System.Xml.Serialization.XmlElementAttribute("salesPlannerIds", Order = 22)] - 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. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 23)] - 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; - } - } - - /// List of unique IDs of User objects who are responsible for - /// trafficking the Proposal besides the primary trafficker. This - /// attribute is optional. A proposal could have 8 secondary traffickers at most, - /// but must also have a primary trafficker if any secondary trafficker exists. 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 applicable when: - ///
  • using programmatic guaranteed, using sales management.
  • not - /// using programmatic, using sales management.
- ///
- [System.Xml.Serialization.XmlElementAttribute("secondaryTraffickerIds", Order = 24)] - public long[] secondaryTraffickerIds { - get { - return this.secondaryTraffickerIdsField; - } - set { - this.secondaryTraffickerIdsField = value; - } - } - - /// users who are the seller's contacts. This attribute is applicable when:
  • using - /// programmatic guaranteed, using sales management.
  • using programmatic - /// guaranteed, not using sales management.
  • using preferred deals, not - /// using sales management.
- ///
- [System.Xml.Serialization.XmlElementAttribute("sellerContactIds", Order = 25)] - 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. - /// - [System.Xml.Serialization.XmlElementAttribute("appliedTeamIds", Order = 26)] - 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. - /// - [System.Xml.Serialization.XmlElementAttribute("customFieldValues", Order = 27)] - public BaseCustomFieldValue[] customFieldValues { - get { - return this.customFieldValuesField; - } - set { - this.customFieldValuesField = value; - } - } - - /// The set of labels applied directly to the Proposal. This attribute - /// is optional. - /// - [System.Xml.Serialization.XmlElementAttribute("appliedLabels", Order = 28)] - 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. - /// - [System.Xml.Serialization.XmlElementAttribute("effectiveAppliedLabels", Order = 29)] - public AppliedLabel[] effectiveAppliedLabels { - get { - return this.effectiveAppliedLabelsField; - } - set { - this.effectiveAppliedLabelsField = value; - } - } - - /// The discount applied to the Proposal according to the #advertiser. The percentage value is stored as - /// millipercents, and must be multiples of 10 with the range from 0 to 99990. This - /// attribute is optional and default value is 0. This attribute is applicable when:
  • using - /// programmatic guaranteed, using sales management.
  • not using - /// programmatic, using sales management.
- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 30)] - public long advertiserDiscount { - get { - return this.advertiserDiscountField; - } - set { - this.advertiserDiscountField = value; - this.advertiserDiscountSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool advertiserDiscountSpecified { - get { - return this.advertiserDiscountFieldSpecified; - } - set { - this.advertiserDiscountFieldSpecified = value; - } - } - - /// The proposal discount, which will be applied to all ProposalLineItem objects in the . The - /// percentage value is stored as millipercents, and must be multiples of 10 with - /// the range from 0 to 99990. This attribute is optional and default value is 0. - /// This attribute is applicable when: - ///
  • using programmatic guaranteed, using sales management.
  • not - /// using programmatic, using sales management.
- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 31)] - public long proposalDiscount { - get { - return this.proposalDiscountField; - } - set { - this.proposalDiscountField = value; - this.proposalDiscountSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool proposalDiscountSpecified { - get { - return this.proposalDiscountFieldSpecified; - } - set { - this.proposalDiscountFieldSpecified = value; - } - } - - /// The currency code of this Proposal. This attribute is optional and - /// defaults to network's currency code. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 32)] - public string currencyCode { - get { - return this.currencyCodeField; - } - set { - this.currencyCodeField = value; - } - } - - /// The exchange rate from the #currencyCode to the network's currency. The value is stored as the - /// exchange rate times 10,000,000,000 truncated to a long. This attribute is - /// assigned by Google when first created or updated with #refreshExchangeRate set to true. - /// This attribute is ignored if the feature is not enabled. This attribute is - /// read-only. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 33)] - public long exchangeRate { - get { - return this.exchangeRateField; - } - set { - this.exchangeRateField = value; - this.exchangeRateSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool exchangeRateSpecified { - get { - return this.exchangeRateFieldSpecified; - } - set { - this.exchangeRateFieldSpecified = value; - } - } - - /// Set this field to true to update the #exchangeRate to the latest exchange rate when updating - /// the proposal. This attribute is optional and defaults to false. - /// This attribute is ignored if the feature is not enabled. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 34)] - public bool refreshExchangeRate { - get { - return this.refreshExchangeRateField; - } - set { - this.refreshExchangeRateField = value; - this.refreshExchangeRateSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool refreshExchangeRateSpecified { - get { - return this.refreshExchangeRateFieldSpecified; - } - set { - this.refreshExchangeRateFieldSpecified = value; - } - } - - /// The commission for the primary agency of the Proposal. The - /// percentage value is stored as millipercents, and must be multiples of 10 with - /// the range from 0 to 99990. This attribute is optional and default value is 0. - /// This attribute is applicable when: - ///
  • not using programmatic, using sales management.
- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 35)] - public long agencyCommission { - get { - return this.agencyCommissionField; - } - set { - this.agencyCommissionField = value; - this.agencyCommissionSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool agencyCommissionSpecified { - get { - return this.agencyCommissionFieldSpecified; - } - set { - this.agencyCommissionFieldSpecified = value; - } - } - - /// The value added tax (VAT) applied on final cost of the . The - /// percentage value is stored as millipercents, and must be multiples of 10 with - /// the range from 0 to 100000. This attribute is optional and default value is 0. - /// This attribute is applicable when: - ///
  • not using programmatic, using sales management.
- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 36)] - public long valueAddedTax { - get { - return this.valueAddedTaxField; - } - set { - this.valueAddedTaxField = value; - this.valueAddedTaxSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool valueAddedTaxSpecified { - get { - return this.valueAddedTaxFieldSpecified; - } - set { - this.valueAddedTaxFieldSpecified = 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. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 37)] - 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 approval status of the Proposal for the active user or - /// null if the active user has no action needed. This attribute is applicable when:
    - ///
  • using programmatic guaranteed, using sales management.
  • not using - /// programmatic, using sales management.
This attribute is read-only when:
  • using programmatic - /// guaranteed, using sales management.
  • not using programmatic, using sales - /// management.
- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 38)] - public ProposalApprovalStatus approvalStatus { - get { - return this.approvalStatusField; - } - set { - this.approvalStatusField = value; - this.approvalStatusSpecified = true; - } - } - - /// 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; - } - } - - /// The progress report for the workflow applied on the . This attribute is applicable when:
    - ///
  • using programmatic guaranteed, using sales management.
  • not using - /// programmatic, using sales management.
This attribute is read-only when:
  • using programmatic - /// guaranteed, using sales management.
  • not using programmatic, using sales - /// management.
- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 39)] - public WorkflowProgress workflowProgress { - get { - return this.workflowProgressField; - } - set { - this.workflowProgressField = value; - } - } - - /// The date and time this Proposal was last modified. This attribute - /// is read-only. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 40)] - public DateTime lastModifiedDateTime { - get { - return this.lastModifiedDateTimeField; - } - set { - this.lastModifiedDateTimeField = value; - } - } - - /// The list of resources on this Proposal. 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. This attribute is applicable - /// when:
  • not using programmatic, using sales management.
- ///
- [System.Xml.Serialization.XmlElementAttribute("resources", Order = 41)] - public ProposalLink[] resources { - get { - return this.resourcesField; - } - set { - this.resourcesField = value; - } - } - - /// The actual date and time at which the inventory reserved by the Proposal will expire. This attribute is applicable when:
  • using - /// programmatic guaranteed, using sales management.
  • not using - /// programmatic, using sales management.
This attribute is read-only when:
  • using programmatic - /// guaranteed, using sales management.
  • not using programmatic, using sales - /// management.
- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 42)] - public DateTime actualExpiryTime { - get { - return this.actualExpiryTimeField; - } - set { - this.actualExpiryTimeField = value; - } - } - - /// The expected date and time at which the inventory reserved by the Proposal will expire. This attribute is applicable when:
  • using - /// programmatic guaranteed, using sales management.
  • not using - /// programmatic, using sales management.
This attribute is read-only when:
  • using programmatic - /// guaranteed, using sales management.
  • not using programmatic, using sales - /// management.
- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 43)] - public DateTime expectedExpiryTime { - get { - return this.expectedExpiryTimeField; - } - set { - this.expectedExpiryTimeField = value; - } - } - - /// A predefined third party ad server, which will be used to fill in - /// reconciliation. All predefined third party ad servers can be found in the - /// Third_Party_Company PQL table. If actual third party ad server is - /// not in the predefined list, this field is set to 0, and actual third party ad - /// server name is set in . Third party ad server is optional. By - /// default, this field is 0, and is null which means no third party - /// ad server is specified. This attribute is - /// applicable when:
  • not using programmatic, using sales - /// management.
- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 44)] - public int thirdPartyAdServerId { - get { - return this.thirdPartyAdServerIdField; - } - set { - this.thirdPartyAdServerIdField = value; - this.thirdPartyAdServerIdSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool thirdPartyAdServerIdSpecified { - get { - return this.thirdPartyAdServerIdFieldSpecified; - } - set { - this.thirdPartyAdServerIdFieldSpecified = value; - } - } - - /// When actual third party ad server is not in the predefined list, - /// thirdPartyAdServerId is set to 0, and actual third party ad server - /// name is set here. When thirdPartyAdServerId is not 0, this field is - /// ignored. This attribute is applicable - /// when:
  • not using programmatic, using sales management.
- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 45)] - public string customThirdPartyAdServerName { - get { - return this.customThirdPartyAdServerNameField; - } - set { - this.customThirdPartyAdServerNameField = value; - } - } - - /// A list of terms and conditions for this Proposal. This field is - /// optional. This attribute is applicable - /// when:
  • not using programmatic, using sales management.
- ///
- [System.Xml.Serialization.XmlElementAttribute("termsAndConditions", Order = 46)] - public ProposalTermsAndConditions[] termsAndConditions { - get { - return this.termsAndConditionsField; - } - set { - this.termsAndConditionsField = value; - } - } - - /// Details describing the most recent proposal retraction. This attribute is applicable when:
  • using - /// programmatic guaranteed, using sales management.
  • not using - /// programmatic, using sales management.
This attribute is read-only when:
  • using programmatic - /// guaranteed, using sales management.
  • not using programmatic, using sales - /// management.
- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 47)] - public RetractionDetails lastRetractionDetails { - get { - return this.lastRetractionDetailsField; - } - set { - this.lastRetractionDetailsField = value; - } - } - - /// The marketplace info of this proposal if it has a corresponding order in - /// Marketplace. This attribute is applicable - /// when:
  • using programmatic guaranteed, using sales - /// management.
  • using programmatic guaranteed, not using sales - /// management.
- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 48)] - public ProposalMarketplaceInfo marketplaceInfo { - get { - return this.marketplaceInfoField; - } - set { - this.marketplaceInfoField = value; - } - } - - /// Errors that occurred during offline processes. If any errors occur during an - /// offline process, such as reserving inventory, this field will be populated with - /// those errors, otherwise this field will be null. This attribute is read-only. - /// - [System.Xml.Serialization.XmlElementAttribute("offlineErrors", Order = 49)] - public OfflineError[] offlineErrors { - get { - return this.offlineErrorsField; - } - set { - this.offlineErrorsField = value; - } - } - - /// Whether errors occured during offline processes. This attribute is read-only. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 50)] - public bool hasOfflineErrors { - get { - return this.hasOfflineErrorsField; - } - set { - this.hasOfflineErrorsField = value; - this.hasOfflineErrorsSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool hasOfflineErrorsSpecified { - get { - return this.hasOfflineErrorsFieldSpecified; - } - set { - this.hasOfflineErrorsFieldSpecified = value; - } - } - - /// The buyer RFP associated with this Proposal, which is optional. - /// This field will be null if the proposal is not initiated from RFP. This attribute is applicable when:
    - ///
  • using programmatic guaranteed, not using sales management.
  • using - /// preferred deals, not using sales management.
- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 51)] - 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. This attribute is applicable when:
    - ///
  • using programmatic guaranteed, not using sales management.
  • using - /// preferred deals, not using sales management.
- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 52)] - 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; - } - } - } - - - /// Describes the Proposal status. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum ProposalStatus { - /// Indicates that the Proposal has just been created or - /// retracted but no approval has been requested yet. - /// - DRAFT = 0, - /// Indicates that a request for approval has been made for the Proposal. - /// - PENDING_APPROVAL = 1, - /// Indicates that the Proposal has been approved and is - /// ready to serve. - /// - APPROVED = 2, - /// Indicates that the Proposal has been rejected in the - /// approval workflow. - /// - REJECTED = 3, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 4, - } - - - /// Describes the Proposal status in terms of pending - /// approvals of active user. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum ProposalApprovalStatus { - /// Indicates that the Proposal is pending on active user's - /// approval. - /// - PENDING = 0, - /// Indicates that active user is the approver, and the related approval action(s) - /// of the Proposal has been performed or not activated yet, - /// or the proposal is retracted. - /// - NON_PENDING = 1, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 2, - } - - - /// Lists all errors associated with workflow validation.

In versions V201502 and - /// earlier, the workflow error message defined by a network administrator that - /// describes how a workflow rule is violated is stored in the #trigger. Beginning in V201505, it is stored in the #errorString.

- ///
- [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class WorkflowValidationError : ApiError { - private WorkflowValidationErrorReason reasonField; - - private bool reasonFieldSpecified; - - /// The error reason represented by an enum. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public WorkflowValidationErrorReason 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.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "WorkflowValidationError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum WorkflowValidationErrorReason { - /// The rule condition validation result triggers a warning. - /// - WARNING = 0, - /// The rule condition validation result triggers an error. - /// - ERROR = 1, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 2, - } - - - /// Lists all errors associated with performing actions within WorkflowAction. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class WorkflowActionError : ApiError { - private WorkflowActionErrorReason reasonField; - - private bool reasonFieldSpecified; - - /// The error reason represented by an enum. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public WorkflowActionErrorReason 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.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "WorkflowActionError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum WorkflowActionErrorReason { - /// The action does not exist or is not applicable to the current state. - /// - NOT_APPLICABLE = 0, - /// Means there's no workflow definition found for the entity. - /// - WORKFLOW_DEFINITION_NOT_FOUND = 1, - /// Means no action is given, when user approve/reject a proposal, the action id - /// list cannot be empty. - /// - EMPTY_ACTION_LIST = 2, - /// Means the user is not an approver of this action. - /// - NOT_ACTION_APPROVER = 3, - /// Means the workflow is already completed. - /// - WORKFLOW_ALREADY_COMPLETED = 4, - /// Means the workflow is already failed. - /// - WORKFLOW_ALREADY_FAILED = 5, - /// Means the workflow is already canceled. - /// - WORKFLOW_ALREADY_CANCELED = 6, - /// Means the action is already completed. - /// - ACTION_COMPLETED = 7, - /// Means the action is already failed. - /// - ACTION_FAILED = 8, - /// Means the action is already canceled. - /// - ACTION_CANCELED = 9, - /// Means the action currently is not active. - /// - ACTION_NOT_ACTIVE = 10, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 11, - } - - - /// Errors associated with programmatic proposal line - /// items. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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 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.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ProposalLineItemProgrammaticError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum ProposalLineItemProgrammaticErrorReason { - /// Programmatic proposal line items only support ProductType#DFP. - /// - 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, - /// 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. For RateType#CPD proposal line - /// items, only 100% is allowed - /// - 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, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 10, - } - - - /// Lists all errors associated with proposal line items. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ProposalLineItemError : ApiError { - private ProposalLineItemErrorReason reasonField; - - private bool reasonFieldSpecified; - - /// 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; - } - } - - /// 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.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ProposalLineItemError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum ProposalLineItemErrorReason { - /// The proposal line item's rate card is not the same as other proposal line items - /// in the proposal. - /// - NOT_SAME_RATE_CARD = 0, - /// The proposal line item's type is not yet supported by Sales Manager. - /// - LINE_ITEM_TYPE_NOT_ALLOWED = 1, - /// The proposal line item's end date time is not after its start date time. - /// - END_DATE_TIME_NOT_AFTER_START_TIME = 2, - /// The proposal line item's end date time is after 1/1/2037. - /// - END_DATE_TIME_TOO_LATE = 3, - /// The proposal line item's start date time is in past. - /// - START_DATE_TIME_IS_IN_PAST = 4, - /// The proposal line item's end date time is in past. - /// - END_DATE_TIME_IS_IN_PAST = 5, - /// Frontloaded delivery rate type is not allowed. - /// - FRONTLOADED_NOT_ALLOWED = 6, - /// Roadblocking to display all creatives is not allowed. - /// - ALL_ROADBLOCK_NOT_ALLOWED = 7, - /// Roadblocking to display all master and companion creative set is not allowed. - /// - CREATIVE_SET_ROADBLOCK_NOT_ALLOWED = 8, - /// Some changes may not be allowed because the related line item has already - /// started. - /// - ALREADY_STARTED = 9, - /// The setting is conflict with product's restriction. - /// - CONFLICT_WITH_PRODUCT = 10, - /// The proposal line item's setting violates the product's built-in targeting - /// compatibility restriction. - /// - VIOLATE_BUILT_IN_TARGETING_COMPATIBILITY_RESTRICTION = 11, - /// The proposal line item's setting violates the product's built-in targeting - /// locked restriction. - /// - VIOLATE_BUILT_IN_TARGETING_LOCKED_RESTRICTION = 12, - /// Cannot target mobile-only targeting criteria. - /// - 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 net rate or net cost must be equal to the gross rate or gross cost - /// multiplied by one minus agency commission. - /// - AGENCY_COMMISSION_MISMATCH = 51, - /// 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, - /// The companion delivery option is not valid for your environment type. - /// - INVALID_COMPANION_DELIVERY_OPTION_FOR_ENVIRONMENT_TYPE = 52, - /// 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 RateCard pricing model for this ProposalLineItem is not the same as the pricing - /// models for the other proposalLineItems or packages in the Proposal. - /// - NOT_SAME_RATE_CARD_PRICING_MODEL = 49, - /// The RateCard workflow for this ProposalLineItem is not the same as the workflows - /// for the other proposalLineItems or packages in the Proposal. - /// - NOT_SAME_RATE_CARD_WORKFLOW = 50, - /// 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, - /// Marketplace RateCard cannot be used with a - /// non-programmatic ProposalLineItem. - /// - MARKETPLACE_RATE_CARD_NOT_ALLOWED = 53, - /// Cannot create ProposalLineItem from a Product if not using sales management. - /// - CANNOT_CREATE_FROM_PRODUCT = 54, - /// 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 value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 35, - } - - - /// Lists all errors associated with proposals. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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 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.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ProposalError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum ProposalErrorReason { - /// Unknown error from ad-server - /// - AD_SERVER_UNKNOWN_ERROR = 0, - /// Ad-server reports an api error for the operation. - /// - AD_SERVER_API_ERROR = 1, - /// Advertiser cannot be updated once the proposal has been reserved. - /// - 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, - /// Proposal#marketplaceInfo fields should - /// not be set for a non-programmatic Proposal. - /// - INVALID_FIELDS_SET_FOR_NON_PROGRAMMATIC_PROPOSAL = 22, - /// 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, - /// Sales management features must be enabled to use non-programmatic Proposal. - /// - NON_PROGRAMMATIC_PROPOSAL_NOT_ALLOWED = 23, - /// New traditional direct proposals are no longer allowed in your network. Contact - /// your DFP administrator for details about your network's transition to DFP - /// Programmatic. - /// - NEW_TRADITIONAL_ONLY_PROPOSAL_NOT_ALLOWED = 26, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 18, - } - - - /// Lists all errors associated with performing actions on Proposal objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ProposalActionError : ApiError { - private ProposalActionErrorReason reasonField; + } - private bool reasonFieldSpecified; + /// 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 string effectiveRootAdUnitId { + get { + return this.effectiveRootAdUnitIdField; + } + set { + this.effectiveRootAdUnitIdField = value; + } + } - /// The error reason represented by an enum. + /// Whether this is a test network. This field is read-only. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public ProposalActionErrorReason reason { + [System.Xml.Serialization.XmlElementAttribute(Order = 8)] + public bool isTest { get { - return this.reasonField; + return this.isTestField; } set { - this.reasonField = value; - this.reasonSpecified = true; + this.isTestField = value; + this.isTestSpecified = 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 isTestSpecified { get { - return this.reasonFieldSpecified; + return this.isTestFieldSpecified; } set { - this.reasonFieldSpecified = value; + this.isTestFieldSpecified = value; } } } - /// The reasons for the target error. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ProposalActionError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum ProposalActionErrorReason { - /// The operation is not applicable to the current state. - /// - NOT_APPLICABLE = 0, - /// The operation cannot be applied because the proposal is archived. - /// - IS_ARCHIVED = 1, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 2, - } - - - /// Lists all errors associated with Package objects. + /// Encapsulates the generic errors thrown when there's an error with user request. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class PackageError : ApiError { - private PackageErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class RequestError : ApiError { + private RequestErrorReason reasonField; private bool reasonFieldSpecified; - /// The error reason represented by an enum. - /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public PackageErrorReason reason { + public RequestErrorReason reason { get { return this.reasonField; } @@ -51612,66 +35952,37 @@ public bool reasonSpecified { } - /// The reasons for the PackageError. - /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "PackageError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum PackageErrorReason { - /// Package cannot be created from an inactive or archived product package. - /// - INVAILD_PRODUCT_PACKAGE = 0, - /// The rate card is inactive. - /// - INACTIVE_RATE_CARD = 1, - /// There is no association between the product package and the rate card. - /// - PRODUCT_PACKAGE_NOT_IN_RATE_CARD = 2, - /// There are no unarchived product package items in this product package. - /// - HAS_NO_UNARCHIVED_PRODUCT_PACKAGE_ITEM = 3, - /// The package's rate card is not the same as other packages or proposal line items - /// in the proposal. - /// - NOT_SAME_RATE_CARD = 4, - /// The RateCard pricing model for this Package is not the same as the pricing models for the other - /// proposalLineItems or packages in the Proposal. - /// - NOT_SAME_RATE_CARD_PRICING_MODEL = 6, - /// The RateCard workflow for this Package is not the same as the workflows for the other proposalLineItems or packages - /// in the Proposal. + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "RequestError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum RequestErrorReason { + /// Error reason is unknown. /// - NOT_SAME_RATE_CARD_WORKFLOW = 7, - /// Package cannot be created in a programmatic proposal. + UNKNOWN = 0, + /// Invalid input. /// - PACKAGES_NOT_ALLOWED_IN_PROGRAMMATIC_PROPOSALS = 8, - /// The value returned if the actual value is not exposed by the requested API - /// version. + INVALID_INPUT = 1, + /// The api version in the request has been discontinued. Please update to the new + /// AdWords API version. /// - UNKNOWN = 5, + UNSUPPORTED_VERSION = 2, } - /// Lists all errors for executing actions on Package objects. + /// List all errors associated with number precisions. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class PackageActionError : ApiError { - private PackageActionErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class PrecisionError : ApiError { + private PrecisionErrorReason reasonField; private bool reasonFieldSpecified; - /// The error reason represented by an enum. - /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public PackageActionErrorReason reason { + public PrecisionErrorReason reason { get { return this.reasonField; } @@ -51696,43 +36007,36 @@ public bool reasonSpecified { } - /// The reasons for the target error. + /// Describes reasons for precision errors. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "PackageActionError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum PackageActionErrorReason { - /// The operation is not applicable because the proposal line items under these - /// packages have already been created. - /// - PROPOSAL_LINE_ITEMS_HAVE_BEEN_CREATED = 0, - /// The operation is not applicable because the containing proposal is not editable. + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "PrecisionError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum PrecisionErrorReason { + /// The lowest N digits of the number must be zero. /// - PROPOSAL_NOT_EDITABLE = 1, + WRONG_PRECISION = 0, /// The value returned if the actual value is not exposed by the requested API /// version. /// - UNKNOWN = 2, + UNKNOWN = 1, } - /// Errors associated with creating or updating programmatic proposals. + /// An error for a network. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class DealError : ApiError { - private DealErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class NetworkError : ApiError { + private NetworkErrorReason reasonField; private bool reasonFieldSpecified; - /// The error reason represented by an enum. - /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public DealErrorReason reason { + public NetworkErrorReason reason { get { return this.reasonField; } @@ -51757,91 +36061,47 @@ public bool reasonSpecified { } - /// The reasons for the target error. + /// Possible reasons for NetworkError /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "DealError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum DealErrorReason { - /// Cannot add new proposal line items to a Proposal when Proposal#isSold - /// is true. - /// - 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. + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "NetworkError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum NetworkErrorReason { + /// The value returned if the actual value is not exposed by the requested API + /// version. /// - CANNOT_GET_PRODUCT = 10, - /// A new version of the Proposal was sent from buyer, cannot - /// execute the requested action before performing DiscardLocalVersionEdits. + UNKNOWN = 0, + /// Multi-currency support is not enabled for this network. This is an Ad Manager + /// 360 feature. /// - 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. + MULTI_CURRENCY_NOT_SUPPORTED = 1, + /// Currency provided is not supported. /// - PROPOSAL_OUT_OF_SYNC_WITH_MARKETPLACE = 15, - /// No Proposal changes were found. + UNSUPPORTED_CURRENCY = 2, + /// The network currency cannot also be specified as a secondary currency. /// - NO_PROPOSAL_CHANGES_FOUND = 12, - /// The value returned if the actual value is not exposed by the requested API - /// version. + NETWORK_CURRENCY_CANNOT_BE_SAME_AS_SECONDARY = 3, + /// The currency cannot be deleted as it is still being used by active rate cards. /// - UNKNOWN = 13, + CANNOT_DELETE_CURRENCY_WITH_ACTIVE_RATE_CARDS = 4, } - /// Lists all errors associated with the billing settings of a proposal or proposal - /// line item. + /// Caused by supplying a value for an email attribute that is not a valid email + /// address. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class BillingError : ApiError { - private BillingErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class InvalidEmailError : ApiError { + private InvalidEmailErrorReason reasonField; private bool reasonFieldSpecified; - /// The error reason represented by an enum. - /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public BillingErrorReason reason { + public InvalidEmailErrorReason reason { get { return this.reasonField; } @@ -51866,62 +36126,39 @@ public bool reasonSpecified { } - /// The reasons for the target error. + /// Describes reasons for an email to be invalid. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "BillingError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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. + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "InvalidEmailError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum InvalidEmailErrorReason { + /// The value is not a valid email address. /// - INVALID_BILLING_BASE = 8, + INVALID_FORMAT = 0, /// The value returned if the actual value is not exposed by the requested API /// version. /// - UNKNOWN = 9, + UNKNOWN = 1, } - /// Lists all errors associated with the availability of billing settings based on - /// proposal network settings. + /// Lists all errors associated with ExchangeRate + /// objects. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class AvailableBillingError : ApiError { - private AvailableBillingErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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 AvailableBillingErrorReason reason { + public ExchangeRateErrorReason reason { get { return this.reasonField; } @@ -51946,1969 +36183,1672 @@ public bool reasonSpecified { } - /// The error reason represented by an enum. + /// The reasons for the target error. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AvailableBillingError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum AvailableBillingErrorReason { - /// The billing source provided is not available in proposal network settings. + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ExchangeRateError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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. /// - BILLING_SOURCE_IS_NOT_AVAILABLE = 0, - /// The billing schedule provided is not available in proposal network settings. + 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. /// - BILLING_SCHEDULE_IS_NOT_AVAILABLE = 1, - /// The billing cap provided is not available in proposal network settings. + 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. /// - BILLING_CAP_IS_NOT_AVAILABLE = 2, + EXCHANGE_RATE_NOT_FOUND = 4, /// The value returned if the actual value is not exposed by the requested API /// version. /// - UNKNOWN = 3, + UNKNOWN = 5, } [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", ConfigurationName = "Google.Api.Ads.AdManager.v201808.ProposalServiceInterface")] - public interface ProposalServiceInterface + [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", ConfigurationName = "Google.Api.Ads.AdManager.v201908.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.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201908.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); + Wrappers.NetworkService.getAllNetworksResponse getAllNetworks(Wrappers.NetworkService.getAllNetworksRequest request); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task createProposalsAsync(Wrappers.ProposalService.createProposalsRequest request); + System.Threading.Tasks.Task getAllNetworksAsync(Wrappers.NetworkService.getAllNetworksRequest request); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201908.ApiException), Action = "", Name = "ApiExceptionFault")] [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v201808.MarketplaceCommentPage getMarketplaceCommentsByStatement(Google.Api.Ads.AdManager.v201808.Statement filterStatement); + Google.Api.Ads.AdManager.v201908.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.v201908.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v201908.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.v201908.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v201908.Network updateNetwork(Google.Api.Ads.AdManager.v201908.Network network); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task updateNetworkAsync(Google.Api.Ads.AdManager.v201908.Network network); + } + + + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + public interface NetworkServiceInterfaceChannel : Google.Api.Ads.AdManager.v201908.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.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() { + } + + /// Creates a new instance of the class. + /// + public NetworkService(string endpointConfigurationName) + : base(endpointConfigurationName) { + } + + /// Creates a new instance of the class. + /// + public NetworkService(string endpointConfigurationName, string remoteAddress) + : base(endpointConfigurationName, remoteAddress) { + } + + /// Creates a new instance of the class. + /// + public NetworkService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) + : base(endpointConfigurationName, remoteAddress) { + } + + /// Creates a new instance of the class. + /// + public NetworkService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) + : base(binding, remoteAddress) { + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + Wrappers.NetworkService.getAllNetworksResponse Google.Api.Ads.AdManager.v201908.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.

+ ///
the networks to which the current login has access + public virtual Google.Api.Ads.AdManager.v201908.Network[] getAllNetworks() { + Wrappers.NetworkService.getAllNetworksRequest inValue = new Wrappers.NetworkService.getAllNetworksRequest(); + Wrappers.NetworkService.getAllNetworksResponse retVal = ((Google.Api.Ads.AdManager.v201908.NetworkServiceInterface)(this)).getAllNetworks(inValue); + return retVal.rval; + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201908.NetworkServiceInterface.getAllNetworksAsync(Wrappers.NetworkService.getAllNetworksRequest request) { + return base.Channel.getAllNetworksAsync(request); + } + + 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.v201908.NetworkServiceInterface)(this)).getAllNetworksAsync(inValue)).Result.rval); + } + + /// Returns the current network for which requests are being made. + /// the network for which the user is currently making the + /// request + public virtual Google.Api.Ads.AdManager.v201908.Network getCurrentNetwork() { + return base.Channel.getCurrentNetwork(); + } + + public virtual System.Threading.Tasks.Task getCurrentNetworkAsync() { + return base.Channel.getCurrentNetworkAsync(); + } + + /// 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.


+ ///
+ public virtual Google.Api.Ads.AdManager.v201908.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. + /// the network that needs to be updated + /// the updated network + public virtual Google.Api.Ads.AdManager.v201908.Network updateNetwork(Google.Api.Ads.AdManager.v201908.Network network) { + return base.Channel.updateNetwork(network); + } + + public virtual System.Threading.Tasks.Task updateNetworkAsync(Google.Api.Ads.AdManager.v201908.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/v201908", IsWrapped = true)] + public partial class createOrdersRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("orders")] + public Google.Api.Ads.AdManager.v201908.Order[] orders; + + /// Creates a new instance of the class. + /// + public createOrdersRequest() { + } + + /// Creates a new instance of the class. + /// + public createOrdersRequest(Google.Api.Ads.AdManager.v201908.Order[] orders) { + this.orders = orders; + } + } + + + [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/v201908", IsWrapped = true)] + public partial class createOrdersResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("rval")] + public Google.Api.Ads.AdManager.v201908.Order[] rval; + + /// Creates a new instance of the + /// class. + public createOrdersResponse() { + } + + /// Creates a new instance of the + /// class. + public createOrdersResponse(Google.Api.Ads.AdManager.v201908.Order[] 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 = "updateOrders", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201908", IsWrapped = true)] + public partial class updateOrdersRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("orders")] + public Google.Api.Ads.AdManager.v201908.Order[] orders; + + /// Creates a new instance of the class. + /// + public updateOrdersRequest() { + } + + /// Creates a new instance of the class. + /// + public updateOrdersRequest(Google.Api.Ads.AdManager.v201908.Order[] orders) { + this.orders = orders; + } + } + + + [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/v201908", IsWrapped = true)] + public partial class updateOrdersResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("rval")] + public Google.Api.Ads.AdManager.v201908.Order[] rval; + + /// Creates a new instance of the + /// class. + public updateOrdersResponse() { + } + + /// Creates a new instance of the + /// class. + public updateOrdersResponse(Google.Api.Ads.AdManager.v201908.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. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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; - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getMarketplaceCommentsByStatementAsync(Google.Api.Ads.AdManager.v201808.Statement filterStatement); + private string notesField; - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v201808.ProposalPage getProposalsByStatement(Google.Api.Ads.AdManager.v201808.Statement filterStatement); + private int externalOrderIdField; - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getProposalsByStatementAsync(Google.Api.Ads.AdManager.v201808.Statement filterStatement); + private bool externalOrderIdFieldSpecified; - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v201808.UpdateResult performProposalAction(Google.Api.Ads.AdManager.v201808.ProposalAction proposalAction, Google.Api.Ads.AdManager.v201808.Statement filterStatement); + private string poNumberField; - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task performProposalActionAsync(Google.Api.Ads.AdManager.v201808.ProposalAction proposalAction, Google.Api.Ads.AdManager.v201808.Statement filterStatement); + private string currencyCodeField; - // 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.v201808.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); + private long advertiserIdField; - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task updateProposalsAsync(Wrappers.ProposalService.updateProposalsRequest request); - } + private bool advertiserIdFieldSpecified; + private long[] advertiserContactIdsField; - /// Captures a page of MarketplaceComment objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class MarketplaceCommentPage { - private int startIndexField; + private long agencyIdField; - private bool startIndexFieldSpecified; + private bool agencyIdFieldSpecified; - private MarketplaceComment[] resultsField; + private long[] agencyContactIdsField; - /// The absolute index in the total result set on which this page begins. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public int startIndex { - get { - return this.startIndexField; - } - set { - this.startIndexField = value; - this.startIndexSpecified = true; - } - } + private long creatorIdField; - /// 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; - } - } + private bool creatorIdFieldSpecified; - /// The collection of results contained within this page. - /// - [System.Xml.Serialization.XmlElementAttribute("results", Order = 1)] - public MarketplaceComment[] results { - get { - return this.resultsField; - } - set { - this.resultsField = value; - } - } - } + private long traffickerIdField; + private bool traffickerIdFieldSpecified; - /// A comment associated with a programmatic Proposal that - /// has been sent to Marketplace. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class MarketplaceComment { - private long proposalIdField; + private long[] secondaryTraffickerIdsField; - private bool proposalIdFieldSpecified; + private long salespersonIdField; - private string commentField; + private bool salespersonIdFieldSpecified; - private DateTime creationTimeField; + private long[] secondarySalespersonIdsField; - private bool createdBySellerField; + private long totalImpressionsDeliveredField; - private bool createdBySellerFieldSpecified; + private bool totalImpressionsDeliveredFieldSpecified; - /// The unique ID of the Proposal the comment belongs to. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public long proposalId { - get { - return this.proposalIdField; - } - set { - this.proposalIdField = value; - this.proposalIdSpecified = true; - } - } + private long totalClicksDeliveredField; - /// 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; - } - } + private bool totalClicksDeliveredFieldSpecified; - /// The comment made on the Proposal. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public string comment { - get { - return this.commentField; - } - set { - this.commentField = value; - } - } + private long totalViewableImpressionsDeliveredField; - /// The creation DateTime of this . - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public DateTime creationTime { - get { - return this.creationTimeField; - } - set { - this.creationTimeField = value; - } - } + private bool totalViewableImpressionsDeliveredFieldSpecified; - /// Indicates whether the MarketplaceComment was created by seller. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public bool createdBySeller { - get { - return this.createdBySellerField; - } - set { - this.createdBySellerField = value; - this.createdBySellerSpecified = true; - } - } + private Money totalBudgetField; - /// 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; - } - } - } + private AppliedLabel[] appliedLabelsField; + private AppliedLabel[] effectiveAppliedLabelsField; - /// Captures a page of Proposal objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ProposalPage { - private int totalResultSetSizeField; + private string lastModifiedByAppField; - private bool totalResultSetSizeFieldSpecified; + private bool isProgrammaticField; - private int startIndexField; + private bool isProgrammaticFieldSpecified; - private bool startIndexFieldSpecified; + private long[] appliedTeamIdsField; - private Proposal[] resultsField; + private DateTime lastModifiedDateTimeField; - /// The size of the total result set to which this page belongs. + private BaseCustomFieldValue[] customFieldValuesField; + + /// The unique ID of the Order. This value is readonly and is assigned + /// 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. + /// 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 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 { + public string name { get { - return this.startIndexFieldSpecified; + return this.nameField; } set { - this.startIndexFieldSpecified = value; + this.nameField = value; } } - /// The collection of proposals contained within this page. + /// 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("results", Order = 2)] - public Proposal[] results { + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public DateTime startDateTime { get { - return this.resultsField; + return this.startDateTimeField; } set { - this.resultsField = value; + this.startDateTimeField = value; } } - } - - - /// 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(SubmitProposalsForArchival))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(SubmitProposalsForApproval))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(SubmitProposalsForApprovalBypassValidation))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(RetractProposals))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ReserveProposals))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(RequestBuyerReview))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(RequestBuyerAcceptance))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(EditProposalsForNegotiation))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(DiscardLocalVersionEdits))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(CancelRetractionForProposals))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(BypassProposalWorkflowRules))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ArchiveProposals))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public abstract partial class ProposalAction { - } - - - /// The action to update a finalized Marketplace Order with the - /// seller's data. This action is only applicable for programmatic proposals. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class UpdateOrderWithSellerData : ProposalAction { - } - - - /// The action used for unarchiving Proposal objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class UnarchiveProposals : ProposalAction { - } - - - /// The action for marking all negotiations on the Proposal - /// as terminated in Marketplace. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class TerminateNegotiations : ProposalAction { - } - - - /// The action used for submitting Proposal objects for - /// archival. It will start a workflow to request approvals in order to proceed with - /// archival. Using SubmitProposalsForArchival is mandatory - /// for proposals when they are sold, but not completed. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class SubmitProposalsForArchival : ProposalAction { - } - - - /// The action used for submitting Proposal objects for - /// approval. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class SubmitProposalsForApproval : ProposalAction { - } - - - /// The action used for submitting Proposal objects for - /// approval and bypassing workflow validation. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class SubmitProposalsForApprovalBypassValidation : ProposalAction { - } - - - /// The action used for retracting Proposal objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class RetractProposals : ProposalAction { - private RetractionDetails retractionDetailsField; - /// Details describing why the Proposal is being retracted. + /// 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 = 0)] - public RetractionDetails retractionDetails { + [System.Xml.Serialization.XmlElementAttribute(Order = 3)] + public DateTime endDateTime { get { - return this.retractionDetailsField; + return this.endDateTimeField; } set { - this.retractionDetailsField = value; + this.endDateTimeField = value; } } - } - - /// The action to reserve inventory for Proposal objects. It - /// does not allow overbooking unless #allowOverbook is - /// set to true. This action is only applicable for programmatic - /// proposals not using sales management. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ReserveProposals : ProposalAction { - private bool allowOverbookField; - - private bool allowOverbookFieldSpecified; - - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public bool allowOverbook { + /// 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 { get { - return this.allowOverbookField; + return this.unlimitedEndDateTimeField; } set { - this.allowOverbookField = value; - this.allowOverbookSpecified = true; + 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 allowOverbookSpecified { + public bool unlimitedEndDateTimeSpecified { get { - return this.allowOverbookFieldSpecified; + return this.unlimitedEndDateTimeFieldSpecified; } set { - this.allowOverbookFieldSpecified = value; - } - } - } - - - /// The action used to request buyer review for the Proposal. - /// This action is only applicable for programmatic Proposal. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class RequestBuyerReview : ProposalAction { - } - - - /// The action used to request acceptance from the buyer for the Proposal through Marketplace. This action is only applicable - /// for programmatic proposals. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class RequestBuyerAcceptance : ProposalAction { - } - - - /// Opens the non-free-editable 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 true. 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.

This action is only applicable for programmatic - /// proposals.

- ///
- [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class EditProposalsForNegotiation : ProposalAction { - } - - - /// The action for reverting the local Proposal modifications - /// to reflect the latest terms and private data in Marketplace. This action is only - /// applicable for programmatic proposals. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class DiscardLocalVersionEdits : ProposalAction { - } - - - /// The action used for canceling retraction for Proposal - /// objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class CancelRetractionForProposals : ProposalAction { - } - - - /// The action used to bypass all rules associated with WorkflowRequests for Proposal - /// objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class BypassProposalWorkflowRules : ProposalAction { - } - - - /// The action used for archiving Proposal objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ArchiveProposals : ProposalAction { - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public interface ProposalServiceInterfaceChannel : Google.Api.Ads.AdManager.v201808.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. - /// - public ProposalService() { - } - - /// Creates a new instance of the class. - /// - public ProposalService(string endpointConfigurationName) - : base(endpointConfigurationName) { + this.unlimitedEndDateTimeFieldSpecified = value; + } } - /// Creates a new instance of the class. + /// The status of the Order. This attribute is read-only. /// - public ProposalService(string endpointConfigurationName, string remoteAddress) - : base(endpointConfigurationName, remoteAddress) { + [System.Xml.Serialization.XmlElementAttribute(Order = 5)] + public OrderStatus status { + get { + return this.statusField; + } + set { + this.statusField = value; + this.statusSpecified = true; + } } - /// Creates a new instance of the class. - /// - public ProposalService(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 statusSpecified { + get { + return this.statusFieldSpecified; + } + set { + this.statusFieldSpecified = value; + } } - /// Creates a new instance of the class. + /// The archival status of the Order. This attribute is readonly. /// - 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.v201808.ProposalServiceInterface.createProposals(Wrappers.ProposalService.createProposalsRequest request) { - return base.Channel.createProposals(request); + [System.Xml.Serialization.XmlElementAttribute(Order = 6)] + public bool isArchived { + get { + return this.isArchivedField; + } + set { + this.isArchivedField = value; + this.isArchivedSpecified = true; + } } - /// Creates new Proposal objects. For each proposal, the - /// following fields are required: - /// the proposals to create - /// the created proposals with their IDs filled in - public virtual Google.Api.Ads.AdManager.v201808.Proposal[] createProposals(Google.Api.Ads.AdManager.v201808.Proposal[] proposals) { - Wrappers.ProposalService.createProposalsRequest inValue = new Wrappers.ProposalService.createProposalsRequest(); - inValue.proposals = proposals; - Wrappers.ProposalService.createProposalsResponse retVal = ((Google.Api.Ads.AdManager.v201808.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 isArchivedSpecified { + get { + return this.isArchivedFieldSpecified; + } + set { + this.isArchivedFieldSpecified = value; + } } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201808.ProposalServiceInterface.createProposalsAsync(Wrappers.ProposalService.createProposalsRequest request) { - return base.Channel.createProposalsAsync(request); + /// 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; + } } - public virtual System.Threading.Tasks.Task createProposalsAsync(Google.Api.Ads.AdManager.v201808.Proposal[] proposals) { - Wrappers.ProposalService.createProposalsRequest inValue = new Wrappers.ProposalService.createProposalsRequest(); - inValue.proposals = proposals; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201808.ProposalServiceInterface)(this)).createProposalsAsync(inValue)).Result.rval); + /// 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 { + get { + return this.externalOrderIdField; + } + set { + this.externalOrderIdField = value; + this.externalOrderIdSpecified = true; + } } - /// 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.

- ///
a Publisher Query Language statement used to - /// filter a set of marketplace comments - /// the marketplace comments that match the given filter - public virtual Google.Api.Ads.AdManager.v201808.MarketplaceCommentPage getMarketplaceCommentsByStatement(Google.Api.Ads.AdManager.v201808.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 externalOrderIdSpecified { + get { + return this.externalOrderIdFieldSpecified; + } + set { + this.externalOrderIdFieldSpecified = value; + } } - public virtual System.Threading.Tasks.Task getMarketplaceCommentsByStatementAsync(Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.getMarketplaceCommentsByStatementAsync(filterStatement); + /// 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; + } } - /// 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
thirdPartyAdServerId
Only - /// applicable for non-programmatic proposals using sales management
Proposal#thirdPartyAdServerId
customThirdPartyAdServerName
Only applicable for non-programmatic proposals using sales - /// management
Proposal#customThirdPartyAdServerName
hasOfflineErrors Proposal#hasOfflineErrors
isProgrammatic Proposal#isProgrammatic
negotiationStatus
Only applicable for - /// programmatic proposals
ProposalMarketplaceInfo#negotiationStatus
- ///
a Publisher Query Language statement used to - /// filter a set of proposals - /// the proposals that match the given filter - public virtual Google.Api.Ads.AdManager.v201808.ProposalPage getProposalsByStatement(Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.getProposalsByStatement(filterStatement); + /// 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; + } } - public virtual System.Threading.Tasks.Task getProposalsByStatementAsync(Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.getProposalsByStatementAsync(filterStatement); + /// 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(Order = 11)] + public long advertiserId { + get { + return this.advertiserIdField; + } + set { + this.advertiserIdField = value; + this.advertiserIdSpecified = true; + } } - /// Performs actions on Proposal objects that match the given - /// Statement#query. The following fields are also - /// required when submitting proposals for approval: - /// the action to perform - /// a Publisher Query Language statement used to - /// filter a set of proposals - /// the result of the action performed - public virtual Google.Api.Ads.AdManager.v201808.UpdateResult performProposalAction(Google.Api.Ads.AdManager.v201808.ProposalAction proposalAction, Google.Api.Ads.AdManager.v201808.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 advertiserIdSpecified { + get { + return this.advertiserIdFieldSpecified; + } + set { + this.advertiserIdFieldSpecified = value; + } } - public virtual System.Threading.Tasks.Task performProposalActionAsync(Google.Api.Ads.AdManager.v201808.ProposalAction proposalAction, Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.performProposalActionAsync(proposalAction, filterStatement); + /// List of IDs for advertiser contacts of the order. + /// + [System.Xml.Serialization.XmlElementAttribute("advertiserContactIds", Order = 12)] + public long[] advertiserContactIds { + get { + return this.advertiserContactIdsField; + } + set { + this.advertiserContactIdsField = value; + } } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.ProposalService.updateProposalsResponse Google.Api.Ads.AdManager.v201808.ProposalServiceInterface.updateProposals(Wrappers.ProposalService.updateProposalsRequest request) { - return base.Channel.updateProposals(request); + /// 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 agencyId { + get { + return this.agencyIdField; + } + set { + this.agencyIdField = value; + this.agencyIdSpecified = true; + } } - /// Updates the specified Proposal objects. - /// the proposals to update - /// the updated proposals - public virtual Google.Api.Ads.AdManager.v201808.Proposal[] updateProposals(Google.Api.Ads.AdManager.v201808.Proposal[] proposals) { - Wrappers.ProposalService.updateProposalsRequest inValue = new Wrappers.ProposalService.updateProposalsRequest(); - inValue.proposals = proposals; - Wrappers.ProposalService.updateProposalsResponse retVal = ((Google.Api.Ads.AdManager.v201808.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 agencyIdSpecified { + get { + return this.agencyIdFieldSpecified; + } + set { + this.agencyIdFieldSpecified = value; + } } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201808.ProposalServiceInterface.updateProposalsAsync(Wrappers.ProposalService.updateProposalsRequest request) { - return base.Channel.updateProposalsAsync(request); + /// List of IDs for agency contacts of the order. + /// + [System.Xml.Serialization.XmlElementAttribute("agencyContactIds", Order = 14)] + public long[] agencyContactIds { + get { + return this.agencyContactIdsField; + } + set { + this.agencyContactIdsField = value; + } } - public virtual System.Threading.Tasks.Task updateProposalsAsync(Google.Api.Ads.AdManager.v201808.Proposal[] proposals) { - Wrappers.ProposalService.updateProposalsRequest inValue = new Wrappers.ProposalService.updateProposalsRequest(); - inValue.proposals = proposals; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201808.ProposalServiceInterface)(this)).updateProposalsAsync(inValue)).Result.rval); + /// 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 long creatorId { + get { + return this.creatorIdField; + } + set { + this.creatorIdField = value; + this.creatorIdSpecified = true; + } } - } - 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 = "createProposalLineItems", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201808", IsWrapped = true)] - public partial class createProposalLineItemsRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("proposalLineItems")] - public Google.Api.Ads.AdManager.v201808.ProposalLineItem[] proposalLineItems; - /// Creates a new instance of the class. - public createProposalLineItemsRequest() { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool creatorIdSpecified { + get { + return this.creatorIdFieldSpecified; } - - /// Creates a new instance of the class. - public createProposalLineItemsRequest(Google.Api.Ads.AdManager.v201808.ProposalLineItem[] proposalLineItems) { - this.proposalLineItems = proposalLineItems; + set { + this.creatorIdFieldSpecified = 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 = "createProposalLineItemsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201808", IsWrapped = true)] - public partial class createProposalLineItemsResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v201808.ProposalLineItem[] rval; - - /// Creates a new instance of the class. - public createProposalLineItemsResponse() { + /// 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 long traffickerId { + get { + return this.traffickerIdField; } - - /// Creates a new instance of the class. - public createProposalLineItemsResponse(Google.Api.Ads.AdManager.v201808.ProposalLineItem[] rval) { - this.rval = rval; + set { + this.traffickerIdField = value; + this.traffickerIdSpecified = 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 = "updateProposalLineItems", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201808", IsWrapped = true)] - public partial class updateProposalLineItemsRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("proposalLineItems")] - public Google.Api.Ads.AdManager.v201808.ProposalLineItem[] proposalLineItems; - - /// Creates a new instance of the class. - public updateProposalLineItemsRequest() { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool traffickerIdSpecified { + get { + return this.traffickerIdFieldSpecified; } - - /// Creates a new instance of the class. - public updateProposalLineItemsRequest(Google.Api.Ads.AdManager.v201808.ProposalLineItem[] proposalLineItems) { - this.proposalLineItems = proposalLineItems; + set { + this.traffickerIdFieldSpecified = 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 = "updateProposalLineItemsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201808", IsWrapped = true)] - public partial class updateProposalLineItemsResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v201808.ProposalLineItem[] rval; - - /// Creates a new instance of the class. - public updateProposalLineItemsResponse() { + /// 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; } - - /// Creates a new instance of the class. - public updateProposalLineItemsResponse(Google.Api.Ads.AdManager.v201808.ProposalLineItem[] rval) { - this.rval = rval; + set { + this.secondaryTraffickerIdsField = value; } } - } - /// Lists all errors for executing operations on proposal line items. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ProposalLineItemActionError : ApiError { - private ProposalLineItemActionErrorReason reasonField; - private bool reasonFieldSpecified; - - /// The error reason represented by an enum. + /// The unique ID of the User responsible for the sales of the + /// Order. This value is optional. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public ProposalLineItemActionErrorReason reason { + [System.Xml.Serialization.XmlElementAttribute(Order = 18)] + public long salespersonId { get { - return this.reasonField; + return this.salespersonIdField; } set { - this.reasonField = value; - this.reasonSpecified = true; + this.salespersonIdField = value; + this.salespersonIdSpecified = 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 salespersonIdSpecified { get { - return this.reasonFieldSpecified; + return this.salespersonIdFieldSpecified; } set { - this.reasonFieldSpecified = value; + this.salespersonIdFieldSpecified = value; } } - } - - - /// The reasons for the target error. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ProposalLineItemActionError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum ProposalLineItemActionErrorReason { - /// The operation is not applicable to the current state. - /// - 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, - /// 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/v201808", ConfigurationName = "Google.Api.Ads.AdManager.v201808.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.v201808.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.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v201808.ProposalLineItemPage getProposalLineItemsByStatement(Google.Api.Ads.AdManager.v201808.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getProposalLineItemsByStatementAsync(Google.Api.Ads.AdManager.v201808.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v201808.UpdateResult performProposalLineItemAction(Google.Api.Ads.AdManager.v201808.ProposalLineItemAction proposalLineItemAction, Google.Api.Ads.AdManager.v201808.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task performProposalLineItemActionAsync(Google.Api.Ads.AdManager.v201808.ProposalLineItemAction proposalLineItemAction, Google.Api.Ads.AdManager.v201808.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.v201808.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.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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. + /// The IDs of the secondary salespeople associated with the order. This value is + /// optional. /// - [System.Xml.Serialization.XmlElementAttribute("results", Order = 0)] - public ProposalLineItem[] results { + [System.Xml.Serialization.XmlElementAttribute("secondarySalespersonIds", Order = 19)] + public long[] secondarySalespersonIds { get { - return this.resultsField; + return this.secondarySalespersonIdsField; } set { - this.resultsField = value; + this.secondarySalespersonIdsField = value; } } - /// The absolute index in the total result set on which this page begins. + /// Total impressions delivered for all line items of this . This value + /// is read-only and is assigned by Google. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public int startIndex { + [System.Xml.Serialization.XmlElementAttribute(Order = 20)] + public long totalImpressionsDelivered { get { - return this.startIndexField; + return this.totalImpressionsDeliveredField; } set { - this.startIndexField = value; - this.startIndexSpecified = true; + this.totalImpressionsDeliveredField = value; + this.totalImpressionsDeliveredSpecified = 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 totalImpressionsDeliveredSpecified { get { - return this.startIndexFieldSpecified; + return this.totalImpressionsDeliveredFieldSpecified; } set { - this.startIndexFieldSpecified = value; + this.totalImpressionsDeliveredFieldSpecified = value; } } - /// The size of the total result set to which this page belongs. + /// 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 = 2)] - public int totalResultSetSize { + [System.Xml.Serialization.XmlElementAttribute(Order = 21)] + public long totalClicksDelivered { get { - return this.totalResultSetSizeField; + return this.totalClicksDeliveredField; } set { - this.totalResultSetSizeField = value; - this.totalResultSetSizeSpecified = 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 totalResultSetSizeSpecified { + public bool totalClicksDeliveredSpecified { get { - return this.totalResultSetSizeFieldSpecified; + return this.totalClicksDeliveredFieldSpecified; } set { - this.totalResultSetSizeFieldSpecified = value; + this.totalClicksDeliveredFieldSpecified = value; } } - } - - - /// Represents the actions that can be performed on ProposalLineItem objects. - /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(UnlinkProposalLineItems))] - [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.Xml.Serialization.XmlIncludeAttribute(typeof(ActualizeProposalLineItems))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public abstract partial class ProposalLineItemAction { - } - - - /// The action used for unlinking ProposalLineItem - /// objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class UnlinkProposalLineItems : ProposalLineItemAction { - } - - - /// The action used for unarchiving ProposalLineItem - /// objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class UnarchiveProposalLineItems : ProposalLineItemAction { - } - - - /// The action used for resuming ProposalLineItem - /// objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ReserveProposalLineItems : ProposalLineItemAction { - private bool allowOverbookField; - - private bool allowOverbookFieldSpecified; - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public bool allowOverbook { + /// 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.allowOverbookField; + return this.totalViewableImpressionsDeliveredField; } set { - this.allowOverbookField = value; - this.allowOverbookSpecified = 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 allowOverbookSpecified { + public bool totalViewableImpressionsDeliveredSpecified { get { - return this.allowOverbookFieldSpecified; + return this.totalViewableImpressionsDeliveredFieldSpecified; } set { - this.allowOverbookFieldSpecified = value; + this.totalViewableImpressionsDeliveredFieldSpecified = value; } } - } - - - /// The action used for releasing inventory for ProposalLineItem objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ReleaseProposalLineItems : ProposalLineItemAction { - } - - - /// The action used for pausing ProposalLineItem - /// objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class PauseProposalLineItems : ProposalLineItemAction { - } - - - /// The action used for archiving ProposalLineItem - /// objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ArchiveProposalLineItems : ProposalLineItemAction { - } - - - /// The action used for actualizing ProposalLineItem - /// objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ActualizeProposalLineItems : ProposalLineItemAction { - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public interface ProposalLineItemServiceInterfaceChannel : Google.Api.Ads.AdManager.v201808.ProposalLineItemServiceInterface, System.ServiceModel.IClientChannel - { - } - - - /// Provides methods for creating, updating and retrieving ProposalLineItem objects.

To use this service, - /// you need to have the new sales management solution enabled on your network. If - /// you do not see a "Sales" tab in DoubleClick - /// for Publishers (DFP), you will not be able to use this service.

- ///
- [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.createProposalLineItemsResponse Google.Api.Ads.AdManager.v201808.ProposalLineItemServiceInterface.createProposalLineItems(Wrappers.ProposalLineItemService.createProposalLineItemsRequest request) { - return base.Channel.createProposalLineItems(request); - } - - /// Creates new ProposalLineItem objects. - /// the proposal line items to create - /// the created proposal line items with their IDs filled in - public virtual Google.Api.Ads.AdManager.v201808.ProposalLineItem[] createProposalLineItems(Google.Api.Ads.AdManager.v201808.ProposalLineItem[] proposalLineItems) { - Wrappers.ProposalLineItemService.createProposalLineItemsRequest inValue = new Wrappers.ProposalLineItemService.createProposalLineItemsRequest(); - inValue.proposalLineItems = proposalLineItems; - Wrappers.ProposalLineItemService.createProposalLineItemsResponse retVal = ((Google.Api.Ads.AdManager.v201808.ProposalLineItemServiceInterface)(this)).createProposalLineItems(inValue); - return retVal.rval; - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201808.ProposalLineItemServiceInterface.createProposalLineItemsAsync(Wrappers.ProposalLineItemService.createProposalLineItemsRequest request) { - return base.Channel.createProposalLineItemsAsync(request); - } - - public virtual System.Threading.Tasks.Task createProposalLineItemsAsync(Google.Api.Ads.AdManager.v201808.ProposalLineItem[] proposalLineItems) { - Wrappers.ProposalLineItemService.createProposalLineItemsRequest inValue = new Wrappers.ProposalLineItemService.createProposalLineItemsRequest(); - inValue.proposalLineItems = proposalLineItems; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201808.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
useThirdPartyAdServerFromProposal
Only applicable for non-programmatic proposal line items - /// using sales management
ProposalLineItem#useThirdPartyAdServerFromProposal
thirdPartyAdServerId
Only - /// applicable for non-programmatic proposal line items using sales management
- ///
ProposalLineItem#thirdPartyAdServerId
customThirdPartyAdServerName
Only applicable for non-programmatic proposal line items - /// using sales management
ProposalLineItem#customThirdPartyAdServerName
isProgrammatic ProposalLineItem#isProgrammatic
- ///
a Publisher Query Language statement used to - /// filter a set of proposal line items - /// the proposal line items that match the given filter - public virtual Google.Api.Ads.AdManager.v201808.ProposalLineItemPage getProposalLineItemsByStatement(Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.getProposalLineItemsByStatement(filterStatement); + /// 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; + } + set { + this.totalBudgetField = value; + } } - public virtual System.Threading.Tasks.Task getProposalLineItemsByStatementAsync(Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.getProposalLineItemsByStatementAsync(filterStatement); + /// The set of labels applied directly to this order. + /// + [System.Xml.Serialization.XmlElementAttribute("appliedLabels", Order = 24)] + public AppliedLabel[] appliedLabels { + get { + return this.appliedLabelsField; + } + set { + this.appliedLabelsField = value; + } } - /// Performs actions on ProposalLineItem objects that - /// match the given Statement#query. - /// the action to perform - /// a Publisher Query Language statement used to - /// filter a set of proposal line items - /// the result of the action performed - public virtual Google.Api.Ads.AdManager.v201808.UpdateResult performProposalLineItemAction(Google.Api.Ads.AdManager.v201808.ProposalLineItemAction proposalLineItemAction, Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.performProposalLineItemAction(proposalLineItemAction, filterStatement); + /// 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; + } + set { + this.effectiveAppliedLabelsField = value; + } } - public virtual System.Threading.Tasks.Task performProposalLineItemActionAsync(Google.Api.Ads.AdManager.v201808.ProposalLineItemAction proposalLineItemAction, Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.performProposalLineItemActionAsync(proposalLineItemAction, filterStatement); + /// 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; + } + set { + this.lastModifiedByAppField = value; + } } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.ProposalLineItemService.updateProposalLineItemsResponse Google.Api.Ads.AdManager.v201808.ProposalLineItemServiceInterface.updateProposalLineItems(Wrappers.ProposalLineItemService.updateProposalLineItemsRequest request) { - return base.Channel.updateProposalLineItems(request); + /// 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 isProgrammatic { + get { + return this.isProgrammaticField; + } + set { + this.isProgrammaticField = value; + this.isProgrammaticSpecified = true; + } } - /// Updates the specified ProposalLineItem objects. - /// the proposal line items to update - /// the updated proposal line items - public virtual Google.Api.Ads.AdManager.v201808.ProposalLineItem[] updateProposalLineItems(Google.Api.Ads.AdManager.v201808.ProposalLineItem[] proposalLineItems) { - Wrappers.ProposalLineItemService.updateProposalLineItemsRequest inValue = new Wrappers.ProposalLineItemService.updateProposalLineItemsRequest(); - inValue.proposalLineItems = proposalLineItems; - Wrappers.ProposalLineItemService.updateProposalLineItemsResponse retVal = ((Google.Api.Ads.AdManager.v201808.ProposalLineItemServiceInterface)(this)).updateProposalLineItems(inValue); - return retVal.rval; + /// 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; + } } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201808.ProposalLineItemServiceInterface.updateProposalLineItemsAsync(Wrappers.ProposalLineItemService.updateProposalLineItemsRequest request) { - return base.Channel.updateProposalLineItemsAsync(request); + /// The IDs of all teams that this order is on directly. + /// + [System.Xml.Serialization.XmlElementAttribute("appliedTeamIds", Order = 28)] + public long[] appliedTeamIds { + get { + return this.appliedTeamIdsField; + } + set { + this.appliedTeamIdsField = value; + } } - public virtual System.Threading.Tasks.Task updateProposalLineItemsAsync(Google.Api.Ads.AdManager.v201808.ProposalLineItem[] proposalLineItems) { - Wrappers.ProposalLineItemService.updateProposalLineItemsRequest inValue = new Wrappers.ProposalLineItemService.updateProposalLineItemsRequest(); - inValue.proposalLineItems = proposalLineItems; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201808.ProposalLineItemServiceInterface)(this)).updateProposalLineItemsAsync(inValue)).Result.rval); + /// The date and time this order was last modified. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 29)] + public DateTime lastModifiedDateTime { + get { + return this.lastModifiedDateTimeField; + } + set { + this.lastModifiedDateTimeField = value; + } } - } - namespace Wrappers.PublisherQueryLanguageService - { - } - /// Each Row object represents data about one entity in a ResultSet. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class Row { - private Value[] valuesField; - /// Represents a collection of values belonging to one entity. + /// The values of the custom fields associated with this order. /// - [System.Xml.Serialization.XmlElementAttribute("values", Order = 0)] - public Value[] values { + [System.Xml.Serialization.XmlElementAttribute("customFieldValues", Order = 30)] + public BaseCustomFieldValue[] customFieldValues { get { - return this.valuesField; + return this.customFieldValuesField; } set { - this.valuesField = value; + this.customFieldValuesField = 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.

+ /// Describes the order statuses. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class TargetingValue : ObjectValue { - private Targeting valueField; - - /// The Targeting value. + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum OrderStatus { + /// Indicates that the Order has just been created but no + /// approval has been requested yet. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public Targeting value { - get { - return this.valueField; - } - set { - this.valueField = value; - } - } + 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, + } + + + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", ConfigurationName = "Google.Api.Ads.AdManager.v201908.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.v201908.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); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + System.Threading.Tasks.Task createOrdersAsync(Wrappers.OrderService.createOrdersRequest request); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201908.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v201908.OrderPage getOrdersByStatement(Google.Api.Ads.AdManager.v201908.Statement filterStatement); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task getOrdersByStatementAsync(Google.Api.Ads.AdManager.v201908.Statement filterStatement); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201908.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v201908.UpdateResult performOrderAction(Google.Api.Ads.AdManager.v201908.OrderAction orderAction, Google.Api.Ads.AdManager.v201908.Statement filterStatement); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task performOrderActionAsync(Google.Api.Ads.AdManager.v201908.OrderAction orderAction, Google.Api.Ads.AdManager.v201908.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.v201908.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.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ChangeHistoryValue : ObjectValue { - private ChangeHistoryEntityType entityTypeField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class OrderPage { + private int totalResultSetSizeField; - private bool entityTypeFieldSpecified; + private bool totalResultSetSizeFieldSpecified; - private ChangeHistoryOperation operationField; + private int startIndexField; - private bool operationFieldSpecified; + private bool startIndexFieldSpecified; + private Order[] resultsField; + + /// The size of the total result set to which this page belongs. + /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public ChangeHistoryEntityType entityType { + public int totalResultSetSize { get { - return this.entityTypeField; + return this.totalResultSetSizeField; } set { - this.entityTypeField = value; - this.entityTypeSpecified = 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 entityTypeSpecified { + public bool totalResultSetSizeSpecified { get { - return this.entityTypeFieldSpecified; + return this.totalResultSetSizeFieldSpecified; } set { - this.entityTypeFieldSpecified = value; + this.totalResultSetSizeFieldSpecified = value; } } + /// The absolute index in the total result set on which this page begins. + /// [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public ChangeHistoryOperation operation { + public int startIndex { get { - return this.operationField; + return this.startIndexField; } set { - this.operationField = value; - this.operationSpecified = 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 operationSpecified { + public bool startIndexSpecified { get { - return this.operationFieldSpecified; + return this.startIndexFieldSpecified; } set { - this.operationFieldSpecified = value; + this.startIndexFieldSpecified = value; + } + } + + /// 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; } } } - /// The type of entity a change occurred on. + /// 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.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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, + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public abstract partial class OrderAction { } - /// An operation that was performed on an entity. + /// The action used for unarchiving Order objects. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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, + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class UnarchiveOrders : OrderAction { } - /// Contains information about a column in a ResultSet. + /// 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.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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; - } - } + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class SubmitOrdersForApprovalWithoutReservationChanges : OrderAction { } - /// The ResultSet represents a table of data obtained from the - /// execution of a PQL Statement. + /// The action used for submitting Order objects for approval. /// + [System.Xml.Serialization.XmlIncludeAttribute(typeof(SubmitOrdersForApprovalAndOverbook))] [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ResultSet { - private ColumnType[] columnTypesField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class SubmitOrdersForApproval : OrderAction { + private bool skipInventoryCheckField; - private Row[] rowsField; + private bool skipInventoryCheckFieldSpecified; - /// A collection of ColumnType objects. + /// Indicates whether the inventory check should be skipped when performing this + /// action. The default value is false. /// - [System.Xml.Serialization.XmlElementAttribute("columnTypes", Order = 0)] - public ColumnType[] columnTypes { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public bool skipInventoryCheck { get { - return this.columnTypesField; + return this.skipInventoryCheckField; } set { - this.columnTypesField = value; + this.skipInventoryCheckField = value; + this.skipInventoryCheckSpecified = true; } } - /// A collection of Row objects. - /// - [System.Xml.Serialization.XmlElementAttribute("rows", Order = 1)] - public Row[] rows { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool skipInventoryCheckSpecified { get { - return this.rowsField; + return this.skipInventoryCheckFieldSpecified; } set { - this.rowsField = value; + this.skipInventoryCheckFieldSpecified = value; } } } - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", ConfigurationName = "Google.Api.Ads.AdManager.v201808.PublisherQueryLanguageServiceInterface")] - public interface PublisherQueryLanguageServiceInterface - { - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v201808.ResultSet select(Google.Api.Ads.AdManager.v201808.Statement selectStatement); + /// The action used for submitting and overbooking Order objects + /// for approval. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class SubmitOrdersForApprovalAndOverbook : SubmitOrdersForApproval { + } - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task selectAsync(Google.Api.Ads.AdManager.v201808.Statement selectStatement); + + /// 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.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class RetractOrdersWithoutReservationChanges : OrderAction { } - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public interface PublisherQueryLanguageServiceInterfaceChannel : Google.Api.Ads.AdManager.v201808.PublisherQueryLanguageServiceInterface, System.ServiceModel.IClientChannel - { + /// The action used for retracting Order objects. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class RetractOrders : OrderAction { } - /// 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

- /// - ///
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 NameDescription
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
MobileDeviceManufacturerName Name 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 Name Description
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.
LineItemType Text Indicates the line item - /// type of a LineItem.
NameText The name of the LineItem.
OrderId Number The ID of the Order to which the belongs.
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.<p> <b>This object is experimental! - /// <code>Targeting</code> is an experimental, innovative, and rapidly - /// changing new feature for DFP. Unfortunately, being on the bleeding edge means - /// that we may make backwards-incompatible changes to - /// <code>Targeting</code>. We will inform the community when this - /// feature is no longer experimental.</b>
UnitsBought Number The 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.

Exchange_Rate

- /// - /// - /// - /// - ///
Column nameType Description
CurrencyCodeText The currency code that the exchange rate is - /// related to. The exchange rate is between this currency and the network's currency. This attribute is - /// required for creation and then is readonly.
DirectionText The direction that the exchange rate is in. It - /// determines whether the exchange rate is from this currency to the network's currency, or from the network's currency to this currency. This - /// attribute can be updated.
ExchangeRateNumber The latest exchange rate at current refresh - /// rate and in current direction. The value is stored as the exchange rate times - /// 10,000,000,000 truncated to a long. Setting this attribute requires the refresh - /// rate to be already set to ExchangeRateRefreshRate#FIXED. - /// Otherwise an exception will be thrown.
IdNumber The ID of the ExchangeRate. This - /// attribute is readonly and is assigned by Google when an exchange rate is - /// created.
RefreshRate Text The - /// refresh rate at which the exchange rate is updated. Setting this attribute to ExchangeRateRefreshRate#FIXED without - /// setting the exchange rate value will cause unknown exchange rate value returned - /// in future queries.

Programmatic_Buyer

- /// - /// - /// - /// - /// - ///
Column - /// name Type Description
BuyerAccountIdNumber The ID used by Adx 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.

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.

Proposal_Retraction_Reason

- /// - /// - /// - ///
Column name Type Description
IdNumber The ID of the - /// ProposalRetractionReason. This attribute is readonly and is - /// assigned by Google when a proposal retraction reason is created.
IsActive Boolean True if the - /// ProposalRetractionReason is active.
NameText The name of the - /// ProposalRetractionReason.

Time_Zone

- /// - /// - ///
Column name TypeDescription
Id Text The - /// id of time zone in the form of .
StandardGmtOffset Text 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
ContentText The content of the terms and conditions.
Id Number Uniquely identifies the - /// terms and conditions.
IsDefaultBoolean Whether or not this set of terms and - /// conditions are the default for a network.
LastModifiedDateTime Datetime The date and - /// time this terms and conditions was last modified.
NameText The name of the terms and conditions.

Change_History

Restrictions: Only ordering - /// by ChangeDateTime descending is supported. 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 - /// ChangeDateTime are required. - /// - /// - /// - /// - /// - ///
Column nameType Description
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
+ /// 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.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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 = 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 resuming and overbooking Order objects. + /// All LineItem objects within the order will resume as + /// well. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class ResumeAndOverbookOrders : ResumeOrders { + } + + + /// The action used for pausing all LineItem objects within + /// an order. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class DeleteOrders : OrderAction { + } + + + /// The action used for archiving Order objects. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class ApproveOrdersWithoutReservationChanges : OrderAction { + } + + + /// 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.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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 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 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.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class ApproveAndOverbookOrders : ApproveOrders { + } + + + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + public interface OrderServiceInterfaceChannel : Google.Api.Ads.AdManager.v201908.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 PublisherQueryLanguageService : AdManagerSoapClient, IPublisherQueryLanguageService { - /// Creates a new instance of the class. - public PublisherQueryLanguageService() { + public partial class OrderService : AdManagerSoapClient, IOrderService { + /// Creates a new instance of the class. + /// + public OrderService() { } - /// Creates a new instance of the class. - public PublisherQueryLanguageService(string endpointConfigurationName) + /// Creates a new instance of the class. + /// + public OrderService(string endpointConfigurationName) : base(endpointConfigurationName) { } - /// Creates a new instance of the class. - public PublisherQueryLanguageService(string endpointConfigurationName, string remoteAddress) + /// Creates a new instance of the class. + /// + public OrderService(string endpointConfigurationName, string remoteAddress) : base(endpointConfigurationName, remoteAddress) { } - /// Creates a new instance of the class. - public PublisherQueryLanguageService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) + /// Creates a new instance of the class. + /// + public OrderService(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) + /// Creates a new instance of the class. + /// + public OrderService(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. - /// a Publisher Query Language statement used to - /// specify what data needs to returned - /// a result set of data that matches the given filter - public virtual Google.Api.Ads.AdManager.v201808.ResultSet select(Google.Api.Ads.AdManager.v201808.Statement selectStatement) { - return base.Channel.select(selectStatement); + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + Wrappers.OrderService.createOrdersResponse Google.Api.Ads.AdManager.v201908.OrderServiceInterface.createOrders(Wrappers.OrderService.createOrdersRequest request) { + return base.Channel.createOrders(request); } - public virtual System.Threading.Tasks.Task selectAsync(Google.Api.Ads.AdManager.v201808.Statement selectStatement) { - return base.Channel.selectAsync(selectStatement); + /// Creates new Order objects. + /// the orders to create + /// the created orders with their IDs filled in + public virtual Google.Api.Ads.AdManager.v201908.Order[] createOrders(Google.Api.Ads.AdManager.v201908.Order[] orders) { + Wrappers.OrderService.createOrdersRequest inValue = new Wrappers.OrderService.createOrdersRequest(); + inValue.orders = orders; + Wrappers.OrderService.createOrdersResponse retVal = ((Google.Api.Ads.AdManager.v201908.OrderServiceInterface)(this)).createOrders(inValue); + return retVal.rval; + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201908.OrderServiceInterface.createOrdersAsync(Wrappers.OrderService.createOrdersRequest request) { + return base.Channel.createOrdersAsync(request); + } + + public virtual System.Threading.Tasks.Task createOrdersAsync(Google.Api.Ads.AdManager.v201908.Order[] orders) { + Wrappers.OrderService.createOrdersRequest inValue = new Wrappers.OrderService.createOrdersRequest(); + inValue.orders = orders; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201908.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
advertiserId Order#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
+ ///
a Publisher Query Language statement used to + /// filter a set of orders + /// the orders that match the given filter + public virtual Google.Api.Ads.AdManager.v201908.OrderPage getOrdersByStatement(Google.Api.Ads.AdManager.v201908.Statement filterStatement) { + return base.Channel.getOrdersByStatement(filterStatement); + } + + public virtual System.Threading.Tasks.Task getOrdersByStatementAsync(Google.Api.Ads.AdManager.v201908.Statement filterStatement) { + return base.Channel.getOrdersByStatementAsync(filterStatement); + } + + /// Performs actions on Order objects that match the given Statement#query. + /// the action to perform + /// a Publisher Query Language statement used to + /// filter a set of orders + /// the result of the action performed + public virtual Google.Api.Ads.AdManager.v201908.UpdateResult performOrderAction(Google.Api.Ads.AdManager.v201908.OrderAction orderAction, Google.Api.Ads.AdManager.v201908.Statement filterStatement) { + return base.Channel.performOrderAction(orderAction, filterStatement); + } + + public virtual System.Threading.Tasks.Task performOrderActionAsync(Google.Api.Ads.AdManager.v201908.OrderAction orderAction, Google.Api.Ads.AdManager.v201908.Statement filterStatement) { + return base.Channel.performOrderActionAsync(orderAction, filterStatement); + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + Wrappers.OrderService.updateOrdersResponse Google.Api.Ads.AdManager.v201908.OrderServiceInterface.updateOrders(Wrappers.OrderService.updateOrdersRequest request) { + return base.Channel.updateOrders(request); + } + + /// Updates the specified Order objects. + /// the orders to update + /// the updated orders + public virtual Google.Api.Ads.AdManager.v201908.Order[] updateOrders(Google.Api.Ads.AdManager.v201908.Order[] orders) { + Wrappers.OrderService.updateOrdersRequest inValue = new Wrappers.OrderService.updateOrdersRequest(); + inValue.orders = orders; + Wrappers.OrderService.updateOrdersResponse retVal = ((Google.Api.Ads.AdManager.v201908.OrderServiceInterface)(this)).updateOrders(inValue); + return retVal.rval; + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201908.OrderServiceInterface.updateOrdersAsync(Wrappers.OrderService.updateOrdersRequest request) { + return base.Channel.updateOrdersAsync(request); + } + + public virtual System.Threading.Tasks.Task updateOrdersAsync(Google.Api.Ads.AdManager.v201908.Order[] orders) { + Wrappers.OrderService.updateOrdersRequest inValue = new Wrappers.OrderService.updateOrdersRequest(); + inValue.orders = orders; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201908.OrderServiceInterface)(this)).updateOrdersAsync(inValue)).Result.rval); } } - namespace Wrappers.RateCardService + 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 = "createRateCards", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201808", IsWrapped = true)] - public partial class createRateCardsRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rateCards")] - public Google.Api.Ads.AdManager.v201808.RateCard[] rateCards; + [System.ServiceModel.MessageContractAttribute(WrapperName = "createPlacements", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201908", IsWrapped = true)] + public partial class createPlacementsRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("placements")] + public Google.Api.Ads.AdManager.v201908.Placement[] placements; - /// Creates a new instance of the + /// Creates a new instance of the /// class. - public createRateCardsRequest() { + public createPlacementsRequest() { } - /// Creates a new instance of the + /// Creates a new instance of the /// class. - public createRateCardsRequest(Google.Api.Ads.AdManager.v201808.RateCard[] rateCards) { - this.rateCards = rateCards; + public createPlacementsRequest(Google.Api.Ads.AdManager.v201908.Placement[] placements) { + this.placements = placements; } } @@ -53916,20 +37856,20 @@ public createRateCardsRequest(Google.Api.Ads.AdManager.v201808.RateCard[] rateCa [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "createRateCardsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201808", IsWrapped = true)] - public partial class createRateCardsResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "createPlacementsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201908", IsWrapped = true)] + public partial class createPlacementsResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v201808.RateCard[] rval; + public Google.Api.Ads.AdManager.v201908.Placement[] rval; - /// Creates a new instance of the + /// Creates a new instance of the /// class. - public createRateCardsResponse() { + public createPlacementsResponse() { } - /// Creates a new instance of the + /// Creates a new instance of the /// class. - public createRateCardsResponse(Google.Api.Ads.AdManager.v201808.RateCard[] rval) { + public createPlacementsResponse(Google.Api.Ads.AdManager.v201908.Placement[] rval) { this.rval = rval; } } @@ -53938,21 +37878,21 @@ public createRateCardsResponse(Google.Api.Ads.AdManager.v201808.RateCard[] 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 = "updateRateCards", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201808", IsWrapped = true)] - public partial class updateRateCardsRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rateCards")] - public Google.Api.Ads.AdManager.v201808.RateCard[] rateCards; + [System.ServiceModel.MessageContractAttribute(WrapperName = "updatePlacements", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201908", IsWrapped = true)] + public partial class updatePlacementsRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("placements")] + public Google.Api.Ads.AdManager.v201908.Placement[] placements; - /// Creates a new instance of the + /// Creates a new instance of the /// class. - public updateRateCardsRequest() { + public updatePlacementsRequest() { } - /// Creates a new instance of the + /// Creates a new instance of the /// class. - public updateRateCardsRequest(Google.Api.Ads.AdManager.v201808.RateCard[] rateCards) { - this.rateCards = rateCards; + public updatePlacementsRequest(Google.Api.Ads.AdManager.v201908.Placement[] placements) { + this.placements = placements; } } @@ -53960,60 +37900,64 @@ public updateRateCardsRequest(Google.Api.Ads.AdManager.v201808.RateCard[] rateCa [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "updateRateCardsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201808", IsWrapped = true)] - public partial class updateRateCardsResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "updatePlacementsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201908", IsWrapped = true)] + public partial class updatePlacementsResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v201808.RateCard[] rval; + public Google.Api.Ads.AdManager.v201908.Placement[] rval; - /// Creates a new instance of the + /// Creates a new instance of the /// class. - public updateRateCardsResponse() { + public updatePlacementsResponse() { } - /// Creates a new instance of the + /// Creates a new instance of the /// class. - public updateRateCardsResponse(Google.Api.Ads.AdManager.v201808.RateCard[] rval) { + public updatePlacementsResponse(Google.Api.Ads.AdManager.v201908.Placement[] rval) { this.rval = rval; } } } - /// Defines a collection of rules, including base rates for product templates and - /// products, premiums, proposal line item level adjustments and proposal level - /// adjustments. + /// Contains information required for AdWords advertisers to place their ads. + /// + [System.Xml.Serialization.XmlIncludeAttribute(typeof(Placement))] + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class SiteTargetingInfo { + } + + + /// A Placement groups related AdUnit objects. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class RateCard { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class Placement : SiteTargetingInfo { private long idField; private bool idFieldSpecified; private string nameField; - private string currencyCodeField; - - private RateCardStatus statusField; - - private bool statusFieldSpecified; - - private bool forMarketplaceField; + private string descriptionField; - private bool forMarketplaceFieldSpecified; + private string placementCodeField; - private PricingModel pricingModelField; + private InventoryStatus statusField; - private bool pricingModelFieldSpecified; + private bool statusFieldSpecified; - private long[] appliedTeamIdsField; + private string[] targetedAdUnitIdsField; private DateTime lastModifiedDateTimeField; - /// The ID of the RateCard. This attribute is read-only and is assigned - /// by Google when a rate card is created. + /// 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 { @@ -54039,9 +37983,8 @@ public bool idSpecified { } } - /// The name of the RateCard. This attribute is required and has a - /// maximum length of 255 characters. This attribute must also be case-insensitive - /// unique. + /// 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 { @@ -54053,125 +37996,75 @@ public string name { } } - /// The ISO currency code for the currency used by the . This attribute - /// is optional to create a RateCard and defaults to the network's currency. This attribute is read-only - /// if either the is for Marketplace or once a ProposalLineItem has been created using this - /// RateCard. + /// 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 currencyCode { + public string description { get { - return this.currencyCodeField; + return this.descriptionField; } set { - this.currencyCodeField = value; + this.descriptionField = value; } } - /// The status of the RateCard. This attribute is read-only and is - /// assigned by Google. Rate cards are created in the RateCardStatus#INACTIVE state. + /// 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 RateCardStatus 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 string placementCode { get { - return this.statusFieldSpecified; + return this.placementCodeField; } set { - this.statusFieldSpecified = value; + this.placementCodeField = value; } } - /// Whether or not the RateCard can be used for Marketplace products. This attribute is read-only and assigned by Google. + /// The status of the Placement. This attribute is read-only. /// [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public bool forMarketplace { - get { - return this.forMarketplaceField; - } - set { - this.forMarketplaceField = value; - this.forMarketplaceSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool forMarketplaceSpecified { - get { - return this.forMarketplaceFieldSpecified; - } - set { - this.forMarketplaceFieldSpecified = value; - } - } - - /// The PricingModel of the .

This - /// attribute is required to create a RateCard.

This attribute - /// is read-only if either the RateCard is for Marketplace or once a ProposalLineItem has been created using this - /// RateCard.

- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 5)] - public PricingModel pricingModel { + public InventoryStatus status { get { - return this.pricingModelField; + return this.statusField; } set { - this.pricingModelField = value; - this.pricingModelSpecified = 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 pricingModelSpecified { + public bool statusSpecified { get { - return this.pricingModelFieldSpecified; + return this.statusFieldSpecified; } set { - this.pricingModelFieldSpecified = value; + this.statusFieldSpecified = value; } } - /// The IDs of all teams this rate card is directly in. This attribute is optional. + /// The collection of AdUnit object IDs that constitute the + /// Placement. /// - [System.Xml.Serialization.XmlElementAttribute("appliedTeamIds", Order = 6)] - public long[] appliedTeamIds { + [System.Xml.Serialization.XmlElementAttribute("targetedAdUnitIds", Order = 5)] + public string[] targetedAdUnitIds { get { - return this.appliedTeamIdsField; + return this.targetedAdUnitIdsField; } set { - this.appliedTeamIdsField = value; + this.targetedAdUnitIdsField = value; } } - /// The date and time this RateCard was last modified.

This - /// attribute is readonly and is assigned by Google when a RateCard is - /// updated.

+ /// The date and time this placement was last modified. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 7)] + [System.Xml.Serialization.XmlElementAttribute(Order = 6)] public DateTime lastModifiedDateTime { get { return this.lastModifiedDateTimeField; @@ -54183,41 +38076,20 @@ public DateTime lastModifiedDateTime { } - /// Describes the status of RateCard objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum RateCardStatus { - /// The rate card has been activated. - /// - ACTIVE = 0, - /// The rate card has not been activated. - /// - INACTIVE = 1, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 2, - } - - - /// An error having to do with RateCard. + /// Class defining all validation errors for a placement. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class RateCardError : ApiError { - private RateCardErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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 RateCardErrorReason reason { + public PlacementErrorReason reason { get { return this.reasonField; } @@ -54242,185 +38114,127 @@ public bool reasonSpecified { } - /// The reasons for the target error. + /// Possible reasons for the error. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "RateCardError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum RateCardErrorReason { - /// The currency code is invalid and does not follow ISO 4217. - /// - INVALID_CURRENCY_CODE = 0, - /// The PricingModel is invalid. - /// - INVALID_PRICING_MODEL = 4, - /// Marketplace RateCard cannot have ProductPackage association. - /// - PRODUCT_PACKAGE_NOT_APPLICABLE_ON_MARKETPLACE_RATE_CARD = 5, - /// The currency code is not supported by current network. A supported currency can - /// be either Network#currencyCode or one of Network#secondaryCurrencyCodes. - /// - UNSUPPORTED_CURRENCY_CODE = 1, - /// The currency code is unchangeable as long as there is any proposal line item - /// created with the rate card. - /// - UNCHANGEABLE_CURRENCY_CODE = 2, - /// The PricingModel cannot be changed after proposal line items have been created using the RateCard. - /// - UNCHANGEABLE_PRICING_MODEL = 6, - /// Only one Marketplace RateCard per Network is allowed. - /// - MARKETPLACE_RATE_CARD_NOT_UNIQUE = 7, - /// Legal agreement must be accepted before activating the Marketplace RateCard. + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "PlacementError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum PlacementErrorReason { + /// Entity type is something other than inventory or content. /// - NOT_ACCEPT_DEALS_SALES_ON_LEGAL_AGREEMENT = 8, - /// The value returned if the actual value is not exposed by the requested API - /// version. + INVALID_ENTITY_TYPE = 0, + /// Shared inventory cannot be assigned to a placement. /// - UNKNOWN = 3, - } - - - /// An error lists all error reasons associated with performing action on RateCard objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class RateCardActionError : ApiError { - private RateCardActionErrorReason reasonField; - - private bool reasonFieldSpecified; - - /// The error reason represented by an enum. + SHARED_INVENTORY_ASSIGNED = 1, + /// Shared inventory from one distributor network cannot be in the same placement + /// with inventory from another distributor. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public RateCardActionErrorReason 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.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "RateCardActionError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum RateCardActionErrorReason { - /// The operation is not applicable to the current status. + PLACEMENTS_CANNOT_INCLUDE_INVENTORY_FROM_MULTIPLE_DISTRIBUTOR_NETWORKS = 2, + /// Shared inventory and local inventory cannot be in the same placement. /// - NOT_APPLICABLE = 0, + 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, } [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", ConfigurationName = "Google.Api.Ads.AdManager.v201808.RateCardServiceInterface")] - public interface RateCardServiceInterface + [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", ConfigurationName = "Google.Api.Ads.AdManager.v201908.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.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201908.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.RateCardService.createRateCardsResponse createRateCards(Wrappers.RateCardService.createRateCardsRequest request); + Wrappers.PlacementService.createPlacementsResponse createPlacements(Wrappers.PlacementService.createPlacementsRequest request); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task createRateCardsAsync(Wrappers.RateCardService.createRateCardsRequest request); + System.Threading.Tasks.Task createPlacementsAsync(Wrappers.PlacementService.createPlacementsRequest request); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201908.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.v201808.RateCardPage getRateCardsByStatement(Google.Api.Ads.AdManager.v201808.Statement filterStatement); + Google.Api.Ads.AdManager.v201908.PlacementPage getPlacementsByStatement(Google.Api.Ads.AdManager.v201908.Statement filterStatement); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getRateCardsByStatementAsync(Google.Api.Ads.AdManager.v201808.Statement filterStatement); + System.Threading.Tasks.Task getPlacementsByStatementAsync(Google.Api.Ads.AdManager.v201908.Statement filterStatement); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201908.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.v201808.UpdateResult performRateCardAction(Google.Api.Ads.AdManager.v201808.RateCardAction rateCardAction, Google.Api.Ads.AdManager.v201808.Statement filterStatement); + Google.Api.Ads.AdManager.v201908.UpdateResult performPlacementAction(Google.Api.Ads.AdManager.v201908.PlacementAction placementAction, Google.Api.Ads.AdManager.v201908.Statement filterStatement); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task performRateCardActionAsync(Google.Api.Ads.AdManager.v201808.RateCardAction rateCardAction, Google.Api.Ads.AdManager.v201808.Statement filterStatement); + System.Threading.Tasks.Task performPlacementActionAsync(Google.Api.Ads.AdManager.v201908.PlacementAction placementAction, Google.Api.Ads.AdManager.v201908.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.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201908.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.RateCardService.updateRateCardsResponse updateRateCards(Wrappers.RateCardService.updateRateCardsRequest request); + Wrappers.PlacementService.updatePlacementsResponse updatePlacements(Wrappers.PlacementService.updatePlacementsRequest request); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task updateRateCardsAsync(Wrappers.RateCardService.updateRateCardsRequest request); + System.Threading.Tasks.Task updatePlacementsAsync(Wrappers.PlacementService.updatePlacementsRequest request); } - /// Captures a page of RateCard objects. + /// Captures a page of Placement objects. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class RateCardPage { - private RateCard[] resultsField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class PlacementPage { + private int totalResultSetSizeField; + + private bool totalResultSetSizeFieldSpecified; private int startIndexField; private bool startIndexFieldSpecified; - private int totalResultSetSizeField; - - private bool totalResultSetSizeFieldSpecified; + private Placement[] resultsField; - /// The collection of rate cards contained within this page. + /// The size of the total result set to which this page belongs. /// - [System.Xml.Serialization.XmlElementAttribute("results", Order = 0)] - public RateCard[] results { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public int totalResultSetSize { get { - return this.resultsField; + return this.totalResultSetSizeField; } set { - this.resultsField = value; + 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; } } @@ -54450,225 +38264,270 @@ public bool startIndexSpecified { } } - /// The size of the total result set to which this page belongs. + /// The collection of placements contained within this page. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public int totalResultSetSize { + [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] + public Placement[] results { get { - return this.totalResultSetSizeField; + return this.resultsField; } set { - this.totalResultSetSizeField = value; - this.totalResultSetSizeSpecified = true; + this.resultsField = 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; - } - } + + /// 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.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public abstract partial class PlacementAction { } - /// Represents the actions that can be performed on RateCard - /// objects. + /// The action used for deactivating Placement objects. /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(DeactivateRateCards))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ActivateRateCards))] [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public abstract partial class RateCardAction { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class DeactivatePlacements : PlacementAction { } - /// The action used to deactivate RateCard objects. + /// The action used for archiving Placement objects. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class DeactivateRateCards : RateCardAction { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class ArchivePlacements : PlacementAction { } - /// The action used to activate RateCard objects. + /// The action used for activating Placement objects. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ActivateRateCards : RateCardAction { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class ActivatePlacements : PlacementAction { } [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public interface RateCardServiceInterfaceChannel : Google.Api.Ads.AdManager.v201808.RateCardServiceInterface, System.ServiceModel.IClientChannel + public interface PlacementServiceInterfaceChannel : Google.Api.Ads.AdManager.v201908.PlacementServiceInterface, System.ServiceModel.IClientChannel { } - /// Provides methods for managing RateCard objects.

To use - /// this service, you need to have the new sales management solution enabled on your - /// network. If you do not see a "Sales" tab in DoubleClick for Publishers (DFP), you will - /// not be able to use this service.

+ /// 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.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public partial class RateCardService : AdManagerSoapClient, IRateCardService { - /// Creates a new instance of the class. + public partial class PlacementService : AdManagerSoapClient, IPlacementService { + /// Creates a new instance of the class. /// - public RateCardService() { + public PlacementService() { } - /// Creates a new instance of the class. + /// Creates a new instance of the class. /// - public RateCardService(string endpointConfigurationName) + public PlacementService(string endpointConfigurationName) : base(endpointConfigurationName) { } - /// Creates a new instance of the class. + /// Creates a new instance of the class. /// - public RateCardService(string endpointConfigurationName, string remoteAddress) + public PlacementService(string endpointConfigurationName, string remoteAddress) : base(endpointConfigurationName, remoteAddress) { } - /// Creates a new instance of the class. + /// Creates a new instance of the class. /// - public RateCardService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) + public PlacementService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) : base(endpointConfigurationName, remoteAddress) { } - /// Creates a new instance of the class. + /// Creates a new instance of the class. /// - public RateCardService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) + public PlacementService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) : base(binding, remoteAddress) { } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.RateCardService.createRateCardsResponse Google.Api.Ads.AdManager.v201808.RateCardServiceInterface.createRateCards(Wrappers.RateCardService.createRateCardsRequest request) { - return base.Channel.createRateCards(request); - } - - /// Creates a list of RateCard objects. Rate cards must be - /// activated before being associated with proposal line items and products. - /// the rate cards to be created - /// the created rate cards. - public virtual Google.Api.Ads.AdManager.v201808.RateCard[] createRateCards(Google.Api.Ads.AdManager.v201808.RateCard[] rateCards) { - Wrappers.RateCardService.createRateCardsRequest inValue = new Wrappers.RateCardService.createRateCardsRequest(); - inValue.rateCards = rateCards; - Wrappers.RateCardService.createRateCardsResponse retVal = ((Google.Api.Ads.AdManager.v201808.RateCardServiceInterface)(this)).createRateCards(inValue); + Wrappers.PlacementService.createPlacementsResponse Google.Api.Ads.AdManager.v201908.PlacementServiceInterface.createPlacements(Wrappers.PlacementService.createPlacementsRequest request) { + return base.Channel.createPlacements(request); + } + + /// Creates new Placement objects. + /// the placements to create + /// the new placements, with their IDs filled in + public virtual Google.Api.Ads.AdManager.v201908.Placement[] createPlacements(Google.Api.Ads.AdManager.v201908.Placement[] placements) { + Wrappers.PlacementService.createPlacementsRequest inValue = new Wrappers.PlacementService.createPlacementsRequest(); + inValue.placements = placements; + Wrappers.PlacementService.createPlacementsResponse retVal = ((Google.Api.Ads.AdManager.v201908.PlacementServiceInterface)(this)).createPlacements(inValue); return retVal.rval; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201808.RateCardServiceInterface.createRateCardsAsync(Wrappers.RateCardService.createRateCardsRequest request) { - return base.Channel.createRateCardsAsync(request); + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201908.PlacementServiceInterface.createPlacementsAsync(Wrappers.PlacementService.createPlacementsRequest request) { + return base.Channel.createPlacementsAsync(request); } - public virtual System.Threading.Tasks.Task createRateCardsAsync(Google.Api.Ads.AdManager.v201808.RateCard[] rateCards) { - Wrappers.RateCardService.createRateCardsRequest inValue = new Wrappers.RateCardService.createRateCardsRequest(); - inValue.rateCards = rateCards; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201808.RateCardServiceInterface)(this)).createRateCardsAsync(inValue)).Result.rval); + public virtual System.Threading.Tasks.Task createPlacementsAsync(Google.Api.Ads.AdManager.v201908.Placement[] placements) { + Wrappers.PlacementService.createPlacementsRequest inValue = new Wrappers.PlacementService.createPlacementsRequest(); + inValue.placements = placements; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201908.PlacementServiceInterface)(this)).createPlacementsAsync(inValue)).Result.rval); } - /// Gets a RateCardPage of RateCard objects that satisfy the given Gets a PlacementPage of Placement objects that satisfy the given Statement#query. The following fields are supported - /// for filtering: - /// - /// - /// - /// - ///
PQL property Entity property
ForMarketplace RateCard#forMarketplace
Id RateCard#id
LastModifiedDateTime RateCard#lastModifiedDateTime
Name RateCard#name
Status RateCard#status
- ///
a Publisher Query Language statement to filter a - /// list of rate cards. - /// the rate cards that match the filter - public virtual Google.Api.Ads.AdManager.v201808.RateCardPage getRateCardsByStatement(Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.getRateCardsByStatement(filterStatement); + /// for filtering: + /// + /// + /// + /// + /// + /// + ///
PQL Property Object Property
descriptionPlacement#description
id Placement#id
name Placement#name
placementCode Placement#placementCode
status Placement#status
lastModifiedDateTime Placement#lastModifiedDateTime
+ ///
a Publisher Query Language statement used to + /// filter a set of placements + /// the placements that match the given filter + public virtual Google.Api.Ads.AdManager.v201908.PlacementPage getPlacementsByStatement(Google.Api.Ads.AdManager.v201908.Statement filterStatement) { + return base.Channel.getPlacementsByStatement(filterStatement); } - public virtual System.Threading.Tasks.Task getRateCardsByStatementAsync(Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.getRateCardsByStatementAsync(filterStatement); + public virtual System.Threading.Tasks.Task getPlacementsByStatementAsync(Google.Api.Ads.AdManager.v201908.Statement filterStatement) { + return base.Channel.getPlacementsByStatementAsync(filterStatement); } - /// Performs action on RateCard objects that satisfy the + /// Performs actions on Placement objects that match the /// given Statement#query. - /// the action to perform + /// the action to perform /// a Publisher Query Language statement used to - /// filter a set of rate cards. + /// filter a set of placements /// the result of the action performed - public virtual Google.Api.Ads.AdManager.v201808.UpdateResult performRateCardAction(Google.Api.Ads.AdManager.v201808.RateCardAction rateCardAction, Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.performRateCardAction(rateCardAction, filterStatement); + public virtual Google.Api.Ads.AdManager.v201908.UpdateResult performPlacementAction(Google.Api.Ads.AdManager.v201908.PlacementAction placementAction, Google.Api.Ads.AdManager.v201908.Statement filterStatement) { + return base.Channel.performPlacementAction(placementAction, filterStatement); } - public virtual System.Threading.Tasks.Task performRateCardActionAsync(Google.Api.Ads.AdManager.v201808.RateCardAction rateCardAction, Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.performRateCardActionAsync(rateCardAction, filterStatement); + public virtual System.Threading.Tasks.Task performPlacementActionAsync(Google.Api.Ads.AdManager.v201908.PlacementAction placementAction, Google.Api.Ads.AdManager.v201908.Statement filterStatement) { + return base.Channel.performPlacementActionAsync(placementAction, filterStatement); } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.RateCardService.updateRateCardsResponse Google.Api.Ads.AdManager.v201808.RateCardServiceInterface.updateRateCards(Wrappers.RateCardService.updateRateCardsRequest request) { - return base.Channel.updateRateCards(request); + Wrappers.PlacementService.updatePlacementsResponse Google.Api.Ads.AdManager.v201908.PlacementServiceInterface.updatePlacements(Wrappers.PlacementService.updatePlacementsRequest request) { + return base.Channel.updatePlacements(request); } - /// Updates a list of RateCard objects. - /// the rate cards to be updated - /// the updated rate cards - public virtual Google.Api.Ads.AdManager.v201808.RateCard[] updateRateCards(Google.Api.Ads.AdManager.v201808.RateCard[] rateCards) { - Wrappers.RateCardService.updateRateCardsRequest inValue = new Wrappers.RateCardService.updateRateCardsRequest(); - inValue.rateCards = rateCards; - Wrappers.RateCardService.updateRateCardsResponse retVal = ((Google.Api.Ads.AdManager.v201808.RateCardServiceInterface)(this)).updateRateCards(inValue); + /// Updates the specified Placement objects. + /// the placements to update + /// the updated placements + public virtual Google.Api.Ads.AdManager.v201908.Placement[] updatePlacements(Google.Api.Ads.AdManager.v201908.Placement[] placements) { + Wrappers.PlacementService.updatePlacementsRequest inValue = new Wrappers.PlacementService.updatePlacementsRequest(); + inValue.placements = placements; + Wrappers.PlacementService.updatePlacementsResponse retVal = ((Google.Api.Ads.AdManager.v201908.PlacementServiceInterface)(this)).updatePlacements(inValue); return retVal.rval; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201808.RateCardServiceInterface.updateRateCardsAsync(Wrappers.RateCardService.updateRateCardsRequest request) { - return base.Channel.updateRateCardsAsync(request); + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201908.PlacementServiceInterface.updatePlacementsAsync(Wrappers.PlacementService.updatePlacementsRequest request) { + return base.Channel.updatePlacementsAsync(request); } - public virtual System.Threading.Tasks.Task updateRateCardsAsync(Google.Api.Ads.AdManager.v201808.RateCard[] rateCards) { - Wrappers.RateCardService.updateRateCardsRequest inValue = new Wrappers.RateCardService.updateRateCardsRequest(); - inValue.rateCards = rateCards; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201808.RateCardServiceInterface)(this)).updateRateCardsAsync(inValue)).Result.rval); + public virtual System.Threading.Tasks.Task updatePlacementsAsync(Google.Api.Ads.AdManager.v201908.Placement[] placements) { + Wrappers.PlacementService.updatePlacementsRequest inValue = new Wrappers.PlacementService.updatePlacementsRequest(); + inValue.placements = placements; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201908.PlacementServiceInterface)(this)).updatePlacementsAsync(inValue)).Result.rval); } } - namespace Wrappers.ReconciliationOrderReportService + namespace Wrappers.ProposalService { [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "updateReconciliationOrderReports", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201808", IsWrapped = true)] - public partial class updateReconciliationOrderReportsRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("reconciliationOrderReports")] - public Google.Api.Ads.AdManager.v201808.ReconciliationOrderReport[] reconciliationOrderReports; + [System.ServiceModel.MessageContractAttribute(WrapperName = "createProposals", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201908", IsWrapped = true)] + public partial class createProposalsRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("proposals")] + public Google.Api.Ads.AdManager.v201908.Proposal[] proposals; - /// Creates a new instance of the class. - public updateReconciliationOrderReportsRequest() { + /// Creates a new instance of the + /// class. + public createProposalsRequest() { } - /// Creates a new instance of the class. - public updateReconciliationOrderReportsRequest(Google.Api.Ads.AdManager.v201808.ReconciliationOrderReport[] reconciliationOrderReports) { - this.reconciliationOrderReports = reconciliationOrderReports; + /// Creates a new instance of the + /// class. + public createProposalsRequest(Google.Api.Ads.AdManager.v201908.Proposal[] proposals) { + this.proposals = proposals; + } + } + + + [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/v201908", IsWrapped = true)] + public partial class createProposalsResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("rval")] + public Google.Api.Ads.AdManager.v201908.Proposal[] rval; + + /// Creates a new instance of the + /// class. + public createProposalsResponse() { + } + + /// Creates a new instance of the + /// class. + public createProposalsResponse(Google.Api.Ads.AdManager.v201908.Proposal[] 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 = "updateProposals", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201908", IsWrapped = true)] + public partial class updateProposalsRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("proposals")] + public Google.Api.Ads.AdManager.v201908.Proposal[] proposals; + + /// Creates a new instance of the + /// class. + public updateProposalsRequest() { + } + + /// Creates a new instance of the + /// class. + public updateProposalsRequest(Google.Api.Ads.AdManager.v201908.Proposal[] proposals) { + this.proposals = proposals; } } @@ -54676,911 +38535,871 @@ public updateReconciliationOrderReportsRequest(Google.Api.Ads.AdManager.v201808. [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "updateReconciliationOrderReportsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201808", IsWrapped = true)] - public partial class updateReconciliationOrderReportsResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "updateProposalsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201908", IsWrapped = true)] + public partial class updateProposalsResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v201808.ReconciliationOrderReport[] rval; + public Google.Api.Ads.AdManager.v201908.Proposal[] rval; + + /// Creates a new instance of the + /// class. + public updateProposalsResponse() { + } + + /// Creates a new instance of the + /// class. + public updateProposalsResponse(Google.Api.Ads.AdManager.v201908.Proposal[] rval) { + this.rval = rval; + } + } + } + /// Represents the buyer RFP information associated with a Proposal describing the requirements from the buyer. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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; + + private CreativePlaceholder[] creativePlaceholdersField; + + 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 when:
  • using programmatic + /// guaranteed, not using sales management.
  • using preferred deals, not + /// using sales management.
+ ///
+ [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 when:
    + ///
  • using programmatic guaranteed, not using sales management.
  • using + /// preferred deals, not using sales management.
+ ///
+ [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 unitsSpecified { + get { + return this.unitsFieldSpecified; + } + set { + this.unitsFieldSpecified = 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 + /// when:
  • using programmatic guaranteed, not using sales + /// management.
  • using preferred deals, not using sales management.
  • + ///
+ ///
+ [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public Money budget { + get { + return this.budgetField; + } + set { + this.budgetField = value; + } + } + + /// Currency code for this deal's budget and CPM. This attribute is read-only when:
  • using programmatic + /// guaranteed, not using sales management.
  • using preferred deals, not + /// using sales management.
+ ///
+ [System.Xml.Serialization.XmlElementAttribute(Order = 3)] + public string currencyCode { + get { + return this.currencyCodeField; + } + set { + this.currencyCodeField = value; + } + } + + /// The DateTime in which the proposed deal should start + /// serving. This attribute is read-only + /// when:
  • using programmatic guaranteed, not using sales + /// management.
  • using preferred deals, not using sales management.
  • + ///
+ ///
+ [System.Xml.Serialization.XmlElementAttribute(Order = 4)] + public DateTime startDateTime { + get { + return this.startDateTimeField; + } + set { + this.startDateTimeField = value; + } + } + + /// The DateTime in which the proposed deal should end + /// serving. This attribute is read-only + /// when:
  • using programmatic guaranteed, not using sales + /// management.
  • using preferred deals, not using sales management.
  • + ///
+ ///
+ [System.Xml.Serialization.XmlElementAttribute(Order = 5)] + public DateTime endDateTime { + get { + return this.endDateTimeField; + } + set { + 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 when:
    + ///
  • using programmatic guaranteed, not using sales management.
  • using + /// preferred deals, not using sales management.
+ ///
+ [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 when:
    + ///
  • using programmatic guaranteed, not using sales management.
  • using + /// preferred deals, not using sales management.
+ ///
+ [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 when:
    + ///
  • using programmatic guaranteed, not using sales management.
  • using + /// preferred deals, not using sales management.
+ ///
+ [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 when:
    + ///
  • using programmatic guaranteed, not using sales management.
  • using + /// preferred deals, not using sales management.
+ ///
+ [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 when:
    + ///
  • using programmatic guaranteed, not using sales management.
  • using + /// preferred deals, not using sales management.
+ ///
+ [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. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool adExchangeEnvironmentSpecified { + get { + return this.adExchangeEnvironmentFieldSpecified; + } + set { + this.adExchangeEnvironmentFieldSpecified = 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 when:
  • using programmatic guaranteed, not using sales + /// management.
  • using preferred deals, not using sales management.
  • + ///
+ ///
+ [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 { + get { + return this.rfpTypeFieldSpecified; + } + set { + this.rfpTypeFieldSpecified = value; + } + } + } + + + /// Decribes the type of BuyerRfp. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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, + } - /// Creates a new instance of the class. - public updateReconciliationOrderReportsResponse() { - } - /// Creates a new instance of the class. - public updateReconciliationOrderReportsResponse(Google.Api.Ads.AdManager.v201808.ReconciliationOrderReport[] rval) { - this.rval = rval; - } - } - } - /// Contains reconciliation data of an Order and/or Proposal. + /// Marketplace info for a proposal with a corresponding order in Marketplace. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ReconciliationOrderReport { - private long idField; - - private bool idFieldSpecified; - - private long reconciliationReportIdField; - - private bool reconciliationReportIdFieldSpecified; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class ProposalMarketplaceInfo { + private bool hasLocalVersionEditsField; - private long orderIdField; + private bool hasLocalVersionEditsFieldSpecified; - private bool orderIdFieldSpecified; + private NegotiationStatus negotiationStatusField; - private long proposalIdField; + private bool negotiationStatusFieldSpecified; - private bool proposalIdFieldSpecified; + private string marketplaceCommentField; - private ReconciliationOrderReportStatus statusField; + private NegotiationRole pausedByField; - private bool statusFieldSpecified; + private bool pausedByFieldSpecified; - private DateTime submissionDateTimeField; + private string pauseReasonField; - private long submitterIdField; + private bool isNewVersionFromBuyerField; - private bool submitterIdFieldSpecified; + private bool isNewVersionFromBuyerFieldSpecified; - private Money proposalNetBillableRevenueManualAdjustmentField; + private long buyerAccountIdField; - private Money proposalGrossBillableRevenueManualAdjustmentField; + private bool buyerAccountIdFieldSpecified; - /// Uniquely identifies the ReconciliationOrderReport. This value is - /// read-only and assigned by Google. + /// 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 = 0)] - public long id { + public bool hasLocalVersionEdits { get { - return this.idField; + return this.hasLocalVersionEditsField; } set { - this.idField = value; - this.idSpecified = true; + this.hasLocalVersionEditsField = value; + this.hasLocalVersionEditsSpecified = 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 hasLocalVersionEditsSpecified { get { - return this.idFieldSpecified; + return this.hasLocalVersionEditsFieldSpecified; } set { - this.idFieldSpecified = value; + this.hasLocalVersionEditsFieldSpecified = value; } } - /// The ID of the ReconciliationReport this - /// belongs to. This value is read-only. + /// The negotiation status of the Proposal. This attribute is + /// read-only. /// [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public long reconciliationReportId { + public NegotiationStatus negotiationStatus { get { - return this.reconciliationReportIdField; + return this.negotiationStatusField; } set { - this.reconciliationReportIdField = value; - this.reconciliationReportIdSpecified = true; + this.negotiationStatusField = value; + this.negotiationStatusSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="negotiationStatus" />, false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool reconciliationReportIdSpecified { + public bool negotiationStatusSpecified { get { - return this.reconciliationReportIdFieldSpecified; + return this.negotiationStatusFieldSpecified; } set { - this.reconciliationReportIdFieldSpecified = value; + this.negotiationStatusFieldSpecified = value; } } - /// If this reconciliation data is for an Order, then this - /// contains that order's ID. Otherwise, this field will have a value of 0. This - /// value is read-only. + /// The comment on the Proposal to be sent to the buyer. /// [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - 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 string marketplaceComment { get { - return this.orderIdFieldSpecified; + return this.marketplaceCommentField; } set { - this.orderIdFieldSpecified = value; + this.marketplaceCommentField = value; } } - /// If this reconciliation data is for a Proposal, then this - /// contains that proposal's ID. Otherwise, this field will have a value of 0. This - /// value is read-only. + /// The NegotiationRole that paused the + /// Proposal, 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 = 3)] - public long proposalId { + public NegotiationRole pausedBy { get { - return this.proposalIdField; + return this.pausedByField; } set { - this.proposalIdField = value; - this.proposalIdSpecified = true; + this.pausedByField = value; + this.pausedBySpecified = 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 proposalIdSpecified { + public bool pausedBySpecified { get { - return this.proposalIdFieldSpecified; + return this.pausedByFieldSpecified; } set { - this.proposalIdFieldSpecified = value; + this.pausedByFieldSpecified = value; } } - /// The status of this ReconciliationOrderReport. This value is - /// read-only. + /// The reason for pausing the Proposal, provided by the . + /// It is null when the Proposal is not paused. This + /// attribute is read-only. /// [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public ReconciliationOrderReportStatus 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 string pauseReason { get { - return this.statusFieldSpecified; + return this.pauseReasonField; } set { - this.statusFieldSpecified = value; + this.pauseReasonField = value; } } - /// The time when this order report is submitted. This value is read-only. + /// 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 = 5)] - public DateTime submissionDateTime { - get { - return this.submissionDateTimeField; - } - set { - this.submissionDateTimeField = value; - } - } - - /// The ID of the User who submitted this order report. This - /// value is read-only. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 6)] - public long submitterId { + public bool isNewVersionFromBuyer { get { - return this.submitterIdField; + return this.isNewVersionFromBuyerField; } set { - this.submitterIdField = value; - this.submitterIdSpecified = true; + this.isNewVersionFromBuyerField = value; + this.isNewVersionFromBuyerSpecified = 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 submitterIdSpecified { + public bool isNewVersionFromBuyerSpecified { get { - return this.submitterIdFieldSpecified; + return this.isNewVersionFromBuyerFieldSpecified; } set { - this.submitterIdFieldSpecified = value; + this.isNewVersionFromBuyerFieldSpecified = value; } } - /// If this reconciliation data is for a Proposal, then this - /// contains the net revenue manual adjustment for that proposal. Otherwise, this is - /// null. This value is read-only. + /// The ID of the buyer that this Proposal is being negotiated with. + /// This attribute is required. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 7)] - public Money proposalNetBillableRevenueManualAdjustment { + [System.Xml.Serialization.XmlElementAttribute(Order = 6)] + public long buyerAccountId { get { - return this.proposalNetBillableRevenueManualAdjustmentField; + return this.buyerAccountIdField; } set { - this.proposalNetBillableRevenueManualAdjustmentField = value; + this.buyerAccountIdField = value; + this.buyerAccountIdSpecified = true; } } - /// If this reconciliation data is for a Proposal, then this - /// contains the gross revenue manual adjustment for that proposal. Otherwise, this - /// is . This value is editable. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 8)] - public Money proposalGrossBillableRevenueManualAdjustment { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool buyerAccountIdSpecified { get { - return this.proposalGrossBillableRevenueManualAdjustmentField; + return this.buyerAccountIdFieldSpecified; } set { - this.proposalGrossBillableRevenueManualAdjustmentField = value; + this.buyerAccountIdFieldSpecified = value; } } } - /// The status of the reconciliation order report. + /// Represents the proposal's negotiation status for + /// Marketplace. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum ReconciliationOrderReportStatus { - /// The starting status of a reconciliation order report. Rows are updatable in the - /// DRAFT state. Reconciliation order reports can be submitted with the - /// SubmitReconciliationOrderReports - /// action to change the status to #RECONCILED. + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum NegotiationStatus { + /// Indicates that a new Proposal has been created by the + /// seller and has not been sent to Marketplace yet. /// - DRAFT = 0, - /// The final status of a reconciliation order report. Rows are not updatable in the - /// RECONCILED state. Reconciliation order reports can be reverted with - /// the RevertReconciliationOrderReports - /// action to change the status to #REVERTED. - /// - RECONCILED = 1, - /// A similar status to DRAFT. Rows are updatable in the - /// state. Reconciliation order reports can be submitted with the SubmitReconciliationOrderReports - /// action to change the status to #RECONCILED. - /// - REVERTED = 2, + 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 = 3, + UNKNOWN = 7, } - /// Captures a page of ReconciliationOrderReport objects. + /// The role (buyer or seller) that performed an action in the negotiation of a + /// Proposal. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum NegotiationRole { + BUYER = 0, + SELLER = 1, + UNKNOWN = 2, + } + + + /// A SalespersonSplit represents a salesperson and his/her split. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ReconciliationOrderReportPage { - private int totalResultSetSizeField; - - private bool totalResultSetSizeFieldSpecified; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class SalespersonSplit { + private long userIdField; - private int startIndexField; + private bool userIdFieldSpecified; - private bool startIndexFieldSpecified; + private int splitField; - private ReconciliationOrderReport[] resultsField; + private bool splitFieldSpecified; - /// The size of the total result set to which this page belongs. + /// The unique ID of the User responsible for the sales of the Proposal. This attribute + /// is required. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public int totalResultSetSize { + public long userId { get { - return this.totalResultSetSizeField; + return this.userIdField; } set { - this.totalResultSetSizeField = value; - this.totalResultSetSizeSpecified = true; + this.userIdField = value; + this.userIdSpecified = 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 userIdSpecified { get { - return this.totalResultSetSizeFieldSpecified; + return this.userIdFieldSpecified; } set { - this.totalResultSetSizeFieldSpecified = value; + this.userIdFieldSpecified = value; } } - /// The absolute index in the total result set on which this page begins. + /// The split can be attributed to the salesperson. The percentage value is stored + /// as millipercents, and must be multiples of 10 with the range from 0 to 100000. + /// The default value is 0. /// [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public int startIndex { + public int split { get { - return this.startIndexField; + return this.splitField; } set { - this.startIndexField = value; - this.startIndexSpecified = true; + this.splitField = value; + this.splitSpecified = 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 reconciliation order reports contained within this page. - /// - [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] - public ReconciliationOrderReport[] results { + public bool splitSpecified { get { - return this.resultsField; + return this.splitFieldSpecified; } set { - this.resultsField = value; + this.splitFieldSpecified = value; } } } - /// Lists all errors associated with reconciliation. + /// 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.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ReconciliationError : ApiError { - private ReconciliationErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class ProposalCompanyAssociation { + private long companyIdField; - private bool reasonFieldSpecified; + private bool companyIdFieldSpecified; - /// The error reason represented by an enum. + private ProposalCompanyAssociationType typeField; + + private bool typeFieldSpecified; + + private long[] contactIdsField; + + /// The unique ID of the Company associated with the Proposal. This attribute + /// is required. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public ReconciliationErrorReason reason { + public long companyId { get { - return this.reasonField; + return this.companyIdField; } set { - this.reasonField = value; - this.reasonSpecified = 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 reasonSpecified { + public bool companyIdSpecified { get { - return this.reasonFieldSpecified; + return this.companyIdFieldSpecified; } set { - this.reasonFieldSpecified = value; + this.companyIdFieldSpecified = value; } } - } - - /// The reasons for the target error. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ReconciliationError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum ReconciliationErrorReason { - /// Reconciliation report is reconciled, and need to revert. Or reconciliation - /// report is Deleted, and not possible. - /// - CANNOT_CREATE_RECONCILIATION_REPORT_VERSION = 0, - /// Reconciliation report can't be put into that reconciliation state. - /// - INVALID_RECONCILIATION_REPORT_STATE_TRANSITION = 1, - /// Previous cycles of the proposal must be reconciled first. - /// - INVALID_RECONCILIATION_PROPOSAL_SUBMISSION_SEQUENCE = 2, - /// User does not have permission to put reconciliation report into reconciled - /// state. - /// - USER_CANNOT_RECONCILE_RECONCILIATION_REPORT = 3, - /// The billed from is contracted, but the contracted volume cannot be null. - /// - CONTRACTED_VOLUME_CANNOT_BE_NULL = 4, - /// The billed from is DFP, but the DFP volume cannot be null. - /// - DFP_VOLUME_CANNOT_BE_NULL = 5, - /// The billed from is manual, but the manual volume cannot be null. - /// - MANUAL_VOLUME_CANNOT_BE_NULL = 6, - /// The billed from is third-party, but the third-party volume cannot be null. - /// - THIRD_PARTY_VOLUME_CANNOT_BE_NULL = 7, - /// Duplicate tuples of (line item ID, creative ID). - /// - DUPLICATE_LINE_ITEM_AND_CREATIVE = 8, - /// Cannot reconcile the ReconciliationReportRow as the line item ID - /// and the creative ID association is invalid. - /// - CANNOT_RECONCILE_LINE_ITEM_CREATIVE = 9, - /// Third-party days delivered and manual days delivered cannot differ for rows with - /// same line item ID when line item cost type is CPD. - /// - LINE_ITEM_DAYS_MISMATCH = 10, - /// ReconciliationReportRow#billFrom - /// field cannot differ for rows with same line item id when line item cost type is - /// CPD. - /// - LINE_ITEM_BILL_OFF_OF_MISMATCH = 11, - /// The order of the modifying rows in under reconciled status. The row couldn't be - /// changed. - /// - CANNOT_MODIFY_RECONCILED_ORDER = 12, - /// Can not modify across multiple reconciliation reports. - /// - CANNOT_MODIFY_ACROSS_MULTIPLE_RECONCILIATION_REPORTS = 13, - /// Can not query across multiple reconciliation reports. - /// - CANNOT_QUERY_ACROSS_MULTIPLE_RECONCILIATION_REPORTS = 16, - /// Cannot update reconciled volume when a billable revenue override is set. - /// - CANNOT_UPDATE_VOLUME_WHEN_BILLABLE_REVENUE_OVERRIDDEN = 15, - /// The value returned if the actual value is not exposed by the requested API - /// version. + /// The association type of the Company and Proposal. This attribute + /// is required. /// - UNKNOWN = 14, - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", ConfigurationName = "Google.Api.Ads.AdManager.v201808.ReconciliationOrderReportServiceInterface")] - public interface ReconciliationOrderReportServiceInterface - { - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v201808.ReconciliationOrderReportPage getReconciliationOrderReportsByStatement(Google.Api.Ads.AdManager.v201808.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getReconciliationOrderReportsByStatementAsync(Google.Api.Ads.AdManager.v201808.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v201808.UpdateResult performReconciliationOrderReportAction(Google.Api.Ads.AdManager.v201808.ReconciliationOrderReportAction reconciliationOrderReportAction, Google.Api.Ads.AdManager.v201808.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task performReconciliationOrderReportActionAsync(Google.Api.Ads.AdManager.v201808.ReconciliationOrderReportAction reconciliationOrderReportAction, Google.Api.Ads.AdManager.v201808.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.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Wrappers.ReconciliationOrderReportService.updateReconciliationOrderReportsResponse updateReconciliationOrderReports(Wrappers.ReconciliationOrderReportService.updateReconciliationOrderReportsRequest request); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task updateReconciliationOrderReportsAsync(Wrappers.ReconciliationOrderReportService.updateReconciliationOrderReportsRequest request); - } - - - /// Represents the actions that can be performed on the ReconciliationOrderReport objects. - /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(RevertReconciliationOrderReports))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(SubmitReconciliationOrderReports))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public abstract partial class ReconciliationOrderReportAction { - } - - - /// The action used to revert the reconciliation on the ReconciliationOrderReport. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class RevertReconciliationOrderReports : ReconciliationOrderReportAction { - } - - - /// The action used for submit the reconciliation on the ReconciliationOrderReport. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class SubmitReconciliationOrderReports : ReconciliationOrderReportAction { - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public interface ReconciliationOrderReportServiceInterfaceChannel : Google.Api.Ads.AdManager.v201808.ReconciliationOrderReportServiceInterface, System.ServiceModel.IClientChannel - { - } - - - /// Provides methods for retrieving, reconciling, and reverting ReconciliationOrderReport objects. - /// - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public partial class ReconciliationOrderReportService : AdManagerSoapClient, IReconciliationOrderReportService { - /// Creates a new instance of the class. - public ReconciliationOrderReportService() { - } - - /// Creates a new instance of the class. - public ReconciliationOrderReportService(string endpointConfigurationName) - : base(endpointConfigurationName) { - } - - /// Creates a new instance of the class. - public ReconciliationOrderReportService(string endpointConfigurationName, string remoteAddress) - : base(endpointConfigurationName, remoteAddress) { - } - - /// Creates a new instance of the class. - public ReconciliationOrderReportService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) - : base(endpointConfigurationName, remoteAddress) { - } - - /// Creates a new instance of the class. - public ReconciliationOrderReportService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) - : base(binding, remoteAddress) { - } - - /// Gets an ReconciliationOrderReportPage of ReconciliationOrderReport objects that - /// satisfy the given Statement#query. The following - /// fields are supported for filtering: - /// - /// - /// - /// - /// - /// - /// - ///
PQL - /// Property Object Property
reconciliationReportId ReconciliationOrderReport#reconciliationReportId
id ReconciliationOrderReport#id
orderId ReconciliationOrderReport#orderId
proposalId ReconciliationOrderReport#proposalId
status ReconciliationOrderReport#status
submissionDateTime ReconciliationOrderReport#submissionDateTime
submitterId ReconciliationOrderReport#submitterId
The reconciliationReportId field is required and can - /// only be combined with an AND to other conditions. Furthermore, the - /// results may only belong to one ReconciliationReport. - ///
a Publisher Query Language statement used to - /// filter a set of reconciliation order reports. - /// the reconciliation order reports that match the given filter. - public virtual Google.Api.Ads.AdManager.v201808.ReconciliationOrderReportPage getReconciliationOrderReportsByStatement(Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.getReconciliationOrderReportsByStatement(filterStatement); - } - - public virtual System.Threading.Tasks.Task getReconciliationOrderReportsByStatementAsync(Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.getReconciliationOrderReportsByStatementAsync(filterStatement); - } - - /// Performs actions on the ReconciliationOrderReport objects that - /// match the given Statement#query. The following - /// fields are supported for filtering: - /// - /// - /// - ///
PQL - /// Property Object Property
orderId ReconciliationOrderReport#orderId
proposalId ReconciliationOrderReport#proposalId
reconciliationReportId ReconciliationOrderReport#reconciliationReportId
The following statement patterns are supported:
    - ///
  • reconciliationReportId = :reconciliationReportId AND orderId = :orderId
  • - ///
  • reconciliationReportId = :reconciliationReportId AND proposalId = - /// :proposalId
  • reconciliationReportId = :reconciliationReportId AND - /// (orderId IN (...) OR proposalId IN (...))
The IN clause could be - /// expanded to multiple OR expressions like (orderId = :orderId OR orderId = - /// :orderId OR ...) Only orders to which the API user has access will be included. - ///
the action to perform. - /// a Publisher Query Language statement used to - /// filter a set of orders and one reconciliation report. - /// the result of the action performed. - public virtual Google.Api.Ads.AdManager.v201808.UpdateResult performReconciliationOrderReportAction(Google.Api.Ads.AdManager.v201808.ReconciliationOrderReportAction reconciliationOrderReportAction, Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.performReconciliationOrderReportAction(reconciliationOrderReportAction, filterStatement); - } - - public virtual System.Threading.Tasks.Task performReconciliationOrderReportActionAsync(Google.Api.Ads.AdManager.v201808.ReconciliationOrderReportAction reconciliationOrderReportAction, Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.performReconciliationOrderReportActionAsync(reconciliationOrderReportAction, filterStatement); - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.ReconciliationOrderReportService.updateReconciliationOrderReportsResponse Google.Api.Ads.AdManager.v201808.ReconciliationOrderReportServiceInterface.updateReconciliationOrderReports(Wrappers.ReconciliationOrderReportService.updateReconciliationOrderReportsRequest request) { - return base.Channel.updateReconciliationOrderReports(request); - } - - /// Updates a list of reconciliation order - /// reports which belong to a ReconciliationReport. - /// a list of reconciliation order reports to - /// update - /// the updated reconciliation order reports - public virtual Google.Api.Ads.AdManager.v201808.ReconciliationOrderReport[] updateReconciliationOrderReports(Google.Api.Ads.AdManager.v201808.ReconciliationOrderReport[] reconciliationOrderReports) { - Wrappers.ReconciliationOrderReportService.updateReconciliationOrderReportsRequest inValue = new Wrappers.ReconciliationOrderReportService.updateReconciliationOrderReportsRequest(); - inValue.reconciliationOrderReports = reconciliationOrderReports; - Wrappers.ReconciliationOrderReportService.updateReconciliationOrderReportsResponse retVal = ((Google.Api.Ads.AdManager.v201808.ReconciliationOrderReportServiceInterface)(this)).updateReconciliationOrderReports(inValue); - return retVal.rval; - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201808.ReconciliationOrderReportServiceInterface.updateReconciliationOrderReportsAsync(Wrappers.ReconciliationOrderReportService.updateReconciliationOrderReportsRequest request) { - return base.Channel.updateReconciliationOrderReportsAsync(request); - } - - public virtual System.Threading.Tasks.Task updateReconciliationOrderReportsAsync(Google.Api.Ads.AdManager.v201808.ReconciliationOrderReport[] reconciliationOrderReports) { - Wrappers.ReconciliationOrderReportService.updateReconciliationOrderReportsRequest inValue = new Wrappers.ReconciliationOrderReportService.updateReconciliationOrderReportsRequest(); - inValue.reconciliationOrderReports = reconciliationOrderReports; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201808.ReconciliationOrderReportServiceInterface)(this)).updateReconciliationOrderReportsAsync(inValue)).Result.rval); - } - } - namespace Wrappers.ReconciliationLineItemReportService - { - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "updateReconciliationLineItemReports", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201808", IsWrapped = true)] - public partial class updateReconciliationLineItemReportsRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("reconciliationLineItemReports")] - public Google.Api.Ads.AdManager.v201808.ReconciliationLineItemReport[] reconciliationLineItemReports; - - /// Creates a new instance of the class. - public updateReconciliationLineItemReportsRequest() { - } - - /// Creates a new instance of the class. - public updateReconciliationLineItemReportsRequest(Google.Api.Ads.AdManager.v201808.ReconciliationLineItemReport[] reconciliationLineItemReports) { - this.reconciliationLineItemReports = reconciliationLineItemReports; - } - } - - - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "updateReconciliationLineItemReportsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201808", IsWrapped = true)] - public partial class updateReconciliationLineItemReportsResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v201808.ReconciliationLineItemReport[] rval; - - /// Creates a new instance of the class. - public updateReconciliationLineItemReportsResponse() { + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public ProposalCompanyAssociationType type { + get { + return this.typeField; } - - /// Creates a new instance of the class. - public updateReconciliationLineItemReportsResponse(Google.Api.Ads.AdManager.v201808.ReconciliationLineItemReport[] rval) { - this.rval = rval; + set { + this.typeField = value; + this.typeSpecified = true; } } - } - /// Billable revenue overrides for a ReconciliationLineItemReport to be used - /// instead of the Google calculated ones. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class BillableRevenueOverrides { - private Money netBillableRevenueOverrideField; - private Money grossBillableRevenueOverrideField; - - private Money billableRevenueOverrideField; - - /// The overridden ReconciliationLineItemReport#netBillableRevenue. - ///

If the ReconciliationLineItemReport data is for - /// a ProposalLineItem and the ReconciliationLineItemReport#pricingModel - /// is PricingModel#GROSS, then this value will be - /// calculated using the #billableRevenueOverride and the proposal - /// line item's billing settings. Otherwise, the value of this field will be the - /// same as the #billableRevenueOverride.

- ///

This value is read-only.

- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public Money netBillableRevenueOverride { + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool typeSpecified { get { - return this.netBillableRevenueOverrideField; + return this.typeFieldSpecified; } set { - this.netBillableRevenueOverrideField = value; + this.typeFieldSpecified = value; } } - /// The overriden ReconciliationLineItemReport#grossBillableRevenue. - ///

The value of this field will always be the same as what is set in the #billableRevenueOverride.

This value - /// is read-only.

+ /// List of unique IDs for Contact objects of the Company. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public Money grossBillableRevenueOverride { + [System.Xml.Serialization.XmlElementAttribute("contactIds", Order = 2)] + public long[] contactIds { get { - return this.grossBillableRevenueOverrideField; + return this.contactIdsField; } set { - this.grossBillableRevenueOverrideField = value; + this.contactIdsField = value; } } + } + - /// The manually entered billable revenue override, which will be used to calculate - /// both the #netBillableRevenueOverride - /// and the #grossBillableRevenueOverride. This - /// value is required. + /// Describes the type of a Company associated with a Proposal. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public Money billableRevenueOverride { - get { - return this.billableRevenueOverrideField; - } - set { - this.billableRevenueOverrideField = value; - } - } + UNKNOWN = 5, } - /// Contains reconciliation data of a LineItem and/or ProposalLineItem. + /// 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.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ReconciliationLineItemReport { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class Proposal { private long idField; private bool idFieldSpecified; - private long reconciliationReportIdField; + private bool isProgrammaticField; - private bool reconciliationReportIdFieldSpecified; + private bool isProgrammaticFieldSpecified; - private long orderIdField; + private long dfpOrderIdField; - private bool orderIdFieldSpecified; + private bool dfpOrderIdFieldSpecified; - private long proposalIdField; + private string nameField; - private bool proposalIdFieldSpecified; + private DateTime startDateTimeField; - private long lineItemIdField; + private DateTime endDateTimeField; - private bool lineItemIdFieldSpecified; + private ProposalStatus statusField; - private long proposalLineItemIdField; + private bool statusFieldSpecified; - private bool proposalLineItemIdFieldSpecified; + private bool isArchivedField; - private RateType rateTypeField; + private bool isArchivedFieldSpecified; - private bool rateTypeFieldSpecified; + private ProposalCompanyAssociation advertiserField; - private Money netRateField; + private ProposalCompanyAssociation[] agenciesField; - private Money grossRateField; + private string internalNotesField; - private PricingModel pricingModelField; + private SalespersonSplit primarySalespersonField; - private bool pricingModelFieldSpecified; + private long[] salesPlannerIdsField; - private long dfpVolumeField; + private long primaryTraffickerIdField; - private bool dfpVolumeFieldSpecified; + private bool primaryTraffickerIdFieldSpecified; - private long thirdPartyVolumeField; + private long[] sellerContactIdsField; - private bool thirdPartyVolumeFieldSpecified; + private long[] appliedTeamIdsField; - private long manualVolumeField; + private BaseCustomFieldValue[] customFieldValuesField; - private bool manualVolumeFieldSpecified; + private AppliedLabel[] appliedLabelsField; - private BillFrom reconciliationSourceField; + private AppliedLabel[] effectiveAppliedLabelsField; - private bool reconciliationSourceFieldSpecified; + private string currencyCodeField; - private long reconciledVolumeField; + private long exchangeRateField; - private bool reconciledVolumeFieldSpecified; + private bool exchangeRateFieldSpecified; - private long capVolumeField; + private bool refreshExchangeRateField; - private bool capVolumeFieldSpecified; + private bool refreshExchangeRateFieldSpecified; - private long rolloverVolumeField; + private bool isSoldField; - private bool rolloverVolumeFieldSpecified; + private bool isSoldFieldSpecified; - private long billableVolumeField; + private DateTime lastModifiedDateTimeField; - private bool billableVolumeFieldSpecified; + private ProposalMarketplaceInfo marketplaceInfoField; - private Money netBillableRevenueField; + private BuyerRfp buyerRfpField; - private Money grossBillableRevenueField; + private bool hasBuyerRfpField; - private BillableRevenueOverrides billableRevenueOverridesField; + private bool hasBuyerRfpFieldSpecified; - /// Uniquely identifies the ReconciliationLineItemReport. This value is - /// read-only and assigned by Google. + /// The unique ID of the Proposal. This attribute is read-only. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] public long id { @@ -55606,2406 +39425,2513 @@ public bool idSpecified { } } - /// The ID of the ReconciliationReport this - /// belongs to. This value is read-only. + /// Flag that specifies whether this Proposal is for programmatic + /// deals. This value is default to false. /// [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public long reconciliationReportId { + public bool isProgrammatic { get { - return this.reconciliationReportIdField; + return this.isProgrammaticField; } set { - this.reconciliationReportIdField = value; - this.reconciliationReportIdSpecified = 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 reconciliationReportIdSpecified { + public bool isProgrammaticSpecified { get { - return this.reconciliationReportIdFieldSpecified; + return this.isProgrammaticFieldSpecified; } set { - this.reconciliationReportIdFieldSpecified = value; + this.isProgrammaticFieldSpecified = value; } } - /// If this reconciliation data is for a LineItem, then this - /// contains the ID of the order that line item belongs to. Otherwise, this field - /// will have a value of 0. This value is read-only. + /// 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 orderId { + public long dfpOrderId { get { - return this.orderIdField; + return this.dfpOrderIdField; } set { - this.orderIdField = value; - this.orderIdSpecified = 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 orderIdSpecified { + public bool dfpOrderIdSpecified { get { - return this.orderIdFieldSpecified; + return this.dfpOrderIdFieldSpecified; } set { - this.orderIdFieldSpecified = value; + this.dfpOrderIdFieldSpecified = value; } } - /// If this reconciliation data is for a ProposalLineItem, then this contains the ID of the - /// proposal that proposal line item belongs to. Otherwise, this field will have a - /// value of 0. This value is read-only. + /// 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 = 3)] - public long proposalId { + public string name { get { - return this.proposalIdField; + return this.nameField; } set { - this.proposalIdField = value; - this.proposalIdSpecified = true; + this.nameField = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool proposalIdSpecified { + /// 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.proposalIdFieldSpecified; + return this.startDateTimeField; } set { - this.proposalIdFieldSpecified = value; + this.startDateTimeField = value; } } - /// If this reconciliation data is for a LineItem, then this - /// contains that line item's ID. Otherwise, this field will have a value of 0. This - /// value is read-only. + /// 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 = 4)] - public long lineItemId { + [System.Xml.Serialization.XmlElementAttribute(Order = 5)] + public DateTime endDateTime { get { - return this.lineItemIdField; + return this.endDateTimeField; } set { - this.lineItemIdField = value; - this.lineItemIdSpecified = true; + this.endDateTimeField = value; } } - /// true, if a value is specified for , false otherwise. + /// The status of the Proposal. This attribute is read-only. + /// + [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 lineItemIdSpecified { + public bool statusSpecified { get { - return this.lineItemIdFieldSpecified; + return this.statusFieldSpecified; } set { - this.lineItemIdFieldSpecified = value; + this.statusFieldSpecified = value; } } - /// If this reconciliation data is for a ProposalLineItem, then this contains that proposal - /// line item's ID. Otherwise, this field will have a value of 0. This value is - /// read-only. + /// The archival status of the Proposal. This attribute is read-only. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 5)] - public long proposalLineItemId { + [System.Xml.Serialization.XmlElementAttribute(Order = 7)] + public bool isArchived { get { - return this.proposalLineItemIdField; + return this.isArchivedField; } set { - this.proposalLineItemIdField = value; - this.proposalLineItemIdSpecified = 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 proposalLineItemIdSpecified { + public bool isArchivedSpecified { get { - return this.proposalLineItemIdFieldSpecified; + return this.isArchivedFieldSpecified; } set { - this.proposalLineItemIdFieldSpecified = value; + this.isArchivedFieldSpecified = value; } } - /// The RateType of the LineItem - /// and/or ProposalLineItem this reconciliation data - /// is for. This value is read-only. + /// 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 RateType rateType { + [System.Xml.Serialization.XmlElementAttribute(Order = 8)] + public ProposalCompanyAssociation advertiser { get { - return this.rateTypeField; + return this.advertiserField; } set { - this.rateTypeField = value; - this.rateTypeSpecified = true; + this.advertiserField = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool rateTypeSpecified { + /// 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("agencies", Order = 9)] + public ProposalCompanyAssociation[] agencies { get { - return this.rateTypeFieldSpecified; + return this.agenciesField; } set { - this.rateTypeFieldSpecified = value; + this.agenciesField = value; } } - /// The net rate of the LineItem and/or - /// ProposalLineItem this reconciliation data is for. - /// This value is read-only. + /// 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 = 7)] - public Money netRate { + [System.Xml.Serialization.XmlElementAttribute(Order = 10)] + public string internalNotes { get { - return this.netRateField; + return this.internalNotesField; } set { - this.netRateField = value; + this.internalNotesField = value; } } - /// If this reconciliation data is for a ProposalLineItem and the #pricingModel is PricingModel#GROSS, then this contains the gross rate of the proposal line item. Otherwise, the value of - /// this field will be the same as the #netRate. This value - /// is read-only. + /// 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 = 8)] - public Money grossRate { + [System.Xml.Serialization.XmlElementAttribute(Order = 11)] + public SalespersonSplit primarySalesperson { get { - return this.grossRateField; + return this.primarySalespersonField; } set { - this.grossRateField = value; + this.primarySalespersonField = value; } } - /// If this reconciliation data is for a ProposalLineItem, then this contains that proposal - /// line item's proposal's pricing model. Otherwise, the value of this field will be - /// PricingModel#NET. This value is read-only. + /// 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(Order = 9)] - public PricingModel pricingModel { + [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. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 13)] + public long primaryTraffickerId { get { - return this.pricingModelField; + return this.primaryTraffickerIdField; } set { - this.pricingModelField = value; - this.pricingModelSpecified = true; + this.primaryTraffickerIdField = value; + this.primaryTraffickerIdSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="primaryTraffickerId" />, false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool pricingModelSpecified { + public bool primaryTraffickerIdSpecified { get { - return this.pricingModelFieldSpecified; + return this.primaryTraffickerIdFieldSpecified; } set { - this.pricingModelFieldSpecified = value; + this.primaryTraffickerIdFieldSpecified = value; } } - /// The volume recorded by the DoubleClick for Publishers ad server. The meaning of - /// this value depends on the #rateType, for example if the - /// #rateType is RateType#CPC, it - /// represents clicks; if the #rateType is RateType#CPM, it represents impressions; if the #rateType is RateType#CPD, it - /// represents line item days. This value is read-only. + /// users who are the seller's contacts. This attribute is applicable when:
  • using + /// programmatic guaranteed, using sales management.
  • using programmatic + /// guaranteed, not using sales management.
  • using preferred deals, not + /// using sales management.
///
- [System.Xml.Serialization.XmlElementAttribute(Order = 10)] - public long dfpVolume { + [System.Xml.Serialization.XmlElementAttribute("sellerContactIds", Order = 14)] + public long[] sellerContactIds { get { - return this.dfpVolumeField; + return this.sellerContactIdsField; } set { - this.dfpVolumeField = value; - this.dfpVolumeSpecified = true; + this.sellerContactIdsField = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool dfpVolumeSpecified { + /// 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("appliedTeamIds", Order = 15)] + public long[] appliedTeamIds { get { - return this.dfpVolumeFieldSpecified; + return this.appliedTeamIdsField; } set { - this.dfpVolumeFieldSpecified = value; + this.appliedTeamIdsField = value; } } - /// The volume recorded by the third-party ad server. The meaning of this value - /// depends on the #rateType, for example if the #rateType is RateType#CPC, it - /// represents clicks; if the #rateType is RateType#CPM, it represents impressions; if the #rateType is RateType#CPD, it - /// represents line item days. This value is optional and defaults to - /// null. + /// 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(Order = 11)] - public long thirdPartyVolume { + [System.Xml.Serialization.XmlElementAttribute("customFieldValues", Order = 16)] + public BaseCustomFieldValue[] customFieldValues { get { - return this.thirdPartyVolumeField; + return this.customFieldValuesField; } set { - this.thirdPartyVolumeField = value; - this.thirdPartyVolumeSpecified = true; + this.customFieldValuesField = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool thirdPartyVolumeSpecified { + /// The set of labels applied directly to the Proposal. This attribute + /// is optional. + /// + [System.Xml.Serialization.XmlElementAttribute("appliedLabels", Order = 17)] + public AppliedLabel[] appliedLabels { get { - return this.thirdPartyVolumeFieldSpecified; + return this.appliedLabelsField; } set { - this.thirdPartyVolumeFieldSpecified = value; + this.appliedLabelsField = value; } } - /// A manually entered volume. The meaning of this value depends on the #rateType, for example if the #rateType is RateType#CPC, it - /// represents clicks; if the #rateType is RateType#CPM, it represents impressions; if the #rateType is RateType#CPD, it - /// represents line item days. This value is optional and defaults to - /// null. + /// 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(Order = 12)] - public long manualVolume { + [System.Xml.Serialization.XmlElementAttribute("effectiveAppliedLabels", Order = 18)] + public AppliedLabel[] effectiveAppliedLabels { get { - return this.manualVolumeField; + return this.effectiveAppliedLabelsField; } set { - this.manualVolumeField = value; - this.manualVolumeSpecified = true; + this.effectiveAppliedLabelsField = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool manualVolumeSpecified { + /// The currency code of this Proposal. This attribute is optional and + /// defaults to network's currency code. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 19)] + public string currencyCode { get { - return this.manualVolumeFieldSpecified; + return this.currencyCodeField; } set { - this.manualVolumeFieldSpecified = value; + this.currencyCodeField = value; } } - /// Specifies which of #dfpVolume, #thirdPartyVolume, or #manualVolume should be used as the #reconciledVolume. The value is optional. If this - /// reconciliation data is for a ProposalLineItem - /// then this will default to the proposal line item's ProposalLineItem#billingSource. - /// Otherwise, this will default to BillFrom#DFP. + /// The exchange rate from the #currencyCode to the network's currency. The value is stored as the + /// exchange rate times 10,000,000,000 truncated to a long. This attribute is + /// assigned by Google when first created or updated with #refreshExchangeRate set to true. + /// This attribute is ignored if the feature is not enabled. This attribute is + /// read-only. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 13)] - public BillFrom reconciliationSource { + [System.Xml.Serialization.XmlElementAttribute(Order = 20)] + public long exchangeRate { get { - return this.reconciliationSourceField; + return this.exchangeRateField; } set { - this.reconciliationSourceField = value; - this.reconciliationSourceSpecified = true; + this.exchangeRateField = value; + this.exchangeRateSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="exchangeRate" />, false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool reconciliationSourceSpecified { + public bool exchangeRateSpecified { get { - return this.reconciliationSourceFieldSpecified; + return this.exchangeRateFieldSpecified; } set { - this.reconciliationSourceFieldSpecified = value; + this.exchangeRateFieldSpecified = value; } } - /// The reconciled volume, which is a view of one of the other volume fields - /// depending on what the #reconciliationSource - /// is set to. The different possibilities are as follows: - ///
Reconciliation source Value of this - /// field
BillFrom#MANUAL#manualVolume
BillFrom#DFP #dfpVolume
BillFrom#THIRD_PARTY #thirdPartyVolume
BillFrom#DEFAULT Calculated by Google to be - /// either #dfpVolume or #thirdPartyVolume.
The meaning - /// of this value depends on the #rateType, for example if - /// the #rateType is RateType#CPC, it represents clicks; if the #rateType is RateType#CPM, it - /// represents impressions; if the #rateType is RateType#CPD, it represents line item days. This value - /// is read-only. + /// Set this field to true to update the #exchangeRate to the latest exchange rate when updating + /// the proposal. This attribute is optional and defaults to false. + /// This attribute is ignored if the feature is not enabled. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 14)] - public long reconciledVolume { + [System.Xml.Serialization.XmlElementAttribute(Order = 21)] + public bool refreshExchangeRate { get { - return this.reconciledVolumeField; + return this.refreshExchangeRateField; } set { - this.reconciledVolumeField = value; - this.reconciledVolumeSpecified = true; + this.refreshExchangeRateField = value; + this.refreshExchangeRateSpecified = true; } } /// true, if a value is specified for , false otherwise. + /// cref="refreshExchangeRate" />, false otherwise.
[System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool reconciledVolumeSpecified { + public bool refreshExchangeRateSpecified { get { - return this.reconciledVolumeFieldSpecified; + return this.refreshExchangeRateFieldSpecified; } set { - this.reconciledVolumeFieldSpecified = value; + this.refreshExchangeRateFieldSpecified = value; } } - /// If this reconciliation data is for a ProposalLineItem, then this contains the cap volume, - /// which is calculated based on the proposal line item's billing settings (may be - /// null for certain billing settings). Otherwise, this is - /// null. This value is read-only. + /// 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 = 15)] - public long capVolume { + [System.Xml.Serialization.XmlElementAttribute(Order = 22)] + public bool isSold { get { - return this.capVolumeField; + return this.isSoldField; } set { - this.capVolumeField = value; - this.capVolumeSpecified = true; + this.isSoldField = value; + this.isSoldSpecified = 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 capVolumeSpecified { + public bool isSoldSpecified { get { - return this.capVolumeFieldSpecified; + return this.isSoldFieldSpecified; } set { - this.capVolumeFieldSpecified = value; + this.isSoldFieldSpecified = value; } } - /// If this reconciliation data is for a ProposalLineItem, then this contains the rollover - /// volume from previous cycles, which is calculated based on the proposal line - /// item's billing settings (may be null for certain billing settings). - /// Otherwise, this is null. This value is read-only. + /// The date and time this Proposal was last modified. This attribute + /// is read-only. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 16)] - public long rolloverVolume { + [System.Xml.Serialization.XmlElementAttribute(Order = 23)] + public DateTime lastModifiedDateTime { get { - return this.rolloverVolumeField; + return this.lastModifiedDateTimeField; } set { - this.rolloverVolumeField = value; - this.rolloverVolumeSpecified = true; + this.lastModifiedDateTimeField = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool rolloverVolumeSpecified { + /// The marketplace info of this proposal if it has a corresponding order in + /// Marketplace. This attribute is applicable + /// when:
  • using programmatic guaranteed, using sales + /// management.
  • using programmatic guaranteed, not using sales + /// management.
+ ///
+ [System.Xml.Serialization.XmlElementAttribute(Order = 24)] + public ProposalMarketplaceInfo marketplaceInfo { get { - return this.rolloverVolumeFieldSpecified; + return this.marketplaceInfoField; } set { - this.rolloverVolumeFieldSpecified = value; + this.marketplaceInfoField = value; } } - /// If this reconciliation data is for a ProposalLineItem, then this contains the billable - /// volume, which is calculated from the #reconciledVolume and the proposal line item's - /// billing settings (may be null for certain billing settings). - /// Otherwise, the value of this field will be the same as the #reconciledVolume. This value is read-only. + /// The buyer RFP associated with this Proposal, which is optional. + /// This field will be null if the proposal is not initiated from RFP. This attribute is applicable when:
    + ///
  • using programmatic guaranteed, not using sales management.
  • using + /// preferred deals, not using sales management.
///
- [System.Xml.Serialization.XmlElementAttribute(Order = 17)] - public long billableVolume { + [System.Xml.Serialization.XmlElementAttribute(Order = 25)] + public BuyerRfp buyerRfp { get { - return this.billableVolumeField; + return this.buyerRfpField; } set { - this.billableVolumeField = value; - this.billableVolumeSpecified = true; + this.buyerRfpField = value; } } - /// true, if a value is specified for , false otherwise. + /// Whether a Proposal contains a BuyerRfp field. If this field is true, it indicates that the + /// Proposal in question orignated from a buyer. This attribute is applicable when:
    + ///
  • using programmatic guaranteed, not using sales management.
  • using + /// preferred deals, not using sales management.
+ ///
+ [System.Xml.Serialization.XmlElementAttribute(Order = 26)] + 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 billableVolumeSpecified { + public bool hasBuyerRfpSpecified { get { - return this.billableVolumeFieldSpecified; + return this.hasBuyerRfpFieldSpecified; } set { - this.billableVolumeFieldSpecified = value; + this.hasBuyerRfpFieldSpecified = value; } } + } - /// The net billable revenue. If this reconciliation data is for a ProposalLineItem, this is calculated from the #netRate, #billableVolume, and - /// the proposal line item's billing settings. This may be null for - /// certain billing settings. Otherwise, this is calculated from the #netRate and #billableVolume. - /// This value is read-only. + + /// Describes the Proposal status. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum ProposalStatus { + /// Indicates that the Proposal has just been created or + /// retracted but no approval has been requested yet. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 18)] - public Money netBillableRevenue { + DRAFT = 0, + /// Indicates that a request for approval has been made for the Proposal. + /// + PENDING_APPROVAL = 1, + /// Indicates that the Proposal has been approved and is + /// ready to serve. + /// + APPROVED = 2, + /// Indicates that the Proposal has been rejected in the + /// approval workflow. + /// + REJECTED = 3, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 4, + } + + + /// Lists all errors associated with workflow validation.

In versions V201502 and + /// earlier, the workflow error message defined by a network administrator that + /// describes how a workflow rule is violated is stored in the #trigger. Beginning in V201505, it is stored in the #errorString.

+ ///
+ [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class WorkflowValidationError : ApiError { + private WorkflowValidationErrorReason reasonField; + + private bool reasonFieldSpecified; + + /// The error reason represented by an enum. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public WorkflowValidationErrorReason 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.netBillableRevenueField; + return this.reasonFieldSpecified; } set { - this.netBillableRevenueField = value; + this.reasonFieldSpecified = value; } } + } + + + /// The reasons for the target error. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "WorkflowValidationError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum WorkflowValidationErrorReason { + /// The rule condition validation result triggers a warning. + /// + WARNING = 0, + /// The rule condition validation result triggers an error. + /// + ERROR = 1, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 2, + } + + + /// Lists all errors associated with performing actions within WorkflowAction. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class WorkflowActionError : ApiError { + private WorkflowActionErrorReason reasonField; - /// The gross billable revenue. If this reconciliation data is for a ProposalLineItem and the #pricingModel is PricingModel#GROSS, this is calculated from the #grossRate, #billableVolume, - /// and the proposal line item's billing settings. This may be null for - /// certain billing settings. Otherwise, the value of this field will be the same as - /// the #netBillableRevenue. This value is - /// read-only. + private bool reasonFieldSpecified; + + /// The error reason represented by an enum. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 19)] - public Money grossBillableRevenue { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public WorkflowActionErrorReason reason { get { - return this.grossBillableRevenueField; + return this.reasonField; } set { - this.grossBillableRevenueField = value; + this.reasonField = value; + this.reasonSpecified = true; } } - /// Manual overrides for the Google calculated billable revenue fields. If set, it - /// indicates that these values should be used as the final billable revenue instead - /// of the Google calculated ones. This value is optional and defaults to - /// null. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 20)] - public BillableRevenueOverrides billableRevenueOverrides { + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool reasonSpecified { get { - return this.billableRevenueOverridesField; + return this.reasonFieldSpecified; } set { - this.billableRevenueOverridesField = value; + this.reasonFieldSpecified = value; } } } - /// Values for which to bill from. + /// The reasons for the target error. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum BillFrom { - /// Use default bill from. Google checks whether line item is created in DoubleClick - /// Sales Manager. If yes, the Proposal#billingSource will be the billing - /// source. Otherwise, the DFP will be the billing source. + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "WorkflowActionError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum WorkflowActionErrorReason { + /// The action does not exist or is not applicable to the current state. /// - DEFAULT = 0, - /// DFP volume. + NOT_APPLICABLE = 0, + /// Means there's no workflow definition found for the entity. + /// + WORKFLOW_DEFINITION_NOT_FOUND = 1, + /// Means no action is given, when user approve/reject a proposal, the action id + /// list cannot be empty. /// - DFP = 1, - /// Third-party volume. + EMPTY_ACTION_LIST = 2, + /// Means the user is not an approver of this action. /// - THIRD_PARTY = 2, - /// Manual volume. + NOT_ACTION_APPROVER = 3, + /// Means the workflow is already completed. + /// + WORKFLOW_ALREADY_COMPLETED = 4, + /// Means the workflow is already failed. + /// + WORKFLOW_ALREADY_FAILED = 5, + /// Means the workflow is already canceled. + /// + WORKFLOW_ALREADY_CANCELED = 6, + /// Means the action is already completed. + /// + ACTION_COMPLETED = 7, + /// Means the action is already failed. + /// + ACTION_FAILED = 8, + /// Means the action is already canceled. + /// + ACTION_CANCELED = 9, + /// Means the action currently is not active. /// - MANUAL = 3, + ACTION_NOT_ACTIVE = 10, /// The value returned if the actual value is not exposed by the requested API /// version. /// - UNKNOWN = 4, + UNKNOWN = 11, } - /// Captures a page of ReconciliationLineItemReport objects. + /// Errors associated with programmatic proposal line + /// items. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ReconciliationLineItemReportPage { - private ReconciliationLineItemReport[] resultsField; - - private int startIndexField; - - private bool startIndexFieldSpecified; - - private int totalResultSetSizeField; - - private bool totalResultSetSizeFieldSpecified; - - /// The collection of ReconciliationLineItemReport objects - /// contained in this page. - /// - [System.Xml.Serialization.XmlElementAttribute("results", Order = 0)] - public ReconciliationLineItemReport[] results { - get { - return this.resultsField; - } - set { - this.resultsField = 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; - } - } + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class ProposalLineItemProgrammaticError : ApiError { + private ProposalLineItemProgrammaticErrorReason reasonField; - /// 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; - } - } + 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 = 2)] - public int totalResultSetSize { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public ProposalLineItemProgrammaticErrorReason 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; } } } - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", ConfigurationName = "Google.Api.Ads.AdManager.v201808.ReconciliationLineItemReportServiceInterface")] - public interface ReconciliationLineItemReportServiceInterface - { - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v201808.ReconciliationLineItemReportPage getReconciliationLineItemReportsByStatement(Google.Api.Ads.AdManager.v201808.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getReconciliationLineItemReportsByStatementAsync(Google.Api.Ads.AdManager.v201808.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.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Wrappers.ReconciliationLineItemReportService.updateReconciliationLineItemReportsResponse updateReconciliationLineItemReports(Wrappers.ReconciliationLineItemReportService.updateReconciliationLineItemReportsRequest request); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task updateReconciliationLineItemReportsAsync(Wrappers.ReconciliationLineItemReportService.updateReconciliationLineItemReportsRequest request); - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public interface ReconciliationLineItemReportServiceInterfaceChannel : Google.Api.Ads.AdManager.v201808.ReconciliationLineItemReportServiceInterface, System.ServiceModel.IClientChannel - { + /// The reasons for the target error. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ProposalLineItemProgrammaticError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum ProposalLineItemProgrammaticErrorReason { + /// Programmatic proposal line items only support ProductType#DFP. + /// + 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. For RateType#CPD proposal line + /// items, only 100% is allowed + /// + 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, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 10, } - /// Provides methods for retrieving and updating ReconciliationLineItemReport objects. + /// Lists all errors associated with proposal line items. /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public partial class ReconciliationLineItemReportService : AdManagerSoapClient, IReconciliationLineItemReportService { - /// Creates a new instance of the class. - public ReconciliationLineItemReportService() { - } - - /// Creates a new instance of the class. - public ReconciliationLineItemReportService(string endpointConfigurationName) - : base(endpointConfigurationName) { - } - - /// Creates a new instance of the class. - public ReconciliationLineItemReportService(string endpointConfigurationName, string remoteAddress) - : base(endpointConfigurationName, remoteAddress) { - } - - /// Creates a new instance of the class. - public ReconciliationLineItemReportService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) - : base(endpointConfigurationName, remoteAddress) { - } - - /// Creates a new instance of the class. - public ReconciliationLineItemReportService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) - : base(binding, remoteAddress) { - } - - /// Gets a ReconciliationLineItemReportPage of - /// ReconciliationLineItemReport objects - /// that satisfy the given Statement#query. The - /// following fields are supported for filtering: - /// - /// - /// - /// - /// - /// - ///
PQL - /// Property Object Property
id ReconciliationLineItemReport#id
reconciliationReportId ReconciliationLineItemReport#reconciliationReportId
orderId ReconciliationLineItemReport#orderId
proposalId ReconciliationLineItemReport#proposalId
lineItemId ReconciliationLineItemReport#lineItemId
proposalLineItemId ReconciliationLineItemReport#proposalLineItemId
- ///
a Publisher Query Language statement used to - /// filter the result - /// the ReconciliationLineItemReport objects - /// that match the given filter - public virtual Google.Api.Ads.AdManager.v201808.ReconciliationLineItemReportPage getReconciliationLineItemReportsByStatement(Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.getReconciliationLineItemReportsByStatement(filterStatement); - } - - public virtual System.Threading.Tasks.Task getReconciliationLineItemReportsByStatementAsync(Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.getReconciliationLineItemReportsByStatementAsync(filterStatement); - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.ReconciliationLineItemReportService.updateReconciliationLineItemReportsResponse Google.Api.Ads.AdManager.v201808.ReconciliationLineItemReportServiceInterface.updateReconciliationLineItemReports(Wrappers.ReconciliationLineItemReportService.updateReconciliationLineItemReportsRequest request) { - return base.Channel.updateReconciliationLineItemReports(request); - } - - /// Updates a list of ReconciliationLineItemReport objects - /// which belong to same ReconciliationReport. - /// a list of reconciliation line item reports to - /// update - /// the updated ReconciliationLineItemReport - /// objects - public virtual Google.Api.Ads.AdManager.v201808.ReconciliationLineItemReport[] updateReconciliationLineItemReports(Google.Api.Ads.AdManager.v201808.ReconciliationLineItemReport[] reconciliationLineItemReports) { - Wrappers.ReconciliationLineItemReportService.updateReconciliationLineItemReportsRequest inValue = new Wrappers.ReconciliationLineItemReportService.updateReconciliationLineItemReportsRequest(); - inValue.reconciliationLineItemReports = reconciliationLineItemReports; - Wrappers.ReconciliationLineItemReportService.updateReconciliationLineItemReportsResponse retVal = ((Google.Api.Ads.AdManager.v201808.ReconciliationLineItemReportServiceInterface)(this)).updateReconciliationLineItemReports(inValue); - return retVal.rval; - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201808.ReconciliationLineItemReportServiceInterface.updateReconciliationLineItemReportsAsync(Wrappers.ReconciliationLineItemReportService.updateReconciliationLineItemReportsRequest request) { - return base.Channel.updateReconciliationLineItemReportsAsync(request); - } - - public virtual System.Threading.Tasks.Task updateReconciliationLineItemReportsAsync(Google.Api.Ads.AdManager.v201808.ReconciliationLineItemReport[] reconciliationLineItemReports) { - Wrappers.ReconciliationLineItemReportService.updateReconciliationLineItemReportsRequest inValue = new Wrappers.ReconciliationLineItemReportService.updateReconciliationLineItemReportsRequest(); - inValue.reconciliationLineItemReports = reconciliationLineItemReports; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201808.ReconciliationLineItemReportServiceInterface)(this)).updateReconciliationLineItemReportsAsync(inValue)).Result.rval); - } - } - 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/v201808", IsWrapped = true)] - public partial class createAdRulesRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("adRules")] - public Google.Api.Ads.AdManager.v201808.AdRule[] adRules; - - /// Creates a new instance of the - /// class. - public createAdRulesRequest() { - } - - /// Creates a new instance of the - /// class. - public createAdRulesRequest(Google.Api.Ads.AdManager.v201808.AdRule[] adRules) { - this.adRules = adRules; - } - } - + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class ProposalLineItemError : ApiError { + private ProposalLineItemErrorReason 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 = "createAdRulesResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201808", IsWrapped = true)] - public partial class createAdRulesResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v201808.AdRule[] rval; + private bool reasonFieldSpecified; - /// Creates a new instance of the - /// class. - public createAdRulesResponse() { + /// The error reason represented by an enum. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public ProposalLineItemErrorReason reason { + get { + return this.reasonField; } - - /// Creates a new instance of the - /// class. - public createAdRulesResponse(Google.Api.Ads.AdManager.v201808.AdRule[] 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 = "updateAdRules", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201808", IsWrapped = true)] - public partial class updateAdRulesRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("adRules")] - public Google.Api.Ads.AdManager.v201808.AdRule[] adRules; - - /// Creates a new instance of the - /// class. - public updateAdRulesRequest() { + /// 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 updateAdRulesRequest(Google.Api.Ads.AdManager.v201808.AdRule[] adRules) { - this.adRules = adRules; + 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 = "updateAdRulesResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201808", IsWrapped = true)] - public partial class updateAdRulesResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v201808.AdRule[] rval; + /// The reasons for the target error. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ProposalLineItemError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum ProposalLineItemErrorReason { + /// The proposal line item's rate card is not the same as other proposal line items + /// in the proposal. + /// + NOT_SAME_RATE_CARD = 0, + /// The proposal line item's type is not yet supported by Sales Manager. + /// + LINE_ITEM_TYPE_NOT_ALLOWED = 1, + /// The proposal line item's end date time is not after its start date time. + /// + END_DATE_TIME_NOT_AFTER_START_TIME = 2, + /// The proposal line item's end date time is after 1/1/2037. + /// + END_DATE_TIME_TOO_LATE = 3, + /// The proposal line item's start date time is in past. + /// + START_DATE_TIME_IS_IN_PAST = 4, + /// The proposal line item's end date time is in past. + /// + END_DATE_TIME_IS_IN_PAST = 5, + /// Frontloaded delivery rate type is not allowed. + /// + FRONTLOADED_NOT_ALLOWED = 6, + /// Roadblocking to display all creatives is not allowed. + /// + ALL_ROADBLOCK_NOT_ALLOWED = 7, + /// Roadblocking to display all master and companion creative set is not allowed. + /// + CREATIVE_SET_ROADBLOCK_NOT_ALLOWED = 8, + /// Some changes may not be allowed because the related line item has already + /// started. + /// + ALREADY_STARTED = 9, + /// The setting is conflict with product's restriction. + /// + CONFLICT_WITH_PRODUCT = 10, + /// The proposal line item's setting violates the product's built-in targeting + /// compatibility restriction. + /// + VIOLATE_BUILT_IN_TARGETING_COMPATIBILITY_RESTRICTION = 11, + /// The proposal line item's setting violates the product's built-in targeting + /// locked restriction. + /// + VIOLATE_BUILT_IN_TARGETING_LOCKED_RESTRICTION = 12, + /// Cannot target mobile-only targeting criteria. + /// + 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 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 value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 35, + } - /// Creates a new instance of the - /// class. - public updateAdRulesResponse() { - } - /// Creates a new instance of the - /// class. - public updateAdRulesResponse(Google.Api.Ads.AdManager.v201808.AdRule[] 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. + /// Lists all errors associated with proposals. /// - [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.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public abstract partial class BaseAdRuleSlot { - private AdRuleSlotBehavior slotBehaviorField; - - private bool slotBehaviorFieldSpecified; - - private long minVideoAdDurationField; - - private bool minVideoAdDurationFieldSpecified; - - 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 minPodDurationField; - - private bool minPodDurationFieldSpecified; - - private long maxPodDurationField; - - private bool maxPodDurationFieldSpecified; - - private int maxAdsInPodField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class ProposalError : ApiError { + private ProposalErrorReason reasonField; - private bool maxAdsInPodFieldSpecified; + private bool reasonFieldSpecified; - /// 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.

+ /// The error reason represented by an enum. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public AdRuleSlotBehavior slotBehavior { + public ProposalErrorReason reason { get { - return this.slotBehaviorField; + return this.reasonField; } set { - this.slotBehaviorField = value; - this.slotBehaviorSpecified = 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 slotBehaviorSpecified { + public bool reasonSpecified { get { - return this.slotBehaviorFieldSpecified; + return this.reasonFieldSpecified; } set { - this.slotBehaviorFieldSpecified = value; + this.reasonFieldSpecified = value; } } + } - /// The minimum duration in milliseconds of video ads within this slot. This - /// attribute is optional and defaults to 0. + + /// The reasons for the target error. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ProposalError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum ProposalErrorReason { + /// Unknown error from ad-server /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public long minVideoAdDuration { - get { - return this.minVideoAdDurationField; - } - set { - this.minVideoAdDurationField = value; - this.minVideoAdDurationSpecified = true; - } - } + AD_SERVER_UNKNOWN_ERROR = 0, + /// Ad-server reports an api error for the operation. + /// + AD_SERVER_API_ERROR = 1, + /// Advertiser cannot be updated once the proposal has been reserved. + /// + 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, + } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool minVideoAdDurationSpecified { - get { - return this.minVideoAdDurationFieldSpecified; - } - set { - this.minVideoAdDurationFieldSpecified = 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 = 2)] - public long maxVideoAdDuration { - get { - return this.maxVideoAdDurationField; - } - set { - this.maxVideoAdDurationField = value; - this.maxVideoAdDurationSpecified = true; - } - } + /// Lists all errors associated with performing actions on Proposal objects. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class ProposalActionError : ApiError { + private ProposalActionErrorReason reasonField; - /// 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; - } - } + private bool reasonFieldSpecified; - /// 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. + /// The error reason represented by an enum. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public MidrollFrequencyType videoMidrollFrequencyType { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public ProposalActionErrorReason reason { get { - return this.videoMidrollFrequencyTypeField; + return this.reasonField; } set { - this.videoMidrollFrequencyTypeField = value; - this.videoMidrollFrequencyTypeSpecified = 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 videoMidrollFrequencyTypeSpecified { + public bool reasonSpecified { get { - return this.videoMidrollFrequencyTypeFieldSpecified; + return this.reasonFieldSpecified; } set { - this.videoMidrollFrequencyTypeFieldSpecified = value; + this.reasonFieldSpecified = 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 = 4)] - 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. + /// The reasons for the target error. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ProposalActionError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum ProposalActionErrorReason { + /// The operation is not applicable to the current state. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 5)] - public AdRuleSlotBumper bumper { + NOT_APPLICABLE = 0, + /// The operation cannot be applied because the proposal is archived. + /// + IS_ARCHIVED = 1, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 2, + } + + + /// Lists all error reasons associated with products. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class ProductError : ApiError { + private ProductErrorReason reasonField; + + private bool reasonFieldSpecified; + + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public ProductErrorReason reason { get { - return this.bumperField; + return this.reasonField; } set { - this.bumperField = value; - this.bumperSpecified = 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 bumperSpecified { + public bool reasonSpecified { get { - return this.bumperFieldSpecified; + return this.reasonFieldSpecified; } set { - this.bumperFieldSpecified = value; + this.reasonFieldSpecified = value; } } + } - /// The maximum duration of bumper ads within this slot. This attribute is optional - /// and defaults to 0. + + /// The reasons for the target error. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ProductError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum ProductErrorReason { + /// The specified template is not found. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 6)] - public long maxBumperDuration { - get { - return this.maxBumperDurationField; - } - set { - this.maxBumperDurationField = value; - this.maxBumperDurationSpecified = true; - } - } + TEMPLATE_NOT_FOUND = 0, + /// The product ID is not correctly formed. + /// + MALFORMED_PRODUCT_ID = 1, + /// The product ID does not match the expanded features configured in its product + /// template. + /// + BAD_PRODUCT_ID_FEATURE = 2, + /// The product template ID specified in the parameters does not match the product + /// template ID implied in the product ID. + /// + BAD_PRODUCT_TEMPLATE_ID = 3, + /// Cannot update an archived product. + /// + CANNOT_UPDATE_ARCHIVED_PRODUCT = 4, + /// The query is too large to be processed. + /// + QUERY_TOO_LARGE = 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 maxBumperDurationSpecified { - get { - return this.maxBumperDurationFieldSpecified; - } - set { - this.maxBumperDurationFieldSpecified = value; - } - } - /// The minimum pod duration in milliseconds for this slot. This attribute is - /// optional and defaults to 0. + /// Lists all errors associated with Package objects. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class PackageError : ApiError { + private PackageErrorReason reasonField; + + private bool reasonFieldSpecified; + + /// The error reason represented by an enum. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 7)] - public long minPodDuration { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public PackageErrorReason reason { get { - return this.minPodDurationField; + return this.reasonField; } set { - this.minPodDurationField = value; - this.minPodDurationSpecified = 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 minPodDurationSpecified { + public bool reasonSpecified { get { - return this.minPodDurationFieldSpecified; + return this.reasonFieldSpecified; } set { - this.minPodDurationFieldSpecified = value; + this.reasonFieldSpecified = value; } } + } - /// The maximum pod duration in milliseconds for this slot. This attribute is - /// optional and defaults to 0. + + /// The reasons for the PackageError. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "PackageError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum PackageErrorReason { + /// Package cannot be created from an inactive or archived product package. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 8)] - public long maxPodDuration { - get { - return this.maxPodDurationField; - } - set { - this.maxPodDurationField = value; - this.maxPodDurationSpecified = true; - } - } + INVAILD_PRODUCT_PACKAGE = 0, + /// The rate card is inactive. + /// + INACTIVE_RATE_CARD = 1, + /// There is no association between the product package and the rate card. + /// + PRODUCT_PACKAGE_NOT_IN_RATE_CARD = 2, + /// There are no unarchived product package items in this product package. + /// + HAS_NO_UNARCHIVED_PRODUCT_PACKAGE_ITEM = 3, + /// The package's rate card is not the same as other packages or proposal line items + /// in the proposal. + /// + NOT_SAME_RATE_CARD = 4, + /// 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 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. + /// Lists all errors for executing actions on Package objects. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class PackageActionError : ApiError { + private PackageActionErrorReason reasonField; + + private bool reasonFieldSpecified; + + /// The error reason represented by an enum. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 9)] - public int maxAdsInPod { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public PackageActionErrorReason reason { get { - return this.maxAdsInPodField; + return this.reasonField; } set { - this.maxAdsInPodField = value; - this.maxAdsInPodSpecified = 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 maxAdsInPodSpecified { + public bool reasonSpecified { get { - return this.maxAdsInPodFieldSpecified; + return this.reasonFieldSpecified; } set { - this.maxAdsInPodFieldSpecified = value; + this.reasonFieldSpecified = value; } } } - /// The types of behaviors for ads within a ad rule - /// slot. + /// The reasons for the target error. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum AdRuleSlotBehavior { - /// This ad rule always includes this slot's ads. - /// - ALWAYS_SHOW = 0, - /// This ad rule never includes this slot's ads. + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "PackageActionError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum PackageActionErrorReason { + /// The operation is not applicable because the proposal line items under these + /// packages have already been created. /// - NEVER_SHOW = 1, - /// Defer to lower priority rules. This ad rule doesn't specify guidelines for this - /// slot's ads. + PROPOSAL_LINE_ITEMS_HAVE_BEEN_CREATED = 0, + /// The operation is not applicable because the containing proposal is not editable. /// - DEFER = 2, + PROPOSAL_NOT_EDITABLE = 1, /// The value returned if the actual value is not exposed by the requested API /// version. /// - UNKNOWN = 3, + UNKNOWN = 2, } - /// Frequency types for mid-roll ad rule slots. + /// Errors associated with creating or updating programmatic proposals. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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. + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class DealError : ApiError { + private DealErrorReason reasonField; + + private bool reasonFieldSpecified; + + /// The error reason represented by an enum. /// - UNKNOWN = 5, + [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; + } + } } - /// Types of bumper ads on an ad rule slot. + /// The reasons for the target error. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum AdRuleSlotBumper { - /// Do not show a bumper ad. + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "DealError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum DealErrorReason { + /// Cannot add new proposal line items to a Proposal when Proposal#isSold + /// is true. /// - NONE = 0, - /// Show a bumper ad before the slot's other ads. + CANNOT_ADD_LINE_ITEM_WHEN_SOLD = 0, + /// Cannot archive proposal line items from a Proposal when Proposal#isSold + /// is true. /// - BEFORE = 1, - /// Show a bumper ad after the slot's other ads. + CANNOT_ARCHIVE_LINE_ITEM_WHEN_SOLD = 1, + /// Cannot archive a Proposal when Proposal#isSold is true. /// - AFTER = 2, - /// Show a bumper before and after the slot's other ads. + CANNOT_ARCHIVE_PROPOSAL_WHEN_SOLD = 2, + /// Cannot change a field that requires buyer approval during the current operation. /// - BEFORE_AND_AFTER = 3, + 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 = 4, + UNKNOWN = 13, } - /// The BaseAdRuleSlot subtype returned if the actual - /// type is not exposed by the requested API version. + /// Lists all errors associated with the billing settings of a proposal or proposal + /// line item. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class UnknownAdRuleSlot : BaseAdRuleSlot { - } - + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class BillingError : ApiError { + private BillingErrorReason reasonField; - /// 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.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class StandardPoddingAdRuleSlot : BaseAdRuleSlot { - } + private bool reasonFieldSpecified; + /// The error reason represented by an enum. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public BillingErrorReason reason { + get { + return this.reasonField; + } + set { + this.reasonField = value; + this.reasonSpecified = true; + } + } - /// 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.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class OptimizedPoddingAdRuleSlot : BaseAdRuleSlot { + /// 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; + } + } } - /// An ad rule slot with no podding. It is defined by a BaseAdRuleSlot#maxVideoAdDuration. + /// The reasons for the target error. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class NoPoddingAdRuleSlot : BaseAdRuleSlot { + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "BillingError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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 = 9, } - /// An AdRule contains data that the ad server will use to - /// generate a playlist of video ads. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class AdRule { - private long adRuleIdField; - - private bool adRuleIdFieldSpecified; - - private string nameField; - - private int priorityField; - - private bool priorityFieldSpecified; - - private Targeting targetingField; - - private DateTime startDateTimeField; - - private StartDateTimeType startDateTimeTypeField; - - private bool startDateTimeTypeFieldSpecified; - - private DateTime endDateTimeField; + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", ConfigurationName = "Google.Api.Ads.AdManager.v201908.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.v201908.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); - private bool unlimitedEndDateTimeField; + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + System.Threading.Tasks.Task createProposalsAsync(Wrappers.ProposalService.createProposalsRequest request); - private bool unlimitedEndDateTimeFieldSpecified; + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201908.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v201908.MarketplaceCommentPage getMarketplaceCommentsByStatement(Google.Api.Ads.AdManager.v201908.Statement filterStatement); - private AdRuleStatus statusField; + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task getMarketplaceCommentsByStatementAsync(Google.Api.Ads.AdManager.v201908.Statement filterStatement); - private bool statusFieldSpecified; + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201908.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v201908.ProposalPage getProposalsByStatement(Google.Api.Ads.AdManager.v201908.Statement filterStatement); - private FrequencyCapBehavior frequencyCapBehaviorField; + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task getProposalsByStatementAsync(Google.Api.Ads.AdManager.v201908.Statement filterStatement); - private bool frequencyCapBehaviorFieldSpecified; + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201908.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v201908.UpdateResult performProposalAction(Google.Api.Ads.AdManager.v201908.ProposalAction proposalAction, Google.Api.Ads.AdManager.v201908.Statement filterStatement); - private int maxImpressionsPerLineItemPerStreamField; + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task performProposalActionAsync(Google.Api.Ads.AdManager.v201908.ProposalAction proposalAction, Google.Api.Ads.AdManager.v201908.Statement filterStatement); - private bool maxImpressionsPerLineItemPerStreamFieldSpecified; + // 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.v201908.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); - private int maxImpressionsPerLineItemPerPodField; + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + System.Threading.Tasks.Task updateProposalsAsync(Wrappers.ProposalService.updateProposalsRequest request); + } - private bool maxImpressionsPerLineItemPerPodFieldSpecified; - private BaseAdRuleSlot prerollField; + /// Captures a page of MarketplaceComment objects. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class MarketplaceCommentPage { + private int startIndexField; - private BaseAdRuleSlot midrollField; + private bool startIndexFieldSpecified; - private BaseAdRuleSlot postrollField; + private MarketplaceComment[] resultsField; - /// The unique ID of the AdRule. This value is readonly and is - /// assigned by Google. + /// The absolute index in the total result set on which this page begins. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public long adRuleId { + public int startIndex { get { - return this.adRuleIdField; + return this.startIndexField; } set { - this.adRuleIdField = value; - this.adRuleIdSpecified = 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 adRuleIdSpecified { - get { - return this.adRuleIdFieldSpecified; - } - set { - this.adRuleIdFieldSpecified = 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 { + public bool startIndexSpecified { get { - return this.nameField; + return this.startIndexFieldSpecified; } set { - this.nameField = value; + this.startIndexFieldSpecified = 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.

+ /// The collection of results contained within this page. /// - [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 { + [System.Xml.Serialization.XmlElementAttribute("results", Order = 1)] + public MarketplaceComment[] results { get { - return this.priorityFieldSpecified; + return this.resultsField; } set { - this.priorityFieldSpecified = value; + this.resultsField = 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; - } - } + /// A comment associated with a programmatic Proposal that + /// has been sent to Marketplace. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class MarketplaceComment { + private long proposalIdField; - /// 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; - } - } + private bool proposalIdFieldSpecified; - /// 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; - } - } + private string commentField; - /// 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; - } - } + private DateTime creationTimeField; - /// 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; - } - } + private bool createdBySellerField; - /// 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; - } - } + private bool createdBySellerFieldSpecified; - /// The AdRuleStatus of the ad rule. This attribute is - /// read-only and defaults to AdRuleStatus#INACTIVE. + /// The unique ID of the Proposal the comment belongs to. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 8)] - public AdRuleStatus status { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public long proposalId { get { - return this.statusField; + return this.proposalIdField; } set { - this.statusField = value; - this.statusSpecified = true; + this.proposalIdField = value; + this.proposalIdSpecified = 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 proposalIdSpecified { get { - return this.statusFieldSpecified; + return this.proposalIdFieldSpecified; } set { - this.statusFieldSpecified = value; + this.proposalIdFieldSpecified = value; } } - /// The FrequencyCapBehavior of the AdRule. This attribute is optional and defaults to FrequencyCapBehavior#DEFER. + /// The comment made on the Proposal. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 9)] - public FrequencyCapBehavior frequencyCapBehavior { + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public string comment { get { - return this.frequencyCapBehaviorField; + return this.commentField; } set { - this.frequencyCapBehaviorField = value; - this.frequencyCapBehaviorSpecified = true; + this.commentField = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool frequencyCapBehaviorSpecified { + /// The creation DateTime of this . + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public DateTime creationTime { get { - return this.frequencyCapBehaviorFieldSpecified; + return this.creationTimeField; } set { - this.frequencyCapBehaviorFieldSpecified = value; + this.creationTimeField = value; } } - /// This AdRule object's frequency cap for the maximum - /// impressions per stream. This attribute is optional and defaults to 0. + /// Indicates whether the MarketplaceComment was created by seller. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 10)] - public int maxImpressionsPerLineItemPerStream { + [System.Xml.Serialization.XmlElementAttribute(Order = 3)] + public bool createdBySeller { get { - return this.maxImpressionsPerLineItemPerStreamField; + return this.createdBySellerField; } set { - this.maxImpressionsPerLineItemPerStreamField = value; - this.maxImpressionsPerLineItemPerStreamSpecified = true; + this.createdBySellerField = value; + this.createdBySellerSpecified = true; } } /// true, if a value is specified for , false otherwise. - /// + /// cref="createdBySeller" />, false otherwise. [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool maxImpressionsPerLineItemPerStreamSpecified { + public bool createdBySellerSpecified { get { - return this.maxImpressionsPerLineItemPerStreamFieldSpecified; + return this.createdBySellerFieldSpecified; } set { - this.maxImpressionsPerLineItemPerStreamFieldSpecified = value; + this.createdBySellerFieldSpecified = value; } } + } - /// This AdRule object's frequency cap for the maximum - /// impressions per pod. This attribute is optional and defaults to 0. + + /// Captures a page of Proposal objects. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 11)] - public int maxImpressionsPerLineItemPerPod { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public int totalResultSetSize { get { - return this.maxImpressionsPerLineItemPerPodField; + return this.totalResultSetSizeField; } set { - this.maxImpressionsPerLineItemPerPodField = value; - this.maxImpressionsPerLineItemPerPodSpecified = 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 maxImpressionsPerLineItemPerPodSpecified { + public bool totalResultSetSizeSpecified { get { - return this.maxImpressionsPerLineItemPerPodFieldSpecified; + return this.totalResultSetSizeFieldSpecified; } set { - this.maxImpressionsPerLineItemPerPodFieldSpecified = value; + this.totalResultSetSizeFieldSpecified = value; } } - /// This AdRule object's pre-roll slot. This attribute is - /// required. + /// The absolute index in the total result set on which this page begins. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 12)] - public BaseAdRuleSlot preroll { + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public int startIndex { get { - return this.prerollField; + return this.startIndexField; } set { - this.prerollField = value; + this.startIndexField = value; + this.startIndexSpecified = true; } } - /// This AdRule object's mid-roll slot. This attribute is - /// required. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 13)] - public BaseAdRuleSlot midroll { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool startIndexSpecified { get { - return this.midrollField; + return this.startIndexFieldSpecified; } set { - this.midrollField = value; + this.startIndexFieldSpecified = value; } } - /// This AdRule object's post-roll slot. This attribute is - /// required. + /// The collection of proposals contained within this page. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 14)] - public BaseAdRuleSlot postroll { + [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] + public Proposal[] results { get { - return this.postrollField; + return this.resultsField; } set { - this.postrollField = value; + this.resultsField = value; } } } - /// Represents the status of ad rules and ad rule slots. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum AdRuleStatus { - /// Created and ready to be served. Is user-visible. - /// - ACTIVE = 0, - /// Paused, user-visible. - /// - INACTIVE = 1, - /// Marked as deleted, not user-visible. - /// - DELETED = 2, - /// 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. + /// 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(SubmitProposalsForApproval))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(RetractProposals))] + [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.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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, + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public abstract partial class ProposalAction { } - /// Errors related to podding fields in ad rule slots. + /// The action to update a finalized Marketplace Order with the + /// seller's data. This action is only applicable for programmatic proposals. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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; - } - } + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class UpdateOrderWithSellerData : ProposalAction { } - /// Describes reason for PoddingErrors. + /// The action used for unarchiving Proposal objects. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "PoddingError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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, + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class UnarchiveProposals : ProposalAction { } - /// Lists all errors associated with ad rule targeting. + /// The action for marking all negotiations on the Proposal + /// as terminated in Marketplace. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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; - } - } + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class TerminateNegotiations : ProposalAction { } - /// Describes reasons for AdRuleTargetingError ad rule targeting - /// errors. + /// The action used for submitting Proposal objects for + /// approval. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AdRuleTargetingError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum AdRuleTargetingErrorReason { - /// Cannot target video positions. - /// - VIDEO_POSITION_TARGETING_NOT_ALLOWED = 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/v201908")] + public partial class SubmitProposalsForApproval : ProposalAction { } - /// Errors associated with ad rule priorities. + /// The action used for retracting Proposal objects. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class AdRulePriorityError : ApiError { - private AdRulePriorityErrorReason reasonField; - - private bool reasonFieldSpecified; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class RetractProposals : ProposalAction { + private RetractionDetails retractionDetailsField; + /// Details describing why the Proposal is being retracted. + /// [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 { + public RetractionDetails retractionDetails { get { - return this.reasonFieldSpecified; + return this.retractionDetailsField; } set { - this.reasonFieldSpecified = value; + this.retractionDetailsField = value; } } } - /// Reasons for an AdRulePriorityError. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AdRulePriorityError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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 + /// Details describing why a Proposal was retracted. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class AdRuleFrequencyCapError : ApiError { - private AdRuleFrequencyCapErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class RetractionDetails { + private long retractionReasonIdField; - private bool reasonFieldSpecified; + private bool retractionReasonIdFieldSpecified; + + private string commentsField; + /// The ID of the reason for why the Proposal was retracted. + /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public AdRuleFrequencyCapErrorReason reason { + public long retractionReasonId { get { - return this.reasonField; + return this.retractionReasonIdField; } set { - this.reasonField = value; - this.reasonSpecified = true; + this.retractionReasonIdField = value; + this.retractionReasonIdSpecified = 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 retractionReasonIdSpecified { get { - return this.reasonFieldSpecified; + return this.retractionReasonIdFieldSpecified; } set { - this.reasonFieldSpecified = value; + this.retractionReasonIdFieldSpecified = value; } } - } - - /// Describes reason for AdRuleFrequencyCapErrors. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AdRuleFrequencyCapError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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. + /// Comments on why the Proposal was retracted. This field is + /// optional and has a maximum length of 1023 characters. /// - UNKNOWN = 2, - } - - - /// Lists all errors associated with ad rule start and end dates. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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 { + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public string comments { get { - return this.reasonFieldSpecified; + return this.commentsField; } set { - this.reasonFieldSpecified = value; + this.commentsField = value; } } } - /// Describes reasons for AdRuleDateErrors. + /// The action used for resuming programmatic Proposal + /// objects. This action is only applicable for programmatic proposals. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AdRuleDateError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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/v201808", ConfigurationName = "Google.Api.Ads.AdManager.v201808.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.v201808.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); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v201808.AdRulePage getAdRulesByStatement(Google.Api.Ads.AdManager.v201808.Statement statement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getAdRulesByStatementAsync(Google.Api.Ads.AdManager.v201808.Statement statement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v201808.UpdateResult performAdRuleAction(Google.Api.Ads.AdManager.v201808.AdRuleAction adRuleAction, Google.Api.Ads.AdManager.v201808.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task performAdRuleActionAsync(Google.Api.Ads.AdManager.v201808.AdRuleAction adRuleAction, Google.Api.Ads.AdManager.v201808.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.v201808.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); + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class ResumeProposals : ProposalAction { } - /// Captures a page of AdRule objects. + /// The action to reserve inventory for Proposal objects. It + /// does not allow overbooking unless #allowOverbook is + /// set to true. This action is only applicable for programmatic + /// proposals not using sales management. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class AdRulePage { - private int totalResultSetSizeField; - - private bool totalResultSetSizeFieldSpecified; - - private int startIndexField; - - private bool startIndexFieldSpecified; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class ReserveProposals : ProposalAction { + private bool allowOverbookField; - private AdRule[] resultsField; + private bool allowOverbookFieldSpecified; - /// The size of the total result set to which this page belongs. - /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public int totalResultSetSize { + public bool allowOverbook { get { - return this.totalResultSetSizeField; + return this.allowOverbookField; } set { - this.totalResultSetSizeField = value; - this.totalResultSetSizeSpecified = 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 totalResultSetSizeSpecified { + public bool allowOverbookSpecified { get { - return this.totalResultSetSizeFieldSpecified; + return this.allowOverbookFieldSpecified; } set { - this.totalResultSetSizeFieldSpecified = value; + this.allowOverbookFieldSpecified = 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 action used to request buyer review for the Proposal. + /// This action is only applicable for programmatic Proposal. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class RequestBuyerReview : ProposalAction { + } - /// 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; - } - } + + /// The action used to request acceptance from the buyer for the Proposal through Marketplace. This action is only applicable + /// for programmatic proposals. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class RequestBuyerAcceptance : ProposalAction { } - /// Represents the actions that can be performed on AdRule - /// objects. + /// The action used for pausing programmatic Proposal + /// objects. This action is only applicable for programmatic proposals. /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(DeleteAdRules))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(DeactivateAdRules))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ActivateAdRules))] [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public abstract partial class AdRuleAction { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class PauseProposals : ProposalAction { + private string reasonField; + + /// Reason to describe why the Proposal is being paused. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public string reason { + get { + return this.reasonField; + } + set { + this.reasonField = value; + } + } } - /// The action used for deleting AdRule objects. + /// Opens the non-free-editable 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 true. 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.

This action is only applicable for programmatic + /// proposals.

///
[System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class DeleteAdRules : AdRuleAction { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class EditProposalsForNegotiation : ProposalAction { } - /// The action used for pausing AdRule objects. + /// The action for reverting the local Proposal modifications + /// to reflect the latest terms and private data in Marketplace. This action is only + /// applicable for programmatic proposals. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class DeactivateAdRules : AdRuleAction { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class DiscardLocalVersionEdits : ProposalAction { } - /// The action used for resuming AdRule objects. + /// The action used for archiving Proposal objects. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ActivateAdRules : AdRuleAction { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class ArchiveProposals : ProposalAction { } [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public interface AdRuleServiceInterfaceChannel : Google.Api.Ads.AdManager.v201808.AdRuleServiceInterface, System.ServiceModel.IClientChannel + public interface ProposalServiceInterfaceChannel : Google.Api.Ads.AdManager.v201908.ProposalServiceInterface, 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.

+ /// 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 AdRuleService : AdManagerSoapClient, IAdRuleService { - /// Creates a new instance of the class. + public partial class ProposalService : AdManagerSoapClient, IProposalService { + /// Creates a new instance of the class. /// - public AdRuleService() { + public ProposalService() { } - /// Creates a new instance of the class. + /// Creates a new instance of the class. /// - public AdRuleService(string endpointConfigurationName) + public ProposalService(string endpointConfigurationName) : base(endpointConfigurationName) { } - /// Creates a new instance of the class. + /// Creates a new instance of the class. /// - public AdRuleService(string endpointConfigurationName, string remoteAddress) + public ProposalService(string endpointConfigurationName, string remoteAddress) : base(endpointConfigurationName, remoteAddress) { } - /// Creates a new instance of the class. + /// Creates a new instance of the class. /// - public AdRuleService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) + public ProposalService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) : base(endpointConfigurationName, remoteAddress) { } - /// Creates a new instance of the class. + /// Creates a new instance of the class. /// - public AdRuleService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) + public ProposalService(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.v201808.AdRuleServiceInterface.createAdRules(Wrappers.AdRuleService.createAdRulesRequest request) { - return base.Channel.createAdRules(request); + Wrappers.ProposalService.createProposalsResponse Google.Api.Ads.AdManager.v201908.ProposalServiceInterface.createProposals(Wrappers.ProposalService.createProposalsRequest request) { + return base.Channel.createProposals(request); } - /// Creates new AdRule objects. - /// the ad rules to create - /// the created ad rules with their IDs filled in - public virtual Google.Api.Ads.AdManager.v201808.AdRule[] createAdRules(Google.Api.Ads.AdManager.v201808.AdRule[] adRules) { - Wrappers.AdRuleService.createAdRulesRequest inValue = new Wrappers.AdRuleService.createAdRulesRequest(); - inValue.adRules = adRules; - Wrappers.AdRuleService.createAdRulesResponse retVal = ((Google.Api.Ads.AdManager.v201808.AdRuleServiceInterface)(this)).createAdRules(inValue); + /// Creates new Proposal objects. For each proposal, the + /// following fields are required: + /// the proposals to create + /// the created proposals with their IDs filled in + public virtual Google.Api.Ads.AdManager.v201908.Proposal[] createProposals(Google.Api.Ads.AdManager.v201908.Proposal[] proposals) { + Wrappers.ProposalService.createProposalsRequest inValue = new Wrappers.ProposalService.createProposalsRequest(); + inValue.proposals = proposals; + Wrappers.ProposalService.createProposalsResponse retVal = ((Google.Api.Ads.AdManager.v201908.ProposalServiceInterface)(this)).createProposals(inValue); return retVal.rval; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201808.AdRuleServiceInterface.createAdRulesAsync(Wrappers.AdRuleService.createAdRulesRequest request) { - return base.Channel.createAdRulesAsync(request); + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201908.ProposalServiceInterface.createProposalsAsync(Wrappers.ProposalService.createProposalsRequest request) { + return base.Channel.createProposalsAsync(request); } - public virtual System.Threading.Tasks.Task createAdRulesAsync(Google.Api.Ads.AdManager.v201808.AdRule[] adRules) { - Wrappers.AdRuleService.createAdRulesRequest inValue = new Wrappers.AdRuleService.createAdRulesRequest(); - inValue.adRules = adRules; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201808.AdRuleServiceInterface)(this)).createAdRulesAsync(inValue)).Result.rval); + public virtual System.Threading.Tasks.Task createProposalsAsync(Google.Api.Ads.AdManager.v201908.Proposal[] proposals) { + Wrappers.ProposalService.createProposalsRequest inValue = new Wrappers.ProposalService.createProposalsRequest(); + inValue.proposals = proposals; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201908.ProposalServiceInterface)(this)).createProposalsAsync(inValue)).Result.rval); } - /// Gets an AdRulePage of AdRule - /// objects that satisfy the given Statement#query. The following - /// fields are supported for filtering: - /// - /// - /// - /// + /// 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
id AdRule#id (AdRule#adRuleId beginning in v201702)
name AdRule#name
priority AdRule#priority
status AdRule#status
+ /// + /// + ///
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.

+ ///
a Publisher Query Language statement used to + /// filter a set of marketplace comments + /// the marketplace comments that match the given filter + public virtual Google.Api.Ads.AdManager.v201908.MarketplaceCommentPage getMarketplaceCommentsByStatement(Google.Api.Ads.AdManager.v201908.Statement filterStatement) { + return base.Channel.getMarketplaceCommentsByStatement(filterStatement); + } + + public virtual System.Threading.Tasks.Task getMarketplaceCommentsByStatementAsync(Google.Api.Ads.AdManager.v201908.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
thirdPartyAdServerId
Only + /// applicable for non-programmatic proposals using sales management
Proposal#thirdPartyAdServerId
customThirdPartyAdServerName
Only applicable for non-programmatic proposals using sales + /// management
Proposal#customThirdPartyAdServerName
hasOfflineErrors Proposal#hasOfflineErrors
isProgrammatic Proposal#isProgrammatic
negotiationStatus
Only applicable for + /// programmatic proposals
ProposalMarketplaceInfo#negotiationStatus
- ///
a Publisher Query Language statement used to filter a - /// set of ad rules - /// the ad rules that match the given filter - /// if the ID of the active network does not exist or - /// there is a backend error - public virtual Google.Api.Ads.AdManager.v201808.AdRulePage getAdRulesByStatement(Google.Api.Ads.AdManager.v201808.Statement statement) { - return base.Channel.getAdRulesByStatement(statement); + ///
a Publisher Query Language statement used to + /// filter a set of proposals + /// the proposals that match the given filter + public virtual Google.Api.Ads.AdManager.v201908.ProposalPage getProposalsByStatement(Google.Api.Ads.AdManager.v201908.Statement filterStatement) { + return base.Channel.getProposalsByStatement(filterStatement); } - public virtual System.Threading.Tasks.Task getAdRulesByStatementAsync(Google.Api.Ads.AdManager.v201808.Statement statement) { - return base.Channel.getAdRulesByStatementAsync(statement); + public virtual System.Threading.Tasks.Task getProposalsByStatementAsync(Google.Api.Ads.AdManager.v201908.Statement filterStatement) { + return base.Channel.getProposalsByStatementAsync(filterStatement); } - /// Performs actions on AdRule objects that match the given Statement#query. - /// the action to perform + /// Performs actions on Proposal objects that match the given + /// Statement#query. The following fields are also + /// required when submitting proposals for approval: + /// the action to perform /// a Publisher Query Language statement used to - /// filter a set of ad rules + /// filter a set of proposals /// the result of the action performed - public virtual Google.Api.Ads.AdManager.v201808.UpdateResult performAdRuleAction(Google.Api.Ads.AdManager.v201808.AdRuleAction adRuleAction, Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.performAdRuleAction(adRuleAction, filterStatement); + public virtual Google.Api.Ads.AdManager.v201908.UpdateResult performProposalAction(Google.Api.Ads.AdManager.v201908.ProposalAction proposalAction, Google.Api.Ads.AdManager.v201908.Statement filterStatement) { + return base.Channel.performProposalAction(proposalAction, filterStatement); } - public virtual System.Threading.Tasks.Task performAdRuleActionAsync(Google.Api.Ads.AdManager.v201808.AdRuleAction adRuleAction, Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.performAdRuleActionAsync(adRuleAction, filterStatement); + public virtual System.Threading.Tasks.Task performProposalActionAsync(Google.Api.Ads.AdManager.v201908.ProposalAction proposalAction, Google.Api.Ads.AdManager.v201908.Statement filterStatement) { + return base.Channel.performProposalActionAsync(proposalAction, filterStatement); } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.AdRuleService.updateAdRulesResponse Google.Api.Ads.AdManager.v201808.AdRuleServiceInterface.updateAdRules(Wrappers.AdRuleService.updateAdRulesRequest request) { - return base.Channel.updateAdRules(request); + Wrappers.ProposalService.updateProposalsResponse Google.Api.Ads.AdManager.v201908.ProposalServiceInterface.updateProposals(Wrappers.ProposalService.updateProposalsRequest request) { + return base.Channel.updateProposals(request); } - /// Updates the specified AdRule objects. - /// the ad rules to update - /// the updated ad rules - /// if there is an error updating the ad - /// rules - public virtual Google.Api.Ads.AdManager.v201808.AdRule[] updateAdRules(Google.Api.Ads.AdManager.v201808.AdRule[] adRules) { - Wrappers.AdRuleService.updateAdRulesRequest inValue = new Wrappers.AdRuleService.updateAdRulesRequest(); - inValue.adRules = adRules; - Wrappers.AdRuleService.updateAdRulesResponse retVal = ((Google.Api.Ads.AdManager.v201808.AdRuleServiceInterface)(this)).updateAdRules(inValue); + /// Updates the specified Proposal objects. + /// the proposals to update + /// the updated proposals + public virtual Google.Api.Ads.AdManager.v201908.Proposal[] updateProposals(Google.Api.Ads.AdManager.v201908.Proposal[] proposals) { + Wrappers.ProposalService.updateProposalsRequest inValue = new Wrappers.ProposalService.updateProposalsRequest(); + inValue.proposals = proposals; + Wrappers.ProposalService.updateProposalsResponse retVal = ((Google.Api.Ads.AdManager.v201908.ProposalServiceInterface)(this)).updateProposals(inValue); return retVal.rval; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201808.AdRuleServiceInterface.updateAdRulesAsync(Wrappers.AdRuleService.updateAdRulesRequest request) { - return base.Channel.updateAdRulesAsync(request); + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201908.ProposalServiceInterface.updateProposalsAsync(Wrappers.ProposalService.updateProposalsRequest request) { + return base.Channel.updateProposalsAsync(request); } - public virtual System.Threading.Tasks.Task updateAdRulesAsync(Google.Api.Ads.AdManager.v201808.AdRule[] adRules) { - Wrappers.AdRuleService.updateAdRulesRequest inValue = new Wrappers.AdRuleService.updateAdRulesRequest(); - inValue.adRules = adRules; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201808.AdRuleServiceInterface)(this)).updateAdRulesAsync(inValue)).Result.rval); + public virtual System.Threading.Tasks.Task updateProposalsAsync(Google.Api.Ads.AdManager.v201908.Proposal[] proposals) { + Wrappers.ProposalService.updateProposalsRequest inValue = new Wrappers.ProposalService.updateProposalsRequest(); + inValue.proposals = proposals; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201908.ProposalServiceInterface)(this)).updateProposalsAsync(inValue)).Result.rval); } } - namespace Wrappers.ReconciliationReportService + 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 = "updateReconciliationReports", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201808", IsWrapped = true)] - public partial class updateReconciliationReportsRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("reconciliationReports")] - public Google.Api.Ads.AdManager.v201808.ReconciliationReport[] reconciliationReports; + [System.ServiceModel.MessageContractAttribute(WrapperName = "createProposalLineItems", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201908", IsWrapped = true)] + public partial class createProposalLineItemsRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("proposalLineItems")] + public Google.Api.Ads.AdManager.v201908.ProposalLineItem[] proposalLineItems; + + /// Creates a new instance of the class. + public createProposalLineItemsRequest() { + } + + /// Creates a new instance of the class. + public createProposalLineItemsRequest(Google.Api.Ads.AdManager.v201908.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/v201908", IsWrapped = true)] + public partial class createProposalLineItemsResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("rval")] + public Google.Api.Ads.AdManager.v201908.ProposalLineItem[] rval; + + /// Creates a new instance of the class. + public createProposalLineItemsResponse() { + } + + /// Creates a new instance of the class. + public createProposalLineItemsResponse(Google.Api.Ads.AdManager.v201908.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/v201908", IsWrapped = true)] + public partial class updateProposalLineItemsRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("proposalLineItems")] + public Google.Api.Ads.AdManager.v201908.ProposalLineItem[] proposalLineItems; /// Creates a new instance of the class. - public updateReconciliationReportsRequest() { + /// cref="updateProposalLineItemsRequest"/> class.
+ public updateProposalLineItemsRequest() { } /// Creates a new instance of the class. - public updateReconciliationReportsRequest(Google.Api.Ads.AdManager.v201808.ReconciliationReport[] reconciliationReports) { - this.reconciliationReports = reconciliationReports; + /// cref="updateProposalLineItemsRequest"/> class.
+ public updateProposalLineItemsRequest(Google.Api.Ads.AdManager.v201908.ProposalLineItem[] proposalLineItems) { + this.proposalLineItems = proposalLineItems; } } @@ -58013,199 +41939,240 @@ public updateReconciliationReportsRequest(Google.Api.Ads.AdManager.v201808.Recon [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "updateReconciliationReportsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201808", IsWrapped = true)] - public partial class updateReconciliationReportsResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "updateProposalLineItemsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201908", IsWrapped = true)] + public partial class updateProposalLineItemsResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v201808.ReconciliationReport[] rval; + public Google.Api.Ads.AdManager.v201908.ProposalLineItem[] rval; /// Creates a new instance of the class. - public updateReconciliationReportsResponse() { + /// cref="updateProposalLineItemsResponse"/> class.
+ public updateProposalLineItemsResponse() { } /// Creates a new instance of the class. - public updateReconciliationReportsResponse(Google.Api.Ads.AdManager.v201808.ReconciliationReport[] rval) { + /// cref="updateProposalLineItemsResponse"/> class.
+ public updateProposalLineItemsResponse(Google.Api.Ads.AdManager.v201908.ProposalLineItem[] rval) { this.rval = rval; } } } - /// A ReconciliationReport represents a report that can be reconciled. + /// Lists all errors for executing operations on proposal line items. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ReconciliationReport { - private long idField; - - private bool idFieldSpecified; - - private ReconciliationReportStatus statusField; - - private bool statusFieldSpecified; - - private Date startDateField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class ProposalLineItemActionError : ApiError { + private ProposalLineItemActionErrorReason reasonField; - private string notesField; + private bool reasonFieldSpecified; - /// The unique ID of the ReconciliationReport. This attribute is - /// read-only. + /// The error reason represented by an enum. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public long id { + public ProposalLineItemActionErrorReason 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; } } + } - /// The reconciliation state of the ReconciliationReport. This - /// attribute is read-only. + + /// The reasons for the target error. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ProposalLineItemActionError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum ProposalLineItemActionErrorReason { + /// The operation is not applicable to the current state. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public ReconciliationReportStatus status { - get { - return this.statusField; - } - set { - this.statusField = value; - this.statusSpecified = true; - } - } + 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, + /// 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 statusSpecified { - get { - return this.statusFieldSpecified; - } - set { - this.statusFieldSpecified = value; - } - } - /// The start date of a billing period. Billing period is monthly. This attribute is - /// read-only. + /// Errors associated with preferred deal proposal line + /// items. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class PreferredDealError : ApiError { + private PreferredDealErrorReason reasonField; + + private bool reasonFieldSpecified; + + /// The error reason represented by an enum. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public Date startDate { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public PreferredDealErrorReason reason { get { - return this.startDateField; + return this.reasonField; } set { - this.startDateField = value; + this.reasonField = value; + this.reasonSpecified = true; } } - /// The reconciliation report notes. This attribute is optional and has a maximum - /// length of 65535. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - 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; } } } - /// A ReconciliationReportStatus represents the status of a ReconciliationReport. + /// The reasons for the target error. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum ReconciliationReportStatus { - /// The starting status of a reconciliation report. Reconciliation reports are - /// updatable in the DRAFT state. - /// - DRAFT = 0, - /// The final status of a reconciliation report. Reconciliation reports are not - /// updatable in the RECONCILED state. + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "PreferredDealError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum PreferredDealErrorReason { + INVALID_PRIORITY = 0, + /// Preferred deal proposal line items only support + /// RateType#CPM. /// - RECONCILED = 1, - /// A similar status as DRAFT. Reconciliation reports are updatable in - /// the REVERTED state. + INVALID_RATE_TYPE = 1, + /// Preferred deal proposal line items do not support + /// frequency caps. /// - REVERTED = 2, - /// It indicates that the reconciliation report is not ready for various of reasons. - /// Reconciliation reports in the PENDING state can't be viewed in the - /// DoubleClick for Publisher UI. + INVALID_FREQUENCY_CAPS = 2, + /// Preferred deal proposal line items only support + /// RoadblockingType#ONE_OR_MORE. /// - PENDING = 3, - /// 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 = 4, + 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/v201908", ConfigurationName = "Google.Api.Ads.AdManager.v201908.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.v201908.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.v201908.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v201908.ProposalLineItemPage getProposalLineItemsByStatement(Google.Api.Ads.AdManager.v201908.Statement filterStatement); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task getProposalLineItemsByStatementAsync(Google.Api.Ads.AdManager.v201908.Statement filterStatement); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201908.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v201908.UpdateResult performProposalLineItemAction(Google.Api.Ads.AdManager.v201908.ProposalLineItemAction proposalLineItemAction, Google.Api.Ads.AdManager.v201908.Statement filterStatement); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task performProposalLineItemActionAsync(Google.Api.Ads.AdManager.v201908.ProposalLineItemAction proposalLineItemAction, Google.Api.Ads.AdManager.v201908.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.v201908.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 ReconciliationReport - /// objects + /// Captures a page of ProposalLineItem objects. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ReconciliationReportPage { - private int totalResultSetSizeField; - - private bool totalResultSetSizeFieldSpecified; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class ProposalLineItemPage { + private ProposalLineItem[] resultsField; private int startIndexField; private bool startIndexFieldSpecified; - private ReconciliationReport[] 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; } } @@ -58235,229 +42202,341 @@ public bool startIndexSpecified { } } - /// The collection of reconciliation reports contained within this page. + /// The size of the total result set to which this page belongs. /// - [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] - public ReconciliationReport[] results { + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public int totalResultSetSize { get { - return this.resultsField; + return this.totalResultSetSizeField; } set { - this.resultsField = value; + 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 API errors for reconciliation CSV import. + /// 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.Xml.Serialization.XmlIncludeAttribute(typeof(ActualizeProposalLineItems))] [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ReconciliationImportError : ApiError { - private ReconciliationImportErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public abstract partial class ProposalLineItemAction { + } - private bool reasonFieldSpecified; - /// The error reason represented by an enum. - /// + /// The action used for unarchiving ProposalLineItem + /// objects. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class UnarchiveProposalLineItems : ProposalLineItemAction { + } + + + /// The action used for resuming ProposalLineItem + /// objects. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class ReserveProposalLineItems : ProposalLineItemAction { + private bool allowOverbookField; + + private bool allowOverbookFieldSpecified; + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public ReconciliationImportErrorReason reason { + public bool allowOverbook { get { - return this.reasonField; + return this.allowOverbookField; } set { - this.reasonField = value; - this.reasonSpecified = true; + this.allowOverbookField = value; + this.allowOverbookSpecified = 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 allowOverbookSpecified { get { - return this.reasonFieldSpecified; + return this.allowOverbookFieldSpecified; } set { - this.reasonFieldSpecified = value; + this.allowOverbookFieldSpecified = value; } } } - /// The reasons for the target error. + /// The action used for releasing inventory for ProposalLineItem objects. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ReconciliationImportError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum ReconciliationImportErrorReason { - /// The imported CSV missing some editable and essential columns. - /// - MISSING_EDITABLE_COLUMN = 0, - /// The imported CSV columns count doesn't equal with defined columns count. - /// - INCONSISTENT_IMPORT_COLUMNS = 1, - /// The imported CSV column value cannot be converted to defined entity type. - /// - COLUMN_CONVERSION_TYPE_ERROR = 2, - /// The imported CSV column values count are less or more than field headers count. - /// - INCONSISTENT_COLUMNS_COUNT = 3, - /// The imported CSV cause an internal error which is out of expectation. - /// - IMPORT_INTERNAL_ERROR = 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/v201908")] + public partial class ReleaseProposalLineItems : ProposalLineItemAction { } - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", ConfigurationName = "Google.Api.Ads.AdManager.v201808.ReconciliationReportServiceInterface")] - public interface ReconciliationReportServiceInterface - { - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v201808.ReconciliationReportPage getReconciliationReportsByStatement(Google.Api.Ads.AdManager.v201808.Statement filterStatement); + /// The action used for pausing ProposalLineItem + /// objects. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class PauseProposalLineItems : ProposalLineItemAction { + } - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getReconciliationReportsByStatementAsync(Google.Api.Ads.AdManager.v201808.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.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Wrappers.ReconciliationReportService.updateReconciliationReportsResponse updateReconciliationReports(Wrappers.ReconciliationReportService.updateReconciliationReportsRequest request); + /// The action used for archiving ProposalLineItem + /// objects. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class ArchiveProposalLineItems : ProposalLineItemAction { + } - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task updateReconciliationReportsAsync(Wrappers.ReconciliationReportService.updateReconciliationReportsRequest request); + + /// The action used for actualizing ProposalLineItem + /// objects. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class ActualizeProposalLineItems : ProposalLineItemAction { } [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public interface ReconciliationReportServiceInterfaceChannel : Google.Api.Ads.AdManager.v201808.ReconciliationReportServiceInterface, System.ServiceModel.IClientChannel + public interface ProposalLineItemServiceInterfaceChannel : Google.Api.Ads.AdManager.v201908.ProposalLineItemServiceInterface, System.ServiceModel.IClientChannel { } - /// Provides methods for retrieving, submitting and reverting the ReconciliationReport objects.

A ReconciliationReport is a group of ReconciliationReportRow objects.

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

To use this service, + /// you need to have the new sales management solution enabled on your network. If + /// you do not see a "Sales" tab in DoubleClick + /// for Publishers (DFP), you will not be able to use this service.

///
[System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public partial class ReconciliationReportService : AdManagerSoapClient, IReconciliationReportService { - /// Creates a new instance of the class. - public ReconciliationReportService() { + public partial class ProposalLineItemService : AdManagerSoapClient, IProposalLineItemService { + /// Creates a new instance of the + /// class. + public ProposalLineItemService() { } - /// Creates a new instance of the class. - public ReconciliationReportService(string endpointConfigurationName) + /// Creates a new instance of the + /// class. + public ProposalLineItemService(string endpointConfigurationName) : base(endpointConfigurationName) { } - /// Creates a new instance of the class. - public ReconciliationReportService(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 ReconciliationReportService(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 ReconciliationReportService(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) { } - /// Gets an ReconciliationReportPage of ReconciliationReport objects that satisfy the - /// given Statement#query. The following fields are - /// supported for filtering.
PQL Property Creates new ProposalLineItem objects. + /// the proposal line items to create + /// the created proposal line items with their IDs filled in + public virtual Google.Api.Ads.AdManager.v201908.ProposalLineItem[] createProposalLineItems(Google.Api.Ads.AdManager.v201908.ProposalLineItem[] proposalLineItems) { + Wrappers.ProposalLineItemService.createProposalLineItemsRequest inValue = new Wrappers.ProposalLineItemService.createProposalLineItemsRequest(); + inValue.proposalLineItems = proposalLineItems; + Wrappers.ProposalLineItemService.createProposalLineItemsResponse retVal = ((Google.Api.Ads.AdManager.v201908.ProposalLineItemServiceInterface)(this)).createProposalLineItems(inValue); + return retVal.rval; + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201908.ProposalLineItemServiceInterface.createProposalLineItemsAsync(Wrappers.ProposalLineItemService.createProposalLineItemsRequest request) { + return base.Channel.createProposalLineItemsAsync(request); + } + + public virtual System.Threading.Tasks.Task createProposalLineItemsAsync(Google.Api.Ads.AdManager.v201908.ProposalLineItem[] proposalLineItems) { + Wrappers.ProposalLineItemService.createProposalLineItemsRequest inValue = new Wrappers.ProposalLineItemService.createProposalLineItemsRequest(); + inValue.proposalLineItems = proposalLineItems; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201908.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: - /// - /// + /// href='ProposalLineItem#id'>ProposalLineItem#id + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// ///
PQL Property Object Property
id ReconciliationReport#id
status ReconciliationReport#status
startDate ReconciliationReport#startDate
name ProposalLineItem#name
proposalId ProposalLineItem#proposalId
startDateTime ProposalLineItem#startDateTime
endDateTime ProposalLineItem#endDateTime
isArchived ProposalLineItem#isArchived
lastModifiedDateTime ProposalLineItem#lastModifiedDateTime
useThirdPartyAdServerFromProposal
Only applicable for non-programmatic proposal line items + /// using sales management
ProposalLineItem#useThirdPartyAdServerFromProposal
thirdPartyAdServerId
Only + /// applicable for non-programmatic proposal line items using sales management
+ ///
ProposalLineItem#thirdPartyAdServerId
customThirdPartyAdServerName
Only applicable for non-programmatic proposal line items + /// using sales management
ProposalLineItem#customThirdPartyAdServerName
isProgrammatic ProposalLineItem#isProgrammatic
///
a Publisher Query Language statement used to - /// filter a set of reconciliation reports - /// the reconciliation reports that match the given filter - public virtual Google.Api.Ads.AdManager.v201808.ReconciliationReportPage getReconciliationReportsByStatement(Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.getReconciliationReportsByStatement(filterStatement); + /// filter a set of proposal line items + /// the proposal line items that match the given filter + public virtual Google.Api.Ads.AdManager.v201908.ProposalLineItemPage getProposalLineItemsByStatement(Google.Api.Ads.AdManager.v201908.Statement filterStatement) { + return base.Channel.getProposalLineItemsByStatement(filterStatement); + } + + public virtual System.Threading.Tasks.Task getProposalLineItemsByStatementAsync(Google.Api.Ads.AdManager.v201908.Statement filterStatement) { + return base.Channel.getProposalLineItemsByStatementAsync(filterStatement); + } + + /// Performs actions on ProposalLineItem objects that + /// match the given Statement#query. + /// the action to perform + /// a Publisher Query Language statement used to + /// filter a set of proposal line items + /// the result of the action performed + public virtual Google.Api.Ads.AdManager.v201908.UpdateResult performProposalLineItemAction(Google.Api.Ads.AdManager.v201908.ProposalLineItemAction proposalLineItemAction, Google.Api.Ads.AdManager.v201908.Statement filterStatement) { + return base.Channel.performProposalLineItemAction(proposalLineItemAction, filterStatement); } - public virtual System.Threading.Tasks.Task getReconciliationReportsByStatementAsync(Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.getReconciliationReportsByStatementAsync(filterStatement); + public virtual System.Threading.Tasks.Task performProposalLineItemActionAsync(Google.Api.Ads.AdManager.v201908.ProposalLineItemAction proposalLineItemAction, Google.Api.Ads.AdManager.v201908.Statement filterStatement) { + return base.Channel.performProposalLineItemActionAsync(proposalLineItemAction, filterStatement); } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.ReconciliationReportService.updateReconciliationReportsResponse Google.Api.Ads.AdManager.v201808.ReconciliationReportServiceInterface.updateReconciliationReports(Wrappers.ReconciliationReportService.updateReconciliationReportsRequest request) { - return base.Channel.updateReconciliationReports(request); + Wrappers.ProposalLineItemService.updateProposalLineItemsResponse Google.Api.Ads.AdManager.v201908.ProposalLineItemServiceInterface.updateProposalLineItems(Wrappers.ProposalLineItemService.updateProposalLineItemsRequest request) { + return base.Channel.updateProposalLineItems(request); } - /// Updates the specified ReconciliationReport - /// objects. - /// the reconciliation reports to update - /// the updated reconciliation reports - /// ApiException - public virtual Google.Api.Ads.AdManager.v201808.ReconciliationReport[] updateReconciliationReports(Google.Api.Ads.AdManager.v201808.ReconciliationReport[] reconciliationReports) { - Wrappers.ReconciliationReportService.updateReconciliationReportsRequest inValue = new Wrappers.ReconciliationReportService.updateReconciliationReportsRequest(); - inValue.reconciliationReports = reconciliationReports; - Wrappers.ReconciliationReportService.updateReconciliationReportsResponse retVal = ((Google.Api.Ads.AdManager.v201808.ReconciliationReportServiceInterface)(this)).updateReconciliationReports(inValue); + /// Updates the specified ProposalLineItem objects. + /// the proposal line items to update + /// the updated proposal line items + public virtual Google.Api.Ads.AdManager.v201908.ProposalLineItem[] updateProposalLineItems(Google.Api.Ads.AdManager.v201908.ProposalLineItem[] proposalLineItems) { + Wrappers.ProposalLineItemService.updateProposalLineItemsRequest inValue = new Wrappers.ProposalLineItemService.updateProposalLineItemsRequest(); + inValue.proposalLineItems = proposalLineItems; + Wrappers.ProposalLineItemService.updateProposalLineItemsResponse retVal = ((Google.Api.Ads.AdManager.v201908.ProposalLineItemServiceInterface)(this)).updateProposalLineItems(inValue); return retVal.rval; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201808.ReconciliationReportServiceInterface.updateReconciliationReportsAsync(Wrappers.ReconciliationReportService.updateReconciliationReportsRequest request) { - return base.Channel.updateReconciliationReportsAsync(request); + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201908.ProposalLineItemServiceInterface.updateProposalLineItemsAsync(Wrappers.ProposalLineItemService.updateProposalLineItemsRequest request) { + return base.Channel.updateProposalLineItemsAsync(request); } - public virtual System.Threading.Tasks.Task updateReconciliationReportsAsync(Google.Api.Ads.AdManager.v201808.ReconciliationReport[] reconciliationReports) { - Wrappers.ReconciliationReportService.updateReconciliationReportsRequest inValue = new Wrappers.ReconciliationReportService.updateReconciliationReportsRequest(); - inValue.reconciliationReports = reconciliationReports; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201808.ReconciliationReportServiceInterface)(this)).updateReconciliationReportsAsync(inValue)).Result.rval); + public virtual System.Threading.Tasks.Task updateProposalLineItemsAsync(Google.Api.Ads.AdManager.v201908.ProposalLineItem[] proposalLineItems) { + Wrappers.ProposalLineItemService.updateProposalLineItemsRequest inValue = new Wrappers.ProposalLineItemService.updateProposalLineItemsRequest(); + inValue.proposalLineItems = proposalLineItems; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201908.ProposalLineItemServiceInterface)(this)).updateProposalLineItemsAsync(inValue)).Result.rval); } } - namespace Wrappers.ReconciliationReportRowService + namespace Wrappers.AdExclusionRuleService { [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "updateReconciliationReportRows", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201808", IsWrapped = true)] - public partial class updateReconciliationReportRowsRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("reconciliationReportRows")] - public Google.Api.Ads.AdManager.v201808.ReconciliationReportRow[] reconciliationReportRows; + [System.ServiceModel.MessageContractAttribute(WrapperName = "createAdExclusionRules", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201908", IsWrapped = true)] + public partial class createAdExclusionRulesRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("adExclusionRules")] + public Google.Api.Ads.AdManager.v201908.AdExclusionRule[] adExclusionRules; /// Creates a new instance of the class. - public updateReconciliationReportRowsRequest() { + /// cref="createAdExclusionRulesRequest"/> class. + public createAdExclusionRulesRequest() { } /// Creates a new instance of the class. - public updateReconciliationReportRowsRequest(Google.Api.Ads.AdManager.v201808.ReconciliationReportRow[] reconciliationReportRows) { - this.reconciliationReportRows = reconciliationReportRows; + /// cref="createAdExclusionRulesRequest"/> class. + public createAdExclusionRulesRequest(Google.Api.Ads.AdManager.v201908.AdExclusionRule[] adExclusionRules) { + this.adExclusionRules = adExclusionRules; } } @@ -58465,112 +42544,103 @@ public updateReconciliationReportRowsRequest(Google.Api.Ads.AdManager.v201808.Re [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "updateReconciliationReportRowsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201808", IsWrapped = true)] - public partial class updateReconciliationReportRowsResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "createAdExclusionRulesResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201908", IsWrapped = true)] + public partial class createAdExclusionRulesResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v201808.ReconciliationReportRow[] rval; + public Google.Api.Ads.AdManager.v201908.AdExclusionRule[] rval; /// Creates a new instance of the class. - public updateReconciliationReportRowsResponse() { + /// cref="createAdExclusionRulesResponse"/> class. + public createAdExclusionRulesResponse() { } /// Creates a new instance of the class. - public updateReconciliationReportRowsResponse(Google.Api.Ads.AdManager.v201808.ReconciliationReportRow[] rval) { + /// cref="createAdExclusionRulesResponse"/> class. + public createAdExclusionRulesResponse(Google.Api.Ads.AdManager.v201908.AdExclusionRule[] rval) { this.rval = rval; } } - } - /// A ReconciliationReportRow represents each row in the reconciliation - /// report. Each row is identified by its #reconciliationReportId, #lineItemId, #creativeId, and - /// #proposalLineItemId. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ReconciliationReportRow { - private long idField; - - private bool idFieldSpecified; - - private long reconciliationReportIdField; - - private bool reconciliationReportIdFieldSpecified; - - private long lineItemIdField; - - private bool lineItemIdFieldSpecified; - - private long creativeIdField; - - private bool creativeIdFieldSpecified; - - private long orderIdField; - - private bool orderIdFieldSpecified; - - private long advertiserIdField; - - private bool advertiserIdFieldSpecified; - - private long proposalLineItemIdField; - private bool proposalLineItemIdFieldSpecified; - private long proposalIdField; - - private bool proposalIdFieldSpecified; - - private BillFrom reconciliationSourceField; - - private bool reconciliationSourceFieldSpecified; - - private RateType rateTypeField; - - private bool rateTypeFieldSpecified; + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "updateAdExclusionRules", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201908", IsWrapped = true)] + public partial class updateAdExclusionRulesRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("adExclusionRules")] + public Google.Api.Ads.AdManager.v201908.AdExclusionRule[] adExclusionRules; - private Money lineItemCostPerUnitField; + /// Creates a new instance of the class. + public updateAdExclusionRulesRequest() { + } - private long lineItemContractedUnitsBoughtField; + /// Creates a new instance of the class. + public updateAdExclusionRulesRequest(Google.Api.Ads.AdManager.v201908.AdExclusionRule[] adExclusionRules) { + this.adExclusionRules = adExclusionRules; + } + } - private bool lineItemContractedUnitsBoughtFieldSpecified; - private long dfpVolumeField; + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "updateAdExclusionRulesResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201908", IsWrapped = true)] + public partial class updateAdExclusionRulesResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("rval")] + public Google.Api.Ads.AdManager.v201908.AdExclusionRule[] rval; - private bool dfpVolumeFieldSpecified; + /// Creates a new instance of the class. + public updateAdExclusionRulesResponse() { + } - private long thirdPartyVolumeField; + /// Creates a new instance of the class. + public updateAdExclusionRulesResponse(Google.Api.Ads.AdManager.v201908.AdExclusionRule[] rval) { + this.rval = rval; + } + } + } + /// Represents an inventory blocking rule, which prevents certain ads from being + /// served to specified ad units. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class AdExclusionRule { + private long idField; - private bool thirdPartyVolumeFieldSpecified; + private bool idFieldSpecified; - private long manualVolumeField; + private string nameField; - private bool manualVolumeFieldSpecified; + private bool isActiveField; - private long reconciledVolumeField; + private bool isActiveFieldSpecified; - private bool reconciledVolumeFieldSpecified; + private InventoryTargeting inventoryTargetingField; - private Money contractedRevenueField; + private bool isBlockAllField; - private Money dfpRevenueField; + private bool isBlockAllFieldSpecified; - private Money thirdPartyRevenueField; + private long[] blockedLabelIdsField; - private Money manualRevenueField; + private long[] allowedLabelIdsField; - private Money reconciledRevenueField; + private AdExclusionRuleType typeField; - private string commentsField; + private bool typeFieldSpecified; - /// Uniquely identifies the ReconciliationReportRow. This value is - /// read-only and assigned by Google. + /// The unique ID of the AdExclusionRule. This attribute is readonly + /// and is assigned by Google. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] public long id { @@ -58583,781 +42653,1150 @@ public long id { } } - /// 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 ReconciliationReport. This - /// attribute is read-only. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public long reconciliationReportId { - get { - return this.reconciliationReportIdField; - } - set { - this.reconciliationReportIdField = value; - this.reconciliationReportIdSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reconciliationReportIdSpecified { - get { - return this.reconciliationReportIdFieldSpecified; - } - set { - this.reconciliationReportIdFieldSpecified = value; - } - } - - /// The ID of the LineItem. This attribute is read-only. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - 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; - } - } - - /// The ID of the Creative. This attribute is read-only. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - 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 ID of the Order. This attribute is read-only. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - 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 { - get { - return this.orderIdFieldSpecified; - } - set { - this.orderIdFieldSpecified = value; - } - } - - /// The ID of the Company. This attribute is read-only. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 5)] - 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 advertiserIdSpecified { - get { - return this.advertiserIdFieldSpecified; - } - set { - this.advertiserIdFieldSpecified = value; - } - } - - /// The ID of the ProposalLineItem associated with - /// this report row. This value is 0 if there is no related ProposalLineItem. This attribute is read-only. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 6)] - public long proposalLineItemId { + /// true, if a value is specified for , + /// false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool idSpecified { get { - return this.proposalLineItemIdField; + return this.idFieldSpecified; } set { - this.proposalLineItemIdField = value; - this.proposalLineItemIdSpecified = true; + this.idFieldSpecified = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool proposalLineItemIdSpecified { + /// The name of the AdExclusionRule. This attribute is required. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public string name { get { - return this.proposalLineItemIdFieldSpecified; + return this.nameField; } set { - this.proposalLineItemIdFieldSpecified = value; + this.nameField = value; } } - /// The ID of the Proposal associated with this report row. - /// This value is 0 if there is no related Proposal. This - /// attribute is read-only. + /// Whether or not the AdExclusionRule is active. An inactive rule will + /// have no effect on adserving. This attribute is readonly. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 7)] - public long proposalId { + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public bool isActive { get { - return this.proposalIdField; + return this.isActiveField; } set { - this.proposalIdField = value; - this.proposalIdSpecified = true; + this.isActiveField = value; + this.isActiveSpecified = 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 proposalIdSpecified { + public bool isActiveSpecified { get { - return this.proposalIdFieldSpecified; + return this.isActiveFieldSpecified; } set { - this.proposalIdFieldSpecified = value; + this.isActiveFieldSpecified = value; } } - /// Specifies which of #dfpVolume, #thirdPartyVolume, or #manualVolume should be used as the #reconciledVolume. The value is optional. If this - /// reconciliation data is for a ProposalLineItem - /// then this will default to the proposal line item's ProposalLineItem#billingSource. - /// Otherwise, this will default to BillFrom#DFP. + /// The targeting information about which AdUnitTargeting objects this rule is in effect for. + /// Any AdUnitTargeting objects included here will + /// have their children included implicitly. Children of a targeted ad unit can be + /// excluded. This attribute is required. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 8)] - public BillFrom reconciliationSource { + [System.Xml.Serialization.XmlElementAttribute(Order = 3)] + public InventoryTargeting inventoryTargeting { get { - return this.reconciliationSourceField; + return this.inventoryTargetingField; } set { - this.reconciliationSourceField = value; - this.reconciliationSourceSpecified = true; + this.inventoryTargetingField = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reconciliationSourceSpecified { + /// Whether or not this rule blocks all ads from serving other than the labels or + /// advertisers specified. This attribute is optional and defaults to false. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 4)] + public bool isBlockAll { get { - return this.reconciliationSourceFieldSpecified; + return this.isBlockAllField; } set { - this.reconciliationSourceFieldSpecified = value; + this.isBlockAllField = value; + this.isBlockAllSpecified = true; } } - /// RateType of the line item and proposal line item this row - /// represents. This attribute is read-only. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 9)] - public RateType rateType { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool isBlockAllSpecified { get { - return this.rateTypeField; + return this.isBlockAllFieldSpecified; } set { - this.rateTypeField = value; - this.rateTypeSpecified = true; + this.isBlockAllFieldSpecified = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool rateTypeSpecified { + /// The labels that will be blocked from serving. Any advertiser, order or line item + /// with one of these labels will not serve on the relevant ad units and their + /// children. + /// + [System.Xml.Serialization.XmlElementAttribute("blockedLabelIds", Order = 5)] + public long[] blockedLabelIds { get { - return this.rateTypeFieldSpecified; + return this.blockedLabelIdsField; } set { - this.rateTypeFieldSpecified = value; + this.blockedLabelIdsField = value; } } - /// The LineItem#costPerUnit of the line item - /// this row represents. This attribute is read-only. + /// The allowed list of labels that will not be blocked by this rule. This trumps + /// the values of #isBlockAllLabels and #blockedLabelIds. For example, if a rule specifies a + /// blocked label "Cars", and an allowed label "Sports", any ad that is labeled both + /// "Sports" and "Cars" will not be blocked by this rule. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 10)] - public Money lineItemCostPerUnit { + [System.Xml.Serialization.XmlElementAttribute("allowedLabelIds", Order = 6)] + public long[] allowedLabelIds { get { - return this.lineItemCostPerUnitField; + return this.allowedLabelIdsField; } set { - this.lineItemCostPerUnitField = value; + this.allowedLabelIdsField = value; } } - /// The LineItem#contractedUnitsBought - /// of the line item this row represents. null if it is unlimited. This - /// attribute is read-only. + /// The derived type of this rule: whether it is associated with labels, unified + /// entities, or competitive groups. Because it is derived, it is also read-only, so + /// changes made to this field will not be persisted. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 11)] - public long lineItemContractedUnitsBought { + [System.Xml.Serialization.XmlElementAttribute(Order = 7)] + public AdExclusionRuleType type { get { - return this.lineItemContractedUnitsBoughtField; + return this.typeField; } set { - this.lineItemContractedUnitsBoughtField = value; - this.lineItemContractedUnitsBoughtSpecified = true; + this.typeField = value; + this.typeSpecified = 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 lineItemContractedUnitsBoughtSpecified { + public bool typeSpecified { get { - return this.lineItemContractedUnitsBoughtFieldSpecified; + return this.typeFieldSpecified; } set { - this.lineItemContractedUnitsBoughtFieldSpecified = value; + this.typeFieldSpecified = value; } } + } - /// The volume recorded by the DoubleClick for Publishers server. The meaning of - /// this value depends on the #rateType, for example if the - /// #rateType is RateType#CPC, it - /// represents clicks; if the #rateType is RateType#CPM, it represents impressions; if the #rateType is RateType#CPD, it - /// represents line item days.

If the #billFrom is BillFrom#DFP, this attribute will be set to #reconciledVolume and used to calculate the #reconciledRevenue.

This attribute is - /// read-only.

+ + /// The derived type of this rule: whether it is associated with labels, unified + /// entities, or competitive groups. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum AdExclusionRuleType { + /// Rule is associated with labels and is relevant only for direct reservations. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 12)] - public long dfpVolume { + LABEL = 0, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 1, + } + + + /// Ad exclusion rule specific errors. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class AdExclusionRuleError : ApiError { + private AdExclusionRuleErrorReason reasonField; + + private bool reasonFieldSpecified; + + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public AdExclusionRuleErrorReason reason { get { - return this.dfpVolumeField; + return this.reasonField; } set { - this.dfpVolumeField = value; - this.dfpVolumeSpecified = 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 dfpVolumeSpecified { + public bool reasonSpecified { get { - return this.dfpVolumeFieldSpecified; + return this.reasonFieldSpecified; } set { - this.dfpVolumeFieldSpecified = value; + this.reasonFieldSpecified = value; } } + } - /// The volume recorded by the third-party ad server. The meaning of this value - /// depends on the #rateType, for example if the #rateType is RateType#CPC, it - /// represents clicks; if the #rateType is RateType#CPM, it represents impressions; if the #rateType is RateType#CPD, it - /// represents line item days. If the #billFrom is BillFrom#THIRD_PARTY, this attribute will be set - /// to #reconciledVolume and used to calculate the - /// #reconciledRevenue. This attribute is optional. + + /// The reasons for the ad exclusion rule error. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AdExclusionRuleError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum AdExclusionRuleErrorReason { + /// The AdExclusionRule#inventoryTargeting + /// cannot target the root ad unit if AdExclusionRule#isBlockAll is true. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 13)] - public long thirdPartyVolume { + BLOCK_ALL_RULE_CANNOT_INCLUDE_ROOT_AD_UNIT = 0, + /// The AdExclusionRule#blockedLabelIds must + /// be empty if AdExclusionRule#isBlockAll + /// is true. + /// + BLOCK_ALL_RULE_CANNOT_HAVE_BLOCKED_LABELS = 1, + /// The AdExclusionRule#allowedLabelIds must + /// contain allowed labels if AdExclusionRule#isBlockAll is true. + /// + BLOCK_ALL_RULE_MUST_CONTAIN_ALLOWED_LABELS = 2, + /// The AdExclusionRule must contain blocking + /// information. + /// + RULE_MUST_CONTAIN_BLOCKING = 3, + /// The same label ID cannot be contained in both AdExclusionRule#allowedLabelIds and + /// AdExclusionRule#blockedLabelIds. + /// + BLOCKED_LABEL_ALSO_ALLOWED = 4, + /// Label IDs included in AdExclusionRule#allowedLabelIds and + /// AdExclusionRule#blockedLabelIds + /// must correspond to Label objects with type Label#AD_EXCLUSION. + /// + LABELS_MUST_BE_AD_EXCLUSION_TYPE = 5, + /// The same ad unit cannot be included in both InventoryTargeting#targetedAdUnits + /// and InventoryTargeting#excludedAdUnits + /// in AdExclusionRule#inventoryTargeting. + /// + EXCLUDED_AD_UNIT_ALSO_INCLUDED = 6, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 7, + } + + + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", ConfigurationName = "Google.Api.Ads.AdManager.v201908.AdExclusionRuleServiceInterface")] + public interface AdExclusionRuleServiceInterface + { + // 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.v201908.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Wrappers.AdExclusionRuleService.createAdExclusionRulesResponse createAdExclusionRules(Wrappers.AdExclusionRuleService.createAdExclusionRulesRequest request); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + System.Threading.Tasks.Task createAdExclusionRulesAsync(Wrappers.AdExclusionRuleService.createAdExclusionRulesRequest request); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201908.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v201908.AdExclusionRulePage getAdExclusionRulesByStatement(Google.Api.Ads.AdManager.v201908.Statement filterStatement); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task getAdExclusionRulesByStatementAsync(Google.Api.Ads.AdManager.v201908.Statement filterStatement); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201908.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v201908.UpdateResult performAdExclusionRuleAction(Google.Api.Ads.AdManager.v201908.AdExclusionRuleAction adExclusionRuleAction, Google.Api.Ads.AdManager.v201908.Statement filterStatement); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task performAdExclusionRuleActionAsync(Google.Api.Ads.AdManager.v201908.AdExclusionRuleAction adExclusionRuleAction, Google.Api.Ads.AdManager.v201908.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.v201908.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Wrappers.AdExclusionRuleService.updateAdExclusionRulesResponse updateAdExclusionRules(Wrappers.AdExclusionRuleService.updateAdExclusionRulesRequest request); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + System.Threading.Tasks.Task updateAdExclusionRulesAsync(Wrappers.AdExclusionRuleService.updateAdExclusionRulesRequest request); + } + + + /// Represents a page of AdExclusionRule objects. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class AdExclusionRulePage { + private int totalResultSetSizeField; + + private bool totalResultSetSizeFieldSpecified; + + private int startIndexField; + + private bool startIndexFieldSpecified; + + private AdExclusionRule[] 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.thirdPartyVolumeField; + return this.totalResultSetSizeField; } set { - this.thirdPartyVolumeField = value; - this.thirdPartyVolumeSpecified = 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 thirdPartyVolumeSpecified { + public bool totalResultSetSizeSpecified { get { - return this.thirdPartyVolumeFieldSpecified; + return this.totalResultSetSizeFieldSpecified; } set { - this.thirdPartyVolumeFieldSpecified = value; + this.totalResultSetSizeFieldSpecified = value; } } - /// The volume manually entered. The meaning of this value depends on the #rateType, for example if the #rateType is RateType#CPC, it - /// represents clicks; if the #rateType is RateType#CPM, it represents impressions; if the #rateType is RateType#CPD, it - /// represents line item days.

If the #billFrom is BillFrom#MANUAL, this attribute will be set to #reconciledVolume and used to calculate the #reconciledRevenue.

This attribute is - /// optional.

+ /// The absolute index in the total result set on which this page begins. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 14)] - public long manualVolume { + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public int startIndex { get { - return this.manualVolumeField; + return this.startIndexField; } set { - this.manualVolumeField = value; - this.manualVolumeSpecified = 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 manualVolumeSpecified { + public bool startIndexSpecified { get { - return this.manualVolumeFieldSpecified; + return this.startIndexFieldSpecified; } set { - this.manualVolumeFieldSpecified = value; + this.startIndexFieldSpecified = value; } } - /// The volume depending upon the #billFrom value. The - /// meaning of this value depends on the #rateType, for - /// example if the #rateType is RateType#CPC, it represents clicks; if the #rateType is RateType#CPM, it - /// represents impressions; if the #rateType is RateType#CPD, it represents line item days. This - /// attribute is read-only. + /// The collection of audience segments contained within this page. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 15)] - public long reconciledVolume { + [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] + public AdExclusionRule[] results { get { - return this.reconciledVolumeField; + return this.resultsField; } set { - this.reconciledVolumeField = value; - this.reconciledVolumeSpecified = true; + this.resultsField = value; } } + } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reconciledVolumeSpecified { - get { - return this.reconciledVolumeFieldSpecified; - } - set { - this.reconciledVolumeFieldSpecified = value; - } + + /// Represents the actions that can be performed on AdExclusionRule objects. + /// + [System.Xml.Serialization.XmlIncludeAttribute(typeof(DeactivateAdExclusionRules))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ActivateAdExclusionRules))] + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public abstract partial class AdExclusionRuleAction { + } + + + /// Deactivate action. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class DeactivateAdExclusionRules : AdExclusionRuleAction { + } + + + /// Activate action. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class ActivateAdExclusionRules : AdExclusionRuleAction { + } + + + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + public interface AdExclusionRuleServiceInterfaceChannel : Google.Api.Ads.AdManager.v201908.AdExclusionRuleServiceInterface, System.ServiceModel.IClientChannel + { + } + + + /// Provides methods for creating, updating and retrieving AdExclusionRule objects.

An AdExclusionRule provides a way to block specified ads + /// from showing on portions of your site. Each rule specifies the inventory on + /// which the rule is in effect, and the labels to block on that inventory.

+ ///
+ [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + public partial class AdExclusionRuleService : AdManagerSoapClient, IAdExclusionRuleService { + /// Creates a new instance of the + /// class. + public AdExclusionRuleService() { } - /// The revenue calculated based on the #contractedGoal and #costPerUnit. This attribute is calculated by Google and - /// is read-only. + /// Creates a new instance of the + /// class. + public AdExclusionRuleService(string endpointConfigurationName) + : base(endpointConfigurationName) { + } + + /// Creates a new instance of the + /// class. + public AdExclusionRuleService(string endpointConfigurationName, string remoteAddress) + : base(endpointConfigurationName, remoteAddress) { + } + + /// Creates a new instance of the + /// class. + public AdExclusionRuleService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) + : base(endpointConfigurationName, remoteAddress) { + } + + /// Creates a new instance of the + /// class. + public AdExclusionRuleService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) + : base(binding, remoteAddress) { + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + Wrappers.AdExclusionRuleService.createAdExclusionRulesResponse Google.Api.Ads.AdManager.v201908.AdExclusionRuleServiceInterface.createAdExclusionRules(Wrappers.AdExclusionRuleService.createAdExclusionRulesRequest request) { + return base.Channel.createAdExclusionRules(request); + } + + /// Creates new AdExclusionRule objects. + /// the ad exclusion rules to create + /// the created rules with their IDs filled in + public virtual Google.Api.Ads.AdManager.v201908.AdExclusionRule[] createAdExclusionRules(Google.Api.Ads.AdManager.v201908.AdExclusionRule[] adExclusionRules) { + Wrappers.AdExclusionRuleService.createAdExclusionRulesRequest inValue = new Wrappers.AdExclusionRuleService.createAdExclusionRulesRequest(); + inValue.adExclusionRules = adExclusionRules; + Wrappers.AdExclusionRuleService.createAdExclusionRulesResponse retVal = ((Google.Api.Ads.AdManager.v201908.AdExclusionRuleServiceInterface)(this)).createAdExclusionRules(inValue); + return retVal.rval; + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201908.AdExclusionRuleServiceInterface.createAdExclusionRulesAsync(Wrappers.AdExclusionRuleService.createAdExclusionRulesRequest request) { + return base.Channel.createAdExclusionRulesAsync(request); + } + + public virtual System.Threading.Tasks.Task createAdExclusionRulesAsync(Google.Api.Ads.AdManager.v201908.AdExclusionRule[] adExclusionRules) { + Wrappers.AdExclusionRuleService.createAdExclusionRulesRequest inValue = new Wrappers.AdExclusionRuleService.createAdExclusionRulesRequest(); + inValue.adExclusionRules = adExclusionRules; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201908.AdExclusionRuleServiceInterface)(this)).createAdExclusionRulesAsync(inValue)).Result.rval); + } + + /// Gets a AdExclusionRulePage of AdExclusionRule objects that satisfy the given Statement#query. The following fields are supported + /// for filtering: + /// + ///
PQL Property Object Property
id AdExclusionRule#id
name AdExclusionRule#name
status AdExclusionRule#status
+ ///
a Publisher Query Language statement used to + /// filter a set of rules + /// the rules that match the given filter + public virtual Google.Api.Ads.AdManager.v201908.AdExclusionRulePage getAdExclusionRulesByStatement(Google.Api.Ads.AdManager.v201908.Statement filterStatement) { + return base.Channel.getAdExclusionRulesByStatement(filterStatement); + } + + public virtual System.Threading.Tasks.Task getAdExclusionRulesByStatementAsync(Google.Api.Ads.AdManager.v201908.Statement filterStatement) { + return base.Channel.getAdExclusionRulesByStatementAsync(filterStatement); + } + + /// Performs action on AdExclusionRule objects that + /// satisfy the given Statement#query. + /// the action to perform + /// a Publisher Query Language statement used to + /// filter a set of ad exclusion rules + /// the result of the action performed + public virtual Google.Api.Ads.AdManager.v201908.UpdateResult performAdExclusionRuleAction(Google.Api.Ads.AdManager.v201908.AdExclusionRuleAction adExclusionRuleAction, Google.Api.Ads.AdManager.v201908.Statement filterStatement) { + return base.Channel.performAdExclusionRuleAction(adExclusionRuleAction, filterStatement); + } + + public virtual System.Threading.Tasks.Task performAdExclusionRuleActionAsync(Google.Api.Ads.AdManager.v201908.AdExclusionRuleAction adExclusionRuleAction, Google.Api.Ads.AdManager.v201908.Statement filterStatement) { + return base.Channel.performAdExclusionRuleActionAsync(adExclusionRuleAction, filterStatement); + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + Wrappers.AdExclusionRuleService.updateAdExclusionRulesResponse Google.Api.Ads.AdManager.v201908.AdExclusionRuleServiceInterface.updateAdExclusionRules(Wrappers.AdExclusionRuleService.updateAdExclusionRulesRequest request) { + return base.Channel.updateAdExclusionRules(request); + } + + /// Updates the specified AdExclusionRule objects. + /// the ad exclusion rules to update + /// the updated rules + public virtual Google.Api.Ads.AdManager.v201908.AdExclusionRule[] updateAdExclusionRules(Google.Api.Ads.AdManager.v201908.AdExclusionRule[] adExclusionRules) { + Wrappers.AdExclusionRuleService.updateAdExclusionRulesRequest inValue = new Wrappers.AdExclusionRuleService.updateAdExclusionRulesRequest(); + inValue.adExclusionRules = adExclusionRules; + Wrappers.AdExclusionRuleService.updateAdExclusionRulesResponse retVal = ((Google.Api.Ads.AdManager.v201908.AdExclusionRuleServiceInterface)(this)).updateAdExclusionRules(inValue); + return retVal.rval; + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201908.AdExclusionRuleServiceInterface.updateAdExclusionRulesAsync(Wrappers.AdExclusionRuleService.updateAdExclusionRulesRequest request) { + return base.Channel.updateAdExclusionRulesAsync(request); + } + + public virtual System.Threading.Tasks.Task updateAdExclusionRulesAsync(Google.Api.Ads.AdManager.v201908.AdExclusionRule[] adExclusionRules) { + Wrappers.AdExclusionRuleService.updateAdExclusionRulesRequest inValue = new Wrappers.AdExclusionRuleService.updateAdExclusionRulesRequest(); + inValue.adExclusionRules = adExclusionRules; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201908.AdExclusionRuleServiceInterface)(this)).updateAdExclusionRulesAsync(inValue)).Result.rval); + } + } + namespace Wrappers.PublisherQueryLanguageService + { + } + /// Each Row object represents data about one entity in a ResultSet. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class Row { + private Value[] valuesField; + + /// Represents a collection of values belonging to one entity. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 16)] - public Money contractedRevenue { + [System.Xml.Serialization.XmlElementAttribute("values", Order = 0)] + public Value[] values { get { - return this.contractedRevenueField; + return this.valuesField; } set { - this.contractedRevenueField = value; + 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.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class TargetingValue : ObjectValue { + private Targeting valueField; - /// The revenue calculated based on the #costPerUnit, #costType, #dfpClicks, #dfpImpressions and #dfpLineItemDays. This attribute is calculated by - /// Google and is read-only. + /// The Targeting value. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 17)] - public Money dfpRevenue { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public Targeting value { get { - return this.dfpRevenueField; + return this.valueField; } set { - this.dfpRevenueField = value; + this.valueField = value; } } + } - /// The revenue calculated based on the #costPerUnit, #costType, #thirdPartyClicks, #thirdPartyImpressions and #thirdPartyLineItemDays. This attribute is - /// calculated by Google and is read-only. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 18)] - public Money thirdPartyRevenue { + + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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.thirdPartyRevenueField; + return this.entityTypeField; } set { - this.thirdPartyRevenueField = value; + this.entityTypeField = value; + this.entityTypeSpecified = true; } } - /// The revenue calculated based on the #costPerUnit, #costType, #manualClicks, #manualImpressions and #manualLineItemDays. This attribute is calculated - /// by Google and is read-only. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 19)] - public Money manualRevenue { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool entityTypeSpecified { get { - return this.manualRevenueField; + return this.entityTypeFieldSpecified; } set { - this.manualRevenueField = value; + this.entityTypeFieldSpecified = value; } } - /// The revenue calculated based on the #billFrom, #contractedRevenue, #dfpRevenue, #thirdPartyRevenue and #manualRevenue. This attribute is calculated by Google - /// and is read-only. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 20)] - public Money reconciledRevenue { + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public ChangeHistoryOperation operation { get { - return this.reconciledRevenueField; + return this.operationField; } set { - this.reconciledRevenueField = value; + this.operationField = value; + this.operationSpecified = true; } } - /// The comments for this row. This attribute is optional. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 21)] - public string comments { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool operationSpecified { get { - return this.commentsField; + return this.operationFieldSpecified; } set { - this.commentsField = value; + this.operationFieldSpecified = value; } } } - /// Captures a page of ReconciliationReportRow - /// objects + /// The type of entity a change occurred on. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ReconciliationReportRowPage { - private int totalResultSetSizeField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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, + } - private bool totalResultSetSizeFieldSpecified; - private int startIndexField; + /// An operation that was performed on an entity. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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, + } - private bool startIndexFieldSpecified; - private ReconciliationReportRow[] resultsField; + /// Contains information about a column in a ResultSet. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class ColumnType { + private string labelNameField; - /// The size of the total result set to which this page belongs. + /// Represents the column's name. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public int totalResultSetSize { + public string labelName { get { - return this.totalResultSetSizeField; + return this.labelNameField; } set { - this.totalResultSetSizeField = value; - this.totalResultSetSizeSpecified = true; + this.labelNameField = 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; - } - } + /// The ResultSet represents a table of data obtained from the + /// execution of a PQL Statement. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class ResultSet { + private ColumnType[] columnTypesField; - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool startIndexSpecified { + private Row[] rowsField; + + /// A collection of ColumnType objects. + /// + [System.Xml.Serialization.XmlElementAttribute("columnTypes", Order = 0)] + public ColumnType[] columnTypes { get { - return this.startIndexFieldSpecified; + return this.columnTypesField; } set { - this.startIndexFieldSpecified = value; + this.columnTypesField = value; } } - /// The collection of reconciliation report rows contained within this page. + /// A collection of Row objects. /// - [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] - public ReconciliationReportRow[] results { + [System.Xml.Serialization.XmlElementAttribute("rows", Order = 1)] + public Row[] rows { get { - return this.resultsField; + return this.rowsField; } set { - this.resultsField = value; + this.rowsField = value; } } } [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", ConfigurationName = "Google.Api.Ads.AdManager.v201808.ReconciliationReportRowServiceInterface")] - public interface ReconciliationReportRowServiceInterface + [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", ConfigurationName = "Google.Api.Ads.AdManager.v201908.PublisherQueryLanguageServiceInterface")] + public interface PublisherQueryLanguageServiceInterface { [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201908.ApiException), Action = "", Name = "ApiExceptionFault")] [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v201808.ReconciliationReportRowPage getReconciliationReportRowsByStatement(Google.Api.Ads.AdManager.v201808.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getReconciliationReportRowsByStatementAsync(Google.Api.Ads.AdManager.v201808.Statement filterStatement); + Google.Api.Ads.AdManager.v201908.ResultSet select(Google.Api.Ads.AdManager.v201908.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.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Wrappers.ReconciliationReportRowService.updateReconciliationReportRowsResponse updateReconciliationReportRows(Wrappers.ReconciliationReportRowService.updateReconciliationReportRowsRequest request); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task updateReconciliationReportRowsAsync(Wrappers.ReconciliationReportRowService.updateReconciliationReportRowsRequest request); + System.Threading.Tasks.Task selectAsync(Google.Api.Ads.AdManager.v201908.Statement selectStatement); } [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public interface ReconciliationReportRowServiceInterfaceChannel : Google.Api.Ads.AdManager.v201808.ReconciliationReportRowServiceInterface, System.ServiceModel.IClientChannel + public interface PublisherQueryLanguageServiceInterfaceChannel : Google.Api.Ads.AdManager.v201908.PublisherQueryLanguageServiceInterface, System.ServiceModel.IClientChannel { } - /// Provides methods for retrieving and updating the ReconciliationReportRow objects. + /// 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

+ /// + ///
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 NameDescription
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
MobileDeviceManufacturerName Name 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 Name Description
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.
LineItemType Text Indicates the line item + /// type of a LineItem.
NameText The name of the LineItem.
OrderId Number The ID of the Order to which the belongs.
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.<p> <b>This object is experimental! + /// <code>Targeting</code> is an experimental, innovative, and rapidly + /// changing new feature for DFP. Unfortunately, being on the bleeding edge means + /// that we may make backwards-incompatible changes to + /// <code>Targeting</code>. We will inform the community when this + /// feature is no longer experimental.</b>
UnitsBought Number The 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.

Exchange_Rate

+ /// + /// + /// + /// + ///
Column nameType Description
CurrencyCodeText The currency code that the exchange rate is + /// related to. The exchange rate is between this currency and the network's currency. This attribute is + /// required for creation and then is readonly.
DirectionText The direction that the exchange rate is in. It + /// determines whether the exchange rate is from this currency to the network's currency, or from the network's currency to this currency. This + /// attribute can be updated.
ExchangeRateNumber The latest exchange rate at current refresh + /// rate and in current direction. The value is stored as the exchange rate times + /// 10,000,000,000 truncated to a long. Setting this attribute requires the refresh + /// rate to be already set to ExchangeRateRefreshRate#FIXED. + /// Otherwise an exception will be thrown.
IdNumber The ID of the ExchangeRate. This + /// attribute is readonly and is assigned by Google when an exchange rate is + /// created.
RefreshRate Text The + /// refresh rate at which the exchange rate is updated. Setting this attribute to ExchangeRateRefreshRate#FIXED without + /// setting the exchange rate value will cause unknown exchange rate value returned + /// in future queries.

Programmatic_Buyer

+ /// + /// + /// + /// + /// + ///
Column + /// name Type Description
BuyerAccountIdNumber The ID used by Adx 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.

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.

Proposal_Retraction_Reason

+ /// + /// + /// + ///
Column name Type Description
IdNumber The ID of the + /// ProposalRetractionReason. This attribute is readonly and is + /// assigned by Google when a proposal retraction reason is created.
IsActive Boolean True if the + /// ProposalRetractionReason is active.
NameText The name of the + /// ProposalRetractionReason.

Time_Zone

+ /// + /// + ///
Column name TypeDescription
Id Text The + /// id of time zone in the form of .
StandardGmtOffset Text 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
ContentText The content of the terms and conditions.
Id Number Uniquely identifies the + /// terms and conditions.
IsDefaultBoolean Whether or not this set of terms and + /// conditions are the default for a network.
LastModifiedDateTime Datetime The date and + /// time this terms and conditions was last modified.
NameText The name of the terms and conditions.

Change_History

Restrictions: Only ordering + /// by ChangeDateTime descending is supported. 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 + /// ChangeDateTime are required. + /// + /// + /// + /// + /// + ///
Column nameType Description
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
///
[System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public partial class ReconciliationReportRowService : AdManagerSoapClient, IReconciliationReportRowService { + public partial class PublisherQueryLanguageService : AdManagerSoapClient, IPublisherQueryLanguageService { /// Creates a new instance of the class. - public ReconciliationReportRowService() { + /// cref="PublisherQueryLanguageService"/> class.
+ public PublisherQueryLanguageService() { } /// Creates a new instance of the class. - public ReconciliationReportRowService(string endpointConfigurationName) + /// cref="PublisherQueryLanguageService"/> class.
+ public PublisherQueryLanguageService(string endpointConfigurationName) : base(endpointConfigurationName) { } /// Creates a new instance of the class. - public ReconciliationReportRowService(string endpointConfigurationName, string remoteAddress) + /// cref="PublisherQueryLanguageService"/> class.
+ public PublisherQueryLanguageService(string endpointConfigurationName, string remoteAddress) : base(endpointConfigurationName, remoteAddress) { } /// Creates a new instance of the class. - public ReconciliationReportRowService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) + /// cref="PublisherQueryLanguageService"/> class.
+ public PublisherQueryLanguageService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) : base(endpointConfigurationName, remoteAddress) { } /// Creates a new instance of the class. - public ReconciliationReportRowService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) + /// cref="PublisherQueryLanguageService"/> class.
+ public PublisherQueryLanguageService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) : base(binding, remoteAddress) { } - /// Gets a ReconciliationReportRowPage of - /// ReconciliationReportRow objects that - /// satisfy the given Statement#query. The following - /// fields are supported for filtering: - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - ///
PQL - /// Property Object Property
reconciliationReportId ReconciliationReportRow#reconciliationReportId
advertiserId ReconciliationReportRow#advertiserId
orderId ReconciliationReportRow#orderId
lineItemId ReconciliationReportRow#lineItemId
proposalLineItemId ReconciliationReportRow#proposalLineItemId
creativeId ReconciliationReportRow#creativeId
lineItemCostType ReconciliationReportRow#lineItemCostType
dfpClicks ReconciliationReportRow#dfpClicks
dfpImpressions ReconciliationReportRow#dfpImpressions
dfpLineItemDays ReconciliationReportRow#dfpLineItemDays
thirdPartyClicks ReconciliationReportRow#thirdPartyClicks
thirdPartyImpressions ReconciliationReportRow#thirdPartyImpressions
thirdPartyLineItemDays ReconciliationReportRow#thirdPartyLineItemDays
manualClicks ReconciliationReportRow#manualClicks
manualImpressions ReconciliationReportRow#manualImpressions
manualLineItemDays ReconciliationReportRow#manualLineItemDays
reconciledClicks ReconciliationReportRow#reconciledClicks
reconciledImpressions ReconciliationReportRow#reconciledImpressions
reconciledLineItemDays ReconciliationReportRow#reconciledLineItemDays
The reconciliationReportId field is required and can - /// only be combined with an AND to other conditions. Furthermore, the - /// results may only belong to one ReconciliationReport. - ///
a Publisher Query Language statement used to - /// filter a set of reconciliation report rows - /// the reconciliation report rows that match the given filter - public virtual Google.Api.Ads.AdManager.v201808.ReconciliationReportRowPage getReconciliationReportRowsByStatement(Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.getReconciliationReportRowsByStatement(filterStatement); - } - - public virtual System.Threading.Tasks.Task getReconciliationReportRowsByStatementAsync(Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.getReconciliationReportRowsByStatementAsync(filterStatement); - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.ReconciliationReportRowService.updateReconciliationReportRowsResponse Google.Api.Ads.AdManager.v201808.ReconciliationReportRowServiceInterface.updateReconciliationReportRows(Wrappers.ReconciliationReportRowService.updateReconciliationReportRowsRequest request) { - return base.Channel.updateReconciliationReportRows(request); - } - - /// Updates a list of ReconciliationReportRow - /// which belong to same ReconciliationReport. - /// a list of reconciliation report rows to - /// update - /// the updated reconciliation report rows - public virtual Google.Api.Ads.AdManager.v201808.ReconciliationReportRow[] updateReconciliationReportRows(Google.Api.Ads.AdManager.v201808.ReconciliationReportRow[] reconciliationReportRows) { - Wrappers.ReconciliationReportRowService.updateReconciliationReportRowsRequest inValue = new Wrappers.ReconciliationReportRowService.updateReconciliationReportRowsRequest(); - inValue.reconciliationReportRows = reconciliationReportRows; - Wrappers.ReconciliationReportRowService.updateReconciliationReportRowsResponse retVal = ((Google.Api.Ads.AdManager.v201808.ReconciliationReportRowServiceInterface)(this)).updateReconciliationReportRows(inValue); - return retVal.rval; - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201808.ReconciliationReportRowServiceInterface.updateReconciliationReportRowsAsync(Wrappers.ReconciliationReportRowService.updateReconciliationReportRowsRequest request) { - return base.Channel.updateReconciliationReportRowsAsync(request); + /// Retrieves rows of data that satisfy the given Statement#query from the system. + /// a Publisher Query Language statement used to + /// specify what data needs to returned + /// a result set of data that matches the given filter + public virtual Google.Api.Ads.AdManager.v201908.ResultSet select(Google.Api.Ads.AdManager.v201908.Statement selectStatement) { + return base.Channel.select(selectStatement); } - public virtual System.Threading.Tasks.Task updateReconciliationReportRowsAsync(Google.Api.Ads.AdManager.v201808.ReconciliationReportRow[] reconciliationReportRows) { - Wrappers.ReconciliationReportRowService.updateReconciliationReportRowsRequest inValue = new Wrappers.ReconciliationReportRowService.updateReconciliationReportRowsRequest(); - inValue.reconciliationReportRows = reconciliationReportRows; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201808.ReconciliationReportRowServiceInterface)(this)).updateReconciliationReportRowsAsync(inValue)).Result.rval); + public virtual System.Threading.Tasks.Task selectAsync(Google.Api.Ads.AdManager.v201908.Statement selectStatement) { + return base.Channel.selectAsync(selectStatement); } } namespace Wrappers.ReportService @@ -59369,7 +43808,7 @@ namespace Wrappers.ReportService [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public partial class ReportError : ApiError { private ReportErrorReason reasonField; @@ -59403,7 +43842,7 @@ public bool reasonSpecified { [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ReportError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ReportError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public enum ReportErrorReason { /// Default ReportError when the reason is not among any already /// defined. @@ -59438,25 +43877,6 @@ public enum ReportErrorReason { /// The attribute ID(s) are not valid. /// INVALID_ATTRIBUTES = 10, - /// The API error when running the report with ContentHierarchyDimension. There are three - /// reasons for this error.
  1. ReportQuery#dimensions contains Dimension#CONTENT_HIERARCHY, but ReportQuery#contentMetadataHierarchyCustomTargetingKeyIds - /// is empty.
  2. ReportQuery#contentMetadataHierarchyCustomTargetingKeyIds - /// is non-empty, but ReportQuery#dimensions - /// does not contain Dimension#CONTENT_HIERARCHY.
  3. The - /// ReportQuery#contentMetadataKeyHierarchyCustomTargetingKeyIds - /// specified along with the Dimension#CONTENT_HIERARCHY are not - /// valid, i.e., these IDs are not defined in the content hierarchy by the - /// publisher.
- ///
- INVALID_CONTENT_HIERARCHY_DIMENSIONS = 11, /// Invalid Column objects specified. /// INVALID_COLUMNS = 12, @@ -59515,7 +43935,7 @@ public enum ReportErrorReason { [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public partial class CurrencyCodeError : ApiError { private CurrencyCodeErrorReason reasonField; @@ -59551,7 +43971,7 @@ public bool reasonSpecified { ///
[System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CurrencyCodeError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CurrencyCodeError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public enum CurrencyCodeErrorReason { /// The currency code is invalid and does not follow ISO 4217. /// @@ -59563,63 +43983,63 @@ public enum CurrencyCodeErrorReason { [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", ConfigurationName = "Google.Api.Ads.AdManager.v201808.ReportServiceInterface")] + [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", ConfigurationName = "Google.Api.Ads.AdManager.v201908.ReportServiceInterface")] public interface ReportServiceInterface { [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201908.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.v201808.ExportFormat exportFormat); + string getReportDownloadURL(long reportJobId, Google.Api.Ads.AdManager.v201908.ExportFormat exportFormat); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getReportDownloadURLAsync(long reportJobId, Google.Api.Ads.AdManager.v201808.ExportFormat exportFormat); + System.Threading.Tasks.Task getReportDownloadURLAsync(long reportJobId, Google.Api.Ads.AdManager.v201908.ExportFormat exportFormat); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201908.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.v201808.ReportDownloadOptions reportDownloadOptions); + string getReportDownloadUrlWithOptions(long reportJobId, Google.Api.Ads.AdManager.v201908.ReportDownloadOptions reportDownloadOptions); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getReportDownloadUrlWithOptionsAsync(long reportJobId, Google.Api.Ads.AdManager.v201808.ReportDownloadOptions reportDownloadOptions); + System.Threading.Tasks.Task getReportDownloadUrlWithOptionsAsync(long reportJobId, Google.Api.Ads.AdManager.v201908.ReportDownloadOptions reportDownloadOptions); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201908.ApiException), Action = "", Name = "ApiExceptionFault")] [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v201808.ReportJobStatus getReportJobStatus(long reportJobId); + Google.Api.Ads.AdManager.v201908.ReportJobStatus getReportJobStatus(long reportJobId); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getReportJobStatusAsync(long reportJobId); + System.Threading.Tasks.Task getReportJobStatusAsync(long reportJobId); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201908.ApiException), Action = "", Name = "ApiExceptionFault")] [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v201808.SavedQueryPage getSavedQueriesByStatement(Google.Api.Ads.AdManager.v201808.Statement filterStatement); + Google.Api.Ads.AdManager.v201908.SavedQueryPage getSavedQueriesByStatement(Google.Api.Ads.AdManager.v201908.Statement filterStatement); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getSavedQueriesByStatementAsync(Google.Api.Ads.AdManager.v201808.Statement filterStatement); + System.Threading.Tasks.Task getSavedQueriesByStatementAsync(Google.Api.Ads.AdManager.v201908.Statement filterStatement); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201908.ApiException), Action = "", Name = "ApiExceptionFault")] [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v201808.ReportJob runReportJob(Google.Api.Ads.AdManager.v201808.ReportJob reportJob); + Google.Api.Ads.AdManager.v201908.ReportJob runReportJob(Google.Api.Ads.AdManager.v201908.ReportJob reportJob); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task runReportJobAsync(Google.Api.Ads.AdManager.v201808.ReportJob reportJob); + System.Threading.Tasks.Task runReportJobAsync(Google.Api.Ads.AdManager.v201908.ReportJob reportJob); } @@ -59627,7 +44047,7 @@ public interface ReportServiceInterface ///
[System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public enum ExportFormat { /// The report file is generated as a list of Tab Separated Values. /// @@ -59663,7 +44083,7 @@ public enum ExportFormat { [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public partial class ReportDownloadOptions { private ExportFormat exportFormatField; @@ -59797,7 +44217,7 @@ public bool useGzipCompressionSpecified { ///
[System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public enum ReportJobStatus { /// The ReportJob has completed successfully and is ready to /// download. @@ -59818,7 +44238,7 @@ public enum ReportJobStatus { [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public partial class SavedQueryPage { private int totalResultSetSizeField; @@ -59903,7 +44323,7 @@ public SavedQuery[] results { [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public partial class SavedQuery { private long idField; @@ -60011,7 +44431,7 @@ public bool isCompatibleWithApiVersionSpecified { [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public partial class ReportQuery { private Dimension[] dimensionsField; @@ -60025,7 +44445,7 @@ public partial class ReportQuery { private long[] customFieldIdsField; - private long[] contentMetadataKeyHierarchyCustomTargetingKeyIdsField; + private long[] customDimensionKeyIdsField; private Date startDateField; @@ -60158,42 +44578,38 @@ public long[] customFieldIds { } } - /// The list of content metadata hierarchy custom targeting key IDs being requested in this report. Each of - /// these IDs must have been defined in the content metadata key hierarchy. This will - /// include dimensions in the form of and where where + /// 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 is the and VALUE is the name.

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

+ /// 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("contentMetadataKeyHierarchyCustomTargetingKeyIds", Order = 5)] - public long[] contentMetadataKeyHierarchyCustomTargetingKeyIds { + [System.Xml.Serialization.XmlElementAttribute("customDimensionKeyIds", Order = 5)] + public long[] customDimensionKeyIds { get { - return this.contentMetadataKeyHierarchyCustomTargetingKeyIdsField; + return this.customDimensionKeyIdsField; } set { - this.contentMetadataKeyHierarchyCustomTargetingKeyIdsField = value; + this.customDimensionKeyIdsField = value; } } @@ -60367,7 +44783,7 @@ public bool timeZoneTypeSpecified { ///
[System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] 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'.

Note: In @@ -60375,7 +44791,9 @@ public enum Dimension { /// types:

- ///

Corresponds to "Month and year" in the Ad Manager UI.

+ ///

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

///
MONTH_AND_YEAR = 0, /// Breaks down reporting data by week of the year in the network time zone. Cannot @@ -60383,7 +44801,9 @@ public enum Dimension { /// compatible with the following time zone types:

- ///

Corresponds to "Week" in the Ad Manager UI.

+ ///

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

///
WEEK = 1, /// Breaks down reporting data by date in the network time zone. Can be used to @@ -60391,61 +44811,77 @@ public enum Dimension { /// and later, this dimension is compatible with the following time zone types:

/// - ///

Corresponds to "Date" in the Ad Manager UI.

+ ///

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

///
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.

+ /// 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, Sales.

///
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.

+ /// the Ad Manager UI. Compatible with any of the following report types: + /// Historical, Reach.

///
HOUR = 4, /// Breaks down reporting data by LineItem#id. Can be used - /// to filter by LineItem#id. + /// to filter by LineItem#id.

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

///
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.

+ /// Manager UI. Compatible with any of the following report types: Historical, + /// Future sell-through, Reach, Sales, Data protection.

///
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.

+ ///

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

///
LINE_ITEM_TYPE = 7, /// Breaks down reporting data by Order#id. Can be used to - /// filter by Order#id. + /// filter by Order#id.

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

///
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.

+ ///

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

///
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'. + /// 'STARTED', 'NOT_STARTED' and 'COMPLETED'.

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

///
ORDER_DELIVERY_STATUS = 142, /// Breaks down reporting data by advertising company Company#id. Can be used to filter by Company#id. + /// href='Company#id'>Company#id.

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

///
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.

+ /// Manager UI. Compatible with any of the following report types: Historical, + /// Future sell-through, Reach, Sales, Data protection.

///
ADVERTISER_NAME = 11, /// The network that provided the ad for SDK ad mediation.

If selected for a @@ -60456,84 +44892,103 @@ public enum Dimension { /// 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.

+ /// href='#ADVERTISER_ID'>#ADVERTISER_ID.

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

///
AD_NETWORK_ID = 12, /// The name of the network defined in #AD_NETWORK_ID. - ///

Corresponds to "Ad network name" in the Ad Manager UI.

+ ///

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

///
AD_NETWORK_NAME = 13, /// Breaks down reporting data by salesperson User#id. Can be - /// used to filter by User#id. + /// used to filter by User#id.

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

///
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.

+ /// Manager UI. Compatible with any of the following report types: Historical, + /// Future sell-through, Reach, Sales, Data protection.

///
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. + /// href='Creative#id'>Creative#id.

Compatible with any of the following + /// report types: Historical, Reach, Data protection.

///
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.

+ /// Manager UI. Compatible with any of the following report types: Historical, + /// Reach, Data protection.

///
CREATIVE_NAME = 17, /// Breaks down reporting data by creative type.

Corresponds to "Creative type" - /// in the Ad Manager UI.

+ /// in the Ad Manager UI. Compatible with any of the following report types: + /// Historical, Reach.

///
CREATIVE_TYPE = 18, /// Breaks down reporting data by creative billing type.

Corresponds to "Creative - /// billing type" in the Ad Manager UI.

+ /// billing type" in the Ad Manager UI. Compatible with any of the following report + /// types: Historical, Reach.

///
CREATIVE_BILLING_TYPE = 19, - /// Breaks down reporting data by custom event ID. + /// Breaks down reporting data by custom event ID.

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

///
CUSTOM_EVENT_ID = 20, /// Breaks down reporting data by custom event name.

Corresponds to "Custom - /// event" in the Ad Manager UI.

+ /// event" in the Ad Manager UI. Compatible with any of the following report types: + /// Historical, Reach.

///
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.

+ ///

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

///
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.

+ /// be used for filtering.

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

///
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. + /// the report.

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

///
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.

+ ///

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

///
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, Sales.

///
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, Sales.

///
PARENT_AD_UNIT_NAME = 27, /// Breaks down reporting data by Placement#id. Can be - /// used to filter by Placement#id. + /// 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#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.

+ /// 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. + /// href='InventoryStatus'>InventoryStatus enumeration names.

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

///
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.

+ /// "Targeting" in the Ad Manager UI. Compatible with any of the following report + /// types: Historical, Reach.

///
TARGETING = 30, /// The ID of the device category to which an ad is being targeted. Can be used to - /// filter by device category ID. + /// filter by device category ID.

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

///
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.

+ ///

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

///
DEVICE_CATEGORY_NAME = 32, /// Breaks down reporting data by country criteria ID. Can be used to filter by - /// country criteria ID. + /// country criteria ID.

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

///
COUNTRY_CRITERIA_ID = 33, /// 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.

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

///
COUNTRY_NAME = 34, /// Breaks down reporting data by region criteria ID. Can be used to filter by - /// region criteria ID. + /// region criteria ID.

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

///
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.

+ /// the Ad Manager UI. Compatible with any of the following report types: + /// Historical, Reach.

///
REGION_NAME = 36, /// Breaks down reporting data by city criteria ID. Can be used to filter by city - /// criteria ID. + /// criteria ID.

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

///
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.

+ /// UI. Compatible with any of the following report types: Historical, Reach.

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

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

///
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.

+ /// Manager UI. Compatible with any of the following report types: Historical, + /// Reach.

///
METRO_NAME = 40, /// Breaks down reporting data by postal code criteria ID. Can be used to filter by - /// postal code criteria ID. + /// postal code criteria ID.

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

///
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.

+ /// filter by postal code.

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

///
POSTAL_CODE = 42, /// Breaks down reporting data by CustomTargetingValue#id. Can be used to /// filter by CustomTargetingValue#id. + ///

Compatible with any of the following report types: Historical, Reach, + /// Sales.

///
CUSTOM_TARGETING_VALUE_ID = 43, /// Breaks down reporting data by custom criteria. The #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.

+ /// to "Key-values" in the Ad Manager UI. Compatible with any of the following + /// report types: Historical, Reach, Sales.

///
CUSTOM_CRITERIA = 44, /// Breaks down reporting data by activity ID. Can be used to filter by activity ID. + ///

Compatible with any of the following report types: Historical, Reach.

///
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.

+ /// activity name.

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

///
ACTIVITY_NAME = 46, /// Breaks down reporting data by activity group ID. Can be used to filter by - /// activity group ID. + /// activity group ID.

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

///
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.

+ /// Ad Manager UI. Compatible with any of the following report types: Historical, + /// Reach.

///
ACTIVITY_GROUP_NAME = 48, /// Breaks down reporting data by Content#id. Can be used - /// to filter by Content#id. + /// to filter by Content#id.

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

///
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.

+ ///

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

///
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, Reach.

///
CONTENT_BUNDLE_ID = 51, /// Breaks down reporting data by content bundle. 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.

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

///
CONTENT_BUNDLE_NAME = 52, /// Breaks down reporting data by CustomTargetingKey#id. + /// href='CustomTargetingKey#id'>CustomTargetingKey#id.

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

///
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.

+ /// Manager UI. Compatible with any of the following report types: Historical, + /// Reach.

///
VIDEO_METADATA_KEY_NAME = 205, - /// Breaks down reporting data by the content hierarchy. To use this dimension, a - /// list of custom targeting key IDs must be specified in ReportQuery#contentMetadataKeyHierarchyCustomTargetingKeyIds. - ///

This dimension can be used as a filter in the Statement in PQL syntax: - /// CONTENT_HIERARCHY_CUSTOM_TARGETING_KEY[keyId]_ID = custom targeting value ID

For example: - /// WHERE CONTENT_HIERARCHY_CUSTOM_TARGETING_KEY[4242]_ID = 53423

- ///
- CONTENT_HIERARCHY = 53, /// 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.

+ /// Manager UI. Compatible with any of the following report types: Historical, + /// Reach.

///
VIDEO_FALLBACK_POSITION = 54, /// Breaks down reporting data by the position of the video ad within the video @@ -60709,45 +45183,76 @@ public enum Dimension { /// 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.

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

///
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.

+ /// be used for filtering.

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

///
POSITION_IN_POD = 56, /// Breaks down reporting data by video redirect vendor.

Corresponds to "Video - /// redirect third party" in the Ad Manager UI.

+ /// redirect third party" in the Ad Manager UI. Compatible with any of the following + /// report types: Historical, Reach.

///
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 any of the following report types: + /// Historical, Reach.

+ ///
+ 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 any of the following report types: Historical, Reach.

+ ///
+ VIDEO_BREAK_TYPE_NAME = 228, /// Breaks down reporting data by vast version type name.

Corresponds to "VAST - /// version" in the Ad Manager UI.

+ /// version" in the Ad Manager UI. Compatible with any of the following report + /// types: Historical, Reach.

///
VIDEO_VAST_VERSION = 207, + /// Breaks down reporting data by video request duration bucket.

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

+ ///
+ 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 any of the + /// following report types: Historical, Reach.

+ ///
+ VIDEO_AD_REQUEST_DURATION = 230, /// Breaks down reporting data by partner Company#id. + ///

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

///
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.

+ /// the report.

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

///
PARTNER_MANAGEMENT_PARTNER_NAME = 58, /// Breaks down reporting data by partner label Label#id. + ///

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

///
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.

+ /// report.

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

///
PARTNER_MANAGEMENT_PARTNER_LABEL_NAME = 60, - /// Breaks down reporting data by partner assignment id. + /// Breaks down reporting data by partner assignment id.

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

///
PARTNER_MANAGEMENT_ASSIGNMENT_ID = 195, /// Breaks down reporting data by partner assignment name. ParnterAssignment name /// and id are automatically included as columns in the report.

Corresponds to - /// "Assignment" in the Ad Manager UI.

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

///
PARTNER_MANAGEMENT_ASSIGNMENT_NAME = 196, /// Breaks down reporting data by gender and age group, i.e., MALE_13_TO_17, @@ -60757,448 +45262,561 @@ public enum Dimension { /// 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.

+ /// UI: Demographics, comScore vCE demographics. Compatible with any of the + /// following report types: Historical, Reach.

///
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.

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

///
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.

+ /// columns.

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

///
AD_REQUEST_CUSTOM_CRITERIA = 64, - /// The unique identifier used for an ad network that is associated with the company - /// that the ad is served for. - /// - BUYER_ID = 65, - /// The name of the ad network that is associated with the company that the ad is - /// served for. - /// - BUYER_NAME = 66, /// Whether the report contains only Ad Exchange traffic fulfilled by First Look /// Deals or omits it. If this filter isn't included, the report will include First /// Look Deals traffic in addition to any other traffic. This filter can only be /// used with the string values "true" and "false". Not available as a dimension to - /// report on. + /// report on.

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

///
IS_FIRST_LOOK_DEAL = 154, - /// Breaks down reporting data by yield group ID. + /// Breaks down reporting data by yield group ID.

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

///
YIELD_GROUP_ID = 197, /// Breaks down reporting data by yield group name.

Corresponds to "Yield group" - /// in the Ad Manager UI.

+ /// in the Ad Manager UI. Compatible with any of the following report types: + /// Historical, Reach.

///
YIELD_GROUP_NAME = 198, /// Breaks down reporting data by yield partner.

Corresponds to "Yield partner" - /// in the Ad Manager UI.

+ /// in the Ad Manager UI. Compatible with any of the following report types: + /// Historical, Reach.

///
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.

+ ///

Corresponds to "Yield partner tag" in the Ad Manager UI. Compatible with any + /// of the following report types: Historical, Reach.

///
YIELD_PARTNER_TAG = 200, + /// The ID of a classified advertiser.

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

+ ///
+ 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, Reach.

+ ///
+ CLASSIFIED_ADVERTISER_NAME = 232, + /// The ID of a classified brand.

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

+ ///
+ 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, + /// Reach.

+ ///
+ 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.

+ /// mobile app or video.

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

///
MEDIATION_TYPE = 161, /// Breaks down reporting data by native template (also known as creative template) - /// ID. + /// ID.

Compatible with any of the following report types: Historical, Reach.

///
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.

+ /// name.

Corresponds to "Native ad format name" in the Ad Manager UI. Compatible + /// with any of the following report types: Historical, Reach.

///
NATIVE_TEMPLATE_NAME = 156, - /// Breaks down reporting data by native style ID. + /// Breaks down reporting data by native style ID.

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

///
NATIVE_STYLE_ID = 162, /// Breaks down reporting data by native style name.

Corresponds to "Native style - /// name" in the Ad Manager UI.

+ /// name" in the Ad Manager UI. Compatible with any of the following report types: + /// Historical, Reach.

///
NATIVE_STYLE_NAME = 163, /// Breaks down reporting data by mobile app name. Can be used for filtering. - ///

Corresponds to "App names" in the Ad Manager UI.

+ ///

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

///
MOBILE_APP_NAME = 164, /// Breaks down reporting data by device name. Can be used for filtering. - ///

Corresponds to "Devices" in the Ad Manager UI.

+ ///

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

///
MOBILE_DEVICE_NAME = 165, /// Breaks down reporting data by inventory type. Can be used for filtering.

Can /// correspond to any of the following in the Ad Manager UI: Inventory types - /// (retired), Inventory types.

+ /// (retired), Inventory types. Compatible with any of the following report types: + /// Historical, Reach.

///
MOBILE_INVENTORY_TYPE = 166, /// Breaks down reporting data by request type. Can be used for filtering. - ///

Corresponds to "Request type" in the Ad Manager UI.

+ ///

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

///
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. + /// href='InventoryStatus'>InventoryStatus.

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

///
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 any of the following report types: Historical, Reach.

///
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.

+ /// Companion creative" in the Ad Manager UI. Compatible with any of the following + /// report types: Historical, Reach.

///
MASTER_COMPANION_CREATIVE_NAME = 70, /// Breaks down reporting data by ProposalLineItem#id. Can be used to filter by ProposalLineItem#id. + /// href='ProposalLineItem#id'>ProposalLineItem#id.

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

///
PROPOSAL_LINE_ITEM_ID = 71, /// Breaks down reporting data by ProposalLineItem#name. Can be used to filter by /// ProposalLineItem#name.

Corresponds to - /// "Proposal line item" in the Ad Manager UI.

+ /// "Proposal line item" in the Ad Manager UI. Compatible with any of the following + /// report types: Historical, Future sell-through, Reach, Sales.

///
PROPOSAL_LINE_ITEM_NAME = 72, /// Breaks down reporting data by Proposal#id. Can be used - /// to filter by Proposal#id. + /// to filter by Proposal#id.

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

///
PROPOSAL_ID = 73, /// Breaks down reporting data by Proposal#name. Can be /// used to filter by Proposal#name.

Corresponds to - /// "Proposal" in the Ad Manager UI.

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

///
PROPOSAL_NAME = 74, /// Breaks down reporting data by salesperson User#id, /// including both salesperson and secondary salespeople. Can be used to filter by - /// all salespeople User#id. + /// all salespeople User#id.

Compatible with any of the + /// following report types: Historical, Reach, Sales.

///
ALL_SALESPEOPLE_ID = 75, /// Breaks down reporting data by salesperson User#name, /// including both salesperson and secondary salespeople. Can be used to filter by /// all salespeople User#name.

Corresponds to "All - /// salespeople" in the Ad Manager UI.

+ /// salespeople" in the Ad Manager UI. Compatible with any of the following report + /// types: Historical, Reach, Sales.

///
ALL_SALESPEOPLE_NAME = 76, /// Used to filter by User#id in sales team. Sales team /// includes salesperson, secondary salesperson, sales planners. Not available as a - /// dimension to report on. + /// dimension to report on.

Compatible with any of the following report types: + /// Historical, Reach, Sales.

///
SALES_TEAM_ID = 145, /// Used to filter by User#name in sales team. Sales team /// includes salesperson, secondary salesperson, sales planners. Not available as a - /// dimension to report on. + /// dimension to report on.

Compatible with any of the following report types: + /// Historical, Reach, Sales.

///
SALES_TEAM_NAME = 146, /// Breaks down reporting data by proposal agency Company#id. Can be used to filter by proposal agency Company#id. + /// href='Company#id'>Company#id.

Compatible with any of the following report + /// types: Historical, Reach, Sales.

///
PROPOSAL_AGENCY_ID = 77, /// Breaks down reporting data by proposal agency Company#name. Can be used to filter by proposal agency /// Company#name.

Corresponds to "Proposal agency" in - /// the Ad Manager UI.

+ /// the Ad Manager UI. Compatible with any of the following report types: + /// Historical, Reach, Sales.

///
PROPOSAL_AGENCY_NAME = 78, /// Breaks down reporting data by Product#id. Can be used - /// to filter by Product#id. + /// to filter by Product#id.

Compatible with any of the + /// following report types: Historical, Reach, Sales.

///
PRODUCT_ID = 79, /// Breaks down reporting data by Product#name. - ///

Corresponds to "Product" in the Ad Manager UI.

+ ///

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

///
PRODUCT_NAME = 80, /// Breaks down reporting data by ProductTemplate#id. Can be used to filter by ProductTemplate#id. + /// href='ProductTemplate#id'>ProductTemplate#id.

Compatible with any of the + /// following report types: Historical, Reach, Sales.

///
PRODUCT_TEMPLATE_ID = 81, /// Breaks down reporting data by ProductTemplate#name. Can be used to filter by /// ProductTemplate#name.

Corresponds to - /// "Product template" in the Ad Manager UI.

+ /// "Product template" in the Ad Manager UI. Compatible with any of the following + /// report types: Historical, Reach, Sales.

///
PRODUCT_TEMPLATE_NAME = 82, /// Breaks down reporting data by RateCard#id. Can be used - /// to filter by RateCard#id. + /// to filter by RateCard#id.

Compatible with any of the following + /// report types: Historical, Reach, Sales.

///
RATE_CARD_ID = 83, /// Breaks down reporting data by RateCard#name. Can be /// used to filter by RateCard#name.

Corresponds to "Rate card" in - /// the Ad Manager UI.

+ /// the Ad Manager UI. Compatible with any of the following report types: + /// Historical, Reach, Sales.

///
RATE_CARD_NAME = 84, /// Used to filter by Workflow#id. Not available as a - /// dimension to report on. + /// dimension to report on.

Compatible with any of the following report types: + /// Historical, Reach, Sales.

///
WORKFLOW_ID = 85, /// Used to filter by Workflow#name. Not available as a - /// dimension to report on. + /// dimension to report on.

Compatible with any of the following report types: + /// Historical, Reach, Sales.

///
WORKFLOW_NAME = 86, - /// Breaks down reporting data by Package#id. + /// Breaks down reporting data by Package#id.

Compatible + /// with any of the following report types: Historical, Reach, Sales.

///
PACKAGE_ID = 147, /// Breaks down reporting data by Package#name. - ///

Corresponds to "Package" in the Ad Manager UI.

+ ///

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

///
PACKAGE_NAME = 148, /// Breaks down reporting data by ProductPackage#id. /// Can be used to filter by ProductPackage#id. + ///

Compatible with any of the following report types: Historical, Reach, + /// Sales.

///
PRODUCT_PACKAGE_ID = 149, /// Breaks down reporting data by ProductPackage#name. Can be used to filter by ProductPackage#name.

Corresponds to "Product - /// package" in the Ad Manager UI.

+ /// package" in the Ad Manager UI. Compatible with any of the following report + /// types: Historical, Reach, Sales.

///
PRODUCT_PACKAGE_NAME = 150, - /// Breaks down reporting data by billable audience segment ID. + /// Breaks down reporting data by billable audience segment ID.

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

///
AUDIENCE_SEGMENT_ID = 87, /// Breaks down reporting data by billable audience segment name.

Corresponds to - /// "Audience segment (billable)" in the Ad Manager UI.

+ /// "Audience segment (billable)" in the Ad Manager UI. Compatible with any of the + /// following report types: Historical, Reach.

///
AUDIENCE_SEGMENT_NAME = 88, /// Breaks down reporting data by audience segment data provider name. - ///

Corresponds to "Data partner" in the Ad Manager UI.

+ ///

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

///
AUDIENCE_SEGMENT_DATA_PROVIDER_NAME = 89, /// Breaks down mapped Ad Exchange web property data by Ad Exchange inventory size. - ///

Corresponds to "Inventory sizes" in the Ad Manager UI.

+ ///

Corresponds to "Inventory sizes" in the Ad Manager UI. Compatible with the + /// "Ad Exchange historical" report type.

///
AD_EXCHANGE_INVENTORY_SIZE = 171, /// Breaks down mapped Ad Exchange web property data by Ad Exchange inventory size - /// code. + /// code.

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

///
AD_EXCHANGE_INVENTORY_SIZE_CODE = 172, /// Breaks down mapped Ad Exchange web property data by Ad Exchange device category. - ///

Corresponds to "Device categories" in the Ad Manager UI.

+ ///

Corresponds to "Device categories" in the Ad Manager UI. Compatible with the + /// "Ad Exchange historical" report type.

///
AD_EXCHANGE_DEVICE_CATEGORY = 173, /// Breaks down mapped Ad Exchange web property data by Ad Exchange pricing rule ID. + ///

Compatible with any of the following report types: Historical, Reach.

///
AD_EXCHANGE_PRICING_RULE_ID = 92, /// Breaks down mapped Ad Exchange web property data by Ad Exchange pricing rule. - ///

Corresponds to "Pricing rules" in the Ad Manager UI.

+ ///

Corresponds to "Pricing rules" in the Ad Manager UI. Compatible with the "Ad + /// Exchange historical" report type.

///
AD_EXCHANGE_PRICING_RULE_NAME = 93, /// Breaks down mapped Ad Exchange web property data by Ad Exchange tag. - ///

Corresponds to "Tags" in the Ad Manager UI.

+ ///

Corresponds to "Tags" in the Ad Manager UI. Compatible with the "Ad Exchange + /// historical" report type.

///
AD_EXCHANGE_TAG_NAME = 94, /// Breaks down mapped Ad Exchange web property data by Ad Exchange URL. - ///

Corresponds to "URLs" in the Ad Manager UI.

+ ///

Corresponds to "URLs" in the Ad Manager UI. Compatible with the "Ad Exchange + /// historical" report type.

///
AD_EXCHANGE_URL = 174, - /// Breaks down data by Ad Exchange mapped web property code. + /// Breaks down data by Ad Exchange mapped web property code.

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

///
AD_EXCHANGE_WEB_PROPERTY_CODE = 175, /// Breaks down mapped Ad Exchange web property data by Ad Exchange creative size. - ///

Corresponds to "Creative sizes" in the Ad Manager UI.

+ ///

Corresponds to "Creative sizes" in the Ad Manager UI. Compatible with the "Ad + /// Exchange historical" report type.

///
AD_EXCHANGE_CREATIVE_SIZES = 97, /// Breaks down mapped Ad Exchange web property data by Ad Exchange ad type. - ///

Corresponds to "Ad Types" in the Ad Manager UI.

+ ///

Corresponds to "Ad Types" in the Ad Manager UI. Compatible with the "Ad + /// Exchange historical" report type.

///
AD_EXCHANGE_AD_TYPE = 176, /// Breaks down mapped Ad Exchange web property data by Ad Exchange channel. - ///

Corresponds to "Channels" in the Ad Manager UI.

+ ///

Corresponds to "Channels" in the Ad Manager UI. Compatible with the "Ad + /// Exchange historical" report type.

///
AD_EXCHANGE_CHANNEL_NAME = 99, /// Breaks down mapped Ad Exchange web property data by Ad Exchange product. - ///

Corresponds to "Products" in the Ad Manager UI.

+ ///

Corresponds to "Products" in the Ad Manager UI. Compatible with the "Ad + /// Exchange historical" report type.

///
AD_EXCHANGE_PRODUCT_NAME = 100, /// Breaks down mapped Ad Exchange web property data by Ad Exchange product code. + ///

Compatible with any of the following report types: Historical, Reach.

///
AD_EXCHANGE_PRODUCT_CODE = 177, /// Breaks down mapped Ad Exchange web property data by Ad Exchange site. - ///

Corresponds to "Sites" in the Ad Manager UI.

+ ///

Corresponds to "Sites" in the Ad Manager UI. Compatible with the "Ad Exchange + /// historical" report type.

///
AD_EXCHANGE_SITE_NAME = 101, /// Breaks down mapped Ad Exchange web property data by Ad Exchange request source. - ///

Corresponds to "Request sources" in the Ad Manager UI.

+ ///

Corresponds to "Request sources" in the Ad Manager UI. Compatible with the + /// "Ad Exchange historical" report type.

///
AD_EXCHANGE_REQUEST_SOURCES = 102, /// Breaks down mapped Ad Exchange web property data by the Ad Exchange advertiser - /// name that bids on ads.

Corresponds to "Advertisers" in the Ad Manager UI.

+ /// name that bids on ads.

Corresponds to "Advertisers" in the Ad Manager UI. + /// Compatible with the "Ad Exchange historical" report type.

///
AD_EXCHANGE_ADVERTISER_NAME = 104, /// Breaks down mapped Ad Exchange web property data by the Ad Exchange brand name - /// that bids on ads.

Corresponds to "Brands" in the Ad Manager UI.

+ /// that bids on ads.

Corresponds to "Brands" in the Ad Manager UI. Compatible + /// with the "Ad Exchange historical" report type.

///
AD_EXCHANGE_BRAND_NAME = 178, /// Breaks down mapped Ad Exchange web property data by Ad Exchange agency. - ///

Corresponds to "Agencies" in the Ad Manager UI.

+ ///

Corresponds to "Agencies" in the Ad Manager UI. Compatible with the "Ad + /// Exchange historical" report type.

///
AD_EXCHANGE_AGENCY = 105, /// Breaks down mapped Ad Exchange web property data by Ad Exchange bid type code. + ///

Compatible with any of the following report types: Historical, Reach.

///
AD_EXCHANGE_BID_TYPE_CODE = 179, /// Breaks down mapped Ad Exchange web property data by Ad Exchange branding type - /// code. + /// code.

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

///
AD_EXCHANGE_BRANDING_TYPE_CODE = 180, /// Breaks down mapped Ad Exchange web property data by Ad Exchange branding type. /// Examples: Branded, Anonymous.

Corresponds to "Branding types" in the Ad - /// Manager UI.

+ /// Manager UI. Compatible with the "Ad Exchange historical" report type.

///
AD_EXCHANGE_BRANDING_TYPE = 107, /// Breaks down mapped Ad Exchange web property data by Ad Exchange ad network name. /// Example: Google Adwords.

Corresponds to "Buyer networks" in the Ad Manager - /// UI.

+ /// UI. Compatible with the "Ad Exchange historical" report type.

///
AD_EXCHANGE_BUYER_NETWORK_NAME = 108, /// Breaks down mapped Ad Exchange web property data by Ad Exchange ad network ID. + ///

Compatible with any of the following report types: Historical, Reach.

///
AD_EXCHANGE_BUYER_NETWORK_ID = 181, /// Breaks down mapped Ad Exchange web property data by Ad Exchange custom channel - /// code. + /// code.

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

///
AD_EXCHANGE_CUSTOM_CHANNEL_CODE = 182, /// Breaks down mapped Ad Exchange web property data by Ad Exchange custom channel - /// ID. + /// ID.

Compatible with any of the following report types: Historical, Reach.

///
AD_EXCHANGE_CUSTOM_CHANNEL_ID = 183, /// Breaks down mapped Ad Exchange web property data by Ad Exchange date, in Ad /// Exchange timezone.

Note: In v201802 and later, this dimension is /// compatible with the following time zone types:

- ///

Corresponds to "Days" in the Ad Manager UI.

+ ///

Corresponds to "Days" in the Ad Manager UI. Compatible with the "Ad Exchange + /// historical" report type.

///
AD_EXCHANGE_DATE = 109, /// Breaks down mapped Ad Exchange web property data by Ad Exchange deal id. - ///

Corresponds to "Deal IDs" in the Ad Manager UI.

+ ///

Corresponds to "Deal IDs" in the Ad Manager UI. Compatible with the "Ad + /// Exchange historical" report type.

///
AD_EXCHANGE_DEAL_ID = 111, /// Breaks down mapped Ad Exchange web property data by Ad Exchange deal name. - ///

Corresponds to "Deal names" in the Ad Manager UI.

+ ///

Corresponds to "Deal names" in the Ad Manager UI. Compatible with the "Ad + /// Exchange historical" report type.

///
AD_EXCHANGE_DEAL_NAME = 112, /// Breaks down mapped Ad Exchange web property data by Ad Exchange deal/transaction /// type. Example: Open auction.

Corresponds to "Transaction types" in the Ad - /// Manager UI.

+ /// Manager UI. Compatible with the "Ad Exchange historical" report type.

///
AD_EXCHANGE_TRANSACTION_TYPE = 184, /// Breaks down mapped Ad Exchange web property data by Ad Exchange DSP buyer - /// network name.

Corresponds to "DSPs" in the Ad Manager UI.

+ /// network name.

Corresponds to "DSPs" in the Ad Manager UI. Compatible with the + /// "Ad Exchange historical" report type.

///
AD_EXCHANGE_DSP_BUYER_NETWORK_NAME = 114, /// Breaks down mapped Ad Exchange web property data by Ad Exchange expansion type. - ///

Corresponds to "Expandable types" in the Ad Manager UI.

+ ///

Corresponds to "Expandable types" in the Ad Manager UI. Compatible with the + /// "Ad Exchange historical" report type.

///
AD_EXCHANGE_EXPANSION_TYPE = 115, /// Breaks down mapped Ad Exchange web property data by Ad Exchange country code. + ///

Compatible with any of the following report types: Historical, Reach.

///
AD_EXCHANGE_COUNTRY_CODE = 116, /// Breaks down mapped Ad Exchange web property data by Ad Exchange country name. - ///

Corresponds to "Countries" in the Ad Manager UI.

+ ///

Corresponds to "Countries" in the Ad Manager UI. Compatible with the "Ad + /// Exchange historical" report type.

///
AD_EXCHANGE_COUNTRY_NAME = 117, /// Breaks down mapped Ad Exchange web property data by Ad Manager ad unit ID. + ///

Compatible with any of the following report types: Historical, Reach.

///
AD_EXCHANGE_DFP_AD_UNIT_ID = 185, /// Breaks down mapped Ad Exchange web property data by Ad Manager ad unit. - ///

Corresponds to "DFP Ad Units" in the Ad Manager UI.

+ ///

Corresponds to "DFP Ad Units" in the Ad Manager UI. Compatible with the "Ad + /// Exchange historical" report type.

///
AD_EXCHANGE_DFP_AD_UNIT = 186, /// Breaks down mapped Ad Exchange web property data by Ad Exchange inventory - /// ownership.

Corresponds to "Inventory ownership" in the Ad Manager UI.

+ /// ownership.

Corresponds to "Inventory ownership" in the Ad Manager UI. + /// Compatible with the "Ad Exchange historical" report type.

///
AD_EXCHANGE_INVENTORY_OWNERSHIP = 118, /// Breaks down mapped Ad Exchange web property data by Ad Exchange advertiser - /// domain.

Corresponds to "Advertiser domains" in the Ad Manager UI.

+ /// domain.

Corresponds to "Advertiser domains" in the Ad Manager UI. Compatible + /// with the "Ad Exchange historical" report type.

///
AD_EXCHANGE_ADVERTISER_DOMAIN = 187, /// Breaks down mapped Ad Exchange web property data by Ad Exchange mobile app name. - ///

Corresponds to "App names" in the Ad Manager UI.

+ ///

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

///
AD_EXCHANGE_MOBILE_APP_NAME = 120, /// Breaks down mapped Ad Exchange web property data by Ad Exchange mobile carrier - /// name.

Corresponds to "Carrier names" in the Ad Manager UI.

+ /// name.

Corresponds to "Carrier names" in the Ad Manager UI. Compatible with + /// the "Ad Exchange historical" report type.

///
AD_EXCHANGE_MOBILE_CARRIER_NAME = 121, /// Breaks down mapped Ad Exchange web property data by Ad Exchange mobile device - /// name.

Corresponds to "Devices" in the Ad Manager UI.

+ /// name.

Corresponds to "Devices" in the Ad Manager UI. Compatible with the "Ad + /// Exchange historical" report type.

///
AD_EXCHANGE_MOBILE_DEVICE_NAME = 122, /// Breaks down mapped Ad Exchange web property data by Ad Exchange mobile inventory - /// type.

Corresponds to "Inventory types" in the Ad Manager UI.

+ /// type.

Corresponds to "Inventory types" in the Ad Manager UI. Compatible with + /// the "Ad Exchange historical" report type.

///
AD_EXCHANGE_MOBILE_INVENTORY_TYPE = 123, /// Breaks down mapped Ad Exchange web property data by Ad Exchange month, in Ad /// Exchange timezone.

Note: In v201802 and later, this dimension is /// compatible with the following time zone types:

- ///

Corresponds to "Months" in the Ad Manager UI.

+ ///

Corresponds to "Months" in the Ad Manager UI. Compatible with the "Ad + /// Exchange historical" report type.

///
AD_EXCHANGE_MONTH = 124, /// Breaks down mapped Ad Exchange web property data by Ad Exchange network partner - /// name.

Corresponds to "Network partner names" in the Ad Manager UI.

+ /// name.

Corresponds to "Network partner names" in the Ad Manager UI. Compatible + /// with the "Ad Exchange historical" report type.

///
AD_EXCHANGE_NETWORK_PARTNER_NAME = 125, /// Breaks down mapped Ad Exchange web property data by Ad Exchange operating system - /// version.

Corresponds to "Operating systems" in the Ad Manager UI.

+ /// version.

Corresponds to "Operating systems" in the Ad Manager UI. Compatible + /// with the "Ad Exchange historical" report type.

///
AD_EXCHANGE_OPERATING_SYSTEM = 188, + /// 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_EXCHANGE_OPTIMIZATION_TYPE = 235, /// Breaks down mapped Ad Exchange web property data by Ad Exchange tags. + ///

Compatible with any of the following report types: Historical, Reach.

///
AD_EXCHANGE_TAG_CODE = 127, /// Breaks down mapped Ad Exchange web property data by Ad Exchange targeting type - /// code. + /// code.

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

///
AD_EXCHANGE_TARGETING_TYPE_CODE = 189, /// Breaks down mapped Ad Exchange web property data by Ad Exchange targeting type. - ///

Corresponds to "Targeting types" in the Ad Manager UI.

+ ///

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

///
AD_EXCHANGE_TARGETING_TYPE = 128, /// Breaks down mapped Ad Exchange web property data by Ad Exchange transaction type - /// code + /// code

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

///
AD_EXCHANGE_TRANSACTION_TYPE_CODE = 190, /// Breaks down mapped Ad Exchange web property data by Ad Exchange URL ID. + ///

Compatible with any of the following report types: Historical, Reach.

///
AD_EXCHANGE_URL_ID = 191, /// Breaks down mapped Ad Exchange web property data by Ad Exchange user bandwidth. - ///

Corresponds to "Bandwidth" in the Ad Manager UI.

+ ///

Corresponds to "Bandwidth" in the Ad Manager UI. Compatible with the "Ad + /// Exchange historical" report type.

///
AD_EXCHANGE_USER_BANDWIDTH_NAME = 133, /// Breaks down mapped Ad Exchange web property data by Ad Exchange video ad - /// duration. + /// duration.

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

///
AD_EXCHANGE_VIDEO_AD_DURATION = 134, /// Breaks down mapped Ad Exchange web property data by Ad Exchange raw video ad - /// duration.

Corresponds to "Video ad durations" in the Ad Manager UI.

+ /// duration.

Corresponds to "Video ad durations" in the Ad Manager UI. + /// Compatible with the "Ad Exchange historical" report type.

///
AD_EXCHANGE_VIDEO_AD_DURATION_RAW = 135, /// Breaks down mapped Ad Exchange web property data by Ad Exchange video ad type. - ///

Corresponds to "Video ad types" in the Ad Manager UI.

+ ///

Corresponds to "Video ad types" in the Ad Manager UI. Compatible with the "Ad + /// Exchange historical" report type.

///
AD_EXCHANGE_VIDEO_AD_TYPE = 192, /// Breaks down mapped Ad Exchange web property data by Ad Exchange week, in Ad /// Exchange timezone.

Note: In v201802 and later, this dimension is /// compatible with the following time zone types:

- ///

Corresponds to "Weeks" in the Ad Manager UI.

+ ///

Corresponds to "Weeks" in the Ad Manager UI. Compatible with the "Ad Exchange + /// historical" report type.

///
AD_EXCHANGE_WEEK = 137, /// Breaks down mapped Ad Exchange web property data by Ad Exchange ad location. - ///

Corresponds to "Ad locations" in the Ad Manager UI.

+ ///

Corresponds to "Ad locations" in the Ad Manager UI. Compatible with the "Ad + /// Exchange historical" report type.

///
AD_EXCHANGE_AD_LOCATION = 193, /// Breaks down mapped Ad Exchange web property data by Ad Exchange advertiser - /// vertical.

Corresponds to "Advertiser verticals" in the Ad Manager UI.

+ /// vertical.

Corresponds to "Advertiser verticals" in the Ad Manager UI. + /// Compatible with the "Ad Exchange historical" report type.

///
AD_EXCHANGE_ADVERTISER_VERTICAL = 194, /// Campaign date segment of Nielsen Digital Ad Ratings reporting.

Corresponds to - /// "Nielsen Digital Ad Ratings segment" in the Ad Manager UI.

+ /// "Nielsen Digital Ad Ratings segment" in the Ad Manager UI. Compatible with any + /// of the following report types: Historical, Reach.

///
NIELSEN_SEGMENT = 151, /// Breaks down reporting data by gender and age group, i.e., MALE_18_TO_20, @@ -61210,75 +45828,129 @@ public enum Dimension { /// 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.

+ /// "Nielsen Digital Ad Ratings restatement date" in the Ad Manager UI. Compatible + /// with any of the following report types: Historical, Reach.

///
NIELSEN_RESTATEMENT_DATE = 153, /// Breaks down reporting data by ProposalMarketplaceInfo#buyerAccountId. + ///

Compatible with any of the following report types: Historical, Reach, + /// Sales.

///
PROGRAMMATIC_BUYER_ID = 167, /// Breaks down reporting data by programmatic buyer name.

Corresponds to - /// "Programmatic buyer" in the Ad Manager UI.

+ /// "Programmatic buyer" in the Ad Manager UI. Compatible with any of the following + /// report types: Historical, Reach, Sales.

///
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.

+ /// or a single size.

Corresponds to "Requested ad sizes" in the Ad Manager UI. + /// Compatible with any of the following report types: Historical, Reach.

///
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.

+ ///

Corresponds to "Creative size (delivered)" in the Ad Manager UI. Compatible + /// with any of the following report types: Historical, Reach.

///
CREATIVE_SIZE_DELIVERED = 170, + /// Breaks down reporting data by the type of transaction that occurred in Ad + /// Exchange.

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

+ ///
+ 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.

+ ///
+ PROGRAMMATIC_CHANNEL_NAME = 223, /// 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.

+ /// "Date" in the Ad Manager UI. Compatible with the "Ad Connector" 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.

+ ///
+ 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.

+ ///
+ DP_MONTH_YEAR = 220, /// Breaks down Demand reporting data by country criteria ID. Can be used to filter - /// by country criteria ID. + /// by country criteria ID.

Compatible with the "Ad Connector" 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.

+ /// "Country" in the Ad Manager UI. Compatible with the "Ad Connector" report + /// type.

///
DP_COUNTRY_NAME = 210, /// Breaks down Demand reporting data by inventory type.

Corresponds to - /// "Inventory type" in the Ad Manager UI.

+ /// "Inventory type" in the Ad Manager UI. Compatible with the "Ad Connector" 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.

+ ///

Corresponds to "Creative size" in the Ad Manager UI. Compatible with the "Ad + /// Connector" 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.

+ ///

Corresponds to "Brand" in the Ad Manager UI. Compatible with the "Ad + /// Connector" 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.

+ ///

Corresponds to "Advertiser" in the Ad Manager UI. Compatible with the "Ad + /// Connector" 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.

+ /// Google Adwords.

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

///
DP_ADX_BUYER_NETWORK_NAME = 215, /// Breaks down reporting data by device name.

Corresponds to "Device" in the Ad - /// Manager UI.

+ /// Manager UI. Compatible with the "Ad Connector" 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.

+ /// tablet, or desktop).

Corresponds to "Device category" in the Ad Manager UI. + /// Compatible with the "Ad Connector" report type.

///
DP_DEVICE_CATEGORY_NAME = 217, - /// Breaks down reporting data by demand channels. + /// 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.

+ ///
+ 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.

+ ///
+ 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.

+ ///
+ 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. + /// + CUSTOM_DIMENSION = 226, + /// Breaks down reporting data by demand channels.

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

///
DEMAND_CHANNEL_ID = 202, /// Breaks down reporting data by demand channel name.

Corresponds to "Demand - /// channel" in the Ad Manager UI.

+ /// channel" in the Ad Manager UI. Compatible with any of the following report + /// types: Historical, Reach.

///
DEMAND_CHANNEL_NAME = 203, } @@ -61288,7 +45960,7 @@ public enum Dimension { ///
[System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ReportQuery.AdUnitView", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ReportQuery.AdUnitView", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public enum ReportQueryAdUnitView { /// Only the top level ad units. Metrics include events for their descendants that /// are not filtered out. @@ -61321,57 +45993,55 @@ public enum ReportQueryAdUnitView { /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public enum Column { /// The number of impressions delivered by the ad server.

Corresponds to "Ad - /// server impressions" in the Ad Manager UI.

+ /// server impressions" in the Ad Manager UI. Compatible with the "Historical" + /// report type.

///
AD_SERVER_IMPRESSIONS = 0, - /// The number of downloaded impressions delivered by the ad server.

Corresponds - /// to "Ad server downloaded impressions" in the Ad Manager UI.

- ///
- AD_SERVER_DOWNLOADED_IMPRESSIONS = 434, /// 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.

+ /// UI. Compatible with the "Historical" 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.

+ /// clicks" in the Ad Manager UI. Compatible with the "Historical" 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.

+ /// targeting.

Corresponds to "Ad server targeted clicks" in the Ad Manager UI. + /// Compatible with the "Historical" 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.

+ /// in the Ad Manager UI. Compatible with the "Historical" 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.

+ /// the Ad Manager UI. Compatible with the "Historical" 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.

+ /// UI. Compatible with the "Historical" 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.

+ /// by the ad server.

Corresponds to "CPA revenue" in the Ad Manager UI. + /// Compatible with the "Historical" 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.

Can correspond to any of the following in the /// Ad Manager UI: Ad server CPM, CPC, CPD, and vCPM revenue, Ad server CPM, CPC and - /// CPD revenue.

+ /// CPD revenue. Compatible with the "Historical" 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.

+ /// the Ad Manager UI. Compatible with the "Historical" report type.

///
AD_SERVER_WITHOUT_CPD_AVERAGE_ECPM = 9, /// The average estimated cost-per-thousand-impressions earned from the CPM, CPC and @@ -61379,40 +46049,17 @@ public enum Column { /// AD_SERVER_WITH_CPD_AVERAGE_ECPM = 10, /// The ratio of the number of impressions delivered to the total impressions - /// delivered when no LineItem reservation could be found by - /// the ad server for inventory-level dynamic allocation. For Ad Manager 360 - /// networks, this includes line item-level dynamic allocation as well. Represented - /// as a percentage. DEPRECATED - use Column.AD_SERVER_LINE_ITEM_LEVEL_PERCENT_IMPRESSIONS. - /// - AD_SERVER_INVENTORY_LEVEL_PERCENT_IMPRESSIONS = 11, - /// 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.

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

///
AD_SERVER_LINE_ITEM_LEVEL_PERCENT_IMPRESSIONS = 12, - /// The ratio of the number of clicks delivered to the total clicks delivered when - /// no LineItem reservation could be found by the ad server - /// for inventory-level dynamic allocation. For Ad Manager 360 networks, this - /// includes line item-level dynamic allocation as well. Represented as a - /// percentage. DEPRECATED - use Column.AD_SERVER_LINE_ITEM_LEVEL_PERCENT_CLICKS. - /// - AD_SERVER_INVENTORY_LEVEL_PERCENT_CLICKS = 13, /// 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.

+ ///

Corresponds to "Ad server clicks (%)" in the Ad Manager UI. Compatible with + /// the "Historical" 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 ads delivered when no LineItem reservation - /// could be found by the ad server for inventory-level dynamic allocation. For Ad - /// Manager 360 networks, this includes line item-level dynamic allocation as well. - /// Represented as a percentage. DEPRECATED - use Column.AD_SERVER_LINE_ITEM_LEVEL_WITHOUT_CPD_PERCENT_REVENUE. - /// - AD_SERVER_INVENTORY_LEVEL_WITHOUT_CPD_PERCENT_REVENUE = 15, /// The ratio of revenue generated by ad server to the total CPM, CPC and CPD /// revenue earned by ads delivered when no LineItem /// reservation could be found by the ad server for inventory-level dynamic @@ -61422,8 +46069,8 @@ public enum Column { AD_SERVER_INVENTORY_LEVEL_WITH_CPD_PERCENT_REVENUE = 16, /// 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.

+ /// as a percentage.

Corresponds to "Ad server revenue (%)" in the Ad Manager UI. + /// Compatible with the "Historical" 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 @@ -61433,117 +46080,66 @@ public enum Column { 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.

+ /// downloaded impressions" in the Ad Manager UI. Compatible with the "Historical" + /// report type.

///
AD_SERVER_UNFILTERED_IMPRESSIONS = 435, /// 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.

+ /// spam.

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

///
AD_SERVER_UNFILTERED_CLICKS = 436, - /// The number of impressions a dynamic allocation ad delivered when no LineItem reservation could be found by the ad server for - /// inventory-level dynamic allocation. For Ad Manager 360 networks, this includes - /// line item-level dynamic allocation as well. DEPRECATED - use Column.ADSENSE_LINE_ITEM_LEVEL_IMPRESSIONS. - /// - DYNAMIC_ALLOCATION_INVENTORY_LEVEL_IMPRESSIONS = 24, /// The number of impressions an AdSense ad delivered for line item-level dynamic - /// allocation.

Corresponds to "AdSense impressions" in the Ad Manager UI.

+ /// allocation.

Corresponds to "AdSense impressions" in the Ad Manager UI. + /// Compatible with the "Historical" 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.

+ /// targeted impressions" in the Ad Manager UI. Compatible with the "Historical" + /// report type.

///
ADSENSE_LINE_ITEM_LEVEL_TARGETED_IMPRESSIONS = 27, - /// The number of clicks a dynamic allocation ad delivered when no LineItem reservation could be found by the ad server for - /// inventory-level dynamic allocation. For Ad Manager 360 networks, this includes - /// line item-level dynamic allocation as well. DEPRECATED - use Column.ADSENSE_LINE_ITEM_LEVEL_CLICKS. - /// - DYNAMIC_ALLOCATION_INVENTORY_LEVEL_CLICKS = 28, /// The number of clicks an AdSense ad delivered for line item-level dynamic - /// allocation.

Corresponds to "AdSense clicks" in the Ad Manager UI.

+ /// allocation.

Corresponds to "AdSense clicks" in the Ad Manager UI. Compatible + /// with the "Historical" 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.

+ /// targeted clicks" in the Ad Manager UI. Compatible with the "Historical" report + /// type.

///
ADSENSE_LINE_ITEM_LEVEL_TARGETED_CLICKS = 30, - /// The ratio of clicks a dynamic allocation ad delivered to the number of - /// impressions it delivered when no LineItem reservation - /// could be found by the ad server for inventory-level dynamic allocation. For Ad - /// Manager 360 networks, this includes line item-level dynamic allocation as well. - /// DEPRECATED - use Column.ADSENSE_LINE_ITEM_LEVEL_CTR. - /// - DYNAMIC_ALLOCATION_INVENTORY_LEVEL_CTR = 31, /// 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.

+ ///

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

///
ADSENSE_LINE_ITEM_LEVEL_CTR = 32, - /// Revenue generated from ads delivered for dynamic allocation when no LineItem reservation could be found by the ad server for - /// inventory-level dynamic allocation. For Ad Manager 360 networks, this includes - /// line item-level dynamic allocation as well. DEPRECATED - use Column.ADSENSE_LINE_ITEM_LEVEL_REVENUE. - /// - DYNAMIC_ALLOCATION_INVENTORY_LEVEL_REVENUE = 33, /// Revenue generated from AdSense ads delivered for line item-level dynamic - /// allocation.

Corresponds to "AdSense revenue" in the Ad Manager UI.

+ /// allocation.

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

///
ADSENSE_LINE_ITEM_LEVEL_REVENUE = 34, - /// The average estimated cost-per-thousand-impressions earned from dynamic - /// allocation ads delivered when no LineItem reservation - /// could be found by the ad server for inventory-level dynamic allocation. For Ad - /// Manager 360 networks, this includes line item-level dynamic allocation as well. - /// DEPRECATED - use Column.ADSENSE_LINE_ITEM_LEVEL_AVERAGE_ECPM. - /// - DYNAMIC_ALLOCATION_INVENTORY_LEVEL_AVERAGE_ECPM = 35, /// 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.

+ /// "AdSense average eCPM" in the Ad Manager UI. Compatible with the "Historical" + /// report type.

///
ADSENSE_LINE_ITEM_LEVEL_AVERAGE_ECPM = 36, - /// The ratio of the number of impressions delivered by dynamic allocation ads to - /// the total impressions delivered when no LineItem - /// reservation could be found by the ad server for inventory-level dynamic - /// allocation. For Ad Manager 360 networks, this includes line item-level dynamic - /// allocation as well. Represented as a percentage. DEPRECATED - use Column.ADSENSE_LINE_ITEM_LEVEL_PERCENT_IMPRESSIONS. - /// - DYNAMIC_ALLOCATION_INVENTORY_LEVEL_PERCENT_IMPRESSIONS = 37, /// 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.

+ /// Ad Manager UI. Compatible with the "Historical" report type.

///
ADSENSE_LINE_ITEM_LEVEL_PERCENT_IMPRESSIONS = 38, - /// The ratio of the number of clicks delivered by dynamic allocation ads to the - /// total clicks delivered when no LineItem reservation could - /// be found by the ad server for inventory-level dynamic allocation. For Ad Manager - /// 360 networks, this includes line item-level dynamic allocation as well. - /// Represented as a percentage. DEPRECATED - use Column.ADSENSE_LINE_ITEM_LEVEL_PERCENT_CLICKS. - /// - DYNAMIC_ALLOCATION_INVENTORY_LEVEL_PERCENT_CLICKS = 39, /// 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.

+ /// percentage.

Corresponds to "AdSense clicks (%)" in the Ad Manager UI. + /// Compatible with the "Historical" report type.

///
ADSENSE_LINE_ITEM_LEVEL_PERCENT_CLICKS = 40, - /// The ratio of revenue to the total revenue earned from the dynamic allocation CPM - /// and CPC ads delivered when no LineItem reservation could - /// be found by the ad server for inventory-level dynamic allocation. For Ad Manager - /// 360 networks, this includes line item-level dynamic allocation as well. - /// Represented as a percentage. DEPRECATED - use Column.ADSENSE_LINE_ITEM_LEVEL_WITHOUT_CPD_PERCENT_REVENUE. - /// - DYNAMIC_ALLOCATION_INVENTORY_LEVEL_WITHOUT_CPD_PERCENT_REVENUE = 41, /// The ratio of revenue to the total revenue earned from the dynamic allocation /// CPM, CPC and CPD ads delivered when no LineItem /// reservation could be found by the ad server for inventory-level dynamic @@ -61553,7 +46149,8 @@ public enum Column { DYNAMIC_ALLOCATION_INVENTORY_LEVEL_WITH_CPD_PERCENT_REVENUE = 42, /// 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.

+ /// percentage.

Corresponds to "AdSense revenue (%)" in the Ad Manager UI. + /// Compatible with the "Historical" 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 @@ -61563,123 +46160,147 @@ public enum Column { 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.

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

///
AD_EXCHANGE_LINE_ITEM_LEVEL_IMPRESSIONS = 45, /// Ad Impressions on mapped Ad Exchange properties. When multiple text ads fill a /// single display slot it is only counted once, when the top text ad is recognized. /// In these cases, the Ad Impression is attributed to the top text ad. - ///

Corresponds to "Ad impressions" in the Ad Manager UI.

+ ///

Corresponds to "Ad impressions" in the Ad Manager UI. Compatible with the "Ad + /// Exchange historical" report type.

///
AD_EXCHANGE_IMPRESSIONS = 46, /// Number of requests where a buyer was matched with the Ad request, for mapped Ad - /// Exchange properties.

Corresponds to "Matched requests" in the Ad Manager - /// UI.

+ /// Exchange properties.

Corresponds to "Matched requests" in the Ad Manager UI. + /// Compatible with the "Ad Exchange historical" report type.

///
AD_EXCHANGE_MATCHED_REQUESTS = 440, /// Ad revenue per 1000 ad impressions, for mapped Ad Exchange properties. - ///

Corresponds to "Ad eCPM" in the Ad Manager UI.

+ ///

Corresponds to "Ad eCPM" in the Ad Manager UI. Compatible with the "Ad + /// Exchange historical" report type.

///
AD_EXCHANGE_AD_ECPM = 441, /// The number of clicks delivered by mapped Ad Exchange properties.

Corresponds - /// to "Clicks" in the Ad Manager UI.

+ /// to "Clicks" in the Ad Manager UI. Compatible with the "Ad Exchange historical" + /// report type.

///
AD_EXCHANGE_CLICKS = 49, /// The estimated net revenue generated by mapped Ad Exchange properties. - ///

Corresponds to "Estimated revenue" in the Ad Manager UI.

+ ///

Corresponds to "Estimated revenue" in the Ad Manager UI. Compatible with the + /// "Ad Exchange historical" report type.

///
AD_EXCHANGE_ESTIMATED_REVENUE = 50, /// The coverage reported by mapped Ad Exchange properties.

Corresponds to - /// "Coverage" in the Ad Manager UI.

+ /// "Coverage" in the Ad Manager UI. Compatible with the "Ad Exchange historical" + /// report type.

///
AD_EXCHANGE_COVERAGE = 51, /// The matched queries click-through rate delivered by mapped Ad Exchange - /// properties.

Corresponds to "CTR" in the Ad Manager UI.

+ /// properties.

Corresponds to "CTR" in the Ad Manager UI. Compatible with the + /// "Ad Exchange historical" report type.

///
AD_EXCHANGE_CTR = 58, /// The total lift generated by mapped Ad Exchange properties.

Corresponds to - /// "Lift" in the Ad Manager UI.

+ /// "Lift" in the Ad Manager UI. Compatible with the "Ad Exchange historical" report + /// type.

///
AD_EXCHANGE_LIFT = 53, /// The cost-per-click generated by mapped Ad Exchange properties.

Corresponds to - /// "CPC" in the Ad Manager UI.

+ /// "CPC" in the Ad Manager UI. Compatible with the "Ad Exchange historical" report + /// type.

///
AD_EXCHANGE_CPC = 442, /// The number of ad requests issued by mapped Ad Exchange properties. - ///

Corresponds to "Ad requests" in the Ad Manager UI.

+ ///

Corresponds to "Ad requests" in the Ad Manager UI. Compatible with the "Ad + /// Exchange historical" report type.

///
AD_EXCHANGE_AD_REQUESTS = 443, /// The average estimated cost-per-thousand-ad requests earned by mapped Ad Exchange - /// properties.

Corresponds to "Ad request eCPM" in the Ad Manager UI.

+ /// properties.

Corresponds to "Ad request eCPM" in the Ad Manager UI. Compatible + /// with the "Ad Exchange historical" report type.

///
AD_EXCHANGE_AD_REQUEST_ECPM = 444, /// The click-through rate of ad requests issued by mapped Ad Exchange properties. - ///

Corresponds to "Ad request CTR" in the Ad Manager UI.

+ ///

Corresponds to "Ad request CTR" in the Ad Manager UI. Compatible with the "Ad + /// Exchange historical" report type.

///
AD_EXCHANGE_AD_REQUEST_CTR = 445, /// The click-through rate of impressions issued by mapped Ad Exchange properties. - ///

Corresponds to "Ad CTR" in the Ad Manager UI.

+ ///

Corresponds to "Ad CTR" in the Ad Manager UI. Compatible with the "Ad + /// Exchange historical" report type.

///
AD_EXCHANGE_AD_CTR = 446, /// The video drop off rate for mapped Ad Exchange properties.

Corresponds to - /// "Video drop-off rate" in the Ad Manager UI.

+ /// "Video drop-off rate" in the Ad Manager UI. Compatible with the "Ad Exchange + /// historical" report type.

///
AD_EXCHANGE_VIDEO_DROPOFF_RATE = 59, /// The video abandonment rate for mapped Ad Exchange properties.

Corresponds to - /// "Video abandonment rate" in the Ad Manager UI.

+ /// "Video abandonment rate" in the Ad Manager UI. Compatible with the "Ad Exchange + /// historical" report type.

///
AD_EXCHANGE_VIDEO_ABANDONMENT_RATE = 60, /// The average estimated cost-per-thousand-impressions generated by mapped Ad - /// Exchange properties.

Corresponds to "Matched eCPM" in the Ad Manager UI.

+ /// Exchange properties.

Corresponds to "Matched eCPM" in the Ad Manager UI. + /// Compatible with the "Ad Exchange historical" report type.

///
AD_EXCHANGE_MATCHED_ECPM = 447, /// The estimated percentage of impressions generated by mapped Ad Exchange /// properties that are eligible for Active View measurement.

Corresponds to - /// "Active view measurable" in the Ad Manager UI.

+ /// "Active view measurable" in the Ad Manager UI. Compatible with the "Ad Exchange + /// historical" report type.

///
AD_EXCHANGE_ACTIVE_VIEW_MEASURABLE = 448, /// The percentage of viewable impressions out of all measurable impressions /// generated by mapped Ad Exchange properties.

Corresponds to "Active view - /// viewable" in the Ad Manager UI.

+ /// viewable" in the Ad Manager UI. Compatible with the "Ad Exchange historical" + /// report type.

///
AD_EXCHANGE_ACTIVE_VIEW_VIEWABLE = 449, /// The average time (in seconds) that an individual ad impression generated by /// mapped Ad Exchange properties was viewable.

Corresponds to "Average viewable - /// time (secs)" in the Ad Manager UI.

+ /// time (secs)" in the Ad Manager UI. Compatible with the "Ad Exchange historical" + /// report type.

///
AD_EXCHANGE_AVERAGE_VIEWABLE_TIME = 450, /// Total number of impressions generated by mapped Ad Exchange properties that were /// eligible to measure viewability.

Corresponds to "Active view enabled - /// impressions" in the Ad Manager UI.

+ /// impressions" in the Ad Manager UI. Compatible with the "Ad Exchange historical" + /// report type.

///
AD_EXCHANGE_ACTIVE_VIEW_ENABLED_IMPRESSIONS = 451, /// Total number of eligible impressions generated by mapped Ad Exchange properties /// that were measurable by Active View.

Corresponds to "Active view measured - /// impressions" in the Ad Manager UI.

+ /// impressions" in the Ad Manager UI. Compatible with the "Ad Exchange historical" + /// report type.

///
AD_EXCHANGE_ACTIVE_VIEW_MEASURED_IMPRESSIONS = 452, /// Total number of Active View measurable impressions generated by mapped Ad /// Exchange properties that were viewable.

Corresponds to "Active view viewed - /// impressions" in the Ad Manager UI.

+ /// impressions" in the Ad Manager UI. Compatible with the "Ad Exchange historical" + /// report type.

///
AD_EXCHANGE_ACTIVE_VIEW_VIEWED_IMPRESSIONS = 453, /// Number of responses that shows that a buyer is bidding, for mapped Ad Exchange - /// properties.

Corresponds to "Deals bid responses" in the Ad Manager UI.

+ /// properties.

Corresponds to "Deals bid responses" in the Ad Manager UI. + /// Compatible with the "Ad Exchange historical" report type.

///
AD_EXCHANGE_DEALS_BID_RESPONSES = 455, /// Deal ad requests for mapped Ad Exchange properties which were ?matched? with /// demand from the buyer associated with the Deal. Each ?Deals matched request? /// represents one opportunity for the Deal Buyer to serve their ad in the context - /// of the Deal.

Corresponds to "Deals matched requests" in the Ad Manager - /// UI.

+ /// of the Deal.

Corresponds to "Deals matched requests" in the Ad Manager UI. + /// Compatible with the "Ad Exchange historical" report type.

///
AD_EXCHANGE_DEALS_MATCHED_REQUESTS = 456, /// Total ad requests associated with a given Deal, for mapped Ad Exchange - /// properties.

Corresponds to "Deals ad requests" in the Ad Manager UI.

+ /// properties.

Corresponds to "Deals ad requests" in the Ad Manager UI. + /// Compatible with the "Ad Exchange historical" report type.

///
AD_EXCHANGE_DEALS_AD_REQUESTS = 457, /// Deals matched requests divided by Deals ad requests, for mapped Ad Exchange - /// properties.

Corresponds to "Deals match rate" in the Ad Manager UI.

+ /// properties.

Corresponds to "Deals match rate" in the Ad Manager UI. + /// Compatible with the "Ad Exchange historical" report type.

///
AD_EXCHANGE_DEALS_MATCH_RATE = 458, /// A count of how many users watch the first 25% of a video ad, for mapped Ad @@ -61691,60 +46312,69 @@ public enum Column { /// AD_EXCHANGE_VIDEO_QUARTILE_3 = 66, /// Percentage of times a user clicked Skip, for mapped Ad Exchange properties. - ///

Corresponds to "TrueView skip rate" in the Ad Manager UI.

+ ///

Corresponds to "TrueView skip rate" in the Ad Manager UI. Compatible with the + /// "Ad Exchange historical" report type.

///
AD_EXCHANGE_VIDEO_TRUEVIEW_SKIP_RATE = 67, /// Number of times a video ad has been viewed to completion or watched to 30 /// seconds, whichever happens first, for mapped Ad Exchange properties. - ///

Corresponds to "TrueView views" in the Ad Manager UI.

+ ///

Corresponds to "TrueView views" in the Ad Manager UI. Compatible with the "Ad + /// Exchange historical" report type.

///
AD_EXCHANGE_VIDEO_TRUEVIEW_VIEWS = 459, /// TrueView views divided by TrueView impressions, for mapped Ad Exchange - /// properties.

Corresponds to "TrueView VTR" in the Ad Manager UI.

+ /// properties.

Corresponds to "TrueView VTR" in the Ad Manager UI. Compatible + /// with the "Ad Exchange historical" report type.

///
AD_EXCHANGE_VIDEO_TRUEVIEW_VTR = 460, - /// Mediation third-party average cost-per-thousand-impressions. + /// Mediation third-party average cost-per-thousand-impressions.

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.

+ /// Exchange targeted impressions" 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.

+ /// allocation.

Corresponds to "Ad Exchange clicks" 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.

+ /// targeted clicks" 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.

+ /// CTR" 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.

+ /// 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.

+ ///

Corresponds to "Ad Exchange clicks (%)" 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.

+ /// "Ad Exchange revenue" 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.

+ /// percentage.

Corresponds to "Ad Exchange revenue (%)" 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 @@ -61754,80 +46384,61 @@ public enum Column { 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.

+ /// Exchange average eCPM" 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 by the ad servers including - /// inventory-level dynamic allocation. DEPRECATED - use Column.TOTAL_LINE_ITEM_LEVEL_IMPRESSIONS. - /// - TOTAL_INVENTORY_LEVEL_IMPRESSIONS = 87, /// The total number of impressions delivered including line item-level dynamic - /// allocation.

Corresponds to "Total impressions" in the Ad Manager UI.

+ /// allocation.

Corresponds to "Total impressions" 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.

+ /// targeted impressions" in the Ad Manager UI. Compatible with the "Historical" + /// report type.

///
TOTAL_LINE_ITEM_LEVEL_TARGETED_IMPRESSIONS = 89, - /// The total number of clicks delivered by the ad servers including inventory-level - /// dynamic allocation. DEPRECATED - use Column.TOTAL_LINE_ITEM_LEVEL_CLICKS. - /// - TOTAL_INVENTORY_LEVEL_CLICKS = 91, /// The total number of clicks delivered including line item-level dynamic - /// allocation.

Corresponds to "Total clicks" in the Ad Manager UI.

+ /// 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.

+ /// 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 inventory-level dynamic allocation. - /// DEPRECATED - use Column.TOTAL_LINE_ITEM_LEVEL_CTR. - /// - TOTAL_INVENTORY_LEVEL_CTR = 94, - /// 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.

+ ///

Corresponds to "Total CTR" 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 - /// inventory-level dynamic allocation. DEPRECATED - use Column.TOTAL_LINE_ITEM_LEVEL_CPM_AND_CPC_REVENUE. - /// - TOTAL_INVENTORY_LEVEL_CPM_AND_CPC_REVENUE = 96, /// The total CPM, CPC and CPD revenue generated by the ad servers including /// inventory-level dynamic allocation. /// TOTAL_INVENTORY_LEVEL_ALL_REVENUE = 97, /// 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.

+ /// 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.

Can correspond to any of the following in the /// Ad Manager UI: Total CPM, CPC, CPD, and vCPM revenue, Total CPM, CPC and CPD - /// revenue.

+ /// revenue. 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 inventory-level dynamic allocation. DEPRECATED - use Column.TOTAL_LINE_ITEM_LEVEL_WITHOUT_CPD_AVERAGE_ECPM. - /// - TOTAL_INVENTORY_LEVEL_WITHOUT_CPD_AVERAGE_ECPM = 100, /// Estimated cost-per-thousand-impressions (eCPM) of CPM, CPC and CPD ads delivered /// by the ad servers including inventory-level dynamic allocation. /// TOTAL_INVENTORY_LEVEL_WITH_CPD_AVERAGE_ECPM = 101, /// 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.

+ /// "Total average eCPM" 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 @@ -61836,56 +46447,100 @@ public enum Column { 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.

+ /// served count" 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.

+ ///
+ 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.

+ ///
+ 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.

+ ///
+ 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.

+ ///
+ 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.

+ ///
+ 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.

+ ///
+ AD_EXCHANGE_RESPONSES_SERVED = 514, /// 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.

+ /// "Unfilled impressions" in the Ad Manager UI. Compatible with the "Historical" + /// report type.

///
TOTAL_INVENTORY_LEVEL_UNFILLED_IMPRESSIONS = 105, /// The number of control (unoptimized) impressions delivered for an ad for which /// the optimization feature has been enabled.

Corresponds to "Control - /// impressions" in the Ad Manager UI.

+ /// impressions" in the Ad Manager UI. Compatible with the "Historical" report + /// type.

///
OPTIMIZATION_CONTROL_IMPRESSIONS = 107, /// Number of clicks resulting from the delivery of control (unoptimized) /// impressions for an ad for which the optimization feature has been enabled. - ///

Corresponds to "Control clicks" in the Ad Manager UI.

+ ///

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

///
OPTIMIZATION_CONTROL_CLICKS = 108, /// The CTR for control (unoptimized) impressions for an order for which the /// optimization feature has been enabled.

Corresponds to "Control CTR" in the Ad - /// Manager UI.

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

///
OPTIMIZATION_CONTROL_CTR = 109, /// Number of optimized impressions delivered for an ad for which the optimization /// feature has been enabled.

Corresponds to "Optimized impressions" in the Ad - /// Manager UI.

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

///
OPTIMIZATION_OPTIMIZED_IMPRESSIONS = 110, /// Number of clicks resulting from the delivery of optimized impressions for an ad /// for which the optimization feature has been enabled.

Corresponds to - /// "Optimized clicks" in the Ad Manager UI.

+ /// "Optimized clicks" in the Ad Manager UI. Compatible with the "Historical" report + /// type.

///
OPTIMIZATION_OPTIMIZED_CLICKS = 111, /// Number of non-optimized impressions delivered for an ad for which the /// optimization feature has been enabled.

Corresponds to "Non-optimized - /// impressions" in the Ad Manager UI.

+ /// impressions" in the Ad Manager UI. Compatible with the "Historical" report + /// type.

///
OPTIMIZATION_NON_OPTIMIZED_IMPRESSIONS = 112, /// Number of clicks resulting from the delivery of non-optimized impressions for an /// ad for which the optimization feature has been enabled.

Corresponds to - /// "Non-optimized clicks" in the Ad Manager UI.

+ /// "Non-optimized clicks" in the Ad Manager UI. Compatible with the "Historical" + /// report type.

///
OPTIMIZATION_NON_OPTIMIZED_CLICKS = 113, /// Number of extra clicks resulting from the delivery of optimized impressions for /// an ad for which the optimization feature has been enabled.

Corresponds to - /// "Extra clicks" in the Ad Manager UI.

+ /// "Extra clicks" in the Ad Manager UI. Compatible with the "Historical" report + /// type.

///
OPTIMIZATION_EXTRA_CLICKS = 114, /// The CTR for optimized impressions for an ad for which the optimization feature - /// has been enabled.

Corresponds to "Optimized CTR" in the Ad Manager UI.

+ /// has been enabled.

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

///
OPTIMIZATION_OPTIMIZED_CTR = 115, /// The percentage by which optimized CTRs are greater than the unoptimized CTRs. @@ -61893,495 +46548,548 @@ public enum Column { /// href='Column#OPTIMIZATION_OPTIMIZED_CTR'>Column#OPTIMIZATION_OPTIMIZED_CTR/ /// Column#OPTIMIZATION_CONTROL_CTR) - /// 1) * 100 for an ad for which the optimization feature has been enabled. - ///

Corresponds to "Lift" in the Ad Manager UI.

+ ///

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

///
OPTIMIZATION_LIFT = 116, /// The line item coverage measures how often the traffic was sent for optimization. - ///

Corresponds to "Percent optimized" in the Ad Manager UI.

+ ///

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

///
OPTIMIZATION_COVERAGE = 117, /// The number of impressions that were behind schedule at the time of their /// delivery.

Corresponds to "Impressions that are behind schedule" in the Ad - /// Manager UI.

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

///
OPTIMIZATION_BEHIND_SCHEDULE_IMPRESSIONS = 118, /// The number of impressions that did not have any clicks recorded in the recent /// past.

Corresponds to "Impressions with no clicks recorded" in the Ad Manager - /// UI.

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

///
OPTIMIZATION_NO_CLICKS_RECORDED_IMPRESSIONS = 119, /// The number of impressions that were delivered as sponsorship items. - ///

Corresponds to "Sponsorship impressions" in the Ad Manager UI.

+ ///

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

///
OPTIMIZATION_SPONSORSHIP_IMPRESSIONS = 120, /// The number of impressions that were set to deliver as fast as possible. ///

Corresponds to "Impressions serving as fast as possible" in the Ad Manager - /// UI.

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

///
OPTIMIZATION_AS_FAST_AS_POSSIBLE_IMPRESSIONS = 121, /// The number of impressions that have no absolute lifetime delivery goals. - ///

Corresponds to "Impressions with no lifetime goal" in the Ad Manager UI.

+ ///

Corresponds to "Impressions with no lifetime goal" in the Ad Manager UI. + /// Compatible with the "Historical" report type.

///
OPTIMIZATION_NO_ABSOLUTE_LIFETIME_GOAL_IMPRESSIONS = 122, /// Total revenue resulting from the delivery of control (unoptimized) impressions /// for an ad for which the optimization feature has been enabled.

Corresponds to - /// "Control revenue" in the Ad Manager UI.

+ /// "Control revenue" in the Ad Manager UI. Compatible with the "Historical" report + /// type.

///
OPTIMIZATION_CONTROL_REVENUE = 123, /// Total revenue resulting from the delivery of optimized impressions for an ad for /// which the optimization feature has been enabled.

Corresponds to "Optimized - /// revenue" in the Ad Manager UI.

+ /// revenue" in the Ad Manager UI. Compatible with the "Historical" report type.

///
OPTIMIZATION_OPTIMIZED_REVENUE = 124, /// Estimated cost-per-thousand-impressions (eCPM) of control (unoptimized) /// impressions for an ad for which the optimization feature has been enabled. - ///

Corresponds to "Control eCPM" in the Ad Manager UI.

+ ///

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

///
OPTIMIZATION_CONTROL_ECPM = 125, /// Estimated cost-per-thousand-impressions (eCPM) of optimized impressions for an /// ad for which the optimization feature has been enabled.

Corresponds to - /// "Optimized eCPM" in the Ad Manager UI.

+ /// "Optimized eCPM" in the Ad Manager UI. Compatible with the "Historical" report + /// type.

///
OPTIMIZATION_OPTIMIZED_ECPM = 126, /// Freed-up impressions as a result of optimization.

Corresponds to "Freed-up - /// impressions" in the Ad Manager UI.

+ /// impressions" in the Ad Manager UI. Compatible with the "Historical" report + /// type.

///
OPTIMIZATION_FREED_UP_IMPRESSIONS = 127, /// Relative change in eCPM as a result of optimization.

Corresponds to "eCPM - /// lift" in the Ad Manager UI.

+ /// lift" in the Ad Manager UI. Compatible with the "Historical" report type.

///
OPTIMIZATION_ECPM_LIFT = 128, /// The average number of ads displayed to each unique visitor.

Corresponds to - /// "Average impressions / visitor" in the Ad Manager UI.

+ /// "Average impressions / visitor" in the Ad Manager UI. Compatible with the + /// "Reach" report type.

///
REACH_FREQUENCY = 129, /// The average revenue earned per unique visitor.

Corresponds to "Average - /// revenue / visitor" in the Ad Manager UI.

+ /// revenue / visitor" in the Ad Manager UI. Compatible with the "Reach" report + /// type.

///
REACH_AVERAGE_REVENUE = 130, /// The number of unique visitors.

To maintain user privacy, "Unique visitors" /// totaling 0-99 won't be displayed in the report and will appear empty.

- ///

Corresponds to "Unique visitors" in the Ad Manager UI.

+ ///

Corresponds to "Unique visitors" in the Ad Manager UI. Compatible with the + /// "Reach" report type.

///
REACH = 131, /// The number of people in the given demographic bucket.

Corresponds to - /// "Population" in the Ad Manager UI.

+ /// "Population" in the Ad Manager UI. Compatible with the "Reach" report type.

///
GRP_POPULATION = 132, /// The number of unique users reached in the given demographic bucket. - ///

Corresponds to "Unique viewers" in the Ad Manager UI.

+ ///

Corresponds to "Unique viewers" in the Ad Manager UI. Compatible with the + /// "Reach" report type.

///
GRP_UNIQUE_AUDIENCE = 133, /// Percentage of the number of unique users reached in the given demographic bucket /// (out of the number of unique users reached in all demographics).

Corresponds - /// to "% Composition unique viewers" in the Ad Manager UI.

+ /// to "% Composition unique viewers" in the Ad Manager UI. Compatible with the + /// "Reach" report type.

///
GRP_UNIQUE_AUDIENCE_SHARE = 134, /// The number of impressions in the given demographic bucket.

Corresponds to - /// "Impressions" in the Ad Manager UI.

+ /// "Impressions" in the Ad Manager UI. Compatible with the "Reach" report type.

///
GRP_AUDIENCE_IMPRESSIONS = 135, /// Percentage of the number of impressions in the given demographic bucket (out of /// the number of impressions in all demographics).

Corresponds to "% Composition - /// impressions" in the Ad Manager UI.

+ /// impressions" in the Ad Manager UI. Compatible with the "Reach" report type.

///
GRP_AUDIENCE_IMPRESSIONS_SHARE = 136, /// The audience reach calculated as #GRP_UNIQUE_AUDIENCE / #GRP_POPULATION.

Corresponds to "% Population - /// reach" in the Ad Manager UI.

+ /// reach" in the Ad Manager UI. Compatible with the "Reach" report type.

///
GRP_AUDIENCE_REACH = 137, /// The audience average frequency calculated as #GRP_AUDIENCE_IMPRESSIONS / #GRP_UNIQUE_AUDIENCE.

Corresponds to "Average frequency" in the - /// Ad Manager UI.

+ /// Ad Manager UI. Compatible with the "Reach" report type.

///
GRP_AUDIENCE_AVERAGE_FREQUENCY = 138, /// The gross rating points (GRP) calculated as #GRP_AUDIENCE_REACH * #GRP_AUDIENCE_AVERAGE_FREQUENCY * 100.

Corresponds to "Target - /// rating points" in the Ad Manager UI.

+ /// rating points" in the Ad Manager UI. Compatible with the "Reach" report + /// type.

///
GRP_GROSS_RATING_POINTS = 139, /// The number of impressions for a particular SDK mediation creative. - ///

Corresponds to "SDK mediation creative impressions" in the Ad Manager UI.

+ ///

Corresponds to "SDK mediation creative impressions" in the Ad Manager UI. + /// 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.

+ /// "SDK mediation creative clicks" 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.

+ /// impressions" in the Ad Manager UI. Compatible with the "Future sell-through" + /// report type.

///
SELL_THROUGH_FORECASTED_IMPRESSIONS = 142, /// 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.

+ /// impressions" in the Ad Manager UI. Compatible with the "Future sell-through" + /// 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.

+ /// impressions" in the Ad Manager UI. Compatible with the "Future sell-through" + /// 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.

+ /// rate" in the Ad Manager UI. Compatible with the "Future sell-through" 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.

+ ///

Corresponds to "Backup image impressions" 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.

+ ///

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.

+ /// users.

Corresponds to "Average display time" in the Ad Manager UI. 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.

+ /// expansions" 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.

+ /// expanded state.

Corresponds to "Average expanding time" 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.

+ ///

Corresponds to "Interaction time" 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.

+ /// to "Total interactions" 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.

+ /// 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.

+ ///

Corresponds to "Average interaction time" 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.

+ ///

Corresponds to "Interactive impressions" in the Ad Manager UI. 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.

+ /// 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.

+ /// screen mode.

Corresponds to "Full-screen impressions" 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.

+ ///

Corresponds to "Total video interactions" in the Ad Manager UI. Compatible + /// with the "Historical" 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.

+ ///

Corresponds to "Video interaction rate" in the Ad Manager UI. Compatible with + /// the "Historical" 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.

+ /// 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.

+ /// 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.

+ /// 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 upto midpoint.

Corresponds - /// to "Midpoint" in the Ad Manager UI.

+ /// to "Midpoint" in the Ad Manager UI. Compatible with the "Historical" 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.

+ /// "Complete" in the Ad Manager UI. Compatible with the "Historical" 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.

+ /// "Replays" in the Ad Manager UI. Compatible with the "Historical" 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.

+ /// the Ad Manager UI. Compatible with the "Historical" 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.

+ /// in the Ad Manager UI. Compatible with the "Historical" 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.

+ ///

Corresponds to "Average view time" in the Ad Manager UI. Compatible with the + /// "Historical" 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.

+ /// 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.

+ ///

Corresponds to "Custom event - time" in the Ad Manager UI. Compatible with + /// the "Historical" 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.

+ /// media ad.

Corresponds to "Custom event - count" in the Ad Manager UI. + /// Compatible with the "Historical" 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.

+ /// in the Ad Manager UI. 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.

+ /// "First quartile" in the Ad Manager UI. Compatible with the "Historical" 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.

+ /// to "Midpoint" 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.

+ /// "Third quartile" in the Ad Manager UI. Compatible with the "Historical" report + /// type.

///
VIDEO_VIEWERSHIP_THIRD_QUARTILE = 175, /// The number of times the video played to completion.

Corresponds to "Complete" - /// in the Ad Manager UI.

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

///
VIDEO_VIEWERSHIP_COMPLETE = 176, /// Average percentage of the video watched by users.

Corresponds to "Average - /// view rate" in the Ad Manager UI.

+ /// view rate" in the Ad Manager UI. Compatible with the "Historical" 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.

+ /// time" in the Ad Manager UI. Compatible with the "Historical" 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.

+ /// rate" in the Ad Manager UI. Compatible with the "Historical" 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.

+ /// count" in the Ad Manager UI. Compatible with the "Historical" report type.

///
VIDEO_VIEWERSHIP_TOTAL_ERROR_COUNT = 180, /// Duration of the video creative.

Corresponds to "Video length" in the Ad - /// Manager UI.

+ /// 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.

+ /// button shown" in the Ad Manager UI. Compatible with the "Historical" 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.

+ /// whichever comes first.

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

///
VIDEO_VIEWERSHIP_ENGAGED_VIEW = 183, /// View-through rate represented as a percentage.

Corresponds to "View-through - /// rate" in the Ad Manager UI.

+ /// rate" in the Ad Manager UI. Compatible with the "Historical" 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.

+ ///

Corresponds to "Auto-plays" in the Ad Manager UI. Compatible with the + /// "Historical" 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.

+ ///

Corresponds to "Click-to-plays" in the Ad Manager UI. Compatible with the + /// "Historical" 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.

+ /// impressions).

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

///
VIDEO_VIEWERSHIP_TOTAL_ERROR_RATE = 187, /// Number of VAST video errors of type 100.

Corresponds to "VAST error 100 - /// count" in the Ad Manager UI.

+ /// count" in the Ad Manager UI. Compatible with the "Historical" report type.

///
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.

+ /// count" in the Ad Manager UI. Compatible with the "Historical" report type.

///
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.

+ /// count" 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.

+ /// count" in the Ad Manager UI. 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.

+ /// count" 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.

+ /// count" in the Ad Manager UI. 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.

+ /// count" 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.

+ /// count" in the Ad Manager UI. 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.

+ /// count" 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.

+ /// count" 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.

+ /// count" in the Ad Manager UI. 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.

+ /// count" 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.

+ /// count" 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.

+ /// count" 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.

+ /// count" 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.

+ /// count" 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.

+ /// count" 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.

+ /// count" 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.

+ /// count" 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.

+ /// count" 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.

+ /// count" 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.

+ /// count" in the Ad Manager UI. 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.

+ /// count" 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.

+ /// count" in the Ad Manager UI. Compatible with the "Historical" report type.

///
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.

+ /// 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.

+ /// 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.

+ /// 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.

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

///
VIDEO_INTERACTION_PAUSE = 216, /// Video interaction event: The number of times the user unpaused the video. - ///

Corresponds to "Resume" in the Ad Manager UI.

+ ///

Corresponds to "Resume" 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.

+ ///

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

///
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.

+ /// 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.

+ ///

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.

+ /// 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.

+ ///

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.

+ ///

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

///
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.

+ /// interaction rate" in the Ad Manager UI. Compatible with the "Historical" report + /// type.

///
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.

+ ///

Corresponds to "Video skipped" in the Ad Manager UI. 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.

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

///
VIDEO_OPTIMIZATION_CONTROL_STARTS = 226, /// The number of optimized starts.

Corresponds to "Optimized starts" in the Ad - /// Manager UI.

+ /// Manager UI. 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.

+ /// Manager UI. 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.

+ /// 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.

+ /// the Ad Manager UI. Compatible with the "Historical" report type.

///
VIDEO_OPTIMIZATION_CONTROL_COMPLETION_RATE = 230, /// The rate of optimized completions.

Corresponds to "Optimized completion rate" - /// in the Ad Manager UI.

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

///
VIDEO_OPTIMIZATION_OPTIMIZED_COMPLETION_RATE = 231, /// The percentage by which optimized completion rate is greater than the @@ -62390,31 +47098,33 @@ public enum Column { /// 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.

+ ///

Corresponds to "Completion rate lift" 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.

+ /// shown" in the Ad Manager UI. 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.

+ /// button shown" in the Ad Manager UI. Compatible with the "Historical" report + /// type.

///
VIDEO_OPTIMIZATION_OPTIMIZED_SKIP_BUTTON_SHOWN = 234, /// The number of control engaged views.

Corresponds to "Control engaged view" in - /// the Ad Manager UI.

+ /// 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.

+ /// view" 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.

+ /// 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.

+ /// 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 @@ -62422,16 +47132,18 @@ public enum Column { /// href=''>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.

+ /// "View-through rate lift" in the Ad Manager UI. Compatible with the "Historical" + /// report type.

///
VIDEO_OPTIMIZATION_VIEW_THROUGH_RATE_LIFT = 239, /// The total number of impressions viewed on the user's screen.

Corresponds to - /// "Total Active View viewable impressions" in the Ad Manager UI.

+ /// "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.

+ /// 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 @@ -62439,174 +47151,190 @@ public enum Column { /// 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.

+ ///

Corresponds to "Total Active View eligible impressions" 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.

+ /// Active View % measurable impressions" 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.

+ /// (seconds)" in the Ad Manager UI. Compatible with the "Historical" report + /// type.

///
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.

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

///
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.

+ /// 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.

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

///
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.

+ /// 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.

+ /// 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.

+ /// 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.

+ /// Viewable Time (seconds)" 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.

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

///
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.

+ /// 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.

+ /// "AdSense Active View % viewable impressions" 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.

+ /// Ad Manager UI. 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.

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

///
ADSENSE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE = 254, /// Active View AdSense revenue.

Corresponds to "AdSense Active View Revenue" in - /// the Ad Manager UI.

+ /// the Ad Manager UI. Compatible with the "Historical" report type.

///
ADSENSE_ACTIVE_VIEW_REVENUE = 423, /// 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.

+ /// Viewable Time (seconds)" 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.

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

///
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.

+ /// impressions" 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.

+ /// 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.

+ /// impressions" 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.

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

///
AD_EXCHANGE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE = 259, /// Active View AdExchange revenue.

Corresponds to "Ad Exchange Active View - /// Revenue" in the Ad Manager UI.

+ /// Revenue" in the Ad Manager UI. Compatible with the "Historical" report type.

///
AD_EXCHANGE_ACTIVE_VIEW_REVENUE = 424, /// 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.

+ /// Viewable Time (seconds)" in the Ad Manager UI. Compatible with the "Historical" + /// report type.

///
AD_EXCHANGE_ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME = 491, /// Active View total revenue.

Corresponds to "Total Active View Revenue" in the - /// Ad Manager UI.

+ /// Ad Manager UI. Compatible with the "Historical" report type.

///
TOTAL_ACTIVE_VIEW_REVENUE = 425, /// Number of view-through conversions. /// VIEW_THROUGH_CONVERSIONS = 260, /// Number of view-through conversions per thousand impressions.

Corresponds to - /// "Conversions per thousand impressions" in the Ad Manager UI.

+ /// "Conversions per thousand impressions" in the Ad Manager UI. Compatible with the + /// "Historical" report type.

///
CONVERSIONS_PER_THOUSAND_IMPRESSIONS = 261, /// Number of click-through conversions.

Corresponds to "Click-through - /// conversions" in the Ad Manager UI.

+ /// conversions" in the Ad Manager UI. Compatible with the "Historical" report + /// type.

///
CLICK_THROUGH_CONVERSIONS = 262, /// Number of click-through conversions per click.

Corresponds to "Conversions - /// per click" in the Ad Manager UI.

+ /// per click" in the Ad Manager UI. Compatible with the "Historical" report + /// type.

///
CONVERSIONS_PER_CLICK = 263, /// Revenue for view-through conversions.

Corresponds to "Advertiser view-through - /// sales" in the Ad Manager UI.

+ /// sales" in the Ad Manager UI. Compatible with the "Historical" report type.

///
VIEW_THROUGH_REVENUE = 264, /// Revenue for click-through conversions.

Corresponds to "Advertiser - /// click-through sales" in the Ad Manager UI.

+ /// click-through sales" in the Ad Manager UI. Compatible with the "Historical" + /// report type.

///
CLICK_THROUGH_REVENUE = 265, /// Total number of conversions.

Corresponds to "Total conversions" in the Ad - /// Manager UI.

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

///
TOTAL_CONVERSIONS = 266, /// Total revenue for conversions.

Corresponds to "Total advertiser sales" in the - /// Ad Manager UI.

+ /// Ad Manager UI. Compatible with the "Historical" report type.

///
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.

+ ///

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

///
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.

+ /// 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.

+ /// to "Eligible impressions" 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 @@ -62615,94 +47343,109 @@ public enum Column { 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.

+ /// 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. /// 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.

+ /// "Dynamic allocation match rate" in the Ad Manager UI. Compatible with the + /// "Historical" report type.

///
DYNAMIC_ALLOCATION_OPPORTUNITY_MATCH_RATE_TOTAL = 274, /// The contracted net revenue of the ProposalLineItem.

Corresponds to "Contracted - /// revenue (net)" in the Ad Manager UI.

+ /// revenue (net)" in the Ad Manager UI. Compatible with any of the following report + /// types: Historical, Sales.

///
CONTRACTED_REVENUE_CONTRACTED_NET_REVENUE = 275, /// The contracted net revenue in the local currency of the ProposalLineItem. See #CONTRACTED_REVENUE_CONTRACTED_NET_REVENUE ///

Can correspond to any of the following in the Ad Manager UI: Contracted - /// revenue (local), Contracted revenue (net) (local).

+ /// revenue (local), Contracted revenue (net) (local). Compatible with any of the + /// following report types: Historical, Sales.

///
CONTRACTED_REVENUE_LOCAL_CONTRACTED_NET_REVENUE = 276, /// The contracted gross revenue of the ProposalLineItem, including agency commission. - ///

Corresponds to "Contracted revenue (gross)" in the Ad Manager UI.

+ ///

Corresponds to "Contracted revenue (gross)" in the Ad Manager UI. Compatible + /// with any of the following report types: Historical, Sales.

///
CONTRACTED_REVENUE_CONTRACTED_GROSS_REVENUE = 277, /// The contracted gross revenue in the local currency of the ProposalLineItem, including agency commission. See /// #CONTRACTED_REVENUE_CONTRACTED_GROSS_REVENUE - ///

Corresponds to "Contracted revenue (gross) (local)" in the Ad Manager UI.

+ ///

Corresponds to "Contracted revenue (gross) (local)" in the Ad Manager UI. + /// Compatible with any of the following report types: Historical, Sales.

///
CONTRACTED_REVENUE_LOCAL_CONTRACTED_GROSS_REVENUE = 278, /// The value added tax on contracted net revenue of the ProposalLineItem or Proposal. - ///

Corresponds to "Contracted VAT" in the Ad Manager UI.

+ ///

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

///
CONTRACTED_REVENUE_CONTRACTED_VAT = 279, /// The value added tax on contracted net revenue in the local currency of the ProposalLineItem or Proposal. /// See #CONTRACTED_REVENUE_CONTRACTED_VAT - ///

Corresponds to "Contracted VAT (local)" in the Ad Manager UI.

+ ///

Corresponds to "Contracted VAT (local)" in the Ad Manager UI. Compatible with + /// any of the following report types: Historical, Sales.

///
CONTRACTED_REVENUE_LOCAL_CONTRACTED_VAT = 280, /// The contracted agency commission of the ProposalLineItem or Proposal. - ///

Corresponds to "Contracted agency commission" in the Ad Manager UI.

+ ///

Corresponds to "Contracted agency commission" in the Ad Manager UI. + /// Compatible with any of the following report types: Historical, Sales.

///
CONTRACTED_REVENUE_CONTRACTED_AGENCY_COMMISSION = 281, /// The contracted agency commission in the local currency of the ProposalLineItem or Proposal. /// See #CONTRACTED_REVENUE_CONTRACTED_AGENCY_COMMISSION - ///

Corresponds to "Contracted agency commission (local)" in the Ad Manager - /// UI.

+ ///

Corresponds to "Contracted agency commission (local)" in the Ad Manager UI. + /// Compatible with any of the following report types: Historical, Sales.

///
CONTRACTED_REVENUE_LOCAL_CONTRACTED_AGENCY_COMMISSION = 282, /// The contracted impressions of the ProposalLineItem.

Corresponds to "Contracted - /// impressions" in the Ad Manager UI.

+ /// impressions" in the Ad Manager UI. Compatible with any of the following report + /// types: Historical, Sales.

///
SALES_CONTRACT_CONTRACTED_IMPRESSIONS = 283, /// The contracted clicks of the ProposalLineItem. - ///

Corresponds to "Contracted clicks" in the Ad Manager UI.

+ ///

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

///
SALES_CONTRACT_CONTRACTED_CLICKS = 284, /// The contracted volume of the ProposalLineItem. /// Volume represents impressions for rate type CPM, clicks for CPC, and days for - /// CPD.

Corresponds to "Contracted volume" in the Ad Manager UI.

+ /// CPD.

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

///
SALES_CONTRACT_CONTRACTED_VOLUME = 285, /// The budget of the Proposal.

Corresponds to "Budget" in - /// the Ad Manager UI.

+ /// the Ad Manager UI. Compatible with any of the following report types: + /// Historical, Sales.

///
SALES_CONTRACT_BUDGET = 286, /// The remaining budget of the Proposal. It is calculated by /// subtracting the contracted net revenue from the budget.

Corresponds to - /// "Remaining budget" in the Ad Manager UI.

+ /// "Remaining budget" in the Ad Manager UI. Compatible with any of the following + /// report types: Historical, Sales.

///
SALES_CONTRACT_REMAINING_BUDGET = 287, /// The buffered impressions of the ProposalLineItem. - ///

Corresponds to "Buffered impressions" in the Ad Manager UI.

+ ///

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

///
SALES_CONTRACT_BUFFERED_IMPRESSIONS = 288, /// The buffered clicks of the ProposalLineItem. - ///

Corresponds to "Buffered clicks" in the Ad Manager UI.

+ ///

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

///
SALES_CONTRACT_BUFFERED_CLICKS = 289, /// The scheduled impressions of a ProposalLineItem. @@ -62710,7 +47453,8 @@ public enum Column { /// href='#SALES_CONTRACT_CONTRACTED_IMPRESSIONS'>#SALES_CONTRACT_CONTRACTED_IMPRESSIONS /// and #SALES_CONTRACT_BUFFERED_IMPRESSIONS. - ///

Corresponds to "Scheduled impressions" in the Ad Manager UI.

+ ///

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

///
SCHEDULED_SCHEDULED_IMPRESSIONS = 290, /// The scheduled clicks of a ProposalLineItem. It is @@ -62718,59 +47462,68 @@ public enum Column { /// href='#SALES_CONTRACT_CONTRACTED_CLICKS'>#SALES_CONTRACT_CONTRACTED_CLICKS /// and #SALES_CONTRACT_BUFFERED_CLICKS. - ///

Corresponds to "Scheduled clicks" in the Ad Manager UI.

+ ///

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

///
SCHEDULED_SCHEDULED_CLICKS = 291, /// The scheduled volume of a ProposalLineItem. It is /// the sum of #SALES_CONTRACT_CONTRACTED_VOLUME - /// and buffered volume.

Corresponds to "Scheduled volume" in the Ad Manager - /// UI.

+ /// and buffered volume.

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

///
SCHEDULED_SCHEDULED_VOLUME = 292, /// The scheduled net revenue of a ProposalLineItem. - ///

Corresponds to "Scheduled revenue (net)" in the Ad Manager UI.

+ ///

Corresponds to "Scheduled revenue (net)" in the Ad Manager UI. Compatible + /// with any of the following report types: Historical, Sales.

///
SCHEDULED_SCHEDULED_NET_REVENUE = 293, /// The scheduled net revenue in the local currency of a ProposalLineItem.

Corresponds to "Scheduled - /// revenue (net) (local)" in the Ad Manager UI.

+ /// revenue (net) (local)" in the Ad Manager UI. Compatible with any of the + /// following report types: Historical, Sales.

///
SCHEDULED_LOCAL_SCHEDULED_NET_REVENUE = 294, /// The scheduled gross revenue of a ProposalLineItem.

Corresponds to "Scheduled - /// revenue (gross)" in the Ad Manager UI.

+ /// revenue (gross)" in the Ad Manager UI. Compatible with any of the following + /// report types: Historical, Sales.

///
SCHEDULED_SCHEDULED_GROSS_REVENUE = 295, /// The scheduled gross revenue in the local currency of a ProposalLineItem.

Corresponds to "Scheduled - /// revenue (gross) (local)" in the Ad Manager UI.

+ /// revenue (gross) (local)" in the Ad Manager UI. Compatible with any of the + /// following report types: Historical, Sales.

///
SCHEDULED_LOCAL_SCHEDULED_GROSS_REVENUE = 296, /// The total budget of the Proposal. It differs from #SALES_CONTRACT_BUDGET since it always /// contains the total budget, not the prorated budget.

Corresponds to "Total - /// budget" in the Ad Manager UI.

+ /// budget" in the Ad Manager UI. Compatible with any of the following report types: + /// Historical, Sales.

///
SALES_TOTAL_TOTAL_BUDGET = 297, /// The total remaining budget of the Proposal. It differs /// from #SALES_CONTRACT_REMAINING_BUDGET since it always contains /// the total remaining budget, not the prorated remaining budget.

Corresponds to - /// "Total remaining budget" in the Ad Manager UI.

+ /// "Total remaining budget" in the Ad Manager UI. Compatible with any of the + /// following report types: Historical, Sales.

///
SALES_TOTAL_TOTAL_REMAINING_BUDGET = 298, /// The total contracted volume of the ProposalLineItem. It differs from #SALES_CONTRACT_CONTRACTED_VOLUME that the volume is not prorated /// with regard to the date range.

Corresponds to "Total contracted volume" in - /// the Ad Manager UI.

+ /// the Ad Manager UI. Compatible with any of the following report types: + /// Historical, Sales.

///
SALES_TOTAL_TOTAL_CONTRACTED_VOLUME = 299, /// The total contracted net revenue of the ProposalLineItem. It differs from #CONTRACTED_REVENUE_CONTRACTED_NET_REVENUE that the revenue is not /// prorated with regard to the date range.

Corresponds to "Total contracted - /// revenue (net)" in the Ad Manager UI.

+ /// revenue (net)" in the Ad Manager UI. Compatible with any of the following report + /// types: Historical, Sales.

///
SALES_TOTAL_TOTAL_CONTRACTED_NET_REVENUE = 300, /// The total contracted net revenue in the local currency of the #CONTRACTED_REVENUE_LOCAL_CONTRACTED_NET_REVENUE /// that the revenue is not prorated with regard to the date range.

See #SALES_TOTAL_TOTAL_CONTRACTED_NET_REVENUE

- ///

Corresponds to "Total contracted revenue (net) (local)" in the Ad Manager - /// UI.

+ ///

Corresponds to "Total contracted revenue (net) (local)" in the Ad Manager UI. + /// Compatible with any of the following report types: Historical, Sales.

///
SALES_TOTAL_LOCAL_TOTAL_CONTRACTED_NET_REVENUE = 301, /// The total contracted gross revenue of the ProposalLineItem. It differs from #CONTRACTED_REVENUE_CONTRACTED_GROSS_REVENUE that the revenue is not /// prorated with regard to the date range.

Corresponds to "Total contracted - /// revenue (gross)" in the Ad Manager UI.

+ /// revenue (gross)" in the Ad Manager UI. Compatible with any of the following + /// report types: Historical, Sales.

///
SALES_TOTAL_TOTAL_CONTRACTED_GROSS_REVENUE = 302, /// The total contracted gross revenue in the local currency of the See #SALES_TOTAL_TOTAL_CONTRACTED_GROSS_REVENUE

///

Corresponds to "Total contracted revenue (gross) (local)" in the Ad Manager - /// UI.

+ /// UI. Compatible with any of the following report types: Historical, Sales.

///
SALES_TOTAL_LOCAL_TOTAL_CONTRACTED_GROSS_REVENUE = 303, /// The total contracted agency commission of the ProposalLineItem. It differs from #CONTRACTED_REVENUE_CONTRACTED_AGENCY_COMMISSION that the revenue is /// not prorated with regard to the date range.

Corresponds to "Total contracted - /// agency commission" in the Ad Manager UI.

+ /// agency commission" in the Ad Manager UI. Compatible with any of the following + /// report types: Historical, Sales.

///
SALES_TOTAL_TOTAL_CONTRACTED_AGENCY_COMMISSION = 304, /// The total contracted agency commission in the local currency of the See #SALES_TOTAL_TOTAL_CONTRACTED_AGENCY_COMMISSION

///

Corresponds to "Total contracted agency commission (local)" in the Ad Manager - /// UI.

+ /// UI. Compatible with any of the following report types: Historical, Sales.

///
SALES_TOTAL_LOCAL_TOTAL_CONTRACTED_AGENCY_COMMISSION = 305, /// The total net revenue plus its value added tax of the ProposalLineItem. The revenue is not prorated with /// regard to the date range.

Corresponds to "Total contracted revenue with VAT - /// (net)" in the Ad Manager UI.

+ /// (net)" in the Ad Manager UI. Compatible with any of the following report types: + /// Historical, Sales.

///
SALES_TOTAL_TOTAL_CONTRACTED_NET_REVENUE_WITH_VAT = 306, /// The total net revenue plus its value added tax in the local currency of the See #SALES_TOTAL_TOTAL_CONTRACTED_WITH_VAT

///

Corresponds to "Total contracted revenue with VAT (net) (local)" in the Ad - /// Manager UI.

+ /// Manager UI. Compatible with any of the following report types: Historical, + /// Sales.

///
SALES_TOTAL_LOCAL_TOTAL_CONTRACTED_NET_REVENUE_WITH_VAT = 307, /// The total scheduled volume of the ProposalLineItem. It differs from #SCHEDULED_SCHEDULED_VOLUME that the volume is not prorated with /// regard to the date range.

Corresponds to "Total scheduled volume" in the Ad - /// Manager UI.

+ /// Manager UI. Compatible with any of the following report types: Historical, + /// Sales.

///
SALES_TOTAL_TOTAL_SCHEDULED_VOLUME = 308, /// The total scheduled net revenue of the ProposalLineItem. It differs from #SCHEDULED_SCHEDULED_NET_REVENUE that the revenue is not prorated /// with regard to the date range.

Corresponds to "Total scheduled revenue (net)" - /// in the Ad Manager UI.

+ /// in the Ad Manager UI. Compatible with any of the following report types: + /// Historical, Sales.

///
SALES_TOTAL_TOTAL_SCHEDULED_NET_REVENUE = 309, /// The total scheduled net revenue in the local currency of the #SCHEDULED_LOCAL_SCHEDULED_NET_REVENUE /// that the revenue is not prorated with regard to the date range.

See #SALES_TOTAL_TOTAL_SCHEDULED_NET_REVENUE

- ///

Corresponds to "Total scheduled revenue (net) (local)" in the Ad Manager - /// UI.

+ ///

Corresponds to "Total scheduled revenue (net) (local)" in the Ad Manager UI. + /// Compatible with any of the following report types: Historical, Sales.

///
SALES_TOTAL_LOCAL_TOTAL_SCHEDULED_NET_REVENUE = 310, /// The total scheduled gross revenue of the ProposalLineItem. It differs from #SCHEDULED_SCHEDULED_GROSS_REVENUE that the revenue is not prorated /// with regard to the date range.

Corresponds to "Total scheduled revenue - /// (gross)" in the Ad Manager UI.

+ /// (gross)" in the Ad Manager UI. Compatible with any of the following report + /// types: Historical, Sales.

///
SALES_TOTAL_TOTAL_SCHEDULED_GROSS_REVENUE = 311, /// The total scheduled gross revenue in the local currency of the See #SALES_TOTAL_TOTAL_SCHEDULED_GROSS_REVENUE

///

Corresponds to "Total scheduled revenue (gross) (local)" in the Ad Manager - /// UI.

+ /// UI. Compatible with any of the following report types: Historical, Sales.

///
SALES_TOTAL_LOCAL_TOTAL_SCHEDULED_GROSS_REVENUE = 312, /// The unreconciled net revenue of the ProposalLineItem. It is the portion of #UNIFIED_REVENUE_UNIFIED_NET_REVENUE coming from unreconciled Ad /// Manager volume.

Corresponds to "Unreconciled revenue (net)" in the Ad Manager - /// UI.

+ /// UI. Compatible with any of the following report types: Historical, Sales.

///
UNIFIED_REVENUE_UNRECONCILED_NET_REVENUE = 313, /// The unreconciled net revenue of the #UNIFIED_REVENUE_LOCAL_UNIFIED_NET_REVENUE /// coming from unreconciled Ad Manager volume.

See #UNIFIED_REVENUE_UNRECONCILED_NET_REVENUE

- ///

Corresponds to "Unreconciled revenue (net) (local)" in the Ad Manager UI.

+ ///

Corresponds to "Unreconciled revenue (net) (local)" in the Ad Manager UI. + /// Compatible with any of the following report types: Historical, Sales.

///
UNIFIED_REVENUE_LOCAL_UNRECONCILED_NET_REVENUE = 314, /// The unreconciled gross revenue of the ProposalLineItem. It is the portion of #UNIFIED_REVENUE_UNIFIED_GROSS_REVENUE coming from unreconciled Ad /// Manager volume.

Corresponds to "Unreconciled revenue (gross)" in the Ad - /// Manager UI.

+ /// Manager UI. Compatible with any of the following report types: Historical, + /// Sales.

///
UNIFIED_REVENUE_UNRECONCILED_GROSS_REVENUE = 315, /// The unreconciled gross revenue of the #UNIFIED_REVENUE_LOCAL_UNIFIED_GROSS_REVENUE /// coming from unreconciled Ad manager volume.

See #UNIFIED_REVENUE_UNRECONCILED_GROSS_REVENUE

- ///

Corresponds to "Unreconciled revenue (gross) (local)" in the Ad Manager - /// UI.

+ ///

Corresponds to "Unreconciled revenue (gross) (local)" in the Ad Manager UI. + /// Compatible with any of the following report types: Historical, Sales.

///
UNIFIED_REVENUE_LOCAL_UNRECONCILED_GROSS_REVENUE = 316, /// The forecasted net revenue of the ProposalLineItem. It is the portion of #UNIFIED_REVENUE_UNIFIED_NET_REVENUE coming from forecasted Ad /// Manager volume.

Corresponds to "Forecasted revenue (net)" in the Ad Manager - /// UI.

+ /// UI. Compatible with the "Sales" report type.

///
UNIFIED_REVENUE_FORECASTED_NET_REVENUE = 317, /// The forecasted net revenue of the #UNIFIED_REVENUE_LOCAL_UNIFIED_NET_REVENUE /// coming from forecasted Ad Manager volume.

See #UNIFIED_REVENUE_FORECASTED_NET_REVENUE

- ///

Corresponds to "Forecasted revenue (net) (local)" in the Ad Manager UI.

+ ///

Corresponds to "Forecasted revenue (net) (local)" in the Ad Manager UI. + /// Compatible with the "Sales" report type.

///
UNIFIED_REVENUE_LOCAL_FORECASTED_NET_REVENUE = 318, /// The forecasted gross revenue of the ProposalLineItem. It is the portion of #UNIFIED_REVENUE_UNIFIED_GROSS_REVENUE coming from forecasted Ad /// Manager volume.

Corresponds to "Forecasted revenue (gross)" in the Ad Manager - /// UI.

+ /// UI. Compatible with the "Sales" report type.

///
UNIFIED_REVENUE_FORECASTED_GROSS_REVENUE = 319, /// The forecasted gross revenue of the #UNIFIED_REVENUE_LOCAL_UNIFIED_GROSS_REVENUE /// coming from forecasted Ad Manager volume.

See #UNIFIED_REVENUE_FORECASTED_GROSS_REVENUE

- ///

Corresponds to "Forecasted revenue (gross) (local)" in the Ad Manager UI.

+ ///

Corresponds to "Forecasted revenue (gross) (local)" in the Ad Manager UI. + /// Compatible with the "Sales" report type.

///
UNIFIED_REVENUE_LOCAL_FORECASTED_GROSS_REVENUE = 320, /// The unified net revenue of the ProposalLineItem. @@ -62937,7 +47701,8 @@ public enum Column { /// #BILLING_BILLABLE_NET_REVENUE, and /// #UNIFIED_REVENUE_FORECASTED_NET_REVENUE when query date range /// spans historical delivery and forecasted delivery.

Corresponds to "Unified - /// revenue (net)" in the Ad Manager UI.

+ /// revenue (net)" in the Ad Manager UI. Compatible with any of the following report + /// types: Historical, Sales.

///
UNIFIED_REVENUE_UNIFIED_NET_REVENUE = 321, /// The unified net revenue of the ProposalLineItem @@ -62949,7 +47714,8 @@ public enum Column { /// href='#UNIFIED_REVENUE_LOCAL_FORECASTED_NET_REVENUE'>#UNIFIED_REVENUE_LOCAL_FORECASTED_NET_REVENUE /// when query date range spans historical delivery and forecasted delivery. See #UNIFIED_REVENUE_UNIFIED_NET_REVENUE - ///

Corresponds to "Unified revenue (net) (local)" in the Ad Manager UI.

+ ///

Corresponds to "Unified revenue (net) (local)" in the Ad Manager UI. + /// Compatible with any of the following report types: Historical, Sales.

///
UNIFIED_REVENUE_LOCAL_UNIFIED_NET_REVENUE = 322, /// The unified net revenue of the ProposalLineItem. @@ -62959,7 +47725,8 @@ public enum Column { /// and #UNIFIED_REVENUE_FORECASTED_GROSS_REVENUE /// when query date range spans historical delivery and forecasted delivery. - ///

Corresponds to "Unified revenue (gross)" in the Ad Manager UI.

+ ///

Corresponds to "Unified revenue (gross)" in the Ad Manager UI. Compatible + /// with any of the following report types: Historical, Sales.

///
UNIFIED_REVENUE_UNIFIED_GROSS_REVENUE = 323, /// The unified gross revenue of the ProposalLineItem @@ -62971,7 +47738,8 @@ public enum Column { /// href='#UNIFIED_REVENUE_LOCAL_FORECASTED_GROSS_REVENUE'>#UNIFIED_REVENUE_LOCAL_FORECASTED_GROSS_REVENUE /// when query date range spans historical delivery and forecasted delivery. See #UNIFIED_REVENUE_UNIFIED_GROSS_REVENUE - ///

Corresponds to "Unified revenue (gross) (local)" in the Ad Manager UI.

+ ///

Corresponds to "Unified revenue (gross) (local)" in the Ad Manager UI. + /// Compatible with any of the following report types: Historical, Sales.

///
UNIFIED_REVENUE_LOCAL_UNIFIED_GROSS_REVENUE = 324, /// The unified agency commission of the #BILLING_BILLABLE_AGENCY_COMMISSION, /// and the forecasted agency commission when query date range spans historical /// delivery and forecasted delivery.

Corresponds to "Unified agency commission" - /// in the Ad Manager UI.

+ /// in the Ad Manager UI. Compatible with any of the following report types: + /// Historical, Sales.

///
UNIFIED_REVENUE_UNIFIED_AGENCY_COMMISSION = 325, /// The unified agency commission of the #UNIFIED_REVENUE_UNIFIED_AGENCY_COMMISSION - ///

Corresponds to "Unified agency commission (local)" in the Ad Manager UI.

+ ///

Corresponds to "Unified agency commission (local)" in the Ad Manager UI. + /// Compatible with any of the following report types: Historical, Sales.

///
UNIFIED_REVENUE_LOCAL_UNIFIED_AGENCY_COMMISSION = 326, /// The unreconciled volume of the ProposalLineItem /// for each cycle. Volume represents impressions for rate type CPM, clicks for CPC /// and days for CPD. This fact can only be run in proposal or proposal line item - /// time zone.

Corresponds to "Unreconciled volume" in the Ad Manager UI.

+ /// time zone.

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

///
UNIFIED_REVENUE_UNRECONCILED_VOLUME = 437, /// The forecasted volume of the ProposalLineItem for /// each cycle. Volume represents impressions for rate type CPM, clicks for CPC and /// days for CPD. This fact can only be run in proposal or proposal line item time - /// zone.

Corresponds to "Forecasted volume" in the Ad Manager UI.

+ /// zone.

Corresponds to "Forecasted volume" in the Ad Manager UI. Compatible + /// with the "Sales" report type.

///
UNIFIED_REVENUE_FORECASTED_VOLUME = 438, /// The unified volume of the ProposalLineItem for /// each cycle. Volume represents impressions for rate type CPM, clicks for CPC and /// days for CPD. This fact can only be run in proposal or proposal line item time - /// zone.

Corresponds to "Unified volume" in the Ad Manager UI.

+ /// zone.

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

///
UNIFIED_REVENUE_UNIFIED_VOLUME = 439, /// The expected revenue of the ProposalLineItem. It @@ -63016,7 +47789,8 @@ public enum Column { /// href='#UNIFIED_REVENUE_UNIFIED_NET_REVENUE'>#UNIFIED_REVENUE_UNIFIED_NET_REVENUE /// when the ProposalLineItem is sold and #SALES_PIPELINE_PIPELINE_NET_REVENUE - /// otherwise.

Corresponds to "Expected revenue (net)" in the Ad Manager UI.

+ /// otherwise.

Corresponds to "Expected revenue (net)" in the Ad Manager UI. + /// Compatible with any of the following report types: Historical, Sales.

///
EXPECTED_REVENUE_EXPECTED_NET_REVENUE = 327, /// The expected revenue of the ProposalLineItem in @@ -63026,7 +47800,8 @@ public enum Column { /// href='#SALES_PIPELINE_LOCAL_PIPELINE_NET_REVENUE'>#SALES_PIPELINE_LOCAL_PIPELINE_NET_REVENUE /// otherwise.

See #EXPECTED_REVENUE_EXPECTED_NET_REVENUE

- ///

Corresponds to "Expected revenue (net) (local)" in the Ad Manager UI.

+ ///

Corresponds to "Expected revenue (net) (local)" in the Ad Manager UI. + /// Compatible with any of the following report types: Historical, Sales.

///
EXPECTED_REVENUE_LOCAL_EXPECTED_NET_REVENUE = 328, /// The expected gross revenue of the #UNIFIED_REVENUE_UNIFIED_GROSS_REVENUE when the ProposalLineItem is sold and #SALES_PIPELINE_PIPELINE_GROSS_REVENUE otherwise.

Corresponds to - /// "Expected revenue (gross)" in the Ad Manager UI.

+ /// "Expected revenue (gross)" in the Ad Manager UI. Compatible with any of the + /// following report types: Historical, Sales.

///
EXPECTED_REVENUE_EXPECTED_GROSS_REVENUE = 329, /// The expected gross revenue of the #SALES_PIPELINE_LOCAL_PIPELINE_GROSS_REVENUE /// otherwise.

See #EXPECTED_REVENUE_EXPECTED_GROSS_REVENUE

- ///

Corresponds to "Expected revenue (gross) (local)" in the Ad Manager UI.

+ ///

Corresponds to "Expected revenue (gross) (local)" in the Ad Manager UI. + /// Compatible with any of the following report types: Historical, Sales.

///
EXPECTED_REVENUE_LOCAL_EXPECTED_GROSS_REVENUE = 330, /// The pipeline net revenue of the ProposalLineItem. @@ -63055,7 +47832,8 @@ public enum Column { /// href='Proposal#probabilityOfClose'>Proposal#probabilityOfClose by the /// contracted revenue when inventory is not reserved; otherwise it is calcualted by /// multiplying Proposal#probabilityOfClose by the forecasted - /// revenue.

Corresponds to "Pipeline revenue (net)" in the Ad Manager UI.

+ /// revenue.

Corresponds to "Pipeline revenue (net)" in the Ad Manager UI. + /// Compatible with the "Sales" report type.

///
SALES_PIPELINE_PIPELINE_NET_REVENUE = 331, /// The pipeline net revenue in the local currency of the Proposal#probabilityOfClose by the /// forecasted revenue. See #SALES_PIPELINE_PIPELINE_NET_REVENUE - ///

Corresponds to "Pipeline revenue (net) (local)" in the Ad Manager UI.

+ ///

Corresponds to "Pipeline revenue (net) (local)" in the Ad Manager UI. + /// Compatible with the "Sales" report type.

///
SALES_PIPELINE_LOCAL_PIPELINE_NET_REVENUE = 332, /// The pipeline gross revenue of the Proposal#probabilityOfClose by the /// forecasted revenue including agency commission.

Corresponds to "Pipeline - /// revenue (gross)" in the Ad Manager UI.

+ /// revenue (gross)" in the Ad Manager UI. Compatible with the "Sales" report + /// type.

///
SALES_PIPELINE_PIPELINE_GROSS_REVENUE = 333, /// The pipeline gross revenue in the local currency of the Proposal#probabilityOfClose by the /// forecasted revenue including agency commission. See #SALES_PIPELINE_PIPELINE_GROSS_REVENUE - ///

Corresponds to "Pipeline revenue (gross) (local)" in the Ad Manager UI.

+ ///

Corresponds to "Pipeline revenue (gross) (local)" in the Ad Manager UI. + /// Compatible with the "Sales" report type.

///
SALES_PIPELINE_LOCAL_PIPELINE_GROSS_REVENUE = 334, /// The pipeline agency commission of the proposal line items. For unsold proposal line items, it is calculated against gross /// pipeline revenue.

Corresponds to "Pipeline agency commission" in the Ad - /// Manager UI.

+ /// Manager UI. Compatible with the "Sales" report type.

///
SALES_PIPELINE_PIPELINE_AGENCY_COMMISSION = 335, /// The pipeline agency commission in the local currency of the ProposalLineItem. See #SALES_PIPELINE_PIPELINE_AGENCY_COMMISSION - ///

Corresponds to "Pipeline agency commission (local)" in the Ad Manager UI.

+ ///

Corresponds to "Pipeline agency commission (local)" in the Ad Manager UI. + /// Compatible with the "Sales" report type.

///
SALES_PIPELINE_LOCAL_PIPELINE_AGENCY_COMMISSION = 336, /// The Ad Manager volume of the ProposalLineItem, /// which is used for reconciliation. Volume represents impressions for rate type /// CPM, clicks for CPC and days for CPD.

Corresponds to "DFP volume" in the Ad - /// Manager UI.

+ /// Manager UI. Compatible with any of the following report types: Historical, + /// Sales.

///
RECONCILIATION_DFP_VOLUME = 339, /// The third party volume of the ProposalLineItem, /// which is used for reconciliation. Volume represents impressions for rate type /// CPM, clicks for CPC and days for CPD.

Corresponds to "Third-party volume" in - /// the Ad Manager UI.

+ /// the Ad Manager UI. Compatible with any of the following report types: + /// Historical, Sales.

///
RECONCILIATION_THIRD_PARTY_VOLUME = 340, /// The reconciled volume of the ProposalLineItem, /// which is used for reconciliation. Volume represents impressions for rate type /// CPM, clicks for CPC and days for CPD.

Corresponds to "Reconciled volume" in - /// the Ad Manager UI.

+ /// the Ad Manager UI. Compatible with any of the following report types: + /// Historical, Sales.

///
RECONCILIATION_RECONCILED_VOLUME = 341, /// The discrepancy percentage between Ad Manager volume and third party volume. - ///

Corresponds to "Discrepancy (%)" in the Ad Manager UI.

+ ///

Corresponds to "Discrepancy (%)" in the Ad Manager UI. Compatible with any of + /// the following report types: Historical, Sales.

///
RECONCILIATION_DISCREPANCY_PERCENTAGE = 426, /// The reconciled revenue of the LineItem.

Corresponds to - /// "Reconciled revenue" in the Ad Manager UI.

+ /// "Reconciled revenue" in the Ad Manager UI. Compatible with any of the following + /// report types: Historical, Sales.

///
RECONCILIATION_RECONCILED_REVENUE = 343, /// The discrepancy between Ad Manager impressions and third party impressions. - ///

Corresponds to "Impression discrepancy" in the Ad Manager UI.

+ ///

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

///
RECONCILIATION_IMPRESSION_DISCREPANCY = 344, /// The discrepancy between Ad Manager clicks and third party clicks.

Corresponds - /// to "Click discrepancy" in the Ad Manager UI.

+ /// to "Click discrepancy" in the Ad Manager UI. Compatible with any of the + /// following report types: Historical, Sales.

///
RECONCILIATION_CLICK_DISCREPANCY = 345, /// The discrepancy between Ad Manager revenue and third party revenue. - ///

Corresponds to "Revenue discrepancy" in the Ad Manager UI.

+ ///

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

///
RECONCILIATION_REVENUE_DISCREPANCY = 346, /// The billable net revenue of the ProposalLineItem. /// It is calculated from reconciled volume and rate, with cap applied. - ///

Corresponds to "Billable revenue (net)" in the Ad Manager UI.

+ ///

Corresponds to "Billable revenue (net)" in the Ad Manager UI. Compatible with + /// any of the following report types: Historical, Sales.

///
BILLING_BILLABLE_NET_REVENUE = 347, /// The billable net revenue in the local currency of the ProposalLineItem. It is calculated from reconciled /// volume and rate, with cap applied. See #BILLING_BILLABLE_NET_REVENUE - ///

Corresponds to "Billable revenue (net) (local)" in the Ad Manager UI.

+ ///

Corresponds to "Billable revenue (net) (local)" in the Ad Manager UI. + /// Compatible with any of the following report types: Historical, Sales.

///
BILLING_LOCAL_BILLABLE_NET_REVENUE = 348, /// The billable gross revenue of the ProposalLineItem. It is calculated from reconciled /// volume and rate, with cap applied, and including agency commission. - ///

Corresponds to "Billable revenue (gross)" in the Ad Manager UI.

+ ///

Corresponds to "Billable revenue (gross)" in the Ad Manager UI. Compatible + /// with any of the following report types: Historical, Sales.

///
BILLING_BILLABLE_GROSS_REVENUE = 349, /// The billable gross revenue in the local currency of the ProposalLineItem. It is calculated from reconciled /// volume and rate, with cap applied, and including agency commission. See #BILLING_BILLABLE_GROSS_REVENUE - ///

Corresponds to "Billable revenue (gross) (local)" in the Ad Manager UI.

+ ///

Corresponds to "Billable revenue (gross) (local)" in the Ad Manager UI. + /// Compatible with any of the following report types: Historical, Sales.

///
BILLING_LOCAL_BILLABLE_GROSS_REVENUE = 350, /// The billable net revenue of the ProposalLineItem /// before manual adjustment. It is calculated from reconciled volume and rate, with /// cap applied, before manual adjustment.

Corresponds to "Billable revenue - /// before manual adjustment (net)" in the Ad Manager UI.

+ /// before manual adjustment (net)" in the Ad Manager UI. Compatible with any of the + /// following report types: Historical, Sales.

///
BILLING_BILLABLE_NET_REVENUE_BEFORE_MANUAL_ADJUSTMENT = 351, /// The billable net revenue in local currency of the See #BILLING_BILLABLE_NET_REVENUE_BEFORE_MANUAL_ADJUSTMENT

///

Corresponds to "Billable revenue before manual adjustment (net) (local)" in - /// the Ad Manager UI.

+ /// the Ad Manager UI. Compatible with any of the following report types: + /// Historical, Sales.

///
BILLING_LOCAL_BILLABLE_NET_REVENUE_BEFORE_MANUAL_ADJUSTMENT = 352, /// The billable gross revenue of the ProposalLineItem before manual adjustment. It is /// calculated from reconciled volume and rate, with cap applied, before manual /// adjustment.

Corresponds to "Billable revenue before manual adjustment - /// (gross)" in the Ad Manager UI.

+ /// (gross)" in the Ad Manager UI. Compatible with any of the following report + /// types: Historical, Sales.

///
BILLING_BILLABLE_GROSS_REVENUE_BEFORE_MANUAL_ADJUSTMENT = 353, /// The billable net revenue in local currency of the See #BILLING_BILLABLE_GROSS_REVENUE_BEFORE_MANUAL_ADJUSTMENT

///

Corresponds to "Billable revenue before manual adjustment (gross) (local)" in - /// the Ad Manager UI.

+ /// the Ad Manager UI. Compatible with any of the following report types: + /// Historical, Sales.

///
BILLING_LOCAL_BILLABLE_GROSS_REVENUE_BEFORE_MANUAL_ADJUSTMENT = 354, /// The value added tax on billable net revenue of the ProposalLineItem or Proposal. - ///

Corresponds to "Billable VAT" in the Ad Manager UI.

+ ///

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

///
BILLING_BILLABLE_VAT = 355, /// The value added tax on billable net revenue in the local currency of the ProposalLineItem or Proposal. /// See #BILLING_BILLABLE_VAT

Corresponds to - /// "Billable VAT (local)" in the Ad Manager UI.

+ /// "Billable VAT (local)" in the Ad Manager UI. Compatible with any of the + /// following report types: Historical, Sales.

///
BILLING_LOCAL_BILLABLE_VAT = 356, /// The billable agency commission of the ProposalLineItem or Proposal. - ///

Corresponds to "Billable agency commission" in the Ad Manager UI.

+ ///

Corresponds to "Billable agency commission" in the Ad Manager UI. Compatible + /// with any of the following report types: Historical, Sales.

///
BILLING_BILLABLE_AGENCY_COMMISSION = 357, /// The billable agency commission in the local currency of the ProposalLineItem or Proposal. /// See #BILLING_BILLABLE_AGENCY_COMMISSION - ///

Corresponds to "Billable agency commission (local)" in the Ad Manager UI.

+ ///

Corresponds to "Billable agency commission (local)" in the Ad Manager UI. + /// Compatible with any of the following report types: Historical, Sales.

///
BILLING_LOCAL_BILLABLE_AGENCY_COMMISSION = 358, /// The cap quantity of the ProposalLineItem for each /// cycle. Quantity represents impressions for rate type CPM, clicks for CPC and - /// days for CPD.

Corresponds to "Cap quantity" in the Ad Manager UI.

+ /// days for CPD.

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

///
BILLING_CAP_QUANTITY = 359, /// The billable volume of the ProposalLineItem for /// each cycle. Billable volumes are calculated by applying cap quantity to /// reconciled volumes. Volume represents impressions for rate type CPM, clicks for - /// CPC and days for CPD.

Corresponds to "Billable volume" in the Ad Manager - /// UI.

+ /// CPC and days for CPD.

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

///
BILLING_BILLABLE_VOLUME = 360, /// The delivery rollover volume of the ProposalLineItem from previous cycle. Volume /// represents impressions for rate type CPM, clicks for CPC and days for CPD. - ///

Corresponds to "Delivery rollover" in the Ad Manager UI.

+ ///

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

///
BILLING_DELIVERY_ROLLOVER = 427, /// The CPM calcuated by #BILLING_BILLABLE_NET_REVENUE and #AD_SERVER_IMPRESSIONS.

Corresponds to - /// "Realized CPM" in the Ad Manager UI.

+ /// "Realized CPM" in the Ad Manager UI. Compatible with any of the following report + /// types: Historical, Sales.

///
BILLING_REALIZED_CPM = 362, /// The rate calcuated by #BILLING_BILLABLE_NET_REVENUE and Ad - /// Manager volume.

Corresponds to "Realized rate" in the Ad Manager UI.

+ /// Manager volume.

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

///
BILLING_REALIZED_RATE = 363, /// The contracted net overall discount of the ProposalLineItem.

Corresponds to "Contracted - /// overall discount (net)" in the Ad Manager UI.

+ /// overall discount (net)" in the Ad Manager UI. Compatible with any of the + /// following report types: Historical, Sales.

///
DISCOUNTS_BREAKDOWN_CONTRACTED_NET_OVERALL_DISCOUNT = 364, /// The billable net overall discount of the ProposalLineItem.

Corresponds to "Billable - /// overall discount (net)" in the Ad Manager UI.

+ /// overall discount (net)" in the Ad Manager UI. Compatible with any of the + /// following report types: Historical, Sales.

///
DISCOUNTS_BREAKDOWN_BILLABLE_NET_OVERALL_DISCOUNT = 365, /// The contracted non-billable (net) of the ProposalLineItem. The non-billable means revenue /// that marked as make good, added value or barter.

Corresponds to "Contracted - /// non-billable (net)" in the Ad Manager UI.

+ /// non-billable (net)" in the Ad Manager UI. Compatible with any of the following + /// report types: Historical, Sales.

///
DISCOUNTS_BREAKDOWN_CONTRACTED_NET_NON_BILLABLE = 374, /// The number of invoiced impressions.

Corresponds to "Invoiced impressions" in - /// the Ad Manager UI.

+ /// 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.

+ /// unfilled impressions" 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.

+ /// measurement.

Corresponds to "Impressions" in the Ad Manager UI. Compatible + /// with the "Reach" 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.

+ /// Ad Manager UI. Compatible with the "Reach" report type.

///
NIELSEN_IN_TARGET_IMPRESSIONS = 411, /// The population in the demographic.

Corresponds to "Population base" in the Ad - /// Manager UI.

+ /// Manager UI. Compatible with the "Reach" report type.

///
NIELSEN_POPULATION_BASE = 401, - /// The total population for all in-target demographics. + /// The total population for all in-target demographics.

Compatible with the + /// "Reach" 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.

+ /// reached.

Corresponds to "Unique audience" in the Ad Manager UI. Compatible + /// with the "Reach" report type.

///
NIELSEN_UNIQUE_AUDIENCE = 402, /// The total number of different people within all in-target demographics who were - /// reached. + /// reached.

Compatible with the "Reach" 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.

+ ///

Corresponds to "% audience reach" in the Ad Manager UI. Compatible with the + /// "Reach" report type.

///
NIELSEN_PERCENT_AUDIENCE_REACH = 403, /// The unique audience reached as a percentage of the population base for all - /// in-target demographics. + /// in-target demographics.

Compatible with the "Reach" 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.

+ /// advertisement.

Corresponds to "Average frequency" in the Ad Manager UI. + /// Compatible with the "Reach" 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. + /// advertisement for all in-target demographics.

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

///
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.

+ /// to "Gross rating points" 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. + /// in-target demographics.

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.

+ /// "% impression share" 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.

+ /// to "In-target % impression share" in the Ad Manager UI. Compatible with the + /// "Reach" 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.

+ ///

Corresponds to "% population share" in the Ad Manager UI. Compatible with the + /// "Reach" report type.

///
NIELSEN_PERCENT_POPULATION_SHARE = 407, /// The share of the total population for all in-target demographics represented by - /// the population base. + /// the population base.

Compatible with the "Reach" 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.

+ /// audience share" in the Ad Manager UI. Compatible with the "Reach" report + /// type.

///
NIELSEN_PERCENT_AUDIENCE_SHARE = 408, - /// The share of the unique audience for all in-target demographics. + /// The share of the unique audience for all in-target demographics.

Compatible + /// with the "Reach" 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.

+ /// overall population.

Corresponds to "Audience index" in the Ad Manager UI. + /// Compatible with the "Reach" report type.

///
NIELSEN_AUDIENCE_INDEX = 409, /// The relative unique audience for all in-target demographics compared with its - /// share of the overall population. + /// share of the overall population.

Compatible with the "Reach" 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.

+ /// "Impressions index" in the Ad Manager UI. Compatible with the "Reach" 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. + /// the impressions per person for the overall population.

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

///
NIELSEN_IN_TARGET_IMPRESSIONS_INDEX = 421, /// Number of impressions delivered.

Corresponds to "Impressions" in the Ad - /// Manager UI.

+ /// Manager UI. Compatible with the "Ad Connector" report type.

///
DP_IMPRESSIONS = 503, - /// Number of requests.

Corresponds to "Queries" in the Ad Manager UI.

+ /// Number of clicks delivered

Corresponds to "Clicks" in the Ad Manager UI. + /// Compatible with the "Ad Connector" report type.

+ ///
+ DP_CLICKS = 507, + /// Number of requests.

Corresponds to "Queries" in the Ad Manager UI. Compatible + /// with the "Ad Connector" report type.

///
DP_QUERIES = 504, /// Number of requests where a buyer was matched with the Ad request.

Corresponds - /// to "Matched queries" in the Ad Manager UI.

+ /// to "Matched queries" in the Ad Manager UI. Compatible with the "Ad Connector" + /// 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.

+ ///

Corresponds to "Cost" in the Ad Manager UI. Compatible with the "Ad + /// Connector" report type.

///
DP_COST = 506, /// The host impressions in the partner management.

Corresponds to "Host - /// impressions" in the Ad Manager UI.

+ /// impressions" 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.

+ /// 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.

+ /// 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.

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

///
PARTNER_MANAGEMENT_UNFILLED_IMPRESSIONS = 399, /// The partner impressions in the partner management.

Corresponds to "Partner - /// impressions" in the Ad Manager UI.

+ /// 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.

+ /// 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.

+ /// 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.

+ /// 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.

+ /// impressions" in the Ad Manager UI. Compatible with the "Partner finance" report + /// type.

///
PARTNER_FINANCE_HOST_IMPRESSIONS = 497, /// Monthly host revenue for partner finance reports.

Corresponds to "Host - /// revenue" in the Ad Manager UI.

+ /// revenue" in the Ad Manager UI. Compatible with the "Partner finance" report + /// type.

///
PARTNER_FINANCE_HOST_REVENUE = 498, /// Monthly host eCPM for partner finance reports.

Corresponds to "Host eCPM" in - /// the Ad Manager UI.

+ /// the Ad Manager UI. Compatible with the "Partner finance" report type.

///
PARTNER_FINANCE_HOST_ECPM = 499, /// Monthly partner revenue for partner finance reports.

Corresponds to "Partner - /// revenue" in the Ad Manager UI.

+ /// revenue" in the Ad Manager UI. Compatible with the "Partner finance" report + /// type.

///
PARTNER_FINANCE_PARTNER_REVENUE = 500, /// Monthly partner eCPM for partner finance reports.

Corresponds to "Partner - /// eCPM" in the Ad Manager UI.

+ /// eCPM" in the Ad Manager UI. Compatible with the "Partner finance" report + /// type.

///
PARTNER_FINANCE_PARTNER_ECPM = 501, /// Monthly gross revenue for partner finance reports.

Corresponds to "Gross - /// revenue" in the Ad Manager UI.

+ /// revenue" in the Ad Manager UI. Compatible with the "Partner finance" report + /// type.

///
PARTNER_FINANCE_GROSS_REVENUE = 502, } @@ -63458,25 +48298,28 @@ public enum Column { ///
[System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] 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.

+ /// "Line item labels" in the Ad Manager UI. Compatible with any of the following + /// report types: Historical, Reach, Sales.

///
LINE_ITEM_LABELS = 0, /// Represents LineItem#effectiveAppliedLabels as a /// comma separated list of Label#id for Dimension#LINE_ITEM_NAME. + /// href='Dimension#LINE_ITEM_NAME'>Dimension#LINE_ITEM_NAME.

Compatible with + /// any of the following report types: Historical, Reach, Sales.

///
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.

+ ///

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

///
LINE_ITEM_OPTIMIZABLE = 2, /// Indicates the progress made for the delivery of the 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.

+ /// Indicator" in the Ad Manager UI. Compatible with any of the following report + /// types: Historical, Reach, Sales.

///
LINE_ITEM_DELIVERY_INDICATOR = 139, /// Represents LineItem#deliveryRateType for /// Dimension#LINE_ITEM_NAME.

Corresponds - /// to "Delivery pacing" in the Ad Manager UI.

+ /// to "Delivery pacing" in the Ad Manager UI. Compatible with any of the following + /// report types: Historical, Future sell-through, Reach, Sales, Data + /// protection.

///
LINE_ITEM_DELIVERY_PACING = 3, /// Represents LineItem#frequencyCaps as a @@ -63505,170 +48351,214 @@ public enum DimensionAttribute { /// href='FrequencyCap#timeUnit'>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.

+ /// "Frequency cap" in the Ad Manager UI. Compatible with any of the following + /// report types: Historical, Reach, Sales.

///
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.

+ /// item reconciliation status" in the Ad Manager UI. Compatible with any of the + /// following report types: Historical, Future sell-through, Reach, Sales.

///
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.

+ /// item last reconciliation time" in the Ad Manager UI. Compatible with any of the + /// following report types: Historical, Future sell-through, Reach, Sales.

///
LINE_ITEM_LAST_RECONCILIATION_DATE_TIME = 120, /// Represents Company#externalId for Dimension#ADVERTISER_NAME.

Corresponds - /// to "External advertiser ID" in the Ad Manager UI.

+ /// to "External advertiser ID" in the Ad Manager UI. Compatible with any of the + /// following report types: Historical, Reach, Sales.

///
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.

+ /// filtering.

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

///
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.

+ /// filtering.

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

///
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.

+ /// primary contact" in the Ad Manager UI. Compatible with any of the following + /// report types: Historical, Reach, Sales.

///
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.

+ ///

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

///
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.

+ ///

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

///
ORDER_END_DATE_TIME = 8, /// Represents Order#externalOrderId for Dimension#ORDER_NAME.

Corresponds to - /// "External order ID" in the Ad Manager UI.

+ /// "External order ID" in the Ad Manager UI. Compatible with any of the following + /// report types: Historical, Reach, Sales.

///
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.

+ ///

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

///
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.

+ /// filtering.

Corresponds to "Programmatic order" in the Ad Manager UI. + /// Compatible with any of the following report types: Historical, Reach, Sales.

///
ORDER_IS_PROGRAMMATIC = 11, /// Represents the name of Order#agencyId for Dimension#ORDER_NAME.

Corresponds to "Agency" - /// in the Ad Manager UI.

+ /// in the Ad Manager UI. Compatible with any of the following report types: + /// Historical, Reach, Sales.

///
ORDER_AGENCY = 12, /// Represents Order#agencyId for Dimension#ORDER_NAME. Can be used for filtering. - ///

Corresponds to "Agency ID" in the Ad Manager UI.

+ ///

Corresponds to "Agency ID" in the Ad Manager UI. Compatible with any of the + /// following report types: Historical, Reach, Sales.

///
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.

+ /// labels" in the Ad Manager UI. Compatible with any of the following report types: + /// Historical, Reach, Sales.

///
ORDER_LABELS = 14, /// Represents Order#effectiveAppliedLabels as a comma /// separated list of Label#id for Dimension#ORDER_NAME. + /// href='Dimension#ORDER_NAME'>Dimension#ORDER_NAME.

Compatible with any of + /// the following report types: Historical, Reach, Sales.

///
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.

+ /// "Trafficker" in the Ad Manager UI. Compatible with any of the following report + /// types: Historical, Reach, Sales.

///
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, + /// Sales.

///
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.

+ /// "Secondary traffickers" in the Ad Manager UI. Compatible with any of the + /// following report types: Historical, Reach, Sales.

///
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.

+ /// "Salesperson" in the Ad Manager UI. Compatible with any of the following report + /// types: Historical, Reach, Sales.

///
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.

+ /// "Secondary salespeople" in the Ad Manager UI. Compatible with any of the + /// following report types: Historical, Reach, Sales.

///
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.

+ /// lifetime impressions" in the Ad Manager UI. Compatible with any of the following + /// report types: Historical, Future sell-through, Reach, Sales, Data + /// protection.

///
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.

+ /// lifetime clicks" in the Ad Manager UI. Compatible with any of the following + /// report types: Historical, Future sell-through, Reach, Sales, Data + /// protection.

///
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.

+ /// CPM" in the Ad Manager UI. Compatible with any of the following report types: + /// Historical, Reach, Sales.

///
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.

+ /// CPC" in the Ad Manager UI. Compatible with any of the following report types: + /// Historical, Reach, Sales.

///
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.

+ /// 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, Sales, Data protection.

///
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.

+ /// 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, Sales, Data protection.

///
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.

+ /// filtering.

Corresponds to "External Line Item ID" in the Ad Manager UI. + /// Compatible with any of the following report types: Historical, Reach, Sales.

///
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.

+ /// filtering.

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

///
LINE_ITEM_COST_TYPE = 28, /// Represents LineItem#costPerUnit for Dimension#LINE_ITEM_NAME.

Corresponds to - /// "Rate" in the Ad Manager UI.

+ /// "Rate" in the Ad Manager UI. Compatible with any of the following report types: + /// Historical, Future sell-through, Reach, Sales, Data protection.

///
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.

+ /// "Currency code" in the Ad Manager UI. Compatible with any of the following + /// report types: Historical, Future sell-through, Reach, Sales, Data + /// protection.

///
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.

+ /// "Goal quantity" in the Ad Manager UI. Compatible with any of the following + /// report types: Historical, Future sell-through, Reach, Sales, Data + /// protection.

///
LINE_ITEM_GOAL_QUANTITY = 31, /// The ratio between the goal quantity for LineItemType#SPONSORSHIP and the #LINE_ITEM_GOAL_QUANTITY. Represented as a /// number between 0..100.

Corresponds to "Sponsorship goal (%)" in the Ad - /// Manager UI.

+ /// Manager UI. Compatible with any of the following report types: Historical, + /// Reach, Sales.

///
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.

+ /// "Line item lifetime impressions" in the Ad Manager UI. Compatible with any of + /// the following report types: Historical, Future sell-through, Reach, Sales, Data + /// protection.

///
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.

+ /// "Line item lifetime clicks" in the Ad Manager UI. Compatible with any of the + /// following report types: Historical, Future sell-through, Reach, Sales, Data + /// protection.

///
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.

+ /// the Ad Manager UI. Compatible with any of the following report types: + /// Historical, Future sell-through, Reach, Sales, Data protection.

///
LINE_ITEM_PRIORITY = 35, /// Indicates if a creative is a regular creative or creative set. Values will be - /// 'Creative' or 'Creative set' + /// 'Creative' or 'Creative set'

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

///
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.

+ /// "Master or Companion" in the Ad Manager UI. Compatible with any of the following + /// report types: Historical, Reach.

///
MASTER_COMPANION_TYPE = 37, /// Represents the LineItem#contractedUnitsBought /// quantity for Dimension#LINE_ITEM_NAME. - ///

Corresponds to "Contracted quantity" in the Ad Manager UI.

+ ///

Corresponds to "Contracted quantity" in the Ad Manager UI. Compatible with + /// any of the following report types: Historical, Reach, Sales.

///
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.

+ /// "Discount" in the Ad Manager UI. Compatible with any of the following report + /// types: Historical, Reach, Sales.

///
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.

+ /// "Booked revenue (exclude CPD)" in the Ad Manager UI. Compatible with any of the + /// following report types: Historical, Reach, Sales.

///
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.

+ /// to "Advertiser labels" in the Ad Manager UI. Compatible with any of the + /// following report types: Historical, Reach, Sales.

///
ADVERTISER_LABELS = 41, /// Represents Company#appliedLabels as a comma /// separated list of Label#id for Dimension#ADVERTISER_NAME. + /// href='Dimension#ADVERTISER_NAME'>Dimension#ADVERTISER_NAME.

Compatible + /// with any of the following report types: Historical, Reach, Sales.

///
ADVERTISER_LABEL_IDS = 42, /// Represents the click-through URL for Dimension#CREATIVE_NAME.

Corresponds to - /// "Click-through URL" in the Ad Manager UI.

+ /// "Click-through URL" in the Ad Manager UI. Compatible with any of the following + /// report types: Historical, Reach.

///
CREATIVE_CLICK_THROUGH_URL = 43, /// Represents whether a creative is SSL-compliant.

Corresponds to "Creative SSL - /// scan result" in the Ad Manager UI.

+ /// scan result" in the Ad Manager UI. Compatible with any of the following report + /// types: Historical, Reach.

///
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.

+ /// "Creative SSL compliance override" in the Ad Manager UI. Compatible with any of + /// the following report types: Historical, Reach.

///
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.

+ /// without the time.

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

///
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.

+ /// without the time.

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

///
LINE_ITEM_CREATIVE_END_DATE = 47, /// Represents Proposal#startDateTime for Dimension#PROPOSAL_NAME.

Corresponds to - /// "Proposal start time" in the Ad Manager UI.

+ /// "Proposal start time" in the Ad Manager UI. Compatible with any of the following + /// report types: Historical, Future sell-through, Reach, Sales.

///
PROPOSAL_START_DATE_TIME = 48, /// Represents Proposal#endDateTime for Dimension#PROPOSAL_NAME.

Corresponds to - /// "Proposal end time" in the Ad Manager UI.

+ /// "Proposal end time" in the Ad Manager UI. Compatible with any of the following + /// report types: Historical, Future sell-through, Reach, Sales.

///
PROPOSAL_END_DATE_TIME = 49, /// Represents Proposal#creationDateTime for /// Dimension#PROPOSAL_NAME. Can be used for - /// filtering.

Corresponds to "Creation time" in the Ad Manager UI.

+ /// filtering.

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

///
PROPOSAL_CREATION_DATE_TIME = 50, /// Represents the sold time for Dimension#PROPOSAL_NAME.

Corresponds to - /// "Sold time" in the Ad Manager UI.

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

///
PROPOSAL_SOLD_DATE_TIME = 51, /// Represents Proposal#isSold for Dimension#PROPOSAL_NAME. Can be used for - /// filtering.

Corresponds to "Sold" in the Ad Manager UI.

+ /// filtering.

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

///
PROPOSAL_IS_SOLD = 52, /// Represents Proposal#probabilityOfClose /// for Dimension#PROPOSAL_NAME. - ///

Corresponds to "Probability of close" in the Ad Manager UI.

+ ///

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

///
PROPOSAL_PROBABILITY_OF_CLOSE = 135, /// Represents Proposal#status for Dimension#PROPOSAL_NAME. This attribute /// includes post-sold statuses, e.g. DRAFT(SOLD) until v201611. Starting from /// v201702, it will not include post-sold statuses. Can be used for filtering. + ///

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

///
PROPOSAL_STATUS = 54, /// Represents archival status for Dimension#PROPOSAL_NAME, the values are /// ARCHIVED and NOT_ARCHIVED. Can be used for filtering.

Corresponds to - /// "Proposal archival status" in the Ad Manager UI.

+ /// "Proposal archival status" in the Ad Manager UI. Compatible with any of the + /// following report types: Historical, Future sell-through, Reach, Sales.

///
PROPOSAL_ARCHIVAL_STATUS = 55, /// Represents Proposal#currency for Dimension#PROPOSAL_NAME.

Corresponds to - /// "Currency" in the Ad Manager UI.

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

///
PROPOSAL_CURRENCY = 56, /// Represents Proposal#exchangeRate for Dimension#PROPOSAL_NAME.

Corresponds to - /// "Exchange rate" in the Ad Manager UI.

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

///
PROPOSAL_EXCHANGE_RATE = 57, /// Represents Proposal#agencyCommission for /// Dimension#PROPOSAL_NAME.

Corresponds to - /// "Agency commission rate" in the Ad Manager UI.

+ /// "Agency commission rate" in the Ad Manager UI. Compatible with any of the + /// following report types: Historical, Future sell-through, Reach, Sales.

///
PROPOSAL_AGENCY_COMMISSION_RATE = 58, /// Represents Proposal#valueAddedTax for Dimension#PROPOSAL_NAME.

Corresponds to - /// "VAT rate" in the Ad Manager UI.

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

///
PROPOSAL_VAT_RATE = 59, /// Represents Proposal#proposalDiscount for /// Dimension#PROPOSAL_NAME.

Corresponds to - /// "Proposal discount" in the Ad Manager UI.

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

///
PROPOSAL_DISCOUNT = 60, /// Represents Proposal#advertiserDiscount /// for Dimension#PROPOSAL_NAME. - ///

Corresponds to "Advertiser discount" in the Ad Manager UI.

+ ///

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

///
PROPOSAL_ADVERTISER_DISCOUNT = 61, /// Represents the advertiser name of Dimension#PROPOSAL_NAME.

Corresponds to - /// "Advertiser" in the Ad Manager UI.

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

///
PROPOSAL_ADVERTISER = 62, /// Represents the advertiser id of Dimension#PROPOSAL_NAME.

Corresponds to - /// "Advertiser ID" in the Ad Manager UI.

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

///
PROPOSAL_ADVERTISER_ID = 63, /// Represents the agency names as a comma separated string for Dimension#PROPOSAL_NAME.

Corresponds to - /// "Agencies" in the Ad Manager UI.

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

///
PROPOSAL_AGENCIES = 64, /// Represents the agency ids as a comma separated string for Dimension#PROPOSAL_NAME.

Corresponds to - /// "Agency IDs" in the Ad Manager UI.

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

///
PROPOSAL_AGENCY_IDS = 65, /// Represents Proposal#poNumber for Dimension#PROPOSAL_NAME.

Corresponds to - /// "PO number" in the Ad Manager UI.

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

///
PROPOSAL_PO_NUMBER = 66, /// Represents name and email address in the form of name(email) of primary /// salesperson for Dimension#PROPOSAL_NAME. - ///

Corresponds to "Salesperson" in the Ad Manager UI.

+ ///

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

///
PROPOSAL_PRIMARY_SALESPERSON = 67, /// Represents name and email addresses in the form of name(email) of secondary /// salespeople as a comma separated string for Dimension#PROPOSAL_NAME.

Corresponds to - /// "Secondary salespeople" in the Ad Manager UI.

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

///
PROPOSAL_SECONDARY_SALESPEOPLE = 68, /// Represents name and email address in the form of name(email) of creator for Dimension#PROPOSAL_NAME.

Corresponds to "Creator" in the Ad - /// Manager UI.

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

///
PROPOSAL_CREATOR = 69, /// Represents name and email addresses in the form of name(email) of Proposal#salesPlannerIds as a comma separated list string for Dimension#PROPOSAL_NAME.

Corresponds to - /// "Sales planners" in the Ad Manager UI.

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

///
PROPOSAL_SALES_PLANNERS = 70, /// Represents Proposal#pricingModel for Dimension#PROPOSAL_NAME.

Corresponds to - /// "Pricing model" in the Ad Manager UI.

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

///
PROPOSAL_PRICING_MODEL = 71, /// Represents Proposal#billingSource for Dimension#PROPOSAL_NAME.

Corresponds to - /// "Proposal billing source" in the Ad Manager UI.

+ /// "Proposal billing source" in the Ad Manager UI. Compatible with any of the + /// following report types: Historical, Future sell-through, Reach, Sales.

///
PROPOSAL_BILLING_SOURCE = 72, /// Represents Proposal#billingCap for Dimension#PROPOSAL_NAME.

Corresponds to - /// "Proposal caps and rollovers" in the Ad Manager UI.

+ /// "Proposal caps and rollovers" in the Ad Manager UI. Compatible with any of the + /// following report types: Historical, Future sell-through, Reach, Sales.

///
PROPOSAL_BILLING_CAP = 73, /// Represents Proposal#billingSchedule for /// Dimension#PROPOSAL_NAME.

Corresponds to - /// "Proposal billing schedule" in the Ad Manager UI.

+ /// "Proposal billing schedule" in the Ad Manager UI. Compatible with any of the + /// following report types: Historical, Future sell-through, Reach, Sales.

///
PROPOSAL_BILLING_SCHEDULE = 74, /// Represents Proposal#appliedTeamIds as a /// comma separated list of Team#names for Dimension#PROPOSAL_NAME.

Corresponds to - /// "Teams" in the Ad Manager UI.

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

///
PROPOSAL_APPLIED_TEAM_NAMES = 75, /// Represents the approval stage for Dimension#PROPOSAL_NAME.

Corresponds to - /// "Approval stage" in the Ad Manager UI.

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

///
PROPOSAL_APPROVAL_STAGE = 76, /// Represents the inventory release date time for Dimension#PROPOSAL_NAME.

Corresponds to - /// "Inventory release time" in the Ad Manager UI.

+ /// "Inventory release time" in the Ad Manager UI. Compatible with any of the + /// following report types: Historical, Future sell-through, Reach, Sales.

///
PROPOSAL_INVENTORY_RELEASE_DATE_TIME = 77, /// Represents Proposal#budget in local currency for /// Dimension#PROPOSAL_NAME.

Corresponds to - /// "Budget (local)" in the Ad Manager UI.

+ /// "Budget (local)" in the Ad Manager UI. Compatible with any of the following + /// report types: Historical, Future sell-through, Reach, Sales.

///
PROPOSAL_LOCAL_BUDGET = 78, /// Represents the remaining budget in local currency for Dimension#PROPOSAL_NAME.

Corresponds to - /// "Remaining budget (local)" in the Ad Manager UI.

+ /// "Remaining budget (local)" in the Ad Manager UI. Compatible with any of the + /// following report types: Historical, Future sell-through, Reach, Sales.

///
PROPOSAL_LOCAL_REMAINING_BUDGET = 79, /// Represents whether the Proposal#billingBase /// is BillingBase#REVENUE.

Corresponds to - /// "Proposal flat fee" in the Ad Manager UI.

+ /// "Proposal flat fee" in the Ad Manager UI. Compatible with any of the following + /// report types: Historical, Future sell-through, Reach, Sales.

///
PROPOSAL_FLAT_FEE = 133, /// Represents Proposal#isProgrammatic for Dimension#PROPOSAL_NAME. Not available as an /// attribute to report on, but exists as an attribute for filtering using PQL. + ///

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

///
PROPOSAL_IS_PROGRAMMATIC = 140, /// Represents ProposalLineItem#startDateTime for Dimension#PROPOSAL_LINE_ITEM_NAME. - ///

Corresponds to "Proposal line item start time" in the Ad Manager UI.

+ ///

Corresponds to "Proposal line item start time" in the Ad Manager UI. + /// Compatible with any of the following report types: Historical, Future + /// sell-through, Reach, Sales.

///
PROPOSAL_LINE_ITEM_START_DATE_TIME = 80, /// Represents ProposalLineItem#endDateTime for Dimension#PROPOSAL_LINE_ITEM_NAME. - ///

Corresponds to "Proposal line item end time" in the Ad Manager UI.

+ ///

Corresponds to "Proposal line item end time" in the Ad Manager UI. Compatible + /// with any of the following report types: Historical, Future sell-through, Reach, + /// Sales.

///
PROPOSAL_LINE_ITEM_END_DATE_TIME = 81, /// Represents ProposalLineItem#rateType for /// Dimension#PROPOSAL_LINE_ITEM_NAME. /// Can be used for filtering.

Corresponds to "Proposal line item rate type" in - /// the Ad Manager UI.

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

///
PROPOSAL_LINE_ITEM_RATE_TYPE = 82, /// Represents the reservation status of Dimension#PROPOSAL_LINE_ITEM_NAME. /// Can be used for filtering.

Corresponds to "Reservation status" in the Ad - /// Manager UI.

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

///
PROPOSAL_LINE_ITEM_RESERVATION_STATUS = 123, /// Represents ProposalLineItem#costPerUnit for Dimension#PROPOSAL_LINE_ITEM_NAME. - ///

Corresponds to "Rate (net)" in the Ad Manager UI.

+ ///

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

///
PROPOSAL_LINE_ITEM_COST_PER_UNIT = 83, /// Represents #PROPOSAL_LINE_ITEM_COST_PER_UNIT ///

Can correspond to any of the following in the Ad Manager UI: Rate (local), - /// Rate (net) (local).

+ /// Rate (net) (local). Compatible with any of the following report types: + /// Historical, Future sell-through, Reach, Sales.

///
PROPOSAL_LINE_ITEM_LOCAL_COST_PER_UNIT = 84, /// Represents gross cost per unit for Dimension#PROPOSAL_LINE_ITEM_NAME. - ///

Corresponds to "Rate (gross)" in the Ad Manager UI.

+ ///

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

///
PROPOSAL_LINE_ITEM_COST_PER_UNIT_GROSS = 85, /// Represents gross cost per unit in local currency for Dimension#PROPOSAL_LINE_ITEM_NAME. /// See #PROPOSAL_LINE_ITEM_COST_PER_UNIT_GROSS - ///

Corresponds to "Rate (gross) (local)" in the Ad Manager UI.

+ ///

Corresponds to "Rate (gross) (local)" in the Ad Manager UI. Compatible with + /// any of the following report types: Historical, Future sell-through, Reach, + /// Sales.

///
PROPOSAL_LINE_ITEM_LOCAL_COST_PER_UNIT_GROSS = 86, /// Represents line item type (if applicable) and line item priority (if applicable) /// for Dimension#PROPOSAL_LINE_ITEM_NAME. - ///

Corresponds to "Proposal line item type / priority" in the Ad Manager UI.

+ ///

Corresponds to "Proposal line item type / priority" in the Ad Manager UI. + /// Compatible with any of the following report types: Historical, Future + /// sell-through, Reach, Sales.

///
PROPOSAL_LINE_ITEM_TYPE_AND_PRIORITY = 87, /// Represents the size of ProposalLineItem#creativePlaceholders /// for Dimension#PROPOSAL_LINE_ITEM_NAME. - ///

Corresponds to "Sizes" in the Ad Manager UI.

+ ///

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

///
PROPOSAL_LINE_ITEM_SIZE = 88, /// Represents archival status for Dimension#PROPOSAL_LINE_ITEM_NAME, /// the values are ARCHIVED and NOT_ARCHIVED. Can be used for filtering. - ///

Corresponds to "Proposal line item archival status" in the Ad Manager UI.

+ ///

Corresponds to "Proposal line item archival status" in the Ad Manager UI. + /// Compatible with any of the following report types: Historical, Future + /// sell-through, Reach, Sales.

///
PROPOSAL_LINE_ITEM_ARCHIVAL_STATUS = 89, /// Represents the product adjustment of Dimension#PROPOSAL_LINE_ITEM_NAME. - ///

Corresponds to "Product adjustment" in the Ad Manager UI.

+ ///

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

///
PROPOSAL_LINE_ITEM_PRODUCT_ADJUSTMENT = 90, /// Represents ProposalLineItem#contractedQuantityBuffer /// for Dimension#PROPOSAL_LINE_ITEM_NAME. - ///

Corresponds to "Buffer (%)" in the Ad Manager UI.

+ ///

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

///
PROPOSAL_LINE_ITEM_BUFFER = 91, /// Represents the listing rate (net) of Dimension#PROPOSAL_LINE_ITEM_NAME. - ///

Corresponds to "Listing rate (net)" in the Ad Manager UI.

+ ///

Corresponds to "Listing rate (net)" in the Ad Manager UI. Compatible with any + /// of the following report types: Historical, Future sell-through, Reach, + /// Sales.

///
PROPOSAL_LINE_ITEM_LISTING_RATE_NET = 136, /// Represents ProposalLineItem#billingSource for Dimension#PROPOSAL_LINE_ITEM_NAME. - ///

Corresponds to "Proposal line item billing source" in the Ad Manager UI.

+ ///

Corresponds to "Proposal line item billing source" in the Ad Manager UI. + /// Compatible with any of the following report types: Historical, Future + /// sell-through, Reach, Sales.

///
PROPOSAL_LINE_ITEM_BILLING_SOURCE = 93, /// Represents ProposalLineItem#billingCap /// for Dimension#PROPOSAL_LINE_ITEM_NAME. - ///

Corresponds to "Proposal line item caps and rollovers" in the Ad Manager - /// UI.

+ ///

Corresponds to "Proposal line item caps and rollovers" in the Ad Manager UI. + /// Compatible with any of the following report types: Historical, Future + /// sell-through, Reach, Sales.

///
PROPOSAL_LINE_ITEM_BILLING_CAP = 94, /// Represents ProposalLineItem#billingSchedule for /// Dimension#PROPOSAL_LINE_ITEM_NAME. - ///

Corresponds to "Proposal line item billing schedule" in the Ad Manager - /// UI.

+ ///

Corresponds to "Proposal line item billing schedule" in the Ad Manager UI. + /// Compatible with any of the following report types: Historical, Future + /// sell-through, Reach, Sales.

///
PROPOSAL_LINE_ITEM_BILLING_SCHEDULE = 95, /// Represents Goal#units of LineItemType#HOUSE, LineItemType#NETWORK, or LineItemType#BUMPER.

Corresponds to "Goal (%)" - /// in the Ad Manager UI.

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

///
PROPOSAL_LINE_ITEM_GOAL_PERCENTAGE = 96, /// Represents ProposalLineItem#costAdjustment for /// Dimension#PROPOSAL_LINE_ITEM_NAME.

Corresponds to "Cost - /// adjustment" in the Ad Manager UI.

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

///
PROPOSAL_LINE_ITEM_COST_ADJUSTMENT = 97, /// Represents the comments for Dimension#PROPOSAL_LINE_ITEM_NAME.

Corresponds to "Proposal line - /// item comments" in the Ad Manager UI.

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

///
PROPOSAL_LINE_ITEM_COMMENTS = 98, /// Represents the monthly reconciliation status of the proposal line item for Dimension#PROPOSAL_LINE_ITEM_NAME /// and Dimension#MONTH_YEAR.

Corresponds to - /// "Proposal line item reconciliation status" in the Ad Manager UI.

+ /// "Proposal line item reconciliation status" in the Ad Manager UI. Compatible with + /// any of the following report types: Historical, Reach, Sales.

///
PROPOSAL_LINE_ITEM_RECONCILIATION_STATUS = 124, /// Represents the monthly last reconciliation date time of the proposal line item /// for Dimension#PROPOSAL_LINE_ITEM_NAME /// and Dimension#MONTH_YEAR.

Corresponds to - /// "Proposal line item last reconciliation time" in the Ad Manager UI.

+ /// "Proposal line item last reconciliation time" in the Ad Manager UI. Compatible + /// with any of the following report types: Historical, Reach, Sales.

///
PROPOSAL_LINE_ITEM_LAST_RECONCILIATION_DATE_TIME = 125, /// Represents whether the ProposalLineItem#billingBase is BillingBase#REVENUE.

Corresponds to "Proposal - /// line item flat fee" in the Ad Manager UI.

+ /// line item flat fee" in the Ad Manager UI. Compatible with any of the following + /// report types: Historical, Future sell-through, Reach, Sales.

///
PROPOSAL_LINE_ITEM_FLAT_FEE = 134, /// Represents the corresponding product package item's archival status of Dimension#PROPOSAL_LINE_ITEM_NAME. /// Not available as an attribute to report on, but exists as an attribute for - /// filtering using PQL. + /// filtering using PQL.

Compatible with any of the following report types: + /// Historical, Reach, Sales.

///
PRODUCT_PACKAGE_ITEM_ARCHIVAL_STATUS = 126, /// Represents the ProposalLineItem#lineItemType of Dimension#PROPOSAL_LINE_ITEM_NAME. - /// Only used for filtering. + /// Only used for filtering.

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

///
PROPOSAL_LINE_ITEM_TYPE = 142, /// Represents ProductTemplate#rateType for /// Dimension#PRODUCT_TEMPLATE_NAME. - ///

Corresponds to "Product template rate type" in the Ad Manager UI.

+ ///

Corresponds to "Product template rate type" in the Ad Manager UI. Compatible + /// with any of the following report types: Historical, Reach, Sales.

///
PRODUCT_TEMPLATE_RATE_TYPE = 99, /// Represents ProductTemplate#status for Dimension#PRODUCT_TEMPLATE_NAME. - ///

Corresponds to "Product template status" in the Ad Manager UI.

+ ///

Corresponds to "Product template status" in the Ad Manager UI. Compatible + /// with any of the following report types: Historical, Reach, Sales.

///
PRODUCT_TEMPLATE_STATUS = 100, /// Represents the line item type (if applicable) and line item priority (if /// applicable) of Dimension#PRODUCT_TEMPLATE_NAME. - ///

Corresponds to "Product template type / priority" in the Ad Manager UI.

+ ///

Corresponds to "Product template type / priority" in the Ad Manager UI. + /// Compatible with any of the following report types: Historical, Reach, Sales.

///
PRODUCT_TEMPLATE_TYPE_AND_PRIORITY = 101, /// Represents ProductTemplate#productType /// for Dimension#PRODUCT_TEMPLATE_NAME. - ///

Corresponds to "Product template product type" in the Ad Manager UI.

+ ///

Corresponds to "Product template product type" in the Ad Manager UI. + /// Compatible with any of the following report types: Historical, Reach, Sales.

///
PRODUCT_TEMPLATE_PRODUCT_TYPE = 102, /// Represents ProductTemplate#description /// for Dimension#PRODUCT_TEMPLATE_NAME. - ///

Corresponds to "Description" in the Ad Manager UI.

+ ///

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

///
PRODUCT_TEMPLATE_DESCRIPTION = 103, /// Represents the product template's name of Dimension#PRODUCT_NAME.

Corresponds to - /// "Product template name" in the Ad Manager UI.

+ /// "Product template name" in the Ad Manager UI. Compatible with any of the + /// following report types: Historical, Reach, Sales.

///
PRODUCT_PRODUCT_TEMPLATE_NAME = 104, /// Represents Product#rateType for Dimension#PRODUCT_NAME.

Corresponds to - /// "Product rate type" in the Ad Manager UI.

+ /// "Product rate type" in the Ad Manager UI. Compatible with any of the following + /// report types: Historical, Reach, Sales.

///
PRODUCT_RATE_TYPE = 105, /// Represents Product#status for Dimension#PRODUCT_NAME.

Corresponds to - /// "Product status" in the Ad Manager UI.

+ /// "Product status" in the Ad Manager UI. Compatible with any of the following + /// report types: Historical, Reach, Sales.

///
PRODUCT_STATUS = 106, /// Represents the line item type (if applicable) and line item priority (if /// applicable) of Dimension#PRODUCT_NAME. - ///

Corresponds to "Product type / priority" in the Ad Manager UI.

+ ///

Corresponds to "Product type / priority" in the Ad Manager UI. Compatible + /// with any of the following report types: Historical, Reach, Sales.

///
PRODUCT_TYPE_AND_PRIORITY = 107, /// Represents the product type of Dimension#PRODUCT_NAME.

Corresponds to - /// "Product product type" in the Ad Manager UI.

+ /// "Product product type" in the Ad Manager UI. Compatible with any of the + /// following report types: Historical, Reach, Sales.

///
PRODUCT_PRODUCT_TYPE = 108, /// Represents Product#notes for Dimension#PRODUCT_NAME.

Corresponds to - /// "Product notes" in the Ad Manager UI.

+ /// "Product notes" in the Ad Manager UI. Compatible with any of the following + /// report types: Historical, Reach, Sales.

///
PRODUCT_NOTES = 109, /// Represents Product#creativePlaceholders for Dimension#PRODUCT_NAME.

Corresponds to - /// "Inventory sizes" in the Ad Manager UI.

+ /// "Inventory sizes" in the Ad Manager UI. Compatible with any of the following + /// report types: Historical, Reach, Sales.

///
PRODUCT_INVENTORY_SIZES = 141, /// Represents the Dimension#PRODUCT_NAME's /// rate in a Dimension#RATE_CARD_NAME. - ///

Corresponds to "Product rate" in the Ad Manager UI.

+ ///

Corresponds to "Product rate" in the Ad Manager UI. Compatible with any of + /// the following report types: Historical, Reach, Sales.

///
PRODUCT_RATE = 137, /// Represents the Dimension#PRODUCT_NAME's /// rate in a Dimension#RATE_CARD_NAME and Dimension#PRODUCT_PACKAGE_NAME. - ///

Corresponds to "Packaged product rate" in the Ad Manager UI.

+ ///

Corresponds to "Packaged product rate" in the Ad Manager UI. Compatible with + /// any of the following report types: Historical, Reach, Sales.

///
PACKAGED_PRODUCT_RATE = 138, /// Represents the Company#type of Dimension#PROPOSAL_AGENCY_NAME. - ///

Corresponds to "Proposal agency type" in the Ad Manager UI.

+ ///

Corresponds to "Proposal agency type" in the Ad Manager UI. Compatible with + /// any of the following report types: Historical, Reach, Sales.

///
PROPOSAL_AGENCY_TYPE = 110, /// Represents the Company#creditStatus of Dimension#PROPOSAL_AGENCY_NAME. - ///

Corresponds to "Proposal agency credit status" in the Ad Manager UI.

+ ///

Corresponds to "Proposal agency credit status" in the Ad Manager UI. + /// Compatible with any of the following report types: Historical, Reach, Sales.

///
PROPOSAL_AGENCY_CREDIT_STATUS = 111, /// Represents Company#externalId for Dimension#PROPOSAL_AGENCY_NAME. - ///

Corresponds to "External agency ID" in the Ad Manager UI.

+ ///

Corresponds to "External agency ID" in the Ad Manager UI. Compatible with any + /// of the following report types: Historical, Reach, Sales.

///
PROPOSAL_AGENCY_EXTERNAL_ID = 112, /// Represents Company#comment for Dimension#PROPOSAL_AGENCY_NAME. - ///

Corresponds to "Proposal agency comment" in the Ad Manager UI.

+ ///

Corresponds to "Proposal agency comment" in the Ad Manager UI. Compatible + /// with any of the following report types: Historical, Reach, Sales.

///
PROPOSAL_AGENCY_COMMENT = 113, /// Represents the #SALESPERSON_PROPOSAL_CONTRIBUTION /// as this will include both primary and secondary salespeople.

Corresponds to - /// "Salespeople proposal contribution" in the Ad Manager UI.

+ /// "Salespeople proposal contribution" in the Ad Manager UI. Compatible with any of + /// the following report types: Historical, Reach, Sales.

///
SALESPEOPLE_PROPOSAL_CONTRIBUTION = 114, /// Represents the Dimension#SALESPERSON_NAME's contribution /// to a Dimension#PROPOSAL_NAME.

See #SALESPERSON_PROPOSAL_CONTRIBUTION.

- ///

Corresponds to "Salesperson proposal contribution" in the Ad Manager UI.

+ ///

Corresponds to "Salesperson proposal contribution" in the Ad Manager UI. + /// Compatible with any of the following report types: Historical, Reach, Sales.

///
SALESPERSON_PROPOSAL_CONTRIBUTION = 115, /// Represents ProductPackage#notes for Dimension#PRODUCT_PACKAGE_NAME. - ///

Corresponds to "Product package notes" in the Ad Manager UI.

+ ///

Corresponds to "Product package notes" in the Ad Manager UI. Compatible with + /// any of the following report types: Historical, Reach, Sales.

///
PRODUCT_PACKAGE_NOTES = 127, /// Represents the products as a comma separated list of name for Dimension#PRODUCT_PACKAGE_NAME. - ///

Corresponds to "Product package items" in the Ad Manager UI.

+ ///

Corresponds to "Product package items" in the Ad Manager UI. Compatible with + /// any of the following report types: Historical, Reach, Sales.

///
PRODUCT_PACKAGE_ITEMS = 128, /// Represents ProductPackage#status for Dimension#PRODUCT_PACKAGE_NAME. - ///

Corresponds to "Product package status" in the Ad Manager UI.

+ ///

Corresponds to "Product package status" in the Ad Manager UI. Compatible with + /// any of the following report types: Historical, Reach, Sales.

///
PRODUCT_PACKAGE_STATUS = 129, /// Represents Package#comments for Dimension#PACKAGE_NAME.

Corresponds to - /// "Package comments" in the Ad Manager UI.

+ /// "Package comments" in the Ad Manager UI. Compatible with any of the following + /// report types: Historical, Reach, Sales.

///
PACKAGE_COMMENTS = 130, /// Represents Package#startDateTime for /// {@Dimension#PACKAGE_NAME}.

Corresponds to "Package start time" in the Ad - /// Manager UI.

+ /// Manager UI. Compatible with any of the following report types: Historical, + /// Reach, Sales.

///
PACKAGE_START_DATE_TIME = 131, /// Represents Package#endDateTime for /// {@Dimension#PACKAGE_NAME}.

Corresponds to "Package end time" in the Ad - /// Manager UI.

+ /// Manager UI. Compatible with any of the following report types: Historical, + /// Reach, Sales.

///
PACKAGE_END_DATE_TIME = 132, /// 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.

+ /// to "Content source name" in the Ad Manager UI. Compatible with any of the + /// following report types: Historical, Reach.

///
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.

+ /// to "ID of the video in the content source" in the Ad Manager UI. Compatible with + /// any of the following report types: Historical, Reach.

///
CONTENT_CMS_VIDEO_ID = 117, /// Represents AdUnit#adUnitCode for Dimension#AD_UNIT_NAME.

Corresponds to "Ad - /// unit code" in the Ad Manager UI.

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

///
AD_UNIT_CODE = 118, } @@ -64264,7 +49271,7 @@ public enum DimensionAttribute { ///
[System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public enum DateRangeType { /// The current day. /// @@ -64325,7 +49332,7 @@ public enum DateRangeType { ///
[System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public enum TimeZoneType { /// The value returned if the actual value is not exposed by the requested API /// version. @@ -64385,7 +49392,7 @@ public enum TimeZoneType { [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public partial class ReportJob { private long idField; @@ -64435,7 +49442,7 @@ public ReportQuery reportQuery { [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public interface ReportServiceInterfaceChannel : Google.Api.Ads.AdManager.v201808.ReportServiceInterface, System.ServiceModel.IClientChannel + public interface ReportServiceInterfaceChannel : Google.Api.Ads.AdManager.v201908.ReportServiceInterface, System.ServiceModel.IClientChannel { } @@ -64499,11 +49506,11 @@ public ReportService(System.ServiceModel.Channels.Binding binding, System.Servic /// the ExportFormat for the /// report file /// the URL for report file download - public virtual string getReportDownloadURL(long reportJobId, Google.Api.Ads.AdManager.v201808.ExportFormat exportFormat) { + public virtual string getReportDownloadURL(long reportJobId, Google.Api.Ads.AdManager.v201908.ExportFormat exportFormat) { return base.Channel.getReportDownloadURL(reportJobId, exportFormat); } - public virtual System.Threading.Tasks.Task getReportDownloadURLAsync(long reportJobId, Google.Api.Ads.AdManager.v201808.ExportFormat exportFormat) { + public virtual System.Threading.Tasks.Task getReportDownloadURLAsync(long reportJobId, Google.Api.Ads.AdManager.v201908.ExportFormat exportFormat) { return base.Channel.getReportDownloadURLAsync(reportJobId, exportFormat); } @@ -64518,22 +49525,22 @@ public virtual System.Threading.Tasks.Task getReportDownloadURLAsync(lon /// the ReportDownloadOptions for the request /// the URL for report file download - public virtual string getReportDownloadUrlWithOptions(long reportJobId, Google.Api.Ads.AdManager.v201808.ReportDownloadOptions reportDownloadOptions) { + public virtual string getReportDownloadUrlWithOptions(long reportJobId, Google.Api.Ads.AdManager.v201908.ReportDownloadOptions reportDownloadOptions) { return base.Channel.getReportDownloadUrlWithOptions(reportJobId, reportDownloadOptions); } - public virtual System.Threading.Tasks.Task getReportDownloadUrlWithOptionsAsync(long reportJobId, Google.Api.Ads.AdManager.v201808.ReportDownloadOptions reportDownloadOptions) { + public virtual System.Threading.Tasks.Task getReportDownloadUrlWithOptionsAsync(long reportJobId, Google.Api.Ads.AdManager.v201908.ReportDownloadOptions reportDownloadOptions) { return base.Channel.getReportDownloadUrlWithOptionsAsync(reportJobId, reportDownloadOptions); } /// Returns the ReportJobStatus of the report job with /// the specified ID. /// - public virtual Google.Api.Ads.AdManager.v201808.ReportJobStatus getReportJobStatus(long reportJobId) { + public virtual Google.Api.Ads.AdManager.v201908.ReportJobStatus getReportJobStatus(long reportJobId) { return base.Channel.getReportJobStatus(reportJobId); } - public virtual System.Threading.Tasks.Task getReportJobStatusAsync(long reportJobId) { + public virtual System.Threading.Tasks.Task getReportJobStatusAsync(long reportJobId) { return base.Channel.getReportJobStatusAsync(reportJobId); } @@ -64553,11 +49560,11 @@ public virtual Google.Api.Ads.AdManager.v201808.ReportJobStatus getReportJobStat /// a SavedQueryPage that contains all SavedQuery instances which satisfy the given /// statement. - public virtual Google.Api.Ads.AdManager.v201808.SavedQueryPage getSavedQueriesByStatement(Google.Api.Ads.AdManager.v201808.Statement filterStatement) { + public virtual Google.Api.Ads.AdManager.v201908.SavedQueryPage getSavedQueriesByStatement(Google.Api.Ads.AdManager.v201908.Statement filterStatement) { return base.Channel.getSavedQueriesByStatement(filterStatement); } - public virtual System.Threading.Tasks.Task getSavedQueriesByStatementAsync(Google.Api.Ads.AdManager.v201808.Statement filterStatement) { + public virtual System.Threading.Tasks.Task getSavedQueriesByStatementAsync(Google.Api.Ads.AdManager.v201908.Statement filterStatement) { return base.Channel.getSavedQueriesByStatementAsync(filterStatement); } @@ -64566,11 +49573,11 @@ public virtual Google.Api.Ads.AdManager.v201808.SavedQueryPage getSavedQueriesBy /// href='ReportJob#reportQuery'>ReportJob#reportQuery /// the report job to run /// the report job with its ID filled in - public virtual Google.Api.Ads.AdManager.v201808.ReportJob runReportJob(Google.Api.Ads.AdManager.v201808.ReportJob reportJob) { + public virtual Google.Api.Ads.AdManager.v201908.ReportJob runReportJob(Google.Api.Ads.AdManager.v201908.ReportJob reportJob) { return base.Channel.runReportJob(reportJob); } - public virtual System.Threading.Tasks.Task runReportJobAsync(Google.Api.Ads.AdManager.v201808.ReportJob reportJob) { + public virtual System.Threading.Tasks.Task runReportJobAsync(Google.Api.Ads.AdManager.v201908.ReportJob reportJob) { return base.Channel.runReportJobAsync(reportJob); } } @@ -64585,7 +49592,7 @@ namespace Wrappers.SuggestedAdUnitService [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public partial class SuggestedAdUnit { private string idField; @@ -64757,7 +49764,7 @@ public AdUnitSize[] suggestedAdUnitSizes { ///
[System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public enum TargetPlatform { /// The desktop web. /// @@ -64777,7 +49784,7 @@ public enum TargetPlatform { [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public partial class SuggestedAdUnitPage { private int totalResultSetSizeField; @@ -64856,30 +49863,30 @@ public SuggestedAdUnit[] results { [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", ConfigurationName = "Google.Api.Ads.AdManager.v201808.SuggestedAdUnitServiceInterface")] + [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", ConfigurationName = "Google.Api.Ads.AdManager.v201908.SuggestedAdUnitServiceInterface")] public interface SuggestedAdUnitServiceInterface { [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201908.ApiException), Action = "", Name = "ApiExceptionFault")] [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v201808.SuggestedAdUnitPage getSuggestedAdUnitsByStatement(Google.Api.Ads.AdManager.v201808.Statement filterStatement); + Google.Api.Ads.AdManager.v201908.SuggestedAdUnitPage getSuggestedAdUnitsByStatement(Google.Api.Ads.AdManager.v201908.Statement filterStatement); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getSuggestedAdUnitsByStatementAsync(Google.Api.Ads.AdManager.v201808.Statement filterStatement); + System.Threading.Tasks.Task getSuggestedAdUnitsByStatementAsync(Google.Api.Ads.AdManager.v201908.Statement filterStatement); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201908.ApiException), Action = "", Name = "ApiExceptionFault")] [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v201808.SuggestedAdUnitUpdateResult performSuggestedAdUnitAction(Google.Api.Ads.AdManager.v201808.SuggestedAdUnitAction suggestedAdUnitAction, Google.Api.Ads.AdManager.v201808.Statement filterStatement); + Google.Api.Ads.AdManager.v201908.SuggestedAdUnitUpdateResult performSuggestedAdUnitAction(Google.Api.Ads.AdManager.v201908.SuggestedAdUnitAction suggestedAdUnitAction, Google.Api.Ads.AdManager.v201908.Statement filterStatement); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task performSuggestedAdUnitActionAsync(Google.Api.Ads.AdManager.v201808.SuggestedAdUnitAction suggestedAdUnitAction, Google.Api.Ads.AdManager.v201808.Statement filterStatement); + System.Threading.Tasks.Task performSuggestedAdUnitActionAsync(Google.Api.Ads.AdManager.v201908.SuggestedAdUnitAction suggestedAdUnitAction, Google.Api.Ads.AdManager.v201908.Statement filterStatement); } @@ -64891,7 +49898,7 @@ public interface SuggestedAdUnitServiceInterface [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public abstract partial class SuggestedAdUnitAction { } @@ -64902,7 +49909,7 @@ public abstract partial class SuggestedAdUnitAction { [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public partial class ApproveSuggestedAdUnits : SuggestedAdUnitAction { } @@ -64914,7 +49921,7 @@ public partial class ApproveSuggestedAdUnits : SuggestedAdUnitAction { [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public partial class SuggestedAdUnitUpdateResult { private string[] newAdUnitIdsField; @@ -64964,7 +49971,7 @@ public bool numChangesSpecified { [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public interface SuggestedAdUnitServiceInterfaceChannel : Google.Api.Ads.AdManager.v201808.SuggestedAdUnitServiceInterface, System.ServiceModel.IClientChannel + public interface SuggestedAdUnitServiceInterfaceChannel : Google.Api.Ads.AdManager.v201908.SuggestedAdUnitServiceInterface, System.ServiceModel.IClientChannel { } @@ -65033,11 +50040,11 @@ public SuggestedAdUnitService(System.ServiceModel.Channels.Binding binding, Syst ///
a Publisher Query Language statement used to /// filter a set of suggested ad units /// the suggested ad units that match the given filter - public virtual Google.Api.Ads.AdManager.v201808.SuggestedAdUnitPage getSuggestedAdUnitsByStatement(Google.Api.Ads.AdManager.v201808.Statement filterStatement) { + public virtual Google.Api.Ads.AdManager.v201908.SuggestedAdUnitPage getSuggestedAdUnitsByStatement(Google.Api.Ads.AdManager.v201908.Statement filterStatement) { return base.Channel.getSuggestedAdUnitsByStatement(filterStatement); } - public virtual System.Threading.Tasks.Task getSuggestedAdUnitsByStatementAsync(Google.Api.Ads.AdManager.v201808.Statement filterStatement) { + public virtual System.Threading.Tasks.Task getSuggestedAdUnitsByStatementAsync(Google.Api.Ads.AdManager.v201908.Statement filterStatement) { return base.Channel.getSuggestedAdUnitsByStatementAsync(filterStatement); } @@ -65054,11 +50061,11 @@ public virtual Google.Api.Ads.AdManager.v201808.SuggestedAdUnitPage getSuggested /// a Publisher Query Language statement used to /// filter a set of suggested ad units /// the result of the action performed - public virtual Google.Api.Ads.AdManager.v201808.SuggestedAdUnitUpdateResult performSuggestedAdUnitAction(Google.Api.Ads.AdManager.v201808.SuggestedAdUnitAction suggestedAdUnitAction, Google.Api.Ads.AdManager.v201808.Statement filterStatement) { + public virtual Google.Api.Ads.AdManager.v201908.SuggestedAdUnitUpdateResult performSuggestedAdUnitAction(Google.Api.Ads.AdManager.v201908.SuggestedAdUnitAction suggestedAdUnitAction, Google.Api.Ads.AdManager.v201908.Statement filterStatement) { return base.Channel.performSuggestedAdUnitAction(suggestedAdUnitAction, filterStatement); } - public virtual System.Threading.Tasks.Task performSuggestedAdUnitActionAsync(Google.Api.Ads.AdManager.v201808.SuggestedAdUnitAction suggestedAdUnitAction, Google.Api.Ads.AdManager.v201808.Statement filterStatement) { + public virtual System.Threading.Tasks.Task performSuggestedAdUnitActionAsync(Google.Api.Ads.AdManager.v201908.SuggestedAdUnitAction suggestedAdUnitAction, Google.Api.Ads.AdManager.v201908.Statement filterStatement) { return base.Channel.performSuggestedAdUnitActionAsync(suggestedAdUnitAction, filterStatement); } } @@ -65067,11 +50074,11 @@ 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/v201808", IsWrapped = true)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "createTeams", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201908", IsWrapped = true)] public partial class createTeamsRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] [System.Xml.Serialization.XmlElementAttribute("teams")] - public Google.Api.Ads.AdManager.v201808.Team[] teams; + public Google.Api.Ads.AdManager.v201908.Team[] teams; /// Creates a new instance of the class. /// @@ -65080,7 +50087,7 @@ public createTeamsRequest() { /// Creates a new instance of the class. /// - public createTeamsRequest(Google.Api.Ads.AdManager.v201808.Team[] teams) { + public createTeamsRequest(Google.Api.Ads.AdManager.v201908.Team[] teams) { this.teams = teams; } } @@ -65089,11 +50096,11 @@ public createTeamsRequest(Google.Api.Ads.AdManager.v201808.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/v201808", IsWrapped = true)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "createTeamsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201908", IsWrapped = true)] public partial class createTeamsResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v201808.Team[] rval; + public Google.Api.Ads.AdManager.v201908.Team[] rval; /// Creates a new instance of the class. /// @@ -65102,7 +50109,7 @@ public createTeamsResponse() { /// Creates a new instance of the class. /// - public createTeamsResponse(Google.Api.Ads.AdManager.v201808.Team[] rval) { + public createTeamsResponse(Google.Api.Ads.AdManager.v201908.Team[] rval) { this.rval = rval; } } @@ -65111,11 +50118,11 @@ public createTeamsResponse(Google.Api.Ads.AdManager.v201808.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/v201808", IsWrapped = true)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "updateTeams", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201908", IsWrapped = true)] public partial class updateTeamsRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] [System.Xml.Serialization.XmlElementAttribute("teams")] - public Google.Api.Ads.AdManager.v201808.Team[] teams; + public Google.Api.Ads.AdManager.v201908.Team[] teams; /// Creates a new instance of the class. /// @@ -65124,7 +50131,7 @@ public updateTeamsRequest() { /// Creates a new instance of the class. /// - public updateTeamsRequest(Google.Api.Ads.AdManager.v201808.Team[] teams) { + public updateTeamsRequest(Google.Api.Ads.AdManager.v201908.Team[] teams) { this.teams = teams; } } @@ -65133,11 +50140,11 @@ public updateTeamsRequest(Google.Api.Ads.AdManager.v201808.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/v201808", IsWrapped = true)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "updateTeamsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201908", IsWrapped = true)] public partial class updateTeamsResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v201808.Team[] rval; + public Google.Api.Ads.AdManager.v201908.Team[] rval; /// Creates a new instance of the class. /// @@ -65146,7 +50153,7 @@ public updateTeamsResponse() { /// Creates a new instance of the class. /// - public updateTeamsResponse(Google.Api.Ads.AdManager.v201808.Team[] rval) { + public updateTeamsResponse(Google.Api.Ads.AdManager.v201908.Team[] rval) { this.rval = rval; } } @@ -65159,7 +50166,7 @@ public updateTeamsResponse(Google.Api.Ads.AdManager.v201808.Team[] rval) { [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public partial class Team { private long idField; @@ -65353,7 +50360,7 @@ public bool teamAccessTypeSpecified { ///
[System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public enum TeamStatus { /// The status of an active team. (i.e. visible in the UI) /// @@ -65372,7 +50379,7 @@ public enum TeamStatus { ///
[System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public enum TeamAccessType { /// The level of access in which team members cannot view or edit a team's orders. /// @@ -65387,12 +50394,12 @@ public enum TeamAccessType { [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", ConfigurationName = "Google.Api.Ads.AdManager.v201808.TeamServiceInterface")] + [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", ConfigurationName = "Google.Api.Ads.AdManager.v201908.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.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201908.ApiException), Action = "", Name = "ApiExceptionFault")] [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] @@ -65402,30 +50409,30 @@ public interface TeamServiceInterface System.Threading.Tasks.Task createTeamsAsync(Wrappers.TeamService.createTeamsRequest request); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201908.ApiException), Action = "", Name = "ApiExceptionFault")] [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v201808.TeamPage getTeamsByStatement(Google.Api.Ads.AdManager.v201808.Statement filterStatement); + Google.Api.Ads.AdManager.v201908.TeamPage getTeamsByStatement(Google.Api.Ads.AdManager.v201908.Statement filterStatement); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getTeamsByStatementAsync(Google.Api.Ads.AdManager.v201808.Statement filterStatement); + System.Threading.Tasks.Task getTeamsByStatementAsync(Google.Api.Ads.AdManager.v201908.Statement filterStatement); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201908.ApiException), Action = "", Name = "ApiExceptionFault")] [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v201808.UpdateResult performTeamAction(Google.Api.Ads.AdManager.v201808.TeamAction teamAction, Google.Api.Ads.AdManager.v201808.Statement filterStatement); + Google.Api.Ads.AdManager.v201908.UpdateResult performTeamAction(Google.Api.Ads.AdManager.v201908.TeamAction teamAction, Google.Api.Ads.AdManager.v201908.Statement filterStatement); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task performTeamActionAsync(Google.Api.Ads.AdManager.v201808.TeamAction teamAction, Google.Api.Ads.AdManager.v201808.Statement filterStatement); + System.Threading.Tasks.Task performTeamActionAsync(Google.Api.Ads.AdManager.v201908.TeamAction teamAction, Google.Api.Ads.AdManager.v201908.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.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201908.ApiException), Action = "", Name = "ApiExceptionFault")] [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] @@ -65442,7 +50449,7 @@ public interface TeamServiceInterface [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public partial class TeamPage { private int totalResultSetSizeField; @@ -65528,7 +50535,7 @@ public Team[] results { [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public abstract partial class TeamAction { } @@ -65539,7 +50546,7 @@ public abstract partial class TeamAction { [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public partial class DeactivateTeams : TeamAction { } @@ -65550,13 +50557,13 @@ public partial class DeactivateTeams : TeamAction { [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public partial class ActivateTeams : TeamAction { } [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public interface TeamServiceInterfaceChannel : Google.Api.Ads.AdManager.v201808.TeamServiceInterface, System.ServiceModel.IClientChannel + public interface TeamServiceInterfaceChannel : Google.Api.Ads.AdManager.v201908.TeamServiceInterface, System.ServiceModel.IClientChannel { } @@ -65598,7 +50605,7 @@ public TeamService(System.ServiceModel.Channels.Binding binding, System.ServiceM } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.TeamService.createTeamsResponse Google.Api.Ads.AdManager.v201808.TeamServiceInterface.createTeams(Wrappers.TeamService.createTeamsRequest request) { + Wrappers.TeamService.createTeamsResponse Google.Api.Ads.AdManager.v201908.TeamServiceInterface.createTeams(Wrappers.TeamService.createTeamsRequest request) { return base.Channel.createTeams(request); } @@ -65606,22 +50613,22 @@ Wrappers.TeamService.createTeamsResponse Google.Api.Ads.AdManager.v201808.TeamSe /// ///
the teams to create /// the created teams with their IDs filled in - public virtual Google.Api.Ads.AdManager.v201808.Team[] createTeams(Google.Api.Ads.AdManager.v201808.Team[] teams) { + public virtual Google.Api.Ads.AdManager.v201908.Team[] createTeams(Google.Api.Ads.AdManager.v201908.Team[] teams) { Wrappers.TeamService.createTeamsRequest inValue = new Wrappers.TeamService.createTeamsRequest(); inValue.teams = teams; - Wrappers.TeamService.createTeamsResponse retVal = ((Google.Api.Ads.AdManager.v201808.TeamServiceInterface)(this)).createTeams(inValue); + Wrappers.TeamService.createTeamsResponse retVal = ((Google.Api.Ads.AdManager.v201908.TeamServiceInterface)(this)).createTeams(inValue); return retVal.rval; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201808.TeamServiceInterface.createTeamsAsync(Wrappers.TeamService.createTeamsRequest request) { + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201908.TeamServiceInterface.createTeamsAsync(Wrappers.TeamService.createTeamsRequest request) { return base.Channel.createTeamsAsync(request); } - public virtual System.Threading.Tasks.Task createTeamsAsync(Google.Api.Ads.AdManager.v201808.Team[] teams) { + public virtual System.Threading.Tasks.Task createTeamsAsync(Google.Api.Ads.AdManager.v201908.Team[] teams) { Wrappers.TeamService.createTeamsRequest inValue = new Wrappers.TeamService.createTeamsRequest(); inValue.teams = teams; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201808.TeamServiceInterface)(this)).createTeamsAsync(inValue)).Result.rval); + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201908.TeamServiceInterface)(this)).createTeamsAsync(inValue)).Result.rval); } /// Gets a TeamPage of Team objects that satisfy the given @@ -65634,11 +50641,11 @@ public virtual Google.Api.Ads.AdManager.v201808.Team[] createTeams(Google.Api.Ad /// a Publisher Query Language statement used to /// filter a set of teams. /// the teams that match the given filter - public virtual Google.Api.Ads.AdManager.v201808.TeamPage getTeamsByStatement(Google.Api.Ads.AdManager.v201808.Statement filterStatement) { + public virtual Google.Api.Ads.AdManager.v201908.TeamPage getTeamsByStatement(Google.Api.Ads.AdManager.v201908.Statement filterStatement) { return base.Channel.getTeamsByStatement(filterStatement); } - public virtual System.Threading.Tasks.Task getTeamsByStatementAsync(Google.Api.Ads.AdManager.v201808.Statement filterStatement) { + public virtual System.Threading.Tasks.Task getTeamsByStatementAsync(Google.Api.Ads.AdManager.v201908.Statement filterStatement) { return base.Channel.getTeamsByStatementAsync(filterStatement); } @@ -65648,38 +50655,38 @@ public virtual Google.Api.Ads.AdManager.v201808.TeamPage getTeamsByStatement(Goo /// a Publisher Query Language statement used to /// filter a set of teams /// the result of the action performed - public virtual Google.Api.Ads.AdManager.v201808.UpdateResult performTeamAction(Google.Api.Ads.AdManager.v201808.TeamAction teamAction, Google.Api.Ads.AdManager.v201808.Statement filterStatement) { + public virtual Google.Api.Ads.AdManager.v201908.UpdateResult performTeamAction(Google.Api.Ads.AdManager.v201908.TeamAction teamAction, Google.Api.Ads.AdManager.v201908.Statement filterStatement) { return base.Channel.performTeamAction(teamAction, filterStatement); } - public virtual System.Threading.Tasks.Task performTeamActionAsync(Google.Api.Ads.AdManager.v201808.TeamAction teamAction, Google.Api.Ads.AdManager.v201808.Statement filterStatement) { + public virtual System.Threading.Tasks.Task performTeamActionAsync(Google.Api.Ads.AdManager.v201908.TeamAction teamAction, Google.Api.Ads.AdManager.v201908.Statement filterStatement) { return base.Channel.performTeamActionAsync(teamAction, filterStatement); } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.TeamService.updateTeamsResponse Google.Api.Ads.AdManager.v201808.TeamServiceInterface.updateTeams(Wrappers.TeamService.updateTeamsRequest request) { + Wrappers.TeamService.updateTeamsResponse Google.Api.Ads.AdManager.v201908.TeamServiceInterface.updateTeams(Wrappers.TeamService.updateTeamsRequest request) { return base.Channel.updateTeams(request); } /// Updates the specified Team objects. /// the teams to update /// the updated teams - public virtual Google.Api.Ads.AdManager.v201808.Team[] updateTeams(Google.Api.Ads.AdManager.v201808.Team[] teams) { + public virtual Google.Api.Ads.AdManager.v201908.Team[] updateTeams(Google.Api.Ads.AdManager.v201908.Team[] teams) { Wrappers.TeamService.updateTeamsRequest inValue = new Wrappers.TeamService.updateTeamsRequest(); inValue.teams = teams; - Wrappers.TeamService.updateTeamsResponse retVal = ((Google.Api.Ads.AdManager.v201808.TeamServiceInterface)(this)).updateTeams(inValue); + Wrappers.TeamService.updateTeamsResponse retVal = ((Google.Api.Ads.AdManager.v201908.TeamServiceInterface)(this)).updateTeams(inValue); return retVal.rval; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201808.TeamServiceInterface.updateTeamsAsync(Wrappers.TeamService.updateTeamsRequest request) { + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201908.TeamServiceInterface.updateTeamsAsync(Wrappers.TeamService.updateTeamsRequest request) { return base.Channel.updateTeamsAsync(request); } - public virtual System.Threading.Tasks.Task updateTeamsAsync(Google.Api.Ads.AdManager.v201808.Team[] teams) { + public virtual System.Threading.Tasks.Task updateTeamsAsync(Google.Api.Ads.AdManager.v201908.Team[] teams) { Wrappers.TeamService.updateTeamsRequest inValue = new Wrappers.TeamService.updateTeamsRequest(); inValue.teams = teams; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201808.TeamServiceInterface)(this)).updateTeamsAsync(inValue)).Result.rval); + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201908.TeamServiceInterface)(this)).updateTeamsAsync(inValue)).Result.rval); } } namespace Wrappers.UserService @@ -65687,11 +50694,11 @@ 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/v201808", IsWrapped = true)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "createUsers", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201908", IsWrapped = true)] public partial class createUsersRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] [System.Xml.Serialization.XmlElementAttribute("users")] - public Google.Api.Ads.AdManager.v201808.User[] users; + public Google.Api.Ads.AdManager.v201908.User[] users; /// Creates a new instance of the class. /// @@ -65700,7 +50707,7 @@ public createUsersRequest() { /// Creates a new instance of the class. /// - public createUsersRequest(Google.Api.Ads.AdManager.v201808.User[] users) { + public createUsersRequest(Google.Api.Ads.AdManager.v201908.User[] users) { this.users = users; } } @@ -65709,11 +50716,11 @@ public createUsersRequest(Google.Api.Ads.AdManager.v201808.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 = "createUsersResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201808", IsWrapped = true)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "createUsersResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201908", IsWrapped = true)] public partial class createUsersResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v201808.User[] rval; + public Google.Api.Ads.AdManager.v201908.User[] rval; /// Creates a new instance of the class. /// @@ -65722,7 +50729,7 @@ public createUsersResponse() { /// Creates a new instance of the class. /// - public createUsersResponse(Google.Api.Ads.AdManager.v201808.User[] rval) { + public createUsersResponse(Google.Api.Ads.AdManager.v201908.User[] rval) { this.rval = rval; } } @@ -65731,7 +50738,7 @@ public createUsersResponse(Google.Api.Ads.AdManager.v201808.User[] 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/v201808", IsWrapped = true)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "getAllRoles", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201908", IsWrapped = true)] public partial class getAllRolesRequest { /// Creates a new instance of the class. /// @@ -65743,11 +50750,11 @@ 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/v201808", IsWrapped = true)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "getAllRolesResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201908", IsWrapped = true)] public partial class getAllRolesResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v201808.Role[] rval; + public Google.Api.Ads.AdManager.v201908.Role[] rval; /// Creates a new instance of the class. /// @@ -65756,7 +50763,7 @@ public getAllRolesResponse() { /// Creates a new instance of the class. /// - public getAllRolesResponse(Google.Api.Ads.AdManager.v201808.Role[] rval) { + public getAllRolesResponse(Google.Api.Ads.AdManager.v201908.Role[] rval) { this.rval = rval; } } @@ -65765,11 +50772,11 @@ public getAllRolesResponse(Google.Api.Ads.AdManager.v201808.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/v201808", IsWrapped = true)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "updateUsers", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201908", IsWrapped = true)] public partial class updateUsersRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] [System.Xml.Serialization.XmlElementAttribute("users")] - public Google.Api.Ads.AdManager.v201808.User[] users; + public Google.Api.Ads.AdManager.v201908.User[] users; /// Creates a new instance of the class. /// @@ -65778,7 +50785,7 @@ public updateUsersRequest() { /// Creates a new instance of the class. /// - public updateUsersRequest(Google.Api.Ads.AdManager.v201808.User[] users) { + public updateUsersRequest(Google.Api.Ads.AdManager.v201908.User[] users) { this.users = users; } } @@ -65787,11 +50794,11 @@ public updateUsersRequest(Google.Api.Ads.AdManager.v201808.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/v201808", IsWrapped = true)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "updateUsersResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201908", IsWrapped = true)] public partial class updateUsersResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v201808.User[] rval; + public Google.Api.Ads.AdManager.v201908.User[] rval; /// Creates a new instance of the class. /// @@ -65800,7 +50807,7 @@ public updateUsersResponse() { /// Creates a new instance of the class. /// - public updateUsersResponse(Google.Api.Ads.AdManager.v201808.User[] rval) { + public updateUsersResponse(Google.Api.Ads.AdManager.v201908.User[] rval) { this.rval = rval; } } @@ -65813,7 +50820,7 @@ public updateUsersResponse(Google.Api.Ads.AdManager.v201808.User[] rval) { [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public partial class UserRecord { private long idField; @@ -65933,7 +50940,7 @@ public string roleName { [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public partial class User : UserRecord { private bool isActiveField; @@ -66072,7 +51079,7 @@ public string ordersUiLocalTimeZoneId { [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public partial class TokenError : ApiError { private TokenErrorReason reasonField; @@ -66106,7 +51113,7 @@ public bool reasonSpecified { [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "TokenError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "TokenError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public enum TokenErrorReason { INVALID = 0, EXPIRED = 1, @@ -66118,12 +51125,12 @@ public enum TokenErrorReason { [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", ConfigurationName = "Google.Api.Ads.AdManager.v201808.UserServiceInterface")] + [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", ConfigurationName = "Google.Api.Ads.AdManager.v201908.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.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201908.ApiException), Action = "", Name = "ApiExceptionFault")] [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UserRecord))] @@ -66135,7 +51142,7 @@ 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.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201908.ApiException), Action = "", Name = "ApiExceptionFault")] [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UserRecord))] @@ -66146,44 +51153,44 @@ public interface UserServiceInterface System.Threading.Tasks.Task getAllRolesAsync(Wrappers.UserService.getAllRolesRequest request); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201908.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.v201808.User getCurrentUser(); + Google.Api.Ads.AdManager.v201908.User getCurrentUser(); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getCurrentUserAsync(); + System.Threading.Tasks.Task getCurrentUserAsync(); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201908.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.v201808.UserPage getUsersByStatement(Google.Api.Ads.AdManager.v201808.Statement filterStatement); + Google.Api.Ads.AdManager.v201908.UserPage getUsersByStatement(Google.Api.Ads.AdManager.v201908.Statement filterStatement); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getUsersByStatementAsync(Google.Api.Ads.AdManager.v201808.Statement filterStatement); + System.Threading.Tasks.Task getUsersByStatementAsync(Google.Api.Ads.AdManager.v201908.Statement filterStatement); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201908.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.v201808.UpdateResult performUserAction(Google.Api.Ads.AdManager.v201808.UserAction userAction, Google.Api.Ads.AdManager.v201808.Statement filterStatement); + Google.Api.Ads.AdManager.v201908.UpdateResult performUserAction(Google.Api.Ads.AdManager.v201908.UserAction userAction, Google.Api.Ads.AdManager.v201908.Statement filterStatement); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task performUserActionAsync(Google.Api.Ads.AdManager.v201808.UserAction userAction, Google.Api.Ads.AdManager.v201808.Statement filterStatement); + System.Threading.Tasks.Task performUserActionAsync(Google.Api.Ads.AdManager.v201908.UserAction userAction, Google.Api.Ads.AdManager.v201908.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.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201908.ApiException), Action = "", Name = "ApiExceptionFault")] [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UserRecord))] @@ -66195,136 +51202,714 @@ public interface UserServiceInterface } - /// Each Role provides a user with permissions to perform specific - /// operations in the system. + /// Each Role provides a user with permissions to perform specific + /// operations in the system. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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 { + 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. + /// + [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. + /// + [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. + /// + [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.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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, + } + + + /// Captures a page of User objects + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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. + /// + [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 users contained within this page. + /// + [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.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public abstract partial class UserAction { + } + + + /// The action used for deactivating User objects. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class DeactivateUsers : UserAction { + } + + + /// The action used for activating User objects. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class ActivateUsers : UserAction { + } + + + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + public interface UserServiceInterfaceChannel : Google.Api.Ads.AdManager.v201908.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. + /// + public UserService() { + } + + /// Creates a new instance of the class. + /// + public UserService(string endpointConfigurationName) + : base(endpointConfigurationName) { + } + + /// Creates a new instance of the class. + /// + public UserService(string endpointConfigurationName, string remoteAddress) + : base(endpointConfigurationName, remoteAddress) { + } + + /// Creates a new instance of the class. + /// + public UserService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) + : base(endpointConfigurationName, remoteAddress) { + } + + /// Creates a new instance of the class. + /// + 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.v201908.UserServiceInterface.createUsers(Wrappers.UserService.createUsersRequest request) { + return base.Channel.createUsers(request); + } + + /// Creates new User objects. + /// the users to create + /// the created users with their IDs filled in + public virtual Google.Api.Ads.AdManager.v201908.User[] createUsers(Google.Api.Ads.AdManager.v201908.User[] users) { + Wrappers.UserService.createUsersRequest inValue = new Wrappers.UserService.createUsersRequest(); + inValue.users = users; + Wrappers.UserService.createUsersResponse retVal = ((Google.Api.Ads.AdManager.v201908.UserServiceInterface)(this)).createUsers(inValue); + return retVal.rval; + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201908.UserServiceInterface.createUsersAsync(Wrappers.UserService.createUsersRequest request) { + return base.Channel.createUsersAsync(request); + } + + public virtual System.Threading.Tasks.Task createUsersAsync(Google.Api.Ads.AdManager.v201908.User[] users) { + Wrappers.UserService.createUsersRequest inValue = new Wrappers.UserService.createUsersRequest(); + inValue.users = users; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201908.UserServiceInterface)(this)).createUsersAsync(inValue)).Result.rval); + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + Wrappers.UserService.getAllRolesResponse Google.Api.Ads.AdManager.v201908.UserServiceInterface.getAllRoles(Wrappers.UserService.getAllRolesRequest request) { + return base.Channel.getAllRoles(request); + } + + /// Returns the Role objects that are defined for the users of + /// the network. + /// the roles defined for the user's network + public virtual Google.Api.Ads.AdManager.v201908.Role[] getAllRoles() { + Wrappers.UserService.getAllRolesRequest inValue = new Wrappers.UserService.getAllRolesRequest(); + Wrappers.UserService.getAllRolesResponse retVal = ((Google.Api.Ads.AdManager.v201908.UserServiceInterface)(this)).getAllRoles(inValue); + return retVal.rval; + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201908.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.v201908.UserServiceInterface)(this)).getAllRolesAsync(inValue)).Result.rval); + } + + /// Returns the current User. + /// the current user + public virtual Google.Api.Ads.AdManager.v201908.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
+ ///
a Publisher Query Language statement used to + /// filter a set of users + /// the users that match the given filter + public virtual Google.Api.Ads.AdManager.v201908.UserPage getUsersByStatement(Google.Api.Ads.AdManager.v201908.Statement filterStatement) { + return base.Channel.getUsersByStatement(filterStatement); + } + + public virtual System.Threading.Tasks.Task getUsersByStatementAsync(Google.Api.Ads.AdManager.v201908.Statement filterStatement) { + return base.Channel.getUsersByStatementAsync(filterStatement); + } + + /// Performs actions on User objects that match the given Statement#query. + /// the action to perform + /// a Publisher Query Language statement used to + /// filter a set of users + /// the result of the action performed + public virtual Google.Api.Ads.AdManager.v201908.UpdateResult performUserAction(Google.Api.Ads.AdManager.v201908.UserAction userAction, Google.Api.Ads.AdManager.v201908.Statement filterStatement) { + return base.Channel.performUserAction(userAction, filterStatement); + } + + public virtual System.Threading.Tasks.Task performUserActionAsync(Google.Api.Ads.AdManager.v201908.UserAction userAction, Google.Api.Ads.AdManager.v201908.Statement filterStatement) { + return base.Channel.performUserActionAsync(userAction, filterStatement); + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + Wrappers.UserService.updateUsersResponse Google.Api.Ads.AdManager.v201908.UserServiceInterface.updateUsers(Wrappers.UserService.updateUsersRequest request) { + return base.Channel.updateUsers(request); + } + + /// Updates the specified User objects. + /// the users to update + /// the updated users + public virtual Google.Api.Ads.AdManager.v201908.User[] updateUsers(Google.Api.Ads.AdManager.v201908.User[] users) { + Wrappers.UserService.updateUsersRequest inValue = new Wrappers.UserService.updateUsersRequest(); + inValue.users = users; + Wrappers.UserService.updateUsersResponse retVal = ((Google.Api.Ads.AdManager.v201908.UserServiceInterface)(this)).updateUsers(inValue); + return retVal.rval; + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201908.UserServiceInterface.updateUsersAsync(Wrappers.UserService.updateUsersRequest request) { + return base.Channel.updateUsersAsync(request); + } + + public virtual System.Threading.Tasks.Task updateUsersAsync(Google.Api.Ads.AdManager.v201908.User[] users) { + Wrappers.UserService.updateUsersRequest inValue = new Wrappers.UserService.updateUsersRequest(); + inValue.users = users; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201908.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/v201908", IsWrapped = true)] + public partial class createUserTeamAssociationsRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("userTeamAssociations")] + public Google.Api.Ads.AdManager.v201908.UserTeamAssociation[] userTeamAssociations; + + /// Creates a new instance of the class. + public createUserTeamAssociationsRequest() { + } + + /// Creates a new instance of the class. + public createUserTeamAssociationsRequest(Google.Api.Ads.AdManager.v201908.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/v201908", IsWrapped = true)] + public partial class createUserTeamAssociationsResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("rval")] + public Google.Api.Ads.AdManager.v201908.UserTeamAssociation[] rval; + + /// Creates a new instance of the class. + public createUserTeamAssociationsResponse() { + } + + /// Creates a new instance of the class. + public createUserTeamAssociationsResponse(Google.Api.Ads.AdManager.v201908.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/v201908", IsWrapped = true)] + public partial class updateUserTeamAssociationsRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("userTeamAssociations")] + public Google.Api.Ads.AdManager.v201908.UserTeamAssociation[] userTeamAssociations; + + /// Creates a new instance of the class. + public updateUserTeamAssociationsRequest() { + } + + /// Creates a new instance of the class. + public updateUserTeamAssociationsRequest(Google.Api.Ads.AdManager.v201908.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/v201908", IsWrapped = true)] + public partial class updateUserTeamAssociationsResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("rval")] + public Google.Api.Ads.AdManager.v201908.UserTeamAssociation[] rval; + + /// Creates a new instance of the class. + public updateUserTeamAssociationsResponse() { + } + + /// Creates a new instance of the class. + public updateUserTeamAssociationsResponse(Google.Api.Ads.AdManager.v201908.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.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class Role { - private long idField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public abstract partial class UserRecordTeamAssociation { + private long teamIdField; - private bool idFieldSpecified; + private bool teamIdFieldSpecified; - private string nameField; + private TeamAccessType overriddenTeamAccessTypeField; - private string descriptionField; + private bool overriddenTeamAccessTypeFieldSpecified; - private RoleStatus statusField; + private TeamAccessType defaultTeamAccessTypeField; - private bool statusFieldSpecified; + private bool defaultTeamAccessTypeFieldSpecified; - /// 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. + /// The Team#id of the team. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public long id { + public long teamId { get { - return this.idField; + return this.teamIdField; } set { - this.idField = value; - this.idSpecified = true; + this.teamIdField = value; + this.teamIdSpecified = 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 teamIdSpecified { get { - return this.idFieldSpecified; + return this.teamIdFieldSpecified; } set { - this.idFieldSpecified = value; + this.teamIdFieldSpecified = value; } } - /// The name of the role. This value is readonly and is assigned by Google. + /// The overridden team access type. This field is null if team access + /// type is not overridden. /// [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public string name { + public TeamAccessType overriddenTeamAccessType { get { - return this.nameField; + return this.overriddenTeamAccessTypeField; } set { - this.nameField = value; + this.overriddenTeamAccessTypeField = value; + this.overriddenTeamAccessTypeSpecified = 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 overriddenTeamAccessTypeSpecified { get { - return this.descriptionField; + return this.overriddenTeamAccessTypeFieldSpecified; } set { - this.descriptionField = value; + this.overriddenTeamAccessTypeFieldSpecified = 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. + /// The default team access type Team#teamAccessType. This field is read-only and + /// is populated by Google. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public RoleStatus status { + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public TeamAccessType defaultTeamAccessType { get { - return this.statusField; + return this.defaultTeamAccessTypeField; } set { - this.statusField = value; - this.statusSpecified = true; + this.defaultTeamAccessTypeField = value; + this.defaultTeamAccessTypeSpecified = 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 defaultTeamAccessTypeSpecified { get { - return this.statusFieldSpecified; + return this.defaultTeamAccessTypeFieldSpecified; } set { - this.statusFieldSpecified = value; + this.defaultTeamAccessTypeFieldSpecified = value; } } } - /// Represents the status of the role, weather the role is active or inactive. + /// 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.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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. + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class UserTeamAssociation : UserRecordTeamAssociation { + private long userIdField; + + private bool userIdFieldSpecified; + + /// Refers to the User#id. /// - UNKNOWN = 2, + [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; + } + } } - /// Captures a page of User objects + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", ConfigurationName = "Google.Api.Ads.AdManager.v201908.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.v201908.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.v201908.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.v201908.UserTeamAssociationPage getUserTeamAssociationsByStatement(Google.Api.Ads.AdManager.v201908.Statement filterStatement); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task getUserTeamAssociationsByStatementAsync(Google.Api.Ads.AdManager.v201908.Statement filterStatement); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201908.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.v201908.UpdateResult performUserTeamAssociationAction(Google.Api.Ads.AdManager.v201908.UserTeamAssociationAction userTeamAssociationAction, Google.Api.Ads.AdManager.v201908.Statement statement); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task performUserTeamAssociationActionAsync(Google.Api.Ads.AdManager.v201908.UserTeamAssociationAction userTeamAssociationAction, Google.Api.Ads.AdManager.v201908.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.v201908.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.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class UserPage { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class UserTeamAssociationPage { private int totalResultSetSizeField; private bool totalResultSetSizeFieldSpecified; @@ -66333,7 +51918,7 @@ public partial class UserPage { private bool startIndexFieldSpecified; - private User[] resultsField; + private UserTeamAssociation[] resultsField; /// The size of the total result set to which this page belongs. /// @@ -66387,10 +51972,10 @@ public bool startIndexSpecified { } } - /// The collection of users contained within this page. + /// The collection of user team associations contained within this page. /// [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] - public User[] results { + public UserTeamAssociation[] results { get { return this.resultsField; } @@ -66401,229 +51986,182 @@ public User[] results { } - /// 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.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public abstract partial class UserAction { - } - - - /// The action used for deactivating User objects. + /// Represents the actions that can be performed on UserTeamAssociation objects. /// + [System.Xml.Serialization.XmlIncludeAttribute(typeof(DeleteUserTeamAssociations))] [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class DeactivateUsers : UserAction { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public abstract partial class UserTeamAssociationAction { } - /// The action used for activating User objects. + /// Action to delete the association between a User and a Team. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ActivateUsers : UserAction { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class DeleteUserTeamAssociations : UserTeamAssociationAction { } [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public interface UserServiceInterfaceChannel : Google.Api.Ads.AdManager.v201808.UserServiceInterface, System.ServiceModel.IClientChannel + public interface UserTeamAssociationServiceInterfaceChannel : Google.Api.Ads.AdManager.v201908.UserTeamAssociationServiceInterface, 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.

+ /// 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 UserService : AdManagerSoapClient, IUserService { - /// Creates a new instance of the class. - /// - public UserService() { + public partial class UserTeamAssociationService : AdManagerSoapClient, IUserTeamAssociationService { + /// Creates a new instance of the + /// class. + public UserTeamAssociationService() { } - /// Creates a new instance of the class. - /// - public UserService(string endpointConfigurationName) + /// Creates a new instance of the + /// class. + public UserTeamAssociationService(string endpointConfigurationName) : base(endpointConfigurationName) { } - /// Creates a new instance of the class. - /// - public UserService(string endpointConfigurationName, string remoteAddress) + /// Creates a new instance of the + /// class. + public UserTeamAssociationService(string endpointConfigurationName, string remoteAddress) : base(endpointConfigurationName, remoteAddress) { } - /// Creates a new instance of the class. - /// - public UserService(string endpointConfigurationName, System.ServiceModel.EndpointAddress 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 UserService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress 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.UserService.createUsersResponse Google.Api.Ads.AdManager.v201808.UserServiceInterface.createUsers(Wrappers.UserService.createUsersRequest request) { - return base.Channel.createUsers(request); - } - - /// Creates new User objects. - /// the users to create - /// the created users with their IDs filled in - public virtual Google.Api.Ads.AdManager.v201808.User[] createUsers(Google.Api.Ads.AdManager.v201808.User[] users) { - Wrappers.UserService.createUsersRequest inValue = new Wrappers.UserService.createUsersRequest(); - inValue.users = users; - Wrappers.UserService.createUsersResponse retVal = ((Google.Api.Ads.AdManager.v201808.UserServiceInterface)(this)).createUsers(inValue); - return retVal.rval; - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201808.UserServiceInterface.createUsersAsync(Wrappers.UserService.createUsersRequest request) { - return base.Channel.createUsersAsync(request); - } - - public virtual System.Threading.Tasks.Task createUsersAsync(Google.Api.Ads.AdManager.v201808.User[] users) { - Wrappers.UserService.createUsersRequest inValue = new Wrappers.UserService.createUsersRequest(); - inValue.users = users; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201808.UserServiceInterface)(this)).createUsersAsync(inValue)).Result.rval); - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.UserService.getAllRolesResponse Google.Api.Ads.AdManager.v201808.UserServiceInterface.getAllRoles(Wrappers.UserService.getAllRolesRequest request) { - return base.Channel.getAllRoles(request); + Wrappers.UserTeamAssociationService.createUserTeamAssociationsResponse Google.Api.Ads.AdManager.v201908.UserTeamAssociationServiceInterface.createUserTeamAssociations(Wrappers.UserTeamAssociationService.createUserTeamAssociationsRequest request) { + return base.Channel.createUserTeamAssociations(request); } - /// Returns the Role objects that are defined for the users of - /// the network. - /// the roles defined for the user's network - public virtual Google.Api.Ads.AdManager.v201808.Role[] getAllRoles() { - Wrappers.UserService.getAllRolesRequest inValue = new Wrappers.UserService.getAllRolesRequest(); - Wrappers.UserService.getAllRolesResponse retVal = ((Google.Api.Ads.AdManager.v201808.UserServiceInterface)(this)).getAllRoles(inValue); + /// Creates new UserTeamAssociation objects. + /// the user team associations to create + /// the created user team associations with their IDs filled in + public virtual Google.Api.Ads.AdManager.v201908.UserTeamAssociation[] createUserTeamAssociations(Google.Api.Ads.AdManager.v201908.UserTeamAssociation[] userTeamAssociations) { + Wrappers.UserTeamAssociationService.createUserTeamAssociationsRequest inValue = new Wrappers.UserTeamAssociationService.createUserTeamAssociationsRequest(); + inValue.userTeamAssociations = userTeamAssociations; + Wrappers.UserTeamAssociationService.createUserTeamAssociationsResponse retVal = ((Google.Api.Ads.AdManager.v201908.UserTeamAssociationServiceInterface)(this)).createUserTeamAssociations(inValue); return retVal.rval; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201808.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.v201808.UserServiceInterface)(this)).getAllRolesAsync(inValue)).Result.rval); - } - - /// Returns the current User. - /// the current user - public virtual Google.Api.Ads.AdManager.v201808.User getCurrentUser() { - return base.Channel.getCurrentUser(); + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201908.UserTeamAssociationServiceInterface.createUserTeamAssociationsAsync(Wrappers.UserTeamAssociationService.createUserTeamAssociationsRequest request) { + return base.Channel.createUserTeamAssociationsAsync(request); } - public virtual System.Threading.Tasks.Task getCurrentUserAsync() { - return base.Channel.getCurrentUserAsync(); + public virtual System.Threading.Tasks.Task createUserTeamAssociationsAsync(Google.Api.Ads.AdManager.v201908.UserTeamAssociation[] userTeamAssociations) { + Wrappers.UserTeamAssociationService.createUserTeamAssociationsRequest inValue = new Wrappers.UserTeamAssociationService.createUserTeamAssociationsRequest(); + inValue.userTeamAssociations = userTeamAssociations; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201908.UserTeamAssociationServiceInterface)(this)).createUserTeamAssociationsAsync(inValue)).Result.rval); } - /// 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
+ /// 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
///
a Publisher Query Language statement used to - /// filter a set of users - /// the users that match the given filter - public virtual Google.Api.Ads.AdManager.v201808.UserPage getUsersByStatement(Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.getUsersByStatement(filterStatement); + /// filter a set of user team associations + /// the user team associations that match the given filter + public virtual Google.Api.Ads.AdManager.v201908.UserTeamAssociationPage getUserTeamAssociationsByStatement(Google.Api.Ads.AdManager.v201908.Statement filterStatement) { + return base.Channel.getUserTeamAssociationsByStatement(filterStatement); } - public virtual System.Threading.Tasks.Task getUsersByStatementAsync(Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.getUsersByStatementAsync(filterStatement); + public virtual System.Threading.Tasks.Task getUserTeamAssociationsByStatementAsync(Google.Api.Ads.AdManager.v201908.Statement filterStatement) { + return base.Channel.getUserTeamAssociationsByStatementAsync(filterStatement); } - /// Performs actions on User objects that match the given Statement#query. - /// the action to perform - /// a Publisher Query Language statement used to - /// filter a set of users + /// Performs actions on UserTeamAssociation + /// objects that match the given Statement#query. + /// the action to perform + /// a Publisher Query Language statement used to filter a + /// set of user team associations /// the result of the action performed - public virtual Google.Api.Ads.AdManager.v201808.UpdateResult performUserAction(Google.Api.Ads.AdManager.v201808.UserAction userAction, Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.performUserAction(userAction, filterStatement); + public virtual Google.Api.Ads.AdManager.v201908.UpdateResult performUserTeamAssociationAction(Google.Api.Ads.AdManager.v201908.UserTeamAssociationAction userTeamAssociationAction, Google.Api.Ads.AdManager.v201908.Statement statement) { + return base.Channel.performUserTeamAssociationAction(userTeamAssociationAction, statement); } - public virtual System.Threading.Tasks.Task performUserActionAsync(Google.Api.Ads.AdManager.v201808.UserAction userAction, Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.performUserActionAsync(userAction, filterStatement); + public virtual System.Threading.Tasks.Task performUserTeamAssociationActionAsync(Google.Api.Ads.AdManager.v201908.UserTeamAssociationAction userTeamAssociationAction, Google.Api.Ads.AdManager.v201908.Statement statement) { + return base.Channel.performUserTeamAssociationActionAsync(userTeamAssociationAction, statement); } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.UserService.updateUsersResponse Google.Api.Ads.AdManager.v201808.UserServiceInterface.updateUsers(Wrappers.UserService.updateUsersRequest request) { - return base.Channel.updateUsers(request); + Wrappers.UserTeamAssociationService.updateUserTeamAssociationsResponse Google.Api.Ads.AdManager.v201908.UserTeamAssociationServiceInterface.updateUserTeamAssociations(Wrappers.UserTeamAssociationService.updateUserTeamAssociationsRequest request) { + return base.Channel.updateUserTeamAssociations(request); } - /// Updates the specified User objects. - /// the users to update - /// the updated users - public virtual Google.Api.Ads.AdManager.v201808.User[] updateUsers(Google.Api.Ads.AdManager.v201808.User[] users) { - Wrappers.UserService.updateUsersRequest inValue = new Wrappers.UserService.updateUsersRequest(); - inValue.users = users; - Wrappers.UserService.updateUsersResponse retVal = ((Google.Api.Ads.AdManager.v201808.UserServiceInterface)(this)).updateUsers(inValue); + /// Updates the specified UserTeamAssociation + /// objects. + /// the user team associations to update + /// the updated user team associations + public virtual Google.Api.Ads.AdManager.v201908.UserTeamAssociation[] updateUserTeamAssociations(Google.Api.Ads.AdManager.v201908.UserTeamAssociation[] userTeamAssociations) { + Wrappers.UserTeamAssociationService.updateUserTeamAssociationsRequest inValue = new Wrappers.UserTeamAssociationService.updateUserTeamAssociationsRequest(); + inValue.userTeamAssociations = userTeamAssociations; + Wrappers.UserTeamAssociationService.updateUserTeamAssociationsResponse retVal = ((Google.Api.Ads.AdManager.v201908.UserTeamAssociationServiceInterface)(this)).updateUserTeamAssociations(inValue); return retVal.rval; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201808.UserServiceInterface.updateUsersAsync(Wrappers.UserService.updateUsersRequest request) { - return base.Channel.updateUsersAsync(request); + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201908.UserTeamAssociationServiceInterface.updateUserTeamAssociationsAsync(Wrappers.UserTeamAssociationService.updateUserTeamAssociationsRequest request) { + return base.Channel.updateUserTeamAssociationsAsync(request); } - public virtual System.Threading.Tasks.Task updateUsersAsync(Google.Api.Ads.AdManager.v201808.User[] users) { - Wrappers.UserService.updateUsersRequest inValue = new Wrappers.UserService.updateUsersRequest(); - inValue.users = users; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201808.UserServiceInterface)(this)).updateUsersAsync(inValue)).Result.rval); + public virtual System.Threading.Tasks.Task updateUserTeamAssociationsAsync(Google.Api.Ads.AdManager.v201908.UserTeamAssociation[] userTeamAssociations) { + Wrappers.UserTeamAssociationService.updateUserTeamAssociationsRequest inValue = new Wrappers.UserTeamAssociationService.updateUserTeamAssociationsRequest(); + inValue.userTeamAssociations = userTeamAssociations; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201908.UserTeamAssociationServiceInterface)(this)).updateUserTeamAssociationsAsync(inValue)).Result.rval); } } - namespace Wrappers.UserTeamAssociationService + 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 = "createUserTeamAssociations", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201808", IsWrapped = true)] - public partial class createUserTeamAssociationsRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("userTeamAssociations")] - public Google.Api.Ads.AdManager.v201808.UserTeamAssociation[] userTeamAssociations; + [System.ServiceModel.MessageContractAttribute(WrapperName = "createNativeStyles", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201908", IsWrapped = true)] + public partial class createNativeStylesRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("nativeStyles")] + public Google.Api.Ads.AdManager.v201908.NativeStyle[] nativeStyles; - /// Creates a new instance of the class. - public createUserTeamAssociationsRequest() { + /// Creates a new instance of the + /// class. + public createNativeStylesRequest() { } - /// Creates a new instance of the class. - public createUserTeamAssociationsRequest(Google.Api.Ads.AdManager.v201808.UserTeamAssociation[] userTeamAssociations) { - this.userTeamAssociations = userTeamAssociations; + /// Creates a new instance of the + /// class. + public createNativeStylesRequest(Google.Api.Ads.AdManager.v201908.NativeStyle[] nativeStyles) { + this.nativeStyles = nativeStyles; } } @@ -66631,20 +52169,20 @@ public createUserTeamAssociationsRequest(Google.Api.Ads.AdManager.v201808.UserTe [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/v201808", IsWrapped = true)] - public partial class createUserTeamAssociationsResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "createNativeStylesResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201908", IsWrapped = true)] + public partial class createNativeStylesResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v201808.UserTeamAssociation[] rval; + public Google.Api.Ads.AdManager.v201908.NativeStyle[] rval; - /// Creates a new instance of the class. - public createUserTeamAssociationsResponse() { + /// Creates a new instance of the + /// class. + public createNativeStylesResponse() { } - /// Creates a new instance of the class. - public createUserTeamAssociationsResponse(Google.Api.Ads.AdManager.v201808.UserTeamAssociation[] rval) { + /// Creates a new instance of the + /// class. + public createNativeStylesResponse(Google.Api.Ads.AdManager.v201908.NativeStyle[] rval) { this.rval = rval; } } @@ -66653,21 +52191,21 @@ public createUserTeamAssociationsResponse(Google.Api.Ads.AdManager.v201808.UserT [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/v201808", IsWrapped = true)] - public partial class updateUserTeamAssociationsRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("userTeamAssociations")] - public Google.Api.Ads.AdManager.v201808.UserTeamAssociation[] userTeamAssociations; + [System.ServiceModel.MessageContractAttribute(WrapperName = "updateNativeStyles", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201908", IsWrapped = true)] + public partial class updateNativeStylesRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("nativeStyles")] + public Google.Api.Ads.AdManager.v201908.NativeStyle[] nativeStyles; - /// Creates a new instance of the class. - public updateUserTeamAssociationsRequest() { + /// Creates a new instance of the + /// class. + public updateNativeStylesRequest() { } - /// Creates a new instance of the class. - public updateUserTeamAssociationsRequest(Google.Api.Ads.AdManager.v201808.UserTeamAssociation[] userTeamAssociations) { - this.userTeamAssociations = userTeamAssociations; + /// Creates a new instance of the + /// class. + public updateNativeStylesRequest(Google.Api.Ads.AdManager.v201908.NativeStyle[] nativeStyles) { + this.nativeStyles = nativeStyles; } } @@ -66675,234 +52213,394 @@ public updateUserTeamAssociationsRequest(Google.Api.Ads.AdManager.v201808.UserTe [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/v201808", IsWrapped = true)] - public partial class updateUserTeamAssociationsResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "updateNativeStylesResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201908", IsWrapped = true)] + public partial class updateNativeStylesResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v201808.UserTeamAssociation[] rval; + public Google.Api.Ads.AdManager.v201908.NativeStyle[] rval; - /// Creates a new instance of the class. - public updateUserTeamAssociationsResponse() { + /// Creates a new instance of the + /// class. + public updateNativeStylesResponse() { } - /// Creates a new instance of the class. - public updateUserTeamAssociationsResponse(Google.Api.Ads.AdManager.v201808.UserTeamAssociation[] rval) { + /// Creates a new instance of the + /// class. + public updateNativeStylesResponse(Google.Api.Ads.AdManager.v201908.NativeStyle[] rval) { this.rval = rval; } } } - /// UserRecordTeamAssociation represents the association between a UserRecord and a Team. + /// 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.Xml.Serialization.XmlIncludeAttribute(typeof(UserTeamAssociation))] [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public abstract partial class UserRecordTeamAssociation { - private long teamIdField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class NativeStyle { + private long idField; - private bool teamIdFieldSpecified; + private bool idFieldSpecified; - private TeamAccessType overriddenTeamAccessTypeField; + private string nameField; - private bool overriddenTeamAccessTypeFieldSpecified; + private string htmlSnippetField; - private TeamAccessType defaultTeamAccessTypeField; + 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. + /// + [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. + /// + [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. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public string htmlSnippet { + get { + return this.htmlSnippetField; + } + set { + this.htmlSnippetField = value; + } + } - private bool defaultTeamAccessTypeFieldSpecified; + /// 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 { + get { + return this.cssSnippetField; + } + set { + this.cssSnippetField = value; + } + } - /// The Team#id of the team. + /// 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 = 0)] - public long teamId { + [System.Xml.Serialization.XmlElementAttribute(Order = 4)] + public long creativeTemplateId { get { - return this.teamIdField; + return this.creativeTemplateIdField; } set { - this.teamIdField = value; - this.teamIdSpecified = true; + this.creativeTemplateIdField = value; + this.creativeTemplateIdSpecified = 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 creativeTemplateIdSpecified { get { - return this.teamIdFieldSpecified; + return this.creativeTemplateIdFieldSpecified; } set { - this.teamIdFieldSpecified = value; + this.creativeTemplateIdFieldSpecified = value; } } - /// The overridden team access type. This field is null if team access - /// type is not overridden. + /// Whether this is a fluid size native style. If true, this must be + /// used with 1x1 size. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public TeamAccessType overriddenTeamAccessType { + [System.Xml.Serialization.XmlElementAttribute(Order = 5)] + public bool isFluid { get { - return this.overriddenTeamAccessTypeField; + return this.isFluidField; } set { - this.overriddenTeamAccessTypeField = value; - this.overriddenTeamAccessTypeSpecified = 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 overriddenTeamAccessTypeSpecified { + public bool isFluidSpecified { get { - return this.overriddenTeamAccessTypeFieldSpecified; + return this.isFluidFieldSpecified; } set { - this.overriddenTeamAccessTypeFieldSpecified = value; + this.isFluidFieldSpecified = value; } } - /// The default team access type Team#teamAccessType. This field is read-only and - /// is populated by Google. + /// The targeting criteria for this native style. Only ad unit and key-value + /// targeting are supported at this time. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public TeamAccessType defaultTeamAccessType { + [System.Xml.Serialization.XmlElementAttribute(Order = 6)] + public Targeting targeting { get { - return this.defaultTeamAccessTypeField; + return this.targetingField; } set { - this.defaultTeamAccessTypeField = value; - this.defaultTeamAccessTypeSpecified = true; + this.targetingField = value; } } - /// true, if a value is specified for , false otherwise. + /// The status of the native style. This attribute is read-only. + /// + [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 defaultTeamAccessTypeSpecified { + public bool statusSpecified { get { - return this.defaultTeamAccessTypeFieldSpecified; + return this.statusFieldSpecified; } set { - this.defaultTeamAccessTypeFieldSpecified = value; + this.statusFieldSpecified = value; + } + } + + /// The size of the native style. This attribute is required. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 8)] + public Size size { + get { + return this.sizeField; + } + set { + this.sizeField = value; } } } - /// UserTeamAssociation associates a User with a Team to provide the user access to the entities that belong to - /// the team. + /// Describes status of the native style. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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 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.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class UserTeamAssociation : UserRecordTeamAssociation { - private long userIdField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class NativeStyleError : ApiError { + private NativeStyleErrorReason reasonField; - private bool userIdFieldSpecified; + private bool reasonFieldSpecified; - /// Refers to the User#id. + /// The error reason represented by an enum. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public long userId { + public NativeStyleErrorReason reason { get { - return this.userIdField; + return this.reasonField; } set { - this.userIdField = value; - this.userIdSpecified = 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 userIdSpecified { + public bool reasonSpecified { get { - return this.userIdFieldSpecified; + return this.reasonFieldSpecified; } set { - this.userIdFieldSpecified = value; + this.reasonFieldSpecified = value; } } } + /// The reasons for the target error. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "NativeStyleError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum NativeStyleErrorReason { + /// 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, + /// Native styles can only be created under native creative templates. + /// + NATIVE_CREATIVE_TEMPLATE_REQUIRED = 1, + /// Native styles can only be created under active creative templates. + /// + ACTIVE_CREATIVE_TEMPLATE_REQUIRED = 2, + /// Native styles must have an HTML snippet. + /// + UNIQUE_SNIPPET_REQUIRED = 3, + /// Targeting expressions on the NativeStyle can only have custom criteria targeting + /// with CustomTargetingValue.MatchType#EXACT. + /// + INVALID_CUSTOM_TARGETING_MATCH_TYPE = 4, + /// Targeting expressions on native styles can have a maximum of 20 key-value pairs. + /// + TOO_MANY_CUSTOM_TARGETING_KEY_VALUES = 9, + /// Targeting expressions on the native style can only have inventory targeting + /// and/or custom targeting. + /// + INVALID_TARGETING_TYPE = 5, + /// Native styles only allows inclusion of inventory units. + /// + INVALID_INVENTORY_TARTGETING_TYPE = 6, + /// The macro referenced in the snippet is not valid. + /// + UNRECOGNIZED_MACRO = 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/v201808", ConfigurationName = "Google.Api.Ads.AdManager.v201808.UserTeamAssociationServiceInterface")] - public interface UserTeamAssociationServiceInterface + [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", ConfigurationName = "Google.Api.Ads.AdManager.v201908.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.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201908.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); + Wrappers.NativeStyleService.createNativeStylesResponse createNativeStyles(Wrappers.NativeStyleService.createNativeStylesRequest request); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task createUserTeamAssociationsAsync(Wrappers.UserTeamAssociationService.createUserTeamAssociationsRequest request); + System.Threading.Tasks.Task createNativeStylesAsync(Wrappers.NativeStyleService.createNativeStylesRequest request); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201908.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.v201808.UserTeamAssociationPage getUserTeamAssociationsByStatement(Google.Api.Ads.AdManager.v201808.Statement filterStatement); + Google.Api.Ads.AdManager.v201908.NativeStylePage getNativeStylesByStatement(Google.Api.Ads.AdManager.v201908.Statement filterStatement); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getUserTeamAssociationsByStatementAsync(Google.Api.Ads.AdManager.v201808.Statement filterStatement); + System.Threading.Tasks.Task getNativeStylesByStatementAsync(Google.Api.Ads.AdManager.v201908.Statement filterStatement); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201908.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.v201808.UpdateResult performUserTeamAssociationAction(Google.Api.Ads.AdManager.v201808.UserTeamAssociationAction userTeamAssociationAction, Google.Api.Ads.AdManager.v201808.Statement statement); + Google.Api.Ads.AdManager.v201908.UpdateResult performNativeStyleAction(Google.Api.Ads.AdManager.v201908.NativeStyleAction nativeStyleAction, Google.Api.Ads.AdManager.v201908.Statement filterStatement); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task performUserTeamAssociationActionAsync(Google.Api.Ads.AdManager.v201808.UserTeamAssociationAction userTeamAssociationAction, Google.Api.Ads.AdManager.v201808.Statement statement); + System.Threading.Tasks.Task performNativeStyleActionAsync(Google.Api.Ads.AdManager.v201908.NativeStyleAction nativeStyleAction, Google.Api.Ads.AdManager.v201908.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.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201908.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); + Wrappers.NativeStyleService.updateNativeStylesResponse updateNativeStyles(Wrappers.NativeStyleService.updateNativeStylesRequest request); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task updateUserTeamAssociationsAsync(Wrappers.UserTeamAssociationService.updateUserTeamAssociationsRequest request); + System.Threading.Tasks.Task updateNativeStylesAsync(Wrappers.NativeStyleService.updateNativeStylesRequest request); } - /// Captures a page of UserTeamAssociation - /// objects. + /// Captures a page of NativeStyle objects. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class UserTeamAssociationPage { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class NativeStylePage { private int totalResultSetSizeField; private bool totalResultSetSizeFieldSpecified; @@ -66911,7 +52609,7 @@ public partial class UserTeamAssociationPage { private bool startIndexFieldSpecified; - private UserTeamAssociation[] resultsField; + private NativeStyle[] resultsField; /// The size of the total result set to which this page belongs. /// @@ -66965,10 +52663,10 @@ public bool startIndexSpecified { } } - /// The collection of user team associations contained within this page. + /// The collection of native styles contained within this page. /// [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] - public UserTeamAssociation[] results { + public NativeStyle[] results { get { return this.resultsField; } @@ -66979,461 +52677,692 @@ public UserTeamAssociation[] results { } - /// Represents the actions that can be performed on UserTeamAssociation objects. + /// Represents an action that can be performed on native styles. /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(DeleteUserTeamAssociations))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ArchiveNativeStyles))] [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public abstract partial class UserTeamAssociationAction { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public abstract partial class NativeStyleAction { } - /// Action to delete the association between a User and a Team. + /// Action to archive native styles. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class DeleteUserTeamAssociations : UserTeamAssociationAction { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class ArchiveNativeStyles : NativeStyleAction { } [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public interface UserTeamAssociationServiceInterfaceChannel : Google.Api.Ads.AdManager.v201808.UserTeamAssociationServiceInterface, System.ServiceModel.IClientChannel + public interface NativeStyleServiceInterfaceChannel : Google.Api.Ads.AdManager.v201908.NativeStyleServiceInterface, 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.

+ /// Provides methods for creating and retrieving NativeStyle objects. /// [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() { + public partial class NativeStyleService : AdManagerSoapClient, INativeStyleService { + /// Creates a new instance of the class. + /// + public NativeStyleService() { } - /// Creates a new instance of the - /// class. - public UserTeamAssociationService(string endpointConfigurationName) + /// Creates a new instance of the class. + /// + public NativeStyleService(string endpointConfigurationName) : base(endpointConfigurationName) { } - /// Creates a new instance of the - /// class. - public UserTeamAssociationService(string endpointConfigurationName, string remoteAddress) + /// Creates a new instance of the class. + /// + public NativeStyleService(string endpointConfigurationName, string remoteAddress) : base(endpointConfigurationName, remoteAddress) { } - /// Creates a new instance of the - /// class. - public UserTeamAssociationService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) + /// Creates a new instance of the class. + /// + public NativeStyleService(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) + /// Creates a new instance of the class. + /// + public NativeStyleService(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.v201808.UserTeamAssociationServiceInterface.createUserTeamAssociations(Wrappers.UserTeamAssociationService.createUserTeamAssociationsRequest request) { - return base.Channel.createUserTeamAssociations(request); + Wrappers.NativeStyleService.createNativeStylesResponse Google.Api.Ads.AdManager.v201908.NativeStyleServiceInterface.createNativeStyles(Wrappers.NativeStyleService.createNativeStylesRequest request) { + return base.Channel.createNativeStyles(request); } - /// Creates new UserTeamAssociation objects. - /// the user team associations to create - /// the created user team associations with their IDs filled in - public virtual Google.Api.Ads.AdManager.v201808.UserTeamAssociation[] createUserTeamAssociations(Google.Api.Ads.AdManager.v201808.UserTeamAssociation[] userTeamAssociations) { - Wrappers.UserTeamAssociationService.createUserTeamAssociationsRequest inValue = new Wrappers.UserTeamAssociationService.createUserTeamAssociationsRequest(); - inValue.userTeamAssociations = userTeamAssociations; - Wrappers.UserTeamAssociationService.createUserTeamAssociationsResponse retVal = ((Google.Api.Ads.AdManager.v201808.UserTeamAssociationServiceInterface)(this)).createUserTeamAssociations(inValue); + /// Creates new NativeStyle objects. + /// the native styles to create + /// the created native styles with their IDs filled in + public virtual Google.Api.Ads.AdManager.v201908.NativeStyle[] createNativeStyles(Google.Api.Ads.AdManager.v201908.NativeStyle[] nativeStyles) { + Wrappers.NativeStyleService.createNativeStylesRequest inValue = new Wrappers.NativeStyleService.createNativeStylesRequest(); + inValue.nativeStyles = nativeStyles; + Wrappers.NativeStyleService.createNativeStylesResponse retVal = ((Google.Api.Ads.AdManager.v201908.NativeStyleServiceInterface)(this)).createNativeStyles(inValue); return retVal.rval; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201808.UserTeamAssociationServiceInterface.createUserTeamAssociationsAsync(Wrappers.UserTeamAssociationService.createUserTeamAssociationsRequest request) { - return base.Channel.createUserTeamAssociationsAsync(request); + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201908.NativeStyleServiceInterface.createNativeStylesAsync(Wrappers.NativeStyleService.createNativeStylesRequest request) { + return base.Channel.createNativeStylesAsync(request); } - public virtual System.Threading.Tasks.Task createUserTeamAssociationsAsync(Google.Api.Ads.AdManager.v201808.UserTeamAssociation[] userTeamAssociations) { - Wrappers.UserTeamAssociationService.createUserTeamAssociationsRequest inValue = new Wrappers.UserTeamAssociationService.createUserTeamAssociationsRequest(); - inValue.userTeamAssociations = userTeamAssociations; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201808.UserTeamAssociationServiceInterface)(this)).createUserTeamAssociationsAsync(inValue)).Result.rval); + public virtual System.Threading.Tasks.Task createNativeStylesAsync(Google.Api.Ads.AdManager.v201908.NativeStyle[] nativeStyles) { + Wrappers.NativeStyleService.createNativeStylesRequest inValue = new Wrappers.NativeStyleService.createNativeStylesRequest(); + inValue.nativeStyles = nativeStyles; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201908.NativeStyleServiceInterface)(this)).createNativeStylesAsync(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
+ /// 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
///
a Publisher Query Language statement used to - /// filter a set of user team associations - /// the user team associations that match the given filter - public virtual Google.Api.Ads.AdManager.v201808.UserTeamAssociationPage getUserTeamAssociationsByStatement(Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.getUserTeamAssociationsByStatement(filterStatement); + /// filter a set of native styles. + /// the native styles that match the given filter + public virtual Google.Api.Ads.AdManager.v201908.NativeStylePage getNativeStylesByStatement(Google.Api.Ads.AdManager.v201908.Statement filterStatement) { + return base.Channel.getNativeStylesByStatement(filterStatement); } - public virtual System.Threading.Tasks.Task getUserTeamAssociationsByStatementAsync(Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.getUserTeamAssociationsByStatementAsync(filterStatement); + public virtual System.Threading.Tasks.Task getNativeStylesByStatementAsync(Google.Api.Ads.AdManager.v201908.Statement filterStatement) { + return base.Channel.getNativeStylesByStatementAsync(filterStatement); } - /// Performs actions on UserTeamAssociation - /// objects that match the given Statement#query. - /// the action to perform - /// a Publisher Query Language statement used to filter a - /// set of user team associations + /// Performs actions on native styles that match the given + /// Statement. + /// the action to perform + /// a Publisher Query Language statement to filter a + /// set of native styles /// the result of the action performed - public virtual Google.Api.Ads.AdManager.v201808.UpdateResult performUserTeamAssociationAction(Google.Api.Ads.AdManager.v201808.UserTeamAssociationAction userTeamAssociationAction, Google.Api.Ads.AdManager.v201808.Statement statement) { - return base.Channel.performUserTeamAssociationAction(userTeamAssociationAction, statement); + public virtual Google.Api.Ads.AdManager.v201908.UpdateResult performNativeStyleAction(Google.Api.Ads.AdManager.v201908.NativeStyleAction nativeStyleAction, Google.Api.Ads.AdManager.v201908.Statement filterStatement) { + return base.Channel.performNativeStyleAction(nativeStyleAction, filterStatement); } - public virtual System.Threading.Tasks.Task performUserTeamAssociationActionAsync(Google.Api.Ads.AdManager.v201808.UserTeamAssociationAction userTeamAssociationAction, Google.Api.Ads.AdManager.v201808.Statement statement) { - return base.Channel.performUserTeamAssociationActionAsync(userTeamAssociationAction, statement); + public virtual System.Threading.Tasks.Task performNativeStyleActionAsync(Google.Api.Ads.AdManager.v201908.NativeStyleAction nativeStyleAction, Google.Api.Ads.AdManager.v201908.Statement filterStatement) { + return base.Channel.performNativeStyleActionAsync(nativeStyleAction, filterStatement); } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.UserTeamAssociationService.updateUserTeamAssociationsResponse Google.Api.Ads.AdManager.v201808.UserTeamAssociationServiceInterface.updateUserTeamAssociations(Wrappers.UserTeamAssociationService.updateUserTeamAssociationsRequest request) { - return base.Channel.updateUserTeamAssociations(request); + Wrappers.NativeStyleService.updateNativeStylesResponse Google.Api.Ads.AdManager.v201908.NativeStyleServiceInterface.updateNativeStyles(Wrappers.NativeStyleService.updateNativeStylesRequest request) { + return base.Channel.updateNativeStyles(request); } - /// Updates the specified UserTeamAssociation - /// objects. - /// the user team associations to update - /// the updated user team associations - public virtual Google.Api.Ads.AdManager.v201808.UserTeamAssociation[] updateUserTeamAssociations(Google.Api.Ads.AdManager.v201808.UserTeamAssociation[] userTeamAssociations) { - Wrappers.UserTeamAssociationService.updateUserTeamAssociationsRequest inValue = new Wrappers.UserTeamAssociationService.updateUserTeamAssociationsRequest(); - inValue.userTeamAssociations = userTeamAssociations; - Wrappers.UserTeamAssociationService.updateUserTeamAssociationsResponse retVal = ((Google.Api.Ads.AdManager.v201808.UserTeamAssociationServiceInterface)(this)).updateUserTeamAssociations(inValue); + /// Updates the specified NativeStyle objects. + /// the native styles to be updated + /// the updated native styles + public virtual Google.Api.Ads.AdManager.v201908.NativeStyle[] updateNativeStyles(Google.Api.Ads.AdManager.v201908.NativeStyle[] nativeStyles) { + Wrappers.NativeStyleService.updateNativeStylesRequest inValue = new Wrappers.NativeStyleService.updateNativeStylesRequest(); + inValue.nativeStyles = nativeStyles; + Wrappers.NativeStyleService.updateNativeStylesResponse retVal = ((Google.Api.Ads.AdManager.v201908.NativeStyleServiceInterface)(this)).updateNativeStyles(inValue); return retVal.rval; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201808.UserTeamAssociationServiceInterface.updateUserTeamAssociationsAsync(Wrappers.UserTeamAssociationService.updateUserTeamAssociationsRequest request) { - return base.Channel.updateUserTeamAssociationsAsync(request); + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201908.NativeStyleServiceInterface.updateNativeStylesAsync(Wrappers.NativeStyleService.updateNativeStylesRequest request) { + return base.Channel.updateNativeStylesAsync(request); } - public virtual System.Threading.Tasks.Task updateUserTeamAssociationsAsync(Google.Api.Ads.AdManager.v201808.UserTeamAssociation[] userTeamAssociations) { - Wrappers.UserTeamAssociationService.updateUserTeamAssociationsRequest inValue = new Wrappers.UserTeamAssociationService.updateUserTeamAssociationsRequest(); - inValue.userTeamAssociations = userTeamAssociations; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201808.UserTeamAssociationServiceInterface)(this)).updateUserTeamAssociationsAsync(inValue)).Result.rval); + public virtual System.Threading.Tasks.Task updateNativeStylesAsync(Google.Api.Ads.AdManager.v201908.NativeStyle[] nativeStyles) { + Wrappers.NativeStyleService.updateNativeStylesRequest inValue = new Wrappers.NativeStyleService.updateNativeStylesRequest(); + inValue.nativeStyles = nativeStyles; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201908.NativeStyleServiceInterface)(this)).updateNativeStylesAsync(inValue)).Result.rval); } } - namespace Wrappers.WorkflowRequestService + 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 = "updateTrafficAdjustments", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201908", IsWrapped = true)] + public partial class updateTrafficAdjustmentsRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("adjustments")] + public Google.Api.Ads.AdManager.v201908.TrafficForecastAdjustment[] adjustments; + + /// Creates a new instance of the class. + public updateTrafficAdjustmentsRequest() { + } + + /// Creates a new instance of the class. + public updateTrafficAdjustmentsRequest(Google.Api.Ads.AdManager.v201908.TrafficForecastAdjustment[] adjustments) { + this.adjustments = adjustments; + } + } + + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "updateTrafficAdjustmentsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201908", IsWrapped = true)] + public partial class updateTrafficAdjustmentsResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("rval")] + public Google.Api.Ads.AdManager.v201908.TrafficForecastAdjustment[] rval; + + /// Creates a new instance of the class. + public updateTrafficAdjustmentsResponse() { + } + + /// Creates a new instance of the class. + public updateTrafficAdjustmentsResponse(Google.Api.Ads.AdManager.v201908.TrafficForecastAdjustment[] rval) { + this.rval = rval; + } + } } - /// A WorkflowRequest represents a workflow action unit that requires - /// external or manual interference. + /// Represents a TrafficForecastAdjustmentSegment + /// whose BasisType is BasisType#HISTORICAL. /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(WorkflowExternalConditionRequest))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(WorkflowApprovalRequest))] [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public abstract partial class WorkflowRequest { - private long idField; - - private bool idFieldSpecified; - - private string workflowRuleNameField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class HistoricalAdjustment { + private DateRange targetDateRangeField; - private long entityIdField; + private DateRange referenceDateRangeField; - private bool entityIdFieldSpecified; + private long milliPercentMultiplierField; - private WorkflowEntityType entityTypeField; + private bool milliPercentMultiplierFieldSpecified; - private bool entityTypeFieldSpecified; - - private WorkflowRequestType typeField; + /// The future date range targeted for the adjustment. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public DateRange targetDateRange { + get { + return this.targetDateRangeField; + } + set { + this.targetDateRangeField = value; + } + } - private bool typeFieldSpecified; + /// The historical date range intended to be used as the reference. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public DateRange referenceDateRange { + get { + return this.referenceDateRangeField; + } + set { + this.referenceDateRangeField = value; + } + } - /// The unique ID of the workflow request. This attribute is readonly and is - /// assigned by Google. + /// The multiplier intended to be applied to the historical data in milli-percent. + /// For example, in order to represent 100% (which translates to no traffic + /// adjustment), this value should be 100000. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public long id { + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public long milliPercentMultiplier { get { - return this.idField; + return this.milliPercentMultiplierField; } set { - this.idField = value; - this.idSpecified = true; + this.milliPercentMultiplierField = value; + this.milliPercentMultiplierSpecified = 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 milliPercentMultiplierSpecified { get { - return this.idFieldSpecified; + return this.milliPercentMultiplierFieldSpecified; } set { - this.idFieldSpecified = value; + this.milliPercentMultiplierFieldSpecified = 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.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public Date startDate { + get { + return this.startDateField; + } + set { + this.startDateField = value; } } - /// The name of the workflow rule that generated the request. This attribute is - /// readonly and is assigned by Google. + /// 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 string workflowRuleName { + public Date endDate { get { - return this.workflowRuleNameField; + return this.endDateField; } set { - this.workflowRuleNameField = value; + this.endDateField = value; } } + } + + + /// Represents a time series data. The timeSeriesValues should contain + /// of a list value accordingly to the specified PeriodType + /// for the timeSeriesDateRange. The order of the values in this list + /// should be sorted by its chronological order. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class TimeSeries { + private DateRange timeSeriesDateRangeField; + + private long[] timeSeriesValuesField; - /// The ID of entity associated to this workflow request. + private PeriodType valuePeriodTypeField; + + private bool valuePeriodTypeFieldSpecified; + + /// The date range of the time series. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public long entityId { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public DateRange timeSeriesDateRange { get { - return this.entityIdField; + return this.timeSeriesDateRangeField; } set { - this.entityIdField = value; - this.entityIdSpecified = true; + this.timeSeriesDateRangeField = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool entityIdSpecified { + /// The traffic volume values for the timeSeriesDateRange.

The list + /// will contain a single value if valuePeriodType is PeriodType.CUSTOM, and will contain a value for each day in + /// timeSeriesDateRange if valuePeriodType is PeriodType.DAILY.

+ ///
+ [System.Xml.Serialization.XmlElementAttribute("timeSeriesValues", Order = 1)] + public long[] timeSeriesValues { get { - return this.entityIdFieldSpecified; + return this.timeSeriesValuesField; } set { - this.entityIdFieldSpecified = value; + this.timeSeriesValuesField = value; } } - /// The WorkflowEntityType associated to this - /// workflow request. + /// The period of each time series value (e.g. daily or custom). /// - [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public WorkflowEntityType entityType { + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public PeriodType valuePeriodType { get { - return this.entityTypeField; + return this.valuePeriodTypeField; } set { - this.entityTypeField = value; - this.entityTypeSpecified = true; + this.valuePeriodTypeField = value; + this.valuePeriodTypeSpecified = 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 entityTypeSpecified { + public bool valuePeriodTypeSpecified { get { - return this.entityTypeFieldSpecified; + return this.valuePeriodTypeFieldSpecified; } set { - this.entityTypeFieldSpecified = value; + this.valuePeriodTypeFieldSpecified = value; } } + } - /// The WorkflowRequestType of this workflow - /// request. This attribute is readonly and is assigned by Google. + + /// The period type of an adjustment time series. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum PeriodType { + /// The value returned if the actual value is not exposed by the requested API + /// version. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public WorkflowRequestType type { + UNKNOWN = 0, + /// The period is defined in a daily granularity. + /// + DAILY = 1, + /// The period is customized.

For TrafficForecastAdjustmentSegments, + /// the full date range is summarized by a single value.

+ ///
+ CUSTOM = 2, + } + + + /// Represents a unique segment of a traffic forecast adjustment. Each TrafficForecastAdjustmentSegment targets a range of dates in the + /// future to which the adjustment applies. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class TrafficForecastAdjustmentSegment { + private BasisType basisTypeField; + + private bool basisTypeFieldSpecified; + + private TimeSeries adjustmentTimeSeriesField; + + private HistoricalAdjustment historicalAdjustmentField; + + /// The basis type of the adjustment. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public BasisType basisType { get { - return this.typeField; + return this.basisTypeField; } set { - this.typeField = value; - this.typeSpecified = true; + this.basisTypeField = value; + this.basisTypeSpecified = 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 basisTypeSpecified { + get { + return this.basisTypeFieldSpecified; + } + set { + this.basisTypeFieldSpecified = value; + } + } + + /// The traffic volume of the adjustment. This field should be set if + /// basisType is BasisType.ABSOLUTE and null if BasisType.HISTORICAL. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public TimeSeries adjustmentTimeSeries { + get { + return this.adjustmentTimeSeriesField; + } + set { + this.adjustmentTimeSeriesField = value; + } + } + + /// The content of the adjustment which references historical data. This field + /// should be set if basisType is BasisType.HISTORICAL and null if BasisType.ABSOLUTE. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public HistoricalAdjustment historicalAdjustment { get { - return this.typeFieldSpecified; + return this.historicalAdjustmentField; } set { - this.typeFieldSpecified = value; + this.historicalAdjustmentField = value; } } } - /// The entity types that workflows can be applied to. + /// Specifies the basis-type of the adjustment segment. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum WorkflowEntityType { - /// Represents a Proposal. - /// - PROPOSAL = 0, + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum BasisType { /// The value returned if the actual value is not exposed by the requested API /// version. /// - UNKNOWN = 1, - } - - - /// Types of a workflow request. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum WorkflowRequestType { - /// This is a request for an approval action. Either by a frontend user or an API - /// request. + UNKNOWN = 0, + /// The adjustment segment has no basis to reference and is manually defined for the + /// future dates. /// - WORKFLOW_APPROVAL_REQUEST = 0, - /// This is an external condition request. It is pending an external system to - /// determine whether an action should trigger or not. + ABSOLUTE = 1, + /// The adjustment segment has a historical basis to reference for its forecast + /// adjustment. /// - WORKFLOW_EXTERNAL_CONDITION_REQUEST = 1, - UNKNOWN = 2, + HISTORICAL = 2, } - /// A WorkflowExternalConditionRequest represents a workflow condition - /// that requires external system to determine the result. + /// Represents the filter criteria that defines the slice of inventory for the + /// associated TrafficTimeSeries. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class WorkflowExternalConditionRequest : WorkflowRequest { - private WorkflowEvaluationStatus statusField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class TrafficTimeSeriesFilterCriteria { + private Targeting targetingField; - private bool statusFieldSpecified; + private AdUnitSize[] adUnitSizesField; - /// The status of the WorkflowExternalConditionRequest. This attribute - /// is readonly. + /// Specifies the targeting of the traffic time series. Only ad unit, placement, + /// country, and video content are supported at this time.

For ad unit and + /// placement, use InventoryTargeting/ All targeted + /// ad units must have AdUnitTargeting#includeDescendants + /// set to true.

For country, use GeoTargeting. Location#type + /// must be set to and other location types such as city, state, and + /// county are not supported.

For video content, use ContentTargeting. ContentTargeting#targetedContentIds + /// is the only field supported.

Exclusion targetings are not supported for + /// any of the fields above.

///
[System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public WorkflowEvaluationStatus status { + public Targeting targeting { get { - return this.statusField; + return this.targetingField; } set { - this.statusField = value; - this.statusSpecified = true; + this.targetingField = value; } } - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool statusSpecified { + /// A set of requested ad sizes that are included in the time series. + /// + [System.Xml.Serialization.XmlElementAttribute("adUnitSizes", Order = 1)] + public AdUnitSize[] adUnitSizes { get { - return this.statusFieldSpecified; + return this.adUnitSizesField; } set { - this.statusFieldSpecified = value; + this.adUnitSizesField = value; } } } - /// A WorkflowApprovalRequest represents a workflow action unit that - /// requires user approval. + /// Represents a set of TrafficForecastAdjustmentSegment + /// assigned to a slice of inventory defined by a TrafficTimeSeriesFilterCriteria. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class WorkflowApprovalRequest : WorkflowRequest { - private WorkflowApprovalRequestStatus statusField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class TrafficForecastAdjustment { + private long idField; - private bool statusFieldSpecified; + private bool idFieldSpecified; - /// The status of the WorkflowApprovalRequest. This attribute is - /// readonly. + private TrafficTimeSeriesFilterCriteria filterCriteriaField; + + private TrafficForecastAdjustmentSegment[] forecastAdjustmentSegmentsField; + + private DateTime lastModifiedDateTimeField; + + /// The unique ID of the TrafficForecastAdjustment. This attribute + /// is read-only. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public WorkflowApprovalRequestStatus 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; + } + } + + /// Filter criteria defining the slice of inventory to which the adjustment is + /// assigned. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public TrafficTimeSeriesFilterCriteria filterCriteria { + get { + return this.filterCriteriaField; + } + set { + this.filterCriteriaField = value; + } + } + + /// Each adjustment segment is a forecast adjustment targeting a continuous date + /// range. + /// + [System.Xml.Serialization.XmlElementAttribute("forecastAdjustmentSegments", Order = 2)] + public TrafficForecastAdjustmentSegment[] forecastAdjustmentSegments { + get { + return this.forecastAdjustmentSegmentsField; + } + set { + this.forecastAdjustmentSegmentsField = value; + } + } + + /// The DateTime this TrafficForecastAdjustment was last + /// modified. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 3)] + public DateTime lastModifiedDateTime { + get { + return this.lastModifiedDateTimeField; + } + set { + this.lastModifiedDateTimeField = value; } } } - /// Captures a page of WorkflowRequest objects. + /// A page of TrafficForecastAdjustmentDto objects. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class WorkflowRequestPage { - private WorkflowRequest[] resultsField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class TrafficForecastAdjustmentPage { + private int totalResultSetSizeField; + + private bool totalResultSetSizeFieldSpecified; private int startIndexField; private bool startIndexFieldSpecified; - private int totalResultSetSizeField; - - private bool totalResultSetSizeFieldSpecified; + private TrafficForecastAdjustment[] resultsField; - /// The collection of workflow requests contained within this page. + /// The size of the total result set to which this page belongs. /// - [System.Xml.Serialization.XmlElementAttribute("results", Order = 0)] - public WorkflowRequest[] results { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public int totalResultSetSize { get { - return this.resultsField; + return this.totalResultSetSizeField; } set { - this.resultsField = value; + 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; } } @@ -67463,50 +53392,36 @@ public bool startIndexSpecified { } } - /// The size of the total result set to which this page belongs. + /// The collection of traffic forecast adjustment contained within this page. /// - [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 { + [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] + public TrafficForecastAdjustment[] results { get { - return this.totalResultSetSizeFieldSpecified; + return this.resultsField; } set { - this.totalResultSetSizeFieldSpecified = value; + this.resultsField = value; } } } - /// Lists errors associated with workflow requests. + /// Lists all errors associated with adjustments. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class WorkflowRequestError : ApiError { - private WorkflowRequestErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class AdjustmentError : ApiError { + private AdjustmentErrorReason reasonField; private bool reasonFieldSpecified; /// The error reason represented by an enum. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public WorkflowRequestErrorReason reason { + public AdjustmentErrorReason reason { get { return this.reasonField; } @@ -67531,686 +53446,751 @@ public bool reasonSpecified { } - /// The reasons for the target error. - /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "WorkflowRequestError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum WorkflowRequestErrorReason { - /// The request has already been processed. - /// - REQUEST_ALREADY_PROCESSED = 0, - /// The workflow is not in progress. - /// - WORKFLOW_NOT_IN_PROGRESS = 1, - /// The request ID is invalid. - /// - INVALID_REQUEST_ID = 2, - /// The action could not be performed on a request of that type. - /// - INVALID_ACTION = 3, + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AdjustmentError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum AdjustmentErrorReason { + START_DATE_TIME_IS_IN_PAST = 0, + END_DATE_TIME_NOT_AFTER_START_TIME = 1, + END_DATE_TIME_TOO_LATE = 2, + HISTORICAL_DATE_RANGE_INVALID = 3, + HISTORICAL_START_DATE_TIME_IS_TOO_FAR_IN_PAST = 4, + HISTORICAL_START_DATE_TIME_IS_BEFORE_CREATION_OF_INVENTORY_UNIT = 5, + HISTORICAL_END_DATE_TIME_IS_NOT_IN_PAST = 6, + HISTORICAL_END_DATE_TIME_NOT_AFTER_HISTORICAL_START_TIME = 7, + HISTORICAL_DATE_RANGE_LENGTH_DOES_NOT_MATCH_FUTURE_DATE_RANGE_LENGTH = 8, + ADJUSTMENT_ALREADY_EXISTS_FOR_AD_UNIT_IN_DATE_RANGE = 9, + INVALID_IMPRESSION_VOLUME = 10, + OVERRIDE_SIZE_SETS_MUST_BE_UNIQUE = 11, + OVERRIDE_SIZE_SET_SIZES_MUST_HAVE_THE_SAME_ENV_TYPE = 12, + OVERRIDE_SIZE_SET_SIZES_MUST_MATCH_INVENTORY = 13, + INVALID_INVENTORY_UNIT_ID = 14, + VIOLATES_CONSTRAINTS_OF_OVERLAPPING_ENTRIES = 15, + INVALID_ADJUSTMENT_UPLOAD = 16, + FUTURE_DATE_RANGE_MUST_BE_IN_WEEK_INCREMENTS = 17, + BULK_UPLOAD_ADJUSTMENT_LIMIT_REACHED = 18, + WEEKLY_MANUAL_ADJUSTMENTS_NOT_ALLOWED = 19, + TARGETING_OR_INVENTORY_UNIT_REQUIRED = 20, + CANNOT_CHANGE_ADJUSTMENT_TARGET_TYPE = 21, + OVERRIDES_NOT_ALLOWED_WITH_TARGETING = 22, + INVALID_TARGETING_EXPRESSION = 23, + ADJUSTMENT_NAME_MUST_BE_UNIQUE = 24, + END_DATE_TIME_IS_IN_PAST = 25, + HISTORICAL_TARGETING_REQUIRED = 26, + INVALID_HISTORICAL_TARGETING = 27, + AD_UNIT_REQUIRED = 28, + TARGETING_REQUIRED = 29, /// The value returned if the actual value is not exposed by the requested API /// version. /// - UNKNOWN = 5, + UNKNOWN = 30, } [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", ConfigurationName = "Google.Api.Ads.AdManager.v201808.WorkflowRequestServiceInterface")] - public interface WorkflowRequestServiceInterface + [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", ConfigurationName = "Google.Api.Ads.AdManager.v201908.AdjustmentServiceInterface")] + public interface AdjustmentServiceInterface { [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201908.ApiException), Action = "", Name = "ApiExceptionFault")] [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v201808.WorkflowRequestPage getWorkflowRequestsByStatement(Google.Api.Ads.AdManager.v201808.Statement filterStatement); + Google.Api.Ads.AdManager.v201908.TrafficForecastAdjustmentPage getTrafficAdjustmentsByStatement(Google.Api.Ads.AdManager.v201908.Statement filterStatement); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getWorkflowRequestsByStatementAsync(Google.Api.Ads.AdManager.v201808.Statement filterStatement); + System.Threading.Tasks.Task getTrafficAdjustmentsByStatementAsync(Google.Api.Ads.AdManager.v201908.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.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201908.ApiException), Action = "", Name = "ApiExceptionFault")] [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v201808.UpdateResult performWorkflowRequestAction(Google.Api.Ads.AdManager.v201808.WorkflowRequestAction action, Google.Api.Ads.AdManager.v201808.Statement filterStatement); + Wrappers.AdjustmentService.updateTrafficAdjustmentsResponse updateTrafficAdjustments(Wrappers.AdjustmentService.updateTrafficAdjustmentsRequest request); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task performWorkflowRequestActionAsync(Google.Api.Ads.AdManager.v201808.WorkflowRequestAction action, Google.Api.Ads.AdManager.v201808.Statement filterStatement); + System.Threading.Tasks.Task updateTrafficAdjustmentsAsync(Wrappers.AdjustmentService.updateTrafficAdjustmentsRequest request); } - /// Represents the actions that can be performed on WorkflowRequest objects. - /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(RejectWorkflowApprovalRequests))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(TriggerWorkflowExternalConditionRequests))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(SkipWorkflowExternalConditionRequests))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ApproveWorkflowApprovalRequests))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public abstract partial class WorkflowRequestAction { + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + public interface AdjustmentServiceInterfaceChannel : Google.Api.Ads.AdManager.v201908.AdjustmentServiceInterface, System.ServiceModel.IClientChannel + { } - /// The action used to reject workflow approval - /// requests. + /// Provides methods for creating, updating and retrieving Adjustment objects.

Adjustments are used to adjust a + /// particular ad unit for forecasting. For, example you might have a manual + /// adjustment for an inventory unit that will be seeing a spike for a movie + /// premiere coming up. Or you may have a historical adjustment to tell forecasting + /// that you have a seasonal trend coming up and you want Christmas this year to + /// look like Christmas last year plus five percent.

///
- [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class RejectWorkflowApprovalRequests : WorkflowRequestAction { - private string commentField; + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + public partial class AdjustmentService : AdManagerSoapClient, IAdjustmentService { + /// Creates a new instance of the class. + /// + public AdjustmentService() { + } - /// The comment of the RejectWorkflowApprovalRequests action. - /// This field is optional. + /// Creates a new instance of the class. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public string comment { - get { - return this.commentField; - } - set { - this.commentField = value; - } + public AdjustmentService(string endpointConfigurationName) + : base(endpointConfigurationName) { } - } + /// Creates a new instance of the class. + /// + public AdjustmentService(string endpointConfigurationName, string remoteAddress) + : base(endpointConfigurationName, remoteAddress) { + } - /// The action to trigger workflow - /// external condition requests. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class TriggerWorkflowExternalConditionRequests : WorkflowRequestAction { - } + /// Creates a new instance of the class. + /// + public AdjustmentService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) + : base(endpointConfigurationName, remoteAddress) { + } + + /// Creates a new instance of the class. + /// + public AdjustmentService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) + : base(binding, remoteAddress) { + } + + /// Returns a TrafficForecastAdjustmentPage of all TrafficForecastAdjustments that satisfy the + /// given Statement#query. The following fields are + /// supported for filtering: + /// + ///
PQL Property Object Property
id TrafficForecastAdjustment#id
lastModifiedDateTime TrafficForecastAdjustment#lastModifiedDateTime
+ ///
+ public virtual Google.Api.Ads.AdManager.v201908.TrafficForecastAdjustmentPage getTrafficAdjustmentsByStatement(Google.Api.Ads.AdManager.v201908.Statement filterStatement) { + return base.Channel.getTrafficAdjustmentsByStatement(filterStatement); + } + public virtual System.Threading.Tasks.Task getTrafficAdjustmentsByStatementAsync(Google.Api.Ads.AdManager.v201908.Statement filterStatement) { + return base.Channel.getTrafficAdjustmentsByStatementAsync(filterStatement); + } - /// The action to skip workflow external - /// condition requests. Doing so means that the rule did not trigger. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class SkipWorkflowExternalConditionRequests : WorkflowRequestAction { - } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + Wrappers.AdjustmentService.updateTrafficAdjustmentsResponse Google.Api.Ads.AdManager.v201908.AdjustmentServiceInterface.updateTrafficAdjustments(Wrappers.AdjustmentService.updateTrafficAdjustmentsRequest request) { + return base.Channel.updateTrafficAdjustments(request); + } + + /// Saves all of the provided traffic adjustments.

If there is already a TrafficForecastAdjustment saved for the + /// same TrafficTimeSeriesFilterCriteria, the pre-existing TrafficForecastAdjustment will be + /// completely replaced with the submitted TrafficForecastAdjustment.

This + /// method is only available when MAKE_TRAFFIC_FORECAST_ADJUSTMENTS_IN_BULK is + /// enabled in the global settings on your network.

+ ///
+ public virtual Google.Api.Ads.AdManager.v201908.TrafficForecastAdjustment[] updateTrafficAdjustments(Google.Api.Ads.AdManager.v201908.TrafficForecastAdjustment[] adjustments) { + Wrappers.AdjustmentService.updateTrafficAdjustmentsRequest inValue = new Wrappers.AdjustmentService.updateTrafficAdjustmentsRequest(); + inValue.adjustments = adjustments; + Wrappers.AdjustmentService.updateTrafficAdjustmentsResponse retVal = ((Google.Api.Ads.AdManager.v201908.AdjustmentServiceInterface)(this)).updateTrafficAdjustments(inValue); + return retVal.rval; + } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201908.AdjustmentServiceInterface.updateTrafficAdjustmentsAsync(Wrappers.AdjustmentService.updateTrafficAdjustmentsRequest request) { + return base.Channel.updateTrafficAdjustmentsAsync(request); + } - /// The action used to approve workflow approval - /// requests. + public virtual System.Threading.Tasks.Task updateTrafficAdjustmentsAsync(Google.Api.Ads.AdManager.v201908.TrafficForecastAdjustment[] adjustments) { + Wrappers.AdjustmentService.updateTrafficAdjustmentsRequest inValue = new Wrappers.AdjustmentService.updateTrafficAdjustmentsRequest(); + inValue.adjustments = adjustments; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201908.AdjustmentServiceInterface)(this)).updateTrafficAdjustmentsAsync(inValue)).Result.rval); + } + } + namespace Wrappers.CmsMetadataService + { + } + /// Key associated with a piece of content from a publisher's CMS. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ApproveWorkflowApprovalRequests : WorkflowRequestAction { - private string commentField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class CmsMetadataKey { + private long idField; + + private bool idFieldSpecified; - /// The comment of the ApproveWorkflowApprovalRequests - /// action. This field is optional. + private string nameField; + + /// The ID of this CMS metadata key. This field is read-only and provided by Google. /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public string comment { + public long id { get { - return this.commentField; + return this.idField; } set { - this.commentField = value; + 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; + } + } - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public interface WorkflowRequestServiceInterfaceChannel : Google.Api.Ads.AdManager.v201808.WorkflowRequestServiceInterface, System.ServiceModel.IClientChannel - { + /// The key of a key-value pair. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public string name { + get { + return this.nameField; + } + set { + this.nameField = value; + } + } } - /// Provides methods to retrieve and perform actions on WorkflowRequest objects

To use this service, you - /// need to have the new sales management solution enabled on your network. If you - /// do not see a "Sales" tab in DoubleClick for - /// Publishers (DFP), you will not be able to use this service.

+ /// Captures a page of CMS metadata key objects. /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public partial class WorkflowRequestService : AdManagerSoapClient, IWorkflowRequestService { - /// Creates a new instance of the - /// class. - public WorkflowRequestService() { - } - - /// Creates a new instance of the - /// class. - public WorkflowRequestService(string endpointConfigurationName) - : base(endpointConfigurationName) { - } + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class CmsMetadataKeyPage { + private int totalResultSetSizeField; - /// Creates a new instance of the - /// class. - public WorkflowRequestService(string endpointConfigurationName, string remoteAddress) - : base(endpointConfigurationName, remoteAddress) { - } + private bool totalResultSetSizeFieldSpecified; - /// Creates a new instance of the - /// class. - public WorkflowRequestService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) - : base(endpointConfigurationName, remoteAddress) { - } + private int startIndexField; - /// Creates a new instance of the - /// class. - public WorkflowRequestService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) - : base(binding, remoteAddress) { - } + private bool startIndexFieldSpecified; - /// Gets a list of WorkflowRequest objects that - /// satisfy the given Statement#query. The following - /// fields are supported for filtering: - /// - /// - /// - /// - /// - /// - ///
PQL - /// Property Object Property
id WorkflowRequest#id
workflowRuleName WorkflowRequest#workflowRuleName
entityType WorkflowRequest#entityType
entityId WorkflowRequest#entityId
approvalStatus WorkflowApprovalRequest#status
conditionStatus WorkflowExternalConditionRequest#status
type WorkflowRequest#type

The - /// type filter is required in v201705 and earlier.

- ///
a Publisher Query Language statement used to - /// filter a set of workflow requests belonging to an entity - /// the workflow requests that match the given filter - public virtual Google.Api.Ads.AdManager.v201808.WorkflowRequestPage getWorkflowRequestsByStatement(Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.getWorkflowRequestsByStatement(filterStatement); - } + private CmsMetadataKey[] resultsField; - public virtual System.Threading.Tasks.Task getWorkflowRequestsByStatementAsync(Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.getWorkflowRequestsByStatementAsync(filterStatement); + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public int totalResultSetSize { + get { + return this.totalResultSetSizeField; + } + set { + this.totalResultSetSizeField = value; + this.totalResultSetSizeSpecified = true; + } } - /// Perform actions on WorkflowRequest objects that - /// match the given Statement#query. - /// the action to perform - /// a Publisher Query Language statement used to - /// filter a set of workflow requests - /// the result of the action performed - public virtual Google.Api.Ads.AdManager.v201808.UpdateResult performWorkflowRequestAction(Google.Api.Ads.AdManager.v201808.WorkflowRequestAction action, Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.performWorkflowRequestAction(action, filterStatement); + /// 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; + } } - public virtual System.Threading.Tasks.Task performWorkflowRequestActionAsync(Google.Api.Ads.AdManager.v201808.WorkflowRequestAction action, Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.performWorkflowRequestActionAsync(action, filterStatement); + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public int startIndex { + get { + return this.startIndexField; + } + set { + this.startIndexField = value; + this.startIndexSpecified = true; + } } - } - namespace Wrappers.PackageService - { - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "createPackages", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201808", IsWrapped = true)] - public partial class createPackagesRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("packages")] - public Google.Api.Ads.AdManager.v201808.Package[] packages; - /// Creates a new instance of the - /// class. - public createPackagesRequest() { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool startIndexSpecified { + get { + return this.startIndexFieldSpecified; } - - /// Creates a new instance of the - /// class. - public createPackagesRequest(Google.Api.Ads.AdManager.v201808.Package[] packages) { - this.packages = packages; + set { + this.startIndexFieldSpecified = 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 = "createPackagesResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201808", IsWrapped = true)] - public partial class createPackagesResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v201808.Package[] rval; - - /// Creates a new instance of the - /// class. - public createPackagesResponse() { + [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] + public CmsMetadataKey[] results { + get { + return this.resultsField; } - - /// Creates a new instance of the - /// class. - public createPackagesResponse(Google.Api.Ads.AdManager.v201808.Package[] rval) { - this.rval = rval; + set { + this.resultsField = 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 = "updatePackages", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201808", IsWrapped = true)] - public partial class updatePackagesRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("packages")] - public Google.Api.Ads.AdManager.v201808.Package[] packages; + /// Errors associated with metadata merge specs. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class MetadataMergeSpecError : ApiError { + private MetadataMergeSpecErrorReason reasonField; - /// Creates a new instance of the - /// class. - public updatePackagesRequest() { - } + private bool reasonFieldSpecified; - /// Creates a new instance of the - /// class. - public updatePackagesRequest(Google.Api.Ads.AdManager.v201808.Package[] packages) { - this.packages = packages; + /// The error reason represented by an enum. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public MetadataMergeSpecErrorReason reason { + get { + return this.reasonField; + } + 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 = "updatePackagesResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201808", IsWrapped = true)] - public partial class updatePackagesResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v201808.Package[] rval; - - /// Creates a new instance of the - /// class. - public updatePackagesResponse() { + /// 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 updatePackagesResponse(Google.Api.Ads.AdManager.v201808.Package[] rval) { - this.rval = rval; + set { + this.reasonFieldSpecified = value; } } } - /// A Package represents a group of proposal line items which will be - /// sold together. + + + /// The reason of the error. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class Package { - private long idField; - - private bool idFieldSpecified; - - private long proposalIdField; - - private bool proposalIdFieldSpecified; + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "MetadataMergeSpecError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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. + /// + UNKNOWN = 8, + } - private long productPackageIdField; - private bool productPackageIdFieldSpecified; + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", ConfigurationName = "Google.Api.Ads.AdManager.v201908.CmsMetadataServiceInterface")] + public interface CmsMetadataServiceInterface + { + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201908.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v201908.CmsMetadataKeyPage getCmsMetadataKeysByStatement(Google.Api.Ads.AdManager.v201908.Statement statement); - private long rateCardIdField; + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task getCmsMetadataKeysByStatementAsync(Google.Api.Ads.AdManager.v201908.Statement statement); - private bool rateCardIdFieldSpecified; + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201908.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v201908.CmsMetadataValuePage getCmsMetadataValuesByStatement(Google.Api.Ads.AdManager.v201908.Statement statement); - private string nameField; + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task getCmsMetadataValuesByStatementAsync(Google.Api.Ads.AdManager.v201908.Statement statement); + } - private string commentsField; - private PackageStatus statusField; + /// Captures a page of CMS metadata value objects. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class CmsMetadataValuePage { + private int totalResultSetSizeField; - private bool statusFieldSpecified; + private bool totalResultSetSizeFieldSpecified; - private DateTime startDateTimeField; + private int startIndexField; - private DateTime endDateTimeField; + private bool startIndexFieldSpecified; - private DateTime lastModifiedDateTimeField; + private CmsMetadataValue[] resultsField; - /// The unique ID of the Package.

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

- ///
[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 unique ID of the Proposal, to which the - /// Package belongs.

This attribute is required for creation and - /// then is read-only.

- ///
[System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public long proposalId { + public int startIndex { get { - return this.proposalIdField; + return this.startIndexField; } set { - this.proposalIdField = value; - this.proposalIdSpecified = 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 proposalIdSpecified { + public bool startIndexSpecified { get { - return this.proposalIdFieldSpecified; + return this.startIndexFieldSpecified; } set { - this.proposalIdFieldSpecified = value; + this.startIndexFieldSpecified = value; } } - /// The unique ID of the ProductPackage, from which the - /// Package is created.

This attribute is required for creation and - /// then is read-only.

- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public long productPackageId { + [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] + public CmsMetadataValue[] results { get { - return this.productPackageIdField; + return this.resultsField; } set { - this.productPackageIdField = value; - this.productPackageIdSpecified = true; + this.resultsField = value; } } + } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool productPackageIdSpecified { - get { - return this.productPackageIdFieldSpecified; - } - set { - this.productPackageIdFieldSpecified = value; - } - } - /// The unique ID of the RateCard, based on which the - /// ProposalLineItem objects in the Package are priced. - ///

This attribute is required for creation of associated objects - /// and then is read-only.

+ /// Key value pair associated with a piece of content from a publisher's CMS. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class CmsMetadataValue { + private long cmsMetadataValueIdField; + + private bool cmsMetadataValueIdFieldSpecified; + + private string valueNameField; + + private CmsMetadataKey keyField; + + /// 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(Order = 3)] - public long rateCardId { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public long cmsMetadataValueId { get { - return this.rateCardIdField; + return this.cmsMetadataValueIdField; } set { - this.rateCardIdField = value; - this.rateCardIdSpecified = true; + this.cmsMetadataValueIdField = value; + this.cmsMetadataValueIdSpecified = 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 rateCardIdSpecified { + public bool cmsMetadataValueIdSpecified { get { - return this.rateCardIdFieldSpecified; + return this.cmsMetadataValueIdFieldSpecified; } set { - this.rateCardIdFieldSpecified = value; + this.cmsMetadataValueIdFieldSpecified = value; } } - /// The name of the Package which should be unique under the same Proposal.

This attribute is required and has a maximum - /// length of 255 characters.

+ /// The value of this key-value pair. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public string name { + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public string valueName { get { - return this.nameField; + return this.valueNameField; } set { - this.nameField = value; + this.valueNameField = value; } } - /// Provides any additional comments that may annotate the .

This - /// attribute is optional and has a maximum length of 65,535 characters.

- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 5)] - public string comments { + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public CmsMetadataKey key { get { - return this.commentsField; + return this.keyField; } set { - this.commentsField = value; + this.keyField = value; } } + } + + + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + public interface CmsMetadataServiceInterfaceChannel : Google.Api.Ads.AdManager.v201908.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() { + } - /// This field specifies the status of the Package, whether the ProposalLineItem objects belonging to the - /// Package have been created.

This attribute is read-only.

+ /// Creates a new instance of the class. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 6)] - public PackageStatus status { + public CmsMetadataService(string endpointConfigurationName) + : base(endpointConfigurationName) { + } + + /// Creates a new instance of the class. + /// + public CmsMetadataService(string endpointConfigurationName, string remoteAddress) + : base(endpointConfigurationName, 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 CmsMetadataService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) + : base(binding, remoteAddress) { + } + + /// 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
+ ///
+ public virtual Google.Api.Ads.AdManager.v201908.CmsMetadataKeyPage getCmsMetadataKeysByStatement(Google.Api.Ads.AdManager.v201908.Statement statement) { + return base.Channel.getCmsMetadataKeysByStatement(statement); + } + + public virtual System.Threading.Tasks.Task getCmsMetadataKeysByStatementAsync(Google.Api.Ads.AdManager.v201908.Statement statement) { + return base.Channel.getCmsMetadataKeysByStatementAsync(statement); + } + + /// 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
keyValueMemberContent Content IDs tagged with a CMS + /// metadata key-value
+ ///
+ public virtual Google.Api.Ads.AdManager.v201908.CmsMetadataValuePage getCmsMetadataValuesByStatement(Google.Api.Ads.AdManager.v201908.Statement statement) { + return base.Channel.getCmsMetadataValuesByStatement(statement); + } + + public virtual System.Threading.Tasks.Task getCmsMetadataValuesByStatementAsync(Google.Api.Ads.AdManager.v201908.Statement statement) { + return base.Channel.getCmsMetadataValuesByStatementAsync(statement); + } + } + namespace Wrappers.TargetingPresetService + { + } + /// User-defined preset targeting criteria. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + 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 { - get { - return this.statusFieldSpecified; - } - set { - this.statusFieldSpecified = value; - } - } - - /// The date and time at which the order and line items associated with the - /// Package are eligible to begin serving.

This attribute is - /// read-only and is derived from the earliest ProposalLineItem#startDateTime of ProposalLineItem objects belonging to this - /// package.

This attribute will be null, if this package has no related line - /// items, or none of its line items have a start time.

- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 7)] - public DateTime startDateTime { + public bool idSpecified { get { - return this.startDateTimeField; + return this.idFieldSpecified; } set { - this.startDateTimeField = value; + this.idFieldSpecified = value; } } - /// The date and time at which the order and line items associated with the - /// Package stop being served.

This attribute is read-only and is - /// derived from the latest ProposalLineItem#endDateTime of ProposalLineItem objects belonging to this - /// package.

This attribute will be null, if this package has no related line - /// items, or none of its line items have an end time.

+ /// 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 = 8)] - public DateTime endDateTime { + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public string name { get { - return this.endDateTimeField; + return this.nameField; } set { - this.endDateTimeField = value; + this.nameField = value; } } - /// The date and time this Package was last modified.

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

+ /// Contains the targeting criteria for the TargetingPreset. This + /// attribute is required. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 9)] - public DateTime lastModifiedDateTime { + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public Targeting targeting { get { - return this.lastModifiedDateTimeField; + return this.targetingField; } set { - this.lastModifiedDateTimeField = value; + this.targetingField = value; } } } - /// Describes the different statuses for Package. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum PackageStatus { - /// Indicates that the proposal line items under the Package - /// have not been created. - /// - IN_PROGRESS = 0, - /// Indicates that the proposal line items under the Package - /// have been created. - /// - COMPLETED = 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/v201808", ConfigurationName = "Google.Api.Ads.AdManager.v201808.PackageServiceInterface")] - public interface PackageServiceInterface - { - // 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.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Wrappers.PackageService.createPackagesResponse createPackages(Wrappers.PackageService.createPackagesRequest request); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task createPackagesAsync(Wrappers.PackageService.createPackagesRequest request); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v201808.PackagePage getPackagesByStatement(Google.Api.Ads.AdManager.v201808.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getPackagesByStatementAsync(Google.Api.Ads.AdManager.v201808.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v201808.UpdateResult performPackageAction(Google.Api.Ads.AdManager.v201808.PackageAction packageAction, Google.Api.Ads.AdManager.v201808.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task performPackageActionAsync(Google.Api.Ads.AdManager.v201808.PackageAction packageAction, Google.Api.Ads.AdManager.v201808.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.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Wrappers.PackageService.updatePackagesResponse updatePackages(Wrappers.PackageService.updatePackagesRequest request); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task updatePackagesAsync(Wrappers.PackageService.updatePackagesRequest request); - } - - - /// Captures a page of Package objects. + /// Captures a paged query of TargetingPresetDto + /// objects. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class PackagePage { - private Package[] resultsField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class TargetingPresetPage { + private int totalResultSetSizeField; + + private bool totalResultSetSizeFieldSpecified; private int startIndexField; private bool startIndexFieldSpecified; - private int totalResultSetSizeField; - - private bool totalResultSetSizeFieldSpecified; + private TargetingPreset[] resultsField; - /// The collection of packages contained within this page. + /// The size of the total result set to which this page belongs. /// - [System.Xml.Serialization.XmlElementAttribute("results", Order = 0)] - public Package[] results { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public int totalResultSetSize { get { - return this.resultsField; + return this.totalResultSetSizeField; } set { - this.resultsField = value; + 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; } } @@ -68240,219 +54220,116 @@ public bool startIndexSpecified { } } - /// The size of the total result set to which this page belongs. + /// The collection of line items contained within this page. /// - [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 { + [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] + public TargetingPreset[] results { get { - return this.totalResultSetSizeFieldSpecified; + return this.resultsField; } set { - this.totalResultSetSizeFieldSpecified = value; + this.resultsField = value; } } } - /// Represents the actions that can be performed on Package - /// objects. - /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(CreateProposalLineItemsFromPackages))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public abstract partial class PackageAction { - } - + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", ConfigurationName = "Google.Api.Ads.AdManager.v201908.TargetingPresetServiceInterface")] + public interface TargetingPresetServiceInterface + { + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201908.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v201908.TargetingPresetPage getTargetingPresetsByStatement(Google.Api.Ads.AdManager.v201908.Statement filterStatement); - /// The action used for creating proposal line items from Package objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class CreateProposalLineItemsFromPackages : PackageAction { + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task getTargetingPresetsByStatementAsync(Google.Api.Ads.AdManager.v201908.Statement filterStatement); } [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public interface PackageServiceInterfaceChannel : Google.Api.Ads.AdManager.v201808.PackageServiceInterface, System.ServiceModel.IClientChannel + public interface TargetingPresetServiceInterfaceChannel : Google.Api.Ads.AdManager.v201908.TargetingPresetServiceInterface, System.ServiceModel.IClientChannel { } - /// Provides methods for creating, updating and retrieving Package objects.

To use this service, you need to have the - /// new sales management solution enabled on your network. If you do not see a - /// "Sales" tab in DoubleClick for Publishers - /// (DFP), you will not be able to use this service.

+ /// Service for interacting with Targeting Presets. /// [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public partial class PackageService : AdManagerSoapClient, IPackageService { - /// Creates a new instance of the class. - /// - public PackageService() { + public partial class TargetingPresetService : AdManagerSoapClient, ITargetingPresetService { + /// Creates a new instance of the + /// class. + public TargetingPresetService() { } - /// Creates a new instance of the class. - /// - public PackageService(string endpointConfigurationName) + /// Creates a new instance of the + /// class. + public TargetingPresetService(string endpointConfigurationName) : base(endpointConfigurationName) { } - /// Creates a new instance of the class. - /// - public PackageService(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 PackageService(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 PackageService(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.PackageService.createPackagesResponse Google.Api.Ads.AdManager.v201808.PackageServiceInterface.createPackages(Wrappers.PackageService.createPackagesRequest request) { - return base.Channel.createPackages(request); - } - - /// Creates new Package objects. For each package, the - /// following fields are required: - /// the packages to create - /// the created packages with their IDs filled in - public virtual Google.Api.Ads.AdManager.v201808.Package[] createPackages(Google.Api.Ads.AdManager.v201808.Package[] packages) { - Wrappers.PackageService.createPackagesRequest inValue = new Wrappers.PackageService.createPackagesRequest(); - inValue.packages = packages; - Wrappers.PackageService.createPackagesResponse retVal = ((Google.Api.Ads.AdManager.v201808.PackageServiceInterface)(this)).createPackages(inValue); - return retVal.rval; - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201808.PackageServiceInterface.createPackagesAsync(Wrappers.PackageService.createPackagesRequest request) { - return base.Channel.createPackagesAsync(request); - } - - public virtual System.Threading.Tasks.Task createPackagesAsync(Google.Api.Ads.AdManager.v201808.Package[] packages) { - Wrappers.PackageService.createPackagesRequest inValue = new Wrappers.PackageService.createPackagesRequest(); - inValue.packages = packages; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201808.PackageServiceInterface)(this)).createPackagesAsync(inValue)).Result.rval); - } - - /// Gets a PackagePage of Package - /// objects that satisfy the given Statement#query. - /// The following fields are supported for filtering: - /// - /// - /// - /// - /// - /// - ///
PQL Property Object Property
id Package#id
name Package#name
proposalId Package#proposalId
productPackageId Package#productPackageId
isArchived Package#isArchived
lastModifiedDateTime Package#lastModifiedDateTime
+ /// 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
///
a Publisher Query Language statement used to - /// filter a set of packages - /// the packages that match the given filter - public virtual Google.Api.Ads.AdManager.v201808.PackagePage getPackagesByStatement(Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.getPackagesByStatement(filterStatement); - } - - public virtual System.Threading.Tasks.Task getPackagesByStatementAsync(Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.getPackagesByStatementAsync(filterStatement); - } - - /// Performs actions on Package objects that match the given - /// Statement. - /// the action to perform - /// a Publisher Query Language statement used to - /// filter a set of packages - /// the result of the action performed - public virtual Google.Api.Ads.AdManager.v201808.UpdateResult performPackageAction(Google.Api.Ads.AdManager.v201808.PackageAction packageAction, Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.performPackageAction(packageAction, filterStatement); - } - - public virtual System.Threading.Tasks.Task performPackageActionAsync(Google.Api.Ads.AdManager.v201808.PackageAction packageAction, Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.performPackageActionAsync(packageAction, filterStatement); - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.PackageService.updatePackagesResponse Google.Api.Ads.AdManager.v201808.PackageServiceInterface.updatePackages(Wrappers.PackageService.updatePackagesRequest request) { - return base.Channel.updatePackages(request); - } - - /// Updates the specified Package objects. - /// the packages to update - /// the updated packages - public virtual Google.Api.Ads.AdManager.v201808.Package[] updatePackages(Google.Api.Ads.AdManager.v201808.Package[] packages) { - Wrappers.PackageService.updatePackagesRequest inValue = new Wrappers.PackageService.updatePackagesRequest(); - inValue.packages = packages; - Wrappers.PackageService.updatePackagesResponse retVal = ((Google.Api.Ads.AdManager.v201808.PackageServiceInterface)(this)).updatePackages(inValue); - return retVal.rval; - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201808.PackageServiceInterface.updatePackagesAsync(Wrappers.PackageService.updatePackagesRequest request) { - return base.Channel.updatePackagesAsync(request); + /// filter a set of labels. + /// the targeting presets that match the given filter + public virtual Google.Api.Ads.AdManager.v201908.TargetingPresetPage getTargetingPresetsByStatement(Google.Api.Ads.AdManager.v201908.Statement filterStatement) { + return base.Channel.getTargetingPresetsByStatement(filterStatement); } - public virtual System.Threading.Tasks.Task updatePackagesAsync(Google.Api.Ads.AdManager.v201808.Package[] packages) { - Wrappers.PackageService.updatePackagesRequest inValue = new Wrappers.PackageService.updatePackagesRequest(); - inValue.packages = packages; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201808.PackageServiceInterface)(this)).updatePackagesAsync(inValue)).Result.rval); + public virtual System.Threading.Tasks.Task getTargetingPresetsByStatementAsync(Google.Api.Ads.AdManager.v201908.Statement filterStatement) { + return base.Channel.getTargetingPresetsByStatementAsync(filterStatement); } } - namespace Wrappers.ProductPackageService + 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 = "createProductPackages", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201808", IsWrapped = true)] - public partial class createProductPackagesRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("productPackages")] - public Google.Api.Ads.AdManager.v201808.ProductPackage[] productPackages; + [System.ServiceModel.MessageContractAttribute(WrapperName = "createAdRules", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201908", IsWrapped = true)] + public partial class createAdRulesRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("adRules")] + public Google.Api.Ads.AdManager.v201908.AdRule[] adRules; - /// Creates a new instance of the class. - public createProductPackagesRequest() { + /// Creates a new instance of the + /// class. + public createAdRulesRequest() { } - /// Creates a new instance of the class. - public createProductPackagesRequest(Google.Api.Ads.AdManager.v201808.ProductPackage[] productPackages) { - this.productPackages = productPackages; + /// Creates a new instance of the + /// class. + public createAdRulesRequest(Google.Api.Ads.AdManager.v201908.AdRule[] adRules) { + this.adRules = adRules; } } @@ -68460,20 +54337,20 @@ public createProductPackagesRequest(Google.Api.Ads.AdManager.v201808.ProductPack [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "createProductPackagesResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201808", IsWrapped = true)] - public partial class createProductPackagesResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "createAdRulesResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201908", IsWrapped = true)] + public partial class createAdRulesResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v201808.ProductPackage[] rval; + public Google.Api.Ads.AdManager.v201908.AdRule[] rval; - /// Creates a new instance of the class. - public createProductPackagesResponse() { + /// Creates a new instance of the + /// class. + public createAdRulesResponse() { } - /// Creates a new instance of the class. - public createProductPackagesResponse(Google.Api.Ads.AdManager.v201808.ProductPackage[] rval) { + /// Creates a new instance of the + /// class. + public createAdRulesResponse(Google.Api.Ads.AdManager.v201908.AdRule[] rval) { this.rval = rval; } } @@ -68482,21 +54359,21 @@ public createProductPackagesResponse(Google.Api.Ads.AdManager.v201808.ProductPac [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "updateProductPackages", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201808", IsWrapped = true)] - public partial class updateProductPackagesRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("productPackages")] - public Google.Api.Ads.AdManager.v201808.ProductPackage[] productPackages; + [System.ServiceModel.MessageContractAttribute(WrapperName = "updateAdRules", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201908", IsWrapped = true)] + public partial class updateAdRulesRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("adRules")] + public Google.Api.Ads.AdManager.v201908.AdRule[] adRules; - /// Creates a new instance of the class. - public updateProductPackagesRequest() { + /// Creates a new instance of the + /// class. + public updateAdRulesRequest() { } - /// Creates a new instance of the class. - public updateProductPackagesRequest(Google.Api.Ads.AdManager.v201808.ProductPackage[] productPackages) { - this.productPackages = productPackages; + /// Creates a new instance of the + /// class. + public updateAdRulesRequest(Google.Api.Ads.AdManager.v201908.AdRule[] adRules) { + this.adRules = adRules; } } @@ -68504,945 +54381,706 @@ public updateProductPackagesRequest(Google.Api.Ads.AdManager.v201808.ProductPack [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "updateProductPackagesResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201808", IsWrapped = true)] - public partial class updateProductPackagesResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "updateAdRulesResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201908", IsWrapped = true)] + public partial class updateAdRulesResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v201808.ProductPackage[] rval; + public Google.Api.Ads.AdManager.v201908.AdRule[] rval; - /// Creates a new instance of the class. - public updateProductPackagesResponse() { + /// Creates a new instance of the + /// class. + public updateAdRulesResponse() { } - /// Creates a new instance of the class. - public updateProductPackagesResponse(Google.Api.Ads.AdManager.v201808.ProductPackage[] rval) { + /// Creates a new instance of the + /// class. + public updateAdRulesResponse(Google.Api.Ads.AdManager.v201908.AdRule[] rval) { this.rval = rval; } } } - /// A ProductPackage represents a group of products which will be sold - /// together. + /// 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.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ProductPackage { - private long idField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public abstract partial class BaseAdRuleSlot { + private AdRuleSlotBehavior slotBehaviorField; - private bool idFieldSpecified; + private bool slotBehaviorFieldSpecified; - private string nameField; + private long minVideoAdDurationField; - private string notesField; + private bool minVideoAdDurationFieldSpecified; - private ProductPackageStatus statusField; + private long maxVideoAdDurationField; - private bool statusFieldSpecified; + private bool maxVideoAdDurationFieldSpecified; - private bool isArchivedField; + private MidrollFrequencyType videoMidrollFrequencyTypeField; - private bool isArchivedFieldSpecified; + private bool videoMidrollFrequencyTypeFieldSpecified; - private long[] rateCardIdsField; + private string videoMidrollFrequencyField; - private BaseCustomFieldValue[] customFieldValuesField; + private AdRuleSlotBumper bumperField; - private DateTime lastModifiedDateTimeField; + private bool bumperFieldSpecified; + + private long maxBumperDurationField; + + private bool maxBumperDurationFieldSpecified; + + private long minPodDurationField; + + private bool minPodDurationFieldSpecified; + + private long maxPodDurationField; + + private bool maxPodDurationFieldSpecified; + + private int maxAdsInPodField; + + private bool maxAdsInPodFieldSpecified; - /// Uniquely identifies the ProductPackage.

This attribute is - /// read-only and is assigned by Google when a ProductPackage is - /// created.

+ /// 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 ProductPackage.

This attribute is required and - /// has maximum length of 255 characters.

+ /// The minimum 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 minVideoAdDuration { get { - return this.nameField; + return this.minVideoAdDurationField; } set { - this.nameField = value; + this.minVideoAdDurationField = value; + this.minVideoAdDurationSpecified = true; + } + } + + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool minVideoAdDurationSpecified { + get { + return this.minVideoAdDurationFieldSpecified; + } + set { + this.minVideoAdDurationFieldSpecified = value; } } - /// The notes of the ProductPackage.

This attribute has maximum - /// length of 511 characters.

This attribute is optional.

+ /// The maximum duration in milliseconds of video ads within this slot. This + /// attribute is optional and defaults to 0. /// [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public string notes { + public long maxVideoAdDuration { get { - return this.notesField; + return this.maxVideoAdDurationField; } set { - this.notesField = value; + 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 status of the ProductPackage.

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

+ /// 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 ProductPackageStatus status { + public MidrollFrequencyType videoMidrollFrequencyType { get { - return this.statusField; + return this.videoMidrollFrequencyTypeField; } set { - this.statusField = value; - this.statusSpecified = true; + this.videoMidrollFrequencyTypeField = value; + this.videoMidrollFrequencyTypeSpecified = 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 videoMidrollFrequencyTypeSpecified { get { - return this.statusFieldSpecified; + return this.videoMidrollFrequencyTypeFieldSpecified; } set { - this.statusFieldSpecified = value; + this.videoMidrollFrequencyTypeFieldSpecified = value; } } - /// The archival status of the ProductPackage.

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

+ /// 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 = 4)] - public bool isArchived { + public string videoMidrollFrequency { get { - return this.isArchivedField; + return this.videoMidrollFrequencyField; } set { - this.isArchivedField = value; - this.isArchivedSpecified = true; + this.videoMidrollFrequencyField = value; } } - /// true, if a value is specified for , false otherwise. + /// The AdRuleSlotBumper for this slot. This + /// attribute is optional and defaults to AdRuleSlotBumper#NONE. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 5)] + 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 isArchivedSpecified { + public bool bumperSpecified { get { - return this.isArchivedFieldSpecified; + return this.bumperFieldSpecified; } set { - this.isArchivedFieldSpecified = value; + 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 = 6)] + public long maxBumperDuration { + get { + return this.maxBumperDurationField; + } + set { + this.maxBumperDurationField = value; + this.maxBumperDurationSpecified = true; } } - /// RateCard IDs associated with the .

This - /// attribute is optional.

- ///
- [System.Xml.Serialization.XmlElementAttribute("rateCardIds", Order = 5)] - public long[] rateCardIds { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool maxBumperDurationSpecified { get { - return this.rateCardIdsField; + return this.maxBumperDurationFieldSpecified; } set { - this.rateCardIdsField = value; + this.maxBumperDurationFieldSpecified = value; } } - /// The CustomFieldValue objects associated with this - /// ProductPackage.

This attribute is optional.

+ /// The minimum pod duration in milliseconds for this slot. This attribute is + /// optional and defaults to 0. /// - [System.Xml.Serialization.XmlElementAttribute("customFieldValues", Order = 6)] - public BaseCustomFieldValue[] customFieldValues { + [System.Xml.Serialization.XmlElementAttribute(Order = 7)] + public long minPodDuration { get { - return this.customFieldValuesField; + return this.minPodDurationField; } set { - this.customFieldValuesField = value; + this.minPodDurationField = value; + this.minPodDurationSpecified = true; } } - /// The date and time this ProductPackage was last modified.

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

- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 7)] - public DateTime lastModifiedDateTime { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool minPodDurationSpecified { get { - return this.lastModifiedDateTimeField; + return this.minPodDurationFieldSpecified; } set { - this.lastModifiedDateTimeField = value; + this.minPodDurationFieldSpecified = value; } } - } - - - /// Describes the different statuses for ProductPackage. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum ProductPackageStatus { - ACTIVE = 0, - INACTIVE = 1, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 2, - } - - - /// Lists all errors associated with product packages rate card associations. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ProductPackageRateCardAssociationError : ApiError { - private ProductPackageRateCardAssociationErrorReason reasonField; - private bool reasonFieldSpecified; - - /// The error reason represented by an enum. + /// The maximum pod duration in milliseconds for this slot. This attribute is + /// optional and defaults to 0. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public ProductPackageRateCardAssociationErrorReason reason { + [System.Xml.Serialization.XmlElementAttribute(Order = 8)] + 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; } } - } - - - /// The reasons for the ProductPackageError. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ProductPackageRateCardAssociationError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum ProductPackageRateCardAssociationErrorReason { - /// The id of associated rate card is invalid or invisible to user. - /// - INVALID_RATE_CARD_ID = 0, - /// The id of associated package is invalid. - /// - INVALID_PRODUCT_PACKAGE_ID = 1, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 2, - } - - - /// Lists all errors associated with product package items. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ProductPackageItemError : ApiError { - private ProductPackageItemErrorReason reasonField; - private bool reasonFieldSpecified; - - /// The error reason represented by an enum. + /// 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 = 0)] - public ProductPackageItemErrorReason reason { + [System.Xml.Serialization.XmlElementAttribute(Order = 9)] + 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 ProductPackageItemError. + /// The types of behaviors for ads within a ad rule + /// slot. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ProductPackageItemError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum ProductPackageItemErrorReason { - /// Add a archived product to product package is not allowed. + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum AdRuleSlotBehavior { + /// This ad rule always includes this slot's ads. /// - ARCHIVED_PRODUCT_NOT_ALLOWED = 0, - /// Inactive mandatory product is not allowed in active product package. + 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. /// - INACTIVE_MANDATORY_PRODUCT_NOT_ALLOWED = 1, + DEFER = 2, /// The value returned if the actual value is not exposed by the requested API /// version. /// - UNKNOWN = 2, + UNKNOWN = 3, } - /// Lists all errors for executing operations on product packages. + /// Frequency types for mid-roll ad rule slots. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ProductPackageActionError : ApiError { - private ProductPackageActionErrorReason reasonField; - - private bool reasonFieldSpecified; - - /// The error reason represented by an enum. + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum MidrollFrequencyType { + /// The ad rule slot is not a mid-roll and hence should be ignored. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public ProductPackageActionErrorReason 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 ProductPackageActionError. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ProductPackageActionError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum ProductPackageActionErrorReason { - /// The activate operation is not applicable if there's any inactive mandatory - /// product. + 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". /// - ACTIVATE_WITH_INACTIVE_MANDATORY_PRODUCT = 0, - /// The operation is not applicable to the current state. + 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". /// - NOT_APPLICABLE = 1, + 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 = 2, - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", ConfigurationName = "Google.Api.Ads.AdManager.v201808.ProductPackageServiceInterface")] - public interface ProductPackageServiceInterface - { - // 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.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Wrappers.ProductPackageService.createProductPackagesResponse createProductPackages(Wrappers.ProductPackageService.createProductPackagesRequest request); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task createProductPackagesAsync(Wrappers.ProductPackageService.createProductPackagesRequest request); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v201808.ProductPackagePage getProductPackagesByStatement(Google.Api.Ads.AdManager.v201808.Statement statement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getProductPackagesByStatementAsync(Google.Api.Ads.AdManager.v201808.Statement statement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v201808.UpdateResult performProductPackageAction(Google.Api.Ads.AdManager.v201808.ProductPackageAction action, Google.Api.Ads.AdManager.v201808.Statement statement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task performProductPackageActionAsync(Google.Api.Ads.AdManager.v201808.ProductPackageAction action, Google.Api.Ads.AdManager.v201808.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.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Wrappers.ProductPackageService.updateProductPackagesResponse updateProductPackages(Wrappers.ProductPackageService.updateProductPackagesRequest request); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task updateProductPackagesAsync(Wrappers.ProductPackageService.updateProductPackagesRequest request); + UNKNOWN = 5, } - /// Captures a page of ProductPackageDto objects. + /// Types of bumper ads on an ad rule slot. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ProductPackagePage { - private int totalResultSetSizeField; - - private bool totalResultSetSizeFieldSpecified; - - private int startIndexField; - - private bool startIndexFieldSpecified; - - private ProductPackage[] resultsField; - - /// The size of the total result set to which this page belongs. + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum AdRuleSlotBumper { + /// Do not show a bumper ad. /// - [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. + NONE = 0, + /// Show a bumper ad before the slot's other ads. /// - [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 product packages contained within this page. + BEFORE = 1, + /// Show a bumper ad after the slot's other ads. /// - [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] - public ProductPackage[] results { - get { - return this.resultsField; - } - set { - this.resultsField = value; - } - } + 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, } - /// Represents the actions that can be performed on product packages. + /// The BaseAdRuleSlot subtype returned if the actual + /// type is not exposed by the requested API version. /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(UnarchiveProductPackages))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(DeactivateProductPackages))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ArchiveProductPackages))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ActivateProductPackages))] [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public abstract partial class ProductPackageAction { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class UnknownAdRuleSlot : BaseAdRuleSlot { } - /// The action used to un-archive product packages. + /// 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.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class UnarchiveProductPackages : ProductPackageAction { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class StandardPoddingAdRuleSlot : BaseAdRuleSlot { } - /// The action used to de-activate product packages. + /// 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.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class DeactivateProductPackages : ProductPackageAction { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class OptimizedPoddingAdRuleSlot : BaseAdRuleSlot { } - /// The action used to archive product packages. + /// An ad rule slot with no podding. It is defined by a BaseAdRuleSlot#maxVideoAdDuration. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ArchiveProductPackages : ProductPackageAction { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class NoPoddingAdRuleSlot : BaseAdRuleSlot { } - /// The action used to activate product packages. + /// An AdRule contains data that the ad server will use to + /// generate a playlist of video ads. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ActivateProductPackages : ProductPackageAction { - } + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class AdRule { + private long adRuleIdField; + private bool adRuleIdFieldSpecified; - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public interface ProductPackageServiceInterfaceChannel : Google.Api.Ads.AdManager.v201808.ProductPackageServiceInterface, System.ServiceModel.IClientChannel - { - } + private string nameField; + private int priorityField; - /// Provides methods for updating and retrieving ProductPackage objects.

A ProductPackage represents a group of products which - /// will be sold together.

To use this service, you need to have the new - /// sales management solution enabled on your network. If you do not see a "Sales" - /// tab in DoubleClick for Publishers - /// (DFP), you will not be able to use this service.

- ///
- [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public partial class ProductPackageService : AdManagerSoapClient, IProductPackageService { - /// Creates a new instance of the - /// class. - public ProductPackageService() { - } + private bool priorityFieldSpecified; - /// Creates a new instance of the - /// class. - public ProductPackageService(string endpointConfigurationName) - : base(endpointConfigurationName) { - } + private Targeting targetingField; - /// Creates a new instance of the - /// class. - public ProductPackageService(string endpointConfigurationName, string remoteAddress) - : base(endpointConfigurationName, remoteAddress) { - } + private DateTime startDateTimeField; - /// Creates a new instance of the - /// class. - public ProductPackageService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) - : base(endpointConfigurationName, remoteAddress) { - } + private StartDateTimeType startDateTimeTypeField; - /// Creates a new instance of the - /// class. - public ProductPackageService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) - : base(binding, remoteAddress) { - } + private bool startDateTimeTypeFieldSpecified; - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.ProductPackageService.createProductPackagesResponse Google.Api.Ads.AdManager.v201808.ProductPackageServiceInterface.createProductPackages(Wrappers.ProductPackageService.createProductPackagesRequest request) { - return base.Channel.createProductPackages(request); - } + private DateTime endDateTimeField; - /// Creates new ProductPackage objects. - /// the product packages to create - /// the persisted product packages with their ID filled in - public virtual Google.Api.Ads.AdManager.v201808.ProductPackage[] createProductPackages(Google.Api.Ads.AdManager.v201808.ProductPackage[] productPackages) { - Wrappers.ProductPackageService.createProductPackagesRequest inValue = new Wrappers.ProductPackageService.createProductPackagesRequest(); - inValue.productPackages = productPackages; - Wrappers.ProductPackageService.createProductPackagesResponse retVal = ((Google.Api.Ads.AdManager.v201808.ProductPackageServiceInterface)(this)).createProductPackages(inValue); - return retVal.rval; - } + private bool unlimitedEndDateTimeField; - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201808.ProductPackageServiceInterface.createProductPackagesAsync(Wrappers.ProductPackageService.createProductPackagesRequest request) { - return base.Channel.createProductPackagesAsync(request); - } + private bool unlimitedEndDateTimeFieldSpecified; - public virtual System.Threading.Tasks.Task createProductPackagesAsync(Google.Api.Ads.AdManager.v201808.ProductPackage[] productPackages) { - Wrappers.ProductPackageService.createProductPackagesRequest inValue = new Wrappers.ProductPackageService.createProductPackagesRequest(); - inValue.productPackages = productPackages; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201808.ProductPackageServiceInterface)(this)).createProductPackagesAsync(inValue)).Result.rval); - } + private AdRuleStatus statusField; - /// Gets a ProductPackagePage of ProductPackage objects that satisfy the filtering - /// criteria specified by given Statement#query. The - /// following fields are supported for filtering: - /// - /// - /// - /// - /// - /// - ///
PQL - /// Property Object Property
id ProductPackage#id
name ProductPackage#name
notes ProductPackage#notes
status ProductPackage#status
isArchived ProductPackage#isArchived
lastModifiedDateTime ProductPackage#lastModifiedDateTime
- ///
a Publisher Query Language statement which specifies the - /// filtering criteria over product packages - /// the product packages that match the given statement - public virtual Google.Api.Ads.AdManager.v201808.ProductPackagePage getProductPackagesByStatement(Google.Api.Ads.AdManager.v201808.Statement statement) { - return base.Channel.getProductPackagesByStatement(statement); - } + private bool statusFieldSpecified; - public virtual System.Threading.Tasks.Task getProductPackagesByStatementAsync(Google.Api.Ads.AdManager.v201808.Statement statement) { - return base.Channel.getProductPackagesByStatementAsync(statement); - } + private FrequencyCapBehavior frequencyCapBehaviorField; - /// Performs actions on ProductPackage objects that - /// match the given Statement#query. - /// the action to perform - /// a Publisher Query Language statement used to filter a - /// set of product packages - /// the result of the action performed - public virtual Google.Api.Ads.AdManager.v201808.UpdateResult performProductPackageAction(Google.Api.Ads.AdManager.v201808.ProductPackageAction action, Google.Api.Ads.AdManager.v201808.Statement statement) { - return base.Channel.performProductPackageAction(action, statement); - } + private bool frequencyCapBehaviorFieldSpecified; - public virtual System.Threading.Tasks.Task performProductPackageActionAsync(Google.Api.Ads.AdManager.v201808.ProductPackageAction action, Google.Api.Ads.AdManager.v201808.Statement statement) { - return base.Channel.performProductPackageActionAsync(action, statement); - } + private int maxImpressionsPerLineItemPerStreamField; - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.ProductPackageService.updateProductPackagesResponse Google.Api.Ads.AdManager.v201808.ProductPackageServiceInterface.updateProductPackages(Wrappers.ProductPackageService.updateProductPackagesRequest request) { - return base.Channel.updateProductPackages(request); - } + private bool maxImpressionsPerLineItemPerStreamFieldSpecified; - /// Updates the specified ProductPackage objects. - /// the product packages to update - /// the updated product packages - public virtual Google.Api.Ads.AdManager.v201808.ProductPackage[] updateProductPackages(Google.Api.Ads.AdManager.v201808.ProductPackage[] productPackages) { - Wrappers.ProductPackageService.updateProductPackagesRequest inValue = new Wrappers.ProductPackageService.updateProductPackagesRequest(); - inValue.productPackages = productPackages; - Wrappers.ProductPackageService.updateProductPackagesResponse retVal = ((Google.Api.Ads.AdManager.v201808.ProductPackageServiceInterface)(this)).updateProductPackages(inValue); - return retVal.rval; - } + private int maxImpressionsPerLineItemPerPodField; - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201808.ProductPackageServiceInterface.updateProductPackagesAsync(Wrappers.ProductPackageService.updateProductPackagesRequest request) { - return base.Channel.updateProductPackagesAsync(request); - } + private bool maxImpressionsPerLineItemPerPodFieldSpecified; - public virtual System.Threading.Tasks.Task updateProductPackagesAsync(Google.Api.Ads.AdManager.v201808.ProductPackage[] productPackages) { - Wrappers.ProductPackageService.updateProductPackagesRequest inValue = new Wrappers.ProductPackageService.updateProductPackagesRequest(); - inValue.productPackages = productPackages; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201808.ProductPackageServiceInterface)(this)).updateProductPackagesAsync(inValue)).Result.rval); - } - } - 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 = "createContacts", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201808", IsWrapped = true)] - public partial class createContactsRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("contacts")] - public Google.Api.Ads.AdManager.v201808.Contact[] contacts; + private BaseAdRuleSlot prerollField; - /// Creates a new instance of the - /// class. - public createContactsRequest() { - } + private BaseAdRuleSlot midrollField; - /// Creates a new instance of the - /// class. - public createContactsRequest(Google.Api.Ads.AdManager.v201808.Contact[] contacts) { - this.contacts = contacts; + 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 adRuleId { + get { + return this.adRuleIdField; + } + set { + this.adRuleIdField = value; + this.adRuleIdSpecified = 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 = "createContactsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201808", IsWrapped = true)] - public partial class createContactsResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v201808.Contact[] rval; - - /// Creates a new instance of the - /// class. - public createContactsResponse() { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool adRuleIdSpecified { + get { + return this.adRuleIdFieldSpecified; } - - /// Creates a new instance of the - /// class. - public createContactsResponse(Google.Api.Ads.AdManager.v201808.Contact[] rval) { - this.rval = rval; + set { + this.adRuleIdFieldSpecified = 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; + } + } - [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/v201808", IsWrapped = true)] - public partial class updateContactsRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("contacts")] - public Google.Api.Ads.AdManager.v201808.Contact[] contacts; + /// 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; + } + } - /// Creates a new instance of the - /// class. - public updateContactsRequest() { + /// 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; + } + } - /// Creates a new instance of the - /// class. - public updateContactsRequest(Google.Api.Ads.AdManager.v201808.Contact[] contacts) { - this.contacts = contacts; + /// 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; } } - - [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/v201808", IsWrapped = true)] - public partial class updateContactsResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v201808.Contact[] rval; - - /// Creates a new instance of the - /// class. - public updateContactsResponse() { + /// 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; } - - /// Creates a new instance of the - /// class. - public updateContactsResponse(Google.Api.Ads.AdManager.v201808.Contact[] rval) { - this.rval = rval; + set { + this.startDateTimeField = value; } } - } - /// Base class for a Contact. - /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(Contact))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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. + /// 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 = 0)] - public long id { + [System.Xml.Serialization.XmlElementAttribute(Order = 5)] + public StartDateTimeType startDateTimeType { get { - return this.idField; + return this.startDateTimeTypeField; } set { - this.idField = value; - this.idSpecified = true; + this.startDateTimeTypeField = value; + this.startDateTimeTypeSpecified = 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 startDateTimeTypeSpecified { get { - return this.idFieldSpecified; + return this.startDateTimeTypeFieldSpecified; } set { - this.idFieldSpecified = value; + this.startDateTimeTypeFieldSpecified = value; } } - /// The name of the contact. This attribute is required and has a maximum length of - /// 127 characters. + /// 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 = 1)] - public string name { + [System.Xml.Serialization.XmlElementAttribute(Order = 6)] + public DateTime endDateTime { get { - return this.nameField; + return this.endDateTimeField; } set { - this.nameField = value; + this.endDateTimeField = value; } } - /// The ID of the Company that this contact is associated - /// with. This attribute is required and immutable. + /// Specifies whether the AdRule has an end time. This + /// attribute is optional and defaults to false. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public long companyId { + [System.Xml.Serialization.XmlElementAttribute(Order = 7)] + public bool unlimitedEndDateTime { get { - return this.companyIdField; + return this.unlimitedEndDateTimeField; } set { - this.companyIdField = value; - this.companyIdSpecified = true; + this.unlimitedEndDateTimeField = value; + this.unlimitedEndDateTimeSpecified = 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 companyIdSpecified { + public bool unlimitedEndDateTimeSpecified { get { - return this.companyIdFieldSpecified; + return this.unlimitedEndDateTimeFieldSpecified; } set { - this.companyIdFieldSpecified = value; + this.unlimitedEndDateTimeFieldSpecified = value; } } - /// The status of the contact. This attribute is readonly and is assigned by Google. + /// The AdRuleStatus of the ad rule. This attribute is + /// read-only and defaults to AdRuleStatus#INACTIVE. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public ContactStatus status { + [System.Xml.Serialization.XmlElementAttribute(Order = 8)] + public AdRuleStatus status { get { return this.statusField; } @@ -69465,145 +55103,426 @@ public bool statusSpecified { } } - /// The address of the contact. This attribute is optional and has a maximum length - /// of 1024 characters. + /// The FrequencyCapBehavior of the AdRule. This attribute is optional and defaults to FrequencyCapBehavior#DEFER. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public string address { + [System.Xml.Serialization.XmlElementAttribute(Order = 9)] + public FrequencyCapBehavior frequencyCapBehavior { get { - return this.addressField; + return this.frequencyCapBehaviorField; } set { - this.addressField = value; + this.frequencyCapBehaviorField = value; + this.frequencyCapBehaviorSpecified = true; } } - /// The cell phone number where the contact can be reached. This attribute is - /// optional. + /// 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 = 5)] - public string cellPhone { + [System.Xml.Serialization.XmlElementAttribute(Order = 10)] + public int maxImpressionsPerLineItemPerStream { get { - return this.cellPhoneField; + return this.maxImpressionsPerLineItemPerStreamField; } set { - this.cellPhoneField = value; + this.maxImpressionsPerLineItemPerStreamField = value; + this.maxImpressionsPerLineItemPerStreamSpecified = true; } } - /// A free-form text comment for the contact. This attribute is optional and has a - /// maximum length of 1024 characters. + /// true, if a value is specified for , false otherwise. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 6)] - public string comment { + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool maxImpressionsPerLineItemPerStreamSpecified { get { - return this.commentField; + return this.maxImpressionsPerLineItemPerStreamFieldSpecified; } set { - this.commentField = value; + this.maxImpressionsPerLineItemPerStreamFieldSpecified = value; } } - /// The e-mail address where the contact can be reached. This attribute is optional. + /// 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 = 7)] - public string email { + [System.Xml.Serialization.XmlElementAttribute(Order = 11)] + public int maxImpressionsPerLineItemPerPod { get { - return this.emailField; + return this.maxImpressionsPerLineItemPerPodField; } set { - this.emailField = value; + this.maxImpressionsPerLineItemPerPodField = value; + this.maxImpressionsPerLineItemPerPodSpecified = true; } } - /// The fax number where the contact can be reached. This attribute is optional. + /// true, if a value is specified for , false otherwise. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 8)] - public string faxPhone { + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool maxImpressionsPerLineItemPerPodSpecified { get { - return this.faxPhoneField; + return this.maxImpressionsPerLineItemPerPodFieldSpecified; } set { - this.faxPhoneField = value; + this.maxImpressionsPerLineItemPerPodFieldSpecified = value; } } - /// The job title of the contact. This attribute is optional and has a maximum - /// length of 1024 characters. + /// This AdRule object's pre-roll slot. This attribute is + /// required. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 9)] - public string title { + [System.Xml.Serialization.XmlElementAttribute(Order = 12)] + public BaseAdRuleSlot preroll { get { - return this.titleField; + return this.prerollField; } set { - this.titleField = value; + this.prerollField = value; } } - /// The work phone number where the contact can be reached. This attribute is - /// optional. + /// This AdRule object's mid-roll slot. This attribute is + /// required. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 10)] - public string workPhone { + [System.Xml.Serialization.XmlElementAttribute(Order = 13)] + public BaseAdRuleSlot midroll { get { - return this.workPhoneField; + return this.midrollField; } set { - this.workPhoneField = value; + 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; } } } - /// Describes the contact statuses. + /// Represents the status of ad rules and ad rule slots. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "Contact.Status", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum ContactStatus { - /// The contact has not been invited to see their orders. + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum AdRuleStatus { + /// Created and ready to be served. Is user-visible. /// - UNINVITED = 0, - /// The contact has been invited to see their orders, but has not yet accepted the - /// invitation. + ACTIVE = 0, + /// Paused, user-visible. /// - INVITE_PENDNG = 1, - /// The contact has been invited to see their orders, but the invitation has already - /// expired. + INACTIVE = 1, + /// Marked as deleted, not user-visible. /// - INVITE_EXPIRED = 2, - /// The contact was invited to see their orders, but the invitation was cancelled. + DELETED = 2, + /// The value returned if the actual value is not exposed by the requested API + /// version. /// - INVITE_CANCELED = 3, - /// The contact has access to login and view their orders. + UNKNOWN = 3, + } + + + /// Types of behavior for frequency caps within ad rules. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "PoddingError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AdRuleTargetingError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum AdRuleTargetingErrorReason { + /// Cannot target video positions. + /// + VIDEO_POSITION_TARGETING_NOT_ALLOWED = 0, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 1, + } + + + /// Errors associated with ad rule priorities. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AdRulePriorityError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AdRuleFrequencyCapError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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. /// - USER_ACTIVE = 4, - /// The contact accepted an invitation to see their orders, but their access was - /// later revoked. + 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. /// - USER_DISABLED = 5, + 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 = 6, + UNKNOWN = 2, } - /// Errors associated with Contact. + /// Lists all errors associated with ad rule start and end dates. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ContactError : ApiError { - private ContactErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class AdRuleDateError : ApiError { + private AdRuleDateErrorReason reasonField; private bool reasonFieldSpecified; [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public ContactErrorReason reason { + public AdRuleDateErrorReason reason { get { return this.reasonField; } @@ -69628,69 +55547,101 @@ public bool reasonSpecified { } - /// The reasons for the target error. + /// Describes reasons for AdRuleDateErrors. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ContactError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum ContactErrorReason { + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AdRuleDateError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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 = 0, + UNKNOWN = 4, } [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", ConfigurationName = "Google.Api.Ads.AdManager.v201808.ContactServiceInterface")] - public interface ContactServiceInterface + [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", ConfigurationName = "Google.Api.Ads.AdManager.v201908.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.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201908.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); + Wrappers.AdRuleService.createAdRulesResponse createAdRules(Wrappers.AdRuleService.createAdRulesRequest request); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task createContactsAsync(Wrappers.ContactService.createContactsRequest request); + System.Threading.Tasks.Task createAdRulesAsync(Wrappers.AdRuleService.createAdRulesRequest request); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201908.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v201908.AdRulePage getAdRulesByStatement(Google.Api.Ads.AdManager.v201908.Statement statement); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task getAdRulesByStatementAsync(Google.Api.Ads.AdManager.v201908.Statement statement); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201908.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v201908.AdSpotPage getAdSpotsByStatement(Google.Api.Ads.AdManager.v201908.Statement filterStatement); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task getAdSpotsByStatementAsync(Google.Api.Ads.AdManager.v201908.Statement filterStatement); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201908.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.v201808.ContactPage getContactsByStatement(Google.Api.Ads.AdManager.v201808.Statement statement); + Google.Api.Ads.AdManager.v201908.UpdateResult performAdRuleAction(Google.Api.Ads.AdManager.v201908.AdRuleAction adRuleAction, Google.Api.Ads.AdManager.v201908.Statement filterStatement); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getContactsByStatementAsync(Google.Api.Ads.AdManager.v201808.Statement statement); + System.Threading.Tasks.Task performAdRuleActionAsync(Google.Api.Ads.AdManager.v201908.AdRuleAction adRuleAction, Google.Api.Ads.AdManager.v201908.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.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201908.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); + Wrappers.AdRuleService.updateAdRulesResponse updateAdRules(Wrappers.AdRuleService.updateAdRulesRequest request); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task updateContactsAsync(Wrappers.ContactService.updateContactsRequest request); + System.Threading.Tasks.Task updateAdRulesAsync(Wrappers.AdRuleService.updateAdRulesRequest request); } - /// Captures a page of Contact objects. + /// Captures a page of AdRule objects. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ContactPage { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class AdRulePage { private int totalResultSetSizeField; private bool totalResultSetSizeFieldSpecified; @@ -69699,7 +55650,7 @@ public partial class ContactPage { private bool startIndexFieldSpecified; - private Contact[] resultsField; + private AdRule[] resultsField; /// The size of the total result set to which this page belongs. /// @@ -69753,10 +55704,10 @@ public bool startIndexSpecified { } } - /// The collection of contacts contained within this page. + /// The collection of ad rules contained within this page. /// [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] - public Contact[] results { + public AdRule[] results { get { return this.resultsField; } @@ -69767,800 +55718,413 @@ public Contact[] results { } - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public interface ContactServiceInterfaceChannel : Google.Api.Ads.AdManager.v201808.ContactServiceInterface, System.ServiceModel.IClientChannel - { - } - - - /// Provides methods for creating, updating and retrieving Contact objects. - /// - [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() { - } - - /// Creates a new instance of the class. - /// - public ContactService(string endpointConfigurationName) - : base(endpointConfigurationName) { - } - - /// Creates a new instance of the class. - /// - public ContactService(string endpointConfigurationName, string remoteAddress) - : base(endpointConfigurationName, remoteAddress) { - } - - /// Creates a new instance of the class. - /// - public ContactService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) - : base(endpointConfigurationName, remoteAddress) { - } - - /// 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.v201808.ContactServiceInterface.createContacts(Wrappers.ContactService.createContactsRequest request) { - return base.Channel.createContacts(request); - } - - /// Creates new Contact objects. - /// the contacts to create - /// the created contacts with their IDs filled in - public virtual Google.Api.Ads.AdManager.v201808.Contact[] createContacts(Google.Api.Ads.AdManager.v201808.Contact[] contacts) { - Wrappers.ContactService.createContactsRequest inValue = new Wrappers.ContactService.createContactsRequest(); - inValue.contacts = contacts; - Wrappers.ContactService.createContactsResponse retVal = ((Google.Api.Ads.AdManager.v201808.ContactServiceInterface)(this)).createContacts(inValue); - return retVal.rval; - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201808.ContactServiceInterface.createContactsAsync(Wrappers.ContactService.createContactsRequest request) { - return base.Channel.createContactsAsync(request); - } - - public virtual System.Threading.Tasks.Task createContactsAsync(Google.Api.Ads.AdManager.v201808.Contact[] contacts) { - Wrappers.ContactService.createContactsRequest inValue = new Wrappers.ContactService.createContactsRequest(); - inValue.contacts = contacts; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201808.ContactServiceInterface)(this)).createContactsAsync(inValue)).Result.rval); - } - - /// 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
- ///
a Publisher Query Language statement used to filter a - /// set of contacts - /// the contacts that match the given filter - public virtual Google.Api.Ads.AdManager.v201808.ContactPage getContactsByStatement(Google.Api.Ads.AdManager.v201808.Statement statement) { - return base.Channel.getContactsByStatement(statement); - } - - public virtual System.Threading.Tasks.Task getContactsByStatementAsync(Google.Api.Ads.AdManager.v201808.Statement statement) { - return base.Channel.getContactsByStatementAsync(statement); - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.ContactService.updateContactsResponse Google.Api.Ads.AdManager.v201808.ContactServiceInterface.updateContacts(Wrappers.ContactService.updateContactsRequest request) { - return base.Channel.updateContacts(request); - } - - /// Updates the specified Contact objects. - /// the contacts to update - /// the updated contacts - public virtual Google.Api.Ads.AdManager.v201808.Contact[] updateContacts(Google.Api.Ads.AdManager.v201808.Contact[] contacts) { - Wrappers.ContactService.updateContactsRequest inValue = new Wrappers.ContactService.updateContactsRequest(); - inValue.contacts = contacts; - Wrappers.ContactService.updateContactsResponse retVal = ((Google.Api.Ads.AdManager.v201808.ContactServiceInterface)(this)).updateContacts(inValue); - return retVal.rval; - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201808.ContactServiceInterface.updateContactsAsync(Wrappers.ContactService.updateContactsRequest request) { - return base.Channel.updateContactsAsync(request); - } - - public virtual System.Threading.Tasks.Task updateContactsAsync(Google.Api.Ads.AdManager.v201808.Contact[] contacts) { - Wrappers.ContactService.updateContactsRequest inValue = new Wrappers.ContactService.updateContactsRequest(); - inValue.contacts = contacts; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201808.ContactServiceInterface)(this)).updateContactsAsync(inValue)).Result.rval); - } - } - namespace Wrappers.ProductPackageItemService - { - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "createProductPackageItems", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201808", IsWrapped = true)] - public partial class createProductPackageItemsRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("productPackageItems")] - public Google.Api.Ads.AdManager.v201808.ProductPackageItem[] productPackageItems; - - /// Creates a new instance of the class. - public createProductPackageItemsRequest() { - } - - /// Creates a new instance of the class. - public createProductPackageItemsRequest(Google.Api.Ads.AdManager.v201808.ProductPackageItem[] productPackageItems) { - this.productPackageItems = productPackageItems; - } - } - - - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "createProductPackageItemsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201808", IsWrapped = true)] - public partial class createProductPackageItemsResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v201808.ProductPackageItem[] rval; - - /// Creates a new instance of the class. - public createProductPackageItemsResponse() { - } - - /// Creates a new instance of the class. - public createProductPackageItemsResponse(Google.Api.Ads.AdManager.v201808.ProductPackageItem[] 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 = "updateProductPackageItems", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201808", IsWrapped = true)] - public partial class updateProductPackageItemsRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("productPackageItems")] - public Google.Api.Ads.AdManager.v201808.ProductPackageItem[] productPackageItems; - - /// Creates a new instance of the class. - public updateProductPackageItemsRequest() { - } - - /// Creates a new instance of the class. - public updateProductPackageItemsRequest(Google.Api.Ads.AdManager.v201808.ProductPackageItem[] productPackageItems) { - this.productPackageItems = productPackageItems; - } - } - - - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "updateProductPackageItemsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201808", IsWrapped = true)] - public partial class updateProductPackageItemsResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v201808.ProductPackageItem[] rval; - - /// Creates a new instance of the class. - public updateProductPackageItemsResponse() { - } - - /// Creates a new instance of the class. - public updateProductPackageItemsResponse(Google.Api.Ads.AdManager.v201808.ProductPackageItem[] rval) { - this.rval = rval; - } - } - } - /// A ProductPackageItem represents a product item in a package. + /// Captures a page of AdSpot objects. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ProductPackageItem { - private long idField; - - private bool idFieldSpecified; - - private long productIdField; - - private bool productIdFieldSpecified; - - private long productPackageIdField; - - private bool productPackageIdFieldSpecified; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class AdSpotPage { + private int totalResultSetSizeField; - private bool isMandatoryField; + private bool totalResultSetSizeFieldSpecified; - private bool isMandatoryFieldSpecified; + private int startIndexField; - private ArchiveStatus archiveStatusField; + private bool startIndexFieldSpecified; - private bool archiveStatusFieldSpecified; + private AdSpot[] resultsField; - /// The unique ID of the ProductPackageItem. - ///

This attribute is read-only and is assigned by Google when a ProductPackageItem is created.

+ /// The size of the total result set to which this page belongs. /// [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 ID of the Product, to which the ProductPackageItem comes from.

This attribute - /// is required for creation and then is read-only.

- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public long productId { - get { - return this.productIdField; - } - set { - this.productIdField = value; - this.productIdSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool productIdSpecified { - get { - return this.productIdFieldSpecified; - } - set { - this.productIdFieldSpecified = value; - } - } - - /// The unique ID of the ProductPackage, to which the - /// ProductPackageItem belongs.

This attribute - /// is required for creation and then is read-only.

- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public long productPackageId { + public int totalResultSetSize { get { - return this.productPackageIdField; + return this.totalResultSetSizeField; } set { - this.productPackageIdField = value; - this.productPackageIdSpecified = 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 productPackageIdSpecified { + public bool totalResultSetSizeSpecified { get { - return this.productPackageIdFieldSpecified; + return this.totalResultSetSizeFieldSpecified; } set { - this.productPackageIdFieldSpecified = value; + this.totalResultSetSizeFieldSpecified = value; } } - /// Indicates whether the ProductPackageItem must - /// be included to complete the ProductPackage. - ///

Deactivating a mandatory ProductPackageItem - /// will make the ProductPackage unsellable.

- ///

This attribute is required.

+ /// The absolute index in the total result set on which this page begins. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public bool isMandatory { + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public int startIndex { get { - return this.isMandatoryField; + return this.startIndexField; } set { - this.isMandatoryField = value; - this.isMandatorySpecified = 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 isMandatorySpecified { + public bool startIndexSpecified { get { - return this.isMandatoryFieldSpecified; + return this.startIndexFieldSpecified; } set { - this.isMandatoryFieldSpecified = value; + this.startIndexFieldSpecified = value; } } - /// The archival status of the ProductPackageItem. - ///

This attribute is read-only.

+ /// The collection of ad spot contained within this page. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public ArchiveStatus archiveStatus { - get { - return this.archiveStatusField; - } - set { - this.archiveStatusField = value; - this.archiveStatusSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool archiveStatusSpecified { + [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] + public AdSpot[] results { get { - return this.archiveStatusFieldSpecified; + return this.resultsField; } set { - this.archiveStatusFieldSpecified = value; + this.resultsField = value; } } } - /// Archive status of product package item. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum ArchiveStatus { - /// Product package item is archived - /// - ARCHIVED = 0, - /// Product package item is not archived - /// - NOT_ARCHIVED = 1, - /// The corresponding product template of this product package item is archived. - /// - PRODUCT_TEMPLATE_ARCHIVED = 2, - /// The value returned if the actual value is not exposed by the requested API - /// version. - /// - UNKNOWN = 3, - } - - - /// Lists all errors for executing operations on product package items. + /// 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.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ProductPackageItemActionError : ApiError { - private ProductPackageItemActionErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class AdSpot { + private long idField; - private bool reasonFieldSpecified; + private bool idFieldSpecified; + + private string nameField; + + private string displayNameField; + + private bool customSpotField; + private bool customSpotFieldSpecified; + + /// The unique ID of the AdSpot. This value is readonly and is + /// assigned by Google. + /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public ProductPackageItemActionErrorReason 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 ProductPackageItemActionError. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ProductPackageItemActionError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum ProductPackageItemActionErrorReason { - /// The operation is not applicable to the current state. - /// - NOT_APPLICABLE = 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/v201808", ConfigurationName = "Google.Api.Ads.AdManager.v201808.ProductPackageItemServiceInterface")] - public interface ProductPackageItemServiceInterface - { - // 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.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Wrappers.ProductPackageItemService.createProductPackageItemsResponse createProductPackageItems(Wrappers.ProductPackageItemService.createProductPackageItemsRequest request); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task createProductPackageItemsAsync(Wrappers.ProductPackageItemService.createProductPackageItemsRequest request); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v201808.ProductPackageItemPage getProductPackageItemsByStatement(Google.Api.Ads.AdManager.v201808.Statement statement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getProductPackageItemsByStatementAsync(Google.Api.Ads.AdManager.v201808.Statement statement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v201808.UpdateResult performProductPackageItemAction(Google.Api.Ads.AdManager.v201808.ProductPackageItemAction productPackageItemAction, Google.Api.Ads.AdManager.v201808.Statement statement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task performProductPackageItemActionAsync(Google.Api.Ads.AdManager.v201808.ProductPackageItemAction productPackageItemAction, Google.Api.Ads.AdManager.v201808.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.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Wrappers.ProductPackageItemService.updateProductPackageItemsResponse updateProductPackageItems(Wrappers.ProductPackageItemService.updateProductPackageItemsRequest request); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task updateProductPackageItemsAsync(Wrappers.ProductPackageItemService.updateProductPackageItemsRequest request); - } - - - /// Captures a page of ProductPackageItemDto - /// objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ProductPackageItemPage { - private int totalResultSetSizeField; - - private bool totalResultSetSizeFieldSpecified; - - private int startIndexField; - - private bool startIndexFieldSpecified; - - private ProductPackageItem[] resultsField; - /// The size of the total result set to which this page belongs. + /// 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 = 0)] - public int totalResultSetSize { + [System.Xml.Serialization.XmlElementAttribute(Order = 1)] + public string name { get { - return this.totalResultSetSizeField; + return this.nameField; } set { - this.totalResultSetSizeField = value; - this.totalResultSetSizeSpecified = true; + this.nameField = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool totalResultSetSizeSpecified { + /// 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.totalResultSetSizeFieldSpecified; + return this.displayNameField; } set { - this.totalResultSetSizeFieldSpecified = value; + this.displayNameField = value; } } - /// The absolute index in the total result set on which this page begins. + /// 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 = 1)] - public int startIndex { + [System.Xml.Serialization.XmlElementAttribute(Order = 3)] + public bool customSpot { get { - return this.startIndexField; + return this.customSpotField; } set { - this.startIndexField = value; - this.startIndexSpecified = true; + this.customSpotField = value; + this.customSpotSpecified = 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 customSpotSpecified { get { - return this.startIndexFieldSpecified; + return this.customSpotFieldSpecified; } set { - this.startIndexFieldSpecified = value; + this.customSpotFieldSpecified = value; } } + } - /// The collection of product package item dtos contained within this page. - /// - [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] - public ProductPackageItem[] 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.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public abstract partial class AdRuleAction { } - /// Represents the actions that can be performed on product package items. + /// The action used for deleting AdRule objects. /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(UnArchiveProductPackageItems))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ArchiveProductPackageItems))] [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public abstract partial class ProductPackageItemAction { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class DeleteAdRules : AdRuleAction { } - /// The action used to un-archive product package items. + /// The action used for pausing AdRule objects. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class UnArchiveProductPackageItems : ProductPackageItemAction { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class DeactivateAdRules : AdRuleAction { } - /// The action used to archive product package items. + /// The action used for resuming AdRule objects. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ArchiveProductPackageItems : ProductPackageItemAction { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class ActivateAdRules : AdRuleAction { } [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public interface ProductPackageItemServiceInterfaceChannel : Google.Api.Ads.AdManager.v201808.ProductPackageItemServiceInterface, System.ServiceModel.IClientChannel + public interface AdRuleServiceInterfaceChannel : Google.Api.Ads.AdManager.v201908.AdRuleServiceInterface, System.ServiceModel.IClientChannel { } - /// Provides methods for creating and retrieving ProductPackageItem objects.

A ProductPackageItem represents a product which will - /// be associated with a ProductPackage.

To use this service, - /// you need to have the new sales management solution enabled on your network. If - /// you do not see a "Sales" tab in DoubleClick - /// for Publishers (DFP), you will not be able to use this service.

+ /// 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 ProductPackageItemService : AdManagerSoapClient, IProductPackageItemService { - /// Creates a new instance of the - /// class. - public ProductPackageItemService() { + public partial class AdRuleService : AdManagerSoapClient, IAdRuleService { + /// Creates a new instance of the class. + /// + public AdRuleService() { } - /// Creates a new instance of the - /// class. - public ProductPackageItemService(string endpointConfigurationName) + /// Creates a new instance of the class. + /// + public AdRuleService(string endpointConfigurationName) : base(endpointConfigurationName) { } - /// Creates a new instance of the - /// class. - public ProductPackageItemService(string endpointConfigurationName, string remoteAddress) + /// Creates a new instance of the class. + /// + public AdRuleService(string endpointConfigurationName, string remoteAddress) : base(endpointConfigurationName, remoteAddress) { } - /// Creates a new instance of the - /// class. - public ProductPackageItemService(string endpointConfigurationName, System.ServiceModel.EndpointAddress 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 ProductPackageItemService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress 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.ProductPackageItemService.createProductPackageItemsResponse Google.Api.Ads.AdManager.v201808.ProductPackageItemServiceInterface.createProductPackageItems(Wrappers.ProductPackageItemService.createProductPackageItemsRequest request) { - return base.Channel.createProductPackageItems(request); + Wrappers.AdRuleService.createAdRulesResponse Google.Api.Ads.AdManager.v201908.AdRuleServiceInterface.createAdRules(Wrappers.AdRuleService.createAdRulesRequest request) { + return base.Channel.createAdRules(request); } - /// Creates new ProductPackageItem objects. - /// the product package items to create - /// the created product package items with their IDs filled in - public virtual Google.Api.Ads.AdManager.v201808.ProductPackageItem[] createProductPackageItems(Google.Api.Ads.AdManager.v201808.ProductPackageItem[] productPackageItems) { - Wrappers.ProductPackageItemService.createProductPackageItemsRequest inValue = new Wrappers.ProductPackageItemService.createProductPackageItemsRequest(); - inValue.productPackageItems = productPackageItems; - Wrappers.ProductPackageItemService.createProductPackageItemsResponse retVal = ((Google.Api.Ads.AdManager.v201808.ProductPackageItemServiceInterface)(this)).createProductPackageItems(inValue); + /// Creates new AdRule objects. + /// the ad rules to create + /// the created ad rules with their IDs filled in + public virtual Google.Api.Ads.AdManager.v201908.AdRule[] createAdRules(Google.Api.Ads.AdManager.v201908.AdRule[] adRules) { + Wrappers.AdRuleService.createAdRulesRequest inValue = new Wrappers.AdRuleService.createAdRulesRequest(); + inValue.adRules = adRules; + Wrappers.AdRuleService.createAdRulesResponse retVal = ((Google.Api.Ads.AdManager.v201908.AdRuleServiceInterface)(this)).createAdRules(inValue); return retVal.rval; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201808.ProductPackageItemServiceInterface.createProductPackageItemsAsync(Wrappers.ProductPackageItemService.createProductPackageItemsRequest request) { - return base.Channel.createProductPackageItemsAsync(request); + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201908.AdRuleServiceInterface.createAdRulesAsync(Wrappers.AdRuleService.createAdRulesRequest request) { + return base.Channel.createAdRulesAsync(request); } - public virtual System.Threading.Tasks.Task createProductPackageItemsAsync(Google.Api.Ads.AdManager.v201808.ProductPackageItem[] productPackageItems) { - Wrappers.ProductPackageItemService.createProductPackageItemsRequest inValue = new Wrappers.ProductPackageItemService.createProductPackageItemsRequest(); - inValue.productPackageItems = productPackageItems; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201808.ProductPackageItemServiceInterface)(this)).createProductPackageItemsAsync(inValue)).Result.rval); + public virtual System.Threading.Tasks.Task createAdRulesAsync(Google.Api.Ads.AdManager.v201908.AdRule[] adRules) { + Wrappers.AdRuleService.createAdRulesRequest inValue = new Wrappers.AdRuleService.createAdRulesRequest(); + inValue.adRules = adRules; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201908.AdRuleServiceInterface)(this)).createAdRulesAsync(inValue)).Result.rval); } - /// Gets a ProductPackageItemPage of - /// ProductPackageItem objects that satisfy the filtering criteria - /// specified by given Statement#query. The following + /// Gets an AdRulePage of AdRule + /// objects that satisfy the given Statement#query. The following /// fields are supported for filtering: - /// - /// - /// - /// - /// - /// - ///
PQL /// Property Object Property
id ProductPackageItem#id
productPackageId ProductPackageItem#productPackageId
productId ProductPackageItem#productId
productTemplateId ProductPackageItem#productTemplateId
mandatory ProductPackageItem#mandatory
archived ProductPackageItem#archived
- ///
a Publisher Query Language statement which specifies the - /// filtering criteria over product packages - /// the product package items that match the given statement - public virtual Google.Api.Ads.AdManager.v201808.ProductPackageItemPage getProductPackageItemsByStatement(Google.Api.Ads.AdManager.v201808.Statement statement) { - return base.Channel.getProductPackageItemsByStatement(statement); + /// id AdRule#id (AdRule#adRuleId beginning in v201702) + /// name AdRule#name + /// priority AdRule#priority + /// status AdRule#status + /// + ///
a Publisher Query Language statement used to filter a + /// set of ad rules + /// the ad rules that match the given filter + /// if the ID of the active network does not exist or + /// there is a backend error + public virtual Google.Api.Ads.AdManager.v201908.AdRulePage getAdRulesByStatement(Google.Api.Ads.AdManager.v201908.Statement statement) { + return base.Channel.getAdRulesByStatement(statement); } - public virtual System.Threading.Tasks.Task getProductPackageItemsByStatementAsync(Google.Api.Ads.AdManager.v201808.Statement statement) { - return base.Channel.getProductPackageItemsByStatementAsync(statement); + public virtual System.Threading.Tasks.Task getAdRulesByStatementAsync(Google.Api.Ads.AdManager.v201908.Statement statement) { + return base.Channel.getAdRulesByStatementAsync(statement); } - /// Performs actions on ProductPackageItem objects - /// that satisfy the given Statement#query. - /// the action to perform - /// a Publisher Query Language statement used to filter a - /// set of product package items + /// Gets a AdSpotPage of AdSpot + /// objects that satisfy the given Statement#query. + /// a Publisher Query Language statement to filter a + /// list of ad spots + /// the ad spots that match the filter + public virtual Google.Api.Ads.AdManager.v201908.AdSpotPage getAdSpotsByStatement(Google.Api.Ads.AdManager.v201908.Statement filterStatement) { + return base.Channel.getAdSpotsByStatement(filterStatement); + } + + public virtual System.Threading.Tasks.Task getAdSpotsByStatementAsync(Google.Api.Ads.AdManager.v201908.Statement filterStatement) { + return base.Channel.getAdSpotsByStatementAsync(filterStatement); + } + + /// Performs actions on AdRule objects that match the given Statement#query. + /// the action to perform + /// a Publisher Query Language statement used to + /// filter a set of ad rules /// the result of the action performed - public virtual Google.Api.Ads.AdManager.v201808.UpdateResult performProductPackageItemAction(Google.Api.Ads.AdManager.v201808.ProductPackageItemAction productPackageItemAction, Google.Api.Ads.AdManager.v201808.Statement statement) { - return base.Channel.performProductPackageItemAction(productPackageItemAction, statement); + public virtual Google.Api.Ads.AdManager.v201908.UpdateResult performAdRuleAction(Google.Api.Ads.AdManager.v201908.AdRuleAction adRuleAction, Google.Api.Ads.AdManager.v201908.Statement filterStatement) { + return base.Channel.performAdRuleAction(adRuleAction, filterStatement); } - public virtual System.Threading.Tasks.Task performProductPackageItemActionAsync(Google.Api.Ads.AdManager.v201808.ProductPackageItemAction productPackageItemAction, Google.Api.Ads.AdManager.v201808.Statement statement) { - return base.Channel.performProductPackageItemActionAsync(productPackageItemAction, statement); + public virtual System.Threading.Tasks.Task performAdRuleActionAsync(Google.Api.Ads.AdManager.v201908.AdRuleAction adRuleAction, Google.Api.Ads.AdManager.v201908.Statement filterStatement) { + return base.Channel.performAdRuleActionAsync(adRuleAction, filterStatement); } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.ProductPackageItemService.updateProductPackageItemsResponse Google.Api.Ads.AdManager.v201808.ProductPackageItemServiceInterface.updateProductPackageItems(Wrappers.ProductPackageItemService.updateProductPackageItemsRequest request) { - return base.Channel.updateProductPackageItems(request); + Wrappers.AdRuleService.updateAdRulesResponse Google.Api.Ads.AdManager.v201908.AdRuleServiceInterface.updateAdRules(Wrappers.AdRuleService.updateAdRulesRequest request) { + return base.Channel.updateAdRules(request); } - /// Updates the specified ProductPackageItem - /// objects. - /// the product package items to update - /// the updated product package items - public virtual Google.Api.Ads.AdManager.v201808.ProductPackageItem[] updateProductPackageItems(Google.Api.Ads.AdManager.v201808.ProductPackageItem[] productPackageItems) { - Wrappers.ProductPackageItemService.updateProductPackageItemsRequest inValue = new Wrappers.ProductPackageItemService.updateProductPackageItemsRequest(); - inValue.productPackageItems = productPackageItems; - Wrappers.ProductPackageItemService.updateProductPackageItemsResponse retVal = ((Google.Api.Ads.AdManager.v201808.ProductPackageItemServiceInterface)(this)).updateProductPackageItems(inValue); + /// Updates the specified AdRule objects. + /// the ad rules to update + /// the updated ad rules + /// if there is an error updating the ad + /// rules + public virtual Google.Api.Ads.AdManager.v201908.AdRule[] updateAdRules(Google.Api.Ads.AdManager.v201908.AdRule[] adRules) { + Wrappers.AdRuleService.updateAdRulesRequest inValue = new Wrappers.AdRuleService.updateAdRulesRequest(); + inValue.adRules = adRules; + Wrappers.AdRuleService.updateAdRulesResponse retVal = ((Google.Api.Ads.AdManager.v201908.AdRuleServiceInterface)(this)).updateAdRules(inValue); return retVal.rval; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201808.ProductPackageItemServiceInterface.updateProductPackageItemsAsync(Wrappers.ProductPackageItemService.updateProductPackageItemsRequest request) { - return base.Channel.updateProductPackageItemsAsync(request); + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201908.AdRuleServiceInterface.updateAdRulesAsync(Wrappers.AdRuleService.updateAdRulesRequest request) { + return base.Channel.updateAdRulesAsync(request); } - public virtual System.Threading.Tasks.Task updateProductPackageItemsAsync(Google.Api.Ads.AdManager.v201808.ProductPackageItem[] productPackageItems) { - Wrappers.ProductPackageItemService.updateProductPackageItemsRequest inValue = new Wrappers.ProductPackageItemService.updateProductPackageItemsRequest(); - inValue.productPackageItems = productPackageItems; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201808.ProductPackageItemServiceInterface)(this)).updateProductPackageItemsAsync(inValue)).Result.rval); + public virtual System.Threading.Tasks.Task updateAdRulesAsync(Google.Api.Ads.AdManager.v201908.AdRule[] adRules) { + Wrappers.AdRuleService.updateAdRulesRequest inValue = new Wrappers.AdRuleService.updateAdRulesRequest(); + inValue.adRules = adRules; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201908.AdRuleServiceInterface)(this)).updateAdRulesAsync(inValue)).Result.rval); } } - namespace Wrappers.NativeStyleService + 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 = "createNativeStyles", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201808", IsWrapped = true)] - public partial class createNativeStylesRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("nativeStyles")] - public Google.Api.Ads.AdManager.v201808.NativeStyle[] nativeStyles; + [System.ServiceModel.MessageContractAttribute(WrapperName = "createContacts", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201908", IsWrapped = true)] + public partial class createContactsRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("contacts")] + public Google.Api.Ads.AdManager.v201908.Contact[] contacts; - /// Creates a new instance of the + /// Creates a new instance of the /// class. - public createNativeStylesRequest() { + public createContactsRequest() { } - /// Creates a new instance of the + /// Creates a new instance of the /// class. - public createNativeStylesRequest(Google.Api.Ads.AdManager.v201808.NativeStyle[] nativeStyles) { - this.nativeStyles = nativeStyles; + public createContactsRequest(Google.Api.Ads.AdManager.v201908.Contact[] contacts) { + this.contacts = contacts; } } @@ -70568,20 +56132,20 @@ public createNativeStylesRequest(Google.Api.Ads.AdManager.v201808.NativeStyle[] [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/v201808", IsWrapped = true)] - public partial class createNativeStylesResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "createContactsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201908", IsWrapped = true)] + public partial class createContactsResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v201808.NativeStyle[] rval; + public Google.Api.Ads.AdManager.v201908.Contact[] rval; - /// Creates a new instance of the + /// Creates a new instance of the /// class. - public createNativeStylesResponse() { + public createContactsResponse() { } - /// Creates a new instance of the + /// Creates a new instance of the /// class. - public createNativeStylesResponse(Google.Api.Ads.AdManager.v201808.NativeStyle[] rval) { + public createContactsResponse(Google.Api.Ads.AdManager.v201908.Contact[] rval) { this.rval = rval; } } @@ -70590,21 +56154,21 @@ public createNativeStylesResponse(Google.Api.Ads.AdManager.v201808.NativeStyle[] [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/v201808", IsWrapped = true)] - public partial class updateNativeStylesRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("nativeStyles")] - public Google.Api.Ads.AdManager.v201808.NativeStyle[] nativeStyles; + [System.ServiceModel.MessageContractAttribute(WrapperName = "updateContacts", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201908", IsWrapped = true)] + public partial class updateContactsRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("contacts")] + public Google.Api.Ads.AdManager.v201908.Contact[] contacts; - /// Creates a new instance of the + /// Creates a new instance of the /// class. - public updateNativeStylesRequest() { + public updateContactsRequest() { } - /// Creates a new instance of the + /// Creates a new instance of the /// class. - public updateNativeStylesRequest(Google.Api.Ads.AdManager.v201808.NativeStyle[] nativeStyles) { - this.nativeStyles = nativeStyles; + public updateContactsRequest(Google.Api.Ads.AdManager.v201908.Contact[] contacts) { + this.contacts = contacts; } } @@ -70612,61 +56176,77 @@ public updateNativeStylesRequest(Google.Api.Ads.AdManager.v201808.NativeStyle[] [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/v201808", IsWrapped = true)] - public partial class updateNativeStylesResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "updateContactsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201908", IsWrapped = true)] + public partial class updateContactsResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v201808.NativeStyle[] rval; + public Google.Api.Ads.AdManager.v201908.Contact[] rval; - /// Creates a new instance of the + /// Creates a new instance of the /// class. - public updateNativeStylesResponse() { + public updateContactsResponse() { } - /// Creates a new instance of the + /// Creates a new instance of the /// class. - public updateNativeStylesResponse(Google.Api.Ads.AdManager.v201808.NativeStyle[] rval) { + public updateContactsResponse(Google.Api.Ads.AdManager.v201908.Contact[] 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. + /// Base class for a Contact. /// + [System.Xml.Serialization.XmlIncludeAttribute(typeof(Contact))] [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class NativeStyle { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class Contact : BaseContact { private long idField; private bool idFieldSpecified; private string nameField; - private string htmlSnippetField; + private long companyIdField; - private string cssSnippetField; + private bool companyIdFieldSpecified; - private long creativeTemplateIdField; + private ContactStatus statusField; - private bool creativeTemplateIdFieldSpecified; + private bool statusFieldSpecified; - private bool isFluidField; + private string addressField; - private bool isFluidFieldSpecified; + private string cellPhoneField; - private Targeting targetingField; + private string commentField; - private NativeStyleStatus statusField; + private string emailField; - private bool statusFieldSpecified; + private string faxPhoneField; - private Size sizeField; + private string titleField; - /// Uniquely identifies the NativeStyle. This attribute is read-only - /// and is assigned by Google when a native style is created. + 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 { @@ -70692,8 +56272,8 @@ public bool idSpecified { } } - /// The name of the native style. This attribute is required and has a maximum - /// length of 255 characters. + /// 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 { @@ -70705,175 +56285,198 @@ public string name { } } - /// The HTML snippet of the native style with placeholders for the associated - /// variables. This attribute is required. + /// 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 htmlSnippet { + public long companyId { get { - return this.htmlSnippetField; + return this.companyIdField; } set { - this.htmlSnippetField = value; + this.companyIdField = value; + this.companyIdSpecified = true; } } - /// 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 { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool companyIdSpecified { get { - return this.cssSnippetField; + return this.companyIdFieldSpecified; } set { - this.cssSnippetField = value; + this.companyIdFieldSpecified = value; } } - /// The creative template ID this native style associated with. This attribute is - /// required on creation and is read-only afterwards. + /// The status of the contact. This attribute is readonly and is assigned by Google. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public long creativeTemplateId { + [System.Xml.Serialization.XmlElementAttribute(Order = 3)] + public ContactStatus status { get { - return this.creativeTemplateIdField; + return this.statusField; } set { - this.creativeTemplateIdField = value; - this.creativeTemplateIdSpecified = 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 creativeTemplateIdSpecified { + public bool statusSpecified { get { - return this.creativeTemplateIdFieldSpecified; + return this.statusFieldSpecified; } set { - this.creativeTemplateIdFieldSpecified = value; + this.statusFieldSpecified = value; } } - /// Whether this is a fluid size native style. If true, this must be - /// used with 1x1 size. + /// The address of the contact. This attribute is optional and has a maximum length + /// of 1024 characters. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 5)] - public bool isFluid { + [System.Xml.Serialization.XmlElementAttribute(Order = 4)] + public string address { get { - return this.isFluidField; + return this.addressField; } set { - this.isFluidField = value; - this.isFluidSpecified = true; + this.addressField = value; } } - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool isFluidSpecified { + /// 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.isFluidFieldSpecified; + return this.cellPhoneField; } set { - this.isFluidFieldSpecified = value; + this.cellPhoneField = value; } } - /// The targeting criteria for this native style. Only ad unit and key-value - /// targeting are supported at this time. + /// 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 Targeting targeting { + public string comment { get { - return this.targetingField; + return this.commentField; } set { - this.targetingField = value; + this.commentField = value; } } - /// The status of the native style. This attribute is read-only. + /// The e-mail address where the contact can be reached. This attribute is optional. /// [System.Xml.Serialization.XmlElementAttribute(Order = 7)] - public NativeStyleStatus status { + public string email { get { - return this.statusField; + return this.emailField; } set { - this.statusField = value; - this.statusSpecified = true; + this.emailField = value; } } - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool statusSpecified { + /// The fax number where the contact can be reached. This attribute is optional. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 8)] + public string faxPhone { get { - return this.statusFieldSpecified; + return this.faxPhoneField; } set { - this.statusFieldSpecified = value; + this.faxPhoneField = value; } } - /// The size of the native style. This attribute is required. + /// The job title of the contact. This attribute is optional and has a maximum + /// length of 1024 characters. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 8)] - public Size size { + [System.Xml.Serialization.XmlElementAttribute(Order = 9)] + public string title { get { - return this.sizeField; + return this.titleField; } set { - this.sizeField = value; + this.titleField = value; + } + } + + /// 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.workPhoneField; + } + set { + this.workPhoneField = value; } } } - /// Describes status of the native style. + /// Describes the contact statuses. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum NativeStyleStatus { - /// The native style is active. Active native styles are used in ad serving. + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "Contact.Status", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum ContactStatus { + /// The contact has not been invited to see their orders. /// - ACTIVE = 0, - /// The native style is archived. Archived native styles are not visible in the UI - /// and not used in ad serving. + UNINVITED = 0, + /// The contact has been invited to see their orders, but has not yet accepted the + /// invitation. /// - ARCHIVED = 1, + 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 = 2, + UNKNOWN = 6, } - /// Errors for native styles. + /// Errors associated with Contact. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class NativeStyleError : ApiError { - private NativeStyleErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class ContactError : ApiError { + private ContactErrorReason reasonField; private bool reasonFieldSpecified; - /// The error reason represented by an enum. - /// [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public NativeStyleErrorReason reason { + public ContactErrorReason reason { get { return this.reasonField; } @@ -70902,104 +56505,65 @@ public bool reasonSpecified { /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "NativeStyleError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum NativeStyleErrorReason { - /// 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, - /// Native styles can only be created under native creative templates. - /// - NATIVE_CREATIVE_TEMPLATE_REQUIRED = 1, - /// Native styles can only be created under active creative templates. - /// - ACTIVE_CREATIVE_TEMPLATE_REQUIRED = 2, - /// Native styles must have an HTML snippet. - /// - UNIQUE_SNIPPET_REQUIRED = 3, - /// Targeting expressions on the NativeStyle can only have custom criteria targeting - /// with CustomTargetingValue.MatchType#EXACT. - /// - INVALID_CUSTOM_TARGETING_MATCH_TYPE = 4, - /// Targeting expressions on native styles can have a maximum of 20 key-value pairs. - /// - TOO_MANY_CUSTOM_TARGETING_KEY_VALUES = 9, - /// Targeting expressions on the native style can only have inventory targeting - /// and/or custom targeting. - /// - INVALID_TARGETING_TYPE = 5, - /// Native styles only allows inclusion of inventory units. - /// - INVALID_INVENTORY_TARTGETING_TYPE = 6, - /// The macro referenced in the snippet is not valid. - /// - UNRECOGNIZED_MACRO = 7, + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ContactError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum ContactErrorReason { /// The value returned if the actual value is not exposed by the requested API /// version. /// - UNKNOWN = 8, + UNKNOWN = 0, } [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", ConfigurationName = "Google.Api.Ads.AdManager.v201808.NativeStyleServiceInterface")] - public interface NativeStyleServiceInterface + [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", ConfigurationName = "Google.Api.Ads.AdManager.v201908.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.v201808.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.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201908.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.v201808.NativeStylePage getNativeStylesByStatement(Google.Api.Ads.AdManager.v201808.Statement filterStatement); + Wrappers.ContactService.createContactsResponse createContacts(Wrappers.ContactService.createContactsRequest request); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getNativeStylesByStatementAsync(Google.Api.Ads.AdManager.v201808.Statement filterStatement); + System.Threading.Tasks.Task createContactsAsync(Wrappers.ContactService.createContactsRequest request); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201908.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.v201808.UpdateResult performNativeStyleAction(Google.Api.Ads.AdManager.v201808.NativeStyleAction nativeStyleAction, Google.Api.Ads.AdManager.v201808.Statement filterStatement); + Google.Api.Ads.AdManager.v201908.ContactPage getContactsByStatement(Google.Api.Ads.AdManager.v201908.Statement statement); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task performNativeStyleActionAsync(Google.Api.Ads.AdManager.v201808.NativeStyleAction nativeStyleAction, Google.Api.Ads.AdManager.v201808.Statement filterStatement); + System.Threading.Tasks.Task getContactsByStatementAsync(Google.Api.Ads.AdManager.v201908.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.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201908.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.NativeStyleService.updateNativeStylesResponse updateNativeStyles(Wrappers.NativeStyleService.updateNativeStylesRequest request); + Wrappers.ContactService.updateContactsResponse updateContacts(Wrappers.ContactService.updateContactsRequest request); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task updateNativeStylesAsync(Wrappers.NativeStyleService.updateNativeStylesRequest request); + System.Threading.Tasks.Task updateContactsAsync(Wrappers.ContactService.updateContactsRequest request); } - /// Captures a page of NativeStyle objects. + /// Captures a page of Contact objects. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class NativeStylePage { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class ContactPage { private int totalResultSetSizeField; private bool totalResultSetSizeFieldSpecified; @@ -71008,7 +56572,7 @@ public partial class NativeStylePage { private bool startIndexFieldSpecified; - private NativeStyle[] resultsField; + private Contact[] resultsField; /// The size of the total result set to which this page belongs. /// @@ -71062,10 +56626,10 @@ public bool startIndexSpecified { } } - /// The collection of native styles contained within this page. + /// The collection of contacts contained within this page. /// [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] - public NativeStyle[] results { + public Contact[] results { get { return this.resultsField; } @@ -71076,153 +56640,129 @@ public NativeStyle[] results { } - /// Represents an action that can be performed on native styles. - /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ArchiveNativeStyles))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public abstract partial class NativeStyleAction { - } - - - /// Action to archive native styles. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ArchiveNativeStyles : NativeStyleAction { - } - - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public interface NativeStyleServiceInterfaceChannel : Google.Api.Ads.AdManager.v201808.NativeStyleServiceInterface, System.ServiceModel.IClientChannel + public interface ContactServiceInterfaceChannel : Google.Api.Ads.AdManager.v201908.ContactServiceInterface, System.ServiceModel.IClientChannel { } - /// Provides methods for creating and retrieving NativeStyle objects. + /// Provides methods for creating, updating and retrieving Contact 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 partial class ContactService : AdManagerSoapClient, IContactService { + /// Creates a new instance of the class. /// - public NativeStyleService() { + public ContactService() { } - /// Creates a new instance of the class. + /// Creates a new instance of the class. /// - public NativeStyleService(string endpointConfigurationName) + public ContactService(string endpointConfigurationName) : base(endpointConfigurationName) { } - /// Creates a new instance of the class. + /// Creates a new instance of the class. /// - public NativeStyleService(string endpointConfigurationName, string remoteAddress) + public ContactService(string endpointConfigurationName, string remoteAddress) : base(endpointConfigurationName, remoteAddress) { } - /// Creates a new instance of the class. + /// Creates a new instance of the class. /// - public NativeStyleService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) + public ContactService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) : base(endpointConfigurationName, remoteAddress) { } - /// Creates a new instance of the class. + /// Creates a new instance of the class. /// - public NativeStyleService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) + public ContactService(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.v201808.NativeStyleServiceInterface.createNativeStyles(Wrappers.NativeStyleService.createNativeStylesRequest request) { - return base.Channel.createNativeStyles(request); + Wrappers.ContactService.createContactsResponse Google.Api.Ads.AdManager.v201908.ContactServiceInterface.createContacts(Wrappers.ContactService.createContactsRequest request) { + return base.Channel.createContacts(request); } - /// Creates new NativeStyle objects. - /// the native styles to create - /// the created native styles with their IDs filled in - public virtual Google.Api.Ads.AdManager.v201808.NativeStyle[] createNativeStyles(Google.Api.Ads.AdManager.v201808.NativeStyle[] nativeStyles) { - Wrappers.NativeStyleService.createNativeStylesRequest inValue = new Wrappers.NativeStyleService.createNativeStylesRequest(); - inValue.nativeStyles = nativeStyles; - Wrappers.NativeStyleService.createNativeStylesResponse retVal = ((Google.Api.Ads.AdManager.v201808.NativeStyleServiceInterface)(this)).createNativeStyles(inValue); + /// Creates new Contact objects. + /// the contacts to create + /// the created contacts with their IDs filled in + public virtual Google.Api.Ads.AdManager.v201908.Contact[] createContacts(Google.Api.Ads.AdManager.v201908.Contact[] contacts) { + Wrappers.ContactService.createContactsRequest inValue = new Wrappers.ContactService.createContactsRequest(); + inValue.contacts = contacts; + Wrappers.ContactService.createContactsResponse retVal = ((Google.Api.Ads.AdManager.v201908.ContactServiceInterface)(this)).createContacts(inValue); return retVal.rval; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201808.NativeStyleServiceInterface.createNativeStylesAsync(Wrappers.NativeStyleService.createNativeStylesRequest request) { - return base.Channel.createNativeStylesAsync(request); - } - - public virtual System.Threading.Tasks.Task createNativeStylesAsync(Google.Api.Ads.AdManager.v201808.NativeStyle[] nativeStyles) { - Wrappers.NativeStyleService.createNativeStylesRequest inValue = new Wrappers.NativeStyleService.createNativeStylesRequest(); - inValue.nativeStyles = nativeStyles; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201808.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
- ///
a Publisher Query Language statement used to - /// filter a set of native styles. - /// the native styles that match the given filter - public virtual Google.Api.Ads.AdManager.v201808.NativeStylePage getNativeStylesByStatement(Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.getNativeStylesByStatement(filterStatement); + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201908.ContactServiceInterface.createContactsAsync(Wrappers.ContactService.createContactsRequest request) { + return base.Channel.createContactsAsync(request); } - public virtual System.Threading.Tasks.Task getNativeStylesByStatementAsync(Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.getNativeStylesByStatementAsync(filterStatement); + public virtual System.Threading.Tasks.Task createContactsAsync(Google.Api.Ads.AdManager.v201908.Contact[] contacts) { + Wrappers.ContactService.createContactsRequest inValue = new Wrappers.ContactService.createContactsRequest(); + inValue.contacts = contacts; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201908.ContactServiceInterface)(this)).createContactsAsync(inValue)).Result.rval); } - /// Performs actions on native styles that match the given - /// Statement. - /// the action to perform - /// a Publisher Query Language statement to filter a - /// set of native styles - /// the result of the action performed - public virtual Google.Api.Ads.AdManager.v201808.UpdateResult performNativeStyleAction(Google.Api.Ads.AdManager.v201808.NativeStyleAction nativeStyleAction, Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.performNativeStyleAction(nativeStyleAction, filterStatement); + /// 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
+ ///
a Publisher Query Language statement used to filter a + /// set of contacts + /// the contacts that match the given filter + public virtual Google.Api.Ads.AdManager.v201908.ContactPage getContactsByStatement(Google.Api.Ads.AdManager.v201908.Statement statement) { + return base.Channel.getContactsByStatement(statement); } - public virtual System.Threading.Tasks.Task performNativeStyleActionAsync(Google.Api.Ads.AdManager.v201808.NativeStyleAction nativeStyleAction, Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.performNativeStyleActionAsync(nativeStyleAction, filterStatement); + public virtual System.Threading.Tasks.Task getContactsByStatementAsync(Google.Api.Ads.AdManager.v201908.Statement statement) { + return base.Channel.getContactsByStatementAsync(statement); } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.NativeStyleService.updateNativeStylesResponse Google.Api.Ads.AdManager.v201808.NativeStyleServiceInterface.updateNativeStyles(Wrappers.NativeStyleService.updateNativeStylesRequest request) { - return base.Channel.updateNativeStyles(request); + Wrappers.ContactService.updateContactsResponse Google.Api.Ads.AdManager.v201908.ContactServiceInterface.updateContacts(Wrappers.ContactService.updateContactsRequest request) { + return base.Channel.updateContacts(request); } - /// Updates the specified NativeStyle objects. - /// the native styles to be updated - /// the updated native styles - public virtual Google.Api.Ads.AdManager.v201808.NativeStyle[] updateNativeStyles(Google.Api.Ads.AdManager.v201808.NativeStyle[] nativeStyles) { - Wrappers.NativeStyleService.updateNativeStylesRequest inValue = new Wrappers.NativeStyleService.updateNativeStylesRequest(); - inValue.nativeStyles = nativeStyles; - Wrappers.NativeStyleService.updateNativeStylesResponse retVal = ((Google.Api.Ads.AdManager.v201808.NativeStyleServiceInterface)(this)).updateNativeStyles(inValue); + /// Updates the specified Contact objects. + /// the contacts to update + /// the updated contacts + public virtual Google.Api.Ads.AdManager.v201908.Contact[] updateContacts(Google.Api.Ads.AdManager.v201908.Contact[] contacts) { + Wrappers.ContactService.updateContactsRequest inValue = new Wrappers.ContactService.updateContactsRequest(); + inValue.contacts = contacts; + Wrappers.ContactService.updateContactsResponse retVal = ((Google.Api.Ads.AdManager.v201908.ContactServiceInterface)(this)).updateContacts(inValue); return retVal.rval; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201808.NativeStyleServiceInterface.updateNativeStylesAsync(Wrappers.NativeStyleService.updateNativeStylesRequest request) { - return base.Channel.updateNativeStylesAsync(request); + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201908.ContactServiceInterface.updateContactsAsync(Wrappers.ContactService.updateContactsRequest request) { + return base.Channel.updateContactsAsync(request); } - public virtual System.Threading.Tasks.Task updateNativeStylesAsync(Google.Api.Ads.AdManager.v201808.NativeStyle[] nativeStyles) { - Wrappers.NativeStyleService.updateNativeStylesRequest inValue = new Wrappers.NativeStyleService.updateNativeStylesRequest(); - inValue.nativeStyles = nativeStyles; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201808.NativeStyleServiceInterface)(this)).updateNativeStylesAsync(inValue)).Result.rval); + public virtual System.Threading.Tasks.Task updateContactsAsync(Google.Api.Ads.AdManager.v201908.Contact[] contacts) { + Wrappers.ContactService.updateContactsRequest inValue = new Wrappers.ContactService.updateContactsRequest(); + inValue.contacts = contacts; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201908.ContactServiceInterface)(this)).updateContactsAsync(inValue)).Result.rval); } } namespace Wrappers.DaiAuthenticationKeyService @@ -71230,11 +56770,11 @@ 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/v201808", IsWrapped = true)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "createDaiAuthenticationKeys", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201908", IsWrapped = true)] public partial class createDaiAuthenticationKeysRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] [System.Xml.Serialization.XmlElementAttribute("daiAuthenticationKeys")] - public Google.Api.Ads.AdManager.v201808.DaiAuthenticationKey[] daiAuthenticationKeys; + public Google.Api.Ads.AdManager.v201908.DaiAuthenticationKey[] daiAuthenticationKeys; /// Creates a new instance of the class. @@ -71243,7 +56783,7 @@ public createDaiAuthenticationKeysRequest() { /// Creates a new instance of the class. - public createDaiAuthenticationKeysRequest(Google.Api.Ads.AdManager.v201808.DaiAuthenticationKey[] daiAuthenticationKeys) { + public createDaiAuthenticationKeysRequest(Google.Api.Ads.AdManager.v201908.DaiAuthenticationKey[] daiAuthenticationKeys) { this.daiAuthenticationKeys = daiAuthenticationKeys; } } @@ -71252,11 +56792,11 @@ public createDaiAuthenticationKeysRequest(Google.Api.Ads.AdManager.v201808.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/v201808", IsWrapped = true)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "createDaiAuthenticationKeysResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201908", IsWrapped = true)] public partial class createDaiAuthenticationKeysResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v201808.DaiAuthenticationKey[] rval; + public Google.Api.Ads.AdManager.v201908.DaiAuthenticationKey[] rval; /// Creates a new instance of the class. @@ -71265,7 +56805,7 @@ public createDaiAuthenticationKeysResponse() { /// Creates a new instance of the class. - public createDaiAuthenticationKeysResponse(Google.Api.Ads.AdManager.v201808.DaiAuthenticationKey[] rval) { + public createDaiAuthenticationKeysResponse(Google.Api.Ads.AdManager.v201908.DaiAuthenticationKey[] rval) { this.rval = rval; } } @@ -71274,11 +56814,11 @@ public createDaiAuthenticationKeysResponse(Google.Api.Ads.AdManager.v201808.DaiA [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/v201808", IsWrapped = true)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "updateDaiAuthenticationKeys", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201908", IsWrapped = true)] public partial class updateDaiAuthenticationKeysRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] [System.Xml.Serialization.XmlElementAttribute("daiAuthenticationKeys")] - public Google.Api.Ads.AdManager.v201808.DaiAuthenticationKey[] daiAuthenticationKeys; + public Google.Api.Ads.AdManager.v201908.DaiAuthenticationKey[] daiAuthenticationKeys; /// Creates a new instance of the class. @@ -71287,7 +56827,7 @@ public updateDaiAuthenticationKeysRequest() { /// Creates a new instance of the class. - public updateDaiAuthenticationKeysRequest(Google.Api.Ads.AdManager.v201808.DaiAuthenticationKey[] daiAuthenticationKeys) { + public updateDaiAuthenticationKeysRequest(Google.Api.Ads.AdManager.v201908.DaiAuthenticationKey[] daiAuthenticationKeys) { this.daiAuthenticationKeys = daiAuthenticationKeys; } } @@ -71296,11 +56836,11 @@ public updateDaiAuthenticationKeysRequest(Google.Api.Ads.AdManager.v201808.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 = "updateDaiAuthenticationKeysResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201808", IsWrapped = true)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "updateDaiAuthenticationKeysResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201908", IsWrapped = true)] public partial class updateDaiAuthenticationKeysResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v201808.DaiAuthenticationKey[] rval; + public Google.Api.Ads.AdManager.v201908.DaiAuthenticationKey[] rval; /// Creates a new instance of the class. @@ -71309,7 +56849,7 @@ public updateDaiAuthenticationKeysResponse() { /// Creates a new instance of the class. - public updateDaiAuthenticationKeysResponse(Google.Api.Ads.AdManager.v201808.DaiAuthenticationKey[] rval) { + public updateDaiAuthenticationKeysResponse(Google.Api.Ads.AdManager.v201908.DaiAuthenticationKey[] rval) { this.rval = rval; } } @@ -71321,7 +56861,7 @@ public updateDaiAuthenticationKeysResponse(Google.Api.Ads.AdManager.v201808.DaiA [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public partial class DaiAuthenticationKey { private long idField; @@ -71472,7 +57012,7 @@ public bool keyTypeSpecified { ///
[System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public enum DaiAuthenticationKeyStatus { /// The value returned if the actual value is not exposed by the requested API /// version. @@ -71494,7 +57034,7 @@ public enum DaiAuthenticationKeyStatus { /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public enum DaiAuthenticationKeyType { /// The value returned if the actual value is not exposed by the requested API /// version. @@ -71517,7 +57057,7 @@ public enum DaiAuthenticationKeyType { [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public partial class DaiAuthenticationKeyActionError : ApiError { private DaiAuthenticationKeyActionErrorReason reasonField; @@ -71554,7 +57094,7 @@ public bool reasonSpecified { /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "DaiAuthenticationKeyActionError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "DaiAuthenticationKeyActionError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public enum DaiAuthenticationKeyActionErrorReason { /// The operation is not applicable to the current status. /// @@ -71575,12 +57115,12 @@ public enum DaiAuthenticationKeyActionErrorReason { [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", ConfigurationName = "Google.Api.Ads.AdManager.v201808.DaiAuthenticationKeyServiceInterface")] + [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", ConfigurationName = "Google.Api.Ads.AdManager.v201908.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.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201908.ApiException), Action = "", Name = "ApiExceptionFault")] [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] @@ -71590,30 +57130,30 @@ public interface DaiAuthenticationKeyServiceInterface System.Threading.Tasks.Task createDaiAuthenticationKeysAsync(Wrappers.DaiAuthenticationKeyService.createDaiAuthenticationKeysRequest request); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201908.ApiException), Action = "", Name = "ApiExceptionFault")] [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v201808.DaiAuthenticationKeyPage getDaiAuthenticationKeysByStatement(Google.Api.Ads.AdManager.v201808.Statement filterStatement); + Google.Api.Ads.AdManager.v201908.DaiAuthenticationKeyPage getDaiAuthenticationKeysByStatement(Google.Api.Ads.AdManager.v201908.Statement filterStatement); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getDaiAuthenticationKeysByStatementAsync(Google.Api.Ads.AdManager.v201808.Statement filterStatement); + System.Threading.Tasks.Task getDaiAuthenticationKeysByStatementAsync(Google.Api.Ads.AdManager.v201908.Statement filterStatement); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201908.ApiException), Action = "", Name = "ApiExceptionFault")] [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v201808.UpdateResult performDaiAuthenticationKeyAction(Google.Api.Ads.AdManager.v201808.DaiAuthenticationKeyAction daiAuthenticationKeyAction, Google.Api.Ads.AdManager.v201808.Statement filterStatement); + Google.Api.Ads.AdManager.v201908.UpdateResult performDaiAuthenticationKeyAction(Google.Api.Ads.AdManager.v201908.DaiAuthenticationKeyAction daiAuthenticationKeyAction, Google.Api.Ads.AdManager.v201908.Statement filterStatement); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task performDaiAuthenticationKeyActionAsync(Google.Api.Ads.AdManager.v201808.DaiAuthenticationKeyAction daiAuthenticationKeyAction, Google.Api.Ads.AdManager.v201808.Statement filterStatement); + System.Threading.Tasks.Task performDaiAuthenticationKeyActionAsync(Google.Api.Ads.AdManager.v201908.DaiAuthenticationKeyAction daiAuthenticationKeyAction, Google.Api.Ads.AdManager.v201908.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.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201908.ApiException), Action = "", Name = "ApiExceptionFault")] [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] @@ -71631,7 +57171,7 @@ public interface DaiAuthenticationKeyServiceInterface [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public partial class DaiAuthenticationKeyPage { private int totalResultSetSizeField; @@ -71718,7 +57258,7 @@ public DaiAuthenticationKey[] results { [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public abstract partial class DaiAuthenticationKeyAction { } @@ -71730,7 +57270,7 @@ public abstract partial class DaiAuthenticationKeyAction { [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public partial class DeactivateDaiAuthenticationKeys : DaiAuthenticationKeyAction { } @@ -71742,13 +57282,13 @@ public partial class DeactivateDaiAuthenticationKeys : DaiAuthenticationKeyActio [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public partial class ActivateDaiAuthenticationKeys : DaiAuthenticationKeyAction { } [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public interface DaiAuthenticationKeyServiceInterfaceChannel : Google.Api.Ads.AdManager.v201808.DaiAuthenticationKeyServiceInterface, System.ServiceModel.IClientChannel + public interface DaiAuthenticationKeyServiceInterfaceChannel : Google.Api.Ads.AdManager.v201908.DaiAuthenticationKeyServiceInterface, System.ServiceModel.IClientChannel { } @@ -71789,7 +57329,7 @@ public DaiAuthenticationKeyService(System.ServiceModel.Channels.Binding binding, } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.DaiAuthenticationKeyService.createDaiAuthenticationKeysResponse Google.Api.Ads.AdManager.v201808.DaiAuthenticationKeyServiceInterface.createDaiAuthenticationKeys(Wrappers.DaiAuthenticationKeyService.createDaiAuthenticationKeysRequest request) { + Wrappers.DaiAuthenticationKeyService.createDaiAuthenticationKeysResponse Google.Api.Ads.AdManager.v201908.DaiAuthenticationKeyServiceInterface.createDaiAuthenticationKeys(Wrappers.DaiAuthenticationKeyService.createDaiAuthenticationKeysRequest request) { return base.Channel.createDaiAuthenticationKeys(request); } @@ -71799,22 +57339,22 @@ Wrappers.DaiAuthenticationKeyService.createDaiAuthenticationKeysResponse Google. ///
the DAI authentication keys to /// create /// the created DAI authentication keys with their IDs filled in - public virtual Google.Api.Ads.AdManager.v201808.DaiAuthenticationKey[] createDaiAuthenticationKeys(Google.Api.Ads.AdManager.v201808.DaiAuthenticationKey[] daiAuthenticationKeys) { + public virtual Google.Api.Ads.AdManager.v201908.DaiAuthenticationKey[] createDaiAuthenticationKeys(Google.Api.Ads.AdManager.v201908.DaiAuthenticationKey[] daiAuthenticationKeys) { Wrappers.DaiAuthenticationKeyService.createDaiAuthenticationKeysRequest inValue = new Wrappers.DaiAuthenticationKeyService.createDaiAuthenticationKeysRequest(); inValue.daiAuthenticationKeys = daiAuthenticationKeys; - Wrappers.DaiAuthenticationKeyService.createDaiAuthenticationKeysResponse retVal = ((Google.Api.Ads.AdManager.v201808.DaiAuthenticationKeyServiceInterface)(this)).createDaiAuthenticationKeys(inValue); + Wrappers.DaiAuthenticationKeyService.createDaiAuthenticationKeysResponse retVal = ((Google.Api.Ads.AdManager.v201908.DaiAuthenticationKeyServiceInterface)(this)).createDaiAuthenticationKeys(inValue); return retVal.rval; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201808.DaiAuthenticationKeyServiceInterface.createDaiAuthenticationKeysAsync(Wrappers.DaiAuthenticationKeyService.createDaiAuthenticationKeysRequest request) { + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201908.DaiAuthenticationKeyServiceInterface.createDaiAuthenticationKeysAsync(Wrappers.DaiAuthenticationKeyService.createDaiAuthenticationKeysRequest request) { return base.Channel.createDaiAuthenticationKeysAsync(request); } - public virtual System.Threading.Tasks.Task createDaiAuthenticationKeysAsync(Google.Api.Ads.AdManager.v201808.DaiAuthenticationKey[] daiAuthenticationKeys) { + public virtual System.Threading.Tasks.Task createDaiAuthenticationKeysAsync(Google.Api.Ads.AdManager.v201908.DaiAuthenticationKey[] daiAuthenticationKeys) { Wrappers.DaiAuthenticationKeyService.createDaiAuthenticationKeysRequest inValue = new Wrappers.DaiAuthenticationKeyService.createDaiAuthenticationKeysRequest(); inValue.daiAuthenticationKeys = daiAuthenticationKeys; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201808.DaiAuthenticationKeyServiceInterface)(this)).createDaiAuthenticationKeysAsync(inValue)).Result.rval); + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201908.DaiAuthenticationKeyServiceInterface)(this)).createDaiAuthenticationKeysAsync(inValue)).Result.rval); } /// Gets a DaiAuthenticationKeyPage of a Publisher Query Language statement to filter a /// list of DAI authentication keys /// the DAI authentication keys that match the filter - public virtual Google.Api.Ads.AdManager.v201808.DaiAuthenticationKeyPage getDaiAuthenticationKeysByStatement(Google.Api.Ads.AdManager.v201808.Statement filterStatement) { + public virtual Google.Api.Ads.AdManager.v201908.DaiAuthenticationKeyPage getDaiAuthenticationKeysByStatement(Google.Api.Ads.AdManager.v201908.Statement filterStatement) { return base.Channel.getDaiAuthenticationKeysByStatement(filterStatement); } - public virtual System.Threading.Tasks.Task getDaiAuthenticationKeysByStatementAsync(Google.Api.Ads.AdManager.v201808.Statement filterStatement) { + public virtual System.Threading.Tasks.Task getDaiAuthenticationKeysByStatementAsync(Google.Api.Ads.AdManager.v201908.Statement filterStatement) { return base.Channel.getDaiAuthenticationKeysByStatementAsync(filterStatement); } @@ -71848,16 +57388,16 @@ public virtual Google.Api.Ads.AdManager.v201808.DaiAuthenticationKeyPage getDaiA /// a Publisher Query Language statement used to /// filter a set of live stream events /// the result of the action performed - public virtual Google.Api.Ads.AdManager.v201808.UpdateResult performDaiAuthenticationKeyAction(Google.Api.Ads.AdManager.v201808.DaiAuthenticationKeyAction daiAuthenticationKeyAction, Google.Api.Ads.AdManager.v201808.Statement filterStatement) { + public virtual Google.Api.Ads.AdManager.v201908.UpdateResult performDaiAuthenticationKeyAction(Google.Api.Ads.AdManager.v201908.DaiAuthenticationKeyAction daiAuthenticationKeyAction, Google.Api.Ads.AdManager.v201908.Statement filterStatement) { return base.Channel.performDaiAuthenticationKeyAction(daiAuthenticationKeyAction, filterStatement); } - public virtual System.Threading.Tasks.Task performDaiAuthenticationKeyActionAsync(Google.Api.Ads.AdManager.v201808.DaiAuthenticationKeyAction daiAuthenticationKeyAction, Google.Api.Ads.AdManager.v201808.Statement filterStatement) { + public virtual System.Threading.Tasks.Task performDaiAuthenticationKeyActionAsync(Google.Api.Ads.AdManager.v201908.DaiAuthenticationKeyAction daiAuthenticationKeyAction, Google.Api.Ads.AdManager.v201908.Statement filterStatement) { return base.Channel.performDaiAuthenticationKeyActionAsync(daiAuthenticationKeyAction, filterStatement); } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.DaiAuthenticationKeyService.updateDaiAuthenticationKeysResponse Google.Api.Ads.AdManager.v201808.DaiAuthenticationKeyServiceInterface.updateDaiAuthenticationKeys(Wrappers.DaiAuthenticationKeyService.updateDaiAuthenticationKeysRequest request) { + Wrappers.DaiAuthenticationKeyService.updateDaiAuthenticationKeysResponse Google.Api.Ads.AdManager.v201908.DaiAuthenticationKeyServiceInterface.updateDaiAuthenticationKeys(Wrappers.DaiAuthenticationKeyService.updateDaiAuthenticationKeysRequest request) { return base.Channel.updateDaiAuthenticationKeys(request); } @@ -71868,22 +57408,22 @@ Wrappers.DaiAuthenticationKeyService.updateDaiAuthenticationKeysResponse Google. /// the updated DAI authentication keys /// if there is an error updating the DAI /// authentication keys - public virtual Google.Api.Ads.AdManager.v201808.DaiAuthenticationKey[] updateDaiAuthenticationKeys(Google.Api.Ads.AdManager.v201808.DaiAuthenticationKey[] daiAuthenticationKeys) { + public virtual Google.Api.Ads.AdManager.v201908.DaiAuthenticationKey[] updateDaiAuthenticationKeys(Google.Api.Ads.AdManager.v201908.DaiAuthenticationKey[] daiAuthenticationKeys) { Wrappers.DaiAuthenticationKeyService.updateDaiAuthenticationKeysRequest inValue = new Wrappers.DaiAuthenticationKeyService.updateDaiAuthenticationKeysRequest(); inValue.daiAuthenticationKeys = daiAuthenticationKeys; - Wrappers.DaiAuthenticationKeyService.updateDaiAuthenticationKeysResponse retVal = ((Google.Api.Ads.AdManager.v201808.DaiAuthenticationKeyServiceInterface)(this)).updateDaiAuthenticationKeys(inValue); + Wrappers.DaiAuthenticationKeyService.updateDaiAuthenticationKeysResponse retVal = ((Google.Api.Ads.AdManager.v201908.DaiAuthenticationKeyServiceInterface)(this)).updateDaiAuthenticationKeys(inValue); return retVal.rval; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201808.DaiAuthenticationKeyServiceInterface.updateDaiAuthenticationKeysAsync(Wrappers.DaiAuthenticationKeyService.updateDaiAuthenticationKeysRequest request) { + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201908.DaiAuthenticationKeyServiceInterface.updateDaiAuthenticationKeysAsync(Wrappers.DaiAuthenticationKeyService.updateDaiAuthenticationKeysRequest request) { return base.Channel.updateDaiAuthenticationKeysAsync(request); } - public virtual System.Threading.Tasks.Task updateDaiAuthenticationKeysAsync(Google.Api.Ads.AdManager.v201808.DaiAuthenticationKey[] daiAuthenticationKeys) { + public virtual System.Threading.Tasks.Task updateDaiAuthenticationKeysAsync(Google.Api.Ads.AdManager.v201908.DaiAuthenticationKey[] daiAuthenticationKeys) { Wrappers.DaiAuthenticationKeyService.updateDaiAuthenticationKeysRequest inValue = new Wrappers.DaiAuthenticationKeyService.updateDaiAuthenticationKeysRequest(); inValue.daiAuthenticationKeys = daiAuthenticationKeys; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201808.DaiAuthenticationKeyServiceInterface)(this)).updateDaiAuthenticationKeysAsync(inValue)).Result.rval); + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201908.DaiAuthenticationKeyServiceInterface)(this)).updateDaiAuthenticationKeysAsync(inValue)).Result.rval); } } namespace Wrappers.AudienceSegmentService @@ -71891,11 +57431,11 @@ 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/v201808", IsWrapped = true)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "createAudienceSegments", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201908", IsWrapped = true)] public partial class createAudienceSegmentsRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] [System.Xml.Serialization.XmlElementAttribute("segments")] - public Google.Api.Ads.AdManager.v201808.FirstPartyAudienceSegment[] segments; + public Google.Api.Ads.AdManager.v201908.FirstPartyAudienceSegment[] segments; /// Creates a new instance of the class. @@ -71904,7 +57444,7 @@ public createAudienceSegmentsRequest() { /// Creates a new instance of the class. - public createAudienceSegmentsRequest(Google.Api.Ads.AdManager.v201808.FirstPartyAudienceSegment[] segments) { + public createAudienceSegmentsRequest(Google.Api.Ads.AdManager.v201908.FirstPartyAudienceSegment[] segments) { this.segments = segments; } } @@ -71913,11 +57453,11 @@ public createAudienceSegmentsRequest(Google.Api.Ads.AdManager.v201808.FirstParty [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/v201808", IsWrapped = true)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "createAudienceSegmentsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201908", IsWrapped = true)] public partial class createAudienceSegmentsResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v201808.FirstPartyAudienceSegment[] rval; + public Google.Api.Ads.AdManager.v201908.FirstPartyAudienceSegment[] rval; /// Creates a new instance of the class. @@ -71926,7 +57466,7 @@ public createAudienceSegmentsResponse() { /// Creates a new instance of the class. - public createAudienceSegmentsResponse(Google.Api.Ads.AdManager.v201808.FirstPartyAudienceSegment[] rval) { + public createAudienceSegmentsResponse(Google.Api.Ads.AdManager.v201908.FirstPartyAudienceSegment[] rval) { this.rval = rval; } } @@ -71935,11 +57475,11 @@ public createAudienceSegmentsResponse(Google.Api.Ads.AdManager.v201808.FirstPart [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/v201808", IsWrapped = true)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "updateAudienceSegments", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201908", IsWrapped = true)] public partial class updateAudienceSegmentsRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] [System.Xml.Serialization.XmlElementAttribute("segments")] - public Google.Api.Ads.AdManager.v201808.FirstPartyAudienceSegment[] segments; + public Google.Api.Ads.AdManager.v201908.FirstPartyAudienceSegment[] segments; /// Creates a new instance of the class. @@ -71948,7 +57488,7 @@ public updateAudienceSegmentsRequest() { /// Creates a new instance of the class. - public updateAudienceSegmentsRequest(Google.Api.Ads.AdManager.v201808.FirstPartyAudienceSegment[] segments) { + public updateAudienceSegmentsRequest(Google.Api.Ads.AdManager.v201908.FirstPartyAudienceSegment[] segments) { this.segments = segments; } } @@ -71957,11 +57497,11 @@ public updateAudienceSegmentsRequest(Google.Api.Ads.AdManager.v201808.FirstParty [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/v201808", IsWrapped = true)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "updateAudienceSegmentsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201908", IsWrapped = true)] public partial class updateAudienceSegmentsResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v201808.FirstPartyAudienceSegment[] rval; + public Google.Api.Ads.AdManager.v201908.FirstPartyAudienceSegment[] rval; /// Creates a new instance of the class. @@ -71970,7 +57510,7 @@ public updateAudienceSegmentsResponse() { /// Creates a new instance of the class. - public updateAudienceSegmentsResponse(Google.Api.Ads.AdManager.v201808.FirstPartyAudienceSegment[] rval) { + public updateAudienceSegmentsResponse(Google.Api.Ads.AdManager.v201908.FirstPartyAudienceSegment[] rval) { this.rval = rval; } } @@ -71982,7 +57522,7 @@ public updateAudienceSegmentsResponse(Google.Api.Ads.AdManager.v201808.FirstPart [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public partial class FirstPartyAudienceSegmentRule { private InventoryTargeting inventoryRuleField; @@ -72045,7 +57585,7 @@ public CustomCriteriaSet customCriteriaRule { [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public partial class AudienceSegmentDataProvider { private string nameField; @@ -72076,7 +57616,7 @@ public string name { [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public partial class AudienceSegment { private long idField; @@ -72254,1418 +57794,663 @@ public long mobileWebSize { this.mobileWebSizeField = value; this.mobileWebSizeSpecified = true; } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool mobileWebSizeSpecified { - get { - return this.mobileWebSizeFieldSpecified; - } - set { - this.mobileWebSizeFieldSpecified = value; - } - } - - /// Number of unique IDFA identifiers in the AudienceSegment. This attribute is read-only. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 7)] - public long idfaSize { - get { - return this.idfaSizeField; - } - set { - this.idfaSizeField = value; - this.idfaSizeSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool idfaSizeSpecified { - get { - return this.idfaSizeFieldSpecified; - } - set { - this.idfaSizeFieldSpecified = value; - } - } - - /// 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.adIdSizeField; - } - set { - this.adIdSizeField = value; - this.adIdSizeSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool adIdSizeSpecified { - get { - return this.adIdSizeFieldSpecified; - } - set { - this.adIdSizeFieldSpecified = value; - } - } - - /// Number of unique PPID (publisher provided identifiers) in the AudienceSegment. This attribute is read-only. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 9)] - public long ppidSize { - get { - return this.ppidSizeField; - } - set { - this.ppidSizeField = value; - this.ppidSizeSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool ppidSizeSpecified { - get { - return this.ppidSizeFieldSpecified; - } - set { - this.ppidSizeFieldSpecified = value; - } - } - - /// 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.dataProviderField; - } - set { - this.dataProviderField = value; - } - } - - /// Type of the segment. This attribute is readonly and is assigned by Google. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 11)] - public AudienceSegmentType 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; - } - } - } - - - /// Specifies the statuses for AudienceSegment - /// objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AudienceSegment.Status", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum AudienceSegmentStatus { - /// 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, - } - - - /// Specifies types for AudienceSegment objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AudienceSegment.Type", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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, - } - - - /// A SharedAudienceSegment is an AudienceSegment owned by another entity and shared - /// with the publisher network. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class SharedAudienceSegment : AudienceSegment { - } - - - /// A ThirdPartyAudienceSegment is an AudienceSegment owned by a data provider and licensed - /// to the Ad Manager publisher. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ThirdPartyAudienceSegment : AudienceSegment { - private AudienceSegmentApprovalStatus approvalStatusField; - - private bool approvalStatusFieldSpecified; - - private Money costField; - - private LicenseType licenseTypeField; - - private bool licenseTypeFieldSpecified; - - private DateTime startDateTimeField; - - private DateTime endDateTimeField; - - /// Specifies if the publisher has approved or rejected the segment. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public AudienceSegmentApprovalStatus approvalStatus { - get { - return this.approvalStatusField; - } - set { - this.approvalStatusField = value; - this.approvalStatusSpecified = true; - } - } - - /// 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; - } - } - - /// 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 { - get { - return this.costField; - } - set { - this.costField = value; - } - } - - /// Specifies the license type of the external segment. This attribute is read-only. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public LicenseType licenseType { - get { - return this.licenseTypeField; - } - set { - this.licenseTypeField = value; - this.licenseTypeSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool licenseTypeSpecified { - get { - return this.licenseTypeFieldSpecified; - } - set { - this.licenseTypeFieldSpecified = 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. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 3)] - public DateTime startDateTime { - get { - return this.startDateTimeField; - } - set { - this.startDateTimeField = 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. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 4)] - public DateTime endDateTime { - get { - return this.endDateTimeField; - } - set { - this.endDateTimeField = value; - } - } - } - - - /// Approval status values for ThirdPartyAudienceSegment objects. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class RuleBasedFirstPartyAudienceSegmentSummary : FirstPartyAudienceSegment { - private int pageViewsField; - - private bool pageViewsFieldSpecified; - - private int recencyDaysField; - - 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 pageViews { - get { - return this.pageViewsField; - } - set { - this.pageViewsField = value; - this.pageViewsSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool pageViewsSpecified { - get { - return this.pageViewsFieldSpecified; - } - set { - this.pageViewsFieldSpecified = 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. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public int recencyDays { - get { - return this.recencyDaysField; - } - set { - this.recencyDaysField = value; - this.recencyDaysSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool recencyDaysSpecified { - get { - return this.recencyDaysFieldSpecified; - } - set { - this.recencyDaysFieldSpecified = 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. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 2)] - public int membershipExpirationDays { - get { - return this.membershipExpirationDaysField; - } - set { - this.membershipExpirationDaysField = value; - this.membershipExpirationDaysSpecified = true; - } - } - - /// 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; - } - } - } - - - /// A RuleBasedFirstPartyAudienceSegment - /// is a FirstPartyAudienceSegment owned by - /// the publisher network. It contains a rule. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class RuleBasedFirstPartyAudienceSegment : RuleBasedFirstPartyAudienceSegmentSummary { - private FirstPartyAudienceSegmentRule ruleField; - - /// 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 FirstPartyAudienceSegmentRule rule { + } + + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool mobileWebSizeSpecified { get { - return this.ruleField; + return this.mobileWebSizeFieldSpecified; } set { - this.ruleField = value; + this.mobileWebSizeFieldSpecified = 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.

These segments are created by data management - /// platforms or Google Analytics. They cannot be created using the Ad Manager - /// API.

- ///
- [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - 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. + /// Number of unique IDFA identifiers in the AudienceSegment. This attribute is read-only. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public int membershipExpirationDays { + [System.Xml.Serialization.XmlElementAttribute(Order = 7)] + public long idfaSize { get { - return this.membershipExpirationDaysField; + return this.idfaSizeField; } set { - this.membershipExpirationDaysField = value; - this.membershipExpirationDaysSpecified = 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 membershipExpirationDaysSpecified { + public bool idfaSizeSpecified { get { - return this.membershipExpirationDaysFieldSpecified; + return this.idfaSizeFieldSpecified; } set { - this.membershipExpirationDaysFieldSpecified = value; + this.idfaSizeFieldSpecified = value; } } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", ConfigurationName = "Google.Api.Ads.AdManager.v201808.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.v201808.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.v201808.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.v201808.AudienceSegmentPage getAudienceSegmentsByStatement(Google.Api.Ads.AdManager.v201808.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getAudienceSegmentsByStatementAsync(Google.Api.Ads.AdManager.v201808.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201808.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.v201808.UpdateResult performAudienceSegmentAction(Google.Api.Ads.AdManager.v201808.AudienceSegmentAction action, Google.Api.Ads.AdManager.v201808.Statement filterStatement); - - [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task performAudienceSegmentActionAsync(Google.Api.Ads.AdManager.v201808.AudienceSegmentAction action, Google.Api.Ads.AdManager.v201808.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.v201808.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.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class AudienceSegmentPage { - private int totalResultSetSizeField; - - private bool totalResultSetSizeFieldSpecified; - - private int startIndexField; - - private bool startIndexFieldSpecified; - - private AudienceSegment[] resultsField; - /// The size of the total result set to which this page belongs. + /// Number of unique AdID identifiers in the AudienceSegment. This attribute is read-only. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public int totalResultSetSize { + [System.Xml.Serialization.XmlElementAttribute(Order = 8)] + public long adIdSize { get { - return this.totalResultSetSizeField; + return this.adIdSizeField; } set { - this.totalResultSetSizeField = value; - this.totalResultSetSizeSpecified = true; + this.adIdSizeField = value; + this.adIdSizeSpecified = 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 adIdSizeSpecified { get { - return this.totalResultSetSizeFieldSpecified; + return this.adIdSizeFieldSpecified; } set { - this.totalResultSetSizeFieldSpecified = value; + this.adIdSizeFieldSpecified = value; } } - /// The absolute index in the total result set on which this page begins. + /// Number of unique PPID (publisher provided identifiers) in the AudienceSegment. This attribute is read-only. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public int startIndex { + [System.Xml.Serialization.XmlElementAttribute(Order = 9)] + public long ppidSize { get { - return this.startIndexField; + return this.ppidSizeField; } set { - this.startIndexField = value; - this.startIndexSpecified = true; + this.ppidSizeField = value; + this.ppidSizeSpecified = 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 ppidSizeSpecified { get { - return this.startIndexFieldSpecified; + return this.ppidSizeFieldSpecified; } set { - this.startIndexFieldSpecified = value; + this.ppidSizeFieldSpecified = value; } } - /// The collection of audience segments contained within this page. + /// Owner data provider of this segment. This attribute is readonly and is assigned + /// by Google. /// - [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] - public AudienceSegment[] results { + [System.Xml.Serialization.XmlElementAttribute(Order = 10)] + public AudienceSegmentDataProvider dataProvider { get { - return this.resultsField; + return this.dataProviderField; } set { - this.resultsField = value; + this.dataProviderField = value; } } - } - - - /// 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.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public abstract partial class AudienceSegmentAction { - } + /// Type of the segment. This attribute is readonly and is assigned by Google. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 11)] + public AudienceSegmentType type { + get { + return this.typeField; + } + set { + this.typeField = value; + this.typeSpecified = true; + } + } - /// Action that can be performed on ThirdPartyAudienceSegment objects to reject - /// them. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class RejectAudienceSegments : AudienceSegmentAction { + /// 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; + } + } } - /// Action that can be performed on FirstPartyAudienceSegment objects to - /// populate them based on last 30 days of traffic. + /// Specifies the statuses for AudienceSegment + /// objects. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class PopulateAudienceSegments : AudienceSegmentAction { + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AudienceSegment.Status", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum AudienceSegmentStatus { + /// 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, } - /// Action that can be performed on FirstPartyAudienceSegment objects to - /// deactivate them. + /// Specifies types for AudienceSegment objects. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class DeactivateAudienceSegments : AudienceSegmentAction { + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AudienceSegment.Type", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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, } - /// Action that can be performed on ThirdPartyAudienceSegment objects to - /// approve them. + /// A SharedAudienceSegment is an AudienceSegment owned by another entity and shared + /// with the publisher network. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ApproveAudienceSegments : AudienceSegmentAction { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class SharedAudienceSegment : AudienceSegment { } - /// Action that can be performed on FirstPartyAudienceSegment objects to - /// activate them. + /// A ThirdPartyAudienceSegment is an AudienceSegment owned by a data provider and licensed + /// to the Ad Manager publisher. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ActivateAudienceSegments : AudienceSegmentAction { - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public interface AudienceSegmentServiceInterfaceChannel : Google.Api.Ads.AdManager.v201808.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 AudienceSegmentService : AdManagerSoapClient, IAudienceSegmentService { - /// Creates a new instance of the - /// class. - public AudienceSegmentService() { - } - - /// Creates a new instance of the - /// class. - public AudienceSegmentService(string endpointConfigurationName) - : base(endpointConfigurationName) { - } - - /// Creates a new instance of the - /// class. - public AudienceSegmentService(string endpointConfigurationName, string remoteAddress) - : base(endpointConfigurationName, remoteAddress) { - } - - /// Creates a new instance of the - /// class. - public AudienceSegmentService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) - : base(endpointConfigurationName, remoteAddress) { - } - - /// Creates a new instance of the - /// class. - public AudienceSegmentService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) - : base(binding, remoteAddress) { - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.AudienceSegmentService.createAudienceSegmentsResponse Google.Api.Ads.AdManager.v201808.AudienceSegmentServiceInterface.createAudienceSegments(Wrappers.AudienceSegmentService.createAudienceSegmentsRequest request) { - return base.Channel.createAudienceSegments(request); - } - - /// Creates new RuleBasedFirstPartyAudienceSegment - /// objects. - /// first-party audience segments to create - /// created first-party audience segments - public virtual Google.Api.Ads.AdManager.v201808.FirstPartyAudienceSegment[] createAudienceSegments(Google.Api.Ads.AdManager.v201808.FirstPartyAudienceSegment[] segments) { - Wrappers.AudienceSegmentService.createAudienceSegmentsRequest inValue = new Wrappers.AudienceSegmentService.createAudienceSegmentsRequest(); - inValue.segments = segments; - Wrappers.AudienceSegmentService.createAudienceSegmentsResponse retVal = ((Google.Api.Ads.AdManager.v201808.AudienceSegmentServiceInterface)(this)).createAudienceSegments(inValue); - return retVal.rval; - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201808.AudienceSegmentServiceInterface.createAudienceSegmentsAsync(Wrappers.AudienceSegmentService.createAudienceSegmentsRequest request) { - return base.Channel.createAudienceSegmentsAsync(request); - } - - public virtual System.Threading.Tasks.Task createAudienceSegmentsAsync(Google.Api.Ads.AdManager.v201808.FirstPartyAudienceSegment[] segments) { - Wrappers.AudienceSegmentService.createAudienceSegmentsRequest inValue = new Wrappers.AudienceSegmentService.createAudienceSegmentsRequest(); - inValue.segments = segments; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201808.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
approvalStatus ThirdPartyAudienceSegment#approvalStatus
cost ThirdPartyAudienceSegment#cost
startDateTime ThirdPartyAudienceSegment#startDateTime
endDateTime ThirdPartyAudienceSegment#endDateTime
- ///
a Publisher Query Language statement used to - /// filter a set of audience segments - /// the audience segments that match the given filter - public virtual Google.Api.Ads.AdManager.v201808.AudienceSegmentPage getAudienceSegmentsByStatement(Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.getAudienceSegmentsByStatement(filterStatement); - } - - public virtual System.Threading.Tasks.Task getAudienceSegmentsByStatementAsync(Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.getAudienceSegmentsByStatementAsync(filterStatement); - } - - /// Performs the given AudienceSegmentAction on - /// the set of segments identified by the given statement. - /// AudienceSegmentAction - /// to perform - /// a Publisher Query Language statement used to - /// filter a set of audience segments - /// UpdateResult indicating the result - public virtual Google.Api.Ads.AdManager.v201808.UpdateResult performAudienceSegmentAction(Google.Api.Ads.AdManager.v201808.AudienceSegmentAction action, Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.performAudienceSegmentAction(action, filterStatement); - } - - public virtual System.Threading.Tasks.Task performAudienceSegmentActionAsync(Google.Api.Ads.AdManager.v201808.AudienceSegmentAction action, Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.performAudienceSegmentActionAsync(action, filterStatement); - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.AudienceSegmentService.updateAudienceSegmentsResponse Google.Api.Ads.AdManager.v201808.AudienceSegmentServiceInterface.updateAudienceSegments(Wrappers.AudienceSegmentService.updateAudienceSegmentsRequest request) { - return base.Channel.updateAudienceSegments(request); - } - - /// Updates the given RuleBasedFirstPartyAudienceSegment - /// objects. - /// first-party audience segments to update - /// updated first-party audience segments - public virtual Google.Api.Ads.AdManager.v201808.FirstPartyAudienceSegment[] updateAudienceSegments(Google.Api.Ads.AdManager.v201808.FirstPartyAudienceSegment[] segments) { - Wrappers.AudienceSegmentService.updateAudienceSegmentsRequest inValue = new Wrappers.AudienceSegmentService.updateAudienceSegmentsRequest(); - inValue.segments = segments; - Wrappers.AudienceSegmentService.updateAudienceSegmentsResponse retVal = ((Google.Api.Ads.AdManager.v201808.AudienceSegmentServiceInterface)(this)).updateAudienceSegments(inValue); - return retVal.rval; - } + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class ThirdPartyAudienceSegment : AudienceSegment { + private AudienceSegmentApprovalStatus approvalStatusField; - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201808.AudienceSegmentServiceInterface.updateAudienceSegmentsAsync(Wrappers.AudienceSegmentService.updateAudienceSegmentsRequest request) { - return base.Channel.updateAudienceSegmentsAsync(request); - } + private bool approvalStatusFieldSpecified; - public virtual System.Threading.Tasks.Task updateAudienceSegmentsAsync(Google.Api.Ads.AdManager.v201808.FirstPartyAudienceSegment[] segments) { - Wrappers.AudienceSegmentService.updateAudienceSegmentsRequest inValue = new Wrappers.AudienceSegmentService.updateAudienceSegmentsRequest(); - inValue.segments = segments; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201808.AudienceSegmentServiceInterface)(this)).updateAudienceSegmentsAsync(inValue)).Result.rval); - } - } - namespace Wrappers.BaseRateService - { - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "createBaseRates", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201808", IsWrapped = true)] - public partial class createBaseRatesRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("baseRates")] - public Google.Api.Ads.AdManager.v201808.BaseRate[] baseRates; + private Money costField; - /// Creates a new instance of the - /// class. - public createBaseRatesRequest() { - } + private LicenseType licenseTypeField; - /// Creates a new instance of the - /// class. - public createBaseRatesRequest(Google.Api.Ads.AdManager.v201808.BaseRate[] baseRates) { - this.baseRates = baseRates; - } - } + private bool licenseTypeFieldSpecified; + private DateTime startDateTimeField; - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName = "createBaseRatesResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201808", IsWrapped = true)] - public partial class createBaseRatesResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v201808.BaseRate[] rval; + private DateTime endDateTimeField; - /// Creates a new instance of the - /// class. - public createBaseRatesResponse() { + /// Specifies if the publisher has approved or rejected the segment. + /// + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public AudienceSegmentApprovalStatus approvalStatus { + get { + return this.approvalStatusField; } - - /// Creates a new instance of the - /// class. - public createBaseRatesResponse(Google.Api.Ads.AdManager.v201808.BaseRate[] rval) { - this.rval = rval; + set { + this.approvalStatusField = value; + this.approvalStatusSpecified = 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 = "updateBaseRates", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201808", IsWrapped = true)] - public partial class updateBaseRatesRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("baseRates")] - public Google.Api.Ads.AdManager.v201808.BaseRate[] baseRates; - - /// Creates a new instance of the - /// class. - public updateBaseRatesRequest() { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool approvalStatusSpecified { + get { + return this.approvalStatusFieldSpecified; } - - /// Creates a new instance of the - /// class. - public updateBaseRatesRequest(Google.Api.Ads.AdManager.v201808.BaseRate[] baseRates) { - this.baseRates = baseRates; + set { + this.approvalStatusFieldSpecified = 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 = "updateBaseRatesResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201808", IsWrapped = true)] - public partial class updateBaseRatesResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] - [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v201808.BaseRate[] rval; - - /// Creates a new instance of the - /// class. - public updateBaseRatesResponse() { + /// 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 { + get { + return this.costField; } - - /// Creates a new instance of the - /// class. - public updateBaseRatesResponse(Google.Api.Ads.AdManager.v201808.BaseRate[] rval) { - this.rval = rval; + set { + this.costField = value; } } - } - /// A base rate that applies to a product template, product or product package item - /// belonging to rate card. - /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(UnknownBaseRate))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ProductTemplateBaseRate))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ProductPackageItemBaseRate))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ProductBaseRate))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public abstract partial class BaseRate { - private long rateCardIdField; - - private bool rateCardIdFieldSpecified; - - private long idField; - private bool idFieldSpecified; - - /// The ID of the RateCard object to which this base rate - /// belongs. This attribute is required and cannot be changed after creation. + /// Specifies the license type of the external segment. This attribute is read-only. /// - [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public long rateCardId { + [System.Xml.Serialization.XmlElementAttribute(Order = 2)] + public LicenseType licenseType { get { - return this.rateCardIdField; + return this.licenseTypeField; } set { - this.rateCardIdField = value; - this.rateCardIdSpecified = true; + this.licenseTypeField = value; + this.licenseTypeSpecified = 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 rateCardIdSpecified { + public bool licenseTypeSpecified { get { - return this.rateCardIdFieldSpecified; + return this.licenseTypeFieldSpecified; } set { - this.rateCardIdFieldSpecified = value; + this.licenseTypeFieldSpecified = value; } } - /// Uniquely identifies the BaseRate object. This attribute is - /// read-only and is assigned by Google when a base rate is created. + /// 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 long id { + [System.Xml.Serialization.XmlElementAttribute(Order = 3)] + public DateTime startDateTime { get { - return this.idField; + return this.startDateTimeField; } - set { - this.idField = value; - this.idSpecified = true; + set { + this.startDateTimeField = value; } } - /// true, if a value is specified for , - /// false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool idSpecified { + /// 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 = 4)] + public DateTime endDateTime { get { - return this.idFieldSpecified; + return this.endDateTimeField; } set { - this.idFieldSpecified = value; + this.endDateTimeField = value; } } } - /// The BaseRate returned if the actual base rate type is not - /// exposed by the requested API version. + /// Approval status values for ThirdPartyAudienceSegment objects. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class UnknownBaseRate : BaseRate { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public abstract partial class FirstPartyAudienceSegment : AudienceSegment { } - /// A base rate applied to a ProductTemplate. + /// A RuleBasedFirstPartyAudienceSegmentSummary + /// is a FirstPartyAudienceSegment owned by + /// the publisher network. /// + [System.Xml.Serialization.XmlIncludeAttribute(typeof(RuleBasedFirstPartyAudienceSegment))] [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ProductTemplateBaseRate : BaseRate { - private long productTemplateIdField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class RuleBasedFirstPartyAudienceSegmentSummary : FirstPartyAudienceSegment { + private int pageViewsField; + + private bool pageViewsFieldSpecified; + + private int recencyDaysField; + + private bool recencyDaysFieldSpecified; - private bool productTemplateIdFieldSpecified; + private int membershipExpirationDaysField; - private Money rateField; + private bool membershipExpirationDaysFieldSpecified; - /// The ID of ProductTemplate this base rate is - /// applied to. This attribute is required and cannot be changed after creation. + /// 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 long productTemplateId { + public int pageViews { get { - return this.productTemplateIdField; + return this.pageViewsField; } set { - this.productTemplateIdField = value; - this.productTemplateIdSpecified = 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 productTemplateIdSpecified { + public bool pageViewsSpecified { get { - return this.productTemplateIdFieldSpecified; + return this.pageViewsFieldSpecified; } set { - this.productTemplateIdFieldSpecified = value; + this.pageViewsFieldSpecified = value; } } - /// The rate value. This attribute is required. The currency code is read-only. + /// 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 Money rate { + public int recencyDays { get { - return this.rateField; + return this.recencyDaysField; } set { - this.rateField = value; + this.recencyDaysField = value; + this.recencyDaysSpecified = true; } } - } - - - /// A base rate applied to a ProductPackageItem. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ProductPackageItemBaseRate : BaseRate { - private long productPackageItemIdField; - - private bool productPackageItemIdFieldSpecified; - private Money rateField; - - /// The ID of ProductPackageItem this base rate is - /// applied to.

This attribute is required and cannot be changed after - /// creation.

- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 0)] - public long productPackageItemId { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool recencyDaysSpecified { get { - return this.productPackageItemIdField; + return this.recencyDaysFieldSpecified; } set { - this.productPackageItemIdField = value; - this.productPackageItemIdSpecified = true; + this.recencyDaysFieldSpecified = value; } } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool productPackageItemIdSpecified { + /// 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 int membershipExpirationDays { get { - return this.productPackageItemIdFieldSpecified; + return this.membershipExpirationDaysField; } set { - this.productPackageItemIdFieldSpecified = value; + this.membershipExpirationDaysField = value; + this.membershipExpirationDaysSpecified = true; } } - /// The rate value of ProductPackageItem.

This - /// attribute is required and the currency code is read-only.

- ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public Money rate { + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool membershipExpirationDaysSpecified { get { - return this.rateField; + return this.membershipExpirationDaysFieldSpecified; } set { - this.rateField = value; + this.membershipExpirationDaysFieldSpecified = value; } } } - /// A base rate applied to a Product. + /// A RuleBasedFirstPartyAudienceSegment + /// is a FirstPartyAudienceSegment owned by + /// the publisher network. It contains a rule. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class ProductBaseRate : BaseRate { - private long productIdField; - - private bool productIdFieldSpecified; - - private Money rateField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class RuleBasedFirstPartyAudienceSegment : RuleBasedFirstPartyAudienceSegmentSummary { + private FirstPartyAudienceSegmentRule ruleField; - /// The ID of the Product this base rate is applied to. This - /// attribute is required and cannot be changed after creation. + /// 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 long productId { - get { - return this.productIdField; - } - set { - this.productIdField = value; - this.productIdSpecified = true; - } - } - - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool productIdSpecified { - get { - return this.productIdFieldSpecified; - } - set { - this.productIdFieldSpecified = value; - } - } - - /// The rate value to override the rate on the product template. This attribute is - /// required. If null, the product is not associated with this rate - /// card. The currency code is read-only. - /// - [System.Xml.Serialization.XmlElementAttribute(Order = 1)] - public Money rate { + public FirstPartyAudienceSegmentRule rule { get { - return this.rateField; + return this.ruleField; } set { - this.rateField = value; + this.ruleField = value; } } } - /// An error having to do with BaseRate when performing - /// actions. + /// 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.

These segments are created by data management + /// platforms or Google Analytics. They cannot be created using the Ad Manager + /// API.

///
[System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class BaseRateActionError : ApiError { - private BaseRateActionErrorReason reasonField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class NonRuleBasedFirstPartyAudienceSegment : FirstPartyAudienceSegment { + private int membershipExpirationDaysField; - private bool reasonFieldSpecified; + private bool membershipExpirationDaysFieldSpecified; - /// The error reason represented by an enum. + /// 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 = 0)] - public BaseRateActionErrorReason reason { + public int membershipExpirationDays { get { - return this.reasonField; + return this.membershipExpirationDaysField; } set { - this.reasonField = value; - this.reasonSpecified = 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 reasonSpecified { + public bool membershipExpirationDaysSpecified { get { - return this.reasonFieldSpecified; + return this.membershipExpirationDaysFieldSpecified; } set { - this.reasonFieldSpecified = value; + this.membershipExpirationDaysFieldSpecified = value; } } } - /// The reasons for the target error. - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "BaseRateActionError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public enum BaseRateActionErrorReason { - /// Cannot delete a base rate on a product template if its products still have base - /// rates on this rate card. - /// - PRODUCT_BASE_RATE_EXISTS = 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/v201808", ConfigurationName = "Google.Api.Ads.AdManager.v201808.BaseRateServiceInterface")] - public interface BaseRateServiceInterface + [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", ConfigurationName = "Google.Api.Ads.AdManager.v201908.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.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201908.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.BaseRateService.createBaseRatesResponse createBaseRates(Wrappers.BaseRateService.createBaseRatesRequest request); + Wrappers.AudienceSegmentService.createAudienceSegmentsResponse createAudienceSegments(Wrappers.AudienceSegmentService.createAudienceSegmentsRequest request); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task createBaseRatesAsync(Wrappers.BaseRateService.createBaseRatesRequest request); + System.Threading.Tasks.Task createAudienceSegmentsAsync(Wrappers.AudienceSegmentService.createAudienceSegmentsRequest request); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201908.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.v201808.BaseRatePage getBaseRatesByStatement(Google.Api.Ads.AdManager.v201808.Statement filterStatement); + Google.Api.Ads.AdManager.v201908.AudienceSegmentPage getAudienceSegmentsByStatement(Google.Api.Ads.AdManager.v201908.Statement filterStatement); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getBaseRatesByStatementAsync(Google.Api.Ads.AdManager.v201808.Statement filterStatement); + System.Threading.Tasks.Task getAudienceSegmentsByStatementAsync(Google.Api.Ads.AdManager.v201908.Statement filterStatement); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201908.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.v201808.UpdateResult performBaseRateAction(Google.Api.Ads.AdManager.v201808.BaseRateAction baseRateAction, Google.Api.Ads.AdManager.v201808.Statement filterStatement); + Google.Api.Ads.AdManager.v201908.UpdateResult performAudienceSegmentAction(Google.Api.Ads.AdManager.v201908.AudienceSegmentAction action, Google.Api.Ads.AdManager.v201908.Statement filterStatement); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task performBaseRateActionAsync(Google.Api.Ads.AdManager.v201808.BaseRateAction baseRateAction, Google.Api.Ads.AdManager.v201808.Statement filterStatement); + System.Threading.Tasks.Task performAudienceSegmentActionAsync(Google.Api.Ads.AdManager.v201908.AudienceSegmentAction action, Google.Api.Ads.AdManager.v201908.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.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201908.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.BaseRateService.updateBaseRatesResponse updateBaseRates(Wrappers.BaseRateService.updateBaseRatesRequest request); + Wrappers.AudienceSegmentService.updateAudienceSegmentsResponse updateAudienceSegments(Wrappers.AudienceSegmentService.updateAudienceSegmentsRequest request); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - System.Threading.Tasks.Task updateBaseRatesAsync(Wrappers.BaseRateService.updateBaseRatesRequest request); + System.Threading.Tasks.Task updateAudienceSegmentsAsync(Wrappers.AudienceSegmentService.updateAudienceSegmentsRequest request); } - /// Captures a page of BaseRate objects. + /// Represents a page of AudienceSegment objects. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class BaseRatePage { - private BaseRate[] resultsField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class AudienceSegmentPage { + private int totalResultSetSizeField; + + private bool totalResultSetSizeFieldSpecified; private int startIndexField; private bool startIndexFieldSpecified; - private int totalResultSetSizeField; - - private bool totalResultSetSizeFieldSpecified; + private AudienceSegment[] resultsField; - /// The collection of base rates contained within this page. + /// The size of the total result set to which this page belongs. /// - [System.Xml.Serialization.XmlElementAttribute("results", Order = 0)] - public BaseRate[] results { + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public int totalResultSetSize { get { - return this.resultsField; + return this.totalResultSetSizeField; } set { - this.resultsField = value; + 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; } } @@ -73695,191 +58480,248 @@ public bool startIndexSpecified { } } - /// The size of the total result set to which this page belongs. + /// The collection of audience segments contained within this page. /// - [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 { + [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] + public AudienceSegment[] results { get { - return this.totalResultSetSizeFieldSpecified; + return this.resultsField; } set { - this.totalResultSetSizeFieldSpecified = value; + this.resultsField = value; } } } - /// Represents the action that can be performed on BaseRate + /// Action that can be performed on AudienceSegment /// objects. /// - [System.Xml.Serialization.XmlIncludeAttribute(typeof(DeleteBaseRates))] + [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.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public abstract partial class AudienceSegmentAction { + } + + + /// Action that can be performed on ThirdPartyAudienceSegment objects to reject + /// them. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class RejectAudienceSegments : AudienceSegmentAction { + } + + + /// Action that can be performed on FirstPartyAudienceSegment objects to + /// populate them based on last 30 days of traffic. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class PopulateAudienceSegments : AudienceSegmentAction { + } + + + /// Action that can be performed on FirstPartyAudienceSegment objects to + /// deactivate them. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class DeactivateAudienceSegments : AudienceSegmentAction { + } + + + /// Action that can be performed on ThirdPartyAudienceSegment objects to + /// approve them. + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public abstract partial class BaseRateAction { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class ApproveAudienceSegments : AudienceSegmentAction { } - /// The action used to delete BaseRate objects. + /// Action that can be performed on FirstPartyAudienceSegment objects to + /// activate them. /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] - public partial class DeleteBaseRates : BaseRateAction { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class ActivateAudienceSegments : AudienceSegmentAction { } [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public interface BaseRateServiceInterfaceChannel : Google.Api.Ads.AdManager.v201808.BaseRateServiceInterface, System.ServiceModel.IClientChannel + public interface AudienceSegmentServiceInterfaceChannel : Google.Api.Ads.AdManager.v201908.AudienceSegmentServiceInterface, System.ServiceModel.IClientChannel { } - /// Provides methods for managing BaseRate objects.

To use - /// this service, you need to have the new sales management solution enabled on your - /// network. If you do not see a "Sales" tab in DoubleClick for Publishers (DFP), you will - /// not be able to use this service.

+ /// 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 BaseRateService : AdManagerSoapClient, IBaseRateService { - /// Creates a new instance of the class. - /// - public BaseRateService() { + public partial class AudienceSegmentService : AdManagerSoapClient, IAudienceSegmentService { + /// Creates a new instance of the + /// class. + public AudienceSegmentService() { } - /// Creates a new instance of the class. - /// - public BaseRateService(string endpointConfigurationName) + /// Creates a new instance of the + /// class. + public AudienceSegmentService(string endpointConfigurationName) : base(endpointConfigurationName) { } - /// Creates a new instance of the class. - /// - public BaseRateService(string endpointConfigurationName, string remoteAddress) + /// Creates a new instance of the + /// class. + public AudienceSegmentService(string endpointConfigurationName, string remoteAddress) : base(endpointConfigurationName, remoteAddress) { } - /// Creates a new instance of the class. - /// - public BaseRateService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) + /// Creates a new instance of the + /// class. + public AudienceSegmentService(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) : base(endpointConfigurationName, remoteAddress) { } - /// Creates a new instance of the class. - /// - public BaseRateService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) + /// Creates a new instance of the + /// class. + public AudienceSegmentService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) : base(binding, remoteAddress) { } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.BaseRateService.createBaseRatesResponse Google.Api.Ads.AdManager.v201808.BaseRateServiceInterface.createBaseRates(Wrappers.BaseRateService.createBaseRatesRequest request) { - return base.Channel.createBaseRates(request); + Wrappers.AudienceSegmentService.createAudienceSegmentsResponse Google.Api.Ads.AdManager.v201908.AudienceSegmentServiceInterface.createAudienceSegments(Wrappers.AudienceSegmentService.createAudienceSegmentsRequest request) { + return base.Channel.createAudienceSegments(request); } - /// Creates a list of new BaseRate objects. - /// the base rates to be created - /// the base rates with their IDs filled in - public virtual Google.Api.Ads.AdManager.v201808.BaseRate[] createBaseRates(Google.Api.Ads.AdManager.v201808.BaseRate[] baseRates) { - Wrappers.BaseRateService.createBaseRatesRequest inValue = new Wrappers.BaseRateService.createBaseRatesRequest(); - inValue.baseRates = baseRates; - Wrappers.BaseRateService.createBaseRatesResponse retVal = ((Google.Api.Ads.AdManager.v201808.BaseRateServiceInterface)(this)).createBaseRates(inValue); + /// Creates new RuleBasedFirstPartyAudienceSegment + /// objects. + /// first-party audience segments to create + /// created first-party audience segments + public virtual Google.Api.Ads.AdManager.v201908.FirstPartyAudienceSegment[] createAudienceSegments(Google.Api.Ads.AdManager.v201908.FirstPartyAudienceSegment[] segments) { + Wrappers.AudienceSegmentService.createAudienceSegmentsRequest inValue = new Wrappers.AudienceSegmentService.createAudienceSegmentsRequest(); + inValue.segments = segments; + Wrappers.AudienceSegmentService.createAudienceSegmentsResponse retVal = ((Google.Api.Ads.AdManager.v201908.AudienceSegmentServiceInterface)(this)).createAudienceSegments(inValue); return retVal.rval; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201808.BaseRateServiceInterface.createBaseRatesAsync(Wrappers.BaseRateService.createBaseRatesRequest request) { - return base.Channel.createBaseRatesAsync(request); + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201908.AudienceSegmentServiceInterface.createAudienceSegmentsAsync(Wrappers.AudienceSegmentService.createAudienceSegmentsRequest request) { + return base.Channel.createAudienceSegmentsAsync(request); } - public virtual System.Threading.Tasks.Task createBaseRatesAsync(Google.Api.Ads.AdManager.v201808.BaseRate[] baseRates) { - Wrappers.BaseRateService.createBaseRatesRequest inValue = new Wrappers.BaseRateService.createBaseRatesRequest(); - inValue.baseRates = baseRates; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201808.BaseRateServiceInterface)(this)).createBaseRatesAsync(inValue)).Result.rval); + public virtual System.Threading.Tasks.Task createAudienceSegmentsAsync(Google.Api.Ads.AdManager.v201908.FirstPartyAudienceSegment[] segments) { + Wrappers.AudienceSegmentService.createAudienceSegmentsRequest inValue = new Wrappers.AudienceSegmentService.createAudienceSegmentsRequest(); + inValue.segments = segments; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201908.AudienceSegmentServiceInterface)(this)).createAudienceSegmentsAsync(inValue)).Result.rval); } - /// Gets a BaseRatePage of BaseRate objects that satisfy the given Gets an AudienceSegmentPage of AudienceSegment objects that satisfy the given Statement#query. The following fields are supported - /// for filtering: + /// for filtering: + /// + /// + /// + /// + /// + /// + /// + /// + /// + ///
PQL Property Object Property
id AudienceSegment#id
name AudienceSegment#name
status AudienceSegment#status
type AudienceSegment#type
size AudienceSegment#size
dataProviderName AudienceSegmentDataProvider#name
approvalStatus ThirdPartyAudienceSegment#approvalStatus
cost ThirdPartyAudienceSegment#cost
startDateTime ThirdPartyAudienceSegment#startDateTime
endDateTime ThirdPartyAudienceSegment#endDateTime
///
a Publisher Query Language statement used to - /// filter a set of base rates. - /// the page of base rates that match the given filter - /// - /// - /// - ///
PQL Property Object Property
rateCardId BaseRate#rateCardId
id BaseRate#id
productTemplateId ProductTemplateBaseRate#id
- /// Note:#x160;Cannot be combined with productId.
productId ProductBaseRate#id
Note:#x160;Cannot - /// be combined with .
- public virtual Google.Api.Ads.AdManager.v201808.BaseRatePage getBaseRatesByStatement(Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.getBaseRatesByStatement(filterStatement); + /// filter a set of audience segments + /// the audience segments that match the given filter + public virtual Google.Api.Ads.AdManager.v201908.AudienceSegmentPage getAudienceSegmentsByStatement(Google.Api.Ads.AdManager.v201908.Statement filterStatement) { + return base.Channel.getAudienceSegmentsByStatement(filterStatement); } - public virtual System.Threading.Tasks.Task getBaseRatesByStatementAsync(Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.getBaseRatesByStatementAsync(filterStatement); + public virtual System.Threading.Tasks.Task getAudienceSegmentsByStatementAsync(Google.Api.Ads.AdManager.v201908.Statement filterStatement) { + return base.Channel.getAudienceSegmentsByStatementAsync(filterStatement); } - /// Performs actions on BaseRate objects that satisfy the - /// given Statement#query. - /// the action to perform + /// Performs the given AudienceSegmentAction on + /// the set of segments identified by the given statement. + /// AudienceSegmentAction + /// to perform /// a Publisher Query Language statement used to - /// filter a set of base rates. - /// the result of the action performed - public virtual Google.Api.Ads.AdManager.v201808.UpdateResult performBaseRateAction(Google.Api.Ads.AdManager.v201808.BaseRateAction baseRateAction, Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.performBaseRateAction(baseRateAction, filterStatement); + /// filter a set of audience segments + /// UpdateResult indicating the result + public virtual Google.Api.Ads.AdManager.v201908.UpdateResult performAudienceSegmentAction(Google.Api.Ads.AdManager.v201908.AudienceSegmentAction action, Google.Api.Ads.AdManager.v201908.Statement filterStatement) { + return base.Channel.performAudienceSegmentAction(action, filterStatement); } - public virtual System.Threading.Tasks.Task performBaseRateActionAsync(Google.Api.Ads.AdManager.v201808.BaseRateAction baseRateAction, Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.performBaseRateActionAsync(baseRateAction, filterStatement); + public virtual System.Threading.Tasks.Task performAudienceSegmentActionAsync(Google.Api.Ads.AdManager.v201908.AudienceSegmentAction action, Google.Api.Ads.AdManager.v201908.Statement filterStatement) { + return base.Channel.performAudienceSegmentActionAsync(action, filterStatement); } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.BaseRateService.updateBaseRatesResponse Google.Api.Ads.AdManager.v201808.BaseRateServiceInterface.updateBaseRates(Wrappers.BaseRateService.updateBaseRatesRequest request) { - return base.Channel.updateBaseRates(request); + Wrappers.AudienceSegmentService.updateAudienceSegmentsResponse Google.Api.Ads.AdManager.v201908.AudienceSegmentServiceInterface.updateAudienceSegments(Wrappers.AudienceSegmentService.updateAudienceSegmentsRequest request) { + return base.Channel.updateAudienceSegments(request); } - /// Updates the specified BaseRate objects. - /// the base rates to be updated - /// the updated base rates - public virtual Google.Api.Ads.AdManager.v201808.BaseRate[] updateBaseRates(Google.Api.Ads.AdManager.v201808.BaseRate[] baseRates) { - Wrappers.BaseRateService.updateBaseRatesRequest inValue = new Wrappers.BaseRateService.updateBaseRatesRequest(); - inValue.baseRates = baseRates; - Wrappers.BaseRateService.updateBaseRatesResponse retVal = ((Google.Api.Ads.AdManager.v201808.BaseRateServiceInterface)(this)).updateBaseRates(inValue); + /// Updates the given RuleBasedFirstPartyAudienceSegment + /// objects. + /// first-party audience segments to update + /// updated first-party audience segments + public virtual Google.Api.Ads.AdManager.v201908.FirstPartyAudienceSegment[] updateAudienceSegments(Google.Api.Ads.AdManager.v201908.FirstPartyAudienceSegment[] segments) { + Wrappers.AudienceSegmentService.updateAudienceSegmentsRequest inValue = new Wrappers.AudienceSegmentService.updateAudienceSegmentsRequest(); + inValue.segments = segments; + Wrappers.AudienceSegmentService.updateAudienceSegmentsResponse retVal = ((Google.Api.Ads.AdManager.v201908.AudienceSegmentServiceInterface)(this)).updateAudienceSegments(inValue); return retVal.rval; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201808.BaseRateServiceInterface.updateBaseRatesAsync(Wrappers.BaseRateService.updateBaseRatesRequest request) { - return base.Channel.updateBaseRatesAsync(request); + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201908.AudienceSegmentServiceInterface.updateAudienceSegmentsAsync(Wrappers.AudienceSegmentService.updateAudienceSegmentsRequest request) { + return base.Channel.updateAudienceSegmentsAsync(request); } - public virtual System.Threading.Tasks.Task updateBaseRatesAsync(Google.Api.Ads.AdManager.v201808.BaseRate[] baseRates) { - Wrappers.BaseRateService.updateBaseRatesRequest inValue = new Wrappers.BaseRateService.updateBaseRatesRequest(); - inValue.baseRates = baseRates; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201808.BaseRateServiceInterface)(this)).updateBaseRatesAsync(inValue)).Result.rval); + public virtual System.Threading.Tasks.Task updateAudienceSegmentsAsync(Google.Api.Ads.AdManager.v201908.FirstPartyAudienceSegment[] segments) { + Wrappers.AudienceSegmentService.updateAudienceSegmentsRequest inValue = new Wrappers.AudienceSegmentService.updateAudienceSegmentsRequest(); + inValue.segments = segments; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201908.AudienceSegmentServiceInterface)(this)).updateAudienceSegmentsAsync(inValue)).Result.rval); } } namespace Wrappers.CdnConfigurationService @@ -73887,11 +58729,11 @@ 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/v201808", IsWrapped = true)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "createCdnConfigurations", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201908", IsWrapped = true)] public partial class createCdnConfigurationsRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] [System.Xml.Serialization.XmlElementAttribute("cdnConfigurations")] - public Google.Api.Ads.AdManager.v201808.CdnConfiguration[] cdnConfigurations; + public Google.Api.Ads.AdManager.v201908.CdnConfiguration[] cdnConfigurations; /// Creates a new instance of the class. @@ -73900,7 +58742,7 @@ public createCdnConfigurationsRequest() { /// Creates a new instance of the class. - public createCdnConfigurationsRequest(Google.Api.Ads.AdManager.v201808.CdnConfiguration[] cdnConfigurations) { + public createCdnConfigurationsRequest(Google.Api.Ads.AdManager.v201908.CdnConfiguration[] cdnConfigurations) { this.cdnConfigurations = cdnConfigurations; } } @@ -73909,11 +58751,11 @@ public createCdnConfigurationsRequest(Google.Api.Ads.AdManager.v201808.CdnConfig [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/v201808", IsWrapped = true)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "createCdnConfigurationsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201908", IsWrapped = true)] public partial class createCdnConfigurationsResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v201808.CdnConfiguration[] rval; + public Google.Api.Ads.AdManager.v201908.CdnConfiguration[] rval; /// Creates a new instance of the class. @@ -73922,7 +58764,7 @@ public createCdnConfigurationsResponse() { /// Creates a new instance of the class. - public createCdnConfigurationsResponse(Google.Api.Ads.AdManager.v201808.CdnConfiguration[] rval) { + public createCdnConfigurationsResponse(Google.Api.Ads.AdManager.v201908.CdnConfiguration[] rval) { this.rval = rval; } } @@ -73931,11 +58773,11 @@ public createCdnConfigurationsResponse(Google.Api.Ads.AdManager.v201808.CdnConfi [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/v201808", IsWrapped = true)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "updateCdnConfigurations", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201908", IsWrapped = true)] public partial class updateCdnConfigurationsRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] [System.Xml.Serialization.XmlElementAttribute("cdnConfigurations")] - public Google.Api.Ads.AdManager.v201808.CdnConfiguration[] cdnConfigurations; + public Google.Api.Ads.AdManager.v201908.CdnConfiguration[] cdnConfigurations; /// Creates a new instance of the class. @@ -73944,7 +58786,7 @@ public updateCdnConfigurationsRequest() { /// Creates a new instance of the class. - public updateCdnConfigurationsRequest(Google.Api.Ads.AdManager.v201808.CdnConfiguration[] cdnConfigurations) { + public updateCdnConfigurationsRequest(Google.Api.Ads.AdManager.v201908.CdnConfiguration[] cdnConfigurations) { this.cdnConfigurations = cdnConfigurations; } } @@ -73953,11 +58795,11 @@ public updateCdnConfigurationsRequest(Google.Api.Ads.AdManager.v201808.CdnConfig [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/v201808", IsWrapped = true)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "updateCdnConfigurationsResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201908", IsWrapped = true)] public partial class updateCdnConfigurationsResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v201808.CdnConfiguration[] rval; + public Google.Api.Ads.AdManager.v201908.CdnConfiguration[] rval; /// Creates a new instance of the class. @@ -73966,7 +58808,7 @@ public updateCdnConfigurationsResponse() { /// Creates a new instance of the class. - public updateCdnConfigurationsResponse(Google.Api.Ads.AdManager.v201808.CdnConfiguration[] rval) { + public updateCdnConfigurationsResponse(Google.Api.Ads.AdManager.v201908.CdnConfiguration[] rval) { this.rval = rval; } } @@ -73979,7 +58821,7 @@ public updateCdnConfigurationsResponse(Google.Api.Ads.AdManager.v201808.CdnConfi [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public partial class SecurityPolicySettings { private SecurityPolicyType securityPolicyTypeField; @@ -74068,9 +58910,9 @@ public bool disableServerSideUrlSigningSpecified { } } - /// The type of origin forwarding used to support Akamai authentication policies. - /// This field is not applicable to ingest locations, and is only applicable to - /// delivery media locations with the 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. @@ -74099,11 +58941,11 @@ public bool originForwardingTypeSpecified { } } - /// The origin path prefix provided by the publisher. This field is only applicable - /// for delivery media locations with the value of 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. + /// href='OriginForwardingType#CONVENTIONAL'>OriginForwardingType#CONVENTIONAL, + /// and will be set to null otherwise. /// [System.Xml.Serialization.XmlElementAttribute(Order = 4)] public string originPathPrefix { @@ -74123,7 +58965,7 @@ public string originPathPrefix { /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public enum SecurityPolicyType { /// The value returned if the actual value is not exposed by the requested API /// version. @@ -74143,7 +58985,7 @@ public enum SecurityPolicyType { /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public enum OriginForwardingType { /// Indicates that origin forwarding is set up by passing an originpath query string /// parameter (necessary for Akamai dynamic packaging to work) @@ -74166,7 +59008,7 @@ public enum OriginForwardingType { [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public partial class MediaLocationSettings { private string nameField; @@ -74223,7 +59065,7 @@ public SecurityPolicySettings securityPolicy { [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public partial class SourceContentConfiguration { private MediaLocationSettings ingestSettingsField; @@ -74270,7 +59112,7 @@ public MediaLocationSettings defaultDeliverySettings { [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public partial class CdnConfiguration { private long idField; @@ -74404,7 +59246,7 @@ public bool cdnConfigurationStatusSpecified { /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public enum CdnConfigurationType { /// The value returned if the actual value is not exposed by the requested API /// version. @@ -74422,7 +59264,7 @@ public enum CdnConfigurationType { /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public enum CdnConfigurationStatus { /// The value returned if the actual value is not exposed by the requested API /// version. @@ -74443,7 +59285,7 @@ public enum CdnConfigurationStatus { [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public partial class CdnConfigurationError : ApiError { private CdnConfigurationErrorReason reasonField; @@ -74481,7 +59323,7 @@ public bool reasonSpecified { /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CdnConfigurationError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CdnConfigurationError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public enum CdnConfigurationErrorReason { /// URL prefixes should not contain schemes. /// @@ -74504,12 +59346,12 @@ public enum CdnConfigurationErrorReason { [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", ConfigurationName = "Google.Api.Ads.AdManager.v201808.CdnConfigurationServiceInterface")] + [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", ConfigurationName = "Google.Api.Ads.AdManager.v201908.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.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201908.ApiException), Action = "", Name = "ApiExceptionFault")] [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] @@ -74519,30 +59361,30 @@ public interface CdnConfigurationServiceInterface System.Threading.Tasks.Task createCdnConfigurationsAsync(Wrappers.CdnConfigurationService.createCdnConfigurationsRequest request); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201908.ApiException), Action = "", Name = "ApiExceptionFault")] [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v201808.CdnConfigurationPage getCdnConfigurationsByStatement(Google.Api.Ads.AdManager.v201808.Statement statement); + Google.Api.Ads.AdManager.v201908.CdnConfigurationPage getCdnConfigurationsByStatement(Google.Api.Ads.AdManager.v201908.Statement statement); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getCdnConfigurationsByStatementAsync(Google.Api.Ads.AdManager.v201808.Statement statement); + System.Threading.Tasks.Task getCdnConfigurationsByStatementAsync(Google.Api.Ads.AdManager.v201908.Statement statement); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201908.ApiException), Action = "", Name = "ApiExceptionFault")] [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v201808.UpdateResult performCdnConfigurationAction(Google.Api.Ads.AdManager.v201808.CdnConfigurationAction cdnConfigurationAction, Google.Api.Ads.AdManager.v201808.Statement filterStatement); + Google.Api.Ads.AdManager.v201908.UpdateResult performCdnConfigurationAction(Google.Api.Ads.AdManager.v201908.CdnConfigurationAction cdnConfigurationAction, Google.Api.Ads.AdManager.v201908.Statement filterStatement); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task performCdnConfigurationActionAsync(Google.Api.Ads.AdManager.v201808.CdnConfigurationAction cdnConfigurationAction, Google.Api.Ads.AdManager.v201808.Statement filterStatement); + System.Threading.Tasks.Task performCdnConfigurationActionAsync(Google.Api.Ads.AdManager.v201908.CdnConfigurationAction cdnConfigurationAction, Google.Api.Ads.AdManager.v201908.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.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201908.ApiException), Action = "", Name = "ApiExceptionFault")] [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] @@ -74559,7 +59401,7 @@ public interface CdnConfigurationServiceInterface [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public partial class CdnConfigurationPage { private int totalResultSetSizeField; @@ -74646,7 +59488,7 @@ public CdnConfiguration[] results { [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public abstract partial class CdnConfigurationAction { } @@ -74658,7 +59500,7 @@ public abstract partial class CdnConfigurationAction { [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public partial class ArchiveCdnConfigurations : CdnConfigurationAction { } @@ -74670,13 +59512,13 @@ public partial class ArchiveCdnConfigurations : CdnConfigurationAction { [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public partial class ActivateCdnConfigurations : CdnConfigurationAction { } [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public interface CdnConfigurationServiceInterfaceChannel : Google.Api.Ads.AdManager.v201808.CdnConfigurationServiceInterface, System.ServiceModel.IClientChannel + public interface CdnConfigurationServiceInterfaceChannel : Google.Api.Ads.AdManager.v201908.CdnConfigurationServiceInterface, System.ServiceModel.IClientChannel { } @@ -74717,28 +59559,28 @@ public CdnConfigurationService(System.ServiceModel.Channels.Binding binding, Sys } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.CdnConfigurationService.createCdnConfigurationsResponse Google.Api.Ads.AdManager.v201808.CdnConfigurationServiceInterface.createCdnConfigurations(Wrappers.CdnConfigurationService.createCdnConfigurationsRequest request) { + Wrappers.CdnConfigurationService.createCdnConfigurationsResponse Google.Api.Ads.AdManager.v201908.CdnConfigurationServiceInterface.createCdnConfigurations(Wrappers.CdnConfigurationService.createCdnConfigurationsRequest request) { return base.Channel.createCdnConfigurations(request); } /// Creates new CdnConfiguration objects. /// - public virtual Google.Api.Ads.AdManager.v201808.CdnConfiguration[] createCdnConfigurations(Google.Api.Ads.AdManager.v201808.CdnConfiguration[] cdnConfigurations) { + public virtual Google.Api.Ads.AdManager.v201908.CdnConfiguration[] createCdnConfigurations(Google.Api.Ads.AdManager.v201908.CdnConfiguration[] cdnConfigurations) { Wrappers.CdnConfigurationService.createCdnConfigurationsRequest inValue = new Wrappers.CdnConfigurationService.createCdnConfigurationsRequest(); inValue.cdnConfigurations = cdnConfigurations; - Wrappers.CdnConfigurationService.createCdnConfigurationsResponse retVal = ((Google.Api.Ads.AdManager.v201808.CdnConfigurationServiceInterface)(this)).createCdnConfigurations(inValue); + Wrappers.CdnConfigurationService.createCdnConfigurationsResponse retVal = ((Google.Api.Ads.AdManager.v201908.CdnConfigurationServiceInterface)(this)).createCdnConfigurations(inValue); return retVal.rval; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201808.CdnConfigurationServiceInterface.createCdnConfigurationsAsync(Wrappers.CdnConfigurationService.createCdnConfigurationsRequest request) { + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201908.CdnConfigurationServiceInterface.createCdnConfigurationsAsync(Wrappers.CdnConfigurationService.createCdnConfigurationsRequest request) { return base.Channel.createCdnConfigurationsAsync(request); } - public virtual System.Threading.Tasks.Task createCdnConfigurationsAsync(Google.Api.Ads.AdManager.v201808.CdnConfiguration[] cdnConfigurations) { + public virtual System.Threading.Tasks.Task createCdnConfigurationsAsync(Google.Api.Ads.AdManager.v201908.CdnConfiguration[] cdnConfigurations) { Wrappers.CdnConfigurationService.createCdnConfigurationsRequest inValue = new Wrappers.CdnConfigurationService.createCdnConfigurationsRequest(); inValue.cdnConfigurations = cdnConfigurations; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201808.CdnConfigurationServiceInterface)(this)).createCdnConfigurationsAsync(inValue)).Result.rval); + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201908.CdnConfigurationServiceInterface)(this)).createCdnConfigurationsAsync(inValue)).Result.rval); } /// Gets a CdnConfigurationPage of name CdnConfiguration#name /// - public virtual Google.Api.Ads.AdManager.v201808.CdnConfigurationPage getCdnConfigurationsByStatement(Google.Api.Ads.AdManager.v201808.Statement statement) { + public virtual Google.Api.Ads.AdManager.v201908.CdnConfigurationPage getCdnConfigurationsByStatement(Google.Api.Ads.AdManager.v201908.Statement statement) { return base.Channel.getCdnConfigurationsByStatement(statement); } - public virtual System.Threading.Tasks.Task getCdnConfigurationsByStatementAsync(Google.Api.Ads.AdManager.v201808.Statement statement) { + public virtual System.Threading.Tasks.Task getCdnConfigurationsByStatementAsync(Google.Api.Ads.AdManager.v201908.Statement statement) { return base.Channel.getCdnConfigurationsByStatementAsync(statement); } @@ -74766,37 +59608,37 @@ public virtual Google.Api.Ads.AdManager.v201808.CdnConfigurationPage getCdnConfi /// a Publisher Query Language statement used to /// filter a set of live stream events /// the result of the action performed - public virtual Google.Api.Ads.AdManager.v201808.UpdateResult performCdnConfigurationAction(Google.Api.Ads.AdManager.v201808.CdnConfigurationAction cdnConfigurationAction, Google.Api.Ads.AdManager.v201808.Statement filterStatement) { + public virtual Google.Api.Ads.AdManager.v201908.UpdateResult performCdnConfigurationAction(Google.Api.Ads.AdManager.v201908.CdnConfigurationAction cdnConfigurationAction, Google.Api.Ads.AdManager.v201908.Statement filterStatement) { return base.Channel.performCdnConfigurationAction(cdnConfigurationAction, filterStatement); } - public virtual System.Threading.Tasks.Task performCdnConfigurationActionAsync(Google.Api.Ads.AdManager.v201808.CdnConfigurationAction cdnConfigurationAction, Google.Api.Ads.AdManager.v201808.Statement filterStatement) { + public virtual System.Threading.Tasks.Task performCdnConfigurationActionAsync(Google.Api.Ads.AdManager.v201908.CdnConfigurationAction cdnConfigurationAction, Google.Api.Ads.AdManager.v201908.Statement filterStatement) { return base.Channel.performCdnConfigurationActionAsync(cdnConfigurationAction, filterStatement); } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.CdnConfigurationService.updateCdnConfigurationsResponse Google.Api.Ads.AdManager.v201808.CdnConfigurationServiceInterface.updateCdnConfigurations(Wrappers.CdnConfigurationService.updateCdnConfigurationsRequest request) { + Wrappers.CdnConfigurationService.updateCdnConfigurationsResponse Google.Api.Ads.AdManager.v201908.CdnConfigurationServiceInterface.updateCdnConfigurations(Wrappers.CdnConfigurationService.updateCdnConfigurationsRequest request) { return base.Channel.updateCdnConfigurations(request); } /// Updates the specified CdnConfiguration objects. /// - public virtual Google.Api.Ads.AdManager.v201808.CdnConfiguration[] updateCdnConfigurations(Google.Api.Ads.AdManager.v201808.CdnConfiguration[] cdnConfigurations) { + public virtual Google.Api.Ads.AdManager.v201908.CdnConfiguration[] updateCdnConfigurations(Google.Api.Ads.AdManager.v201908.CdnConfiguration[] cdnConfigurations) { Wrappers.CdnConfigurationService.updateCdnConfigurationsRequest inValue = new Wrappers.CdnConfigurationService.updateCdnConfigurationsRequest(); inValue.cdnConfigurations = cdnConfigurations; - Wrappers.CdnConfigurationService.updateCdnConfigurationsResponse retVal = ((Google.Api.Ads.AdManager.v201808.CdnConfigurationServiceInterface)(this)).updateCdnConfigurations(inValue); + Wrappers.CdnConfigurationService.updateCdnConfigurationsResponse retVal = ((Google.Api.Ads.AdManager.v201908.CdnConfigurationServiceInterface)(this)).updateCdnConfigurations(inValue); return retVal.rval; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201808.CdnConfigurationServiceInterface.updateCdnConfigurationsAsync(Wrappers.CdnConfigurationService.updateCdnConfigurationsRequest request) { + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201908.CdnConfigurationServiceInterface.updateCdnConfigurationsAsync(Wrappers.CdnConfigurationService.updateCdnConfigurationsRequest request) { return base.Channel.updateCdnConfigurationsAsync(request); } - public virtual System.Threading.Tasks.Task updateCdnConfigurationsAsync(Google.Api.Ads.AdManager.v201808.CdnConfiguration[] cdnConfigurations) { + public virtual System.Threading.Tasks.Task updateCdnConfigurationsAsync(Google.Api.Ads.AdManager.v201908.CdnConfiguration[] cdnConfigurations) { Wrappers.CdnConfigurationService.updateCdnConfigurationsRequest inValue = new Wrappers.CdnConfigurationService.updateCdnConfigurationsRequest(); inValue.cdnConfigurations = cdnConfigurations; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201808.CdnConfigurationServiceInterface)(this)).updateCdnConfigurationsAsync(inValue)).Result.rval); + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201908.CdnConfigurationServiceInterface)(this)).updateCdnConfigurationsAsync(inValue)).Result.rval); } } namespace Wrappers.CompanyService @@ -74804,11 +59646,11 @@ 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/v201808", IsWrapped = true)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "createCompanies", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201908", IsWrapped = true)] public partial class createCompaniesRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] [System.Xml.Serialization.XmlElementAttribute("companies")] - public Google.Api.Ads.AdManager.v201808.Company[] companies; + public Google.Api.Ads.AdManager.v201908.Company[] companies; /// Creates a new instance of the /// class. @@ -74817,7 +59659,7 @@ public createCompaniesRequest() { /// Creates a new instance of the /// class. - public createCompaniesRequest(Google.Api.Ads.AdManager.v201808.Company[] companies) { + public createCompaniesRequest(Google.Api.Ads.AdManager.v201908.Company[] companies) { this.companies = companies; } } @@ -74826,11 +59668,11 @@ public createCompaniesRequest(Google.Api.Ads.AdManager.v201808.Company[] compani [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/v201808", IsWrapped = true)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "createCompaniesResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201908", IsWrapped = true)] public partial class createCompaniesResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v201808.Company[] rval; + public Google.Api.Ads.AdManager.v201908.Company[] rval; /// Creates a new instance of the /// class. @@ -74839,7 +59681,7 @@ public createCompaniesResponse() { /// Creates a new instance of the /// class. - public createCompaniesResponse(Google.Api.Ads.AdManager.v201808.Company[] rval) { + public createCompaniesResponse(Google.Api.Ads.AdManager.v201908.Company[] rval) { this.rval = rval; } } @@ -74848,11 +59690,11 @@ public createCompaniesResponse(Google.Api.Ads.AdManager.v201808.Company[] 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 = "updateCompanies", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201808", IsWrapped = true)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "updateCompanies", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201908", IsWrapped = true)] public partial class updateCompaniesRequest { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] [System.Xml.Serialization.XmlElementAttribute("companies")] - public Google.Api.Ads.AdManager.v201808.Company[] companies; + public Google.Api.Ads.AdManager.v201908.Company[] companies; /// Creates a new instance of the /// class. @@ -74861,7 +59703,7 @@ public updateCompaniesRequest() { /// Creates a new instance of the /// class. - public updateCompaniesRequest(Google.Api.Ads.AdManager.v201808.Company[] companies) { + public updateCompaniesRequest(Google.Api.Ads.AdManager.v201908.Company[] companies) { this.companies = companies; } } @@ -74870,11 +59712,11 @@ public updateCompaniesRequest(Google.Api.Ads.AdManager.v201808.Company[] compani [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/v201808", IsWrapped = true)] + [System.ServiceModel.MessageContractAttribute(WrapperName = "updateCompaniesResponse", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201908", IsWrapped = true)] public partial class updateCompaniesResponse { - [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", Order = 0)] + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] [System.Xml.Serialization.XmlElementAttribute("rval")] - public Google.Api.Ads.AdManager.v201808.Company[] rval; + public Google.Api.Ads.AdManager.v201908.Company[] rval; /// Creates a new instance of the /// class. @@ -74883,7 +59725,7 @@ public updateCompaniesResponse() { /// Creates a new instance of the /// class. - public updateCompaniesResponse(Google.Api.Ads.AdManager.v201808.Company[] rval) { + public updateCompaniesResponse(Google.Api.Ads.AdManager.v201908.Company[] rval) { this.rval = rval; } } @@ -74896,7 +59738,7 @@ public updateCompaniesResponse(Google.Api.Ads.AdManager.v201808.Company[] rval) [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public partial class ViewabilityProvider { private string vendorKeyField; @@ -74962,7 +59804,7 @@ public string verificationRejectionTrackerUrl { [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public partial class CompanySettings { private BillingCap billingCapField; @@ -75151,29 +59993,126 @@ public bool valueAddedTaxSpecified { /// if the default billing setting feature is disabled or the company has no setting /// on this value. It presents in millipercentage (values 0 to 100000). ///
- [System.Xml.Serialization.XmlElementAttribute(Order = 5)] - public long agencyCommission { - get { - return this.agencyCommissionField; - } - set { - this.agencyCommissionField = value; - this.agencyCommissionSpecified = true; - } - } + [System.Xml.Serialization.XmlElementAttribute(Order = 5)] + public long agencyCommission { + get { + return this.agencyCommissionField; + } + set { + this.agencyCommissionField = value; + this.agencyCommissionSpecified = true; + } + } + + /// true, if a value is specified for , false otherwise. + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool agencyCommissionSpecified { + get { + return this.agencyCommissionFieldSpecified; + } + set { + this.agencyCommissionFieldSpecified = value; + } + } + } + + + /// Determines how the revenue amount will be capped for each billing month. This + /// cannot be used when BillingSource is BillingSource#CONTRACTED. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum BillingCap { + /// There is no cap for each billing month. + /// + NO_CAP = 0, + /// Use a billing source of capped actuals with a billing cap of cumulative to bill + /// your advertiser up to a campaign's capped amount, regardless of the number of + /// impressions that are served each month. + /// + CAPPED_CUMULATIVE = 1, + /// Use a billing source of capped actuals with a billing cap of the billing cycle + /// to bill your advertiser up to a capped amount for each billing cycle of a + /// campaign, regardless of the number of impressions that are served. + /// + CAPPED_PER_BILLING_CYCLE = 2, + /// Use a billing source of capped actuals with a billing cap of cumulative per + /// billing cycle to bill your advertiser up to a capped amount for each billing + /// cycle of a campaign and carry forward the balance of over- or under-delivered + /// impressions towards the number of impressions delivered in future billing cycles + /// of the campaign. + /// + CAPPED_CUMULATIVE_PER_BILLING_CYCLE = 3, + /// Use a billing source of capped actuals with a billing cap of cumulative per + /// billing cycle to bill your advertiser up to a capped amount for each cycle of a + /// campaign and carry forward the balance of over- or under-delivered impressions + /// towards the number of impressions delivered in future cycles of the campaign. + /// + CAPPED_WITH_ROLLOVER_PER_BILLING_CYCLE = 4, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 5, + } + + + /// Determines how much to bill in each billing cycle when a proposal is charged + /// based on the contracted value. This can only be used when BillingSource is BillingSource#CONTRACTED. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum BillingSchedule { + /// Charged based on the contracted value after the first month of the campaign. + /// + PREPAID = 0, + /// Charged based on the contracted value after the last month of the campaign. + /// + END_OF_THE_CAMPAIGN = 1, + /// Use a billing source of contracted with a billing schedule of straightline to + /// bill your advertiser the same amount each month, regardless of the number of + /// days in each month. + /// + STRAIGHTLINE = 2, + /// Use a billing source of contracted with a billing schedule of prorated to bill + /// your advertiser proportionally based on the amount of days in each month. + /// + PRORATED = 3, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 4, + } - /// true, if a value is specified for , false otherwise. - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool agencyCommissionSpecified { - get { - return this.agencyCommissionFieldSpecified; - } - set { - this.agencyCommissionFieldSpecified = value; - } - } + + /// Determines which billable numbers or delivery data (impressions, clicks, and so + /// on) will be used for billing purposes. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public enum BillingSource { + /// Charge based on the quantity of impressions, clicks, or days booked, regardless + /// of what actually delivered. + /// + CONTRACTED = 0, + /// Charge based on what actually delivered, as counted by Ad Manager. + /// + DFP_VOLUME = 1, + /// Charge based on what actually delivered, as counted by the third party ads + /// server. + /// + THIRD_PARTY_VOLUME = 2, + /// The value returned if the actual value is not exposed by the requested API + /// version. + /// + UNKNOWN = 3, } @@ -75184,7 +60123,7 @@ public bool agencyCommissionSpecified { [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public partial class Company { private long idField; @@ -75527,7 +60466,7 @@ public ViewabilityProvider viewabilityProvider { ///
[System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "Company.Type", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "Company.Type", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public enum CompanyType { /// The publisher's own advertiser. When no outside advertiser buys its inventory, /// the publisher may run its own advertising campaigns. @@ -75572,7 +60511,7 @@ public enum CompanyType { /// [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "Company.CreditStatus", Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "Company.CreditStatus", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] 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 @@ -75609,12 +60548,12 @@ public enum CompanyCreditStatus { [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808", ConfigurationName = "Google.Api.Ads.AdManager.v201808.CompanyServiceInterface")] + [System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", ConfigurationName = "Google.Api.Ads.AdManager.v201908.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.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201908.ApiException), Action = "", Name = "ApiExceptionFault")] [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] @@ -75624,19 +60563,19 @@ public interface CompanyServiceInterface System.Threading.Tasks.Task createCompaniesAsync(Wrappers.CompanyService.createCompaniesRequest request); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] - [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201908.ApiException), Action = "", Name = "ApiExceptionFault")] [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - Google.Api.Ads.AdManager.v201808.CompanyPage getCompaniesByStatement(Google.Api.Ads.AdManager.v201808.Statement filterStatement); + Google.Api.Ads.AdManager.v201908.CompanyPage getCompaniesByStatement(Google.Api.Ads.AdManager.v201908.Statement filterStatement); [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] - System.Threading.Tasks.Task getCompaniesByStatementAsync(Google.Api.Ads.AdManager.v201808.Statement filterStatement); + System.Threading.Tasks.Task getCompaniesByStatementAsync(Google.Api.Ads.AdManager.v201908.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.v201808.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201908.ApiException), Action = "", Name = "ApiExceptionFault")] [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] @@ -75653,7 +60592,7 @@ public interface CompanyServiceInterface [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201808")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] public partial class CompanyPage { private int totalResultSetSizeField; @@ -75717,10 +60656,511 @@ public bool startIndexSpecified { } } - /// The collection of companies contained within this page. + /// The collection of companies contained within this page. + /// + [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] + public Company[] results { + get { + return this.resultsField; + } + set { + this.resultsField = value; + } + } + } + + + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + public interface CompanyServiceInterfaceChannel : Google.Api.Ads.AdManager.v201908.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.v201908.CompanyServiceInterface.createCompanies(Wrappers.CompanyService.createCompaniesRequest request) { + return base.Channel.createCompanies(request); + } + + /// Creates new Company objects. + /// the companies to create + /// the created companies with their IDs filled in + public virtual Google.Api.Ads.AdManager.v201908.Company[] createCompanies(Google.Api.Ads.AdManager.v201908.Company[] companies) { + Wrappers.CompanyService.createCompaniesRequest inValue = new Wrappers.CompanyService.createCompaniesRequest(); + inValue.companies = companies; + Wrappers.CompanyService.createCompaniesResponse retVal = ((Google.Api.Ads.AdManager.v201908.CompanyServiceInterface)(this)).createCompanies(inValue); + return retVal.rval; + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201908.CompanyServiceInterface.createCompaniesAsync(Wrappers.CompanyService.createCompaniesRequest request) { + return base.Channel.createCompaniesAsync(request); + } + + public virtual System.Threading.Tasks.Task createCompaniesAsync(Google.Api.Ads.AdManager.v201908.Company[] companies) { + Wrappers.CompanyService.createCompaniesRequest inValue = new Wrappers.CompanyService.createCompaniesRequest(); + inValue.companies = companies; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201908.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
+ ///
a Publisher Query Language statement used to + /// filter a set of companies + /// the companies that match the given filter + public virtual Google.Api.Ads.AdManager.v201908.CompanyPage getCompaniesByStatement(Google.Api.Ads.AdManager.v201908.Statement filterStatement) { + return base.Channel.getCompaniesByStatement(filterStatement); + } + + public virtual System.Threading.Tasks.Task getCompaniesByStatementAsync(Google.Api.Ads.AdManager.v201908.Statement filterStatement) { + return base.Channel.getCompaniesByStatementAsync(filterStatement); + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + Wrappers.CompanyService.updateCompaniesResponse Google.Api.Ads.AdManager.v201908.CompanyServiceInterface.updateCompanies(Wrappers.CompanyService.updateCompaniesRequest request) { + return base.Channel.updateCompanies(request); + } + + /// Updates the specified Company objects. + /// the companies to update + /// the updated companies + public virtual Google.Api.Ads.AdManager.v201908.Company[] updateCompanies(Google.Api.Ads.AdManager.v201908.Company[] companies) { + Wrappers.CompanyService.updateCompaniesRequest inValue = new Wrappers.CompanyService.updateCompaniesRequest(); + inValue.companies = companies; + Wrappers.CompanyService.updateCompaniesResponse retVal = ((Google.Api.Ads.AdManager.v201908.CompanyServiceInterface)(this)).updateCompanies(inValue); + return retVal.rval; + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201908.CompanyServiceInterface.updateCompaniesAsync(Wrappers.CompanyService.updateCompaniesRequest request) { + return base.Channel.updateCompaniesAsync(request); + } + + public virtual System.Threading.Tasks.Task updateCompaniesAsync(Google.Api.Ads.AdManager.v201908.Company[] companies) { + Wrappers.CompanyService.updateCompaniesRequest inValue = new Wrappers.CompanyService.updateCompaniesRequest(); + inValue.companies = companies; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201908.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/v201908", IsWrapped = true)] + public partial class createContentBundlesRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("contentBundles")] + public Google.Api.Ads.AdManager.v201908.ContentBundle[] contentBundles; + + /// Creates a new instance of the class. + public createContentBundlesRequest() { + } + + /// Creates a new instance of the class. + public createContentBundlesRequest(Google.Api.Ads.AdManager.v201908.ContentBundle[] contentBundles) { + this.contentBundles = contentBundles; + } + } + + + [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/v201908", IsWrapped = true)] + public partial class createContentBundlesResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("rval")] + public Google.Api.Ads.AdManager.v201908.ContentBundle[] rval; + + /// Creates a new instance of the class. + public createContentBundlesResponse() { + } + + /// Creates a new instance of the class. + public createContentBundlesResponse(Google.Api.Ads.AdManager.v201908.ContentBundle[] 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 = "updateContentBundles", WrapperNamespace = "https://www.google.com/apis/ads/publisher/v201908", IsWrapped = true)] + public partial class updateContentBundlesRequest { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("contentBundles")] + public Google.Api.Ads.AdManager.v201908.ContentBundle[] contentBundles; + + /// Creates a new instance of the class. + public updateContentBundlesRequest() { + } + + /// Creates a new instance of the class. + public updateContentBundlesRequest(Google.Api.Ads.AdManager.v201908.ContentBundle[] contentBundles) { + this.contentBundles = contentBundles; + } + } + + + [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/v201908", IsWrapped = true)] + public partial class updateContentBundlesResponse { + [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908", Order = 0)] + [System.Xml.Serialization.XmlElementAttribute("rval")] + public Google.Api.Ads.AdManager.v201908.ContentBundle[] rval; + + /// Creates a new instance of the class. + public updateContentBundlesResponse() { + } + + /// Creates a new instance of the class. + public updateContentBundlesResponse(Google.Api.Ads.AdManager.v201908.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.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class ContentBundle { + private long idField; + + private bool idFieldSpecified; + + private string nameField; + + private ContentBundleStatus statusField; + + private bool statusFieldSpecified; + + /// 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 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 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; + } + } + + /// 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.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; + } + } + } + + + /// Status for ContentBundle objects. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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, + } + + + /// Errors associated with the incorrect creation of a Condition. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class ContentFilterError : ApiError { + private ContentFilterErrorReason reasonField; + + private bool reasonFieldSpecified; + + [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public ContentFilterErrorReason 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 ContentFilterError. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ContentFilterError.Reason", Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + 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/v201908", ConfigurationName = "Google.Api.Ads.AdManager.v201908.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.v201908.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.v201908.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v201908.ContentBundlePage getContentBundlesByStatement(Google.Api.Ads.AdManager.v201908.Statement filterStatement); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task getContentBundlesByStatementAsync(Google.Api.Ads.AdManager.v201908.Statement filterStatement); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [System.ServiceModel.FaultContractAttribute(typeof(Google.Api.Ads.AdManager.v201908.ApiException), Action = "", Name = "ApiExceptionFault")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApplicationException))] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + Google.Api.Ads.AdManager.v201908.UpdateResult performContentBundleAction(Google.Api.Ads.AdManager.v201908.ContentBundleAction contentBundleAction, Google.Api.Ads.AdManager.v201908.Statement filterStatement); + + [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + [return: System.ServiceModel.MessageParameterAttribute(Name = "rval")] + System.Threading.Tasks.Task performContentBundleActionAsync(Google.Api.Ads.AdManager.v201908.ContentBundleAction contentBundleAction, Google.Api.Ads.AdManager.v201908.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.v201908.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.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")] + System.Threading.Tasks.Task updateContentBundlesAsync(Wrappers.ContentBundleService.updateContentBundlesRequest request); + } + + + /// Captures a page of ContentBundle objects. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class ContentBundlePage { + private int totalResultSetSizeField; + + private bool totalResultSetSizeFieldSpecified; + + private int startIndexField; + + private bool startIndexFieldSpecified; + + 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 { + 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 content bundles contained within this page. /// [System.Xml.Serialization.XmlElementAttribute("results", Order = 2)] - public Company[] results { + public ContentBundle[] results { get { return this.resultsField; } @@ -75731,119 +61171,204 @@ public Company[] results { } + /// Represents the actions that can be performed on ContentBundle objects. + /// + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ExcludeContentFromContentBundle))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(DeactivateContentBundles))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ActivateContentBundles))] + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public abstract partial class ContentBundleAction { + } + + + /// The action used for explicitly excluding specific content from a ContentBundle object. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class ExcludeContentFromContentBundle : ContentBundleAction { + private Statement contentStatementField; + + /// The Publisher Query Language statement specifying which Content to exclude from the ContentBundle. The statement is expressed in terms of + /// Content fields such as name and status.

All fields supported by + /// ContentService#getContentByStatement + /// are supported on this statement.

+ ///
+ [System.Xml.Serialization.XmlElementAttribute(Order = 0)] + public Statement contentStatement { + get { + return this.contentStatementField; + } + set { + this.contentStatementField = value; + } + } + } + + + /// The action used for deactivating ContentBundle + /// objects. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class DeactivateContentBundles : ContentBundleAction { + } + + + /// The action used for activating ContentBundle + /// objects. + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.6.1055.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://www.google.com/apis/ads/publisher/v201908")] + public partial class ActivateContentBundles : ContentBundleAction { + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public interface CompanyServiceInterfaceChannel : Google.Api.Ads.AdManager.v201808.CompanyServiceInterface, System.ServiceModel.IClientChannel + public interface ContentBundleServiceInterfaceChannel : Google.Api.Ads.AdManager.v201908.ContentBundleServiceInterface, System.ServiceModel.IClientChannel { } - /// Provides operations for creating, updating and retrieving Company objects. + /// 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 CompanyService : AdManagerSoapClient, ICompanyService { - /// Creates a new instance of the class. - /// - public CompanyService() { + public partial class ContentBundleService : AdManagerSoapClient, IContentBundleService { + /// Creates a new instance of the + /// class. + public ContentBundleService() { } - /// Creates a new instance of the class. - /// - public CompanyService(string endpointConfigurationName) + /// Creates a new instance of the + /// class. + public ContentBundleService(string endpointConfigurationName) : base(endpointConfigurationName) { } - /// Creates a new instance of the class. - /// - public CompanyService(string endpointConfigurationName, string remoteAddress) + /// Creates a new instance of the + /// class. + public ContentBundleService(string endpointConfigurationName, string remoteAddress) : base(endpointConfigurationName, remoteAddress) { } - /// Creates a new instance of the class. - /// - public CompanyService(string endpointConfigurationName, System.ServiceModel.EndpointAddress 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 CompanyService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress 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.CompanyService.createCompaniesResponse Google.Api.Ads.AdManager.v201808.CompanyServiceInterface.createCompanies(Wrappers.CompanyService.createCompaniesRequest request) { - return base.Channel.createCompanies(request); + Wrappers.ContentBundleService.createContentBundlesResponse Google.Api.Ads.AdManager.v201908.ContentBundleServiceInterface.createContentBundles(Wrappers.ContentBundleService.createContentBundlesRequest request) { + return base.Channel.createContentBundles(request); } - /// Creates new Company objects. - /// the companies to create - /// the created companies with their IDs filled in - public virtual Google.Api.Ads.AdManager.v201808.Company[] createCompanies(Google.Api.Ads.AdManager.v201808.Company[] companies) { - Wrappers.CompanyService.createCompaniesRequest inValue = new Wrappers.CompanyService.createCompaniesRequest(); - inValue.companies = companies; - Wrappers.CompanyService.createCompaniesResponse retVal = ((Google.Api.Ads.AdManager.v201808.CompanyServiceInterface)(this)).createCompanies(inValue); + /// Creates new ContentBundle objects. + /// the content bundles to create + /// the created content bundles with their IDs filled in + public virtual Google.Api.Ads.AdManager.v201908.ContentBundle[] createContentBundles(Google.Api.Ads.AdManager.v201908.ContentBundle[] contentBundles) { + Wrappers.ContentBundleService.createContentBundlesRequest inValue = new Wrappers.ContentBundleService.createContentBundlesRequest(); + inValue.contentBundles = contentBundles; + Wrappers.ContentBundleService.createContentBundlesResponse retVal = ((Google.Api.Ads.AdManager.v201908.ContentBundleServiceInterface)(this)).createContentBundles(inValue); return retVal.rval; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201808.CompanyServiceInterface.createCompaniesAsync(Wrappers.CompanyService.createCompaniesRequest request) { - return base.Channel.createCompaniesAsync(request); + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201908.ContentBundleServiceInterface.createContentBundlesAsync(Wrappers.ContentBundleService.createContentBundlesRequest request) { + return base.Channel.createContentBundlesAsync(request); } - public virtual System.Threading.Tasks.Task createCompaniesAsync(Google.Api.Ads.AdManager.v201808.Company[] companies) { - Wrappers.CompanyService.createCompaniesRequest inValue = new Wrappers.CompanyService.createCompaniesRequest(); - inValue.companies = companies; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201808.CompanyServiceInterface)(this)).createCompaniesAsync(inValue)).Result.rval); + public virtual System.Threading.Tasks.Task createContentBundlesAsync(Google.Api.Ads.AdManager.v201908.ContentBundle[] contentBundles) { + Wrappers.ContentBundleService.createContentBundlesRequest inValue = new Wrappers.ContentBundleService.createContentBundlesRequest(); + inValue.contentBundles = contentBundles; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201908.ContentBundleServiceInterface)(this)).createContentBundlesAsync(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
+ /// 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
///
a Publisher Query Language statement used to - /// filter a set of companies - /// the companies that match the given filter - public virtual Google.Api.Ads.AdManager.v201808.CompanyPage getCompaniesByStatement(Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.getCompaniesByStatement(filterStatement); + /// filter a set of content bundles + /// the content bundles that match the given filter + public virtual Google.Api.Ads.AdManager.v201908.ContentBundlePage getContentBundlesByStatement(Google.Api.Ads.AdManager.v201908.Statement filterStatement) { + return base.Channel.getContentBundlesByStatement(filterStatement); } - public virtual System.Threading.Tasks.Task getCompaniesByStatementAsync(Google.Api.Ads.AdManager.v201808.Statement filterStatement) { - return base.Channel.getCompaniesByStatementAsync(filterStatement); + public virtual System.Threading.Tasks.Task getContentBundlesByStatementAsync(Google.Api.Ads.AdManager.v201908.Statement filterStatement) { + return base.Channel.getContentBundlesByStatementAsync(filterStatement); + } + + /// Performs actions on ContentBundle objects that match + /// the given Statement#query. + /// the action to perform + /// a Publisher Query Language statement used to + /// filter a set of content bundles + /// the result of the action performed + public virtual Google.Api.Ads.AdManager.v201908.UpdateResult performContentBundleAction(Google.Api.Ads.AdManager.v201908.ContentBundleAction contentBundleAction, Google.Api.Ads.AdManager.v201908.Statement filterStatement) { + return base.Channel.performContentBundleAction(contentBundleAction, filterStatement); + } + + public virtual System.Threading.Tasks.Task performContentBundleActionAsync(Google.Api.Ads.AdManager.v201908.ContentBundleAction contentBundleAction, Google.Api.Ads.AdManager.v201908.Statement filterStatement) { + return base.Channel.performContentBundleActionAsync(contentBundleAction, filterStatement); } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - Wrappers.CompanyService.updateCompaniesResponse Google.Api.Ads.AdManager.v201808.CompanyServiceInterface.updateCompanies(Wrappers.CompanyService.updateCompaniesRequest request) { - return base.Channel.updateCompanies(request); + Wrappers.ContentBundleService.updateContentBundlesResponse Google.Api.Ads.AdManager.v201908.ContentBundleServiceInterface.updateContentBundles(Wrappers.ContentBundleService.updateContentBundlesRequest request) { + return base.Channel.updateContentBundles(request); } - /// Updates the specified Company objects. - /// the companies to update - /// the updated companies - public virtual Google.Api.Ads.AdManager.v201808.Company[] updateCompanies(Google.Api.Ads.AdManager.v201808.Company[] companies) { - Wrappers.CompanyService.updateCompaniesRequest inValue = new Wrappers.CompanyService.updateCompaniesRequest(); - inValue.companies = companies; - Wrappers.CompanyService.updateCompaniesResponse retVal = ((Google.Api.Ads.AdManager.v201808.CompanyServiceInterface)(this)).updateCompanies(inValue); + /// Updates the specified ContentBundle objects. + /// the content bundles to update + /// the updated content bundles + public virtual Google.Api.Ads.AdManager.v201908.ContentBundle[] updateContentBundles(Google.Api.Ads.AdManager.v201908.ContentBundle[] contentBundles) { + Wrappers.ContentBundleService.updateContentBundlesRequest inValue = new Wrappers.ContentBundleService.updateContentBundlesRequest(); + inValue.contentBundles = contentBundles; + Wrappers.ContentBundleService.updateContentBundlesResponse retVal = ((Google.Api.Ads.AdManager.v201908.ContentBundleServiceInterface)(this)).updateContentBundles(inValue); return retVal.rval; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201808.CompanyServiceInterface.updateCompaniesAsync(Wrappers.CompanyService.updateCompaniesRequest request) { - return base.Channel.updateCompaniesAsync(request); + System.Threading.Tasks.Task Google.Api.Ads.AdManager.v201908.ContentBundleServiceInterface.updateContentBundlesAsync(Wrappers.ContentBundleService.updateContentBundlesRequest request) { + return base.Channel.updateContentBundlesAsync(request); } - public virtual System.Threading.Tasks.Task updateCompaniesAsync(Google.Api.Ads.AdManager.v201808.Company[] companies) { - Wrappers.CompanyService.updateCompaniesRequest inValue = new Wrappers.CompanyService.updateCompaniesRequest(); - inValue.companies = companies; - return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201808.CompanyServiceInterface)(this)).updateCompaniesAsync(inValue)).Result.rval); + public virtual System.Threading.Tasks.Task updateContentBundlesAsync(Google.Api.Ads.AdManager.v201908.ContentBundle[] contentBundles) { + Wrappers.ContentBundleService.updateContentBundlesRequest inValue = new Wrappers.ContentBundleService.updateContentBundlesRequest(); + inValue.contentBundles = contentBundles; + return System.Threading.Tasks.Task.Factory.StartNew(() => (((Google.Api.Ads.AdManager.v201908.ContentBundleServiceInterface)(this)).updateContentBundlesAsync(inValue)).Result.rval); } } @@ -75857,46 +61382,13 @@ public virtual Google.Api.Ads.AdManager.v201808.Company[] updateCompanies(Google ///
public interface IActivityGroupService : ActivityGroupServiceInterface, IDisposable { - Google.Api.Ads.AdManager.v201808.ActivityGroup[] createActivityGroups(Google.Api.Ads.AdManager.v201808.ActivityGroup[] activityGroups); + Google.Api.Ads.AdManager.v201908.ActivityGroup[] createActivityGroups(Google.Api.Ads.AdManager.v201908.ActivityGroup[] activityGroups); - System.Threading.Tasks.Task createActivityGroupsAsync(Google.Api.Ads.AdManager.v201808.ActivityGroup[] activityGroups); + System.Threading.Tasks.Task createActivityGroupsAsync(Google.Api.Ads.AdManager.v201908.ActivityGroup[] activityGroups); - Google.Api.Ads.AdManager.v201808.ActivityGroup[] updateActivityGroups(Google.Api.Ads.AdManager.v201808.ActivityGroup[] activityGroups); + Google.Api.Ads.AdManager.v201908.ActivityGroup[] updateActivityGroups(Google.Api.Ads.AdManager.v201908.ActivityGroup[] activityGroups); - System.Threading.Tasks.Task updateActivityGroupsAsync(Google.Api.Ads.AdManager.v201808.ActivityGroup[] activityGroups); - } - - - /// 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.

- ///
- public interface IContentBundleService : ContentBundleServiceInterface, IDisposable - { - Google.Api.Ads.AdManager.v201808.ContentBundle[] createContentBundles(Google.Api.Ads.AdManager.v201808.ContentBundle[] contentBundles); - - System.Threading.Tasks.Task createContentBundlesAsync(Google.Api.Ads.AdManager.v201808.ContentBundle[] contentBundles); - - Google.Api.Ads.AdManager.v201808.ContentBundle[] updateContentBundles(Google.Api.Ads.AdManager.v201808.ContentBundle[] contentBundles); - - System.Threading.Tasks.Task updateContentBundlesAsync(Google.Api.Ads.AdManager.v201808.ContentBundle[] contentBundles); - } - - - /// Provides methods for creating, updating, and retrieving ContentMetadataKeyHierarchy objects. This - /// is deprecated and will be removed as of V201811. - /// - public interface IContentMetadataKeyHierarchyService : ContentMetadataKeyHierarchyServiceInterface, IDisposable - { - Google.Api.Ads.AdManager.v201808.ContentMetadataKeyHierarchy[] createContentMetadataKeyHierarchies(Google.Api.Ads.AdManager.v201808.ContentMetadataKeyHierarchy[] contentMetadataKeyHierarchies); - - System.Threading.Tasks.Task createContentMetadataKeyHierarchiesAsync(Google.Api.Ads.AdManager.v201808.ContentMetadataKeyHierarchy[] contentMetadataKeyHierarchies); - - Google.Api.Ads.AdManager.v201808.ContentMetadataKeyHierarchy[] updateContentMetadataKeyHierarchies(Google.Api.Ads.AdManager.v201808.ContentMetadataKeyHierarchy[] contentMetadataKeyHierarchies); - - System.Threading.Tasks.Task updateContentMetadataKeyHierarchiesAsync(Google.Api.Ads.AdManager.v201808.ContentMetadataKeyHierarchy[] contentMetadataKeyHierarchies); + System.Threading.Tasks.Task updateActivityGroupsAsync(Google.Api.Ads.AdManager.v201908.ActivityGroup[] activityGroups); } @@ -75932,13 +61424,13 @@ public interface IContentService : ContentServiceInterface, IDisposable ///
public interface ICreativeService : CreativeServiceInterface, IDisposable { - Google.Api.Ads.AdManager.v201808.Creative[] createCreatives(Google.Api.Ads.AdManager.v201808.Creative[] creatives); + Google.Api.Ads.AdManager.v201908.Creative[] createCreatives(Google.Api.Ads.AdManager.v201908.Creative[] creatives); - System.Threading.Tasks.Task createCreativesAsync(Google.Api.Ads.AdManager.v201808.Creative[] creatives); + System.Threading.Tasks.Task createCreativesAsync(Google.Api.Ads.AdManager.v201908.Creative[] creatives); - Google.Api.Ads.AdManager.v201808.Creative[] updateCreatives(Google.Api.Ads.AdManager.v201808.Creative[] creatives); + Google.Api.Ads.AdManager.v201908.Creative[] updateCreatives(Google.Api.Ads.AdManager.v201908.Creative[] creatives); - System.Threading.Tasks.Task updateCreativesAsync(Google.Api.Ads.AdManager.v201808.Creative[] creatives); + System.Threading.Tasks.Task updateCreativesAsync(Google.Api.Ads.AdManager.v201908.Creative[] creatives); } @@ -75967,13 +61459,13 @@ public interface ICreativeTemplateService : CreativeTemplateServiceInterface, ID ///
public interface ICreativeWrapperService : CreativeWrapperServiceInterface, IDisposable { - Google.Api.Ads.AdManager.v201808.CreativeWrapper[] createCreativeWrappers(Google.Api.Ads.AdManager.v201808.CreativeWrapper[] creativeWrappers); + Google.Api.Ads.AdManager.v201908.CreativeWrapper[] createCreativeWrappers(Google.Api.Ads.AdManager.v201908.CreativeWrapper[] creativeWrappers); - System.Threading.Tasks.Task createCreativeWrappersAsync(Google.Api.Ads.AdManager.v201808.CreativeWrapper[] creativeWrappers); + System.Threading.Tasks.Task createCreativeWrappersAsync(Google.Api.Ads.AdManager.v201908.CreativeWrapper[] creativeWrappers); - Google.Api.Ads.AdManager.v201808.CreativeWrapper[] updateCreativeWrappers(Google.Api.Ads.AdManager.v201808.CreativeWrapper[] creativeWrappers); + Google.Api.Ads.AdManager.v201908.CreativeWrapper[] updateCreativeWrappers(Google.Api.Ads.AdManager.v201908.CreativeWrapper[] creativeWrappers); - System.Threading.Tasks.Task updateCreativeWrappersAsync(Google.Api.Ads.AdManager.v201808.CreativeWrapper[] creativeWrappers); + System.Threading.Tasks.Task updateCreativeWrappersAsync(Google.Api.Ads.AdManager.v201908.CreativeWrapper[] creativeWrappers); } @@ -75983,21 +61475,21 @@ public interface ICreativeWrapperService : CreativeWrapperServiceInterface, IDis ///
public interface ICustomTargetingService : CustomTargetingServiceInterface, IDisposable { - Google.Api.Ads.AdManager.v201808.CustomTargetingKey[] createCustomTargetingKeys(Google.Api.Ads.AdManager.v201808.CustomTargetingKey[] keys); + Google.Api.Ads.AdManager.v201908.CustomTargetingKey[] createCustomTargetingKeys(Google.Api.Ads.AdManager.v201908.CustomTargetingKey[] keys); - System.Threading.Tasks.Task createCustomTargetingKeysAsync(Google.Api.Ads.AdManager.v201808.CustomTargetingKey[] keys); + System.Threading.Tasks.Task createCustomTargetingKeysAsync(Google.Api.Ads.AdManager.v201908.CustomTargetingKey[] keys); - Google.Api.Ads.AdManager.v201808.CustomTargetingValue[] createCustomTargetingValues(Google.Api.Ads.AdManager.v201808.CustomTargetingValue[] values); + Google.Api.Ads.AdManager.v201908.CustomTargetingValue[] createCustomTargetingValues(Google.Api.Ads.AdManager.v201908.CustomTargetingValue[] values); - System.Threading.Tasks.Task createCustomTargetingValuesAsync(Google.Api.Ads.AdManager.v201808.CustomTargetingValue[] values); + System.Threading.Tasks.Task createCustomTargetingValuesAsync(Google.Api.Ads.AdManager.v201908.CustomTargetingValue[] values); - Google.Api.Ads.AdManager.v201808.CustomTargetingKey[] updateCustomTargetingKeys(Google.Api.Ads.AdManager.v201808.CustomTargetingKey[] keys); + Google.Api.Ads.AdManager.v201908.CustomTargetingKey[] updateCustomTargetingKeys(Google.Api.Ads.AdManager.v201908.CustomTargetingKey[] keys); - System.Threading.Tasks.Task updateCustomTargetingKeysAsync(Google.Api.Ads.AdManager.v201808.CustomTargetingKey[] keys); + System.Threading.Tasks.Task updateCustomTargetingKeysAsync(Google.Api.Ads.AdManager.v201908.CustomTargetingKey[] keys); - Google.Api.Ads.AdManager.v201808.CustomTargetingValue[] updateCustomTargetingValues(Google.Api.Ads.AdManager.v201808.CustomTargetingValue[] values); + Google.Api.Ads.AdManager.v201908.CustomTargetingValue[] updateCustomTargetingValues(Google.Api.Ads.AdManager.v201908.CustomTargetingValue[] values); - System.Threading.Tasks.Task updateCustomTargetingValuesAsync(Google.Api.Ads.AdManager.v201808.CustomTargetingValue[] values); + System.Threading.Tasks.Task updateCustomTargetingValuesAsync(Google.Api.Ads.AdManager.v201908.CustomTargetingValue[] values); } @@ -76006,55 +61498,21 @@ public interface ICustomTargetingService : CustomTargetingServiceInterface, IDis ///
public interface ICustomFieldService : CustomFieldServiceInterface, IDisposable { - Google.Api.Ads.AdManager.v201808.CustomFieldOption[] createCustomFieldOptions(Google.Api.Ads.AdManager.v201808.CustomFieldOption[] customFieldOptions); + Google.Api.Ads.AdManager.v201908.CustomFieldOption[] createCustomFieldOptions(Google.Api.Ads.AdManager.v201908.CustomFieldOption[] customFieldOptions); - System.Threading.Tasks.Task createCustomFieldOptionsAsync(Google.Api.Ads.AdManager.v201808.CustomFieldOption[] customFieldOptions); + System.Threading.Tasks.Task createCustomFieldOptionsAsync(Google.Api.Ads.AdManager.v201908.CustomFieldOption[] customFieldOptions); - Google.Api.Ads.AdManager.v201808.CustomField[] createCustomFields(Google.Api.Ads.AdManager.v201808.CustomField[] customFields); + Google.Api.Ads.AdManager.v201908.CustomField[] createCustomFields(Google.Api.Ads.AdManager.v201908.CustomField[] customFields); - System.Threading.Tasks.Task createCustomFieldsAsync(Google.Api.Ads.AdManager.v201808.CustomField[] customFields); + System.Threading.Tasks.Task createCustomFieldsAsync(Google.Api.Ads.AdManager.v201908.CustomField[] customFields); - Google.Api.Ads.AdManager.v201808.CustomFieldOption[] updateCustomFieldOptions(Google.Api.Ads.AdManager.v201808.CustomFieldOption[] customFieldOptions); + Google.Api.Ads.AdManager.v201908.CustomFieldOption[] updateCustomFieldOptions(Google.Api.Ads.AdManager.v201908.CustomFieldOption[] customFieldOptions); - System.Threading.Tasks.Task updateCustomFieldOptionsAsync(Google.Api.Ads.AdManager.v201808.CustomFieldOption[] customFieldOptions); + System.Threading.Tasks.Task updateCustomFieldOptionsAsync(Google.Api.Ads.AdManager.v201908.CustomFieldOption[] customFieldOptions); - Google.Api.Ads.AdManager.v201808.CustomField[] updateCustomFields(Google.Api.Ads.AdManager.v201808.CustomField[] customFields); + Google.Api.Ads.AdManager.v201908.CustomField[] updateCustomFields(Google.Api.Ads.AdManager.v201908.CustomField[] customFields); - System.Threading.Tasks.Task updateCustomFieldsAsync(Google.Api.Ads.AdManager.v201808.CustomField[] customFields); - } - - - /// Provides methods for adding, updating and retrieving ExchangeRate objects. - /// - public interface IExchangeRateService : ExchangeRateServiceInterface, IDisposable - { - Google.Api.Ads.AdManager.v201808.ExchangeRate[] createExchangeRates(Google.Api.Ads.AdManager.v201808.ExchangeRate[] exchangeRates); - - System.Threading.Tasks.Task createExchangeRatesAsync(Google.Api.Ads.AdManager.v201808.ExchangeRate[] exchangeRates); - - Google.Api.Ads.AdManager.v201808.ExchangeRate[] updateExchangeRates(Google.Api.Ads.AdManager.v201808.ExchangeRate[] exchangeRates); - - System.Threading.Tasks.Task updateExchangeRatesAsync(Google.Api.Ads.AdManager.v201808.ExchangeRate[] exchangeRates); - } - - - /// 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.v201808.Activity[] createActivities(Google.Api.Ads.AdManager.v201808.Activity[] activities); - - System.Threading.Tasks.Task createActivitiesAsync(Google.Api.Ads.AdManager.v201808.Activity[] activities); - - Google.Api.Ads.AdManager.v201808.Activity[] updateActivities(Google.Api.Ads.AdManager.v201808.Activity[] activities); - - System.Threading.Tasks.Task updateActivitiesAsync(Google.Api.Ads.AdManager.v201808.Activity[] activities); + System.Threading.Tasks.Task updateCustomFieldsAsync(Google.Api.Ads.AdManager.v201908.CustomField[] customFields); } @@ -76096,29 +61554,29 @@ public interface IActivityService : ActivityServiceInterface, IDisposable ///
public interface IForecastService : ForecastServiceInterface, IDisposable { - Google.Api.Ads.AdManager.v201808.DeliveryForecast getDeliveryForecast(Google.Api.Ads.AdManager.v201808.ProspectiveLineItem[] lineItems, Google.Api.Ads.AdManager.v201808.DeliveryForecastOptions forecastOptions); + Google.Api.Ads.AdManager.v201908.DeliveryForecast getDeliveryForecast(Google.Api.Ads.AdManager.v201908.ProspectiveLineItem[] lineItems, Google.Api.Ads.AdManager.v201908.DeliveryForecastOptions forecastOptions); - System.Threading.Tasks.Task getDeliveryForecastAsync(Google.Api.Ads.AdManager.v201808.ProspectiveLineItem[] lineItems, Google.Api.Ads.AdManager.v201808.DeliveryForecastOptions forecastOptions); + System.Threading.Tasks.Task getDeliveryForecastAsync(Google.Api.Ads.AdManager.v201908.ProspectiveLineItem[] lineItems, Google.Api.Ads.AdManager.v201908.DeliveryForecastOptions forecastOptions); - Google.Api.Ads.AdManager.v201808.DeliveryForecast getDeliveryForecastByIds(long[] lineItemIds, Google.Api.Ads.AdManager.v201808.DeliveryForecastOptions forecastOptions); + Google.Api.Ads.AdManager.v201908.DeliveryForecast getDeliveryForecastByIds(long[] lineItemIds, Google.Api.Ads.AdManager.v201908.DeliveryForecastOptions forecastOptions); - System.Threading.Tasks.Task getDeliveryForecastByIdsAsync(long[] lineItemIds, Google.Api.Ads.AdManager.v201808.DeliveryForecastOptions forecastOptions); + System.Threading.Tasks.Task getDeliveryForecastByIdsAsync(long[] lineItemIds, Google.Api.Ads.AdManager.v201908.DeliveryForecastOptions forecastOptions); } public interface IInventoryService : InventoryServiceInterface, IDisposable { - Google.Api.Ads.AdManager.v201808.AdUnit[] createAdUnits(Google.Api.Ads.AdManager.v201808.AdUnit[] adUnits); + Google.Api.Ads.AdManager.v201908.AdUnit[] createAdUnits(Google.Api.Ads.AdManager.v201908.AdUnit[] adUnits); - System.Threading.Tasks.Task createAdUnitsAsync(Google.Api.Ads.AdManager.v201808.AdUnit[] adUnits); + System.Threading.Tasks.Task createAdUnitsAsync(Google.Api.Ads.AdManager.v201908.AdUnit[] adUnits); - Google.Api.Ads.AdManager.v201808.AdUnitSize[] getAdUnitSizesByStatement(Google.Api.Ads.AdManager.v201808.Statement filterStatement); + Google.Api.Ads.AdManager.v201908.AdUnitSize[] getAdUnitSizesByStatement(Google.Api.Ads.AdManager.v201908.Statement filterStatement); - System.Threading.Tasks.Task getAdUnitSizesByStatementAsync(Google.Api.Ads.AdManager.v201808.Statement filterStatement); + System.Threading.Tasks.Task getAdUnitSizesByStatementAsync(Google.Api.Ads.AdManager.v201908.Statement filterStatement); - Google.Api.Ads.AdManager.v201808.AdUnit[] updateAdUnits(Google.Api.Ads.AdManager.v201808.AdUnit[] adUnits); + Google.Api.Ads.AdManager.v201908.AdUnit[] updateAdUnits(Google.Api.Ads.AdManager.v201908.AdUnit[] adUnits); - System.Threading.Tasks.Task updateAdUnitsAsync(Google.Api.Ads.AdManager.v201808.AdUnit[] adUnits); + System.Threading.Tasks.Task updateAdUnitsAsync(Google.Api.Ads.AdManager.v201908.AdUnit[] adUnits); } @@ -76126,13 +61584,32 @@ public interface IInventoryService : InventoryServiceInterface, IDisposable ///
public interface ILabelService : LabelServiceInterface, IDisposable { - Google.Api.Ads.AdManager.v201808.Label[] createLabels(Google.Api.Ads.AdManager.v201808.Label[] labels); + Google.Api.Ads.AdManager.v201908.Label[] createLabels(Google.Api.Ads.AdManager.v201908.Label[] labels); - System.Threading.Tasks.Task createLabelsAsync(Google.Api.Ads.AdManager.v201808.Label[] labels); + System.Threading.Tasks.Task createLabelsAsync(Google.Api.Ads.AdManager.v201908.Label[] labels); - Google.Api.Ads.AdManager.v201808.Label[] updateLabels(Google.Api.Ads.AdManager.v201808.Label[] labels); + Google.Api.Ads.AdManager.v201908.Label[] updateLabels(Google.Api.Ads.AdManager.v201908.Label[] labels); - System.Threading.Tasks.Task updateLabelsAsync(Google.Api.Ads.AdManager.v201808.Label[] labels); + System.Threading.Tasks.Task updateLabelsAsync(Google.Api.Ads.AdManager.v201908.Label[] labels); + } + + + /// 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.v201908.Activity[] createActivities(Google.Api.Ads.AdManager.v201908.Activity[] activities); + + System.Threading.Tasks.Task createActivitiesAsync(Google.Api.Ads.AdManager.v201908.Activity[] activities); + + Google.Api.Ads.AdManager.v201908.Activity[] updateActivities(Google.Api.Ads.AdManager.v201908.Activity[] activities); + + System.Threading.Tasks.Task updateActivitiesAsync(Google.Api.Ads.AdManager.v201908.Activity[] activities); } @@ -76151,17 +61628,17 @@ public interface ILabelService : LabelServiceInterface, IDisposable ///
public interface ILineItemCreativeAssociationService : LineItemCreativeAssociationServiceInterface, IDisposable { - Google.Api.Ads.AdManager.v201808.LineItemCreativeAssociation[] createLineItemCreativeAssociations(Google.Api.Ads.AdManager.v201808.LineItemCreativeAssociation[] lineItemCreativeAssociations); + Google.Api.Ads.AdManager.v201908.LineItemCreativeAssociation[] createLineItemCreativeAssociations(Google.Api.Ads.AdManager.v201908.LineItemCreativeAssociation[] lineItemCreativeAssociations); - System.Threading.Tasks.Task createLineItemCreativeAssociationsAsync(Google.Api.Ads.AdManager.v201808.LineItemCreativeAssociation[] lineItemCreativeAssociations); + System.Threading.Tasks.Task createLineItemCreativeAssociationsAsync(Google.Api.Ads.AdManager.v201908.LineItemCreativeAssociation[] lineItemCreativeAssociations); - Google.Api.Ads.AdManager.v201808.CreativeNativeStylePreview[] getPreviewUrlsForNativeStyles(long lineItemId, long creativeId, string siteUrl); + Google.Api.Ads.AdManager.v201908.CreativeNativeStylePreview[] getPreviewUrlsForNativeStyles(long lineItemId, long creativeId, string siteUrl); - System.Threading.Tasks.Task getPreviewUrlsForNativeStylesAsync(long lineItemId, long creativeId, string siteUrl); + System.Threading.Tasks.Task getPreviewUrlsForNativeStylesAsync(long lineItemId, long creativeId, string siteUrl); - Google.Api.Ads.AdManager.v201808.LineItemCreativeAssociation[] updateLineItemCreativeAssociations(Google.Api.Ads.AdManager.v201808.LineItemCreativeAssociation[] lineItemCreativeAssociations); + Google.Api.Ads.AdManager.v201908.LineItemCreativeAssociation[] updateLineItemCreativeAssociations(Google.Api.Ads.AdManager.v201908.LineItemCreativeAssociation[] lineItemCreativeAssociations); - System.Threading.Tasks.Task updateLineItemCreativeAssociationsAsync(Google.Api.Ads.AdManager.v201808.LineItemCreativeAssociation[] lineItemCreativeAssociations); + System.Threading.Tasks.Task updateLineItemCreativeAssociationsAsync(Google.Api.Ads.AdManager.v201908.LineItemCreativeAssociation[] lineItemCreativeAssociations); } @@ -76180,13 +61657,13 @@ public interface ILineItemCreativeAssociationService : LineItemCreativeAssociati ///
public interface ILineItemService : LineItemServiceInterface, IDisposable { - Google.Api.Ads.AdManager.v201808.LineItem[] createLineItems(Google.Api.Ads.AdManager.v201808.LineItem[] lineItems); + Google.Api.Ads.AdManager.v201908.LineItem[] createLineItems(Google.Api.Ads.AdManager.v201908.LineItem[] lineItems); - System.Threading.Tasks.Task createLineItemsAsync(Google.Api.Ads.AdManager.v201808.LineItem[] lineItems); + System.Threading.Tasks.Task createLineItemsAsync(Google.Api.Ads.AdManager.v201908.LineItem[] lineItems); - Google.Api.Ads.AdManager.v201808.LineItem[] updateLineItems(Google.Api.Ads.AdManager.v201808.LineItem[] lineItems); + Google.Api.Ads.AdManager.v201908.LineItem[] updateLineItems(Google.Api.Ads.AdManager.v201908.LineItem[] lineItems); - System.Threading.Tasks.Task updateLineItemsAsync(Google.Api.Ads.AdManager.v201808.LineItem[] lineItems); + System.Threading.Tasks.Task updateLineItemsAsync(Google.Api.Ads.AdManager.v201908.LineItem[] lineItems); } @@ -76205,17 +61682,17 @@ public interface ILineItemTemplateService : LineItemTemplateServiceInterface, ID ///
public interface ILiveStreamEventService : LiveStreamEventServiceInterface, IDisposable { - Google.Api.Ads.AdManager.v201808.LiveStreamEvent[] createLiveStreamEvents(Google.Api.Ads.AdManager.v201808.LiveStreamEvent[] liveStreamEvents); + Google.Api.Ads.AdManager.v201908.LiveStreamEvent[] createLiveStreamEvents(Google.Api.Ads.AdManager.v201908.LiveStreamEvent[] liveStreamEvents); - System.Threading.Tasks.Task createLiveStreamEventsAsync(Google.Api.Ads.AdManager.v201808.LiveStreamEvent[] liveStreamEvents); + System.Threading.Tasks.Task createLiveStreamEventsAsync(Google.Api.Ads.AdManager.v201908.LiveStreamEvent[] liveStreamEvents); string[] registerSessionsForMonitoring(string[] sessionIds); System.Threading.Tasks.Task registerSessionsForMonitoringAsync(string[] sessionIds); - Google.Api.Ads.AdManager.v201808.LiveStreamEvent[] updateLiveStreamEvents(Google.Api.Ads.AdManager.v201808.LiveStreamEvent[] liveStreamEvents); + Google.Api.Ads.AdManager.v201908.LiveStreamEvent[] updateLiveStreamEvents(Google.Api.Ads.AdManager.v201908.LiveStreamEvent[] liveStreamEvents); - System.Threading.Tasks.Task updateLiveStreamEventsAsync(Google.Api.Ads.AdManager.v201808.LiveStreamEvent[] liveStreamEvents); + System.Threading.Tasks.Task updateLiveStreamEventsAsync(Google.Api.Ads.AdManager.v201908.LiveStreamEvent[] liveStreamEvents); } @@ -76224,13 +61701,13 @@ public interface ILiveStreamEventService : LiveStreamEventServiceInterface, IDis ///
public interface IMobileApplicationService : MobileApplicationServiceInterface, IDisposable { - Google.Api.Ads.AdManager.v201808.MobileApplication[] createMobileApplications(Google.Api.Ads.AdManager.v201808.MobileApplication[] mobileApplications); + Google.Api.Ads.AdManager.v201908.MobileApplication[] createMobileApplications(Google.Api.Ads.AdManager.v201908.MobileApplication[] mobileApplications); - System.Threading.Tasks.Task createMobileApplicationsAsync(Google.Api.Ads.AdManager.v201808.MobileApplication[] mobileApplications); + System.Threading.Tasks.Task createMobileApplicationsAsync(Google.Api.Ads.AdManager.v201908.MobileApplication[] mobileApplications); - Google.Api.Ads.AdManager.v201808.MobileApplication[] updateMobileApplications(Google.Api.Ads.AdManager.v201808.MobileApplication[] mobileApplications); + Google.Api.Ads.AdManager.v201908.MobileApplication[] updateMobileApplications(Google.Api.Ads.AdManager.v201908.MobileApplication[] mobileApplications); - System.Threading.Tasks.Task updateMobileApplicationsAsync(Google.Api.Ads.AdManager.v201808.MobileApplication[] mobileApplications); + System.Threading.Tasks.Task updateMobileApplicationsAsync(Google.Api.Ads.AdManager.v201908.MobileApplication[] mobileApplications); } @@ -76240,9 +61717,9 @@ public interface IMobileApplicationService : MobileApplicationServiceInterface, ///
public interface INetworkService : NetworkServiceInterface, IDisposable { - Google.Api.Ads.AdManager.v201808.Network[] getAllNetworks(); + Google.Api.Ads.AdManager.v201908.Network[] getAllNetworks(); - System.Threading.Tasks.Task getAllNetworksAsync(); + System.Threading.Tasks.Task getAllNetworksAsync(); } @@ -76254,31 +61731,13 @@ public interface INetworkService : NetworkServiceInterface, IDisposable ///
public interface IOrderService : OrderServiceInterface, IDisposable { - Google.Api.Ads.AdManager.v201808.Order[] createOrders(Google.Api.Ads.AdManager.v201808.Order[] orders); - - System.Threading.Tasks.Task createOrdersAsync(Google.Api.Ads.AdManager.v201808.Order[] orders); - - Google.Api.Ads.AdManager.v201808.Order[] updateOrders(Google.Api.Ads.AdManager.v201808.Order[] orders); - - System.Threading.Tasks.Task updateOrdersAsync(Google.Api.Ads.AdManager.v201808.Order[] orders); - } - - - /// Provides methods for creating, updating and retrieving AdExclusionRule objects.

An AdExclusionRule provides a way to block specified ads - /// from showing on portions of your site. Each rule specifies the inventory on - /// which the rule is in effect, and the labels to block on that inventory.

- ///
- public interface IAdExclusionRuleService : AdExclusionRuleServiceInterface, IDisposable - { - Google.Api.Ads.AdManager.v201808.AdExclusionRule[] createAdExclusionRules(Google.Api.Ads.AdManager.v201808.AdExclusionRule[] adExclusionRules); + Google.Api.Ads.AdManager.v201908.Order[] createOrders(Google.Api.Ads.AdManager.v201908.Order[] orders); - System.Threading.Tasks.Task createAdExclusionRulesAsync(Google.Api.Ads.AdManager.v201808.AdExclusionRule[] adExclusionRules); + System.Threading.Tasks.Task createOrdersAsync(Google.Api.Ads.AdManager.v201908.Order[] orders); - Google.Api.Ads.AdManager.v201808.AdExclusionRule[] updateAdExclusionRules(Google.Api.Ads.AdManager.v201808.AdExclusionRule[] adExclusionRules); + Google.Api.Ads.AdManager.v201908.Order[] updateOrders(Google.Api.Ads.AdManager.v201908.Order[] orders); - System.Threading.Tasks.Task updateAdExclusionRulesAsync(Google.Api.Ads.AdManager.v201808.AdExclusionRule[] adExclusionRules); + System.Threading.Tasks.Task updateOrdersAsync(Google.Api.Ads.AdManager.v201908.Order[] orders); } @@ -76291,102 +61750,64 @@ public interface IAdExclusionRuleService : AdExclusionRuleServiceInterface, IDis ///
public interface IPlacementService : PlacementServiceInterface, IDisposable { - Google.Api.Ads.AdManager.v201808.Placement[] createPlacements(Google.Api.Ads.AdManager.v201808.Placement[] placements); + Google.Api.Ads.AdManager.v201908.Placement[] createPlacements(Google.Api.Ads.AdManager.v201908.Placement[] placements); - System.Threading.Tasks.Task createPlacementsAsync(Google.Api.Ads.AdManager.v201808.Placement[] placements); + System.Threading.Tasks.Task createPlacementsAsync(Google.Api.Ads.AdManager.v201908.Placement[] placements); - Google.Api.Ads.AdManager.v201808.Placement[] updatePlacements(Google.Api.Ads.AdManager.v201808.Placement[] placements); + Google.Api.Ads.AdManager.v201908.Placement[] updatePlacements(Google.Api.Ads.AdManager.v201908.Placement[] placements); - System.Threading.Tasks.Task updatePlacementsAsync(Google.Api.Ads.AdManager.v201808.Placement[] placements); + System.Threading.Tasks.Task updatePlacementsAsync(Google.Api.Ads.AdManager.v201908.Placement[] placements); } - /// Provides methods for managing PremiumRate objects. - ///

To use this service, you need to have the new sales management solution - /// enabled on your network. If you do not see a "Sales" tab in DoubleClick for Publishers (DFP), you will - /// not be able to use this service.

+ /// Provides methods for adding, updating and retrieving Proposal objects. /// - public interface IPremiumRateService : PremiumRateServiceInterface, IDisposable + public interface IProposalService : ProposalServiceInterface, IDisposable { - Google.Api.Ads.AdManager.v201808.PremiumRate[] createPremiumRates(Google.Api.Ads.AdManager.v201808.PremiumRate[] premiumRates); - - System.Threading.Tasks.Task createPremiumRatesAsync(Google.Api.Ads.AdManager.v201808.PremiumRate[] premiumRates); - - Google.Api.Ads.AdManager.v201808.PremiumRate[] updatePremiumRates(Google.Api.Ads.AdManager.v201808.PremiumRate[] premiumRates); - - System.Threading.Tasks.Task updatePremiumRatesAsync(Google.Api.Ads.AdManager.v201808.PremiumRate[] premiumRates); - } + Google.Api.Ads.AdManager.v201908.Proposal[] createProposals(Google.Api.Ads.AdManager.v201908.Proposal[] proposals); + System.Threading.Tasks.Task createProposalsAsync(Google.Api.Ads.AdManager.v201908.Proposal[] proposals); - /// Provides methods for updating and retrieving Product - /// objects.

A Product represents a line item proposal. Products are - /// generated from ProductTemplate product templates on a periodic - /// basis using the product template's attributes. Products are typically used by - /// inventory managers to restrict what salespeople can sell.

To use this - /// service, you need to have the new sales management solution enabled on your - /// network. If you do not see a "Sales" tab in DoubleClick for Publishers (DFP), you will - /// not be able to use this service.

- ///
- public interface IProductService : ProductServiceInterface, IDisposable - { - Google.Api.Ads.AdManager.v201808.Product[] updateProducts(Google.Api.Ads.AdManager.v201808.Product[] products); + Google.Api.Ads.AdManager.v201908.Proposal[] updateProposals(Google.Api.Ads.AdManager.v201908.Proposal[] proposals); - System.Threading.Tasks.Task updateProductsAsync(Google.Api.Ads.AdManager.v201808.Product[] products); + System.Threading.Tasks.Task updateProposalsAsync(Google.Api.Ads.AdManager.v201908.Proposal[] proposals); } /// Provides methods for creating, updating and retrieving ProductTemplate objects.

A product template is - /// used to generate a set of products. Products allow inventory managers to control - /// what salespeople can sell.

To use this service, you need to have the new - /// sales management solution enabled on your network. If you do not see a "Sales" - /// tab in DoubleClick for Publishers - /// (DFP), you will not be able to use this service.

- ///
- public interface IProductTemplateService : ProductTemplateServiceInterface, IDisposable - { - Google.Api.Ads.AdManager.v201808.ProductTemplate[] createProductTemplates(Google.Api.Ads.AdManager.v201808.ProductTemplate[] productTemplates); - - System.Threading.Tasks.Task createProductTemplatesAsync(Google.Api.Ads.AdManager.v201808.ProductTemplate[] productTemplates); - - Google.Api.Ads.AdManager.v201808.ProductTemplate[] updateProductTemplates(Google.Api.Ads.AdManager.v201808.ProductTemplate[] productTemplates); - - System.Threading.Tasks.Task updateProductTemplatesAsync(Google.Api.Ads.AdManager.v201808.ProductTemplate[] productTemplates); - } - - - /// Provides methods for adding, updating and retrieving Proposal objects. + /// href='ProposalLineItem'>ProposalLineItem objects.

To use this service, + /// you need to have the new sales management solution enabled on your network. If + /// you do not see a "Sales" tab in DoubleClick + /// for Publishers (DFP), you will not be able to use this service.

///
- public interface IProposalService : ProposalServiceInterface, IDisposable + public interface IProposalLineItemService : ProposalLineItemServiceInterface, IDisposable { - Google.Api.Ads.AdManager.v201808.Proposal[] createProposals(Google.Api.Ads.AdManager.v201808.Proposal[] proposals); + Google.Api.Ads.AdManager.v201908.ProposalLineItem[] createProposalLineItems(Google.Api.Ads.AdManager.v201908.ProposalLineItem[] proposalLineItems); - System.Threading.Tasks.Task createProposalsAsync(Google.Api.Ads.AdManager.v201808.Proposal[] proposals); + System.Threading.Tasks.Task createProposalLineItemsAsync(Google.Api.Ads.AdManager.v201908.ProposalLineItem[] proposalLineItems); - Google.Api.Ads.AdManager.v201808.Proposal[] updateProposals(Google.Api.Ads.AdManager.v201808.Proposal[] proposals); + Google.Api.Ads.AdManager.v201908.ProposalLineItem[] updateProposalLineItems(Google.Api.Ads.AdManager.v201908.ProposalLineItem[] proposalLineItems); - System.Threading.Tasks.Task updateProposalsAsync(Google.Api.Ads.AdManager.v201808.Proposal[] proposals); + System.Threading.Tasks.Task updateProposalLineItemsAsync(Google.Api.Ads.AdManager.v201908.ProposalLineItem[] proposalLineItems); } /// Provides methods for creating, updating and retrieving ProposalLineItem objects.

To use this service, - /// you need to have the new sales management solution enabled on your network. If - /// you do not see a "Sales" tab in DoubleClick - /// for Publishers (DFP), you will not be able to use this service.

+ /// href='AdExclusionRule'>AdExclusionRule objects.

An AdExclusionRule provides a way to block specified ads + /// from showing on portions of your site. Each rule specifies the inventory on + /// which the rule is in effect, and the labels to block on that inventory.

///
- public interface IProposalLineItemService : ProposalLineItemServiceInterface, IDisposable + public interface IAdExclusionRuleService : AdExclusionRuleServiceInterface, IDisposable { - Google.Api.Ads.AdManager.v201808.ProposalLineItem[] createProposalLineItems(Google.Api.Ads.AdManager.v201808.ProposalLineItem[] proposalLineItems); + Google.Api.Ads.AdManager.v201908.AdExclusionRule[] createAdExclusionRules(Google.Api.Ads.AdManager.v201908.AdExclusionRule[] adExclusionRules); - System.Threading.Tasks.Task createProposalLineItemsAsync(Google.Api.Ads.AdManager.v201808.ProposalLineItem[] proposalLineItems); + System.Threading.Tasks.Task createAdExclusionRulesAsync(Google.Api.Ads.AdManager.v201908.AdExclusionRule[] adExclusionRules); - Google.Api.Ads.AdManager.v201808.ProposalLineItem[] updateProposalLineItems(Google.Api.Ads.AdManager.v201808.ProposalLineItem[] proposalLineItems); + Google.Api.Ads.AdManager.v201908.AdExclusionRule[] updateAdExclusionRules(Google.Api.Ads.AdManager.v201908.AdExclusionRule[] adExclusionRules); - System.Threading.Tasks.Task updateProposalLineItemsAsync(Google.Api.Ads.AdManager.v201808.ProposalLineItem[] proposalLineItems); + System.Threading.Tasks.Task updateAdExclusionRulesAsync(Google.Api.Ads.AdManager.v201908.AdExclusionRule[] adExclusionRules); } @@ -76666,86 +62087,6 @@ public interface IPublisherQueryLanguageService : PublisherQueryLanguageServiceI } - /// Provides methods for managing RateCard objects.

To use - /// this service, you need to have the new sales management solution enabled on your - /// network. If you do not see a "Sales" tab in DoubleClick for Publishers (DFP), you will - /// not be able to use this service.

- ///
- public interface IRateCardService : RateCardServiceInterface, IDisposable - { - Google.Api.Ads.AdManager.v201808.RateCard[] createRateCards(Google.Api.Ads.AdManager.v201808.RateCard[] rateCards); - - System.Threading.Tasks.Task createRateCardsAsync(Google.Api.Ads.AdManager.v201808.RateCard[] rateCards); - - Google.Api.Ads.AdManager.v201808.RateCard[] updateRateCards(Google.Api.Ads.AdManager.v201808.RateCard[] rateCards); - - System.Threading.Tasks.Task updateRateCardsAsync(Google.Api.Ads.AdManager.v201808.RateCard[] rateCards); - } - - - /// Provides methods for retrieving, reconciling, and reverting ReconciliationOrderReport objects. - /// - public interface IReconciliationOrderReportService : ReconciliationOrderReportServiceInterface, IDisposable - { - Google.Api.Ads.AdManager.v201808.ReconciliationOrderReport[] updateReconciliationOrderReports(Google.Api.Ads.AdManager.v201808.ReconciliationOrderReport[] reconciliationOrderReports); - - System.Threading.Tasks.Task updateReconciliationOrderReportsAsync(Google.Api.Ads.AdManager.v201808.ReconciliationOrderReport[] reconciliationOrderReports); - } - - - /// Provides methods for retrieving and updating ReconciliationLineItemReport objects. - /// - public interface IReconciliationLineItemReportService : ReconciliationLineItemReportServiceInterface, IDisposable - { - Google.Api.Ads.AdManager.v201808.ReconciliationLineItemReport[] updateReconciliationLineItemReports(Google.Api.Ads.AdManager.v201808.ReconciliationLineItemReport[] reconciliationLineItemReports); - - System.Threading.Tasks.Task updateReconciliationLineItemReportsAsync(Google.Api.Ads.AdManager.v201808.ReconciliationLineItemReport[] reconciliationLineItemReports); - } - - - /// 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.v201808.AdRule[] createAdRules(Google.Api.Ads.AdManager.v201808.AdRule[] adRules); - - System.Threading.Tasks.Task createAdRulesAsync(Google.Api.Ads.AdManager.v201808.AdRule[] adRules); - - Google.Api.Ads.AdManager.v201808.AdRule[] updateAdRules(Google.Api.Ads.AdManager.v201808.AdRule[] adRules); - - System.Threading.Tasks.Task updateAdRulesAsync(Google.Api.Ads.AdManager.v201808.AdRule[] adRules); - } - - - /// Provides methods for retrieving, submitting and reverting the ReconciliationReport objects.

A ReconciliationReport is a group of ReconciliationReportRow objects.

- ///
- public interface IReconciliationReportService : ReconciliationReportServiceInterface, IDisposable - { - Google.Api.Ads.AdManager.v201808.ReconciliationReport[] updateReconciliationReports(Google.Api.Ads.AdManager.v201808.ReconciliationReport[] reconciliationReports); - - System.Threading.Tasks.Task updateReconciliationReportsAsync(Google.Api.Ads.AdManager.v201808.ReconciliationReport[] reconciliationReports); - } - - - /// Provides methods for retrieving and updating the ReconciliationReportRow objects. - /// - public interface IReconciliationReportRowService : ReconciliationReportRowServiceInterface, IDisposable - { - Google.Api.Ads.AdManager.v201808.ReconciliationReportRow[] updateReconciliationReportRows(Google.Api.Ads.AdManager.v201808.ReconciliationReportRow[] reconciliationReportRows); - - System.Threading.Tasks.Task updateReconciliationReportRowsAsync(Google.Api.Ads.AdManager.v201808.ReconciliationReportRow[] reconciliationReportRows); - } - - /// 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 @@ -76800,13 +62141,13 @@ public interface ISuggestedAdUnitService : SuggestedAdUnitServiceInterface, IDis ///
public interface ITeamService : TeamServiceInterface, IDisposable { - Google.Api.Ads.AdManager.v201808.Team[] createTeams(Google.Api.Ads.AdManager.v201808.Team[] teams); + Google.Api.Ads.AdManager.v201908.Team[] createTeams(Google.Api.Ads.AdManager.v201908.Team[] teams); - System.Threading.Tasks.Task createTeamsAsync(Google.Api.Ads.AdManager.v201808.Team[] teams); + System.Threading.Tasks.Task createTeamsAsync(Google.Api.Ads.AdManager.v201908.Team[] teams); - Google.Api.Ads.AdManager.v201808.Team[] updateTeams(Google.Api.Ads.AdManager.v201808.Team[] teams); + Google.Api.Ads.AdManager.v201908.Team[] updateTeams(Google.Api.Ads.AdManager.v201908.Team[] teams); - System.Threading.Tasks.Task updateTeamsAsync(Google.Api.Ads.AdManager.v201808.Team[] teams); + System.Threading.Tasks.Task updateTeamsAsync(Google.Api.Ads.AdManager.v201908.Team[] teams); } @@ -76818,17 +62159,17 @@ public interface ITeamService : TeamServiceInterface, IDisposable ///
public interface IUserService : UserServiceInterface, IDisposable { - Google.Api.Ads.AdManager.v201808.User[] createUsers(Google.Api.Ads.AdManager.v201808.User[] users); + Google.Api.Ads.AdManager.v201908.User[] createUsers(Google.Api.Ads.AdManager.v201908.User[] users); - System.Threading.Tasks.Task createUsersAsync(Google.Api.Ads.AdManager.v201808.User[] users); + System.Threading.Tasks.Task createUsersAsync(Google.Api.Ads.AdManager.v201908.User[] users); - Google.Api.Ads.AdManager.v201808.Role[] getAllRoles(); + Google.Api.Ads.AdManager.v201908.Role[] getAllRoles(); - System.Threading.Tasks.Task getAllRolesAsync(); + System.Threading.Tasks.Task getAllRolesAsync(); - Google.Api.Ads.AdManager.v201808.User[] updateUsers(Google.Api.Ads.AdManager.v201808.User[] users); + Google.Api.Ads.AdManager.v201908.User[] updateUsers(Google.Api.Ads.AdManager.v201908.User[] users); - System.Threading.Tasks.Task updateUsersAsync(Google.Api.Ads.AdManager.v201808.User[] users); + System.Threading.Tasks.Task updateUsersAsync(Google.Api.Ads.AdManager.v201908.User[] users); } @@ -76840,112 +62181,91 @@ public interface IUserService : UserServiceInterface, IDisposable ///
public interface IUserTeamAssociationService : UserTeamAssociationServiceInterface, IDisposable { - Google.Api.Ads.AdManager.v201808.UserTeamAssociation[] createUserTeamAssociations(Google.Api.Ads.AdManager.v201808.UserTeamAssociation[] userTeamAssociations); + Google.Api.Ads.AdManager.v201908.UserTeamAssociation[] createUserTeamAssociations(Google.Api.Ads.AdManager.v201908.UserTeamAssociation[] userTeamAssociations); - System.Threading.Tasks.Task createUserTeamAssociationsAsync(Google.Api.Ads.AdManager.v201808.UserTeamAssociation[] userTeamAssociations); + System.Threading.Tasks.Task createUserTeamAssociationsAsync(Google.Api.Ads.AdManager.v201908.UserTeamAssociation[] userTeamAssociations); - Google.Api.Ads.AdManager.v201808.UserTeamAssociation[] updateUserTeamAssociations(Google.Api.Ads.AdManager.v201808.UserTeamAssociation[] userTeamAssociations); + Google.Api.Ads.AdManager.v201908.UserTeamAssociation[] updateUserTeamAssociations(Google.Api.Ads.AdManager.v201908.UserTeamAssociation[] userTeamAssociations); - System.Threading.Tasks.Task updateUserTeamAssociationsAsync(Google.Api.Ads.AdManager.v201808.UserTeamAssociation[] userTeamAssociations); + System.Threading.Tasks.Task updateUserTeamAssociationsAsync(Google.Api.Ads.AdManager.v201908.UserTeamAssociation[] userTeamAssociations); } - /// Provides methods to retrieve and perform actions on WorkflowRequest objects

To use this service, you - /// need to have the new sales management solution enabled on your network. If you - /// do not see a "Sales" tab in DoubleClick for - /// Publishers (DFP), you will not be able to use this service.

+ /// Provides methods for creating and retrieving NativeStyle objects. /// - public interface IWorkflowRequestService : WorkflowRequestServiceInterface, IDisposable + public interface INativeStyleService : NativeStyleServiceInterface, IDisposable { + Google.Api.Ads.AdManager.v201908.NativeStyle[] createNativeStyles(Google.Api.Ads.AdManager.v201908.NativeStyle[] nativeStyles); + + System.Threading.Tasks.Task createNativeStylesAsync(Google.Api.Ads.AdManager.v201908.NativeStyle[] nativeStyles); + + Google.Api.Ads.AdManager.v201908.NativeStyle[] updateNativeStyles(Google.Api.Ads.AdManager.v201908.NativeStyle[] nativeStyles); + + System.Threading.Tasks.Task updateNativeStylesAsync(Google.Api.Ads.AdManager.v201908.NativeStyle[] nativeStyles); } /// Provides methods for creating, updating and retrieving Package objects.

To use this service, you need to have the - /// new sales management solution enabled on your network. If you do not see a - /// "Sales" tab in DoubleClick for Publishers - /// (DFP), you will not be able to use this service.

- ///
- public interface IPackageService : PackageServiceInterface, IDisposable + /// href='Adjustment'>Adjustment objects.

Adjustments are used to adjust a + /// particular ad unit for forecasting. For, example you might have a manual + /// adjustment for an inventory unit that will be seeing a spike for a movie + /// premiere coming up. Or you may have a historical adjustment to tell forecasting + /// that you have a seasonal trend coming up and you want Christmas this year to + /// look like Christmas last year plus five percent.

+ ///
+ public interface IAdjustmentService : AdjustmentServiceInterface, IDisposable { - Google.Api.Ads.AdManager.v201808.Package[] createPackages(Google.Api.Ads.AdManager.v201808.Package[] packages); + Google.Api.Ads.AdManager.v201908.TrafficForecastAdjustment[] updateTrafficAdjustments(Google.Api.Ads.AdManager.v201908.TrafficForecastAdjustment[] adjustments); - System.Threading.Tasks.Task createPackagesAsync(Google.Api.Ads.AdManager.v201808.Package[] packages); - - Google.Api.Ads.AdManager.v201808.Package[] updatePackages(Google.Api.Ads.AdManager.v201808.Package[] packages); - - System.Threading.Tasks.Task updatePackagesAsync(Google.Api.Ads.AdManager.v201808.Package[] packages); + System.Threading.Tasks.Task updateTrafficAdjustmentsAsync(Google.Api.Ads.AdManager.v201908.TrafficForecastAdjustment[] adjustments); } - /// Provides methods for updating and retrieving ProductPackage objects.

A ProductPackage represents a group of products which - /// will be sold together.

To use this service, you need to have the new - /// sales management solution enabled on your network. If you do not see a "Sales" - /// tab in DoubleClick for Publishers - /// (DFP), you will not be able to use this service.

+ /// 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.

///
- public interface IProductPackageService : ProductPackageServiceInterface, IDisposable + public interface ICmsMetadataService : CmsMetadataServiceInterface, IDisposable { - Google.Api.Ads.AdManager.v201808.ProductPackage[] createProductPackages(Google.Api.Ads.AdManager.v201808.ProductPackage[] productPackages); - - System.Threading.Tasks.Task createProductPackagesAsync(Google.Api.Ads.AdManager.v201808.ProductPackage[] productPackages); - - Google.Api.Ads.AdManager.v201808.ProductPackage[] updateProductPackages(Google.Api.Ads.AdManager.v201808.ProductPackage[] productPackages); - - System.Threading.Tasks.Task updateProductPackagesAsync(Google.Api.Ads.AdManager.v201808.ProductPackage[] productPackages); } - /// Provides methods for creating, updating and retrieving Contact objects. + /// Service for interacting with Targeting Presets. /// - public interface IContactService : ContactServiceInterface, IDisposable + public interface ITargetingPresetService : TargetingPresetServiceInterface, IDisposable { - Google.Api.Ads.AdManager.v201808.Contact[] createContacts(Google.Api.Ads.AdManager.v201808.Contact[] contacts); - - System.Threading.Tasks.Task createContactsAsync(Google.Api.Ads.AdManager.v201808.Contact[] contacts); - - Google.Api.Ads.AdManager.v201808.Contact[] updateContacts(Google.Api.Ads.AdManager.v201808.Contact[] contacts); - - System.Threading.Tasks.Task updateContactsAsync(Google.Api.Ads.AdManager.v201808.Contact[] contacts); } - /// Provides methods for creating and retrieving ProductPackageItem objects.

A ProductPackageItem represents a product which will - /// be associated with a ProductPackage.

To use this service, - /// you need to have the new sales management solution enabled on your network. If - /// you do not see a "Sales" tab in DoubleClick - /// for Publishers (DFP), you will not be able to use this service.

+ /// 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 IProductPackageItemService : ProductPackageItemServiceInterface, IDisposable + public interface IAdRuleService : AdRuleServiceInterface, IDisposable { - Google.Api.Ads.AdManager.v201808.ProductPackageItem[] createProductPackageItems(Google.Api.Ads.AdManager.v201808.ProductPackageItem[] productPackageItems); + Google.Api.Ads.AdManager.v201908.AdRule[] createAdRules(Google.Api.Ads.AdManager.v201908.AdRule[] adRules); - System.Threading.Tasks.Task createProductPackageItemsAsync(Google.Api.Ads.AdManager.v201808.ProductPackageItem[] productPackageItems); + System.Threading.Tasks.Task createAdRulesAsync(Google.Api.Ads.AdManager.v201908.AdRule[] adRules); - Google.Api.Ads.AdManager.v201808.ProductPackageItem[] updateProductPackageItems(Google.Api.Ads.AdManager.v201808.ProductPackageItem[] productPackageItems); + Google.Api.Ads.AdManager.v201908.AdRule[] updateAdRules(Google.Api.Ads.AdManager.v201908.AdRule[] adRules); - System.Threading.Tasks.Task updateProductPackageItemsAsync(Google.Api.Ads.AdManager.v201808.ProductPackageItem[] productPackageItems); + System.Threading.Tasks.Task updateAdRulesAsync(Google.Api.Ads.AdManager.v201908.AdRule[] adRules); } - /// Provides methods for creating and retrieving NativeStyle objects. + /// Provides methods for creating, updating and retrieving Contact objects. /// - public interface INativeStyleService : NativeStyleServiceInterface, IDisposable + public interface IContactService : ContactServiceInterface, IDisposable { - Google.Api.Ads.AdManager.v201808.NativeStyle[] createNativeStyles(Google.Api.Ads.AdManager.v201808.NativeStyle[] nativeStyles); + Google.Api.Ads.AdManager.v201908.Contact[] createContacts(Google.Api.Ads.AdManager.v201908.Contact[] contacts); - System.Threading.Tasks.Task createNativeStylesAsync(Google.Api.Ads.AdManager.v201808.NativeStyle[] nativeStyles); + System.Threading.Tasks.Task createContactsAsync(Google.Api.Ads.AdManager.v201908.Contact[] contacts); - Google.Api.Ads.AdManager.v201808.NativeStyle[] updateNativeStyles(Google.Api.Ads.AdManager.v201808.NativeStyle[] nativeStyles); + Google.Api.Ads.AdManager.v201908.Contact[] updateContacts(Google.Api.Ads.AdManager.v201908.Contact[] contacts); - System.Threading.Tasks.Task updateNativeStylesAsync(Google.Api.Ads.AdManager.v201808.NativeStyle[] nativeStyles); + System.Threading.Tasks.Task updateContactsAsync(Google.Api.Ads.AdManager.v201908.Contact[] contacts); } @@ -76954,13 +62274,13 @@ public interface INativeStyleService : NativeStyleServiceInterface, IDisposable /// public interface IDaiAuthenticationKeyService : DaiAuthenticationKeyServiceInterface, IDisposable { - Google.Api.Ads.AdManager.v201808.DaiAuthenticationKey[] createDaiAuthenticationKeys(Google.Api.Ads.AdManager.v201808.DaiAuthenticationKey[] daiAuthenticationKeys); + Google.Api.Ads.AdManager.v201908.DaiAuthenticationKey[] createDaiAuthenticationKeys(Google.Api.Ads.AdManager.v201908.DaiAuthenticationKey[] daiAuthenticationKeys); - System.Threading.Tasks.Task createDaiAuthenticationKeysAsync(Google.Api.Ads.AdManager.v201808.DaiAuthenticationKey[] daiAuthenticationKeys); + System.Threading.Tasks.Task createDaiAuthenticationKeysAsync(Google.Api.Ads.AdManager.v201908.DaiAuthenticationKey[] daiAuthenticationKeys); - Google.Api.Ads.AdManager.v201808.DaiAuthenticationKey[] updateDaiAuthenticationKeys(Google.Api.Ads.AdManager.v201808.DaiAuthenticationKey[] daiAuthenticationKeys); + Google.Api.Ads.AdManager.v201908.DaiAuthenticationKey[] updateDaiAuthenticationKeys(Google.Api.Ads.AdManager.v201908.DaiAuthenticationKey[] daiAuthenticationKeys); - System.Threading.Tasks.Task updateDaiAuthenticationKeysAsync(Google.Api.Ads.AdManager.v201808.DaiAuthenticationKey[] daiAuthenticationKeys); + System.Threading.Tasks.Task updateDaiAuthenticationKeysAsync(Google.Api.Ads.AdManager.v201908.DaiAuthenticationKey[] daiAuthenticationKeys); } @@ -76969,61 +62289,60 @@ public interface IDaiAuthenticationKeyService : DaiAuthenticationKeyServiceInter ///
public interface IAudienceSegmentService : AudienceSegmentServiceInterface, IDisposable { - Google.Api.Ads.AdManager.v201808.FirstPartyAudienceSegment[] createAudienceSegments(Google.Api.Ads.AdManager.v201808.FirstPartyAudienceSegment[] segments); + Google.Api.Ads.AdManager.v201908.FirstPartyAudienceSegment[] createAudienceSegments(Google.Api.Ads.AdManager.v201908.FirstPartyAudienceSegment[] segments); - System.Threading.Tasks.Task createAudienceSegmentsAsync(Google.Api.Ads.AdManager.v201808.FirstPartyAudienceSegment[] segments); + System.Threading.Tasks.Task createAudienceSegmentsAsync(Google.Api.Ads.AdManager.v201908.FirstPartyAudienceSegment[] segments); - Google.Api.Ads.AdManager.v201808.FirstPartyAudienceSegment[] updateAudienceSegments(Google.Api.Ads.AdManager.v201808.FirstPartyAudienceSegment[] segments); + Google.Api.Ads.AdManager.v201908.FirstPartyAudienceSegment[] updateAudienceSegments(Google.Api.Ads.AdManager.v201908.FirstPartyAudienceSegment[] segments); - System.Threading.Tasks.Task updateAudienceSegmentsAsync(Google.Api.Ads.AdManager.v201808.FirstPartyAudienceSegment[] segments); + System.Threading.Tasks.Task updateAudienceSegmentsAsync(Google.Api.Ads.AdManager.v201908.FirstPartyAudienceSegment[] segments); } - /// Provides methods for managing BaseRate objects.

To use - /// this service, you need to have the new sales management solution enabled on your - /// network. If you do not see a "Sales" tab in DoubleClick for Publishers (DFP), you will - /// not be able to use this service.

+ /// Provides methods for creating, updating and retrieving CdnConfiguration objects. /// - public interface IBaseRateService : BaseRateServiceInterface, IDisposable + public interface ICdnConfigurationService : CdnConfigurationServiceInterface, IDisposable { - Google.Api.Ads.AdManager.v201808.BaseRate[] createBaseRates(Google.Api.Ads.AdManager.v201808.BaseRate[] baseRates); + Google.Api.Ads.AdManager.v201908.CdnConfiguration[] createCdnConfigurations(Google.Api.Ads.AdManager.v201908.CdnConfiguration[] cdnConfigurations); - System.Threading.Tasks.Task createBaseRatesAsync(Google.Api.Ads.AdManager.v201808.BaseRate[] baseRates); + System.Threading.Tasks.Task createCdnConfigurationsAsync(Google.Api.Ads.AdManager.v201908.CdnConfiguration[] cdnConfigurations); - Google.Api.Ads.AdManager.v201808.BaseRate[] updateBaseRates(Google.Api.Ads.AdManager.v201808.BaseRate[] baseRates); + Google.Api.Ads.AdManager.v201908.CdnConfiguration[] updateCdnConfigurations(Google.Api.Ads.AdManager.v201908.CdnConfiguration[] cdnConfigurations); - System.Threading.Tasks.Task updateBaseRatesAsync(Google.Api.Ads.AdManager.v201808.BaseRate[] baseRates); + System.Threading.Tasks.Task updateCdnConfigurationsAsync(Google.Api.Ads.AdManager.v201908.CdnConfiguration[] cdnConfigurations); } - /// Provides methods for creating, updating and retrieving CdnConfiguration objects. + /// Provides operations for creating, updating and retrieving Company objects. /// - public interface ICdnConfigurationService : CdnConfigurationServiceInterface, IDisposable + public interface ICompanyService : CompanyServiceInterface, IDisposable { - Google.Api.Ads.AdManager.v201808.CdnConfiguration[] createCdnConfigurations(Google.Api.Ads.AdManager.v201808.CdnConfiguration[] cdnConfigurations); + Google.Api.Ads.AdManager.v201908.Company[] createCompanies(Google.Api.Ads.AdManager.v201908.Company[] companies); - System.Threading.Tasks.Task createCdnConfigurationsAsync(Google.Api.Ads.AdManager.v201808.CdnConfiguration[] cdnConfigurations); + System.Threading.Tasks.Task createCompaniesAsync(Google.Api.Ads.AdManager.v201908.Company[] companies); - Google.Api.Ads.AdManager.v201808.CdnConfiguration[] updateCdnConfigurations(Google.Api.Ads.AdManager.v201808.CdnConfiguration[] cdnConfigurations); + Google.Api.Ads.AdManager.v201908.Company[] updateCompanies(Google.Api.Ads.AdManager.v201908.Company[] companies); - System.Threading.Tasks.Task updateCdnConfigurationsAsync(Google.Api.Ads.AdManager.v201808.CdnConfiguration[] cdnConfigurations); + System.Threading.Tasks.Task updateCompaniesAsync(Google.Api.Ads.AdManager.v201908.Company[] companies); } - /// Provides operations for creating, updating and retrieving Company objects. + /// 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.

///
- public interface ICompanyService : CompanyServiceInterface, IDisposable + public interface IContentBundleService : ContentBundleServiceInterface, IDisposable { - Google.Api.Ads.AdManager.v201808.Company[] createCompanies(Google.Api.Ads.AdManager.v201808.Company[] companies); + Google.Api.Ads.AdManager.v201908.ContentBundle[] createContentBundles(Google.Api.Ads.AdManager.v201908.ContentBundle[] contentBundles); - System.Threading.Tasks.Task createCompaniesAsync(Google.Api.Ads.AdManager.v201808.Company[] companies); + System.Threading.Tasks.Task createContentBundlesAsync(Google.Api.Ads.AdManager.v201908.ContentBundle[] contentBundles); - Google.Api.Ads.AdManager.v201808.Company[] updateCompanies(Google.Api.Ads.AdManager.v201808.Company[] companies); + Google.Api.Ads.AdManager.v201908.ContentBundle[] updateContentBundles(Google.Api.Ads.AdManager.v201908.ContentBundle[] contentBundles); - System.Threading.Tasks.Task updateCompaniesAsync(Google.Api.Ads.AdManager.v201808.Company[] companies); + System.Threading.Tasks.Task updateContentBundlesAsync(Google.Api.Ads.AdManager.v201908.ContentBundle[] contentBundles); } } #pragma warning restore 1591 diff --git a/src/AdManager/v201808/AdManagerServiceV201808.cs b/src/AdManager/v201908/AdManagerServiceV201908.cs similarity index 54% rename from src/AdManager/v201808/AdManagerServiceV201808.cs rename to src/AdManager/v201908/AdManagerServiceV201908.cs index 392edaefceb..6bd059f9cd1 100755 --- a/src/AdManager/v201808/AdManagerServiceV201808.cs +++ b/src/AdManager/v201908/AdManagerServiceV201908.cs @@ -1,4 +1,4 @@ -// Copyright 2018, Google Inc. All Rights Reserved. +// Copyright 2019, Google Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -26,430 +26,331 @@ namespace Google.Api.Ads.AdManager.Lib public partial class AdManagerService : AdsService { /// - /// All the services available in v201808. + /// All the services available in v201908. /// - public class v201808 + public class v201908 { /// - /// See + /// See /// this page for details. /// public static readonly ServiceSignature ActivityGroupService; /// - /// See + /// See /// this page for details. /// public static readonly ServiceSignature ActivityService; /// - /// See + /// See /// this page for details. /// public static readonly ServiceSignature AdExclusionRuleService; /// - /// See + /// See /// this page for details. /// - public static readonly ServiceSignature AdRuleService; + public static readonly ServiceSignature AdjustmentService; /// - /// See + /// See /// this page for details. /// - public static readonly ServiceSignature BaseRateService; + public static readonly ServiceSignature AdRuleService; /// - /// 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 ContactService; + public static readonly ServiceSignature CmsMetadataService; /// - /// See + /// See /// this page for details. /// - public static readonly ServiceSignature CompanyService; + public static readonly ServiceSignature ContactService; /// - /// See + /// See /// this page for details. /// - public static readonly ServiceSignature ContentBundleService; + public static readonly ServiceSignature CompanyService; /// - /// See + /// See /// this page for details. /// - public static readonly ServiceSignature ContentService; + public static readonly ServiceSignature ContentBundleService; /// - /// See + /// See /// this page for details. /// - public static readonly ServiceSignature ContentMetadataKeyHierarchyService; + public static readonly ServiceSignature ContentService; /// - /// See + /// See /// this page for details. /// public static readonly ServiceSignature CreativeService; /// - /// 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 - /// this page for details. - /// - public static readonly ServiceSignature ExchangeRateService; - - /// - /// 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 - /// this page for details. - /// - public static readonly ServiceSignature PackageService; - - /// - /// See - /// this page for details. - /// - public static readonly ServiceSignature ProductPackageItemService; - - /// - /// See - /// this page for details. - /// - public static readonly ServiceSignature ProductPackageService; - - /// - /// See + /// See /// this page for details. /// public static readonly ServiceSignature PlacementService; /// - /// See - /// this page for details. - /// - public static readonly ServiceSignature PremiumRateService; - - /// - /// See - /// this page for details. - /// - public static readonly ServiceSignature ProductService; - - /// - /// See - /// this page for details. - /// - public static readonly ServiceSignature ProductTemplateService; - - /// - /// 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 - /// this page for details. - /// - public static readonly ServiceSignature RateCardService; - - /// - /// See - /// this page for details. - /// - public static readonly ServiceSignature ReconciliationLineItemReportService; - - /// - /// See + /// See /// this page for details. /// - public static readonly ServiceSignature ReconciliationOrderReportService; - - /// - /// See - /// this page for details. - /// - public static readonly ServiceSignature ReconciliationReportService; - - /// - /// See - /// this page for details. - /// - public static readonly ServiceSignature ReconciliationReportRowService; + public static readonly ServiceSignature ReportService; /// - /// See + /// See /// this page for details. /// - public static readonly ServiceSignature ReportService; + public static readonly ServiceSignature SuggestedAdUnitService; /// - /// See + /// See /// this page for details. /// - public static readonly ServiceSignature SuggestedAdUnitService; + 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 - /// this page for details. - /// - public static readonly ServiceSignature WorkflowRequestService; - - /// - /// Factory type for v201808 services. + /// Factory type for v201908 services. /// public static readonly Type factoryType = typeof(AdManagerServiceFactory); /// /// Static constructor to initialize the service constants. /// - static v201808() + static v201908() { ActivityGroupService = - AdManagerService.MakeServiceSignature("v201808", "ActivityGroupService"); + AdManagerService.MakeServiceSignature("v201908", "ActivityGroupService"); ActivityService = - AdManagerService.MakeServiceSignature("v201808", "ActivityService"); + AdManagerService.MakeServiceSignature("v201908", "ActivityService"); AdExclusionRuleService = - AdManagerService.MakeServiceSignature("v201808", "AdExclusionRuleService"); - AdRuleService = AdManagerService.MakeServiceSignature("v201808", "AdRuleService"); - BaseRateService = - AdManagerService.MakeServiceSignature("v201808", "BaseRateService"); - ContactService = AdManagerService.MakeServiceSignature("v201808", "ContactService"); + AdManagerService.MakeServiceSignature("v201908", "AdExclusionRuleService"); + AdjustmentService = + AdManagerService.MakeServiceSignature("v201908", "AdjustmentService"); + AdRuleService = AdManagerService.MakeServiceSignature("v201908", "AdRuleService"); AudienceSegmentService = - AdManagerService.MakeServiceSignature("v201808", "AudienceSegmentService"); + AdManagerService.MakeServiceSignature("v201908", "AudienceSegmentService"); CdnConfigurationService = - AdManagerService.MakeServiceSignature("v201808", "CdnConfigurationService"); - CompanyService = AdManagerService.MakeServiceSignature("v201808", "CompanyService"); + AdManagerService.MakeServiceSignature("v201908", "CdnConfigurationService"); + CmsMetadataService = + AdManagerService.MakeServiceSignature("v201908", "CmsMetadataService"); + CompanyService = AdManagerService.MakeServiceSignature("v201908", "CompanyService"); + ContactService = AdManagerService.MakeServiceSignature("v201908", "ContactService"); ContentBundleService = - AdManagerService.MakeServiceSignature("v201808", "ContentBundleService"); - ContentService = AdManagerService.MakeServiceSignature("v201808", "ContentService"); - ContentMetadataKeyHierarchyService = - AdManagerService.MakeServiceSignature("v201808", - "ContentMetadataKeyHierarchyService"); + AdManagerService.MakeServiceSignature("v201908", "ContentBundleService"); + ContentService = AdManagerService.MakeServiceSignature("v201908", "ContentService"); CreativeService = - AdManagerService.MakeServiceSignature("v201808", "CreativeService"); + AdManagerService.MakeServiceSignature("v201908", "CreativeService"); CreativeSetService = - AdManagerService.MakeServiceSignature("v201808", "CreativeSetService"); + AdManagerService.MakeServiceSignature("v201908", "CreativeSetService"); CreativeTemplateService = - AdManagerService.MakeServiceSignature("v201808", "CreativeTemplateService"); + AdManagerService.MakeServiceSignature("v201908", "CreativeTemplateService"); CreativeWrapperService = - AdManagerService.MakeServiceSignature("v201808", "CreativeWrapperService"); + AdManagerService.MakeServiceSignature("v201908", "CreativeWrapperService"); CustomTargetingService = - AdManagerService.MakeServiceSignature("v201808", "CustomTargetingService"); + AdManagerService.MakeServiceSignature("v201908", "CustomTargetingService"); CustomFieldService = - AdManagerService.MakeServiceSignature("v201808", "CustomFieldService"); + AdManagerService.MakeServiceSignature("v201908", "CustomFieldService"); DaiAuthenticationKeyService = - AdManagerService.MakeServiceSignature("v201808", "DaiAuthenticationKeyService"); - ExchangeRateService = - AdManagerService.MakeServiceSignature("v201808", "ExchangeRateService"); + AdManagerService.MakeServiceSignature("v201908", "DaiAuthenticationKeyService"); ForecastService = - AdManagerService.MakeServiceSignature("v201808", "ForecastService"); + AdManagerService.MakeServiceSignature("v201908", "ForecastService"); InventoryService = - AdManagerService.MakeServiceSignature("v201808", "InventoryService"); - LabelService = AdManagerService.MakeServiceSignature("v201808", "LabelService"); + AdManagerService.MakeServiceSignature("v201908", "InventoryService"); + LabelService = AdManagerService.MakeServiceSignature("v201908", "LabelService"); LineItemTemplateService = - AdManagerService.MakeServiceSignature("v201808", "LineItemTemplateService"); + AdManagerService.MakeServiceSignature("v201908", "LineItemTemplateService"); LineItemService = - AdManagerService.MakeServiceSignature("v201808", "LineItemService"); + AdManagerService.MakeServiceSignature("v201908", "LineItemService"); LineItemCreativeAssociationService = - AdManagerService.MakeServiceSignature("v201808", + AdManagerService.MakeServiceSignature("v201908", "LineItemCreativeAssociationService"); LiveStreamEventService = - AdManagerService.MakeServiceSignature("v201808", "LiveStreamEventService"); + AdManagerService.MakeServiceSignature("v201908", "LiveStreamEventService"); MobileApplicationService = - AdManagerService.MakeServiceSignature("v201808", "MobileApplicationService"); + AdManagerService.MakeServiceSignature("v201908", "MobileApplicationService"); NativeStyleService = - AdManagerService.MakeServiceSignature("v201808", "NativeStyleService"); - NetworkService = AdManagerService.MakeServiceSignature("v201808", "NetworkService"); - OrderService = AdManagerService.MakeServiceSignature("v201808", "OrderService"); - PackageService = AdManagerService.MakeServiceSignature("v201808", "PackageService"); - ProductPackageService = - AdManagerService.MakeServiceSignature("v201808", "ProductPackageService"); - ProductPackageItemService = - AdManagerService.MakeServiceSignature("v201808", "ProductPackageItemService"); + AdManagerService.MakeServiceSignature("v201908", "NativeStyleService"); + NetworkService = AdManagerService.MakeServiceSignature("v201908", "NetworkService"); + OrderService = AdManagerService.MakeServiceSignature("v201908", "OrderService"); PlacementService = - AdManagerService.MakeServiceSignature("v201808", "PlacementService"); - PremiumRateService = - AdManagerService.MakeServiceSignature("v201808", "PremiumRateService"); - ProductService = AdManagerService.MakeServiceSignature("v201808", "ProductService"); - ProductTemplateService = - AdManagerService.MakeServiceSignature("v201808", "ProductTemplateService"); + AdManagerService.MakeServiceSignature("v201908", "PlacementService"); ProposalService = - AdManagerService.MakeServiceSignature("v201808", "ProposalService"); + AdManagerService.MakeServiceSignature("v201908", "ProposalService"); ProposalLineItemService = - AdManagerService.MakeServiceSignature("v201808", "ProposalLineItemService"); + AdManagerService.MakeServiceSignature("v201908", "ProposalLineItemService"); PublisherQueryLanguageService = - AdManagerService.MakeServiceSignature("v201808", + AdManagerService.MakeServiceSignature("v201908", "PublisherQueryLanguageService"); - RateCardService = - AdManagerService.MakeServiceSignature("v201808", "RateCardService"); - ReconciliationLineItemReportService = - AdManagerService.MakeServiceSignature("v201808", - "ReconciliationLineItemReportService"); - ReconciliationOrderReportService = - AdManagerService.MakeServiceSignature("v201808", - "ReconciliationOrderReportService"); - ReconciliationReportService = - AdManagerService.MakeServiceSignature("v201808", "ReconciliationReportService"); - ReconciliationReportRowService = - AdManagerService.MakeServiceSignature("v201808", - "ReconciliationReportRowService"); - ReportService = AdManagerService.MakeServiceSignature("v201808", "ReportService"); + ReportService = AdManagerService.MakeServiceSignature("v201908", "ReportService"); SuggestedAdUnitService = - AdManagerService.MakeServiceSignature("v201808", "SuggestedAdUnitService"); - TeamService = AdManagerService.MakeServiceSignature("v201808", "TeamService"); - UserService = AdManagerService.MakeServiceSignature("v201808", "UserService"); + AdManagerService.MakeServiceSignature("v201908", "SuggestedAdUnitService"); + TargetingPresetService = AdManagerService.MakeServiceSignature("v201908", "TargetingPresetService"); + TeamService = AdManagerService.MakeServiceSignature("v201908", "TeamService"); + UserService = AdManagerService.MakeServiceSignature("v201908", "UserService"); UserTeamAssociationService = - AdManagerService.MakeServiceSignature("v201808", "UserTeamAssociationService"); - WorkflowRequestService = - AdManagerService.MakeServiceSignature("v201808", "WorkflowRequestService"); + AdManagerService.MakeServiceSignature("v201908", "UserTeamAssociationService"); } } } diff --git a/src/AdWords/AdWords.csproj b/src/AdWords/AdWords.csproj index 70d3563f5a3..db4f94b0f15 100755 --- a/src/AdWords/AdWords.csproj +++ b/src/AdWords/AdWords.csproj @@ -3,7 +3,7 @@ AdWords API Dotnet Client Library Google.AdWords - 24.7.1 + 24.8.0 This library provides you with functionality to access the AdWords API. See https://github.com/googleads/googleads-dotnet-lib/blob/master/ChangeLog AdWords Google @@ -22,7 +22,6 @@ netstandard2.0;net452 Google.AdWords Google.Api.Ads.AdWords - true true $(ProjectDir)..\Common\AdsApi.snk pdbonly @@ -52,8 +51,4 @@ NET452 - - - diff --git a/src/Common/Common.csproj b/src/Common/Common.csproj index 5ec6afabca3..52c9a9cd66b 100755 --- a/src/Common/Common.csproj +++ b/src/Common/Common.csproj @@ -20,7 +20,6 @@ netstandard2.0;net452 Google.Ads.Common Google.Api.Ads.Common - true true $(ProjectDir)..\Common\AdsApi.snk portable @@ -46,8 +45,4 @@ NET452 - - - diff --git a/tests/AdManager/AdManager.Tests.csproj b/tests/AdManager/AdManager.Tests.csproj index 6495100e342..82d6052e08f 100755 --- a/tests/AdManager/AdManager.Tests.csproj +++ b/tests/AdManager/AdManager.Tests.csproj @@ -9,7 +9,6 @@ true true true - true true $(ProjectDir)..\..\src\Common\AdsApi.snk @@ -48,7 +47,4 @@ NET452 - - - diff --git a/tests/AdManager/v201808/DateTimeUtilitiesTests.cs b/tests/AdManager/v201908/DateTimeUtilitiesTests.cs similarity index 86% rename from tests/AdManager/v201808/DateTimeUtilitiesTests.cs rename to tests/AdManager/v201908/DateTimeUtilitiesTests.cs index 7db87381edb..7f738f7ad00 100755 --- a/tests/AdManager/v201808/DateTimeUtilitiesTests.cs +++ b/tests/AdManager/v201908/DateTimeUtilitiesTests.cs @@ -1,4 +1,4 @@ -// Copyright 2018, Google Inc. All Rights Reserved. +// 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. @@ -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.v201808; -using Google.Api.Ads.AdManager.v201808; +using Google.Api.Ads.AdManager.Util.v201908; +using Google.Api.Ads.AdManager.v201908; using NUnit.Framework; -using DateTime = Google.Api.Ads.AdManager.v201808.DateTime; +using DateTime = Google.Api.Ads.AdManager.v201908.DateTime; -namespace Google.Api.Ads.AdManager.Tests.v201808 { +namespace Google.Api.Ads.AdManager.Tests.v201908 { /// /// UnitTests for class. @@ -46,7 +46,7 @@ public void TestFromDateTime() { Assert.AreEqual(dfpDateTime.hour, 23); Assert.AreEqual(dfpDateTime.minute, 59); Assert.AreEqual(dfpDateTime.second, 58); - Assert.AreEqual(dfpDateTime.timeZoneID, "America/New_York"); + Assert.AreEqual(dfpDateTime.timeZoneId, "America/New_York"); } /// @@ -63,7 +63,7 @@ public void TestFromDateTimeIgnoresSystemTimeZone() { Assert.AreEqual(dfpDateTime.hour, 23); Assert.AreEqual(dfpDateTime.minute, 59); Assert.AreEqual(dfpDateTime.second, 58); - Assert.AreEqual(dfpDateTime.timeZoneID, "America/New_York"); + Assert.AreEqual(dfpDateTime.timeZoneId, "America/New_York"); } /// @@ -79,7 +79,7 @@ public void TestFromString() { Assert.AreEqual(dfpDateTime.hour, 23); Assert.AreEqual(dfpDateTime.minute, 59); Assert.AreEqual(dfpDateTime.second, 58); - Assert.AreEqual(dfpDateTime.timeZoneID, "America/New_York"); + Assert.AreEqual(dfpDateTime.timeZoneId, "America/New_York"); } [Test] @@ -95,7 +95,7 @@ public void TestToString_nullFormat() { hour = 0, minute = 0, second = 0, - timeZoneID = "America/New_York" + timeZoneId = "America/New_York" }, null) ); } @@ -113,7 +113,7 @@ public void TestToString_simpleFormat() { hour = 0, minute = 0, second = 0, - timeZoneID = "America/New_York" + timeZoneId = "America/New_York" }, "yyyy-MM-dd") ); } diff --git a/tests/AdManager/v201808/PqlUtilitiesTests.cs b/tests/AdManager/v201908/PqlUtilitiesTests.cs similarity index 95% rename from tests/AdManager/v201808/PqlUtilitiesTests.cs rename to tests/AdManager/v201908/PqlUtilitiesTests.cs index d6194950817..6da7e3fa91c 100755 --- a/tests/AdManager/v201808/PqlUtilitiesTests.cs +++ b/tests/AdManager/v201908/PqlUtilitiesTests.cs @@ -1,4 +1,4 @@ -// Copyright 2018, Google Inc. All Rights Reserved. +// 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. @@ -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.v201808; -using Google.Api.Ads.AdManager.v201808; +using Google.Api.Ads.AdManager.Util.v201908; +using Google.Api.Ads.AdManager.v201908; using NUnit.Framework; -using DateTime = Google.Api.Ads.AdManager.v201808.DateTime; +using DateTime = Google.Api.Ads.AdManager.v201908.DateTime; -namespace Google.Api.Ads.AdManager.Tests.v201808 { +namespace Google.Api.Ads.AdManager.Tests.v201908 { /// /// UnitTests for class. @@ -66,7 +66,7 @@ public void TestGetObjectDateTimeValue() { dateTime.hour = 12; dateTime.minute = 45; dateTime.second = 0; - dateTime.timeZoneID = "Asia/Shanghai"; + dateTime.timeZoneId = "Asia/Shanghai"; DateTimeValue dateTimeValue = new DateTimeValue(); dateTimeValue.value = dateTime; Assert.AreEqual(dateTime, PqlUtilities.GetValue(dateTimeValue)); @@ -145,7 +145,7 @@ public void TestGetObjectDateTimeSetValue() { dateTime.hour = 12; dateTime.minute = 45; dateTime.second = 0; - dateTime.timeZoneID = "Asia/Shanghai"; + dateTime.timeZoneId = "Asia/Shanghai"; DateTimeValue dateTimeValue = new DateTimeValue(); dateTimeValue.value = dateTime; diff --git a/tests/AdManager/v201808/StatementBuilderTests.cs b/tests/AdManager/v201908/StatementBuilderTests.cs similarity index 96% rename from tests/AdManager/v201808/StatementBuilderTests.cs rename to tests/AdManager/v201908/StatementBuilderTests.cs index 4f9193db68d..66f79ece85d 100755 --- a/tests/AdManager/v201808/StatementBuilderTests.cs +++ b/tests/AdManager/v201908/StatementBuilderTests.cs @@ -1,4 +1,4 @@ -// Copyright 2018, Google Inc. All Rights Reserved. +// 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. @@ -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.v201808; -using Google.Api.Ads.AdManager.v201808; +using Google.Api.Ads.AdManager.Util.v201908; +using Google.Api.Ads.AdManager.v201908; using NUnit.Framework; -using DateTime = Google.Api.Ads.AdManager.v201808.DateTime; +using DateTime = Google.Api.Ads.AdManager.v201908.DateTime; -namespace Google.Api.Ads.AdManager.Tests.v201808 { +namespace Google.Api.Ads.AdManager.Tests.v201908 { /// /// UnitTests for class. @@ -113,7 +113,7 @@ private static bool DateTimeValuesAreEqual(Value value1, Value value2) { && dateTime1.hour == dateTime2.hour && dateTime1.minute == dateTime2.minute && dateTime1.second == dateTime2.second - && String.Equals(dateTime1.timeZoneID, dateTime2.timeZoneID); + && String.Equals(dateTime1.timeZoneId, dateTime2.timeZoneId); } private static bool DatesAreEqual(Date date1, Date date2) { diff --git a/tests/Common/Common.Tests.csproj b/tests/Common/Common.Tests.csproj index 9cb1285c618..af29530c11a 100755 --- a/tests/Common/Common.Tests.csproj +++ b/tests/Common/Common.Tests.csproj @@ -8,7 +8,6 @@ full true true - true true $(ProjectDir)..\..\src\Common\AdsApi.snk true @@ -28,9 +27,5 @@ NET452 - - -