private int convertAdSize(iOS_DFP_AdSize adSize) { switch (adSize) { case iOS_DFP_AdSize.Banner_320x50: return 0; case iOS_DFP_AdSize.FullBanner_468x60: return 1; case iOS_DFP_AdSize.Leaderboard_728x90: return 2; case iOS_DFP_AdSize.MediumRectangle_300x250: return 3; case iOS_DFP_AdSize.SmartBannerLandscape: return 4; case iOS_DFP_AdSize.SmartBannerPortrait: return 5; } return 0; }
private int convertAdSize(iOS_DFP_AdSize adSize) { switch (adSize) { case iOS_DFP_AdSize.Banner_320x50: return(0); case iOS_DFP_AdSize.FullBanner_468x60: return(1); case iOS_DFP_AdSize.Leaderboard_728x90: return(2); case iOS_DFP_AdSize.MediumRectangle_300x250: return(3); case iOS_DFP_AdSize.SmartBannerLandscape: return(4); case iOS_DFP_AdSize.SmartBannerPortrait: return(5); } return(0); }