I'm looking at adding a rewarded video ad to my app that is written entirely in swift. I believe the setup of the web side of things is correct because when I downloaded the Objective C example app and put in my ad id the video showed up correctly. However, when running the same setup in Swift I get returned
Error Domain=com.google.ads Code=1 "Request Error: No ad to show." UserInfo={NSLocalizedDescription=Request Error: No ad to show., NSLocalizedFailureReason=Request Error: No ad to show.}
I've only had ONE time where it actually returned a video. I'm using Chartboost.
Another interesting point is that if I used chart boost directly it seemed to work.
Also, banners work perfectly fine through AdMob in the same app.
Request I Make
let request = GADRequest()
request.testDevices = [ kGADSimulatorID ]
GADRewardBasedVideoAd.sharedInstance().loadRequest(request, withAdUnitID: "AdUnitID")
Related
I am implementing AdMob into my Flutter application, and I have interstitial ads showing up correctly in Test Mode. I would now like to determine how much money a particular ad has made, and that doesn't seem to be working.
The solution I have tried to make that happen is using the onPaidEvent function (please let me know if this is incorrect), so in the onAdLoaded function, I currently have the following code:
ad.onPaidEvent = (Ad ad, double valueMicros, PrecisionType precision, String currencyCode) {
double cents = valueMicros * 10000;
print(cents);
} as OnPaidEventCallback;
When I include this code, the app never gets to the call to InterstitialAd.load, but without it, it gets past the InterstitialAd.load and displays the ad properly (on both Android and iOS).
What am I doing wrong?
The issue was not actually with the callback, but rather my own code: I was using the posted code snippet inside of a class that was also called Ad, which was ambiguous and therefore causing casting problems.
I implemented AdMob into my app and linked it with Firebase which I am also using for database.
Before that I tried AdMob on new, sample project to see how it works. Its pretty simple so I put it in my app project.
AppDelegate
GADMobileAds.configure(withApplicationID: "myAppID")
Problem is that I made everything as necessary but my ad is not showing up as it did in sample project. I ran app on my device and added bannerView and configuration for it
let request = GADRequest()
request.testDevices = [kGADSimulatorID, "myDeviceID"]
bannerView.adUnitID = "myID"
bannerView.rootViewController = self
bannerView.load(request)
Problem here it because if I enter Firebase testing purpose adUnitID to test it, it works but with mine it doesn't.
Any ideas?
I've created a Facebook action that I'm trying to submit to Facebook for approval. When I publish the action from my personal account, which is an app administrator, it appears to work fine and Facebook returns the Open Graph ID. I don't see this Open Graph Post on my timeline, but I can see that it works via the Facebook Debug Tool.
However, when I try to post the action via a test user that I created from my app settings, I get an error:
Error Domain=com.facebook.sdk Code=5 "The operation couldn’t be completed. (com.facebook.sdk error 5.)" UserInfo=0x1fc64d60 {com.facebook.sdk:HTTPStatusCode=400, com.facebook.sdk:ParsedJSONResponseKey={
body = {
error = {
code = 100;
message = "Unsupported post request.";
type = GraphMethodException;
};
};
code = 400;
}
I've tried tried debugging this for days and can't figure out what this error means. I know that when Facebook reviews the action, they will be doing it from a test user as well, so I want to make sure that my action works with test users. If it's relevant, I'm posting the action via the iOS SDK.
Any help in troubleshooting this would be helpful. Thanks!
It seems that your app is still in testing / sandbox mode. Make sure that your application is public and try again .
Integrated chartoost sdk in to 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 it is not displaying any ads. Help me to find what's wrong with settings in Xcode or account in chart boost.
Notes_Warning :
Hi All, don't use Chartboost, instead try google Admob or other ads network. Because Chartboost - a cheater! I used Chartboost in my games, game got good ranking in Cambodia - reached #1 in Racing/games. Game got good downloads too...But Chartboost said we used many device in Cambodia and downloaded game...its not true...we are not from Cambodia...I tried to send message to Chartboost many times...but they didn't respond and suspended my account. They even didn't pay my 7463$. Really its a heart attack for us. Now we removed Chartboost and used Admob and earned our development cost from Admob easily. So avoid Chartboost avoid getting cheated!!! Truth always wins...Always do good.
Be a good person but don't try to prove it. Just go away from bad cheaters!!!!
Notes_Warning :
Hi All, don't use Chartboost, instead try google Admob or other ads network. Because Chartboost - a cheater! I used Chartboost in my games, game got good ranking in Cambodia - reached #1 in Racing/games. Game got good downloads too...But Chartboost said we used many device in Cambodia and downloaded game...its not true...we are not from Cambodia...I tried to send message to Chartboost many times...but they didn't respond and suspended my account. They even didn't pay my 7463$. Really its a heart attack for us. Now we removed Chartboost and used Admob and earned our development cost from Admob easily. So avoid Chartboost avoid getting cheated!!! Truth always wins...Always do good. Be a good person but don't try to prove it. Just go away from bad cheaters!!!!
Now its working fine. We need to add publishing campaign in our chartboost account. Here
UPDATES:
[Chartboost startWithAppId:CHARTBOOST_APP_ID appSignature:CHARTBOOST_APP_SIGNATURE delegate:self];
[Chartboost showInterstitial:CBLocationHomeScreen];
Some other way to see test Ads:
Add your device UDID in publishing campaign
Enable test mode in App settings.
Perhaps there has been an error in loading them. I would implement the delegate methods as described in the docs, particularly 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;
It may also be because the Campaign is not filling adverts and you have not added the devices as test devices to force the adverts to be filled.
This is easily missed since at first adverts may be filled - only during testing they'll just stop mysteriously.
There is a setting in Chartboost:
Edit the Campaign you are using for testing
Under "Campaign Logic" click the "Show Test Devices" button.
Click "Add Test Device" to add each device.
Enable each device and Save the Campaign.
(Don't forget to un-tick them when live - since I assume that missing that will mean those devices keep seeing adverts but you probably want to see how the app really behaves)
You need to set
cb.delegate = self;
adwhirl(iad, admob, houseAd) add to xcode4
deviece test...
iad : ok see service
houseAd : ok see service
but...
admob : not see!!!
log code
2011-10-19 13:38:07.739 KingKatWorldFree[948:707] <Google> Invalid Request: {
errors = "Cannot determine request type. Is your ad unit id correct?";
"google.afma.notify_dt" = 1318999087687;
"request_id" = undefined;
type = unknown;
}
Why admob not See????
plese help me!!!!
When you configured AdMob on the AdWhirl backend with your AdMob publisher ID, check to make sure there is no whitespace before or after your ID. Otherwise AdMob will not recognize your publisher ID.