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_13) on Tue Jul 28 18:25:38 PDT 2009 --> |
6 |
<TITLE> |
7 |
AdView.AdListener |
8 |
</TITLE> |
9 |
|
10 |
<META NAME="date" CONTENT="2009-07-28"> |
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="AdView.AdListener"; |
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/admob/android/ads/package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
41 |
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
42 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/AdView.AdListener.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> |
43 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
44 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
45 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
46 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
47 |
</TR> |
48 |
</TABLE> |
49 |
</TD> |
50 |
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
51 |
</EM> |
52 |
</TD> |
53 |
</TR> |
54 |
|
55 |
<TR> |
56 |
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
57 |
<A HREF="../../../../com/admob/android/ads/AdView.html" title="class in com.admob.android.ads"><B>PREV CLASS</B></A> |
58 |
NEXT CLASS</FONT></TD> |
59 |
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
60 |
<A HREF="../../../../index.html?com/admob/android/ads/AdView.AdListener.html" target="_top"><B>FRAMES</B></A> |
61 |
<A HREF="AdView.AdListener.html" target="_top"><B>NO FRAMES</B></A> |
62 |
<SCRIPT type="text/javascript"> |
63 |
<!-- |
64 |
if(window==top) { |
65 |
document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); |
66 |
} |
67 |
//--> |
68 |
</SCRIPT> |
69 |
<NOSCRIPT> |
70 |
<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> |
71 |
</NOSCRIPT> |
72 |
|
73 |
|
74 |
</FONT></TD> |
75 |
</TR> |
76 |
<TR> |
77 |
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
78 |
SUMMARY: NESTED | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD> |
79 |
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
80 |
DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD> |
81 |
</TR> |
82 |
</TABLE> |
83 |
<A NAME="skip-navbar_top"></A> |
84 |
<!-- ========= END OF TOP NAVBAR ========= --> |
85 |
|
86 |
<HR> |
87 |
<!-- ======== START OF CLASS DATA ======== --> |
88 |
<H2> |
89 |
<FONT SIZE="-1"> |
90 |
com.admob.android.ads</FONT> |
91 |
<BR> |
92 |
Interface AdView.AdListener</H2> |
93 |
<DL> |
94 |
<DT><B>Enclosing class:</B><DD><A HREF="../../../../com/admob/android/ads/AdView.html" title="class in com.admob.android.ads">AdView</A></DD> |
95 |
</DL> |
96 |
<HR> |
97 |
<DL> |
98 |
<DT><PRE>public static interface <B>AdView.AdListener</B></DL> |
99 |
</PRE> |
100 |
|
101 |
<P> |
102 |
Implement this interface to receive notifications of ad activity. Then call <code>setListener</code> |
103 |
to register for the events. |
104 |
<P> |
105 |
|
106 |
<P> |
107 |
<HR> |
108 |
|
109 |
<P> |
110 |
|
111 |
<!-- ========== METHOD SUMMARY =========== --> |
112 |
|
113 |
<A NAME="method_summary"><!-- --></A> |
114 |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
115 |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
116 |
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
117 |
<B>Method Summary</B></FONT></TH> |
118 |
</TR> |
119 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
120 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
121 |
<CODE> void</CODE></FONT></TD> |
122 |
<TD><CODE><B><A HREF="../../../../com/admob/android/ads/AdView.AdListener.html#onFailedToReceiveAd(com.admob.android.ads.AdView)">onFailedToReceiveAd</A></B>(<A HREF="../../../../com/admob/android/ads/AdView.html" title="class in com.admob.android.ads">AdView</A> adView)</CODE> |
123 |
|
124 |
<BR> |
125 |
Called when an ad request fails to get a new ad.</TD> |
126 |
</TR> |
127 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
128 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
129 |
<CODE> void</CODE></FONT></TD> |
130 |
<TD><CODE><B><A HREF="../../../../com/admob/android/ads/AdView.AdListener.html#onNewAd()">onNewAd</A></B>()</CODE> |
131 |
|
132 |
<BR> |
133 |
<B>Deprecated.</B> </TD> |
134 |
</TR> |
135 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
136 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
137 |
<CODE> void</CODE></FONT></TD> |
138 |
<TD><CODE><B><A HREF="../../../../com/admob/android/ads/AdView.AdListener.html#onReceiveAd(com.admob.android.ads.AdView)">onReceiveAd</A></B>(<A HREF="../../../../com/admob/android/ads/AdView.html" title="class in com.admob.android.ads">AdView</A> adView)</CODE> |
139 |
|
140 |
<BR> |
141 |
Called when a new ad has been received and is about to be displayed.</TD> |
142 |
</TR> |
143 |
</TABLE> |
144 |
|
145 |
<P> |
146 |
|
147 |
<!-- ============ METHOD DETAIL ========== --> |
148 |
|
149 |
<A NAME="method_detail"><!-- --></A> |
150 |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
151 |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
152 |
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
153 |
<B>Method Detail</B></FONT></TH> |
154 |
</TR> |
155 |
</TABLE> |
156 |
|
157 |
<A NAME="onNewAd()"><!-- --></A><H3> |
158 |
onNewAd</H3> |
159 |
<PRE> |
160 |
<FONT SIZE="-1">@Deprecated |
161 |
</FONT>void <B>onNewAd</B>()</PRE> |
162 |
<DL> |
163 |
<DD><B>Deprecated.</B> |
164 |
<P> |
165 |
<DD>Deprecated in favor of <code>onReceiveAd</code>. It is the same except the ad view making |
166 |
the request is passed in. When multiple ads are on the screen this differentiates which |
167 |
is about to be updated. |
168 |
<P> |
169 |
<DD><DL> |
170 |
</DL> |
171 |
</DD> |
172 |
</DL> |
173 |
<HR> |
174 |
|
175 |
<A NAME="onReceiveAd(com.admob.android.ads.AdView)"><!-- --></A><H3> |
176 |
onReceiveAd</H3> |
177 |
<PRE> |
178 |
void <B>onReceiveAd</B>(<A HREF="../../../../com/admob/android/ads/AdView.html" title="class in com.admob.android.ads">AdView</A> adView)</PRE> |
179 |
<DL> |
180 |
<DD>Called when a new ad has been received and is about to be displayed. |
181 |
<P> |
182 |
<DD><DL> |
183 |
<DT><B>Parameters:</B><DD><CODE>adView</CODE> - is the view that received and will show the new ad.</DL> |
184 |
</DD> |
185 |
</DL> |
186 |
<HR> |
187 |
|
188 |
<A NAME="onFailedToReceiveAd(com.admob.android.ads.AdView)"><!-- --></A><H3> |
189 |
onFailedToReceiveAd</H3> |
190 |
<PRE> |
191 |
void <B>onFailedToReceiveAd</B>(<A HREF="../../../../com/admob/android/ads/AdView.html" title="class in com.admob.android.ads">AdView</A> adView)</PRE> |
192 |
<DL> |
193 |
<DD>Called when an ad request fails to get a new ad. This can happen for a number of reasons. |
194 |
For instance if there is no Internet connection (i.e. out of cell range and not connected to |
195 |
wifi). Another common reason is no fill which means there are no ads to show at this moment. |
196 |
<P> |
197 |
<DD><DL> |
198 |
<DT><B>Parameters:</B><DD><CODE>adView</CODE> - is the view that did not receive the new ad.</DL> |
199 |
</DD> |
200 |
</DL> |
201 |
<!-- ========= END OF CLASS DATA ========= --> |
202 |
<HR> |
203 |
|
204 |
|
205 |
<!-- ======= START OF BOTTOM NAVBAR ====== --> |
206 |
<A NAME="navbar_bottom"><!-- --></A> |
207 |
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> |
208 |
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> |
209 |
<TR> |
210 |
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
211 |
<A NAME="navbar_bottom_firstrow"><!-- --></A> |
212 |
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> |
213 |
<TR ALIGN="center" VALIGN="top"> |
214 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../com/admob/android/ads/package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
215 |
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
216 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/AdView.AdListener.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> |
217 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
218 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
219 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
220 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
221 |
</TR> |
222 |
</TABLE> |
223 |
</TD> |
224 |
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
225 |
</EM> |
226 |
</TD> |
227 |
</TR> |
228 |
|
229 |
<TR> |
230 |
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
231 |
<A HREF="../../../../com/admob/android/ads/AdView.html" title="class in com.admob.android.ads"><B>PREV CLASS</B></A> |
232 |
NEXT CLASS</FONT></TD> |
233 |
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
234 |
<A HREF="../../../../index.html?com/admob/android/ads/AdView.AdListener.html" target="_top"><B>FRAMES</B></A> |
235 |
<A HREF="AdView.AdListener.html" target="_top"><B>NO FRAMES</B></A> |
236 |
<SCRIPT type="text/javascript"> |
237 |
<!-- |
238 |
if(window==top) { |
239 |
document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); |
240 |
} |
241 |
//--> |
242 |
</SCRIPT> |
243 |
<NOSCRIPT> |
244 |
<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> |
245 |
</NOSCRIPT> |
246 |
|
247 |
|
248 |
</FONT></TD> |
249 |
</TR> |
250 |
<TR> |
251 |
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
252 |
SUMMARY: NESTED | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD> |
253 |
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
254 |
DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD> |
255 |
</TR> |
256 |
</TABLE> |
257 |
<A NAME="skip-navbar_bottom"></A> |
258 |
<!-- ======== END OF BOTTOM NAVBAR ======= --> |
259 |
|
260 |
<HR> |
261 |
|
262 |
</BODY> |
263 |
</HTML> |