Skip to content

Latest commit

 

History

History
856 lines (544 loc) · 28.3 KB

TrackerTrackingLinksAPI.md

File metadata and controls

856 lines (544 loc) · 28.3 KB

\TrackerTrackingLinksAPI

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

Method HTTP request Description
ApiV1TrackerTrackingLinksBulkPost Post /api/v1/tracker/tracking-links/bulk Delete many tracking links.
ApiV1TrackerTrackingLinksGet Get /api/v1/tracker/tracking-links List tracking links.
ApiV1TrackerTrackingLinksIdBlocklistGet Get /api/v1/tracker/tracking-links/{id}/blocklist List zones blocked on one link.
ApiV1TrackerTrackingLinksIdBlocklistPost Post /api/v1/tracker/tracking-links/{id}/blocklist Block a zone on one link.
ApiV1TrackerTrackingLinksIdBlocklistZoneIdDelete Delete /api/v1/tracker/tracking-links/{id}/blocklist/{zoneId} Unblock a zone on one link.
ApiV1TrackerTrackingLinksIdDelete Delete /api/v1/tracker/tracking-links/{id} Delete a tracking link.
ApiV1TrackerTrackingLinksIdNetworkBindingDelete Delete /api/v1/tracker/tracking-links/{id}/network-binding Unbind a tracking link from its ad-network campaign.
ApiV1TrackerTrackingLinksIdNetworkBindingPut Put /api/v1/tracker/tracking-links/{id}/network-binding Bind a tracking link to an ad-network campaign.
ApiV1TrackerTrackingLinksIdPut Put /api/v1/tracker/tracking-links/{id} Update a tracking link.
ApiV1TrackerTrackingLinksIdToggleActivePost Post /api/v1/tracker/tracking-links/{id}/toggle-active Pause or resume the bound network campaign.
ApiV1TrackerTrackingLinksIdZoneCostsGet Get /api/v1/tracker/tracking-links/{id}/zone-costs Per-zone cost and performance for one link.
ApiV1TrackerTrackingLinksPost Post /api/v1/tracker/tracking-links Create a tracking link.

ApiV1TrackerTrackingLinksBulkPost

ApiV1PublisherPushSubscribersActionPost200Response ApiV1TrackerTrackingLinksBulkPost(ctx).ApiV1TrackerTrackingLinksBulkPostRequest(apiV1TrackerTrackingLinksBulkPostRequest).Execute()

Delete many tracking links.

Example

package main

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

func main() {
	apiV1TrackerTrackingLinksBulkPostRequest := *openapiclient.NewApiV1TrackerTrackingLinksBulkPostRequest("Action_example", []int32{int32(123)}) // ApiV1TrackerTrackingLinksBulkPostRequest | 

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

Path Parameters

Other Parameters

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

Name Type Description Notes
apiV1TrackerTrackingLinksBulkPostRequest ApiV1TrackerTrackingLinksBulkPostRequest

Return type

ApiV1PublisherPushSubscribersActionPost200Response

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]

ApiV1TrackerTrackingLinksGet

ApiV1TrackerTrackingLinksGet200Response ApiV1TrackerTrackingLinksGet(ctx).Execute()

List tracking links.

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

Path Parameters

This endpoint does not need any parameter.

Other Parameters

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

Return type

ApiV1TrackerTrackingLinksGet200Response

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]

ApiV1TrackerTrackingLinksIdBlocklistGet

ApiV1TrackerTrackingLinksIdZoneCostsGet200Response ApiV1TrackerTrackingLinksIdBlocklistGet(ctx, id).Execute()

List zones blocked on one link.

Example

package main

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

func main() {
	id := int32(56) // int32 | Tracking link ID.

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

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
id int32 Tracking link ID.

Other Parameters

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

Name Type Description Notes

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]

ApiV1TrackerTrackingLinksIdBlocklistPost

ApiV1TrackerTrackingLinksIdZoneCostsGet200Response ApiV1TrackerTrackingLinksIdBlocklistPost(ctx, id).ApiV1TrackerTrackingLinksIdBlocklistPostRequest(apiV1TrackerTrackingLinksIdBlocklistPostRequest).Execute()

