ads

package
v1.35.1 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2026 License: MIT Imports: 1 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdIntegration

type AdIntegration struct {
	AdId         string `json:"AdId,omitempty"`
	AdConfigId   string `json:"AdConfigId,omitempty"`
	AdSetId      string `json:"AdSetId,omitempty"`
	AdCampaignId string `json:"AdCampaignId,omitempty"`
}

AdIntegration

func (*AdIntegration) GetAdCampaignId

func (a *AdIntegration) GetAdCampaignId() string

func (*AdIntegration) GetAdConfigId

func (a *AdIntegration) GetAdConfigId() string

func (*AdIntegration) GetAdId

func (a *AdIntegration) GetAdId() string

func (*AdIntegration) GetAdSetId

func (a *AdIntegration) GetAdSetId() string

type FacebookAdTypePlacements

type FacebookAdTypePlacements struct {

	// Link Click Ads
	// Recommended image size: 1,200 x 628 pixels
	// Ad copy text: 90 characters
	// Headline: 25 characters
	// Link Description: 30 characters
	//
	// Supported placements:
	// Right Column
	// Desktop Newsfeed
	// Mobile Newsfeed
	// Audience Network
	// Instagram
	DoLinkClickAds bool `json:"doLinkClickAds"`

	// Video Ads
	// Ad copy text: 90 characters
	// Aspect ratios supported: 16:9 to 9:16
	// File size: up to 4 GB max
	// Continuous looping available
	// Video can be as long as 120 min., but most top-performing videos are 15-30 seconds
	//
	// Supported placements:
	// Desktop Newsfeed
	// Mobile Newsfeed
	// Audience Network
	// Instagram
	DoVideoAds bool `json:"doVideoAds"`

	// Boosted Page Posts
	// Recommended image size: 1,200 x 628 pixels
	// Ad copy text: unlimited
	// Headline: 25 characters
	// Link Description: 30 characters
	//
	// Supported placements:
	// Desktop Newsfeed
	// Mobile Newsfeed
	// Audience Network
	// Instagram
	DoBoostedPagePosts bool `json:"doBoostedPagePosts`

	// Placements
	DoRightColumn     bool `json:"doRightColumn"`
	DoDesktopNewsfeed bool `json:"doDesktopNewsfeed"`
	DoMobileNewsfeed  bool `json:"doMobileNewsfeed"`
	DoAudienceNetwork bool `json:"doAudienceNetwork"`
	DoInstagram       bool `json:"doInstagram"`
}

type StatsWeCareAbout

type StatsWeCareAbout struct {
	Clicks      int64          `json:"clicks" datastore:"-"`
	Impressions int64          `json:"impressions" datastore:"-"`
	Conversions int64          `json:"conversions" datastore:"-"`
	TotalSpend  currency.Cents `json:"totalSpend" datastore:"-"`
	Currency    currency.Type  `json:"currency" datastore:"-"`
}

add some functionality to fetch these values from counters

type Status

type Status string
const (
	// Experimenting Status = "experimenting"
	PendingStatus Status = "pending"
	RunningStatus Status = "running"
	StoppedStatus Status = "stopped"
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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