1
00:00:06,000 --> 00:00:08,860
Hey what's up everyone back in the saddle again.

2
00:00:08,880 --> 00:00:14,220
Mark Price you're at DEF slopes dot com and what we're going to do with our app is we're going to have

3
00:00:14,460 --> 00:00:20,090
a non consumable in that purchase where you can remove advertisements from an app.

4
00:00:20,250 --> 00:00:25,590
And basically when a user actually deletes the apple Iran then you can come back in they can click a

5
00:00:25,590 --> 00:00:30,450
button to restore in-app purchases and it will remove those ads again without having to pay again.

6
00:00:30,450 --> 00:00:35,300
So there's quite a bit of work for those very small things but I wish I had to do all of that.

7
00:00:35,370 --> 00:00:39,120
And what we're also going to do is we're going to cover some of the bases like you know if you did have

8
00:00:39,120 --> 00:00:43,670
ads and you wanted to remove it how do you handle the logic how do you show or not show advertisements

9
00:00:43,680 --> 00:00:44,370
things like that.

10
00:00:44,370 --> 00:00:48,300
And so not only will you be learning how to work with in-app purchases but you're also going to learn

11
00:00:48,300 --> 00:00:53,910
how to integrate Google AdMob the ad framework and that framework for iOS which is really cool.

12
00:00:53,910 --> 00:00:59,190
So first things first is I'm going to click the assets folder and I'm going to drag all the assets for

13
00:00:59,190 --> 00:01:03,480
the project into this folder that I have here in other folder.

14
00:01:03,980 --> 00:01:05,430
OK.

15
00:01:05,820 --> 00:01:06,760
Easy peasy.

16
00:01:07,050 --> 00:01:07,890
So that's looking good.

17
00:01:07,890 --> 00:01:12,000
The next thing I want to do is I want to go get the Google AdMob.

18
00:01:12,010 --> 00:01:21,630
So we're just going to go to Google and type in Google ad iOS SDK and they've got a link for it right

19
00:01:21,630 --> 00:01:22,360
here.

20
00:01:27,010 --> 00:01:31,500
Now you can implement Google AdMob with cocoa pods.

21
00:01:31,540 --> 00:01:35,020
We're not going to do that because we don't have cocoa pod in this project and it's only one framework

22
00:01:35,020 --> 00:01:36,790
and it's really easy to implement.

23
00:01:36,790 --> 00:01:42,400
So instead I'm going to do is I'm going to click this Google mobile app SDK iOS zip

24
00:01:45,310 --> 00:01:46,590
it's 12 megabytes or so

25
00:01:50,330 --> 00:01:51,980
and there it is downloaded here.

26
00:01:52,190 --> 00:01:57,740
Just click it to unwrap it and move this off the screen for now.

27
00:01:57,990 --> 00:02:00,800
I'm not closing it where I need to reference in just a moment here.

28
00:02:01,370 --> 00:02:04,100
And let's go find our framework.

29
00:02:09,070 --> 00:02:13,180
And there it is Google mobile ads for homework and just drag it into your project somewhere.

30
00:02:15,170 --> 00:02:19,090
Copy items if needed should be selected and add to targets as well.

31
00:02:21,650 --> 00:02:22,850
Very good.

32
00:02:23,440 --> 00:02:29,720
So let's finish getting the framework set up so what we're going to do is we're going to go to our app

33
00:02:29,720 --> 00:02:30,590
delegate.

34
00:02:31,010 --> 00:02:31,690
OK.

35
00:02:32,000 --> 00:02:42,540
And you know actually let's put the framework here and actually in the frameworks folder there we go.

36
00:02:42,720 --> 00:02:46,180
For some reason I added it here both places let's get rid of this one.

37
00:02:46,350 --> 00:02:46,630
OK.

38
00:02:46,650 --> 00:02:48,670
We have it here in our project which is great.

39
00:02:48,980 --> 00:02:53,850
And in the app delegate well actually let's go over here to the guide here so you can so you can see

