在做admob廣告時,橫向(Landscape)和直向(portrait)廣告大小不同,所以在進入viewDidLoad時需要知道是橫向或直向,但是一進viewDidLoad永遠是直向(portrait),用下方法測試可知:
使用admob時,在iPad landscape mode,當你看到 :
<Google> Invalid Request: {
"drt_include" = 1;
errors = "Ad size will not fit on screen";
"google.afma.Notify_dt" = 1367802121417;
"request_id" = 3;
"request_scenario" = "offline_empty";
type = admob;
"use_webview_loadurl" = 0;
}