Esempio n. 1
0
        /// <summary>
        /// The main method.
        /// </summary>
        /// <param name="args"></param>
        public static void Main(string[] args)
        {
            if (args.Length == 0)
            {
                ShowUsage();
                return;
            }

            foreach (string cmdArgs in args)
            {
                SamplePair matchingPair = sampleMap.Find(delegate(SamplePair pair) {
                    return(string.Compare(pair.Key, cmdArgs, true) == 0);
                });

                if (matchingPair.Key != null)
                {
                    // Initialize the Dfa Reporting service.
                    DfareportingService service = DfaReportingFactory.getInstance();

                    // Run the sample
                    RunASample(service, matchingPair.Value);
                }
                else
                {
                    ShowUsage();
                }
            }
        }
        /// <summary>
        /// Main method, to run this code example as a standalone application.
        /// </summary>
        /// <param name="args">The command line arguments.</param>
        public static void Main(string[] args)
        {
            SampleBase codeExample = new CreateRotationGroup();

            Console.WriteLine(codeExample.Description);
            codeExample.Run(DfaReportingFactory.getInstance());
        }
Esempio n. 3
0
        /// <summary>
        /// Main method, to run this code example as a standalone application.
        /// </summary>
        /// <param name="args">The command line arguments.</param>
        public static void Main(string[] args)
        {
            SampleBase codeExample = new AssignCreativeToCampaign();

            Console.WriteLine(codeExample.Description);
            codeExample.Run(DfaReportingFactory.getInstance());
        }
        /// <summary>
        /// Main method, to run this code example as a standalone application.
        /// </summary>
        /// <param name="args">The command line arguments.</param>
        public static void Main(string[] args)
        {
            SampleBase codeExample = new GetPlacementStrategies();

            Console.WriteLine(codeExample.Description);
            codeExample.Run(DfaReportingFactory.getInstance());
        }
        /// <summary>
        /// Main method, to run this code example as a standalone application.
        /// </summary>
        /// <param name="args">The command line arguments.</param>
        public static void Main(string[] args)
        {
            SampleBase codeExample = new AssignAdvertisersToAdvertiserGroup();

            Console.WriteLine(codeExample.Description);
            codeExample.Run(DfaReportingFactory.getInstance());
        }
        /// <summary>
        /// Main method, to run this code example as a standalone application.
        /// </summary>
        /// <param name="args">The command line arguments.</param>
        public static void Main(string[] args)
        {
            SampleBase codeExample = new GetFloodlightActivityGroups();

            Console.WriteLine(codeExample.Description);
            codeExample.Run(DfaReportingFactory.getInstance());
        }
        /// <summary>
        /// Main method, to run this code example as a standalone application.
        /// </summary>
        /// <param name="args">The command line arguments.</param>
        public static void Main(string[] args)
        {
            SampleBase codeExample = new FindAndDownloadFile();

            Console.WriteLine(codeExample.Description);
            codeExample.Run(DfaReportingFactory.getInstance());
        }
        /// <summary>
        /// Main method, to run this code example as a standalone application.
        /// </summary>
        /// <param name="args">The command line arguments.</param>
        public static void Main(string[] args)
        {
            SampleBase codeExample = new GetCompatibleFields();

            Console.WriteLine(codeExample.Description);
            codeExample.Run(DfaReportingFactory.getInstance());
        }
        /// <summary>
        /// Main method, to run this code example as a standalone application.
        /// </summary>
        /// <param name="args">The command line arguments.</param>
        public static void Main(string[] args)
        {
            SampleBase codeExample = new InsertOfflineMobileConversion();

            Console.WriteLine(codeExample.Description);
            codeExample.Run(DfaReportingFactory.getInstance());
        }