Documentation ¶
Index ¶
- func LoadFieldTypes() error
- func NewGoogleAds(ctx context.Context, sourceConfig *base.SourceConfig, ...) (base.Driver, error)
- func TestGoogleAds(sourceConfig *base.SourceConfig) error
- type GoogleAds
- func (g *GoogleAds) Close() error
- func (g *GoogleAds) GetAllAvailableIntervals() ([]*base.TimeInterval, error)
- func (g *GoogleAds) GetCollectionMetaKey() string
- func (g *GoogleAds) GetCollectionTable() string
- func (g *GoogleAds) GetObjectsFor(interval *base.TimeInterval, objectsLoader base.ObjectsLoader) error
- func (g *GoogleAds) GetRefreshWindow() (time.Duration, error)
- func (g *GoogleAds) ReplaceTables() bool
- func (g *GoogleAds) Type() string
- type GoogleAdsCollectionConfig
- type GoogleAdsConfig
- type GoogleAdsFieldGranularity
- type PagedResponse
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadFieldTypes ¶
func LoadFieldTypes() error
Example ¶
var err error // uncomment this line to refresh fields.csv. But comment it back before committing to repo. // err = LoadFieldTypes() if err != nil { fmt.Println(err) return } fmt.Println("ok")
Output: ok
func NewGoogleAds ¶
func NewGoogleAds(ctx context.Context, sourceConfig *base.SourceConfig, collection *base.Collection) (base.Driver, error)
NewGoogleAds returns configured Google Ads driver instance
func TestGoogleAds ¶
func TestGoogleAds(sourceConfig *base.SourceConfig) error
TestGoogleAds tests connection to Google Ads without creating Driver instance
Types ¶
type GoogleAds ¶
type GoogleAds struct { base.IntervalDriver // contains filtered or unexported fields }
func (*GoogleAds) GetAllAvailableIntervals ¶
func (g *GoogleAds) GetAllAvailableIntervals() ([]*base.TimeInterval, error)
func (*GoogleAds) GetCollectionMetaKey ¶
func (*GoogleAds) GetCollectionTable ¶
func (*GoogleAds) GetObjectsFor ¶
func (g *GoogleAds) GetObjectsFor(interval *base.TimeInterval, objectsLoader base.ObjectsLoader) error
func (*GoogleAds) ReplaceTables ¶
type GoogleAdsConfig ¶
type GoogleAdsConfig struct { AuthConfig *base.GoogleAuthConfig `mapstructure:"auth" json:"auth,omitempty" yaml:"auth,omitempty"` CustomerId string `mapstructure:"customer_id" json:"customer_id,omitempty" yaml:"customer_id,omitempty"` ManagerCustomerId string `mapstructure:"manager_customer_id" json:"manager_customer_id,omitempty" yaml:"manager_customer_id,omitempty"` DeveloperToken string `mapstructure:"developer_token" json:"developer_token,omitempty" yaml:"developer_token,omitempty"` }
func (*GoogleAdsConfig) FillPreconfiguredOauth ¶
func (gac *GoogleAdsConfig) FillPreconfiguredOauth(sourceType string)
func (*GoogleAdsConfig) Validate ¶
func (gac *GoogleAdsConfig) Validate() error
type GoogleAdsFieldGranularity ¶
type GoogleAdsFieldGranularity struct {
// contains filtered or unexported fields
}
type PagedResponse ¶
Click to show internal directories.
Click to hide internal directories.