Ejemplo n.º 1
0
        /// <summary>
        /// AddAdvertisement - Use 'AddAdvertisementParams' to pass parameters into this method.
        /// </summary>
        public void AddAdvertisement(Advertisement advertisement, bool isEdit)
        {
            #region Variable Declarations
            WinEdit uITxtNameEdit = this.UIHaihadsagecom4684830Window.UITxtNameWindow.UITxtNameEdit;
            WinComboBox uIDestinationComboBox = this.UIHaihadsagecom4684830Window.UICbContentWindow.UIDestinationComboBox;
            WinListItem uIExternalURLListItem = this.UIItemWindow.UIListViewWindow.UIExternalURLListItem;
            WinEdit uITxtTitleEdit = this.UIHaihadsagecom4684830Window.UITxtTitleWindow.UITxtTitleEdit;
            WinEdit uITxtBodyEdit = this.UIHaihadsagecom4684830Window.UITxtBodyWindow.UITxtBodyEdit;
            WinRadioButton uIClicksRadioButton = this.UIHaihadsagecom4684830Window.UIClicksWindow.UIClicksRadioButton;
            WinRadioButton uIImpressionRadioButton = this.UIHaihadsagecom4684830Window.UIImpressionsWindow.UIImpressionsRadioButton;
            WinEdit uITxtBidEdit = this.UIHaihadsagecom4684830Window.UITxtBidWindow.UITxtBidEdit;
            WinComboBox uICbStatusComboBox = this.UIHaihadsagecom4684830Window.UICbStatusWindow.UICbStatusComboBox;
            WinEdit uIButtonEditDestinatioEdit1 = this.UIHaihadsagecom4684830Window6.UIPanelDesUrlWindow.UIButtonEditDestinatioEdit.UIButtonEditDestinatioEdit1;
            WinEdit uIItem0255Edit = this.UIHaihadsagecom4684830Window6.UIPanelDesUrlWindow.UIButtonEditDestinatioEdit.UIItem0255Edit;
            #endregion

            // Type 'ad-external' in 'txtName' text box
            uITxtNameEdit.Text = advertisement.AdName;

            // Click 'Destination:' combo box
            Mouse.Click(uIDestinationComboBox, new Point(250, 12));

            // Click 'External URL' list item
            Mouse.Click(uIExternalURLListItem, new Point(137, 6));

            // Type 'www.adsage.com' in 'txtUrl' text box
            if (!isEdit)
            {
                Keyboard.SendKeys(uIItem0255Edit, advertisement.DestinationUrl.ToString(), ModifierKeys.None);
            }

            // Type 'adsage for performance' in 'txtTitle' text box
            uITxtTitleEdit.Text = advertisement.Title;

            // Type 'adsage for performance' in 'txtBody' text box
            uITxtBodyEdit.Text = advertisement.Body;

            // Select 'Clicks' radio button
            if (advertisement.BidType == BidType.CPC)
            {
                uIClicksRadioButton.Selected = true;
            }
            else
            {
                uIImpressionRadioButton.Selected = true;
            }

            // Type '0.01' in 'txtBid' text box
            uITxtBidEdit.Text = advertisement.MaxBid.ToString();

            // Select 'Active' in 'cbStatus' combo box
            if (advertisement.AdStatus == AdStatus.Pendingreview)
            {
                uICbStatusComboBox.SelectedItem = "Pending review";
            }
            else
            {
                uICbStatusComboBox.SelectedItem = advertisement.AdStatus.ToString();
            }
        }