40
00:02:53,850 --> 00:02:58,230
how to get started click the get started button and it's going to give you some instructions on how

41
00:02:58,230 --> 00:03:05,170
to initialize it with swift or Objective-C and you can see right here import Google mobile ads.

42
00:03:05,450 --> 00:03:07,600
OK.

43
00:03:07,760 --> 00:03:10,510
So let's do that here.

44
00:03:10,810 --> 00:03:19,270
In court Google mobile ads and build your project.

45
00:03:19,280 --> 00:03:21,170
Notice how it has no such module.

46
00:03:21,170 --> 00:03:26,660
Google Mobile Ads found and this is a very common problem and if you bring new frameworks into your

47
00:03:26,660 --> 00:03:31,990
project you have to specify where your project can find them and it's not that big of a deal.

48
00:03:32,090 --> 00:03:34,840
We're just going to go over here to our project settings.

49
00:03:34,970 --> 00:03:41,240
The blue icon here go to build settings and type in the word framework there in the search to make sure

50
00:03:41,240 --> 00:03:45,270
all is selected and you're going to see a search paths heading here.

51
00:03:45,290 --> 00:03:53,090
And it says framework search paths DoubleClick that click the plus sign and do dollar sign parentheses

52
00:03:53,330 --> 00:03:57,840
project underscore Diyar and closing parentheses all in caps there.

53
00:03:57,890 --> 00:04:01,250
This is going to find your project directory and it is going to search in there for any frameworks you

54
00:04:01,250 --> 00:04:03,120
might have and press enter.

55
00:04:03,920 --> 00:04:04,870
OK.

56
00:04:05,810 --> 00:04:13,770
I'm going to command shift K to clean the project and now if I build it the air should be gone.

57
00:04:18,930 --> 00:04:21,010
It it looks like it is so that's good enough.

58
00:04:21,010 --> 00:04:25,890
So what we're going to do here is we are going to finish watching with options.

59
00:04:25,990 --> 00:04:34,620
We're going to say the mobile ads configure and it's looking for an application I.D. Now let's go over

60
00:04:34,620 --> 00:04:40,130
here to the inter-webs Google ad mob sign up.

61
00:04:40,290 --> 00:04:45,780
So we're not going to go through the sign up process of Google ads you can do that on your own but if

62
00:04:45,780 --> 00:04:51,270
you need an advertiser I.D. from Google ads go here and sign up for free and they will give you an I.D.

63
00:04:51,270 --> 00:04:52,830
and you can add it to your app.

64
00:04:52,860 --> 00:04:59,340
We're going to use the test I.D. that they've given us here in this little blue box here that you can

65
00:04:59,340 --> 00:05:00,940
use for testing purposes.

66
00:05:00,960 --> 00:05:07,860
So I'm going to copy from the CIA all the way to the one 1 Comanche and I'm going to just paste that

67
00:05:08,670 --> 00:05:09,300
over here.

68
00:05:09,300 --> 00:05:13,660
Inside the application ID parameter.

69
00:05:14,220 --> 00:05:19,680
OK so Google Maps will configure the account which is exactly what we need to do to get this up and

70
00:05:19,680 --> 00:05:26,220
running so technically in a few easy steps you have Google Mobile Ads added to your project which is

71
00:05:26,220 --> 00:05:26,850
pretty awesome.

72
00:05:26,850 --> 00:05:35,250
So what I want to do now is I want to just get some simple user interface on the screen so we can actually

73
00:05:35,250 --> 00:05:40,620
start working with the Google AdMob and I'll show you some mockups of kind of an app that we're going

74
00:05:40,620 --> 00:05:41,160
to build here.

75
00:05:41,160 --> 00:05:45,080
So let me grab the mockups.

76
00:05:45,370 --> 00:05:51,370
Here's the mockups there's extra features and things on here that we aren't going to do but we just

77
00:05:51,370 --> 00:05:58,360
created some fully scalable mockups here and basically let's pretend that we have an app you know.

