Skip to content

Latest commit

 

History

History
385 lines (241 loc) · 10.8 KB

TrackerSettingsAPI.md

File metadata and controls

385 lines (241 loc) · 10.8 KB

\TrackerSettingsAPI

All URIs are relative to https://up.go-adserver.com

Method HTTP request Description
ApiV1TrackerCountriesGet Get /api/v1/tracker/countries List countries seen in the caller's traffic.
ApiV1TrackerCustomParamsGet Get /api/v1/tracker/custom-params Get the custom-parameter slots.
ApiV1TrackerCustomParamsPut Put /api/v1/tracker/custom-params Name the custom-parameter slots.
ApiV1TrackerSettingsGet Get /api/v1/tracker/settings Tracker settings for this account.
ApiV1TrackerSourceTemplatesGet Get /api/v1/tracker/source-templates List traffic-source templates.
ApiV1TrackerTokensGet Get /api/v1/tracker/tokens List the macro tokens.

ApiV1TrackerCountriesGet

ApiV1TrackerTrackingLinksIdZoneCostsGet200Response ApiV1TrackerCountriesGet(ctx).Execute()

List countries seen in the caller's traffic.

Example

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.TrackerSettingsAPI.ApiV1TrackerCountriesGet(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `TrackerSettingsAPI.ApiV1TrackerCountriesGet``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `ApiV1TrackerCountriesGet`: ApiV1TrackerTrackingLinksIdZoneCostsGet200Response
	fmt.Fprintf(os.Stdout, "Response from `TrackerSettingsAPI.ApiV1TrackerCountriesGet`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiApiV1TrackerCountriesGetRequest struct via the builder pattern

Return type

ApiV1TrackerTrackingLinksIdZoneCostsGet200Response

Authorization

apiKey

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

ApiV1TrackerCustomParamsGet

ApiV1TrackerTrackingLinksIdZoneCostsGet200Response ApiV1TrackerCustomParamsGet(ctx).Execute()

Get the custom-parameter slots.

Example

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.TrackerSettingsAPI.ApiV1TrackerCustomParamsGet(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `TrackerSettingsAPI.ApiV1TrackerCustomParamsGet``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `ApiV1TrackerCustomParamsGet`: ApiV1TrackerTrackingLinksIdZoneCostsGet200Response
	fmt.Fprintf(os.Stdout, "Response from `TrackerSettingsAPI.ApiV1TrackerCustomParamsGet`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiApiV1TrackerCustomParamsGetRequest struct via the builder pattern

Return type

ApiV1TrackerTrackingLinksIdZoneCostsGet200Response

Authorization

apiKey

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

ApiV1TrackerCustomParamsPut

ApiV1TrackerTrackingLinksIdZoneCostsGet200Response ApiV1TrackerCustomParamsPut(ctx).ApiV1TrackerCustomParamsPutRequest(apiV1TrackerCustomParamsPutRequest).Execute()

Name the custom-parameter slots.

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/goadserver/goadserver-go"
)

func main() {
	apiV1TrackerCustomParamsPutRequest := *openapiclient.NewApiV1TrackerCustomParamsPutRequest([]openapiclient.ApiV1TrackerCustomParamsPutRequestSlotsInner{*openapiclient.NewApiV1TrackerCustomParamsPutRequestSlotsInner()}) // ApiV1TrackerCustomParamsPutRequest | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.TrackerSettingsAPI.ApiV1TrackerCustomParamsPut(context.Background()).ApiV1TrackerCustomParamsPutRequest(apiV1TrackerCustomParamsPutRequest).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `TrackerSettingsAPI.ApiV1TrackerCustomParamsPut``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `ApiV1TrackerCustomParamsPut`: ApiV1TrackerTrackingLinksIdZoneCostsGet200Response
	fmt.Fprintf(os.Stdout, "Response from `TrackerSettingsAPI.ApiV1TrackerCustomParamsPut`: %v\n", resp)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiApiV1TrackerCustomParamsPutRequest struct via the builder pattern

Name Type Description Notes
apiV1TrackerCustomParamsPutRequest ApiV1TrackerCustomParamsPutRequest

Return type

ApiV1TrackerTrackingLinksIdZoneCostsGet200Response

Authorization

apiKey

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

ApiV1TrackerSettingsGet

ApiV1TrackerTrackingLinksIdZoneCostsGet200Response ApiV1TrackerSettingsGet(ctx).Execute()

Tracker settings for this account.

Example

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.TrackerSettingsAPI.ApiV1TrackerSettingsGet(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `TrackerSettingsAPI.ApiV1TrackerSettingsGet``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `ApiV1TrackerSettingsGet`: ApiV1TrackerTrackingLinksIdZoneCostsGet200Response
	fmt.Fprintf(os.Stdout, "Response from `TrackerSettingsAPI.ApiV1TrackerSettingsGet`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiApiV1TrackerSettingsGetRequest struct via the builder pattern

Return type

ApiV1TrackerTrackingLinksIdZoneCostsGet200Response

Authorization

apiKey

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

ApiV1TrackerSourceTemplatesGet

ApiV1TrackerTrackingLinksIdZoneCostsGet200Response ApiV1TrackerSourceTemplatesGet(ctx).Execute()

List traffic-source templates.

Example

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.TrackerSettingsAPI.ApiV1TrackerSourceTemplatesGet(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `TrackerSettingsAPI.ApiV1TrackerSourceTemplatesGet``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `ApiV1TrackerSourceTemplatesGet`: ApiV1TrackerTrackingLinksIdZoneCostsGet200Response
	fmt.Fprintf(os.Stdout, "Response from `TrackerSettingsAPI.ApiV1TrackerSourceTemplatesGet`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiApiV1TrackerSourceTemplatesGetRequest struct via the builder pattern

Return type

ApiV1TrackerTrackingLinksIdZoneCostsGet200Response

Authorization

apiKey

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

ApiV1TrackerTokensGet

ApiV1TrackerTrackingLinksIdZoneCostsGet200Response ApiV1TrackerTokensGet(ctx).Execute()

List the macro tokens.

Example

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.TrackerSettingsAPI.ApiV1TrackerTokensGet(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `TrackerSettingsAPI.ApiV1TrackerTokensGet``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `ApiV1TrackerTokensGet`: ApiV1TrackerTrackingLinksIdZoneCostsGet200Response
	fmt.Fprintf(os.Stdout, "Response from `TrackerSettingsAPI.ApiV1TrackerTokensGet`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiApiV1TrackerTokensGetRequest struct via the builder pattern

Return type

ApiV1TrackerTrackingLinksIdZoneCostsGet200Response

Authorization

apiKey

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]