google / customer-match-upload-script Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
I am running Python on windows. So I used pip install google-ads to install the google-ads library. But when I run the create_and_populate_list.py I get the following error:
The client library configuration is missing the required "use_proto_plus" key
So I then copied the file from google-ads.yaml and updated the required parameters. event the client_id, client_secret and refresh_token although these parameters also exist in googleads_config.yaml file. I the edited the create_andpopulate_list.py and added
client = GoogleAdsClient.load_from_storage("location of google-ads.yaml file")
but I still get the same error.
I then added the use_proto_plus: flag in the googleads_config.yaml. Still the same error.
Where must I put the googleads_config.yaml for this to work?
line 278, in load_from_storage config_data = config.load_from_yaml_file(path)
File "C:\config.py", line 69, in validation_wrapper config_dict = func(*args, **kwargs)
File "C:\config.py", line 87, in parser_wrapper config_dict = func(*args, **kwargs)
File "C:\config.py", line 274, in load_from_yaml_file return parse_yaml_document_to_dict(yaml_doc)
File "C:\config.py", line 70, in validation_wrapper validate_dict(config_dict)
File "C:\config.py", line 174, in validate_dict raise ValueError(
ValueError: The client library configuration is missing the required "use_proto_plus" key. Please set this option to either "True" or "False". For more information about this option see the Protobuf Messages guide: https://developers.google.com/google-ads/api/docs/client-libs/python/protobuf-messages
I tried using this on uploading list but it has error and this repo doesn't support version 14. It is only support v10 which is outdated.
Hi guys,
Any script for PHP users?
Hello,
I have been using this script to upload audience to google-ads, the data gets pulled from Snowflake & is sent to Google-Ads. Until last week it was running fine but from this week onwards I see a strange response stating "Processed 0 lines from file audience.csv".
There is no change to Snowflake database or the table's schema, only the table gets updated with new records on a weekly basis.
It connects to my DB successfully but fails to collect data maybe, Can you please help me understand what might be the issue.
Thanks in Advance !!
It appears that build_offline_user_data_job_operations
creates a new OfflineUserDataJobOperation
and UserData
object for each data_type
found in a row. If a single row in the CSV contains entries for multiple data types such as emails
and addresses
, you should create a single UserData
with multiple user_identifiers
instead.
So instead of two separate UserData (create
) objects for the same member of the list (row in the CSV):
operations {
create {
user_identifiers {
address_info {
hashed_first_name: "<hashed first name here>"
hashed_last_name: "<hashed last name here>"
country_code: "<country code>"
postal_code: "<postal code>"
}
}
}
create {
user_identifiers {
hashed_email: "<hashed email address here>"
}
}
}
You should have one UserData with multiple user_identifiers
:
operations {
create {
user_identifiers {
hashed_email: "<hashed email address here>"
}
user_identifiers {
address_info {
hashed_first_name: "<hashed first name here>"
hashed_last_name: "<hashed last name here>"
country_code: "<country code>"
postal_code: "<postal code>"
}
}
}
}
You still want a separate UserData for each distinct member of the list, but all identifiers for the same member should go under one UserData.
Hope that's helpful!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.