Subversion Repositories AndroidProjects

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
97 chris 1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2
<!--NewPage-->
3
<HTML>
4
<HEAD>
5
<!-- Generated by javadoc (build 1.6.0_24) on Fri Jul 15 17:00:53 PDT 2011 -->
6
<TITLE>
7
Ad (Google AdMob Ads SDK)
8
</TITLE>
9
 
10
<META NAME="date" CONTENT="2011-07-15">
11
 
12
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
13
 
14
<SCRIPT type="text/javascript">
15
function windowTitle()
16
{
17
    if (location.href.indexOf('is-external=true') == -1) {
18
        parent.document.title="Ad (Google AdMob Ads SDK)";
19
    }
20
}
21
</SCRIPT>
22
<NOSCRIPT>
23
</NOSCRIPT>
24
 
25
</HEAD>
26
 
27
<BODY BGCOLOR="white" onload="windowTitle();">
28
<HR>
29
 
30
 
31
<!-- ========= START OF TOP NAVBAR ======= -->
32
<A NAME="navbar_top"><!-- --></A>
33
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
34
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
35
<TR>
36
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
37
<A NAME="navbar_top_firstrow"><!-- --></A>
38
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
39
  <TR ALIGN="center" VALIGN="top">
40
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../com/google/ads/package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
41
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
42
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
43
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
44
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
45
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
46
  </TR>
47
</TABLE>
48
</TD>
49
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
50
</EM>
51
</TD>
52
</TR>
53
 
54
<TR>
55
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
56
&nbsp;PREV CLASS&nbsp;
57
&nbsp;<A HREF="../../../com/google/ads/AdListener.html" title="interface in com.google.ads"><B>NEXT CLASS</B></A></FONT></TD>
58
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
59
  <A HREF="../../../index.html?com/google/ads/Ad.html" target="_top"><B>FRAMES</B></A>  &nbsp;
60
&nbsp;<A HREF="Ad.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
61
&nbsp;<SCRIPT type="text/javascript">
62
  <!--
63
  if(window==top) {
64
    document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
65
  }
66
  //-->
67
</SCRIPT>
68
<NOSCRIPT>
69
  <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
70
</NOSCRIPT>
71
 
72
 
73
</FONT></TD>
74
</TR>
75
<TR>
76
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
77
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
78
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
79
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
80
</TR>
81
</TABLE>
82
<A NAME="skip-navbar_top"></A>
83
<!-- ========= END OF TOP NAVBAR ========= -->
84
 
85
<HR>
86
<!-- ======== START OF CLASS DATA ======== -->
87
<H2>
88
<FONT SIZE="-1">
89
com.google.ads</FONT>
90
<BR>
91
Interface Ad</H2>
92
<DL>
93
<DT><B>All Known Implementing Classes:</B> <DD><A HREF="../../../com/google/ads/AdView.html" title="class in com.google.ads">AdView</A>, <A HREF="../../../com/google/ads/InterstitialAd.html" title="class in com.google.ads">InterstitialAd</A></DD>
94
</DL>
95
<HR>
96
<DL>
97
<DT><PRE>public interface <B>Ad</B></DL>
98
</PRE>
99
 
100
<P>
101
An interface for all types of ads.
102
<P>
103
 
104
<P>
105
<HR>
106
 
107
<P>
108
 
109
<!-- ========== METHOD SUMMARY =========== -->
110
 
111
<A NAME="method_summary"><!-- --></A>
112
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
113
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
114
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
115
<B>Method Summary</B></FONT></TH>
116
</TR>
117
<TR BGCOLOR="white" CLASS="TableRowColor">
118
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
119
<CODE>&nbsp;boolean</CODE></FONT></TD>
120
<TD><CODE><B><A HREF="../../../com/google/ads/Ad.html#isReady()">isReady</A></B>()</CODE>
121
 
122
<BR>
123
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns <code>true</code> if the ad is successfully loaded and is ready to be
124
 shown.</TD>
125
</TR>
126
<TR BGCOLOR="white" CLASS="TableRowColor">
127
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
128
<CODE>&nbsp;void</CODE></FONT></TD>
129
<TD><CODE><B><A HREF="../../../com/google/ads/Ad.html#loadAd(com.google.ads.AdRequest)">loadAd</A></B>(<A HREF="../../../com/google/ads/AdRequest.html" title="class in com.google.ads">AdRequest</A>&nbsp;adRequest)</CODE>
130
 
131
<BR>
132
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Download an ad using the supplied <A HREF="../../../com/google/ads/AdRequest.html" title="class in com.google.ads"><CODE>AdRequest</CODE></A>.</TD>
133
</TR>
134
<TR BGCOLOR="white" CLASS="TableRowColor">
135
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
136
<CODE>&nbsp;void</CODE></FONT></TD>
137
<TD><CODE><B><A HREF="../../../com/google/ads/Ad.html#setAdListener(com.google.ads.AdListener)">setAdListener</A></B>(<A HREF="../../../com/google/ads/AdListener.html" title="interface in com.google.ads">AdListener</A>&nbsp;adListener)</CODE>
138
 
