Advertisement putting control method and device
Technical Field
The invention relates to the field of internet advertisements, in particular to an advertisement putting control method and device.
Background
The regional targeted advertisement delivery is an advertisement delivery technology which provides advertisements in different regions according to different regional crowds and improves the advertisement delivery accuracy. The method is realized by acquiring the city region information of the user and the attribute information of the video, and determining whether to play the advertisement according to the matching degree of the acquired information, wherein if the matching degree is high, the advertisement is played, and if the matching degree is low, the advertisement is not played or the default advertisement is played. Because the technology only acquires the city level aiming at the regional information, as the difference of each county and town in the city is possibly large, the cultural difference and the life style of different counties and towns are possibly different, for example: it is not suitable to play pig farms and pork processing related advertisements of other villages and towns in the city in the autonomous countryside of the Hui nationality, and resource waste is caused at the same time.
Disclosure of Invention
The invention mainly aims to provide an advertisement putting control method and device, and aims to solve the problem that in the prior art, an advertisement putting mode based on regional orientation is low in accuracy.
An advertisement placement control method comprising:
receiving an advertisement putting request, wherein the advertisement putting request carries a protocol IP address interconnected between networks;
searching preset geographic position information corresponding to the IP address, wherein the geographic position information comprises a minimum administrative area unit contained in the IP address;
acquiring advertisement putting data corresponding to the geographic position information;
and determining whether to allow the advertisement of the advertisement putting request to be put according to the advertisement putting data.
Preferably, the method further comprises:
before receiving an advertisement putting request, regularly acquiring IP address information of each Internet service provider ISP;
analyzing IP address information to obtain a geographic position corresponding to an IP address, wherein the geographic position comprises a minimum administrative area unit contained in the IP address;
establishing a corresponding relation between the IP address and the geographical position information;
the searching for the preset geographic position information corresponding to the IP address comprises the following steps:
and acquiring the geographical position information corresponding to the IP address according to the corresponding relation.
Preferably, the method further comprises:
after the corresponding relation between the IP address and the geographic position information is established, the IP address and the corresponding relation are stored in a non-relational database NOSQL, and hot spot data in the IP address and the corresponding relation are stored in a local cache of a delivery machine.
Preferably, the method further comprises:
and deleting the IP address information which is not used for the longest time within a preset time period from a local cache of the advertisement delivery machine.
Preferably, the searching for the preset geographic location information corresponding to the IP address includes:
and searching the geographical position information corresponding to the IP address in a local cache of the advertisement delivery machine, and if the geographical position information is not searched, searching the geographical position information corresponding to the IP address in NOSQL.
An advertisement placement control device comprising:
the system comprises a receiving module, a sending module and a receiving module, wherein the receiving module is used for receiving an advertisement putting request which carries a protocol IP address interconnected among networks;
the searching module is used for searching preset geographic position information corresponding to the IP address, and the geographic position information comprises a minimum administrative area unit contained in the IP address;
the first acquisition module is used for acquiring advertisement putting data corresponding to the geographic position information;
and the determining module is used for determining whether the advertisement of the advertisement putting request is allowed to be put according to the advertisement putting data.
Preferably, the apparatus further comprises:
the second acquisition module is used for periodically acquiring the IP address information of each Internet service provider ISP before receiving the advertisement putting request;
the analysis module is used for analyzing the IP address information to obtain a geographic position corresponding to the IP address, wherein the geographic position comprises a minimum administrative area unit contained in the IP address;
the establishing module is used for establishing the corresponding relation between the IP address and the geographic position information;
the search module is specifically configured to: and acquiring the geographical position information corresponding to the IP address according to the corresponding relation.
Preferably, the apparatus further comprises:
and the storage module is used for storing the IP address and the corresponding relation in a non-relational database NOSQL after establishing the corresponding relation between the IP address and the geographic position information, and storing the IP address and the hot data in the corresponding relation in a local cache of the player.
Preferably, the apparatus further comprises:
and the deleting module is used for deleting the IP address information which is not used for the longest time in a preset time period from the local cache of the advertisement delivery machine.
Preferably, the search module is specifically configured to:
and searching the geographical position information corresponding to the IP address in a local cache of the advertisement delivery machine, and if the geographical position information is not searched, searching the geographical position information corresponding to the IP address in NOSQL.
The invention has the following beneficial effects:
in the embodiment of the invention, whether the current advertisement is launched is determined by the preset geographic position information corresponding to the IP address sent by the advertisement launcher, so that the advertisement launching is more accurate, the condition that the advertisement effect is not ideal due to inaccurate advertisement launching is reduced, the advertisements in the regions can be launched, and the recognition degree of the advertiser on the advertisement launching effect is enhanced.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a flowchart of an advertisement placement control method provided in embodiment 1 of the present invention;
fig. 2 is a system architecture for implementing an advertisement placement control method in embodiment 2 of the present invention;
fig. 3 is a block diagram of an advertisement placement control device according to embodiment 3 of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example 1
The embodiment provides a method for realizing the regional advertisement targeting accurately below the city and county level on the basis of a traditional region matching mechanism, and can position a host computer to be searched in a network through an IP address, acquire the specific geographic position of the host computer and perform the regional advertisement targeting based on the specific geographic position.
Fig. 1 is a flowchart of an advertisement placement control method provided in this embodiment, and as shown in fig. 1, the method includes the following processes:
in the present embodiment, the following processing may be performed by the advertisement delivery machine.
Step 101: receiving an advertisement putting request from a user; the advertisement putting request carries IP address information of the user;
step 102: searching preset geographical position information corresponding to the IP address;
the geographic location information includes a minimum administrative region unit included in the IP address, and the specific minimum administrative region may include a village, a county, a town, a county, and a district;
step 103: acquiring advertisement putting data corresponding to the geographical position information;
in this embodiment, the geographic location information may be specifically matched with the advertisement attribute based on a targeting technology to obtain corresponding advertisement delivery data, and meanwhile, the preset geographic locations may correspond to the corresponding advertisement delivery data.
Step 104: and determining whether to allow the advertisement of the advertisement putting request to be put according to the advertisement putting data.
The advertisement delivery data related in this embodiment may specifically include attribute information of a deliverable advertisement corresponding to each specified region/geographic location, and preferably, attribute information of an advertisement of different delivery priority levels corresponding to each specified region/geographic location, and according to the attribute information of the advertisement, it may be determined whether the advertisement requested to be delivered by the current user is suitable for delivery in the specified location. In this embodiment, if the attribute of the advertisement requested to be delivered by the user currently does not match the geographic location information corresponding to the IP address carried by the user, the delivery of the advertisement is not allowed, otherwise, the delivery of the advertisement is allowed.
In this embodiment, a processing method for pre-establishing a corresponding relationship between an IP address and a geographic location is further provided, and the processing may include:
before receiving an advertisement delivery request, regularly acquiring IP address information of each ISP (Internet Service Provider); analyzing the IP address information to obtain a geographic position corresponding to the IP address, wherein the geographic position comprises a minimum administrative area unit contained in the IP address; and establishing a corresponding relation between the IP address and the geographic position information, and specifically, accurately directing to county and town levels or even all villages according to IP address data information provided by ISPs (internet service providers) such as telecom, mobile and Unicom.
Based on this, searching the preset geographic location information corresponding to the IP address may specifically include: and acquiring the geographical position information corresponding to the IP address according to the corresponding relation.
In this embodiment, after establishing the correspondence between the IP address and the geographic location information, the storing of the IP address and the related information may specifically include:
and storing the IP address and the corresponding relation in NOSQL (non-relational database), and storing the IP address and the hot spot data in the corresponding relation into a local cache of the player.
In the whole processing cycle of the method provided in this embodiment, the hotspot data in the local cache of the advertisement delivery machine may also be updated at any time, and specifically may include:
and deleting the IP address information which is not used for the longest time within the preset time period from the local cache of the advertisement delivery machine.
Based on the storage measure, the searching for the preset geographic location information corresponding to the IP address in this embodiment may specifically include: the geographical location information corresponding to the IP address is searched in a local cache of the advertisement delivery machine, and if the geographical location information is not searched, the geographical location information corresponding to the IP address is searched in NOSQL.
In the embodiment, the targeted advertisement delivery method based on the precise region enables the delivery of advertisements to be more accurate, reduces the situation that the advertisement effect is not ideal due to inaccurate advertisement delivery, enables advertisements in the region to be delivered in each region, and enhances the recognition degree of an advertiser on the advertisement delivery effect.
Example 2
The present embodiment provides another advertisement delivery control method, and the following briefly describes the flow that needs to be executed by the method, and it should be noted that the method can also use the specific implementation manner described in the above embodiment 1 to implement the steps in the following flow.
Fig. 2 is a system architecture for implementing the advertisement placement control method in the present embodiment, and as shown in the figure, the system mainly involves the following components:
the system comprises an application programming interface server, a Java virtual machine cache, a NOSQL database, an IP library, ISPs and an IP analysis processor, and the embodiment performs the following processing based on the system architecture:
acquiring relevant IP address data information of different ISPs every day, importing the data information into an IP library, removing duplication, grading and filtering the data information through an IP analysis processor, constructing an IP region index, and improving the IP analysis capability by adopting a dual mechanism of NOSQL and local cache.
For an advertisement delivery machine, when a user requests the delivery machine to deliver advertisements, the user IP information is carried, then the delivery machine searches matched geographical position information in a local hotspot cache based on the IP of the user, and if the geographical position information is not searched, the advertisement delivery machine enters NOSQL (non-relational database) for matching; after matching is successful, searching relevant matched advertisement putting data according to a region label (geographical location information corresponding to an IP address), if the data does not exist, selecting advertisement data of a first-level administrative region above the IP or displaying default advertisement data, and in the process, deleting IP information which is not used for the longest time in the latest period of time so as to update local hotspot data.
Example 3
The present embodiment provides an advertisement placement control device, fig. 3 is a block diagram of the device, and as shown in fig. 3, the device 30 includes the following components:
a receiving module 31, configured to receive an advertisement delivery request, where the advertisement delivery request carries an IP address;
the searching module 32 is configured to search preset geographic location information corresponding to the IP address, where the geographic location information includes a minimum administrative unit included in the IP address;
the geographic location information includes a minimum administrative region unit included in the IP address, and the specific minimum administrative region may include a village, a county, a town, a county, and a district;
the first obtaining module 33 is configured to obtain advertisement delivery data corresponding to the geographic location information;
in this embodiment, the geographic location information may be specifically matched with the advertisement attribute based on a targeting technology to obtain corresponding advertisement delivery data, and meanwhile, the preset geographic locations may correspond to the corresponding advertisement delivery data.
And a determining module 34, configured to determine whether to allow the advertisement of the advertisement placement request to be placed according to the advertisement placement data.
The advertisement delivery data related in this embodiment may specifically include attribute information of a deliverable advertisement corresponding to each specified region/geographic location, and preferably, attribute information of an advertisement of different delivery priority levels corresponding to each specified region/geographic location, and according to the attribute information of the advertisement, it may be determined whether the advertisement requested to be delivered by the current user is suitable for delivery in the specified location. In this embodiment, if the attribute of the advertisement requested to be delivered by the user currently does not match the geographic location information corresponding to the IP address carried by the user, the delivery of the advertisement is not allowed, otherwise, the delivery of the advertisement is allowed.
Optionally, the apparatus 30 may further include: the second acquisition module is used for periodically acquiring the IP address information of each Internet service provider ISP before receiving the advertisement putting request; the analysis module is used for analyzing the IP address information to obtain a geographic position corresponding to the IP address, wherein the geographic position comprises a minimum administrative area unit contained in the IP address; the establishing module is used for establishing the corresponding relation between the IP address and the geographic position information; the search module is specifically configured to: and acquiring the geographical position information corresponding to the IP address according to the corresponding relation.
Optionally, the apparatus 30 may further include: the storage module is configured to store the IP address and the corresponding relationship in a non-relational database NOSQL after establishing the corresponding relationship between the IP address and the geographic location information, and store hotspot data in the IP address and the corresponding relationship in a local cache of the player, based on which the search module is specifically configured to: the geographical location information corresponding to the IP address is searched in a local cache of the advertisement delivery machine, and if the geographical location information is not searched, the geographical location information corresponding to the IP address is searched in NOSQL.
Optionally, the apparatus 30 may further include: and the deleting module is used for deleting the IP address information which is not used for the longest time in the preset time period from the local cache of the advertisement putting machine.
The above description is only an example of the present invention, and is not intended to limit the present invention, and it is obvious to those skilled in the art that various modifications and variations can be made in the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the scope of the claims of the present invention.