GithubHelp home page GithubHelp logo

isabella232 / amazon-ads-advertiser-audience-normalization-sdk-py Goto Github PK

View Code? Open in Web Editor NEW

This project forked from amzn/amazon-ads-advertiser-audience-normalization-sdk-py

0.0 0.0 0.0 16 KB

License: Other

Python 100.00%

amazon-ads-advertiser-audience-normalization-sdk-py's Introduction

Address Hashing

Description: This library can be used to prepare files for data upload with Amazon Marketing Cloud and Amazon DSP. Before files are uploaded to an AMC/Amazon DSP, certain columns must be normalized and hashed (SHA-256). This library performs the normalization and hashing process for the address field in the input file to ensure values confomr to Amazon's hashed address input format to generate high match rates.

How to use the package:

  1. The package has an AddressHash module which can be imported using the command > from AddressHashing import AddressHash
  2. AddressHash module has an AddressNormalizer class
  3. An instance of AddressNormalizer should be created by passing the Country code. Following are the supported country codes US,CA,UK,FR,DE,ES,IT,JP,IN
  4. AddressNormalizer has the attrubutes normalizedAddress and sha256normalizedAddress which will be updated on calling the .normalize method.
  5. If using this library for AMC/DSP data matching, the final address string that needs to be hashed should only include the street address and not the State Country and ZipCode

Sample code useage:

from AddressHashing import AddressHash import csv

address = '03646 Nicholas Stravenue Mooretown' addressNormalizer = AddressHash.AddressNormalizer('US') result = addressNormalizer.normalize(address) print(result.normalizedAddress) print(result.sha256normalizedAddress)

or

print(addressNormalizer.normalizedAddress) print(addressNormalizer.sha256normalizedAddress)

amazon-ads-advertiser-audience-normalization-sdk-py's People

Contributors

amazon-auto avatar hisuraj-amazon avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.