Giter Club home page Giter Club logo

customer-match-upload-script's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

customer-match-upload-script's Issues

The client library configuration is missing the required "use_proto_plus" key

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

Doesn't support Google ads V14

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.

Script runs successfully but doesn't upload Audience

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 !!

Script only passes one identifier per UserData object

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!

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.