78
00:05:58,420 --> 00:06:02,700
It doesn't really matter what kind of app it is but you know this is an app where you can watch videos

79
00:06:02,770 --> 00:06:08,290
about something some topic or subject some of them are subscription only we're not covering the subscriptions.

80
00:06:08,560 --> 00:06:13,690
But you could you can kind of have a few different types in our purchases and in this case here we've

81
00:06:13,690 --> 00:06:16,390
got the advertisements there at the bottom.

82
00:06:16,420 --> 00:06:20,290
And we don't want to see the ads and so you can remove the ads and make a purchase and they'll go away

83
00:06:20,290 --> 00:06:21,700
for ever.

84
00:06:21,700 --> 00:06:28,000
And so let's let's just do that here let's build out this user interface and let me just give you one

85
00:06:28,000 --> 00:06:29,250
tip of advice.

86
00:06:29,470 --> 00:06:36,250
So there's different types of motivations that people that come upon people so they make purchases OK

87
00:06:36,880 --> 00:06:42,010
whether it's full of joy from this experience so I want to spend money or whether it's I want to get

88
00:06:42,010 --> 00:06:47,980
ahead or there's another one called the frustration purchase and a frustration purpose is most common

89
00:06:47,980 --> 00:06:49,650
in things like advertisements.

90
00:06:49,780 --> 00:06:54,360
OK were you just really want them gone so you're frustrated so you remove them.

91
00:06:54,610 --> 00:06:58,690
The only way frustration purchases can work is if your apps are amazing.

92
00:06:58,690 --> 00:07:04,170
Meaning you are providing such amazing content in an app that they have to that they have to get rid

93
00:07:04,170 --> 00:07:04,820
of the ads.

94
00:07:04,830 --> 00:07:07,450
So they're frustrated but then they'll be happy after.

95
00:07:07,450 --> 00:07:11,630
And this is a perfect example of a frustration purchase is YouTube read.

96
00:07:11,770 --> 00:07:16,690
Ok YouTube read if you don't have YouTube read you have to watch advertisements and pretty much every

97
00:07:16,690 --> 00:07:21,970
video now and sometimes more more than one advertisement and you love YouTube you love the content they

98
00:07:21,970 --> 00:07:24,520
have but you are just sick and tired of ads.

99
00:07:24,520 --> 00:07:29,530
And so what you do is you get to YouTube read subscription and then it gets rid of the ads and so you've

100
00:07:29,530 --> 00:07:31,220
made a frustration purpose purchase.

101
00:07:31,240 --> 00:07:35,650
But then you're happy you're relieved and so that's what we're doing here is we're implementing a frustration

102
00:07:35,650 --> 00:07:39,150
purchase so your app has to be really good if you're spamming your user you won't make money.

103
00:07:39,160 --> 00:07:40,470
I promise you.

104
00:07:40,930 --> 00:07:44,040
So you have to do ads very carefully delicately.

105
00:07:44,170 --> 00:07:48,120
All right enough soapbox on marketing though.

106
00:07:48,460 --> 00:07:51,460
Let's go ahead and go to our main story board here.

107
00:07:52,820 --> 00:07:55,960
And let's just set up a few little things.

108
00:07:55,970 --> 00:07:56,500
OK.

109
00:07:56,750 --> 00:08:02,660
So I'm going to set up a view I view on the top to match kind of our mockup.

110
00:08:02,660 --> 00:08:07,290
In fact I'll pull the mockup open here so we can so we can all see it here.

111
00:08:07,310 --> 00:08:14,780
I'm going to close this left hand side here like so and let's just drag this over here and that's looking

112
00:08:14,780 --> 00:08:15,560
real nice.

113
00:08:15,620 --> 00:08:16,380
OK.

114
00:08:16,880 --> 00:08:19,670
So again we're just going to quickly build out some simple user interface.

115
00:08:19,670 --> 00:08:21,960
It's nothing nothing amazing.