Ejemplo n.º 2
0
        private void getSponsorStoryAdvertisement(AdType type, out UITestFramework.Object.Campaign addingCampaign, out UITestFramework.Object.Advertisement addingAd)
        {
            //Adding campaign through api
            UITestFramework.Object.Campaign addingCampaignThroughApi = UITestFramework.Object.Campaign.NextCampaign(RandomData);
            addingCampaign = addingCampaignThroughApi;
            long campaignId = TestHelper.CreateCampaignsApi(addingCampaignThroughApi);
            this.deleteCampaignIds.Add(campaignId);

            //Adding advertisement through api
            UITestFramework.Object.Advertisement addingAdvertisementThroughApi = new Advertisement();
            switch (type)
            {
                case AdType.Page_Like_Story:
                    addingAdvertisementThroughApi = Facebook.UITestFramework.Object.Advertisement.NextPageLikeStoryAdvertisement(this.RandomData);
                    break;
                case AdType.Page_Post_Story:
                    addingAdvertisementThroughApi = Facebook.UITestFramework.Object.Advertisement.NextPagePostStoryAdvertisement(this.RandomData);
                    break;
                case AdType.Page_Post_Like_Story:
                    addingAdvertisementThroughApi = Facebook.UITestFramework.Object.Advertisement.NextPagePostLikeStoryAdvertisement(this.RandomData);
                    break;
                case AdType.App_Share_Story:
                    addingAdvertisementThroughApi = Facebook.UITestFramework.Object.Advertisement.NextAppShareStoryAdvertisement(this.RandomData);
                    break;
                case AdType.App_Used_Story:
                    addingAdvertisementThroughApi = Facebook.UITestFramework.Object.Advertisement.NextAppUsedStoryAdvertisement(this.RandomData);
                    break;
                default:
                    break;
            }
            addingAdvertisementThroughApi.CampaignName = addingCampaignThroughApi.Name;
            addingAd = addingAdvertisementThroughApi;
            TestHelper.CreateSponsorStoryAdvertisementsApi(addingAdvertisementThroughApi);

            TestHelper.GetAdvertisementUI(addingCampaignThroughApi, addingAdvertisementThroughApi);
        }
Ejemplo n.º 3
0
        private void GetAllAdvertisementsApi(out Campaign addingCampaignThroughApi, List<Advertisement> addingAdvertisements)
        {
            //Adding campaign through api
            addingCampaignThroughApi = Campaign.NextCampaign(RandomData);
            long campaignId = TestHelper.CreateCampaignsApi(addingCampaignThroughApi);
            this.deleteCampaignIds.Add(campaignId);

            //Adding External Type ad through api
            Advertisement externalAdvertisement = new Advertisement();
            externalAdvertisement = Advertisement.NextExternalAdvertisement(RandomData);
            externalAdvertisement.CampaignName = addingCampaignThroughApi.Name;
            TestHelper.CreateAdvertisementsApi(externalAdvertisement);
            addingAdvertisements.Add(externalAdvertisement);

            //Adding Page Like Type ad through api
            Advertisement pageLikeStoryAdvertisement = new Advertisement();
            pageLikeStoryAdvertisement = Advertisement.NextPageLikeStoryAdvertisement(this.RandomData);
            pageLikeStoryAdvertisement.CampaignName = addingCampaignThroughApi.Name;
            TestHelper.CreateSponsorStoryAdvertisementsApi(pageLikeStoryAdvertisement);
            addingAdvertisements.Add(pageLikeStoryAdvertisement);

            #region Debug Post
            ////Adding Page Post Type ad throup api
            //Advertisement pagePostStoryAdvertisement = new Advertisement();
            //pagePostStoryAdvertisement = Advertisement.NextPagePostStoryAdvertisement(this.RandomData);
            //pagePostStoryAdvertisement.CampaignName = addingCampaignThroughApi.Name;
            //TestHelper.CreateSponsorStoryAdvertisementsApi(pagePostStoryAdvertisement);
            //addingAdvertisements.Add(pagePostStoryAdvertisement);
            #endregion

            //Adding Page Post Like Type ad throup api
            Advertisement pagePostLikeStoryAdvertisement = new Advertisement();
            pagePostLikeStoryAdvertisement = Advertisement.NextPagePostLikeStoryAdvertisement(this.RandomData);
            pagePostLikeStoryAdvertisement.CampaignName = addingCampaignThroughApi.Name;
            TestHelper.CreateSponsorStoryAdvertisementsApi(pagePostLikeStoryAdvertisement);
            addingAdvertisements.Add(pagePostLikeStoryAdvertisement);

            //Adding App Used Type ad throup api
            Advertisement appUsedStoryAdvertisement = new Advertisement();
            appUsedStoryAdvertisement = Advertisement.NextAppUsedStoryAdvertisement(this.RandomData);
            appUsedStoryAdvertisement.CampaignName = addingCampaignThroughApi.Name;
            TestHelper.CreateSponsorStoryAdvertisementsApi(appUsedStoryAdvertisement);
            addingAdvertisements.Add(appUsedStoryAdvertisement);

            //Adding App Share Type ad throup api
            Advertisement AppShareStoryAdvertisement = new Advertisement();
            AppShareStoryAdvertisement = Advertisement.NextAppShareStoryAdvertisement(this.RandomData);
            AppShareStoryAdvertisement.CampaignName = addingCampaignThroughApi.Name;
            TestHelper.CreateSponsorStoryAdvertisementsApi(AppShareStoryAdvertisement);
            addingAdvertisements.Add(AppShareStoryAdvertisement);
        }
