Google Adwords API for Go

Overview

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.

     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.

about

Gads is developed by Edward Middleton

Issues
  • go get failing

    go get failing

    Hi, I am looking forward in getting your lib working for myself and contribute. When I tried: go get github.com/emiddleton/gads

    I got following issue ..GOPATH../src/github.com/emiddleton/gads/oauth2.go:17: undefined: oauth2.Context

    opened by eolexe 2
  • Be able to update a bid without getting it from api first

    Be able to update a bid without getting it from api first

    This pull request adds to possibility to update a bid without knowing nothing else that the new bid, the criterion id and campaign id. This adds the choice of the config file too.

    Thanks for this lib !

    opened by mrsinham 1
  • How to create gads.Auth

    How to create gads.Auth

    Hi, I'm newbie with go and google adwords API. I'm try to use your code to get somethings with google ads api but i dont know how to create this gads.Auth? And sometimes, when i run cli i got this message:

    expected element type <Envelope> but have <html>
    exit status 1
    

    Anyone help me please!

    opened by kokorolx 0
  • Is this package still maintained?

    Is this package still maintained?

    Hello, Is this package still being maintained? I noticed there are some pull requests that haven't been merged and there hasn't been any activity in over 2 years.

    opened by aleksarias 1
  • expected element type <Envelope> but have <html>

    expected element type but have

    Hi. I use the example from the documentation, and set config.json, but in return get err expected element type <Envelope> but have <html>

    campaigns, totalCount, err := campaignService.Get(
    		gads.Selector{
    			Fields: []string{
    				"Id",
    				"Name",
    				"Status",
    			},
    		},
    	)
    	if err != nil {
    		fmt.Println(err.Error())
    	}
    
    opened by SergeyParamoshkin 1
  • Adding the constant StrictMode

    Adding the constant StrictMode

    This constants aims to deactivate strict attitude if the library encounters a fields that is not managed by it. Because I'm operating on many type of google adwords entities, sometimes the library gives me an error only because it doesn't recognize a field that is not managed (but that have no impacts on work). It adds the UnknowError type too.

    opened by mrsinham 2
Releases(3.0.0)
Owner
Edward Middleton
Software Engineer, Entrepreneur, President of Tokyo Linux User Group, Husband, Father of two, He/Him.
Edward Middleton
A Wrapper Client for Google Spreadsheet API (Sheets API)

Senmai A Wrapper Client for Google Spreadsheet API (Sheets API) PREPARATION Service Account and Key File Create a service account on Google Cloud Plat

ytnobody / satoshi azuma 0 Nov 5, 2021
Unofficial Google Trends API for Go

Google Trends API for Go Unofficial Google Trends API for Golang gogtrends is API wrapper which allows to get reports from Google Trends. All contribu

Max Ivanov 65 Jun 14, 2022
Google Maps API checker

GAP Google API checker. Based on the study Unauthorized Google Maps API Key Usage Cases, and Why You Need to Care and Google Maps API (Not the Key) Bu

Joan Bono 41 Jun 20, 2022
Use Google REST api to extract your personal Photo Library

Photo Go A better approach to extracting your photos from Google to your personal cloud. I'm moving my photos out of Google to a Synology NAS. create

James 2 Dec 7, 2021
GoDrive is a Go CLI tool written to wrap the Google Drive API.

GoDrive is a Go CLI tool written to wrap the Google Drive API.

Leonardo Araujo 0 Jan 10, 2022
Simple translation tool using google translation api.

Translator Simple translation tool using google translation api. To use it you have to provide a valid service account as json file with path in the e

eric regnier 0 Feb 1, 2022
Google Cloud Messaging for application servers implemented using the Go programming language.

gcm The Android SDK provides a nice convenience library (com.google.android.gcm.server) that greatly simplifies the interaction between Java-based app

Adriano Orioli 30 Nov 16, 2021
Auto-generated Google APIs for Go.

Google APIs Client Library for Go Getting Started $ go get google.golang.org/api/tasks/v1 $ go get google.golang.org/api/moderator/v1 $ go get google.

Google APIs 3.1k Jun 25, 2022
Simple Reporting for Google Analytics

##Google analytics Data pull Lightweight Golang library for pulling Google Analytics API data. Built for use with Core Reporting API (v3): https://dev

Nithin Meppurathu 12 Mar 26, 2020
Google Cloud Client Libraries for Go.

Google Cloud Client Libraries for Go Go packages for Google Cloud Platform services. import "cloud.google.com/go" To install the packages on your syst

Google APIs 2.9k Jun 26, 2022
Sync your bank transactions with google sheets using Open Banking APIs

Sync your bank transactions with google sheets using Open Banking APIs

Alex Russell-Saw 29 May 10, 2022
Sync your bank transactions with google sheets using Open Banking APIs

this is a markdown version of the copy on the site landing page: https://youneedaspreadsheet.com You need a spreadsheet ?? Get on top of your finances

Alex Russell-Saw 29 May 10, 2022
Mattermost Plugin - Starts meeting with Google Meet

Mattermost Plugin - Starts meeting with Google Meet

Paulo Mateus 29 Jun 21, 2022
View Wikiloc.com trails in Google Earth

Wikiloc Google Earth layer View Wikiloc.com trails in Google Earth. Tiny http server written in Go that fetch trails from wikiloc.com to compose KML u

Jonathan Mataloni 12 Feb 21, 2022
RawLink makes backlinks queried from ahref ready for *Google Search Console*

Raw Link This simple program makes backlinks queried from ahref ready for Google Search Console. See footnote 1 for more information. It can be used t

Emre 1 Feb 8, 2022
Google Play APK apps

googleplay Google Play APK apps https://godocs.io/github.com/89z/googleplay Using Android API 24 fails, but API 25 or higher works. It applies to all

Steven Penny 219 Jun 24, 2022
A Google interview task my friend told me about.

deriving π given a normal distribution Try it yourself: package main import ( "fmt" "github.com/cpmech/gosl/rnd" ) // normal returns a number acc

siz6 0 Dec 16, 2021
A productivity tools to diagnose list of exported URL status from Google Search Console, Analytics, Sitemap URL...etc.

google-url-checker A productivity tools to diagnose list of exported URL status from Google Search Console, Analytics, Sitemap URL...etc. A quick way

null 0 Dec 31, 2021
Zero - If Google Drive says that 1 is under copyright, 0 must be under copyleft

zero Zero under copyleft license Google Drive's copyright detector says that fil

d!key 59 May 16, 2022