Block a zone on one link.

Example

package main

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

func main() {
	id := int32(56) // int32 | Tracking link ID.
	apiV1TrackerTrackingLinksIdBlocklistPostRequest := *openapiclient.NewApiV1TrackerTrackingLinksIdBlocklistPostRequest("ZoneId_example") // ApiV1TrackerTrackingLinksIdBlocklistPostRequest | 

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

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
id int32 Tracking link ID.

Other Parameters

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

Name Type Description Notes

apiV1TrackerTrackingLinksIdBlocklistPostRequest | ApiV1TrackerTrackingLinksIdBlocklistPostRequest | |

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]

ApiV1TrackerTrackingLinksIdBlocklistZoneIdDelete

ApiV1PublisherPushCampaignsIdDelete200Response ApiV1TrackerTrackingLinksIdBlocklistZoneIdDelete(ctx, id, zoneId).Execute()

Unblock a zone on one link.

Example

package main

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

func main() {
	id := int32(56) // int32 | Tracking link ID.
	zoneId := "zoneId_example" // string | Zone / placement id.

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

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
id int32 Tracking link ID.
zoneId string Zone / placement id.

Other Parameters

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

Name Type Description Notes

Return type

ApiV1PublisherPushCampaignsIdDelete200Response

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]

ApiV1TrackerTrackingLinksIdDelete

ApiV1PublisherPushCampaignsIdDelete200Response ApiV1TrackerTrackingLinksIdDelete(ctx, id).Execute()

Delete a tracking link.

Example

package main

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

func main() {
	id := int32(56) // int32 | Tracking link ID.

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

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
id int32 Tracking link ID.

Other Parameters

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

Name Type Description Notes

Return type

ApiV1PublisherPushCampaignsIdDelete200Response

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]

ApiV1TrackerTrackingLinksIdNetworkBindingDelete

ApiV1PublisherPushCampaignsIdDelete200Response ApiV1TrackerTrackingLinksIdNetworkBindingDelete(ctx, id).Execute()

Unbind a tracking link from its ad-network campaign.

Example

package main

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

func main() {
	id := int32(56) // int32 | Tracking link ID.

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

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
id int32 Tracking link ID.

Other Parameters

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

Name Type Description Notes

Return type

ApiV1PublisherPushCampaignsIdDelete200Response

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]

ApiV1TrackerTrackingLinksIdNetworkBindingPut

ApiV1TrackerTrackingLinksIdZoneCostsGet200Response ApiV1TrackerTrackingLinksIdNetworkBindingPut(ctx, id).ApiV1TrackerTrackingLinksIdNetworkBindingPutRequest(apiV1TrackerTrackingLinksIdNetworkBindingPutRequest).Execute()

Bind a tracking link to an ad-network campaign.

Example

package main

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

func main() {
	id := int32(56) // int32 | Tracking link ID.
	apiV1TrackerTrackingLinksIdNetworkBindingPutRequest := *openapiclient.NewApiV1TrackerTrackingLinksIdNetworkBindingPutRequest(int32(123)) // ApiV1TrackerTrackingLinksIdNetworkBindingPutRequest | 

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

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
id int32 Tracking link ID.

Other Parameters

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

Name Type Description Notes

apiV1TrackerTrackingLinksIdNetworkBindingPutRequest | ApiV1TrackerTrackingLinksIdNetworkBindingPutRequest | |

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]

ApiV1TrackerTrackingLinksIdPut

ApiV1PublisherPushCampaignsPost200Response ApiV1TrackerTrackingLinksIdPut(ctx, id).ApiV1TrackerTrackingLinksIdPutRequest(apiV1TrackerTrackingLinksIdPutRequest).Execute()

Update a tracking link.

Example

package main

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