Ejemplo n.º 4
0
        private void addSponsorStoryAdvertisement(AdType type)
        {
            //Adding campaign through api first
            UITestFramework.Object.Campaign addingCampaignThroughApi = UITestFramework.Object.Campaign.NextCampaign(RandomData);
            long campaignId = TestHelper.CreateCampaignsApi(addingCampaignThroughApi);
            this.deleteCampaignIds.Add(campaignId);

            TestHelper.AddAdvertisementUI(addingCampaignThroughApi);

            //Add advertisement
            Facebook.UITestFramework.Object.Advertisement addingAdvertisementThroughApi = new Advertisement();
            Facebook.UITestFramework.UIMaps.AdvertisementsClasses.Advertisements advertisementUI = Get<Facebook.UITestFramework.UIMaps.AdvertisementsClasses.Advertisements>();
            switch (type)
            {
                case AdType.Page_Like_Story:
                    addingAdvertisementThroughApi = Facebook.UITestFramework.Object.Advertisement.NextPageLikeStoryAdvertisement(this.RandomData);
                    advertisementUI.AddPageLikeStoryAdvertisement(addingAdvertisementThroughApi);
                    break;
                case AdType.Page_Post_Story:
                    addingAdvertisementThroughApi = Facebook.UITestFramework.Object.Advertisement.NextPagePostStoryAdvertisement(this.RandomData);
                    advertisementUI.AddPagePostStoryAdvertisement(addingAdvertisementThroughApi);
                    break;
                case AdType.Page_Post_Like_Story:
                    addingAdvertisementThroughApi = Facebook.UITestFramework.Object.Advertisement.NextPagePostLikeStoryAdvertisement(this.RandomData);
                    advertisementUI.AddPagePostLikeStoryAdvertisement(addingAdvertisementThroughApi);
                    break;
                case AdType.App_Share_Story:
                    addingAdvertisementThroughApi = Facebook.UITestFramework.Object.Advertisement.NextAppShareStoryAdvertisement(this.RandomData);
                    advertisementUI.AddAppShareStoryAdvertisement(addingAdvertisementThroughApi);
                    break;
                case AdType.App_Used_Story:
                    addingAdvertisementThroughApi = Facebook.UITestFramework.Object.Advertisement.NextAppUsedStoryAdvertisement(this.RandomData);
                    advertisementUI.AddAppUsedStoryAdvertisement(addingAdvertisementThroughApi);
                    break;
                default:
                    break;
            }

            //Click Suggested Bid Button
            advertisementUI.ClickSuggestedBidButton();
            addingAdvertisementThroughApi.SuggestedBid = UITestFramework.Object.SuggestedBid.ParseWithCurrency(advertisementUI.GetSuggestBid());

            //Get Ad from AdGridVeiw
            WinRow row;
            var dataGridTable = advertisementUI.UIHaihadsagecom4684830Window4.UIItemWindow.UIItemTable.UIDataPanelClient;
            var headerRow = advertisementUI.UIHaihadsagecom4684830Window4.UIItemWindow.UINewItemRowRow;
            Assert.IsTrue(dataGridTable.TryGetOneRowByName(headerRow, addingAdvertisementThroughApi.AdName, out row), "The ad name in advertisement grid view should be found!!");
            UITestFramework.Object.Advertisement advertisementInGridView = UITestFramework.Object.Advertisement.Parse(row);

            //Compare Ad
            addingAdvertisementThroughApi.CampaignName = addingCampaignThroughApi.Name;
            addingAdvertisementThroughApi.TargetingEstimation = advertisementInGridView.TargetingEstimation;
            addingAdvertisementThroughApi.DestinationUrl = null;
            Assert.AreEqual<UITestFramework.Object.Advertisement>(addingAdvertisementThroughApi, advertisementInGridView, "The advertisement in advertisement grid view should be same with the one in edit panel!!");

            //Upload changes
            Common.UITestFramework.UIMaps.DetailedInfoForUploadClasses.DetailedInfoForUpload detailedInfoForUploadWindow = Get<Common.UITestFramework.UIMaps.DetailedInfoForUploadClasses.DetailedInfoForUpload>();
            TestHelper.UploadChanges(detailedInfoForUploadWindow.VerifyUploadOneAdvertisement);

            TestHelper.VerifyAdStatusColumnIsNull(addingAdvertisementThroughApi.AdName);
        }
