Map admobRequiredParams = new HashMap();
Map admobControlParams = new HashMap();
Map admobOptionalParams = new HashMap();
admobRequiredParams.put("ANALYTICS_ID", "a14b869452f1834"); // Required to collect Analytics data. To find your Analytics ID, log in to your Analytics account and click on the "Edit" link next to the name of your site.
admobRequiredParams.put("COOKIE_DOMAIN", null); // If your mobile site uses multiple subdomains, replace "null" with your root domain (e.g. "example.com") to make the AdMob cookie visible across subdomains.
admobControlParams.put("ANALYTICS_REQUEST", Boolean.TRUE); // To enable the collection of analytics data, set to Boolean.TRUE.
admobControlParams.put("TEST_MODE", Boolean.FALSE); // While testing, set to Boolean.TRUE. When you are ready to make live requests, set to Boolean.FALSE.
// Additional optional parameters are available at: http://developer.admob.com/wiki/AdCodeDocumentation
// admobOptionalParams.put("title", "Enter Page Title Here"); // Analytics allows you to track site usage based on custom page titles. Enter custom title in this parameter.
// admobOptionalParams.put("event", "Enter Event Name here"); // To learn more about events, log in to your Analytics account and visit this page: http://analytics.admob.com/reports/events/add
// Send request to AdMob. To make additional ad requests per page, copy and paste this function call elsewhere on your page.
out.print(admobRequest(request, response, pageContext, admobRequiredParams, admobControlParams, admobOptionalParams));
%>
<%!
/////////////////////////////////
// Do not edit below this line //
/////////////////////////////////
// This section defines AdMob functions and should be used AS IS.
// We recommend placing the following code in a separate file that is imported where needed.
private String admobGetCookieValue(HttpServletRequest request, HttpServletResponse response, PageContext pageContext, String cookieDomain) {
try {
Cookie cookies[] = request.getCookies();
if (cookies != null) {
for (int i = 0; i < cookies.length; i++) {
if (cookies[i].getName().equals("admobuu")) return cookies[i].getValue();
}
}
// Set a cookie if one has not already been set
if (pageContext.getAttribute("admobCookie") == null) {
String value = admobMd5(admobMd5(Math.random() + request.getRemoteAddr() + request.getHeader("User-Agent") + System.currentTimeMillis()));
Cookie c = new Cookie("admobuu", value);
c.setMaxAge(60*60*24*365*20);
c.setPath("/");
if (cookieDomain != null) {
if (cookieDomain.charAt(0) != '.') cookieDomain = "." + cookieDomain;
c.setDomain(cookieDomain);
}
response.addCookie(c);
pageContext.setAttribute("admobCookie", value);
}
return (String)pageContext.getAttribute("admobCookie");
}
catch (Exception e) {
return "";
}
}
World Gaming Executives Games, Gaming and Mobile Jobs
Art Director – 360 / PS3 (Job #4230-MH1602)Location: USA – East Coast – Affordable Cost of Living!
Our client is an international developer and publisher of premium game products. This company…