Bobj-C
Bobj-C

Reputation: 5426

Admob Iphone Banner ID Problem

I'm trying to integrate AdMob in my App all work properly but i get this error error: 'MY_BANNER_UNIT_ID' undeclared (first use in this function)

for this line of code

  bannerView_.adUnitID = MY_BANNER_UNIT_ID;

in the Admob settings in their i got my publisher code xxxxxxxxxxb6b0e

where to put it ?

Thank you

Upvotes: 1

Views: 2356

Answers (1)

Michaël
Michaël

Reputation: 6734

Add in the head of your .m file:

#define MY_BANNER_UNIT_ID @"xxxxxxxxxxb6b0e"

Upvotes: 3

Related Questions