1
내 앱에서 추가 기능을 보여주고 있지만, 추가 기능은 iPhone5 device
에 게재되지 않고 simulator
에만 표시됩니다.iPhone5에 광고가 표시되지 않습니다.
나는 다음과 같은 코드를 사용하고 -
-(void)showAdds
{
{
if ((UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad))
{
bannerView = [[GADBannerView alloc]
initWithFrame:CGRectMake(128.0,
670 ,
GAD_SIZE_728x90.width,
GAD_SIZE_728x90.height)];
bannerView.adUnitID = @"8c9b7de0880d478b";
}
else {
if ([[UIScreen mainScreen] bounds].size.height == 568)
{
bannerView = [[GADBannerView alloc]
initWithFrame:CGRectMake(120,
[[UIScreen mainScreen] bounds].size.height - GAD_SIZE_320x50.height ,
GAD_SIZE_320x50.width,
GAD_SIZE_320x50.height)];
bannerView.adUnitID = @"a151d69e8127bd7";
NSLog(@"ads");
}
else
{
bannerView = [[GADBannerView alloc]
initWithFrame:CGRectMake(80,
[[UIScreen mainScreen] bounds].size.width - GAD_SIZE_320x50.height ,
GAD_SIZE_320x50.width,
GAD_SIZE_320x50.height)];
bannerView.adUnitID = @"a151d69e8127bd7";
NSLog(@"ads");
}
}
을 추가합니다 시뮬레이터하지만 아이폰 장치에 표시된다. 도와주세요. 난 당신이 테스트 광고를 사용할 생각
테스트 광고를 볼? iOS 7에서 사용 중지하는 방법은 무엇입니까? –
테스트 용 링크를 참조하십시오 – Deepesh
귀하의 링크는 어디에 있습니까? –