116
00:08:21,980 --> 00:08:25,710
It's not about the UI in this particular app.

117
00:08:25,730 --> 00:08:27,050
Some cynics and constraints here.

118
00:08:27,050 --> 00:08:28,130
Top left and right.

119
00:08:28,190 --> 00:08:31,260
And let's just give it a fixed height like so.

120
00:08:31,460 --> 00:08:32,200
OK.

121
00:08:32,270 --> 00:08:42,890
And then what I'm going to do is put an image on here like so and I will pin this all four corners at

122
00:08:42,890 --> 00:08:43,530
zero.

123
00:08:46,800 --> 00:08:55,960
Like so and then I would like to make sure on this image clip to bounce is checked.

124
00:08:55,990 --> 00:08:57,420
So the image doesn't bleed.

125
00:08:57,640 --> 00:09:01,240
And then I want to find that computer icon.

126
00:09:01,360 --> 00:09:02,970
Maybe it's the video thumb now.

127
00:09:03,030 --> 00:09:07,670
No it is the background image.

128
00:09:07,890 --> 00:09:11,980
And then let's change just from skelter fill to Aspect feel OK.

129
00:09:12,480 --> 00:09:17,650
Yeah and if I didn't take off click and see how it bleeds like that which we don't want so that's ready.

130
00:09:17,880 --> 00:09:21,030
And just for fun let's set up a label up here.

131
00:09:22,890 --> 00:09:23,880
Like so.

132
00:09:24,570 --> 00:09:26,220
And I want to make this bigger

133
00:09:29,470 --> 00:09:34,870
and we're going to call this daily I'm going to align it to the right.

134
00:09:35,020 --> 00:09:42,330
And I would change the font to white and then what I'm gonna do is duplicate this like so.

135
00:09:42,900 --> 00:09:51,850
And we're going to call this dose and the dose we're going to make a bold color like so.

136
00:09:52,020 --> 00:09:57,980
And then what I want to do is holding shifts like both of these and put them in a stack you like so

137
00:10:00,790 --> 00:10:06,540
and I open up the left hand side here so I can see my stacked view because I want to move it in the

138
00:10:06,540 --> 00:10:10,070
center and up like so.

139
00:10:10,470 --> 00:10:12,170
And I think the text is too small.

140
00:10:12,210 --> 00:10:16,570
So I get bigger 25 and 25.

141
00:10:16,610 --> 00:10:22,020
It's a great thing about stack views is it will automatically justice for us still like the stacked

142
00:10:22,020 --> 00:10:23,180
view again.

143
00:10:24,190 --> 00:10:25,500
And that's about right.

144
00:10:25,510 --> 00:10:33,070
So what I want to do here is pin this to the top like so and we'll go ahead and add one constraint there

145
00:10:33,370 --> 00:10:37,750
and then let's go ahead and give it a horizontal in any container constraint.

146
00:10:37,750 --> 00:10:39,630
So it's right there in the center.

147
00:10:39,650 --> 00:10:40,400
OK.

148
00:10:40,930 --> 00:10:43,250
And that's looking good to me there.

149
00:10:43,390 --> 00:10:44,860
Cool.

150
00:10:44,860 --> 00:10:46,510
Very very cool.

151
00:10:46,510 --> 00:10:49,360
The next thing I want to do is get these advertisements here.

152
00:10:49,510 --> 00:10:50,430
OK.

153
00:10:50,680 --> 00:10:52,230
So let's in fact.

154
00:10:52,270 --> 00:10:57,130
Well let's let's fake let's fake this table view here for a minute let's look at a few images here let's

155
00:10:57,130 --> 00:10:58,970
pretend we're building a table view.

156
00:10:59,230 --> 00:11:00,490
You've done this before.

157
00:11:00,520 --> 00:11:02,040
No big deal.

158
00:11:02,260 --> 00:11:09,630
Just put a few in here like so I'll command the command D.