Ejemplo n.º 5
0
        public void AddFacebookContentAdvertisement_Facebook()
        {
            //Adding campaign through api first
            UITestFramework.Object.Campaign addingCampaignThroughApi = UITestFramework.Object.Campaign.NextCampaign(RandomData);
            long campaignId = TestHelper.CreateCampaignsApi(addingCampaignThroughApi);
            this.deleteCampaignIds.Add(campaignId);

            TestHelper.AddAdvertisementUI(addingCampaignThroughApi);

            //Add advertisement
            Facebook.UITestFramework.Object.Advertisement addingAdvertisementThroughApi = new Advertisement();
            Facebook.UITestFramework.UIMaps.AdvertisementsClasses.Advertisements advertisementUI = Get<Facebook.UITestFramework.UIMaps.AdvertisementsClasses.Advertisements>();
        }
Ejemplo n.º 6
0
 public static List<Advertisement> Parse(List<WinRow> advertisementRows)
 {
     if (advertisementRows[0].Cells.Count != 27)
     {
         throw new Exception("The count of cell in ad grid should be equal to 27!");
     }
     if (advertisementRows.Count != 5)
     {
         throw new Exception("The count of row in ad grid should be equal to 6!");
     }
     List<Advertisement> ads = new List<Advertisement>();
     int index = 2;
     for (int i = 0; i < advertisementRows.Count; i++)
     {
         index = 2;
         Advertisement ad = new Advertisement();
         ad.CampaignName = GridViewUtilities.GetValueProperty(advertisementRows[i].Cells[index++]);
         ad.AdName = GridViewUtilities.GetValueProperty(advertisementRows[i].Cells[index++]);
         ad.AdStatus = (AdStatus)Enum.Parse(typeof(AdStatus), transferAdStatus(GridViewUtilities.GetValueProperty(advertisementRows[i].Cells[index++])));
         ad.AdType = (AdType)Enum.Parse(typeof(AdType), transferAdType(GridViewUtilities.GetValueProperty(advertisementRows[i].Cells[index++])));
         index++;
         ad.BidType = (BidType)Enum.Parse(typeof(BidType), GridViewUtilities.GetValueProperty(advertisementRows[i].Cells[index++]));
         ad.MaxBid = double.Parse(GridViewUtilities.GetValueProperty(advertisementRows[i].Cells[index++]));
         ad.SuggestedBid = SuggestedBid.Parse(GridViewUtilities.GetValueProperty(advertisementRows[i].Cells[index++]));
         ad.TargetingEstimation = parseTargetingEstimation(GridViewUtilities.GetValueProperty(advertisementRows[i].Cells[index++]).Replace(",", string.Empty));
         ad.DestinationUrl = string.IsNullOrEmpty(GridViewUtilities.GetValueProperty(advertisementRows[i].Cells[index])) ? null : new Uri(GridViewUtilities.GetValueProperty(advertisementRows[i].Cells[index]));
         index++;
         ad.Title = GridViewUtilities.GetValueProperty(advertisementRows[i].Cells[index++]);
         ad.Body = GridViewUtilities.GetValueProperty(advertisementRows[i].Cells[index++]);
         ads.Add(ad);
     }
     return ads;
 }
