Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

estupefactika

macrumors member
Original poster
Feb 16, 2009
47
0
Alcobendas (Madrid)
Hello, Im trying to use Jumptap, its a system provides a single interface for mobile operators and publishers to retrieve display ads from the Jumptap ad network.

Im following instructions from:

https://support.jumptap.com/index.php/IPhone_Library_Integration

1. Unzip the folder to your project directory so that JumptapApi is next to Classes
2. Go into your project
3. Right Click "Classes" -> Add -> Existing Files : ./JumptapApi/JTAdWidget.h
4. Right Click "Frameworks" -> Add -> Existing Files : ./JumptapApi/3.0/iphoneos/libJumptapApi.a
5. Right Click your primary target -> Get Info -> Build Tab -> Scroll down to the Search Paths heading
1. Make sure "Configuration" in the top left is set to "All Configurations"
2. Double Click on the value for "Library Search Paths"
1. Change the path that reads "$(SRCROOT)/JumptapApi/3.0/iphoneos" to (including the quotes) "$(SRCROOT)/JumptapApi/$(IPHONEOS_DEPLOYMENT_TARGET)/$(PLATFORM_NAME)/"


Basic implementation sample code

// in viewDidLoad:

JTAdWidget *widget = [[JTAdWidget alloc] initWithDelegate:self shouldStartLoading: YES];
widget.frame = CGRectMake(0.0, 410.0, 320.0, 50.0);
widget.refreshInterval = 60;
[self.view addSubview:widget];

// basic delegate methods
- (NSString *) publisherId: (id) theWidget {
return @"my_publisher_id_supplied_by_jumptap";
}

- (NSString *) adSpot: (id) theWidget {
// this might vary depending upon what "page"
// the user is currently visiting
return @"my_spot_id_supplied_by_jumptap_which_may_vary_by _page";
}


Initialization Routine

// initializes the JTAdWidget with a delegate which can be invoked for
// a publisher id, ad spot id, and other questions, and a boolean
// indicating whether the widget should immediately start displaying ads.
// If the boolean is NO, no ads will be displayed until refreshAd is invoked on the widget.

initWithDelegate: (JTAdWidgetDelegate*) delegate shouldStartLoading: (BOOL) startLoading;



But when I compile an errors appears me:
my class does not implement the 'JTAWidgetDelegate' protocol

Is anyone using JumpTap who can help me? Thanks
 
Ok, I had to add JTAdWidgetDelegate in my .h but I get an other new:

".objc_class_name_JTAdWidget", reference from:
literal-pointer@_OBJC@_cls_ref@JTAdWidget in MyViewController.o
symbol(s) not found
collect2:id returned 1 exit status

What does mean this? Thx

In MyViewController.h:

Code:
#import "JTAdWidget.h"

@interface MyViewController : UIviewController <JTAdWidgetDelegate> {
....
}

In MyViewController.m

#import "MyViewController.h"
@implementation MyViewController

-(void) viewDidLoad {
JTAdWidget *widget = [[JTAdWidget alloc] initWithDelegate:self shouldStartLoading: YES];
widget.frame = CGRectMake(0.0, 410.0, 320.0, 50.0);
widget.refreshInterval = 60;
[self.view addSubview:widget];
}

// basic delegate methods
- (NSString *) publisherId: (id) theWidget {
return @"my_publisher_id_supplied_by_jumptap";
}

- (NSString *) adSpot: (id) theWidget {
// this might vary depending upon what "page"
// the user is currently visiting
return @"my_spot_id_supplied_by_jumptap_which_may_vary _by _page";
}
@end
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.