Chartboost on iphone / Chartboost project on iOS

Integrated chartoost sdk into the iPhone game. (Landscape game)

#define CHARTBOOST_ID @"55c9f216f6cd4572f3975566" #define CHARTBOOST_SIG @"9cc8122cfb05bfe0e171f46990180147e8b6f23c" [Chartboost startWithAppId:CHARTBOOST_ID appSignature:CHARTBOOST_SIG delegate:self]; [Chartboost showInterstitial:CBLocationHomeScreen]; 

But he does not show any ads. Help me find what is wrong with the settings in Xcode or the account in the raising chart.

+4
source share
4 answers

There may have been a download error. I would implement the delegate methods described in the docs , in particular the didFail method:

 // Called before requesting an interstitial from the back-end - (BOOL)shouldRequestInterstitial:(NSString *)location; // Called when an interstitial has been received, before it is presented on screen // Return NO if showing an interstitial is currently inappropriate, for example if the user has entered the main game mode - (BOOL)shouldDisplayInterstitial:(NSString *)location; // Called when the user dismisses the interstitial - (void)didDismissInterstitial:(NSString *)location; // Same as above, but only called when dismissed for a close - (void)didCloseInterstitial:(NSString *)location; // Same as above, but only called when dismissed for a click - (void)didClickInterstitial:(NSString *)location; // Called when an interstitial has failed to come back from the server // This may be due to network connection or that no interstitial is available for that user - (void)didFailToLoadInterstitial:(NSString *)location; 
+11
source

Now it works fine. We need to add a publishing campaign to our chartboost account. Here

enter image description here

UPDATES:

  [Chartboost startWithAppId:CHARTBOOST_APP_ID appSignature:CHARTBOOST_APP_SIGNATURE delegate:self]; [Chartboost showInterstitial:CBLocationHomeScreen]; 

Another way to see test ads:

  • Add your device’s UDID to your publishing campaign. how to add your device UDID in publishing campaignhow to add your device UDID in publishing campaign

  • Enable test mode in the application settings. how to enable test mode in app settings?

+17
source

It may also be because the Campaign is not filling out advertisements, and you have not added devices as test devices to make advertisements fill up.

This is easy to overlook, because at first the advertisement can be filled - only during testing will they simply cease mysteriously.

Chartboost has a parameter:

Edit the campaign you use for testing

  • In the "Campaign Logic" section, click the "Show Test Devices" button.
  • Click Add Test Device to add each device.
  • Turn on each device and save the campaign.

(Remember to tag them when you live), as I assume that means that these devices continue to see ads, but you probably want to see how the application really works)

+2
source

You need to install

cb.delegate = self;

+2
source

Source: https://habr.com/ru/post/1416532/


All Articles