/awql-db

All information about Adwords reports represented as tables or user views.

Primary LanguageGoMIT LicenseMIT

Awql Database

GoDoc Build Status Code Coverage Go Report Card

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:   <version>
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

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