Skip to content

Latest commit

 

History

History
980 lines (628 loc) · 29.3 KB

TrackerAutomationAPI.md

File metadata and controls

980 lines (628 loc) · 29.3 KB

\TrackerAutomationAPI

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

Method HTTP request Description
ApiV1TrackerExportTypeGet Get /api/v1/tracker/export/{type} Export tracker entities as CSV.
ApiV1TrackerImportTypePost Post /api/v1/tracker/import/{type} Bulk-import offers from CSV.
ApiV1TrackerReportSchedulesGet Get /api/v1/tracker/report-schedules List scheduled report deliveries.
ApiV1TrackerReportSchedulesIdDelete Delete /api/v1/tracker/report-schedules/{id} Delete a report schedule.
ApiV1TrackerReportSchedulesIdGet Get /api/v1/tracker/report-schedules/{id} Get one report schedule.
ApiV1TrackerReportSchedulesIdPut Put /api/v1/tracker/report-schedules/{id} Update a report schedule.
ApiV1TrackerReportSchedulesPost Post /api/v1/tracker/report-schedules Schedule a recurring report.
ApiV1TrackerRulesGet Get /api/v1/tracker/rules List automation rules.
ApiV1TrackerRulesIdDelete Delete /api/v1/tracker/rules/{id} Delete a rule.
ApiV1TrackerRulesIdExecutionsGet Get /api/v1/tracker/rules/{id}/executions Execution history for one rule.
ApiV1TrackerRulesIdGet Get /api/v1/tracker/rules/{id} Get one rule.
ApiV1TrackerRulesIdPut Put /api/v1/tracker/rules/{id} Update a rule.
ApiV1TrackerRulesIdRunPost Post /api/v1/tracker/rules/{id}/run Run a rule now.
ApiV1TrackerRulesPost Post /api/v1/tracker/rules Create an automation rule.

ApiV1TrackerExportTypeGet

string ApiV1TrackerExportTypeGet(ctx, type_).Execute()

Export tracker entities as CSV.

Example

package main

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

