#advertising #ad-mob #callback #openssl #verifying #requests #ssv

rust_admob_ssv

A rust implementation for verifying admob ssv callback requests using openssl

1 unstable release

0.1.0 May 8, 2020

#6 in #ad-mob

Download history 8/week @ 2024-07-25 6/week @ 2024-08-01 2/week @ 2024-09-12 16/week @ 2024-09-19 20/week @ 2024-09-26 14/week @ 2024-10-03 23/week @ 2024-10-10 26/week @ 2024-10-17 9/week @ 2024-10-24 2/week @ 2024-10-31

62 downloads per month

Apache-2.0

9KB
74 lines

Rust AdMob SSV Validation

This is a library for verifying a callback request (SSV) from AdMob. Please refer to the official documentation for more information.

It only does the verification process using openssl. It requires you to request the keys from the AdMob key server insert them into a Hashmap<u64, String> and hand it over to the verifciation function.

How to use

This library only has one function verify_ssv_callback. It takes two parameters:

  • query_string: String: The full query String including signature and key_id Documentation
  • public_keys: Hashmap<u64, String>: A HashMap of all public keys received from the AdMob key server

It returns either Ok(bool) if the verification was successful/unsuccessful or not or Err(String) when encountering an error during the whole validation process.

Dependencies

~2.7–3.5MB
~80K SLoC