bingads

package
v1.12.1 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2023 License: AGPL-3.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateActionFileTemplate

func CreateActionFileTemplate(csvFile *os.File, audienceId, actionType string) (*csv.Writer, error)

Types

type ActionFileInfo

type ActionFileInfo struct {
	Action           string
	CSVWriter        *csv.Writer
	CSVFilePath      string
	ZipFilePath      string
	SuccessfulJobIDs []int64
	FailedJobIDs     []int64
	FileSize         int64
	EventCount       int64
}

type BingAdsBulkUploader

type BingAdsBulkUploader struct {
	// contains filtered or unexported fields
}

func NewBingAdsBulkUploader

func NewBingAdsBulkUploader(destName string, service bingads.BulkServiceI, client *Client) *BingAdsBulkUploader

func NewManager

func NewManager(destination *backendconfig.DestinationT, backendConfig backendconfig.BackendConfig) (*BingAdsBulkUploader, error)

func (*BingAdsBulkUploader) GetUploadStats

func (b *BingAdsBulkUploader) GetUploadStats(uploadStatsInput common.GetUploadStatsInput) common.GetUploadStatsResponse

func (*BingAdsBulkUploader) Poll

func (*BingAdsBulkUploader) Upload

This function create at most 3 zip files from the text file created by the batchrouter It takes the text file path as input and returns the zip file path The maximum size of the zip file is 100MB, if the size of the zip file exceeds 100MB then the job is marked as failed

type Client

type Client struct {
	URL string
	// contains filtered or unexported fields
}

type ClientID

type ClientID struct {
	JobID       int64
	HashedEmail string
}

func (*ClientID) ToString

func (c *ClientID) ToString() string

returns the string representation of the clientID struct which is of format jobId<<>>hashedEmail

type Data

type Data struct {
	Message  Message  `json:"message"`
	Metadata Metadata `json:"metadata"`
}

This struct represent each line of the text file created by the batchrouter

type DestinationConfig

type DestinationConfig struct {
	AudienceID               string   `json:"audienceId"`
	CustomerAccountID        string   `json:"customerAccountId"`
	CustomerID               string   `json:"customerId"`
	OneTrustCookieCategories []string `json:"oneTrustCookieCategories"`
	RudderAccountID          string   `json:"rudderAccountId"`
}

type Message

type Message struct {
	List   []User `json:"List"`
	Action string `json:"Action"`
}

type Metadata

type Metadata struct {
	JobID int64 `json:"job_id"`
}

type User

type User struct {
	Email       string `json:"email"`
	HashedEmail string `json:"hashedEmail"`
}

Jump to

Keyboard shortcuts

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