AmbireTech / adex-platform

AdEx Platform UI
https://platform.adex.network
GNU General Public License v3.0
58 stars 19 forks source link

Use Google Vision API (or similar API) to auto categorize ads #40

Closed Ivshti closed 1 year ago

Ivshti commented 5 years ago

This can actually be applied on multiple levels of the stack, including the SDK/validator stack; to allow stuff like "exclude pornography from my site"

rori4 commented 4 years ago

This can also be used when uploading your ad units and you can get suggestions for categories/tags for targeting. They also provide with the API percentage accuracy. Here is an example with a dog food banner: dog food example Link to API test page: https://cloud.google.com/vision/#industry-leading-accuracy-for-image-understanding

Ivshti commented 4 years ago

that would be pretty awesome

rori4 commented 4 years ago

@Ivshti We can also use https://cloud.google.com/natural-language/docs/classifying-text which can classify webpages with confidence percentage. This can be used in publisher side

Ivshti commented 4 years ago

yep, that's a great idea!

rori4 commented 4 years ago

I am just leaving the NodeJS API docummentation here for future reference as it was hard to find: https://googleapis.dev/nodejs/vision/latest/index.html

rori4 commented 4 years ago

Currently we are quite accurate in recognizing adult content and categorizing ads on advertiser side.. The default API does miss some of the times but I have created a sequence to categorize the ad based on target url, text on picture and overall labels gathered by google vision. Then we go through google-language api to categorize the text that describes the picture, the text on the picture and the website we want to send the visitors, which works quite well.

For publishers we need to know on which website they are going to publish their ad so we can perform the category suggestion. Then we can allow the iframe to show the ad only that url. So based on the provided URL we can categorize the website content.

Here are the categories used: https://cloud.google.com/natural-language/docs/categories

rori4 commented 3 years ago

related: https://github.com/AdExNetwork/adex-relayer/issues/66