google-ads-python | Google Ads API Client Library for Python

 by   googleads Python Version: 21.1.0 License: Apache-2.0

kandi X-RAY | google-ads-python Summary

kandi X-RAY | google-ads-python Summary

google-ads-python is a Python library. google-ads-python has no bugs, it has no vulnerabilities, it has build file available, it has a Permissive License and it has low support. You can install using 'pip install google-ads-python' or download it from GitHub, PyPI.

Google Ads API Client Library for Python
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              google-ads-python has a low active ecosystem.
              It has 361 star(s) with 448 fork(s). There are 38 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 5 open issues and 472 have been closed. On average issues are closed in 87 days. There are 2 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of google-ads-python is 21.1.0

            kandi-Quality Quality

              google-ads-python has 0 bugs and 0 code smells.

            kandi-Security Security

              google-ads-python has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              google-ads-python code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              google-ads-python is licensed under the Apache-2.0 License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              google-ads-python releases are available to install and integrate.
              Deployable package is available in PyPI.
              Build file is available. You can build the component from source.
              google-ads-python saves you 1515954 person hours of effort in developing the same functionality from scratch.
              It has 654223 lines of code, 7012 functions and 6284 files.
              It has low code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed google-ads-python and discovered the below as its top functions. This is intended to give you an instant insight into google-ads-python implemented functionality, and help decide if they suit your requirements.
            • Creates an asset group operation
            • Create and link an image asset
            • Download an image from given url
            • Get a service instance
            • Create a list of nodes
            • Copy from destination to destination
            • Creates an AdGroupCriterion
            • Creates an asset group and asset group and asset groups
            • Sort a list of MutateOperation objects
            • Creates a MutateOperationCampaign
            • Creates an ad
            • Creates a promotion asset for a given extension feed
            • Construct SmartCampaignSuggestions
            • Copy contents of destination to destination
            • Print the results of the ad group
            • Build all operations for a given customer
            • Adds users to a customer match list
            • Adds transactions to an offline user data job
            • Adds a level2 node to a level list
            • Creates the extension feed items for a customer
            • Generate the hierarchy of the account
            • Creates a feed item
            • Creates a lead form asset
            • Creates a feed mapping
            • Get a specific extension feed item
            • Decorator for configuring logging
            • Creates a new offline user data job
            Get all kandi verified functions for this library.

            google-ads-python Key Features

            No Key Features are available at this moment for google-ads-python.

            google-ads-python Examples and Code Snippets

            No Code Snippets are available at this moment for google-ads-python.

            Community Discussions

            QUESTION

            Google Ads API Python - 403 Request had insufficient authentication scopes
            Asked 2021-Oct-27 at 18:03

            I'm trying to access Google Ads campaing reports from Python folowing this tutorial.

            I've requested my Developer Token with Basic Access. I think it has enough privileges to execute the script. I Can see my token active when I go to "API Center" in google ads.

            I've created a project in google cloud and an Oauth Token.

            In google Cloud:

            • Created a new project
            • Activated the Google Ads API.
            • When I go to Manage-> Credentials I see that the Oauth token is compatible with that API.
            • I have successfully created a refresh token.

            I'm using this script as proof of concept:

            ...

            ANSWER

            Answered 2021-Oct-27 at 18:03

            Comments of @DazWilkin solved my problem. Thanks!

            Source https://stackoverflow.com/questions/69398969

            QUESTION

            Google Ads API says "Token has been expired or revoked" despite using a refresh token
            Asked 2021-Mar-04 at 15:27

            I've set up the whole Google Ads API according to this manual here: https://developers.google.com/google-ads/api/docs/client-libs/python/oauth-desktop?hl=en

            I got my refresh token and put it in my google-ads.yaml file which looks exactly like this: https://github.com/googleads/google-ads-python/blob/master/google-ads.yaml. I also put my client_id, developer_token and client_secret at the corresponding spots in the file.

            Everything worked out and I could for example ask for all campaigns: https://developers.google.com/google-ads/api/docs/samples/get-campaigns#python. Also I could use other services of the API.

            Each time I use the API I access it via the client using the following code:

            ...

            ANSWER

            Answered 2021-Mar-04 at 15:27

            As @fatima Ajij pointed out, the whole issue / problem lies in the settings: Have a look at his answer: Token has expired or revoked - Google Ads Thanks a lot, fatima Ajij!

            Source https://stackoverflow.com/questions/66138931

            QUESTION

            Google Ads API - "failed with status "PERMISSION_DENIED" - "User doesn't have permission to access customer."
            Asked 2021-Jan-12 at 09:54

            I am trying to work with Google-ads-API. Running Ubuntu 20.04, Python 3.9(min requirement for the client library to work is 3.6), working with google-ads-api V6. Here's the story of my agony.

            I have made a test manager account[A], generated a developer's token, and have "test-level" access to use the API, which is great. Test level allows you to make calls to the API regarding information\reports dealing with test accounts(not production).

            Also, went through the whole Oauth2 credentials for account [A], allowed test emails, and after running "examples/authentication/authenticate_in_web_application.py", I am redirected to a webpage, allow my main test manager account to access the second test manager account[B](as instructed by the documentation, to create another test manager account[B], besides the main account[A] with the developer token), a refresh token is generated successfully from this OAuth2 prompt, to allow account [B] to be managed my account [A], added the refresh token to my google-ads.yaml file, and things are all good.

            When I run this .py file from the examples

            ...

            ANSWER

            Answered 2021-Jan-12 at 09:54

            --------------SOLVED--------------

            An update, just a few hours later. I made another new manager account, using the same email used in manager account[B] mentioned in the question. Followed the same steps as mentioned above, but this time after creation, I got this "RED TEST ACCOUNT FLAG".

            I run this in terminal, for the 678th time after roughly a hundred previous attempts:

            Source https://stackoverflow.com/questions/65675633

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install google-ads-python

            You can install using 'pip install google-ads-python' or download it from GitHub, PyPI.
            You can use google-ads-python like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries

            Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link