This repository has been archived by the owner on Jan 2, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from google/ads_api
Update from AdWords API to Ads API
- Loading branch information
Showing
16 changed files
with
347 additions
and
257 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -64,21 +64,21 @@ def test_pii_hashing(mocker): | |
assert len(hashed) == 2 | ||
|
||
assert hashed[0] == { | ||
'hashedEmail': 'd709f370e52b57b4eb75f04e2b3422c4d41a05148cad8f81776d94a048fb70af', | ||
'addressInfo': { | ||
'countryCode': 'US', | ||
'hashedFirstName': '96d9632f363564cc3032521409cf22a852f2032eec099ed5967c0d000cec607a', | ||
'hashedLastName': '799ef92a11af918e3fb741df42934f3b568ed2d93ac1df74f1b8d41a27932a6f', | ||
'zipCode': '12345' | ||
'hashed_email': 'd709f370e52b57b4eb75f04e2b3422c4d41a05148cad8f81776d94a048fb70af', | ||
'address_info': { | ||
'country_code': 'US', | ||
'hashed_first_name': '96d9632f363564cc3032521409cf22a852f2032eec099ed5967c0d000cec607a', | ||
'hashed_last_name': '799ef92a11af918e3fb741df42934f3b568ed2d93ac1df74f1b8d41a27932a6f', | ||
'postal_code': '12345' | ||
}} | ||
|
||
assert hashed[1] == { | ||
'hashedEmail': '7c815580ad3844bcb627c74d24eaf700e1a711d9c23e9beb62ab8d28e8cb7954', | ||
'addressInfo': { | ||
'countryCode': 'US', | ||
'hashedFirstName': '81f8f6dde88365f3928796ec7aa53f72820b06db8664f5fe76a7eb13e24546a2', | ||
'hashedLastName': '799ef92a11af918e3fb741df42934f3b568ed2d93ac1df74f1b8d41a27932a6f', | ||
'zipCode': '12345' | ||
'hashed_email': '7c815580ad3844bcb627c74d24eaf700e1a711d9c23e9beb62ab8d28e8cb7954', | ||
'address_info': { | ||
'country_code': 'US', | ||
'hashed_first_name': '81f8f6dde88365f3928796ec7aa53f72820b06db8664f5fe76a7eb13e24546a2', | ||
'hashed_last_name': '799ef92a11af918e3fb741df42934f3b568ed2d93ac1df74f1b8d41a27932a6f', | ||
'postal_code': '12345' | ||
}} | ||
|
||
|
||
|
@@ -111,19 +111,19 @@ def test_avoid_pii_hashing(mocker): | |
assert len(hashed) == 2 | ||
|
||
assert hashed[0] == { | ||
'hashedEmail': '[email protected]', | ||
'addressInfo': { | ||
'countryCode': 'US', | ||
'hashedFirstName': 'John', | ||
'hashedLastName': 'Doe', | ||
'zipCode': '12345' | ||
'hashed_email': '[email protected]', | ||
'address_info': { | ||
'country_code': 'US', | ||
'hashed_first_name': 'John', | ||
'hashed_last_name': 'Doe', | ||
'postal_code': '12345' | ||
}} | ||
|
||
assert hashed[1] == { | ||
'hashedEmail': '[email protected]', | ||
'addressInfo': { | ||
'countryCode': 'US', | ||
'hashedFirstName': 'Jane', | ||
'hashedLastName': 'Doe', | ||
'zipCode': '12345' | ||
'hashed_email': '[email protected]', | ||
'address_info': { | ||
'country_code': 'US', | ||
'hashed_first_name': 'Jane', | ||
'hashed_last_name': 'Doe', | ||
'postal_code': '12345' | ||
}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
googleads==24.1.0 | ||
google-ads==11.0.0 | ||
httplib2==0.17.4 | ||
protobuf==3.13.0 | ||
google-api-python-client==1.12.8 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,11 +16,11 @@ | |
|
||
setuptools.setup( | ||
name='megalist_dataflow', | ||
version='3.0', | ||
version='4.0', | ||
author='Google', | ||
author_email='[email protected]', | ||
url='https://github.com/google/megalista/', | ||
install_requires=['googleads==24.1.0', 'google-api-python-client==1.12.8', | ||
install_requires=['google-ads==11.0.0', 'google-api-python-client==1.12.8', | ||
'google-cloud-core==1.4.1', 'google-cloud-bigquery==1.27.2', | ||
'google-cloud-datastore==1.13.1', 'aiohttp==3.6.2', | ||
'google-cloud-storage==1.38.0'], | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.