A kind of advertisement putting control method and device
Technical field
The present invention relates to Internet advertising field, more particularly to a kind of advertisement putting control method and device.
Background technology
It is a kind of advertisement that zones of different is provided according to different regions crowd that the area orientation of advertisement is thrown in, and improves advertisement and throws
The advertisement putting technology of spermiation parasexuality.It is embodied as obtaining the attribute information of user's city-level regional information and video, according to acquisition
The matching degree of the information for arriving deciding whether to play advertisement, relatively spend height and then play advertisement, and matching degree is relatively low then not by matching journey
Play advertisement or play default advertisement.Because the technology only gets city's rank for regional information, due to incity each
County, town difference may be larger, and different counties, the cultural difference in town, life style may be also near identical, for example:It is autonomous in the Hui ethnic group
Township plays the pig farm in other small towns of this city and pork processing relevant advertisements are then outdated, while also result in the wasting of resources.
The content of the invention
Present invention is primarily targeted at provide a kind of advertisement putting control method and device, to solve prior art in base
In the relatively low problem of the advertisement putting mode degree of accuracy of region orientation.
A kind of advertisement putting control method, including:
Advertisement putting request is received, in the advertisement putting request Protocol IP address interconnected between network is carried;
The geographical location information corresponding with the IP address that lookup pre-sets, the geographical location information includes institute
State the minimum administrative region unit included in IP address;
Obtain the corresponding advertisement putting data of the geographical location information;
Determine whether that the advertisement of the advertisement putting request is thrown according to the advertisement putting data.
Preferably, methods described also includes:
Before advertisement putting request is received, the IP address information of each ISP ISP is periodically obtained;
IP address information is parsed, the corresponding geographical position of IP address is obtained, the geographical position includes the IP
The minimum administrative region unit included in address;
Set up the corresponding relation of IP address and the geographical location information;
It is described to search the geographical location information corresponding with the IP address for pre-setting, including:
Geographical location information corresponding with the IP address is obtained according to the corresponding relation.
Preferably, methods described also includes:
After corresponding relation of the IP address with the geographical location information is set up, by the IP address and the correspondence
Relation is stored in non-relational database NOSQL, and the hot spot data in the IP address and the corresponding relation is stored
Into the local cache of dispenser.
Preferably, methods described also includes:
By the time being not used by preset time period IP address information at most from the local of the advertisement putting machine
Caching is deleted.
Preferably, it is described to search the geographical location information corresponding with the IP address for pre-setting, including:
First geographical location information corresponding with the IP address is searched in the local caching of advertisement putting machine, if do not looked into
Find, then geographical location information corresponding with the IP address is searched in NOSQL.
A kind of advertisement putting control device, including:
Receiver module, for receiving advertisement putting request, carries what is interconnected between network in the advertisement putting request
Protocol IP address;
Searching modul, for searching the geographical location information corresponding with the IP address for pre-setting, the geographical position
Confidence breath includes the minimum administrative region unit included in the IP address;
First acquisition module, for obtaining the corresponding advertisement putting data of the geographical location information;
Determining module, for determining whether that the advertisement of the advertisement putting request is entered according to the advertisement putting data
Row is thrown in.
Preferably, described device also includes:
Second acquisition module, for before advertisement putting request is received, periodically obtaining each ISP ISP
IP address information;
Parsing module, for parsing to IP address information, obtains the corresponding geographical position of IP address, the geographical position
Put including the minimum administrative region unit included in the IP address;
Module is set up, for setting up the corresponding relation of IP address and the geographical location information;
The searching modul specifically for:Geographical position letter corresponding with the IP address is obtained according to the corresponding relation
Breath.
Preferably, described device also includes:
Memory module, for after corresponding relation of the IP address with the geographical location information is set up, by IP ground
Location and the corresponding relation are stored in non-relational database NOSQL, by the IP address and the corresponding relation
Hot spot data store into the local cache of dispenser.
Preferably, described device also includes:
Removing module, for by the time being not used by preset time period IP address information at most from the advertisement
The local cache of dispenser is deleted.
Preferably, the searching modul specifically for:
First geographical location information corresponding with the IP address is searched in the local caching of advertisement putting machine, if do not looked into
Find, then geographical location information corresponding with the IP address is searched in NOSQL.
The present invention has the beneficial effect that:
In the embodiment of the present invention, by the default geographical location information corresponding with advertisement putting person sends IP address
To determine whether to throw in Current ad, the input of advertisement can be caused more accurate, reduce advertisement putting inaccurate caused wide
Accuse the undesirable situation of effect so that each area can throw in the advertisement of oneself region, strengthen advertiser and advertisement putting is imitated
The degree of recognition of fruit.
Description of the drawings
Accompanying drawing described herein is used for providing a further understanding of the present invention, constitutes the part of the application, this
Bright schematic description and description does not constitute inappropriate limitation of the present invention for explaining the present invention.In the accompanying drawings:
Fig. 1 is the flow chart of the advertisement putting control method that the embodiment of the present invention 1 is provided;
Fig. 2 is to be used to realize the system architecture of advertisement putting control method in the embodiment of the present invention 2;
Fig. 3 is the structured flowchart of the advertisement putting control device that the embodiment of the present invention 3 is provided.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than the embodiment of whole.It is based on
Embodiment in the present invention, those of ordinary skill in the art obtained on the premise of creative work is not made it is all its
His embodiment, belongs to the scope of protection of the invention.
Embodiment 1
The present embodiment is proposed precisely to the regional advertisement below cities and counties' rank on the basis of traditional regional matching mechanisms
The implementation method of orientation, the main frame of searching needed for being navigated to by IP address in a network, and know the concrete of main frame
Geographical position, based on this, can carry out the region orientation of advertisement.
Fig. 1 is the flow chart of the advertisement putting control method that the present embodiment is provided, as shown in figure 1, the method is including as follows
Process:
In the present embodiment, below processing can be performed by advertisement putting machine.
Step 101:Receive the advertisement putting request from user;The IP address of user is carried in the advertisement putting request
Information;
Step 102:The geographical location information corresponding with IP address that lookup pre-sets;
The geographical location information includes the minimum administrative region unit included in IP address, specific minimum administrative region
Can include, village, township, town, county and area;
Step 103:Obtain the corresponding advertisement putting data of geographical location information;
In the present embodiment, specifically can be based on retargeting (visitor gives for change) technology, by geographical location information with it is wide
Accuse attribute to be matched, obtain corresponding advertisement putting data, it is also possible to be each geographical position correspondence for pre-setting
There are corresponding advertisement putting data.
Step 104:Determine whether that the advertisement that advertisement putting is asked is thrown according to advertisement putting data.
Wherein, involved in the present embodiment advertisement putting data specifically can include, each designated area/geographical position pair
The advertisement attributes information thrown in answered, it is preferred that can also be the corresponding different input priority levels of each designated area/geography
Advertisement attribute information, according to the attribute information of advertisement may determine that active user request throw in advertisement if appropriate for
Throw in appointed place.In the present embodiment, if the IP address that carries with user of attribute of advertisement thrown in of user's current request
Corresponding geographical location information is mismatched, i.e., do not allow the input of the advertisement, otherwise allows the input of the advertisement.
In the present embodiment, the processing method for pre-building IP address and geographical position corresponding relation is additionally provided, at this
Reason can include:
Before advertisement putting request is received, each ISP (Internet Service Provider, internet are periodically obtained
Service provider) IP address information;IP address information is parsed, the corresponding geographical position of IP address, geographical position is obtained
Put including the minimum administrative region unit included in IP address;The corresponding relation of IP address and geographical location information is set up, specifically
Ground, can according to telecommunications, movement, UNICOM etc. the IP address data messages that provide of ISP, be precisely directed to county and town's rank even each
Individual rural area.
Based on this, searching the geographical location information corresponding with IP address for pre-setting specifically can include:According to correspondence
Relation acquisition geographical location information corresponding with IP address.
In this enforcement, after corresponding relation of the IP address with geographical location information is set up, to IP address and its correlation
The storage of information specifically can include:
IP address and corresponding relation are stored in NOSQL (non-relational database), IP address and correspondence are closed
Hot spot data in system is stored into the local cache of dispenser.
In the whole process cycle of the method that the present embodiment is provided, can also at any time in advertisement putting machine local cache
Hot spot data be updated, specifically can include:
By the time being not used by preset time period IP address information at most from the local cache of advertisement putting machine
Delete.
Based on above-mentioned storage measure, geographical location information corresponding with the IP address tool for pre-setting is searched in the present embodiment
Body can include:Geographical location information corresponding with IP address is first searched in the local caching of advertisement putting machine, if do not looked into
Find, then geographical location information corresponding with IP address is searched in NOSQL.
In the present embodiment, the directional advertisement release method based on accurate region so that the input of advertisement is more accurate, subtracts
The undesirable situation of advertising results caused by few advertisement putting is inaccurate so that each area can throw in the wide of oneself region
Accuse, strengthen degree of recognition of the advertiser to advertisement delivery effect.
Embodiment 2
Another kind of advertisement putting control method is present embodiments provided, below the flow process to performing needed for the method carries out letter
Introduce, it should be noted that the method equally can be realized using specific implementation described in above-described embodiment 1
Each step in below scheme.
Fig. 2 is to be used to realize the system architecture of advertisement putting control method in the present embodiment, as illustrated, the system is main
It is related to consisting of part:
Application programming interface server, Java Virtual Machine caching, NOSQL databases, IP storehouses, each ISP and IP divide
Analysis processor, the present embodiment is handled as follows based on the system architecture:
The daily related IP address data message for obtaining difference ISP, in importing to IP storehouses, is carried out by IP analysis processors
Duplicate removal, marking filter are different, build IP ground Domain Index, and using the double mechanism of NOSQL and local cache the ability of IP parsings is lifted, by
Excessive in IP data messages, NOSQL storage total data information, JVM (Java Virtual Machine, Java Virtual Machine) delays
Storage hot spot data information.
For advertisement putting machine, when user's request dispenser throws in advertisement, the IP information of user can be carried, be thrown in afterwards
Machine IP first in local focus cache based on user searches the geographical location information of matching, if do not found, enters
NOSQL (non-relational database) is matched;After the match is successful, according to region label (geographical position corresponding with IP address
Information) the advertisement putting data of relevant matches are searched, if there is no the data, then select the wide of IP upper levels administration region
Accuse data or show default advertisement data, in above process, the IP not used at most in nearest a period of time can be believed
Breath is deleted, to update local hot spot data.
Embodiment 3
A kind of advertisement putting control device is present embodiments provided, Fig. 3 is the structured flowchart of the device, as shown in figure 3, should
Device 30 includes following part:
Receiver module 31, for receiving advertisement putting request, in advertisement putting request IP address is carried;
Searching modul 32, for searching the geographical location information corresponding with IP address for pre-setting, geographical location information
Include the minimum administrative region unit included in IP address;
The geographical location information includes the minimum administrative region unit included in IP address, specific minimum administrative region
Can include, village, township, town, county and area;
First acquisition module 33, for obtaining the corresponding advertisement putting data of geographical location information;
In the present embodiment, specifically can be based on retargeting (visitor gives for change) technology, by geographical location information with it is wide
Accuse attribute to be matched, obtain corresponding advertisement putting data, it is also possible to be each geographical position correspondence for pre-setting
There are corresponding advertisement putting data.
Determining module 34, for determining whether that the advertisement that advertisement putting is asked is thrown according to advertisement putting data
Put.
Wherein, involved in the present embodiment advertisement putting data specifically can include, each designated area/geographical position pair
The advertisement attributes information thrown in answered, it is preferred that can also be the corresponding different input priority levels of each designated area/geography
Advertisement attribute information, according to the attribute information of advertisement may determine that active user request throw in advertisement if appropriate for
Throw in appointed place.In the present embodiment, if the IP address that carries with user of attribute of advertisement thrown in of user's current request
Corresponding geographical location information is mismatched, i.e., do not allow the input of the advertisement, otherwise allows the input of the advertisement.
Optionally, said apparatus 30 can also include:Second acquisition module, for receive advertisement putting request before,
Periodically obtain the IP address information of each ISP ISP;Parsing module, for parsing to IP address information,
The corresponding geographical position of IP address is obtained, geographical position includes the minimum administrative region unit included in IP address;Set up module,
For setting up the corresponding relation of IP address and geographical location information;Searching modul specifically for:Obtained according to corresponding relation and IP
The corresponding geographical location information in address.
Optionally, said apparatus 30 can also include:Memory module, for setting up IP address with geographical location information
After corresponding relation, IP address and corresponding relation are stored in non-relational database NOSQL, by IP address and correspondence
Hot spot data in relation is stored into the local cache of dispenser, based on this, above-mentioned searching modul specifically for:First in advertisement
Geographical location information corresponding with IP address is searched in the local caching of dispenser, if do not found, is searched in NOSQL
Geographical location information corresponding with IP address.
Optionally, said apparatus 30 can also include:Removing module, for by be not used by preset time period when
Between IP address information at most delete from the local cache of advertisement putting machine.
Embodiments of the invention are the foregoing is only, the present invention is not limited to, for those skilled in the art
For member, the present invention can have various modifications and variations.All any modifications within the spirit and principles in the present invention, made,
Equivalent, improvement etc., should be included within scope of the presently claimed invention.