Ejemplo n.º 7
0
 public static Advertisement Parse(WinRow oneRowInAdGrid)
 {
     if (oneRowInAdGrid.Cells.Count != 27)
     {
         throw new Exception("The count of cell in ad grid should be equal to 27!");
     }
     Advertisement ad = new Advertisement();
     int index = 2;
     ad.CampaignName = GridViewUtilities.GetValueProperty(oneRowInAdGrid.Cells[index++]);
     ad.AdName = GridViewUtilities.GetValueProperty(oneRowInAdGrid.Cells[index++]);
     ad.AdStatus = (AdStatus)Enum.Parse(typeof(AdStatus), transferAdStatus(GridViewUtilities.GetValueProperty(oneRowInAdGrid.Cells[index++])));
     ad.AdType = (AdType)Enum.Parse(typeof(AdType), transferAdType(GridViewUtilities.GetValueProperty(oneRowInAdGrid.Cells[index++])));
     index++;
     ad.BidType = (BidType)Enum.Parse(typeof(BidType), GridViewUtilities.GetValueProperty(oneRowInAdGrid.Cells[index++]));
     ad.MaxBid = double.Parse(GridViewUtilities.GetValueProperty(oneRowInAdGrid.Cells[index++]));
     ad.SuggestedBid = SuggestedBid.Parse(GridViewUtilities.GetValueProperty(oneRowInAdGrid.Cells[index++]));
     ad.TargetingEstimation = parseTargetingEstimation(GridViewUtilities.GetValueProperty(oneRowInAdGrid.Cells[index++]).Replace(",", string.Empty));
     ad.DestinationUrl = string.IsNullOrEmpty(GridViewUtilities.GetValueProperty(oneRowInAdGrid.Cells[index])) ? null : new Uri(GridViewUtilities.GetValueProperty(oneRowInAdGrid.Cells[index]));
     index++;
     ad.Title = GridViewUtilities.GetValueProperty(oneRowInAdGrid.Cells[index++]);
     ad.Body = GridViewUtilities.GetValueProperty(oneRowInAdGrid.Cells[index++]);
     return ad;
 }
