/ / आईओएस डबल प्रकाशकों के लिए क्लिक करें (डीएफपी) .. त्रुटि: दिखाने के लिए कोई विज्ञापन नहीं - ios, purpose-c, ipad, google-dfp

प्रकाशकों के लिए आईओएस डबलक्लिक (डीएफपी) .. त्रुटि: दिखाने के लिए कोई विज्ञापन नहीं - ios, purpose-c, ipad, google-dfp

मैं अपने ऐप में डबलक्लिक फॉर पब्लिशर्स (डीएफपी) का उपयोग कर रहा हूं। मैंने इसे एकीकृत किया है डॉक्स निम्नलिखित नुसार।

 dfpBannerView_ = [[DFPBannerView alloc] initWithAdSize:kGADAdSizeBanner];
dfpBannerView_.adUnitID = kSampleAdUnitID;
// Set the delegate to listen for GADBannerViewDelegate events.
dfpBannerView_.delegate = self;

// Let the runtime know which UIViewController to restore after taking
// the user wherever the ad goes and add it to the view hierarchy.
dfpBannerView_.rootViewController = self;
[self.view addSubview:dfpBannerView_];

// Initiate a generic request to load it with an ad.
[dfpBannerView_ loadRequest:[GADRequest request]];

जहां kSampleAdUnitID मैंने बनाया है ऐप यूनिट आईडी है।

प्रतिनिधि विधि के बाद मिल गया है

- (void)adView:(DFPBannerView *)view
didFailToReceiveAdWithError:(GADRequestError *)error {
NSLog(@"Failed to receive ad with error: %@", [error localizedFailureReason]);
NSLog(@"%d",error.code);
}

लेकिन फिर भी मुझे निम्नानुसार त्रुटि मिलती है,

Failed to receive ad with error: Request Error: No ad to show.
2014-04-11 17:40:55.836 DFPBannerExample[6319:70b] 1

जहां त्रुटि कोड 1 है /// The ad request was successful, but no ad was returned. kGADErrorNoFill,

मुझे समस्या नहीं मिल रही है। मुझे विज्ञापन क्यों नहीं मिल रहे हैं, जबकि मुझे नमूना ऐप यूनिट आईडी के लिए विज्ञापन मिल रहे हैं।

उत्तर:

जवाब के लिए 0 № 1

यदि आप अपने बैनर को कुछ प्रदर्शित करना चाहते हैं, तो आपको बैनर आकार निर्दिष्ट करना होगा, और उसके बाद बैनर को एडुनिट आईडी के साथ टैग करना होगा: इस कोड को चेक करें:

 bannerView_ = [[DFPBannerView alloc] initWithFrame:CGRectMake(111, 483, 537, 120)];

bannerView_.adUnitID = @"/5900406/UserAppWaitingView";

// the user wherever the ad goes and add it to the view hierarchy.

bannerView_.rootViewController = स्वयं; [self.view addSubview: bannerView_];

// Initiate a generic request to load it with an ad.

[bannerView_ loadRequest: [GADRequest अनुरोध]];