Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/emiddleton/gads
Google Adwords API for Go
https://github.com/emiddleton/gads
Last synced: about 2 months ago
JSON representation
Google Adwords API for Go
- Host: GitHub
- URL: https://github.com/emiddleton/gads
- Owner: emiddleton
- License: other
- Created: 2014-01-20T02:22:15.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2021-12-13T21:56:08.000Z (about 3 years ago)
- Last Synced: 2024-07-31T20:53:15.471Z (5 months ago)
- Language: Go
- Size: 332 KB
- Stars: 50
- Watchers: 6
- Forks: 56
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-go - gads - Google Adwords Unofficial API. (Third-party APIs / Utility/Miscellaneous)
- awesome-go - gads - Google Adwords API for Go - ★ 36 (Third-party APIs)
- awesome-go-extra - gads - 01-20T02:22:15Z|2021-12-13T21:56:08Z| (Third-party APIs / Fail injection)
README
# gads
Package gads provides a wrapper for the Google Adwords SOAP API.
## installation
~~~
go get github.com/emiddleton/gads
~~~## setup
In order to access the API you will need to sign up for an MMC
account[1], get a developer token[2] and setup authentication[3].
There is a tool in the setup_oauth2 directory that will help you
setup a configuration file.1. http://www.google.com/adwords/myclientcenter/
2. https://developers.google.com/adwords/api/docs/signingup
3. https://developers.google.com/adwords/api/docs/guides/authentication## usage
The package is comprised of services used to manipulate various
adwords structures. To access a service you need to create an
gads.Auth and parse it to the service initializer, then can call
the service methods on the service object.~~~ go
authConf, err := NewCredentials(context.TODO())
campaignService := gads.NewCampaignService(&authConf.Auth)campaigns, totalCount, err := campaignService.Get(
gads.Selector{
Fields: []string{
"Id",
"Name",
"Status",
},
},
)
~~~> Note: This package is a work-in-progress, and may occasionally
> make backwards-incompatible changes.See godoc for further documentation and examples.
* [godoc.org/github.com/emiddleton/gads](https://godoc.org/github.com/emiddleton/gads)
## about
Gads is developed by [Edward Middleton](https://blog.vortorus.net/)