Mocean ad(158212768) - Server response with empty body (no ads) error? - ios

I am using mocean's interstitial ad in my iOS project.
I am able to display dummy ads using dummy site_id and zone_id.
But when I replace dummy site_id and zone_id with my own ids, it gives following error -
Ad ad(158212768) - Server response with empty body (no ads) | error: Error Domain=Server response with empty body (no ads) Code=22 "The operation couldn’t be completed. (Server response with empty body (no ads) error 22.)"
Please help me to resolve this problem.
Thank you in advance.

What ads provider do you use? As far as i know, there are several companies, that use mOcean SDK for iOS for advertisements (YOC Performance, Mojiva).
Possibly, you need to setup adServerUrl property of your newly created MASTAdView class object. For Mojiva, for example, it must be #"http://ads.mojiva.com/ad". For YOC Performance it is #"http://ads.mo.yoc-adserver.com/ad", but i'm not sure about it.
PS: also, as you wish to aggregate more than one advertiser in you ios app (and want to manage ads displaying for different regions and countries and much more for growing your revenue from application), there is good alternative to AdWhirl - Epom SDK for iOS

Related

NSURLerrordomain error -1202 Using Appcelerator

I'm working on iPhone application using Appcelerator .Every thing in app working fine .but now one alert shows in this.
A quick google search should bring you to the list of error codes
(https://developer.apple.com/library/mac/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_Constants/index.html#//apple_ref/doc/constant_group/URL_Loading_System_Error_Codes)
In here, we can find the following
NSURLErrorServerCertificateUntrusted = -1202
Meaning that there seems to be a problem with the server certificates.
A quick search on this error gives us a possible cause:
The time of the phone might be wrong
(One of my iPhone users gets an NSURLErrorServerCertificateUntrusted error)
EDIT
I have no experience with appcelerator. This workaround is for native only, however, the idea should be the same.
And a workaround, if you were using NSUrlConnection:
Which makes use of
NSUrlConnection -connection:didReceiveAuthenticationChallenge:
HTTPS with NSURLConnection - NSURLErrorServerCertificateUntrusted

GooglePlaceAPI error: -6 in iOS

after working with autocomplete UI Control https://developers.google.com/places/ios-api/ i got error in XCODE console when i am going to search in search bar that Google provide.
I have use Google Maps frameworks with use of pods.
Error :
error : -6
Set accountToAuthorizerBlock to be able to send authorized requests.
I'm an engineer on the Places API for iOS team. This is an internal log message that was printed by mistake. It shouldn't actually affect the functionality of your app and it's fine to ignore it.

Google Tag Manager for iOS AdWords Conversion Tracking Error

GTM SDK Version: 3.09
Platform: iOS
Tag: AdWords Conversion tracking
When trying to fire an AdWords conversion tracking tag via Google Tag Manager for apps, I'm seeing the following messages (only relevant messages shown):
_aid has no backing implementation.
Dispatch url: http://www.googleadservices.com/pagead/conversion/1234567/?gclid=&appversion=3.1.a&conv=1234567&label=abc&ai=&timestamp=1413203719&osversion=8.0.2&bundleid=com.example&lat=0&idtype=idfa&sdkversion=gtm-i-v3.0&rdid=1234&remarketing_only=0
Successfully sent hit: http://www.googleadservices.com/pagead/conversion/1234567/?gclid=&appversion=3.1.a&conv=1234567&label=abc&ai=&timestamp=1413203719&osversion=8.0.2&bundleid=com.example&lat=0&idtype=idfa&sdkversion=gtm-i-v3.0&rdid=1234&remarketing_only=0
I suspect the _aid error is related to the inability to access the IDFA. I have included all the libraries and frameworks stated here (https://developers.google.com/tag-manager/ios/v3/#add-sdk) and I have used the force_load flag as well, but I'm still getting this error message.
As for the dispatch URL, we can again see that the ai query parameter (which I assume should equal the IDFA), is left blank. I'm not sure how the hit is able to be "sucessfully sent" despite the ai parameter missing. The status of the conversion in the AdWords interface remains as "unverified".
Any idea how I can get rid of the _aid has no backing implementation error message and properly get the ai parameter to populate?

redirect_uri_mismatch Unity Google API on iOS

I created an app in Unity with Google Play Leaderboard support. I could easily make it work on Android, then I moved to OSX to build it for iPhone too.
First I got a problem, that Apple won't accept any bundle identifier with the '_' character in it, but my Android app bundle identifier had 2 of them...
However I found out, that in the Google Developer Console I can link another app to my app (to use the same Leaderboard) for iOS too, so I was quite happy. Unfortunately this doesn't seem to work. I get the *redirect_uri_mismatch* error message every time I try to log in.
On Android I used the UnityGPGPlugin but as it didn't work for me on iOS, I tried the PlayGameServices too. In UnityGPGPlugin I could set only the Application ID, so I thought that's why it is not working. In the PlayGameServices plugin there are two fields, one for the Application ID and one for the Client ID that made it look like that's really what I need. Unfortunately the error is still present and I really don't know what I could do with it. Here is the well known message:
Error: redirect_uri_mismatch
Request Details
cookie_policy_enforce=false
scope=https://www.googleapis.com/auth/appstate
https://www.googleapis.com/auth/games
https://www.googleapis.com/auth/plus.login
https://www.googleapis.com/auth/plus.moments.write
https://www.googleapis.com/auth/plus.me
https://www.googleapis.com/auth/plus.profile.agerange.read
https://www.googleapis.com/auth/plus.profile.language.read
https://www.googleapis.com/auth/plus.circles.members.read
response_type=code
access_type=offline
redirect_uri= < my bundle identifier without '_' characters >:/oauth2callback
state=16885367
gpsdk=1.5.0
verifier=12647966
display=page
client_id=123456789123-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.apps.googleusercontent.com
hl=en
The debug log contains only this:
2014-03-16 14:21:19.507 <my app>[1699:60b] GPGSAuthenticateWithCallback.
2014-03-16 14:21:19.509 <my app>[1699:60b] GPGSManager initializing and authenticating.
2014-03-16 14:21:19.512 <my app>[1699:60b] GPPSignIn initialized.
2014-03-16 14:21:19.514 <my app>[1699:60b] GPPSignIn attempting sign in now.
-> applicationWillResignActive()
-> applicationDidEnterBackground()
Does anyone know how could I solve this problem?
Thanks in advance!
Edit:
Maybe it wasn't obvious, but I have 2 bundle identifiers, both of them are linked to the same game service in Google Play Developer Console. The com.x.a_b_c belongs to the Android app, the com.x.abc belongs to the iOS app.
I was having redirect_uri_mismatch error while using UnityGPGPlugin. I was using "123456789123" as my Application ID instead of "123456789123-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx".
However, I manage to get through the Google Sign In page after changing all my setup to "123456789123-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" as my Application ID. Including the GPGApplicationID in Info.plist.
Sad to say that I am having another problem now, but at least that's how I manage to get through that error. :)

Google Maps iOS API key not working

I have a simple iOS app into which I am integrating Google Maps. However, the API key I've provided results in several of these error messages when my map view is displayed:
ClientParametersRequest failed, 3 attempts remaining (0 vs 5). Error Domain=com.google.HTTPStatus Code=400 "The operation couldn’t be completed. (com.google.HTTPStatus error 400.)" UserInfo=0x1818bf40 {data=<CFData 0x18137410 [0x302aec8]>{length = 145, capacity = 256, bytes = ...}}
Here is what I have already tried to no avail:
Calling [GMSServices provideAPIKey:] as the first line of code within didFinishLaunchingWithOptions
Double-checking that my API key is correct and is an iOS API key (I copy/pasted it directly from the Google Cloud Console into my app)
Providing the API key both with {} and without
Confirming my bundle name by outputting it with [[Bundle mainBundle] bundleIdentifier]
Omitting bundle identifier restrictions altogether
Regenerating the API key
I am not sure what else to try. My bundle name is in this format: net.company.MyApp and I have entered it exactly that way into the Google Cloud Console (I know bundle IDs are case-sensitive).
Could it be that Google doesn't support bundle identifiers of a certain type (e.g., with upper-case letters or beginning with net.)?
You need to enable maps service in Google developer Console. In new layout, choose APIs & auth section and APIs subitem in the left column. Next, in the right one enable Maps SDK for iOS by clicking on the Off button.
I found the issue. Google Maps SDK for iOS must be enabled for keys to work. I already had Google Maps API v3 enabled and I thought that was enough, but it wasn't.
if you are doing a manual integration of SDK, it is no longer supported in latest version. Also GoogleMapsM4B version needs to be deleted and only keep GoogleMaps SDK in your project. This worked for me.

Resources