TECHNICAL FIELD

The application relates to the field of computer technologies, and in particular, to a blockchain-based advertisement monitoring method and apparatus, and an electronic device.

BACKGROUND

Currently, in order to improve effects of advertisements, advertisers increasingly choose to place offline electronic advertisements on advertisement playing devices in public areas such as buildings, elevators, cinemas, communities, and bus stops. In order to learn a placing status of electronic advertisements on the advertisement playing devices in a timely manner to determine whether unexpected cases such as wrong placement and abnormal playing of the electronic advertisements occur, an advertisement placing party usually needs to send manpower to an advertisement playing site to view an actual placing status of the electronic advertisements.

However, there are various disadvantages by monitoring an advertisement placing status at a playing site using manpower. On the one hand, obtained playing evidences are often manually taken photographs that are likely to be tampered with, and therefore authenticity of the photographs cannot be ensured, and manual costs are relatively high and monitoring efficiency is also relatively low. On the other hand, in the manual manner, an error is unavoidable, and accurate advertisement playing data cannot be provided. Therefore, it is difficult to rely on the manual monitoring to optimize a placing effect of offline electronic advertisements.

Reducing manual costs for monitoring a placing status of the offline electronic advertisements and improving efficiency and accuracy of monitoring advertisement playing become a technical problem urgently to be resolved.

SUMMARY

Embodiments of the specification provide a blockchain-based advertisement monitoring method and apparatus, and an electronic device, to resolve existing problems such as relatively high manual costs for monitoring a placing status of offline electronic advertisements and relatively low efficiency and relatively low accuracy of monitoring of advertisement playing.

In order to resolve the foregoing technical problems, the embodiments of the specification are implemented as follows.

In a first aspect, a blockchain-based advertisement monitoring method is provided. The method is applied to an advertisement monitoring apparatus and includes: obtaining, by a playing device, an advertisement resource; at each of a plurality of different time points while playing the advertisement resource, collecting, by the playing device, screenshots of the advertisement resource; generating, by the playing device, a plurality of signatures based on the collected screenshots, an device identifier of the playing device, and a private encryption key of the playing device; generating, by the playing device, verification information based on the plurality of signatures; and uploading, by the playing device, the verification information to a blockchain network.

In some embodiments, the obtaining the advertisement resource comprises: sending the device identifier of the playing device to a cloud platform; and receiving the advertisement resource from the cloud platform, wherein the cloud platform stores a mapping between the advertisement resource and the device ID of the playing device.

In some embodiments, the generating the plurality of signatures comprises: generating a digest based on the collected screenshots; generating a first signature of the plurality of signatures by encrypting the digest using the private encryption key of the playing device; and generating a second signature of the plurality of signatures by encrypting the device identifier of the playing device using the private encryption key of the playing device.

In some embodiments, the generating the verification information comprises: generating the verification information based on the first signature, the second signature, and the device identifier.

In some embodiments, the generating the plurality of signatures comprises: combining the screenshots and the device identifier; generating a digest by applying a hash algorithm on the combination; generating a first signature of the plurality of signatures by encrypting the device identifier of the playing device using the private encryption key of the playing device; and generating a second signature of the plurality of signatures by encrypting the digest using the private encryption key of the playing device.

In some embodiments, the generating the verification information comprises: generating the verification information based on the first signature, the second signature, and the device identifier.

In some embodiments, the generating the plurality of signatures comprises: combining the screenshots, the device identifier, and timestamps of the screenshots; generating a digest by applying a hash algorithm on the combination; generating a first signature of the plurality of signatures by encrypting the digest using the private encryption key of the playing device; and generating a second signature of the plurality of signatures by encrypting the device identifier of the playing device using the private encryption key of the playing device.

In some embodiments, the generating the verification information comprises: generating the verification information based on the first signature, the second signature, the digest, and the timestamps.

In some embodiments, the generating the plurality of signatures comprises: generating a digest based on the collected screenshots; generating a first signature by encrypting the digest using the private encryption key of the playing device; generating a second signature by encrypting the device identifier of the playing device using the private encryption key of the playing device; and generating a third signature by encrypting length-and-width pairs of the screenshots using the private encryption key of the playing device.

In some embodiments, the generating the verification information comprises: generating the verification information based on the first signature, the second signature, the third signature, the device ID, and the length-and-width pairs of the screenshots.

In a second aspect, a system for blockchain-based advertisement monitoring is described. The system comprises one or more processors and one or more non-transitory computer-readable memories coupled to the one or more processors and configured with instructions executable by the one or more processors to cause the system to perform operations comprising: obtaining an advertisement resource; at each of a plurality of different time points while playing the advertisement resource, collecting screenshots of the advertisement resource; generating a plurality of signatures based on the collected screenshots, an device identifier of the playing device, and a private encryption key of the playing device; generating verification information based on the plurality of signatures; and uploading the verification information to a blockchain network.

In a third aspect, a non-transitory computer-readable storage medium for blockchain-based advertisement monitoring is configured with instructions executable by one or more processors to cause the one or more processors to perform operations comprising: obtaining an advertisement resource; at each of a plurality of different time points while playing the advertisement resource, collecting screenshots of the advertisement resource; generating a plurality of signatures based on the collected screenshots, an device identifier of the playing device, and a private encryption key of the playing device; generating verification information based on the plurality of signatures; and uploading the verification information to a blockchain network.

The foregoing technical solutions used in the embodiments of the specification can achieve at least the following technical effects.

During monitoring of an advertisement played on an offline electronic display screen, the screenshot image of the target advertisement and the identification information of the playing device may be obtained. The corresponding blockchain verification information may be generated based on the screenshot image and the identification information of the playing device. The blockchain verification information may be used for verifying the screenshot image and the identification information. Then the blockchain verification information is uploaded to the blockchain. Based on a non-tamperable feature of the information recorded in the blockchain, the screenshot image of the target advertisement and the identification information of the playing device are uploaded to the blockchain. On the one hand, human resources required for advertisement monitoring are saved and efficiency is improved. On the other hand, it is ensured that the playing status of the advertisement is authentic and effective.

When the verification node in the blockchain verifies the playing status of the target advertisement, the blockchain verification information of the target advertisement may be obtained from a blockchain. The blockchain verification information includes the identification information of the playing device. Then the advertisement resource corresponding to the identification information of the playing device may be obtained. Finally, the playing status of the target advertisement may be verified based on the blockchain verification information and the advertisement resource corresponding to the identification information of the playing device. Based on the non-tamperable feature of the information recorded in the blockchain, the verification node obtains the blockchain verification information of the target advertisement from the blockchain and verifies the playing status based on the blockchain verification information of the target advertisement. On the one hand, workload of manually verifying the playing status of the target advertisement is reduced and efficiency is improved. On the other hand, it is ensured that the playing status of the advertisement determined by the verification node is authentic and effective.