func main() {
	type_ := "type__example" // string | What to export.

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

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
type_ string What to export.

Other Parameters

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

Name Type Description Notes

Return type

string

Authorization

apiKey

HTTP request headers

  • Content-Type: Not defined
  • Accept: text/csv

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

ApiV1TrackerImportTypePost

ApiV1TrackerTrackingLinksIdZoneCostsGet200Response ApiV1TrackerImportTypePost(ctx, type_).File(file).Commit(commit).Overwrite(overwrite).Execute()

Bulk-import offers from CSV.

Example

package main

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

func main() {
	type_ := "type__example" // string | What to import.
	file := os.NewFile(1234, "some_file") // *os.File | The CSV, at most 10 MiB.
	commit := "commit_example" // string | \\\"true\\\" to write. Absent = validate and report only. (optional)
	overwrite := "overwrite_example" // string | \\\"true\\\" to update rows whose id column matches one of the caller's own. (optional)

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.TrackerAutomationAPI.ApiV1TrackerImportTypePost(context.Background(), type_).File(file).Commit(commit).Overwrite(overwrite).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `TrackerAutomationAPI.ApiV1TrackerImportTypePost``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `ApiV1TrackerImportTypePost`: ApiV1TrackerTrackingLinksIdZoneCostsGet200Response
	fmt.Fprintf(os.Stdout, "Response from `TrackerAutomationAPI.ApiV1TrackerImportTypePost`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
type_ string What to import.

Other Parameters

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

Name Type Description Notes

file | *os.File | The CSV, at most 10 MiB. | commit | string | \"true\" to write. Absent = validate and report only. | overwrite | string | \"true\" to update rows whose id column matches one of the caller's own. |

Return type

ApiV1TrackerTrackingLinksIdZoneCostsGet200Response

Authorization

apiKey

HTTP request headers

  • Content-Type: multipart/form-data
  • Accept: application/json

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

ApiV1TrackerReportSchedulesGet

ApiV1TrackerReportSchedulesGet200Response ApiV1TrackerReportSchedulesGet(ctx).Execute()

List scheduled report deliveries.

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

Path Parameters

This endpoint does not need any parameter.

Other Parameters

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

Return type

ApiV1TrackerReportSchedulesGet200Response

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]

ApiV1TrackerReportSchedulesIdDelete

ApiV1PublisherPushCampaignsIdDelete200Response ApiV1TrackerReportSchedulesIdDelete(ctx, id).Execute()

Delete a report schedule.

Example

package main

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

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

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

Path Parameters

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

Other Parameters

Other parameters are passed through a pointer to a apiApiV1TrackerReportSchedulesIdDeleteRequest 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]

ApiV1TrackerReportSchedulesIdGet

ApiV1TrackerReportSchedulesIdGet200Response ApiV1TrackerReportSchedulesIdGet(ctx, id).Execute()

Get one report schedule.

Example

package main

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

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

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

Path Parameters

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

Other Parameters

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

Name Type Description Notes

Return type

ApiV1TrackerReportSchedulesIdGet200Response

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]

ApiV1TrackerReportSchedulesIdPut

ApiV1PublisherPushCampaignsPost200Response ApiV1TrackerReportSchedulesIdPut(ctx, id).ApiV1TrackerReportSchedulesIdPutRequest(apiV1TrackerReportSchedulesIdPutRequest).Execute()

Update a report schedule.

Example

package main

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

func main() {
	id := int32(56) // int32 | Schedule ID.
	apiV1TrackerReportSchedulesIdPutRequest := *openapiclient.NewApiV1TrackerReportSchedulesIdPutRequest() // ApiV1TrackerReportSchedulesIdPutRequest | 

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

Path Parameters

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

Other Parameters

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

Name Type Description Notes

apiV1TrackerReportSchedulesIdPutRequest | ApiV1TrackerReportSchedulesIdPutRequest | |

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]

ApiV1TrackerReportSchedulesPost

ApiV1PublisherPushCampaignsPost200Response ApiV1TrackerReportSchedulesPost(ctx).ApiV1TrackerReportSchedulesPostRequest(apiV1TrackerReportSchedulesPostRequest).Execute()

Schedule a recurring report.

Example

package main

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

func main() {
	apiV1TrackerReportSchedulesPostRequest := *openapiclient.NewApiV1TrackerReportSchedulesPostRequest("Name_example", "ReportType_example", "Cadence_example") // ApiV1TrackerReportSchedulesPostRequest | 

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

Path Parameters

Other Parameters

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

Name Type Description Notes
apiV1TrackerReportSchedulesPostRequest ApiV1TrackerReportSchedulesPostRequest

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]

ApiV1TrackerRulesGet

ApiV1TrackerRulesGet200Response ApiV1TrackerRulesGet(ctx).Execute()

List automation rules.

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

Path Parameters

This endpoint does not need any parameter.

Other Parameters

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

Return type

ApiV1TrackerRulesGet200Response

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]

ApiV1TrackerRulesIdDelete

ApiV1PublisherPushCampaignsIdDelete200Response ApiV1TrackerRulesIdDelete(ctx, id).Execute()

Delete a rule.

Example

package main

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

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

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

Path Parameters

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

Other Parameters

Other parameters are passed through a pointer to a apiApiV1TrackerRulesIdDeleteRequest 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]

ApiV1TrackerRulesIdExecutionsGet

ApiV1TrackerTrackingLinksIdZoneCostsGet200Response ApiV1TrackerRulesIdExecutionsGet(ctx, id).Execute()

Execution history for one rule.

Example

package main

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

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

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

Path Parameters

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

Other Parameters

Other parameters are passed through a pointer to a apiApiV1TrackerRulesIdExecutionsGetRequest 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]

ApiV1TrackerRulesIdGet

ApiV1TrackerRulesIdGet200Response ApiV1TrackerRulesIdGet(ctx, id).Execute()

Get one rule.

Example

package main

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

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

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

Path Parameters

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

Other Parameters

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

Name Type Description Notes

Return type

ApiV1TrackerRulesIdGet200Response

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]

ApiV1TrackerRulesIdPut

ApiV1PublisherPushCampaignsPost200Response ApiV1TrackerRulesIdPut(ctx, id).ApiV1TrackerRulesIdPutRequest(apiV1TrackerRulesIdPutRequest).Execute()

Update a rule.

Example

package main

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

func main() {
	id := int32(56) // int32 | Rule ID.
	apiV1TrackerRulesIdPutRequest := *openapiclient.NewApiV1TrackerRulesIdPutRequest() // ApiV1TrackerRulesIdPutRequest | 

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

Path Parameters

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

Other Parameters

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

Name Type Description Notes

apiV1TrackerRulesIdPutRequest | ApiV1TrackerRulesIdPutRequest | |

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]

ApiV1TrackerRulesIdRunPost

ApiV1TrackerTrackingLinksIdZoneCostsGet200Response ApiV1TrackerRulesIdRunPost(ctx, id).Window(window).Execute()

Run a rule now.

Example

package main

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

func main() {
	id := int32(56) // int32 | Rule ID.
	window := "window_example" // string | Override the evaluation window for this run. (optional)

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

Path Parameters

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

Other Parameters

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

Name Type Description Notes

window | string | Override the evaluation window for this run. |

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]

ApiV1TrackerRulesPost

ApiV1PublisherPushCampaignsPost200Response ApiV1TrackerRulesPost(ctx).ApiV1TrackerRulesPostRequest(apiV1TrackerRulesPostRequest).Execute()

Create an automation rule.

Example

package main

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

func main() {
	apiV1TrackerRulesPostRequest := *openapiclient.NewApiV1TrackerRulesPostRequest("Pause dead placements", "Scope_example", "Schedule_example") // ApiV1TrackerRulesPostRequest | 

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

Path Parameters

Other Parameters

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

Name Type Description Notes
apiV1TrackerRulesPostRequest ApiV1TrackerRulesPostRequest

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]