https://github.com/rvflash/awql-db
All information about Adwords reports represented as tables or user views.
https://github.com/rvflash/awql-db
golang
Last synced: 2 months ago
JSON representation
All information about Adwords reports represented as tables or user views.
- Host: GitHub
- URL: https://github.com/rvflash/awql-db
- Owner: rvflash
- License: mit
- Created: 2016-12-23T22:12:58.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-09-27T16:16:47.000Z (over 6 years ago)
- Last Synced: 2025-01-28T16:16:28.673Z (4 months ago)
- Topics: golang
- Language: Go
- Size: 465 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Awql Database
[](https://godoc.org/github.com/rvflash/awql-db)
[](https://travis-ci.org/rvflash/awql-db)
[](http://codecov.io/github/rvflash/awql-db?branch=master)
[](https://goreportcard.com/report/github.com/rvflash/awql-db)All information about Adwords reports represented as tables or user views.
## Data Source Name
The optional parts are marked by squared brackets:
```
APIVersion[:NoAutoLoad][|SrcDirectory][|ViewFilePath]
```The first part with `APIVersion` can contains an option to disable auto-loading.
#### `APIVersion`
```
Type: string
Valid Values:
Default: v201809
```
Version of the Adwords API to use.#### `NoAutoLoad`
```
Type: bool
Valid Values: true, false
Default: false
```
If true, the database is not loaded at the opening.#### `SrcDirectory`
Path to the folder that stores the database configuration files.
#### `ViewFilePath`
Enables to overload the path to the views configuration file.
## Example
```go
import db "github.com/rvflash/awql-db"awql, _ := db.Open("v201809")
for _, table := range awql.TablesPrefixedBy("VIDEO") {
fmt.Println(table.SourceName())
}
// Output: VIDEO_PERFORMANCE_REPORT
```