159
00:11:10,630 --> 00:11:13,990
Yeah that works good enough for me.

160
00:11:14,080 --> 00:11:24,400
So put it there like so and I'm going to give it a fixed height as well 138 and then we'll do the same

161
00:11:24,400 --> 00:11:25,390
here.

162
00:11:26,020 --> 00:11:28,300
So I'll change the top to 0.

163
00:11:29,650 --> 00:11:32,160
And we're going to fix 138.

164
00:11:32,410 --> 00:11:41,730
And then what we'll do here is pin this to the top 0 0 6.

165
00:11:41,980 --> 00:11:47,880
One thirty eight like so pretty cool.

166
00:11:47,880 --> 00:11:53,050
And then we'll do is we'll just set the image here to the video thumbnail

167
00:11:55,410 --> 00:11:59,590
and do on all of these here video from now video.

168
00:11:59,670 --> 00:12:10,130
Now let's skel to feel clip to bounce scale to feel that bounce on this one

169
00:12:13,230 --> 00:12:14,900
aspect feels what I meant to say.

170
00:12:14,920 --> 00:12:20,800
There we go and abounds in that aspect feel and click to bounce.

171
00:12:20,820 --> 00:12:21,250
All right.

172
00:12:21,360 --> 00:12:23,650
And that's looking OK there.

173
00:12:23,670 --> 00:12:25,890
So you know here's our table view with some items in it.

174
00:12:25,890 --> 00:12:27,760
It's no big deal.

175
00:12:27,780 --> 00:12:28,500
Those are all set there.

176
00:12:28,500 --> 00:12:30,000
Now let's get our ad here at the bottom.

177
00:12:30,000 --> 00:12:30,810
How do we do that.

178
00:12:30,810 --> 00:12:32,260
How do we put an advertisement here.

179
00:12:32,280 --> 00:12:34,500
Well it's not as hard as you would think.

180
00:12:34,650 --> 00:12:38,010
So let's go back over to our Google Docs and see what they say.

181
00:12:38,010 --> 00:12:39,210
So we want to do a banner ad

182
00:12:47,230 --> 00:12:51,850
end with the banner ad they have a specific size that's 320 by 50.

183
00:12:52,150 --> 00:12:55,350
You can make yours is why did you want the height is most important here.

184
00:12:55,360 --> 00:13:01,900
So what we're going to do is we're going to go ahead and just put a view here so it can hold the ad

185
00:13:01,930 --> 00:13:06,040
and the button let's put it here at the bottom like so

186
00:13:09,150 --> 00:13:10,410
and like so.

187
00:13:10,850 --> 00:13:11,450
OK.

188
00:13:11,720 --> 00:13:15,380
And let's just pinnate to the bottom the left the right and the top zero from the top.

189
00:13:15,540 --> 00:13:16,820
OK.

190
00:13:16,830 --> 00:13:19,160
And just so I can see what's going on.

191
00:13:19,170 --> 00:13:21,920
I want to make this an orange color.

192
00:13:22,290 --> 00:13:23,260
OK.

193
00:13:23,270 --> 00:13:25,470
And then what we're going to do is we're going to stick the banner ad there.

194
00:13:25,470 --> 00:13:29,450
So we just put another view like so.

195
00:13:29,670 --> 00:13:31,670
And remember the height is 50.

196
00:13:32,010 --> 00:13:33,320
That's the important thing.

197
00:13:33,690 --> 00:13:36,800
So there's our banner and let's just put it right here.

198
00:13:36,900 --> 00:13:40,100
Here's our Google Ads banner.

199
00:13:40,320 --> 00:13:41,010
All right.

200
00:13:41,090 --> 00:13:45,030
And what we're going to do is we're going to change the class name here in the identity inspector to

201
00:13:45,030 --> 00:13:54,180
g a d banner view it's a special Google Ads view that is available to us because we imported the Google

202
00:13:54,180 --> 00:13:56,590
framework the Google AdMob framework here.

