About Store Forum Documentation Contact



Post Reply 
Ads on ios - Using iads?
Author Message
alkirah Offline
Member

Post: #1
Ads on ios - Using iads?
Hello,

I have been looking on advertizing class in esenthel and it seems to work only with admob.

Since iads have better cpm rates, is there a way to integrate it in a ios app? and only use admob as a failover?

Thanks

Alkirah
06-16-2014 04:33 PM
Find all posts by this user Quote this message in a reply
alkirah Offline
Member

Post: #2
RE: Ads on ios - Using iads?
I tried getting some obj-c code running, and I seem to have problem with that also.

Changed file type to objective-c++ source

changed stdafx.h to the format in the doc

added foundation framework to the xcode project

tried with file named main.cpp and main.mm


Code:
#define Ptr       ApplePtr
#define Point     ApplePoint
#define Cell      AppleCell
#define Rect      AppleRect
#define Button    AppleButton
#define Cursor    AppleCursor
#define FileInfo  AppleFileInfo
#define gamma     AppleGamma
#define ok        AppleOk
#define require   AppleRequire
#define TextStyle AppleTextStyle

// Include System Headers


#undef  Ptr
#undef  Point
#undef  Cell
#undef  Rect
#undef  Button
#undef  Cursor
#undef  FileInfo
#undef  gamma
#undef  ok
#undef  require
#undef  TextStyle
#undef  MIN
#undef  MAX
#undef  ABS
#undef  NULL
#define NULL 0

// Include Esenthel Engine
#include <EsenthelEngine/EsenthelEngine.h>

// Include your Custom Headers
..

tried adding next to the system includes ...

#include "Foundation/Foundation.h"
#include <Foundation/Foundation.h"
#import "Foundation/Foundation.h"
#import <Foundation/Foundation.h"

all 4 gives errors.

My guess is I will be able to use iad framework if I can get this to work.

Say I want to call a simple NSLog function? How can I do this? since xcode gives me error messages about NSLog function not found.

Thanks
(This post was last modified: 06-16-2014 07:05 PM by alkirah.)
06-16-2014 06:56 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #3
RE: Ads on ios - Using iads?
Hi,

Currently only AdMob is supported.

On iOS EE "Log/LogN" work as NSLog.

Quote:all 4 gives errors.
If you'd attach the errors maybe we could find a solution.
06-17-2014 12:07 AM
Find all posts by this user Quote this message in a reply
Post Reply