Here are the examples of the csharp api class Google.Api.Ads.AdWords.Examples.CSharp.v201710.MigrateToExtensionSettings.GetFeedItemsFromArgument(Function) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
1 Example
0
1. Example
Project: googleads-dotnet-lib
Source File: MigrateToExtensionSettings.cs
Source File: MigrateToExtensionSettings.cs
private List<long> GetFeedItemsForCampaign(CampaignFeed campaignFeed) { List<long> feedItems = new List<long>(); switch (campaignFeed.matchingFunction.@operator) { case FunctionOperator.IN: // Check if matchingFunction is of the form IN(FEED_ITEM_ID,{ttt,ttt}). // Extract feedItems if applicable. feedItems.AddRange(GetFeedItemsFromArgument(campaignFeed.matchingFunction)); break; case FunctionOperator.AND: // Check each condition. foreach (FunctionArgumentOperand argument in campaignFeed.matchingFunction.lhsOperand) { // Check if matchingFunction is of the form IN(FEED_ITEM_ID,{ttt,ttt}). // Extract feedItems if applicable. if (argument is FunctionOperand) { FunctionOperand operand = (argument as FunctionOperand); if (operand.value.@operator == FunctionOperator.IN) { feedItems.AddRange(GetFeedItemsFromArgument(operand.value)); } } } break; default: // There are no other matching functions involving feeditem ids. break; } return feedItems; }