All URIs are relative to https://up.go-adserver.com
| Method | HTTP request | Description |
|---|---|---|
| ApiV1UrlPoolsGet | Get /api/v1/url-pools | List URL pools. |
| ApiV1UrlPoolsIdClonePost | Post /api/v1/url-pools/{id}/clone | Clone a URL pool with all its URLs. |
| ApiV1UrlPoolsIdDelete | Delete /api/v1/url-pools/{id} | Soft-delete a URL pool. |
| ApiV1UrlPoolsIdGet | Get /api/v1/url-pools/{id} | Show one URL pool. |
| ApiV1UrlPoolsIdPut | Put /api/v1/url-pools/{id} | Update URL pool meta. |
| ApiV1UrlPoolsIdRecoverPost | Post /api/v1/url-pools/{id}/recover | Restore an archived url pool. |
| ApiV1UrlPoolsIdUrlsGet | Get /api/v1/url-pools/{id}/urls | List URLs in a pool. |
| ApiV1UrlPoolsIdUrlsPost | Post /api/v1/url-pools/{id}/urls | Add a URL to a pool. |
| ApiV1UrlPoolsIdUrlsUrlIdClonePost | Post /api/v1/url-pools/{id}/urls/{urlId}/clone | Clone a single URL within the same pool. |
| ApiV1UrlPoolsIdUrlsUrlIdDelete | Delete /api/v1/url-pools/{id}/urls/{urlId} | Soft-delete a single URL. |
| ApiV1UrlPoolsIdUrlsUrlIdGet | Get /api/v1/url-pools/{id}/urls/{urlId} | Show a single URL. |
| ApiV1UrlPoolsIdUrlsUrlIdPut | Put /api/v1/url-pools/{id}/urls/{urlId} | Update a single URL. |
| ApiV1UrlPoolsIdUrlsUrlIdTogglePut | Put /api/v1/url-pools/{id}/urls/{urlId}/toggle | Toggle a URL on / off. |
| ApiV1UrlPoolsIdUrlsUrlIdWeightPut | Put /api/v1/url-pools/{id}/urls/{urlId}/weight | Set a URL's rotation weight. |
| ApiV1UrlPoolsIdUsedInGet | Get /api/v1/url-pools/{id}/used-in | List campaigns / ads that reference this URL pool. |
| ApiV1UrlPoolsPost | Post /api/v1/url-pools | Create a URL pool. |
| ApiV1UrlPoolsReplaceUrlPut | Put /api/v1/url-pools/replace-url | Search & replace text across your URL-pool URLs. |
ApiV1CreativesGet200Response ApiV1UrlPoolsGet(ctx).SelectStats(selectStats).From(from).To(to).Page(page).PerPage(perPage).FilterId(filterId).FilterTitle(filterTitle).FilterName(filterName).State(state).Search(search).SortBy(sortBy).SortDir(sortDir).Execute()
List URL pools.
package main
import (
"context"
"fmt"
"os"
"time"
openapiclient "github.com/goadserver/goadserver-go"
)
func main() {
selectStats := "selectStats_example" // string | 1 = add clicks per pool for the from / to window (default the last 7 days). (optional)
from := time.Now() // string | With select_stats=1: first day of the stats window (YYYY-MM-DD). Both from and to are needed; otherwise the last 7 days. (optional)
to := time.Now() // string | With select_stats=1: last day of the stats window (YYYY-MM-DD). (optional)
page := int32(56) // int32 | (optional) (default to 1)
perPage := int32(56) // int32 | (optional) (default to 20)
filterId := int32(56) // int32 | (optional)
filterTitle := "filterTitle_example" // string | Title contains. (optional)
filterName := "filterName_example" // string | Same as filter_title. (optional)
state := "state_example" // string | deleted = the archived pools (deleted from the pool page or archived from Cleanup), to restore with POST /{id}/recover. Purged pools are in neither list. (optional) (default to "live")
search := "search_example" // string | Title contains. (optional)
sortBy := "sortBy_example" // string | (optional) (default to "id")
sortDir := "sortDir_example" // string | (optional) (default to "desc")
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.URLPoolsAPI.ApiV1UrlPoolsGet(context.Background()).SelectStats(selectStats).From(from).To(to).Page(page).PerPage(perPage).FilterId(filterId).FilterTitle(filterTitle).FilterName(filterName).State(state).Search(search).SortBy(sortBy).SortDir(sortDir).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `URLPoolsAPI.ApiV1UrlPoolsGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ApiV1UrlPoolsGet`: ApiV1CreativesGet200Response
fmt.Fprintf(os.Stdout, "Response from `URLPoolsAPI.ApiV1UrlPoolsGet`: %v\n", resp)
}Other parameters are passed through a pointer to a apiApiV1UrlPoolsGetRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| selectStats | string | 1 = add clicks per pool for the from / to window (default the last 7 days). | |
| from | string | With select_stats=1: first day of the stats window (YYYY-MM-DD). Both from and to are needed; otherwise the last 7 days. | |
| to | string | With select_stats=1: last day of the stats window (YYYY-MM-DD). | |
| page | int32 | [default to 1] | |
| perPage | int32 | [default to 20] | |
| filterId | int32 | ||
| filterTitle | string | Title contains. | |
| filterName | string | Same as filter_title. | |
| state | string | deleted = the archived pools (deleted from the pool page or archived from Cleanup), to restore with POST /{id}/recover. Purged pools are in neither list. | [default to "live"] |
| search | string | Title contains. | |
| sortBy | string | [default to "id"] | |
| sortDir | string | [default to "desc"] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ApiV1CampaignsTypeCampaignIdAdsAdIdClonePost200Response ApiV1UrlPoolsIdClonePost(ctx, id).Execute()
Clone a URL pool with all its URLs.
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/goadserver/goadserver-go"
)
func main() {
id := int32(56) // int32 |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.URLPoolsAPI.ApiV1UrlPoolsIdClonePost(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `URLPoolsAPI.ApiV1UrlPoolsIdClonePost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ApiV1UrlPoolsIdClonePost`: ApiV1CampaignsTypeCampaignIdAdsAdIdClonePost200Response
fmt.Fprintf(os.Stdout, "Response from `URLPoolsAPI.ApiV1UrlPoolsIdClonePost`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| id | int32 |
Other parameters are passed through a pointer to a apiApiV1UrlPoolsIdClonePostRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
ApiV1CampaignsTypeCampaignIdAdsAdIdClonePost200Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ApiV1UrlPoolsIdDelete(ctx, id).Execute()
Soft-delete a URL pool.
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/goadserver/goadserver-go"
)
func main() {
id := int32(56) // int32 |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.URLPoolsAPI.ApiV1UrlPoolsIdDelete(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `URLPoolsAPI.ApiV1UrlPoolsIdDelete``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| id | int32 |
Other parameters are passed through a pointer to a apiApiV1UrlPoolsIdDeleteRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
(empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ApiV1UrlPoolsIdGet(ctx, id).Execute()
Show one URL pool.
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/goadserver/goadserver-go"
)
func main() {
id := int32(56) // int32 |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.URLPoolsAPI.ApiV1UrlPoolsIdGet(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `URLPoolsAPI.ApiV1UrlPoolsIdGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| id | int32 |
Other parameters are passed through a pointer to a apiApiV1UrlPoolsIdGetRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
(empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ApiV1UrlPoolsIdPut(ctx, id).ApiV1UrlPoolsIdPutRequest(apiV1UrlPoolsIdPutRequest).Execute()
Update URL pool meta.
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/goadserver/goadserver-go"
)
func main() {
id := int32(56) // int32 |
apiV1UrlPoolsIdPutRequest := *openapiclient.NewApiV1UrlPoolsIdPutRequest() // ApiV1UrlPoolsIdPutRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.URLPoolsAPI.ApiV1UrlPoolsIdPut(context.Background(), id).ApiV1UrlPoolsIdPutRequest(apiV1UrlPoolsIdPutRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `URLPoolsAPI.ApiV1UrlPoolsIdPut``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| id | int32 |
Other parameters are passed through a pointer to a apiApiV1UrlPoolsIdPutRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
apiV1UrlPoolsIdPutRequest | ApiV1UrlPoolsIdPutRequest | |
(empty response body)
- Content-Type: application/json
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ApiV1UrlPoolsIdRecoverPost(ctx, id).Execute()
Restore an archived url pool.
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/goadserver/goadserver-go"
)
func main() {
id := int32(56) // int32 |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.URLPoolsAPI.ApiV1UrlPoolsIdRecoverPost(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `URLPoolsAPI.ApiV1UrlPoolsIdRecoverPost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| id | int32 |
Other parameters are passed through a pointer to a apiApiV1UrlPoolsIdRecoverPostRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
(empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ApiV1UrlPoolsIdUrlsGet(ctx, id).FilterUrl(filterUrl).FilterIsactive(filterIsactive).Search(search).SortBy(sortBy).SortDir(sortDir).Page(page).PerPage(perPage).SelectStats(selectStats).From(from).To(to).Execute()
List URLs in a pool.
package main
import (
"context"
"fmt"
"os"
"time"
openapiclient "github.com/goadserver/goadserver-go"
)
func main() {
id := int32(56) // int32 |
filterUrl := "filterUrl_example" // string | URL contains. (optional)
filterIsactive := int32(56) // int32 | (optional)
search := "search_example" // string | Matches URL, title or keywords. (optional)
sortBy := "sortBy_example" // string | (optional) (default to "id")
sortDir := "sortDir_example" // string | (optional) (default to "desc")
page := int32(56) // int32 | (optional) (default to 1)
perPage := int32(56) // int32 | (optional) (default to 20)
selectStats := "selectStats_example" // string | 1 = add stats per URL for the from / to window (default the last 7 days). (optional)
from := time.Now() // string | With select_stats=1: first day of the stats window (YYYY-MM-DD). Both from and to are needed; otherwise the last 7 days. (optional)
to := time.Now() // string | With select_stats=1: last day of the stats window (YYYY-MM-DD). (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.URLPoolsAPI.ApiV1UrlPoolsIdUrlsGet(context.Background(), id).FilterUrl(filterUrl).FilterIsactive(filterIsactive).Search(search).SortBy(sortBy).SortDir(sortDir).Page(page).PerPage(perPage).SelectStats(selectStats).From(from).To(to).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `URLPoolsAPI.ApiV1UrlPoolsIdUrlsGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| id | int32 |
Other parameters are passed through a pointer to a apiApiV1UrlPoolsIdUrlsGetRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
filterUrl | string | URL contains. | filterIsactive | int32 | | search | string | Matches URL, title or keywords. | sortBy | string | | [default to "id"] sortDir | string | | [default to "desc"] page | int32 | | [default to 1] perPage | int32 | | [default to 20] selectStats | string | 1 = add stats per URL for the from / to window (default the last 7 days). | from | string | With select_stats=1: first day of the stats window (YYYY-MM-DD). Both from and to are needed; otherwise the last 7 days. | to | string | With select_stats=1: last day of the stats window (YYYY-MM-DD). |
(empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ApiV1CampaignsTypeCampaignIdAdsAdIdClonePost200Response ApiV1UrlPoolsIdUrlsPost(ctx, id).ApiV1UrlPoolsIdUrlsPostRequest(apiV1UrlPoolsIdUrlsPostRequest).Execute()
Add a URL to a pool.
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/goadserver/goadserver-go"
)
func main() {
id := int32(56) // int32 |
apiV1UrlPoolsIdUrlsPostRequest := *openapiclient.NewApiV1UrlPoolsIdUrlsPostRequest("https://example.com/lander?src={subid}", "Title_example") // ApiV1UrlPoolsIdUrlsPostRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.URLPoolsAPI.ApiV1UrlPoolsIdUrlsPost(context.Background(), id).ApiV1UrlPoolsIdUrlsPostRequest(apiV1UrlPoolsIdUrlsPostRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `URLPoolsAPI.ApiV1UrlPoolsIdUrlsPost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ApiV1UrlPoolsIdUrlsPost`: ApiV1CampaignsTypeCampaignIdAdsAdIdClonePost200Response
fmt.Fprintf(os.Stdout, "Response from `URLPoolsAPI.ApiV1UrlPoolsIdUrlsPost`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| id | int32 |
Other parameters are passed through a pointer to a apiApiV1UrlPoolsIdUrlsPostRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
apiV1UrlPoolsIdUrlsPostRequest | ApiV1UrlPoolsIdUrlsPostRequest | |
ApiV1CampaignsTypeCampaignIdAdsAdIdClonePost200Response
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ApiV1CampaignsTypeCampaignIdAdsAdIdClonePost200Response ApiV1UrlPoolsIdUrlsUrlIdClonePost(ctx, id, urlId).Execute()
Clone a single URL within the same pool.
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/goadserver/goadserver-go"
)
func main() {
id := int32(56) // int32 |
urlId := int32(56) // int32 |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.URLPoolsAPI.ApiV1UrlPoolsIdUrlsUrlIdClonePost(context.Background(), id, urlId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `URLPoolsAPI.ApiV1UrlPoolsIdUrlsUrlIdClonePost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ApiV1UrlPoolsIdUrlsUrlIdClonePost`: ApiV1CampaignsTypeCampaignIdAdsAdIdClonePost200Response
fmt.Fprintf(os.Stdout, "Response from `URLPoolsAPI.ApiV1UrlPoolsIdUrlsUrlIdClonePost`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| id | int32 | ||
| urlId | int32 |
Other parameters are passed through a pointer to a apiApiV1UrlPoolsIdUrlsUrlIdClonePostRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
ApiV1CampaignsTypeCampaignIdAdsAdIdClonePost200Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ApiV1UrlPoolsIdUrlsUrlIdDelete(ctx, id, urlId).Execute()
Soft-delete a single URL.
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/goadserver/goadserver-go"
)
func main() {
id := int32(56) // int32 |
urlId := int32(56) // int32 |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.URLPoolsAPI.ApiV1UrlPoolsIdUrlsUrlIdDelete(context.Background(), id, urlId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `URLPoolsAPI.ApiV1UrlPoolsIdUrlsUrlIdDelete``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| id | int32 | ||
| urlId | int32 |
Other parameters are passed through a pointer to a apiApiV1UrlPoolsIdUrlsUrlIdDeleteRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
(empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ApiV1UrlPoolsIdUrlsUrlIdGet(ctx, id, urlId).Execute()
Show a single URL.
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/goadserver/goadserver-go"
)
func main() {
id := int32(56) // int32 |
urlId := int32(56) // int32 |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.URLPoolsAPI.ApiV1UrlPoolsIdUrlsUrlIdGet(context.Background(), id, urlId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `URLPoolsAPI.ApiV1UrlPoolsIdUrlsUrlIdGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| id | int32 | ||
| urlId | int32 |
Other parameters are passed through a pointer to a apiApiV1UrlPoolsIdUrlsUrlIdGetRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
(empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ApiV1UrlPoolsIdUrlsUrlIdPut(ctx, id, urlId).ApiV1UrlPoolsIdUrlsUrlIdPutRequest(apiV1UrlPoolsIdUrlsUrlIdPutRequest).Execute()
Update a single URL.
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/goadserver/goadserver-go"
)
func main() {
id := int32(56) // int32 |
urlId := int32(56) // int32 |
apiV1UrlPoolsIdUrlsUrlIdPutRequest := *openapiclient.NewApiV1UrlPoolsIdUrlsUrlIdPutRequest() // ApiV1UrlPoolsIdUrlsUrlIdPutRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.URLPoolsAPI.ApiV1UrlPoolsIdUrlsUrlIdPut(context.Background(), id, urlId).ApiV1UrlPoolsIdUrlsUrlIdPutRequest(apiV1UrlPoolsIdUrlsUrlIdPutRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `URLPoolsAPI.ApiV1UrlPoolsIdUrlsUrlIdPut``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| id | int32 | ||
| urlId | int32 |
Other parameters are passed through a pointer to a apiApiV1UrlPoolsIdUrlsUrlIdPutRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
apiV1UrlPoolsIdUrlsUrlIdPutRequest | ApiV1UrlPoolsIdUrlsUrlIdPutRequest | |
(empty response body)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ApiV1UrlPoolsIdUrlsUrlIdTogglePut(ctx, id, urlId).Execute()
Toggle a URL on / off.
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/goadserver/goadserver-go"
)
func main() {
id := int32(56) // int32 |
urlId := int32(56) // int32 |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.URLPoolsAPI.ApiV1UrlPoolsIdUrlsUrlIdTogglePut(context.Background(), id, urlId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `URLPoolsAPI.ApiV1UrlPoolsIdUrlsUrlIdTogglePut``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| id | int32 | ||
| urlId | int32 |
Other parameters are passed through a pointer to a apiApiV1UrlPoolsIdUrlsUrlIdTogglePutRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
(empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ApiV1UrlPoolsIdUrlsUrlIdWeightPut(ctx, id, urlId).ApiV1UrlPoolsIdUrlsUrlIdWeightPutRequest(apiV1UrlPoolsIdUrlsUrlIdWeightPutRequest).Execute()
Set a URL's rotation weight.
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/goadserver/goadserver-go"
)
func main() {
id := int32(56) // int32 |
urlId := int32(56) // int32 |
apiV1UrlPoolsIdUrlsUrlIdWeightPutRequest := *openapiclient.NewApiV1UrlPoolsIdUrlsUrlIdWeightPutRequest(int32(123)) // ApiV1UrlPoolsIdUrlsUrlIdWeightPutRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.URLPoolsAPI.ApiV1UrlPoolsIdUrlsUrlIdWeightPut(context.Background(), id, urlId).ApiV1UrlPoolsIdUrlsUrlIdWeightPutRequest(apiV1UrlPoolsIdUrlsUrlIdWeightPutRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `URLPoolsAPI.ApiV1UrlPoolsIdUrlsUrlIdWeightPut``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| id | int32 | ||
| urlId | int32 |
Other parameters are passed through a pointer to a apiApiV1UrlPoolsIdUrlsUrlIdWeightPutRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
apiV1UrlPoolsIdUrlsUrlIdWeightPutRequest | ApiV1UrlPoolsIdUrlsUrlIdWeightPutRequest | |
(empty response body)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ApiV1UrlPoolsIdUsedInGet(ctx, id).Execute()
List campaigns / ads that reference this URL pool.
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/goadserver/goadserver-go"
)
func main() {
id := int32(56) // int32 |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.URLPoolsAPI.ApiV1UrlPoolsIdUsedInGet(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `URLPoolsAPI.ApiV1UrlPoolsIdUsedInGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| id | int32 |
Other parameters are passed through a pointer to a apiApiV1UrlPoolsIdUsedInGetRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
(empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ApiV1CampaignsTypeCampaignIdAdsAdIdClonePost200Response ApiV1UrlPoolsPost(ctx).ApiV1UrlPoolsPostRequest(apiV1UrlPoolsPostRequest).Execute()
Create a URL pool.
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/goadserver/goadserver-go"
)
func main() {
apiV1UrlPoolsPostRequest := *openapiclient.NewApiV1UrlPoolsPostRequest("Title_example") // ApiV1UrlPoolsPostRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.URLPoolsAPI.ApiV1UrlPoolsPost(context.Background()).ApiV1UrlPoolsPostRequest(apiV1UrlPoolsPostRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `URLPoolsAPI.ApiV1UrlPoolsPost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ApiV1UrlPoolsPost`: ApiV1CampaignsTypeCampaignIdAdsAdIdClonePost200Response
fmt.Fprintf(os.Stdout, "Response from `URLPoolsAPI.ApiV1UrlPoolsPost`: %v\n", resp)
}Other parameters are passed through a pointer to a apiApiV1UrlPoolsPostRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| apiV1UrlPoolsPostRequest | ApiV1UrlPoolsPostRequest |
ApiV1CampaignsTypeCampaignIdAdsAdIdClonePost200Response
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ApiV1UrlPoolsReplaceUrlPut(ctx).ApiV1UrlPoolsReplaceUrlPutRequest(apiV1UrlPoolsReplaceUrlPutRequest).Execute()
Search & replace text across your URL-pool URLs.
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/goadserver/goadserver-go"
)
func main() {
apiV1UrlPoolsReplaceUrlPutRequest := *openapiclient.NewApiV1UrlPoolsReplaceUrlPutRequest("Search_example") // ApiV1UrlPoolsReplaceUrlPutRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.URLPoolsAPI.ApiV1UrlPoolsReplaceUrlPut(context.Background()).ApiV1UrlPoolsReplaceUrlPutRequest(apiV1UrlPoolsReplaceUrlPutRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `URLPoolsAPI.ApiV1UrlPoolsReplaceUrlPut``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}Other parameters are passed through a pointer to a apiApiV1UrlPoolsReplaceUrlPutRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| apiV1UrlPoolsReplaceUrlPutRequest | ApiV1UrlPoolsReplaceUrlPutRequest |
(empty response body)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]