util

package
v1.35.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 24, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NoAdCampaignFound = errors.New("No AdCampaign Found")
View Source
var NoAdConfigFound = errors.New("No AdConfig Found")
View Source
var NoAdFound = errors.New("No Ad Found")
View Source
var NoAdSetFound = errors.New("No AdSet Found")

Functions

func GetAd

func GetAd(db *datastore.Datastore, h BelongsToAd) (*ad.Ad, error)

func GetAdConfigs

func GetAdConfigs(db *datastore.Datastore, h HasAdConfigs) ([]*adconfig.AdConfig, error)

func GetAdSet

func GetAdSet(db *datastore.Datastore, h BelongsToAdSet) (*adset.AdSet, error)

func GetAdSets

func GetAdSets(db *datastore.Datastore, h HasAdSets) ([]*adset.AdSet, error)

func GetAds

func GetAds(db *datastore.Datastore, h HasAds) ([]*ad.Ad, error)

func GetCopies

func GetCopies(db *datastore.Datastore, h HasCopies) ([]*copy.Copy, error)

func GetHeadlines

func GetHeadlines(db *datastore.Datastore, h HasHeadlines) ([]*copy.Copy, error)

func GetMedias

func GetMedias(db *datastore.Datastore, h HasMedias) ([]*media.Media, error)

Types

type BelongsToAd

type BelongsToAd interface {
	GetAdId() string
}

type BelongsToAdCampaign

type BelongsToAdCampaign interface {
	GetAdCampaignId() string
}

type BelongsToAdConfig

type BelongsToAdConfig interface {
	GetAdConfigId() string
}

type BelongsToAdSet

type BelongsToAdSet interface {
	GetAdSetId() string
}

type HasAdConfigs

type HasAdConfigs interface {
	GetAdConfigSearchFieldAndIds() (string, []string)
}

type HasAdSets

type HasAdSets interface {
	GetAdSetSearchFieldAndIds() (string, []string)
}

type HasAds

type HasAds interface {
	GetAdSearchFieldAndIds() (string, []string)
}

type HasCopies

type HasCopies interface {
	GetCopySearchFieldAndIds() (string, []string)
}

type HasHeadlines

type HasHeadlines interface {
	GetHeadlineSearchFieldAndIds() (string, []string)
}

type HasMedias

type HasMedias interface {
	GetMediaSearchFieldAndIds() (string, []string)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL