All URIs are relative to https://up.go-adserver.com
| Method | HTTP request | Description |
|---|---|---|
| ApiV1TrackerCostDriversGet | Get /api/v1/tracker/cost-drivers | List available cost drivers. |
| ApiV1TrackerSourceAccountsGet | Get /api/v1/tracker/source-accounts | List connected ad accounts. |
| ApiV1TrackerSourceAccountsIdCampaignsGet | Get /api/v1/tracker/source-accounts/{id}/campaigns | Campaigns visible in a connected ad account. |
| ApiV1TrackerSourceAccountsIdDelete | Delete /api/v1/tracker/source-accounts/{id} | Disconnect an ad account. |
| ApiV1TrackerSourceAccountsIdGet | Get /api/v1/tracker/source-accounts/{id} | Get one connected ad account. |
| ApiV1TrackerSourceAccountsIdPut | Put /api/v1/tracker/source-accounts/{id} | Update a connected ad account. |
| ApiV1TrackerSourceAccountsIdSyncPost | Post /api/v1/tracker/source-accounts/{id}/sync | Pull spend from a connected ad account now. |
| ApiV1TrackerSourceAccountsPost | Post /api/v1/tracker/source-accounts | Connect an ad account. |
| ApiV1TrackerSourcesGet | Get /api/v1/tracker/sources | List traffic sources. |
| ApiV1TrackerSourcesIdDelete | Delete /api/v1/tracker/sources/{id} | Delete a traffic source. |
| ApiV1TrackerSourcesIdPut | Put /api/v1/tracker/sources/{id} | Update a traffic source. |
| ApiV1TrackerSourcesPost | Post /api/v1/tracker/sources | Create a traffic source. |
| ApiV1TrackerSourcesSiteidCampaignsGet | Get /api/v1/tracker/sources/{siteid}/campaigns | Campaigns reported by a source's connected ad account. |
ApiV1TrackerTrackingLinksIdZoneCostsGet200Response ApiV1TrackerCostDriversGet(ctx).Execute()
List available cost drivers.
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/goadserver/goadserver-go"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.TrackerSourcesAPI.ApiV1TrackerCostDriversGet(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `TrackerSourcesAPI.ApiV1TrackerCostDriversGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ApiV1TrackerCostDriversGet`: ApiV1TrackerTrackingLinksIdZoneCostsGet200Response
fmt.Fprintf(os.Stdout, "Response from `TrackerSourcesAPI.ApiV1TrackerCostDriversGet`: %v\n", resp)
}This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiApiV1TrackerCostDriversGetRequest struct via the builder pattern
ApiV1TrackerTrackingLinksIdZoneCostsGet200Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ApiV1TrackerSourceAccountsGet200Response ApiV1TrackerSourceAccountsGet(ctx).Execute()
List connected ad accounts.
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/goadserver/goadserver-go"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.TrackerSourcesAPI.ApiV1TrackerSourceAccountsGet(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `TrackerSourcesAPI.ApiV1TrackerSourceAccountsGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ApiV1TrackerSourceAccountsGet`: ApiV1TrackerSourceAccountsGet200Response
fmt.Fprintf(os.Stdout, "Response from `TrackerSourcesAPI.ApiV1TrackerSourceAccountsGet`: %v\n", resp)
}This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiApiV1TrackerSourceAccountsGetRequest struct via the builder pattern
ApiV1TrackerSourceAccountsGet200Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ApiV1TrackerTrackingLinksIdZoneCostsGet200Response ApiV1TrackerSourceAccountsIdCampaignsGet(ctx, id).Execute()
Campaigns visible in a connected ad account.
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/goadserver/goadserver-go"
)
func main() {
id := int32(56) // int32 | Source account ID.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.TrackerSourcesAPI.ApiV1TrackerSourceAccountsIdCampaignsGet(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `TrackerSourcesAPI.ApiV1TrackerSourceAccountsIdCampaignsGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ApiV1TrackerSourceAccountsIdCampaignsGet`: ApiV1TrackerTrackingLinksIdZoneCostsGet200Response
fmt.Fprintf(os.Stdout, "Response from `TrackerSourcesAPI.ApiV1TrackerSourceAccountsIdCampaignsGet`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| id | int32 | Source account ID. |
Other parameters are passed through a pointer to a apiApiV1TrackerSourceAccountsIdCampaignsGetRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
ApiV1TrackerTrackingLinksIdZoneCostsGet200Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ApiV1PublisherPushCampaignsIdDelete200Response ApiV1TrackerSourceAccountsIdDelete(ctx, id).Execute()
Disconnect an ad account.
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/goadserver/goadserver-go"
)
func main() {
id := int32(56) // int32 | Source account ID.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.TrackerSourcesAPI.ApiV1TrackerSourceAccountsIdDelete(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `TrackerSourcesAPI.ApiV1TrackerSourceAccountsIdDelete``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ApiV1TrackerSourceAccountsIdDelete`: ApiV1PublisherPushCampaignsIdDelete200Response
fmt.Fprintf(os.Stdout, "Response from `TrackerSourcesAPI.ApiV1TrackerSourceAccountsIdDelete`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| id | int32 | Source account ID. |
Other parameters are passed through a pointer to a apiApiV1TrackerSourceAccountsIdDeleteRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
ApiV1PublisherPushCampaignsIdDelete200Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ApiV1TrackerSourceAccountsIdGet200Response ApiV1TrackerSourceAccountsIdGet(ctx, id).Execute()
Get one connected ad account.
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/goadserver/goadserver-go"
)
func main() {
id := int32(56) // int32 | Source account ID.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.TrackerSourcesAPI.ApiV1TrackerSourceAccountsIdGet(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `TrackerSourcesAPI.ApiV1TrackerSourceAccountsIdGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ApiV1TrackerSourceAccountsIdGet`: ApiV1TrackerSourceAccountsIdGet200Response
fmt.Fprintf(os.Stdout, "Response from `TrackerSourcesAPI.ApiV1TrackerSourceAccountsIdGet`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| id | int32 | Source account ID. |
Other parameters are passed through a pointer to a apiApiV1TrackerSourceAccountsIdGetRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
ApiV1TrackerSourceAccountsIdGet200Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ApiV1PublisherPushCampaignsPost200Response ApiV1TrackerSourceAccountsIdPut(ctx, id).ApiV1TrackerSourceAccountsIdPutRequest(apiV1TrackerSourceAccountsIdPutRequest).Execute()
Update a connected ad account.
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/goadserver/goadserver-go"
)
func main() {
id := int32(56) // int32 | Source account ID.
apiV1TrackerSourceAccountsIdPutRequest := *openapiclient.NewApiV1TrackerSourceAccountsIdPutRequest() // ApiV1TrackerSourceAccountsIdPutRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.TrackerSourcesAPI.ApiV1TrackerSourceAccountsIdPut(context.Background(), id).ApiV1TrackerSourceAccountsIdPutRequest(apiV1TrackerSourceAccountsIdPutRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `TrackerSourcesAPI.ApiV1TrackerSourceAccountsIdPut``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ApiV1TrackerSourceAccountsIdPut`: ApiV1PublisherPushCampaignsPost200Response
fmt.Fprintf(os.Stdout, "Response from `TrackerSourcesAPI.ApiV1TrackerSourceAccountsIdPut`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| id | int32 | Source account ID. |
Other parameters are passed through a pointer to a apiApiV1TrackerSourceAccountsIdPutRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
apiV1TrackerSourceAccountsIdPutRequest | ApiV1TrackerSourceAccountsIdPutRequest | |
ApiV1PublisherPushCampaignsPost200Response
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ApiV1TrackerTrackingLinksIdZoneCostsGet200Response ApiV1TrackerSourceAccountsIdSyncPost(ctx, id).Execute()
Pull spend from a connected ad account now.
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/goadserver/goadserver-go"
)
func main() {
id := int32(56) // int32 | Source account ID.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.TrackerSourcesAPI.ApiV1TrackerSourceAccountsIdSyncPost(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `TrackerSourcesAPI.ApiV1TrackerSourceAccountsIdSyncPost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ApiV1TrackerSourceAccountsIdSyncPost`: ApiV1TrackerTrackingLinksIdZoneCostsGet200Response
fmt.Fprintf(os.Stdout, "Response from `TrackerSourcesAPI.ApiV1TrackerSourceAccountsIdSyncPost`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| id | int32 | Source account ID. |
Other parameters are passed through a pointer to a apiApiV1TrackerSourceAccountsIdSyncPostRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
ApiV1TrackerTrackingLinksIdZoneCostsGet200Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ApiV1PublisherPushCampaignsPost200Response ApiV1TrackerSourceAccountsPost(ctx).ApiV1TrackerSourceAccountsPostRequest(apiV1TrackerSourceAccountsPostRequest).Execute()
Connect an ad account.
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/goadserver/goadserver-go"
)
func main() {
apiV1TrackerSourceAccountsPostRequest := *openapiclient.NewApiV1TrackerSourceAccountsPostRequest("facebook") // ApiV1TrackerSourceAccountsPostRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.TrackerSourcesAPI.ApiV1TrackerSourceAccountsPost(context.Background()).ApiV1TrackerSourceAccountsPostRequest(apiV1TrackerSourceAccountsPostRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `TrackerSourcesAPI.ApiV1TrackerSourceAccountsPost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ApiV1TrackerSourceAccountsPost`: ApiV1PublisherPushCampaignsPost200Response
fmt.Fprintf(os.Stdout, "Response from `TrackerSourcesAPI.ApiV1TrackerSourceAccountsPost`: %v\n", resp)
}Other parameters are passed through a pointer to a apiApiV1TrackerSourceAccountsPostRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| apiV1TrackerSourceAccountsPostRequest | ApiV1TrackerSourceAccountsPostRequest |
ApiV1PublisherPushCampaignsPost200Response
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ApiV1TrackerSourcesGet200Response ApiV1TrackerSourcesGet(ctx).Execute()
List traffic sources.
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/goadserver/goadserver-go"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.TrackerSourcesAPI.ApiV1TrackerSourcesGet(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `TrackerSourcesAPI.ApiV1TrackerSourcesGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ApiV1TrackerSourcesGet`: ApiV1TrackerSourcesGet200Response
fmt.Fprintf(os.Stdout, "Response from `TrackerSourcesAPI.ApiV1TrackerSourcesGet`: %v\n", resp)
}This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiApiV1TrackerSourcesGetRequest struct via the builder pattern
ApiV1TrackerSourcesGet200Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ApiV1PublisherPushCampaignsIdDelete200Response ApiV1TrackerSourcesIdDelete(ctx, id).Execute()
Delete a traffic source.
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/goadserver/goadserver-go"
)
func main() {
id := int32(56) // int32 | Source ID.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.TrackerSourcesAPI.ApiV1TrackerSourcesIdDelete(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `TrackerSourcesAPI.ApiV1TrackerSourcesIdDelete``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ApiV1TrackerSourcesIdDelete`: ApiV1PublisherPushCampaignsIdDelete200Response
fmt.Fprintf(os.Stdout, "Response from `TrackerSourcesAPI.ApiV1TrackerSourcesIdDelete`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| id | int32 | Source ID. |
Other parameters are passed through a pointer to a apiApiV1TrackerSourcesIdDeleteRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
ApiV1PublisherPushCampaignsIdDelete200Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ApiV1PublisherPushCampaignsPost200Response ApiV1TrackerSourcesIdPut(ctx, id).ApiV1TrackerSourcesIdPutRequest(apiV1TrackerSourcesIdPutRequest).Execute()
Update a traffic source.
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/goadserver/goadserver-go"
)
func main() {
id := int32(56) // int32 | Source ID.
apiV1TrackerSourcesIdPutRequest := *openapiclient.NewApiV1TrackerSourcesIdPutRequest() // ApiV1TrackerSourcesIdPutRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.TrackerSourcesAPI.ApiV1TrackerSourcesIdPut(context.Background(), id).ApiV1TrackerSourcesIdPutRequest(apiV1TrackerSourcesIdPutRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `TrackerSourcesAPI.ApiV1TrackerSourcesIdPut``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ApiV1TrackerSourcesIdPut`: ApiV1PublisherPushCampaignsPost200Response
fmt.Fprintf(os.Stdout, "Response from `TrackerSourcesAPI.ApiV1TrackerSourcesIdPut`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| id | int32 | Source ID. |
Other parameters are passed through a pointer to a apiApiV1TrackerSourcesIdPutRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
apiV1TrackerSourcesIdPutRequest | ApiV1TrackerSourcesIdPutRequest | |
ApiV1PublisherPushCampaignsPost200Response
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ApiV1PublisherPushCampaignsPost200Response ApiV1TrackerSourcesPost(ctx).ApiV1TrackerSourcesPostRequest(apiV1TrackerSourcesPostRequest).Execute()
Create a traffic source.
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/goadserver/goadserver-go"
)
func main() {
apiV1TrackerSourcesPostRequest := *openapiclient.NewApiV1TrackerSourcesPostRequest("Facebook — account A") // ApiV1TrackerSourcesPostRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.TrackerSourcesAPI.ApiV1TrackerSourcesPost(context.Background()).ApiV1TrackerSourcesPostRequest(apiV1TrackerSourcesPostRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `TrackerSourcesAPI.ApiV1TrackerSourcesPost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ApiV1TrackerSourcesPost`: ApiV1PublisherPushCampaignsPost200Response
fmt.Fprintf(os.Stdout, "Response from `TrackerSourcesAPI.ApiV1TrackerSourcesPost`: %v\n", resp)
}Other parameters are passed through a pointer to a apiApiV1TrackerSourcesPostRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| apiV1TrackerSourcesPostRequest | ApiV1TrackerSourcesPostRequest |
ApiV1PublisherPushCampaignsPost200Response
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ApiV1TrackerTrackingLinksIdZoneCostsGet200Response ApiV1TrackerSourcesSiteidCampaignsGet(ctx, siteid).Execute()
Campaigns reported by a source's connected ad account.
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/goadserver/goadserver-go"
)
func main() {
siteid := int32(56) // int32 | Source ID.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.TrackerSourcesAPI.ApiV1TrackerSourcesSiteidCampaignsGet(context.Background(), siteid).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `TrackerSourcesAPI.ApiV1TrackerSourcesSiteidCampaignsGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ApiV1TrackerSourcesSiteidCampaignsGet`: ApiV1TrackerTrackingLinksIdZoneCostsGet200Response
fmt.Fprintf(os.Stdout, "Response from `TrackerSourcesAPI.ApiV1TrackerSourcesSiteidCampaignsGet`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| siteid | int32 | Source ID. |
Other parameters are passed through a pointer to a apiApiV1TrackerSourcesSiteidCampaignsGetRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
ApiV1TrackerTrackingLinksIdZoneCostsGet200Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]