Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

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

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("v201705")
for _, table := range awql.TablesPrefixedBy("VIDEO") {
    fmt.Println(table.SourceName())
}
// Output: VIDEO_PERFORMANCE_REPORT