func main() {
	id := int32(56) // int32 | Tracking link (adzone) ID.
	apiV1TrackerTrackingLinksIdPutRequest := *openapiclient.NewApiV1TrackerTrackingLinksIdPutRequest() // ApiV1TrackerTrackingLinksIdPutRequest | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.TrackerTrackingLinksAPI.ApiV1TrackerTrackingLinksIdPut(context.Background(), id).ApiV1TrackerTrackingLinksIdPutRequest(apiV1TrackerTrackingLinksIdPutRequest).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `TrackerTrackingLinksAPI.ApiV1TrackerTrackingLinksIdPut``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `ApiV1TrackerTrackingLinksIdPut`: ApiV1PublisherPushCampaignsPost200Response
	fmt.Fprintf(os.Stdout, "Response from `TrackerTrackingLinksAPI.ApiV1TrackerTrackingLinksIdPut`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
id int32 Tracking link (adzone) ID.

Other Parameters

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

Name Type Description Notes

apiV1TrackerTrackingLinksIdPutRequest | ApiV1TrackerTrackingLinksIdPutRequest | |

Return type

ApiV1PublisherPushCampaignsPost200Response

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]

ApiV1TrackerTrackingLinksIdToggleActivePost

ApiV1TrackerTrackingLinksIdToggleActivePost200Response ApiV1TrackerTrackingLinksIdToggleActivePost(ctx, id).ApiV1CampaignsTypeIdActivePatchRequest(apiV1CampaignsTypeIdActivePatchRequest).Execute()

Pause or resume the bound network campaign.

Example

package main

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

func main() {
	id := int32(56) // int32 | Tracking link ID.
	apiV1CampaignsTypeIdActivePatchRequest := *openapiclient.NewApiV1CampaignsTypeIdActivePatchRequest(false) // ApiV1CampaignsTypeIdActivePatchRequest | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.TrackerTrackingLinksAPI.ApiV1TrackerTrackingLinksIdToggleActivePost(context.Background(), id).ApiV1CampaignsTypeIdActivePatchRequest(apiV1CampaignsTypeIdActivePatchRequest).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `TrackerTrackingLinksAPI.ApiV1TrackerTrackingLinksIdToggleActivePost``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `ApiV1TrackerTrackingLinksIdToggleActivePost`: ApiV1TrackerTrackingLinksIdToggleActivePost200Response
	fmt.Fprintf(os.Stdout, "Response from `TrackerTrackingLinksAPI.ApiV1TrackerTrackingLinksIdToggleActivePost`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
id int32 Tracking link ID.

Other Parameters

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

Name Type Description Notes

apiV1CampaignsTypeIdActivePatchRequest | ApiV1CampaignsTypeIdActivePatchRequest | |

Return type

ApiV1TrackerTrackingLinksIdToggleActivePost200Response

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]

ApiV1TrackerTrackingLinksIdZoneCostsGet

ApiV1TrackerTrackingLinksIdZoneCostsGet200Response ApiV1TrackerTrackingLinksIdZoneCostsGet(ctx, id).Days(days).Execute()

Per-zone cost and performance for one link.

Example

package main

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

func main() {
	id := int32(56) // int32 | Tracking link ID.
	days := int32(56) // int32 | Trailing window in days. (optional) (default to 7)

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

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
id int32 Tracking link ID.

Other Parameters

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

Name Type Description Notes

days | int32 | Trailing window in days. | [default to 7]

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]

ApiV1TrackerTrackingLinksPost

ApiV1PublisherPushCampaignsPost200Response ApiV1TrackerTrackingLinksPost(ctx).ApiV1TrackerTrackingLinksPostRequest(apiV1TrackerTrackingLinksPostRequest).Execute()

Create a tracking link.

Example

package main

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

func main() {
	apiV1TrackerTrackingLinksPostRequest := *openapiclient.NewApiV1TrackerTrackingLinksPostRequest("FB — dating US", int32(123)) // ApiV1TrackerTrackingLinksPostRequest | 

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

Path Parameters

Other Parameters

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

Name Type Description Notes
apiV1TrackerTrackingLinksPostRequest ApiV1TrackerTrackingLinksPostRequest

Return type

ApiV1PublisherPushCampaignsPost200Response

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]