203
00:13:56,690 --> 00:13:56,930
OK.

204
00:13:56,940 --> 00:13:58,120
So there's our ad view.

205
00:13:58,440 --> 00:14:03,030
And then what I want to do is let's change the color on this to something ugly too so we know that it's

206
00:14:03,030 --> 00:14:07,900
an ad not green because our button is going to be green let's do blue.

207
00:14:08,360 --> 00:14:08,730
OK.

208
00:14:08,730 --> 00:14:13,670
And then lastly let's put a button here at the bottom like so

209
00:14:16,330 --> 00:14:19,810
and we'll just make it fill the whole space.

210
00:14:19,810 --> 00:14:20,820
No big deal.

211
00:14:20,920 --> 00:14:22,340
Nice and pretty.

212
00:14:22,380 --> 00:14:24,150
A big fat button.

213
00:14:24,640 --> 00:14:32,620
And let's take off the word button and ours is going to say remove ads and we'll do it in a nice bold

214
00:14:33,610 --> 00:14:38,010
font style and we'll change it to blue or from blue to white.

215
00:14:38,020 --> 00:14:45,160
I mean and then the background of this button is going to be any type of green color that looks like

216
00:14:45,160 --> 00:14:45,970
a picture.

217
00:14:45,970 --> 00:14:49,060
Now the pictures are a little bit smaller which is fine.

218
00:14:49,170 --> 00:14:50,690
I think we'll just leave it as is.

219
00:14:50,740 --> 00:14:56,500
And let's set some constraints now on this so the banner ad we're going to say top left right and give

220
00:14:56,500 --> 00:14:59,020
it a fixed height like so.

221
00:14:59,290 --> 00:15:03,630
And then we're going to 49.

222
00:15:04,130 --> 00:15:09,080
Obviously this is like pointing up to here so we need to move it down a little bit and then redo the

223
00:15:09,080 --> 00:15:10,180
constraint.

224
00:15:10,380 --> 00:15:10,820
There we go.

225
00:15:10,830 --> 00:15:16,880
We're going to say zero from the top zero from the left zero from the rock bottom and zero from the

226
00:15:16,880 --> 00:15:17,430
right.

227
00:15:17,500 --> 00:15:20,660
Not all that should do it for us here.

228
00:15:20,660 --> 00:15:22,760
Perfect perfect perfect.

229
00:15:22,760 --> 00:15:24,410
So there's our view.

230
00:15:24,560 --> 00:15:25,110
OK.

231
00:15:25,190 --> 00:15:28,050
And savor this here.

232
00:15:28,100 --> 00:15:33,230
And I guess let's see what else we need to do probably just initialize the advertisement and see just

233
00:15:33,230 --> 00:15:34,710
make sure that it's working.

234
00:15:34,760 --> 00:15:35,800
So let's do that now.

235
00:15:35,990 --> 00:15:38,430
Let's go to our viewer controller here.

236
00:15:38,660 --> 00:15:40,730
And how do we get an advertisement to work.

237
00:15:40,730 --> 00:15:43,660
Well let's go look at the documentation here.

238
00:15:43,850 --> 00:15:50,620
OK so we've got an ad unit and we've got to set the view controller and then we have to load the ad.

239
00:15:50,660 --> 00:15:55,430
So banner view we don't have access to X. We didn't make an IB outlet so let's do that.

240
00:15:55,430 --> 00:15:58,820
So what we're going to do is we're just going to copy this code here.

241
00:16:00,060 --> 00:16:02,490
And then The View did load.

242
00:16:02,490 --> 00:16:06,470
What does pace that there's not going to work because we don't have the banner view out there yet.

243
00:16:06,480 --> 00:16:09,780
We can make it so I've clicked my storyboard.

244
00:16:09,900 --> 00:16:16,200
I'm opening the assistant editor and what we're going to do is this blue banner view we're going to

245
00:16:16,200 --> 00:16:22,420
control drag over here and I beat it and we're going to call it banner view.

