iphone - Admob ads are not Clickable in ios Phonegap -


here code...

cgrect viewbounds = cgrectmake([[uiscreen mainscreen] applicationframe].origin.x,  [[uiscreen mainscreen] applicationframe].origin.y,  [[uiscreen mainscreen] applicationframe].size.width,  [[uiscreen mainscreen] applicationframe].size.height-cgsizefromgadadsize(kgadadsizebanner).height);   self.view.frame = viewbounds;  cgpoint origin = cgpointmake(0.0,thewebview.frame.size.height);  bannerview_ = [[[gadbannerview alloc] initwithadsize:kgadadsizebanner origin:origin] autorelease];   bannerview_.adunitid = @"a151e39dc55f7f0";   bannerview_.rootviewcontroller = self;  [self.view addsubview:bannerview_];  [self.view bringsubviewtofront:bannerview_];   gadrequest *request = [gadrequest request];  request.testdevices = [nsarray arraywithobjects:                        gad_simulator_id,                               // simulator                        @"heresthestringofmyphone",    // test iphone 3gs 4.3.1                        nil];  [bannerview_ loadrequest:request]; 

self.view.frame = viewbounds;

cgpoint origin = cgpointmake(0.0,thewebview.frame.size.height);

instead of above 2 lines replace following code, worked magic.

[super webview].frame=viewbounds;

cgpoint origin = cgpointmake(0.0,[super webview].frame.size.height);


Comments

Popular posts from this blog

How to mention the localhost in android -

php - Calling a template part from a post -

c# - String.format() DateTime With Arabic culture -