Reputation: 5426
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
Reputation: 6734
Add in the head of your .m file:
#define MY_BANNER_UNIT_ID @"xxxxxxxxxxb6b0e"
Upvotes: 3