246
00:16:23,280 --> 00:16:24,460
OK.

247
00:16:25,450 --> 00:16:28,530
Let's close the assistant editor go back to The View Controller.

248
00:16:31,510 --> 00:16:33,750
And is saying it can't find it's undeclared.

249
00:16:33,910 --> 00:16:40,500
We need to import the Google Mobile Ads like so and there we go.

250
00:16:40,630 --> 00:16:42,220
So that looks good.

251
00:16:42,220 --> 00:16:43,130
We've got that in there.

252
00:16:43,150 --> 00:16:49,330
And let's go ahead and look at the next step is simply to load a request.

253
00:16:49,330 --> 00:16:52,710
No big deal no big deal.

254
00:16:52,840 --> 00:16:54,400
And that looks great.

255
00:16:55,150 --> 00:17:00,730
So we've initialized it with a unit ID so when you're in your AdMob you need to create a unit for your

256
00:17:00,730 --> 00:17:01,140
ad.

257
00:17:01,210 --> 00:17:01,450
OK.

258
00:17:01,450 --> 00:17:07,090
When you're in your account and you use your I.D. here we're using just a test I.D. and the view controller

259
00:17:07,180 --> 00:17:09,430
that's this controller is the one that's managing it.

260
00:17:09,430 --> 00:17:14,170
And then we just load a request to get an ad someone to run this on the simulator and just see if we

261
00:17:14,170 --> 00:17:16,490
get an advertisement of some kind.

262
00:17:19,150 --> 00:17:20,070
And we get an error.

263
00:17:20,070 --> 00:17:21,310
Let's see what's going on.

264
00:17:22,440 --> 00:17:27,350
Oh there's one more thing that we need to do that I forgot about.

265
00:17:27,460 --> 00:17:29,380
Go to your project settings.

266
00:17:29,380 --> 00:17:30,280
Daily dose.

267
00:17:30,280 --> 00:17:30,880
OK.

268
00:17:31,120 --> 00:17:34,900
And let's type in the word bit code and your build settings.

269
00:17:34,900 --> 00:17:38,510
We got to turn it off some frameworks are not compatible with the code.

270
00:17:38,520 --> 00:17:40,720
It's a command shift.

271
00:17:42,250 --> 00:17:50,100
And then let's run it again.

272
00:17:50,120 --> 00:17:53,730
So we're still getting the air Let's check one more thing do some debugging here.

273
00:17:53,750 --> 00:17:57,150
Let's go to our build phases you still need to that big coding we just did.

274
00:17:57,170 --> 00:18:03,310
Let's go to our built phases link library link biner with library our frameworks not here.

275
00:18:03,320 --> 00:18:09,140
So in your build phases the Google ads frameworks and I just drag it over command shift OK to clean

276
00:18:10,640 --> 00:18:12,250
and let's run it again.

277
00:18:13,510 --> 00:18:14,230
OK.

278
00:18:14,560 --> 00:18:15,440
And our app is running.

279
00:18:15,470 --> 00:18:22,290
And clearly we are displaying a 320 by 50 AD from AD mob as you can see right here.

280
00:18:22,610 --> 00:18:23,390
Pretty cool.

281
00:18:23,390 --> 00:18:27,970
So officially you've learnt how to implement Google at AdMob which is awesome.

282
00:18:27,980 --> 00:18:31,040
You can show ads in your app now and make money which is cool.

283
00:18:31,100 --> 00:18:32,940
This is really the first step.

284
00:18:33,020 --> 00:18:37,420
We've got more to do such as the purchase and then moving the ad and then making sure that saves and

285
00:18:37,430 --> 00:18:38,810
the defaults etc etc..

286
00:18:38,810 --> 00:18:43,090
So let's go ahead and call this video done make great progress here.

287
00:18:43,100 --> 00:18:44,820
Marc price it slopes dot.

288
00:18:45,080 --> 00:18:45,980
Moving on and forward.

