Method, device and the terminal of a kind of browser advertising displayTechnical field
The present invention relates to the technical field of display advertisement in terminal, be specifically related to a kind of browser advertisementMethod, device and the terminal shown.
Background technology
Along with Internet era development, the web advertisement has shown the form of expression become increasingly abundant,Throw in advertisement in browser and have become as the way extensively welcome by advertisement operators, at present, at browserMiddle input advertisement typically has a following manner:
Mode one: by webmaster's releasing advertisements in web site contents, the fixed position in webpagePresenting advertising content.
Mode two: monitor the data communication of network interface card, by Internet data bag being monitored, capturing,Analyze the implantation realized ad code.
But the defect that above two mode exists jointly is the target web being required for accessing userAdd the specific code showing advertisement in code, i.e. ad content must follow targeted web content onePlay display;And, mode one is suitable only for portal management side and realizes browser advertisement putting function, i.e.Advertiser relies only on portal management side and throws in browser advertisement, seriously limits browser advertisementThrow in the scope of application, although and mode two can throw in advertisement without portal management side, butNeed installation data packet capturing software in terminal, owing to packet capturing software is in real time at running background, take endThe end cpu substantial amounts of process time, causing slowing of terminal, power consumption increases;And some are eventuallyWhen end (such as i Phone etc. use the terminal of ios system) uses this packet capturing mode, owing to it isEmploy sandbox mechanism in system, packet capturing software will be caused to use, and then cause advertisement putting failure,These situations all limit the input of browser advertisement.
Therefore, the scope of application how expanding browser advertisement putting becomes assistant officer's technology to be solvedProblem.
Summary of the invention
Therefore, the technical problem to be solved in the present invention is how to expand the scope of application of browser advertisement,Thus method, device and the terminal of a kind of browser advertising display are provided.
In view of this, an aspect of of the present present invention provides a kind of method of browser advertising display, including:When browser is in opening, detect whether to receive ad data, wherein, described browserThe active view page include that the first view area and the second view area, described first view area are used for showingAd content, described second view area is used for showing targeted web content;Described advertisement number detectedAccording to time, show corresponding with described ad data in described first view area according to described ad dataAd content.
In technique scheme, it may be preferable that described when described ad data being detected, according to instituteState ad data in described first view area, show the ad content bag corresponding with described ad dataInclude: resolve described ad data, it is thus achieved that ad code;Described ad code loading described first is regardedIn the code information in figure district;According to described ad code show in described first view area with described extensivelyAccuse the ad content that code is corresponding.
In technique scheme, it may be preferable that described in detect whether that receiving ad data includes: toServer sends Advertising Request Information;Receive the return data from described server;Return described in judgementReturn in data and whether there is described ad data.
In technique scheme, it may be preferable that also include: when being not detected by described ad data, controlMake described second view area and cover described first view area.
In technique scheme, it may be preferable that according to the move of user, described first view areaSynchronize orthokinetic with described second view area.
Provide the device of a kind of browser advertising display according to a further aspect in the invention, including: inspectionSurvey unit, for when browser is in opening, detect whether to receive ad data, wherein,The active view page of described browser includes the first view area and the second view area, described first viewDistrict is used for presenting advertising content, and described second view area is used for showing targeted web content;Display unit,For when described ad data being detected, show in described first view area according to described ad dataShow the ad content corresponding with described ad data.
In technique scheme, it may be preferable that described display unit includes: resolve subelement, be used forResolve described ad data, it is thus achieved that ad code;It is loaded into subelement, for described ad code being carriedEnter in the code information of described first view area;Display subelement, for existing according to described ad codeThe ad content that in described first view area, display is corresponding with described ad code.
In technique scheme, it may be preferable that described detector unit includes: send subelement, be used forAdvertising Request Information is sent to server;Receive subelement, for receiving returning from described serverReturn data;Judgment sub-unit, is used for judging whether there is described ad data in described return data.
In technique scheme, it may be preferable that also include: capping unit, for being not detected byWhen stating ad data, control described second view area and cover described first view area.
In technique scheme, it may be preferable that also include;Control unit, for the shifting according to userDynamic instruction, controls described first view area and described second view area synchronizes orthokinetic.
Provide a kind of terminal in accordance with a further aspect of the present invention, including as arbitrary in technique schemeThe device of the browser advertising display described in Xiang.
The method of browser advertising display that the present invention provides, by by terminal browser work as forward sightDiagram page is divided into the first view area and the second view area, when browser function is opened, if be detected thatAd data, then show the ad content corresponding with this ad data in the first view area, and useThe targeted web content that family accesses shows, so in the second view area, it is achieved that the advertisement of browserContent shows independent of targeted web content, compared with prior art, it is not necessary to install any third partySoftware can realize browser advertisement and throw in independent of target web manager, expands browserThe scope of application of advertisement putting, reduces power consumption of terminal.
Accompanying drawing explanation
In order to be illustrated more clearly that the specific embodiment of the invention or technical scheme of the prior art, underThe accompanying drawing used required in detailed description of the invention or description of the prior art will be briefly described by face,It should be evident that the accompanying drawing in describing below is some embodiments of the present invention, general for this areaFrom the point of view of logical technical staff, on the premise of not paying creative work, it is also possible to obtain according to these accompanying drawingsObtain other accompanying drawing.
Fig. 1 is a flow chart of the method for the browser advertising display of the embodiment of the present invention;
Fig. 2 is a block diagram of the device of the browser advertising display of the embodiment of the present invention;
Fig. 3 is a block diagram of the terminal of the embodiment of the present invention;
Fig. 4 is a theory diagram of the method for the browser advertising display of the embodiment of the present invention;
Fig. 5 is a code information schematic diagram of the method for the browser advertising display of the embodiment of the present invention;
Fig. 6 is a schematic diagram of the active view page of the terminal browser of the embodiment of the present invention.
Detailed description of the invention
Below in conjunction with accompanying drawing, technical scheme is clearly and completely described, it is clear thatDescribed embodiment is a part of embodiment of the present invention rather than whole embodiments.Based on thisEmbodiment in bright, those of ordinary skill in the art are obtained under not making creative work premiseEvery other embodiment, broadly fall into the scope of protection of the invention.
In describing the invention, it should be noted that term " on ", D score, " interior ", " outward " etc. refer toThe orientation shown or position relationship, for based on orientation shown in the drawings or position relationship, are for only for ease of and retouchState the present invention and simplify description rather than instruction or imply that the device of indication or element must have specificOrientation, with specific azimuth configuration and operation, be therefore not considered as limiting the invention.ThisOutward, term " first ", " second ", be only used for describing purpose, and it is not intended that instruction or hint relativelyImportance.
In describing the invention, it should be noted that unless otherwise clearly defined and limited, artLanguage " is installed " and should be interpreted broadly, and for the ordinary skill in the art, can manage with concrete conditionSolve above-mentioned term concrete meaning in the present invention.
As long as additionally, technical characteristic involved in invention described below difference embodiment thatThe conflict of not constituting between this just can be combined with each other.
Embodiment 1
The present embodiment provides a kind of method of browser advertising display, can be applicable to the movement that user is heldIn terminal (such as mobile phone, panel computer etc.), as it is shown in figure 1, comprise the steps:
S1: when browser is in opening, detects whether to receive ad data, wherein, and instituteThe active view page stating browser includes the first view area and the second view area, described first view areaFor presenting advertising content, described second view area is used for showing targeted web content.Will be in terminalThe active view page of browser is divided into the first view area and the second view area, and the first view area is used for showingShowing ad content, its particular number can preset according to actual needs, and the second view area is used for showingShow that user needs the targeted web content accessed, when browser function is opened, detect whether in real time to connectHave received ad data, if be detected that ad data then enters step S2, otherwise enter step S3.
S2: show corresponding with described ad data in described first view area according to described ad dataAd content.I.e. if be detected that ad data, then by the ad content corresponding with this ad dataShow in the first view area, and targeted web content shows in the second view area.
The method of above-mentioned browser advertising display, it is achieved that the ad content of browser is independent of target networkPage content and show, compared with prior art, it is not necessary to any third party software is installed and can realize browsingDevice advertisement is thrown in independent of target web manager, expands the applicable model of browser advertisement puttingEnclose, reduce power consumption of terminal.
In technique scheme, it may be preferable that in step S2 particularly as follows:
S21: resolve described ad data, it is thus achieved that ad code.The ad data that will detect is carried outResolve and obtain the ad code corresponding with this ad data.
S22: described ad code is loaded in the code information of described first view area.Will step S21The ad code of middle acquisition is loaded in the code information of the first view area.
S23: show corresponding with described ad code in described first view area according to described ad codeAd content.Containing all information of ad content to be shown in ad code herein, this is wideAfter accusing the code information that code is written into the first view area, can show wide with this in the first view areaAccuse the ad content that code is corresponding.
In technique scheme, it may be preferable that in step S1 particularly as follows:
S11: send Advertising Request Information to server.In this technical scheme, ad data is stored inFor throwing in the server of advertisement, terminal, when opening browser function, sends wide to this serverAccuse solicited message.
S12: receive the return data from described server.Server is receiving terminal transmission hereinAd-request time, i.e. can to terminal return data.S13: judge whether exist in described return dataDescribed ad data.Whether the return data that terminal is received by judgement exist ad data, comesComplete the detection to ad data, in the case of server normally works, these return data compriseAd data, if running into this server fail or its situation about normally working of other influences,The most there is not ad data in then received return data, wherein, excellent between terminal and serverFirst carry out information by http protocol mutual
In technique scheme, it may be preferable that also include:
Step S3: when being not detected by described ad data, controls described second view area and covers describedFirst view area.If i.e. being judged by detection the return data received do not exist for displayAd data, then hide the first view area being used for presenting advertising content, control the second view simultaneouslyThe position of the first view area is covered by district, so, even if not having ad content at the first view areaDisplay, does not haves screen yet and is left white and the situation of wasting browser active view area resource.
In technique scheme, it may be preferable that according to the move of user, described first view areaSynchronize orthokinetic with described second view area.Although the i.e. first view area and the second view area subregion showShow, do not interfere with each other display content, but when view moves, both are an entirety, if i.e. usedFamily sends the instruction of roll screen, such as user and moves the second view area, then the first view area also canSynchronize orthokinetic therewith, it is to avoid ad content rests on the fixed position of screen always.Wherein,The particular location relation of one view area and the second view area can pre-set according to actual needs.
Embodiment 2
The present embodiment has supplied the device 2 of a kind of browser advertising display, including: detector unit 21, useIn time being in opening at browser, detect whether to receive ad data, wherein, described in browseThe active view page of device includes that the first view area and the second view area, described first view area are used for showingShow that ad content, described second view area are used for showing targeted web content;Display unit 22, is used forWhen described ad data being detected, according to described ad data show in described first view area withThe ad content that described ad data is corresponding.
In technique scheme, it may be preferable that described display unit 22 includes: resolve subelement 221,For resolving described ad data, it is thus achieved that ad code;It is loaded into subelement 222, for by described advertisementCode is loaded in the code information of described first view area;Display subelement 223, for according to described extensivelyAccuse code in described first view area, show the ad content corresponding with described ad code.
In technique scheme, it may be preferable that described detector unit 21 includes: send subelement 211,For sending Advertising Request Information to server;Receive subelement 212, for receiving from described serviceThe return data of device;Judgment sub-unit 213, be used for judging whether described return data exist described extensivelyAccuse data.
In technique scheme, it may be preferable that also include: capping unit 23, for being not detected byDuring described ad data, control described second view area and cover described first view area.
In technique scheme, it may be preferable that also include: control unit 24, for according to user'sMove, controls described first view area and described second view area synchronizes orthokinetic.
Said apparatus, by being divided into the first view area and by the active view page of browser in terminalTwo view areas, when browser function is opened, if be detected that ad data, then will be with this advertisement numberShow in the first view area according to corresponding ad content, and the targeted web content of user's access is theDisplay in two view areas, so, it is achieved that the ad content of browser is independent of targeted web contentDisplay, compared with prior art, it is not necessary to installing any third party software, can to realize browser advertisement onlyStand on target web manager to throw in, expand the scope of application of browser advertisement putting, reducePower consumption of terminal.
Embodiment 3
The present embodiment provides a kind of terminal, as it is shown on figure 3, include browser advertisement as shown in Figure 2The device 2 shown, the further specific descriptions of described terminal are identical with previous embodiment, by inciting somebody to actionIn terminal, the active view page of browser is divided into the first view area and the second view area, in browser meritWhen can open, if be detected that ad data, then by the ad content corresponding with this ad dataDisplay in one view area, and the targeted web content that user accesses shows in the second view area, so,The ad content achieving browser shows independent of targeted web content, compared with prior art,Browser advertisement can be realized carry out independent of target web manager without installing any third party softwareThrow in, expand the scope of application of browser advertisement putting, reduce power consumption of terminal.
Embodiment 4
The present embodiment provides a kind of method of browser advertising display implementation method in actual scene,The technical scheme of the present embodiment is described in detail below in conjunction with Fig. 4 to Fig. 6.
In the present embodiment, by the side of code superposition in the browser of access terminals (i.e. terminal)Formula, it is achieved the issuing function of advertisement, specific implementation is as follows:
The first step: the active view page of browser is divided into the first view area and the second view area, itsIn, the active view page of described browser includes the first view area and the second view area, described firstView area is used for presenting advertising content, and described second view area is used for showing targeted web content.SpecificallyGround, the present embodiment is at the browser page (i.e. the active view page of terminal browser) researched and developed at leastIt is divided into three regions, as shown in Figure 4:
Top: advertising area (the i.e. first view area);
Middle: display browses web page area (the i.e. second view area), in showing normal webpage normallyHold (i.e. targeted web content);
Bottom: advertising area (the i.e. first view area);The present embodiment is i.e. provided with two the first viewsDistrict is used for presenting advertising content.
Preferential, the present embodiment use ScrollView control is used as form control and works as browserThe front view page divides, and marks off the first view area and the second view area, and concrete operations are as follows:
ScrollView control is a kind of hierarchical structure layout container being available for and rolling, and utilizes ScrollViewControl marks off advertisement controls region (code information of the i.e. first view area) and object content page controls region(code information of the second view area), as it is shown in figure 5, when browser is particularly shown, by by wideAccuse code and be loaded into advertisement controls region, i.e. may be implemented in the first view area and show corresponding with this ad codeAd content, and the code of target web is loaded into object content page controls region, can be secondView area display targeted web content, ad content and targeted web content are at the same view of browserThe page is shown, and is combined into an entirety, then ScrollView is arranged to vertical (vertically),The code sliding up and down attribute as shown in Figure 5, can realize ad content and targeted web content is sameStep moves up and down.
Second step: the acquisition of ad data, specifically includes following steps:
Step 1: first user sends acquisition extensively by cell-phone customer terminal (terminal) interface (UI.XML)Accusing the request (i.e. Advertising Request Information) of data, i.e. when browser is in opening, terminal is to clothesBusiness device sends Advertising Request Information.In the present embodiment, ad data is stored in for throwing in advertisementOn server (preferential, the present embodiment uses webservice server disposition).Specifically, logicalCross expression layer (UI.JAVA) and process forms, the required parameter of ad data is delivered to Business Logic(BLL.JAVA), then by Business Logic the request of this ad data is delivered to data access layer(DAL.JAVA), data access layer calls storing process, and the request of this ad data is changed intoXML soap message form, then, data access layer passes through http protocol by this ad dataThe XMLSOAP message of request is sent to ad distribution server (i.e. server).
Step 2: after ad distribution server receives soap message, by its dissection process, then placeReason result data (i.e. returning data) instead to client, i.e. terminal to receive with soap message formFrom the return data of server, in the case of server normally works, these return data comprise wideAccuse data.
Whether step 3: then, exist ad data in the return data that terminal is received by judgement,Completing the detection to ad data, specifically, data access layer is the soap message lattice gotThe return data parsing of formula processes, and builds entity object or set, and is returned to Business Logic;Business Logic carries out to these return data the most whether analysis judgment exists ad data, and will resolveResult is back to represent layer, if it is decided that there is ad data in these return data and then enters step 4, noThen enter step 5.
3rd step: the display of ad content.
Step 4: if there is ad data in these return data, represents that layer resolves Business Logic transmissionThe entity object of analysis result, this ad data is processed into the data shape that form control can useFormula, form control receives ad data, and resolves ad data, and the ad data that will detect entersRow resolves and obtains the ad code corresponding with this ad data, then this ad code is loaded into firstIn the code information of view area, after this ad code is written into the code information of the first view area,The ad content corresponding with this ad code is shown in the first view area.
Step 5: if running into the calling of failure situations such as (i.e.) server failures, if i.e. returning numberAd data is there is not, then it represents that layer hides advertisement position (the first view area), controls simultaneously according toThe position of the first view area is covered by the second view area, in order to client browser shows in time, so,Even if there is no ad content for showing at the first view area, not havinging screen yet and being left white and waste clearLook at the situation of device active view area resource.
By technique scheme, the concrete pattern of the final browser advertising display of the present embodiment (asShown in Fig. 6) be:
Page presentation=advertisement+target network (as a example by Baidu's homepage)+advertisement, it is achieved that browseThe ad content of device shows independent of targeted web content, compared with prior art, it is not necessary to installs and appointsWhat third party software can realize browser advertisement and throw in independent of target web manager, reducesPower consumption of terminal, and be not limited in Intranet (such as LAN) to carry out advertising display, thus expandThe big scope of application of browser advertisement.
Obviously, above-described embodiment is only for clearly demonstrating example, and not to embodiment partyThe restriction of formula.For those of ordinary skill in the field, the most also may be usedTo make other changes in different forms.Here without also all of embodiment being givenWith exhaustive.And the obvious change thus extended out or variation are still in the guarantor of the inventionProtect among scope.