Ejemplo n.º 8
0
        private void addPageSponsorStoryAdvertisement(AdType type, Advertisement pageAd)
        {
            #region Variable Declarations
            WinComboBox uIPagePostSelectionComboBox = this.UIHaihadsagecom4684830Window2.UICbPagePostSelWindow.UIPagePostSelectionComboBox;
            WinEdit uITxtNameEdit = this.UIHaihadsagecom4684830Window3.UITxtNameWindow.UITxtNameEdit;
            WinComboBox uIDestinationComboBox = this.UIHaihadsagecom4684830Window3.UICbContentWindow.UIDestinationComboBox;
            WinList uIListViewList = this.UIItemWindow.UIListViewWindow.UIListViewList;
            WinRadioButton uISponsoredStoriesRadioButton = this.UIHaihadsagecom4684830Window3.UISponsoredStoriesWindow.UISponsoredStoriesRadioButton;
            WinRadioButton uIClicksRadioButton = this.UIHaihadsagecom4684830Window3.UIClicksWindow.UIClicksRadioButton;
            WinRadioButton uIImpressionRadioButton = this.UIHaihadsagecom4684830Window2.UIImpressionsWindow.UIImpressionsRadioButton;
            WinEdit uITxtBidEdit = this.UIHaihadsagecom4684830Window3.UITxtBidWindow.UITxtBidEdit;
            WinComboBox uICbStatusComboBox = this.UIHaihadsagecom4684830Window3.UICbStatusWindow.UICbStatusComboBox;
            WinComboBox uICbAdTypeComboBox = this.UIHaihadsagecom4684830Window2.UICbAdTypeWindow.UICbAdTypeComboBox;
            WinComboBox uIAdTypeComboBox = this.UIHaihadsagecom4684830Window2.UICbStoryTypeWindow.UIAdTypeComboBox;
            #endregion

            // Click 'txtName' text box
            Mouse.Click(uITxtNameEdit, new Point(254, 8));

            // Type 'Ad-PageLikeStory' in 'txtName' text box
            uITxtNameEdit.Text = pageAd.AdName;

            // Click 'Destination:' combo box
            Mouse.Click(uIDestinationComboBox, new Point(224, 11));

            // Select 'AFF Automation Test' in 'listView' list box
            uIListViewList.SelectedItemsAsString = System.Configuration.ConfigurationManager.AppSettings.Get("PageName");

            switch (type)
            {
                case AdType.Page_Like_Story:
                    uICbAdTypeComboBox.SelectedItem = "Sponsored Story";
                    uIAdTypeComboBox.SelectedItem = "Page Like Story";
                    break;
                case AdType.Page_Post_Story:
                    uICbAdTypeComboBox.SelectedItem = "Facebook Ads";
                    uIAdTypeComboBox.SelectedItem = "Page Post Ad";
                    uIPagePostSelectionComboBox.SelectedItem = "-Most Recent Eligible Post";
                    break;
                case AdType.Page_Post_Like_Story:
                    uICbAdTypeComboBox.SelectedItem = "Sponsored Story";
                    uIAdTypeComboBox.SelectedItem = "Page Post Like Story";
                    break;
                default:
                    break;
            }

            if (pageAd.BidType == BidType.CPC)
            {
                uIClicksRadioButton.Selected = true;
            }
            else
            {
                uIImpressionRadioButton.Selected = true;
            }

            // Click 'txtBid' text box
            Mouse.Click(uITxtBidEdit, new Point(26, 10));

            // Type '0.01' in 'txtBid' text box
            uITxtBidEdit.Text = pageAd.MaxBid.ToString();

            if (pageAd.AdStatus == AdStatus.Pendingreview)
            {
                uICbStatusComboBox.SelectedItem = "Pending review";
            }
            else
            {
                uICbStatusComboBox.SelectedItem = pageAd.AdStatus.ToString();
            }
        }