139
<BR>
140
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set an <A HREF="../../../com/google/ads/AdListener.html" title="interface in com.google.ads"><CODE>AdListener</CODE></A> for this <A HREF="../../../com/google/ads/Ad.html" title="interface in com.google.ads"><CODE>Ad</CODE></A>.</TD>
141
</TR>
142
<TR BGCOLOR="white" CLASS="TableRowColor">
143
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
144
<CODE>&nbsp;void</CODE></FONT></TD>
145
<TD><CODE><B><A HREF="../../../com/google/ads/Ad.html#stopLoading()">stopLoading</A></B>()</CODE>
146
 
147
<BR>
148
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Stops loading the ad.</TD>
149
</TR>
150
</TABLE>
151
&nbsp;
152
<P>
153
 
154
<!-- ============ METHOD DETAIL ========== -->
155
 
156
<A NAME="method_detail"><!-- --></A>
157
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
158
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
159
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
160
<B>Method Detail</B></FONT></TH>
161
</TR>
162
</TABLE>
163
 
164
<A NAME="isReady()"><!-- --></A><H3>
165
isReady</H3>
166
<PRE>
167
boolean <B>isReady</B>()</PRE>
168
<DL>
169
<DD>Returns <code>true</code> if the ad is successfully loaded and is ready to be
170
 shown.
171
<P>
172
<DD><DL>
173
 
174
<DT><B>Returns:</B><DD><code>true</code> if the ad is successfully loaded and is ready to be
175
 shown.</DL>
176
</DD>
177
</DL>
178
<HR>
179
 
180
<A NAME="loadAd(com.google.ads.AdRequest)"><!-- --></A><H3>
181
loadAd</H3>
182
<PRE>
183
void <B>loadAd</B>(<A HREF="../../../com/google/ads/AdRequest.html" title="class in com.google.ads">AdRequest</A>&nbsp;adRequest)</PRE>
184
<DL>
185
<DD>Download an ad using the supplied <A HREF="../../../com/google/ads/AdRequest.html" title="class in com.google.ads"><CODE>AdRequest</CODE></A>.
186
<P>
187
<DD><DL>
188
<DT><B>Parameters:</B><DD><CODE>adRequest</CODE> - the <A HREF="../../../com/google/ads/AdRequest.html" title="class in com.google.ads"><CODE>AdRequest</CODE></A> used to fetch the ad.</DL>
189
</DD>
190
</DL>
191
<HR>
192
 
193
<A NAME="setAdListener(com.google.ads.AdListener)"><!-- --></A><H3>
194
setAdListener</H3>
195
<PRE>
196
void <B>setAdListener</B>(<A HREF="../../../com/google/ads/AdListener.html" title="interface in com.google.ads">AdListener</A>&nbsp;adListener)</PRE>
197
<DL>
198
<DD>Set an <A HREF="../../../com/google/ads/AdListener.html" title="interface in com.google.ads"><CODE>AdListener</CODE></A> for this <A HREF="../../../com/google/ads/Ad.html" title="interface in com.google.ads"><CODE>Ad</CODE></A>.
199
<P>
200
<DD><DL>
201
<DT><B>Parameters:</B><DD><CODE>adListener</CODE> - the <A HREF="../../../com/google/ads/AdListener.html" title="interface in com.google.ads"><CODE>AdListener</CODE></A>.</DL>
202
</DD>
203
</DL>
204
<HR>
205
 
206
<A NAME="stopLoading()"><!-- --></A><H3>
207
stopLoading</H3>
208
<PRE>
209
void <B>stopLoading</B>()</PRE>
210
<DL>
211
<DD>Stops loading the ad.
212
<P>
213
<DD><DL>
214
</DL>
215
</DD>
216
</DL>
217
<!-- ========= END OF CLASS DATA ========= -->
218
<HR>
219
 
220
 
221
<!-- ======= START OF BOTTOM NAVBAR ====== -->
222
<A NAME="navbar_bottom"><!-- --></A>
223
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
224
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
225
<TR>
226
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
227
<A NAME="navbar_bottom_firstrow"><!-- --></A>
228
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
229
  <TR ALIGN="center" VALIGN="top">
230
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../com/google/ads/package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
231
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
232
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
233
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
234
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
235
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
236
  </TR>
237
</TABLE>
238
</TD>
239
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
240
</EM>
241
</TD>
242
</TR>
243
 
244
<TR>
245
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
246
&nbsp;PREV CLASS&nbsp;
247
&nbsp;<A HREF="../../../com/google/ads/AdListener.html" title="interface in com.google.ads"><B>NEXT CLASS</B></A></FONT></TD>
248
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
249
  <A HREF="../../../index.html?com/google/ads/Ad.html" target="_top"><B>FRAMES</B></A>  &nbsp;
250
&nbsp;<A HREF="Ad.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
251
&nbsp;<SCRIPT type="text/javascript">
252
  <!--
253
  if(window==top) {
254
    document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
255
  }
256
  //-->
257
</SCRIPT>
258
<NOSCRIPT>
259
  <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
260
</NOSCRIPT>
261
 
262
 
263
</FONT></TD>
264
</TR>
265
<TR>
266
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
267
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
268
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
269
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
270
</TR>
271
</TABLE>
272
<A NAME="skip-navbar_bottom"></A>
273
<!-- ======== END OF BOTTOM NAVBAR ======= -->
274
 
275
<HR>
276
 
277
</BODY>
278
</HTML>