adwords_api | Adwords API. Originally forked
kandi X-RAY | adwords_api Summary
kandi X-RAY | adwords_api Summary
Welcome to the next generation Google-developed Ruby client library for the AdWords and DoubleClick Ad Exchange Buyer API!. Please note that this is an early PREVIEW of the client library, still under development. It contains full support for v13, v200909, v201003, v201008 and v201101, with full stubs, and a simplified programming interface that lets you handle everything in native Ruby collections, instead of forcing you to deal with SOAP library-generated objects.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of adwords_api
adwords_api Key Features
adwords_api Examples and Code Snippets
Community Discussions
Trending Discussions on adwords_api
QUESTION
I am trying to get an Oauth2 access token to use adwords api. I am using google-api-ads-ruby and trying to follow the instruction here, https://github.com/googleads/google-api-ads-ruby/wiki/API-access-using-own-credentials-(installed-application-flow). I have developer token, client id, secret, and every other info inserted into adwords_api.yml. And when I run setup_oauth2.rb it displays as below :
...ANSWER
Answered 2018-May-15 at 06:16The way Oauth2 works is that it needs to know where to return the authentication to. This is done by defining a Redirect URI.
With browser based applications its easy to know where the authentication should be returned to. In this case it should go to a page on the website designed to handle the response form the authentication server.
With installed applications thats a little harder becouse there is no website to return to so no way of knowing an exact ip address where to send it to. In this case google creates two standard redirect uris that you can use.
urn:ietf:wg:oauth:2.0:oob and and http://localhost
Explanation of your error
In your case if you read the error message you are sending a Native redirect uri to a browser client id.
Your issue:
QUESTION
I am trying to fetch top performing ads using attributes like impressions, clickx etc
I tried google adwords reporting api first, but reporting api do not support ORDER BY
clause. And I couldn't find any AdsService
in the service list. Closest I could find AdGroupsAd
which seeems do not have attributes like impressions clicks, etc. Am I missing something ?
ANSWER
Answered 2017-Aug-03 at 16:30AFAIK there's no way to have the Adwords API give you any entities ordered by stats. The reports don't support any ordering. With the services, you can order by attributes (e.g. alphabetically by headline for text ads), but not performance metrics.
So the only way is to download the whole report and do the ordering on your end.
QUESTION
I am attempting to get get a Ruby on Rails project that uses the Google AdWords API.
What I did so far, following the steps in this guide:
- I created an AdWords Manager account.
- I created a test account that is part of the AdWords Manager account.
- I set up the Ruby client library in my Rails project.
- I then attempted to set up OAuth2 authentication with the example code from the guide.
However since the guide was written (and the video version of the guide was made) it seems that the interface has changed. I am able to create a Client ID client_secrets.json
-file, or a Service Account .json file. I am able to export these and read the settings from .
- I added the required settings, using an
OAUTH2_SERVICE_ACCOUNT
.json file.
Now, when attempting to connect, I get back the AdwordsAPIException AuthenticationError.NOT_ADS_USER
.
I therefore know that the actual authentication works. However, the authorization does not.
How can I turn on AdWords API support for the oAuth credentials from my google accounts? The Google Credentials Console lists many APIs that you can turn on, but the AdWords API is not in there. The AdWords guide does not mention turning on an API at all, and only tells you to create a new Credential.
What is going on here?
...ANSWER
Answered 2017-Apr-10 at 07:54The Adwords API does not need to be added to your project in the Google Cloud console (it's always enabled)—as indicated by the error message, the actual problem lies in the fact that your service account does not have access to any Adwords accounts.
As a matter of fact, the only way to use service accounts to authenticate against the Adwords API is when you're also using a G Suite domain (see the corresponding documentation, section "Prerequisites".
If you have a G Suite domain, you'll need to
Enable "G Suite Domain-wide Delegation" on your service account key
Add the project ID of the Google cloud project to your G Suite domain's authorized API client list
Use your service account to impersonate any user from your G suite domain that has Adwords access
As you can see, it's quite an involved process. My recommendation (that is shared by the above article) is to use an OAuth2 installed application flow for any user that has Adwords access. This requires to store the obtained refresh token on your end, but is more flexible (and arguably safer) than a delegation-enabled service account and easier to set up.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install adwords_api
On a UNIX-like operating system, using your system’s package manager is easiest. However, the packaged Ruby version may not be the newest one. There is also an installer for Windows. Managers help you to switch between multiple Ruby versions on your system. Installers can be used to install a specific or multiple Ruby versions. Please refer ruby-lang.org for more information.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page