Ejemplo n.º 9
0
        /// <summary>
        /// addAppSponsorStoryAdvertisement - Use 'addAppSponsorStoryAdvertisementParams' to pass parameters into this method.
        /// </summary>
        private void addAppSponsorStoryAdvertisement(AdType type, Advertisement appAd)
        {
            #region Variable Declarations
            WinEdit uITxtNameEdit = this.UIHaihadsagecom4684830Window1.UITxtNameWindow.UITxtNameEdit;
            WinComboBox uIDestinationComboBox = this.UIHaihadsagecom4684830Window1.UICbContentWindow.UIDestinationComboBox;
            WinList uIListViewList = this.UIItemWindow.UIListViewWindow.UIListViewList;
            WinRadioButton uIImpressionsRadioButton = this.UIHaihadsagecom4684830Window1.UIImpressionsWindow.UIImpressionsRadioButton;
            WinEdit uITxtBidEdit = this.UIHaihadsagecom4684830Window1.UITxtBidWindow.UITxtBidEdit;
            WinComboBox uICbStatusComboBox = this.UIHaihadsagecom4684830Window3.UICbStatusWindow.UICbStatusComboBox;
            WinComboBox uICbAdTypeComboBox = this.UIHaihadsagecom4684830Window2.UICbAdTypeWindow.UICbAdTypeComboBox;
            WinComboBox uIAdTypeComboBox = this.UIHaihadsagecom4684830Window2.UICbStoryTypeWindow.UIAdTypeComboBox;
            WinComboBox uICmbBidTypeComboBox = this.UIHaihadsagecom4684830Window8.UICmbBidTypeWindow.UICmbBidTypeComboBox;
            #endregion

            // Click 'txtName' text box
            Mouse.Click(uITxtNameEdit, new Point(118, 10));

            // Type 'ad-appused' in 'txtName' text box
            uITxtNameEdit.Text = appAd.AdName;

            // Click 'Destination:' combo box
            Mouse.Click(uIDestinationComboBox, new Point(45, 7));

            // Select 'adSage Ad Editor' in 'listView' list box
            uIListViewList.SelectedItemsAsString = System.Configuration.ConfigurationManager.AppSettings.Get("AppName");

            // Select 'Sponsored Story' item
            uICbAdTypeComboBox.SelectedItem = "Sponsored Story";

            switch (type)
            {
                case AdType.App_Used_Story:
                    // Select 'App Used Story' in 'Ad Type:' combo box
                    uIAdTypeComboBox.SelectedItem = "App Used Story";
                    break;
                case AdType.App_Share_Story:
                    // Select 'App Share Story' in 'Ad Type:' combo box
                    uIAdTypeComboBox.SelectedItem = "App Share Story";
                    break;
                default:
                    break;
            }

            if (appAd.BidType == BidType.CPC)
            {
                uICmbBidTypeComboBox.SelectedItem = "CPC";
            }
            else
            {
                uICmbBidTypeComboBox.SelectedItem = "CPM";
            }

            // Click 'txtBid' text box
            Mouse.Click(uITxtBidEdit, new Point(24, 9));

            // Type '0.01' in 'txtBid' text box
            uITxtBidEdit.Text = appAd.MaxBid.ToString();

            if (appAd.AdStatus == AdStatus.Pendingreview)
            {
                uICbStatusComboBox.SelectedItem = "Pending review";
            }
            else
            {
                uICbStatusComboBox.SelectedItem = appAd.AdStatus.ToString();
            }
        }
Ejemplo n.º 10
0
 public void AddPagePostStoryAdvertisement(Advertisement pagePostAd)
 {
     addPageSponsorStoryAdvertisement(AdType.Page_Post_Story, pagePostAd);
 }
Ejemplo n.º 11
0
 /// <summary>
 /// AddPageLikeStoryAdvertisement - Use 'AddPageLikeStoryAdvertisementParams' to pass parameters into this method.
 /// </summary>
 public void AddPageLikeStoryAdvertisement(Advertisement pageLikeStoryAd)
 {
     addPageSponsorStoryAdvertisement(AdType.Page_Like_Story, pageLikeStoryAd);
 }
Ejemplo n.º 12
0
 public void AddAppUsedStoryAdvertisement(Advertisement appUsedStoryAd)
 {
     addAppSponsorStoryAdvertisement(AdType.App_Used_Story, appUsedStoryAd);
 }
Ejemplo n.º 13
0
 public void AddAppShareStoryAdvertisement(Advertisement appShareStoryAd)
 {
     addAppSponsorStoryAdvertisement(AdType.App_Share_Story, appShareStoryAd);
 }