Documentation
¶
Overview ¶
Package adsenseplatform provides access to the AdSense Platform API.
For product documentation, see: https://developers.google.com/adsense/platforms/
Library status ¶
These client libraries are officially supported by Google. However, this library is considered complete and is in maintenance mode. This means that we will address critical bugs and security issues but will not add any new features.
When possible, we recommend using our newer [Cloud Client Libraries for Go](https://pkgo.dev/cloud.google.com/go) that are still actively being worked and iterated on.
Creating a client ¶
Usage example:
import "google.golang.org/api/adsenseplatform/v1alpha" ... ctx := context.Background() adsenseplatformService, err := adsenseplatform.NewService(ctx)
In this example, Google Application Default Credentials are used for authentication. For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials.
Other authentication options ¶
By default, all available scopes (see "Constants") are used to authenticate. To restrict scopes, use google.golang.org/api/option.WithScopes:
adsenseplatformService, err := adsenseplatform.NewService(ctx, option.WithScopes(adsenseplatform.AdsenseReadonlyScope))
To use an API key for authentication (note: some APIs do not support API keys), use google.golang.org/api/option.WithAPIKey:
adsenseplatformService, err := adsenseplatform.NewService(ctx, option.WithAPIKey("AIza..."))
To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow, use google.golang.org/api/option.WithTokenSource:
config := &oauth2.Config{...} // ... token, err := config.Exchange(ctx, ...) adsenseplatformService, err := adsenseplatform.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))
See google.golang.org/api/option.ClientOption for details on options.
Index ¶
- Constants
- type Account
- type AccountsPlatformsChildAccountsService
- type AccountsPlatformsChildAccountsSitesListCall
- func (c *AccountsPlatformsChildAccountsSitesListCall) Context(ctx context.Context) *AccountsPlatformsChildAccountsSitesListCall
- func (c *AccountsPlatformsChildAccountsSitesListCall) Do(opts ...googleapi.CallOption) (*ListPlatformChildSitesResponse, error)
- func (c *AccountsPlatformsChildAccountsSitesListCall) Fields(s ...googleapi.Field) *AccountsPlatformsChildAccountsSitesListCall
- func (c *AccountsPlatformsChildAccountsSitesListCall) Header() http.Header
- func (c *AccountsPlatformsChildAccountsSitesListCall) IfNoneMatch(entityTag string) *AccountsPlatformsChildAccountsSitesListCall
- func (c *AccountsPlatformsChildAccountsSitesListCall) PageSize(pageSize int64) *AccountsPlatformsChildAccountsSitesListCall
- func (c *AccountsPlatformsChildAccountsSitesListCall) PageToken(pageToken string) *AccountsPlatformsChildAccountsSitesListCall
- func (c *AccountsPlatformsChildAccountsSitesListCall) Pages(ctx context.Context, f func(*ListPlatformChildSitesResponse) error) error
- type AccountsPlatformsChildAccountsSitesPatchCall
- func (c *AccountsPlatformsChildAccountsSitesPatchCall) Context(ctx context.Context) *AccountsPlatformsChildAccountsSitesPatchCall
- func (c *AccountsPlatformsChildAccountsSitesPatchCall) Do(opts ...googleapi.CallOption) (*PlatformChildSite, error)
- func (c *AccountsPlatformsChildAccountsSitesPatchCall) Fields(s ...googleapi.Field) *AccountsPlatformsChildAccountsSitesPatchCall
- func (c *AccountsPlatformsChildAccountsSitesPatchCall) Header() http.Header
- func (c *AccountsPlatformsChildAccountsSitesPatchCall) UpdateMask(updateMask string) *AccountsPlatformsChildAccountsSitesPatchCall
- type AccountsPlatformsChildAccountsSitesService
- type AccountsPlatformsGetCall
- func (c *AccountsPlatformsGetCall) Context(ctx context.Context) *AccountsPlatformsGetCall
- func (c *AccountsPlatformsGetCall) Do(opts ...googleapi.CallOption) (*Platform, error)
- func (c *AccountsPlatformsGetCall) Fields(s ...googleapi.Field) *AccountsPlatformsGetCall
- func (c *AccountsPlatformsGetCall) Header() http.Header
- func (c *AccountsPlatformsGetCall) IfNoneMatch(entityTag string) *AccountsPlatformsGetCall
- type AccountsPlatformsGroupsListCall
- func (c *AccountsPlatformsGroupsListCall) Context(ctx context.Context) *AccountsPlatformsGroupsListCall
- func (c *AccountsPlatformsGroupsListCall) Do(opts ...googleapi.CallOption) (*ListPlatformGroupsResponse, error)
- func (c *AccountsPlatformsGroupsListCall) Fields(s ...googleapi.Field) *AccountsPlatformsGroupsListCall
- func (c *AccountsPlatformsGroupsListCall) Header() http.Header
- func (c *AccountsPlatformsGroupsListCall) IfNoneMatch(entityTag string) *AccountsPlatformsGroupsListCall
- func (c *AccountsPlatformsGroupsListCall) PageSize(pageSize int64) *AccountsPlatformsGroupsListCall
- func (c *AccountsPlatformsGroupsListCall) PageToken(pageToken string) *AccountsPlatformsGroupsListCall
- func (c *AccountsPlatformsGroupsListCall) Pages(ctx context.Context, f func(*ListPlatformGroupsResponse) error) error
- type AccountsPlatformsGroupsService
- type AccountsPlatformsListCall
- func (c *AccountsPlatformsListCall) Context(ctx context.Context) *AccountsPlatformsListCall
- func (c *AccountsPlatformsListCall) Do(opts ...googleapi.CallOption) (*ListPlatformsResponse, error)
- func (c *AccountsPlatformsListCall) Fields(s ...googleapi.Field) *AccountsPlatformsListCall
- func (c *AccountsPlatformsListCall) Header() http.Header
- func (c *AccountsPlatformsListCall) IfNoneMatch(entityTag string) *AccountsPlatformsListCall
- func (c *AccountsPlatformsListCall) PageSize(pageSize int64) *AccountsPlatformsListCall
- func (c *AccountsPlatformsListCall) PageToken(pageToken string) *AccountsPlatformsListCall
- func (c *AccountsPlatformsListCall) Pages(ctx context.Context, f func(*ListPlatformsResponse) error) error
- type AccountsPlatformsService
- type AccountsService
- type Address
- type CloseAccountRequest
- type CloseAccountResponse
- type Decimal
- type Empty
- type Event
- type EventInfo
- type ListAccountsResponse
- type ListPlatformChildSitesResponse
- type ListPlatformGroupsResponse
- type ListPlatformsResponse
- type ListSitesResponse
- type LookupAccountResponse
- type Platform
- type PlatformChildSite
- type PlatformGroup
- type PlatformsAccountsCloseCall
- func (c *PlatformsAccountsCloseCall) Context(ctx context.Context) *PlatformsAccountsCloseCall
- func (c *PlatformsAccountsCloseCall) Do(opts ...googleapi.CallOption) (*CloseAccountResponse, error)
- func (c *PlatformsAccountsCloseCall) Fields(s ...googleapi.Field) *PlatformsAccountsCloseCall
- func (c *PlatformsAccountsCloseCall) Header() http.Header
- type PlatformsAccountsCreateCall
- func (c *PlatformsAccountsCreateCall) Context(ctx context.Context) *PlatformsAccountsCreateCall
- func (c *PlatformsAccountsCreateCall) Do(opts ...googleapi.CallOption) (*Account, error)
- func (c *PlatformsAccountsCreateCall) Fields(s ...googleapi.Field) *PlatformsAccountsCreateCall
- func (c *PlatformsAccountsCreateCall) Header() http.Header
- type PlatformsAccountsEventsCreateCall
- func (c *PlatformsAccountsEventsCreateCall) Context(ctx context.Context) *PlatformsAccountsEventsCreateCall
- func (c *PlatformsAccountsEventsCreateCall) Do(opts ...googleapi.CallOption) (*Event, error)
- func (c *PlatformsAccountsEventsCreateCall) Fields(s ...googleapi.Field) *PlatformsAccountsEventsCreateCall
- func (c *PlatformsAccountsEventsCreateCall) Header() http.Header
- type PlatformsAccountsEventsService
- type PlatformsAccountsGetCall
- func (c *PlatformsAccountsGetCall) Context(ctx context.Context) *PlatformsAccountsGetCall
- func (c *PlatformsAccountsGetCall) Do(opts ...googleapi.CallOption) (*Account, error)
- func (c *PlatformsAccountsGetCall) Fields(s ...googleapi.Field) *PlatformsAccountsGetCall
- func (c *PlatformsAccountsGetCall) Header() http.Header
- func (c *PlatformsAccountsGetCall) IfNoneMatch(entityTag string) *PlatformsAccountsGetCall
- type PlatformsAccountsListCall
- func (c *PlatformsAccountsListCall) Context(ctx context.Context) *PlatformsAccountsListCall
- func (c *PlatformsAccountsListCall) Do(opts ...googleapi.CallOption) (*ListAccountsResponse, error)
- func (c *PlatformsAccountsListCall) Fields(s ...googleapi.Field) *PlatformsAccountsListCall
- func (c *PlatformsAccountsListCall) Header() http.Header
- func (c *PlatformsAccountsListCall) IfNoneMatch(entityTag string) *PlatformsAccountsListCall
- func (c *PlatformsAccountsListCall) PageSize(pageSize int64) *PlatformsAccountsListCall
- func (c *PlatformsAccountsListCall) PageToken(pageToken string) *PlatformsAccountsListCall
- func (c *PlatformsAccountsListCall) Pages(ctx context.Context, f func(*ListAccountsResponse) error) error
- type PlatformsAccountsLookupCall
- func (c *PlatformsAccountsLookupCall) Context(ctx context.Context) *PlatformsAccountsLookupCall
- func (c *PlatformsAccountsLookupCall) CreationRequestId(creationRequestId string) *PlatformsAccountsLookupCall
- func (c *PlatformsAccountsLookupCall) Do(opts ...googleapi.CallOption) (*LookupAccountResponse, error)
- func (c *PlatformsAccountsLookupCall) Fields(s ...googleapi.Field) *PlatformsAccountsLookupCall
- func (c *PlatformsAccountsLookupCall) Header() http.Header
- func (c *PlatformsAccountsLookupCall) IfNoneMatch(entityTag string) *PlatformsAccountsLookupCall
- type PlatformsAccountsService
- func (r *PlatformsAccountsService) Close(name string, closeaccountrequest *CloseAccountRequest) *PlatformsAccountsCloseCall
- func (r *PlatformsAccountsService) Create(parent string, account *Account) *PlatformsAccountsCreateCall
- func (r *PlatformsAccountsService) Get(name string) *PlatformsAccountsGetCall
- func (r *PlatformsAccountsService) List(parent string) *PlatformsAccountsListCall
- func (r *PlatformsAccountsService) Lookup(parent string) *PlatformsAccountsLookupCall
- type PlatformsAccountsSitesCreateCall
- func (c *PlatformsAccountsSitesCreateCall) Context(ctx context.Context) *PlatformsAccountsSitesCreateCall
- func (c *PlatformsAccountsSitesCreateCall) Do(opts ...googleapi.CallOption) (*Site, error)
- func (c *PlatformsAccountsSitesCreateCall) Fields(s ...googleapi.Field) *PlatformsAccountsSitesCreateCall
- func (c *PlatformsAccountsSitesCreateCall) Header() http.Header
- type PlatformsAccountsSitesDeleteCall
- func (c *PlatformsAccountsSitesDeleteCall) Context(ctx context.Context) *PlatformsAccountsSitesDeleteCall
- func (c *PlatformsAccountsSitesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *PlatformsAccountsSitesDeleteCall) Fields(s ...googleapi.Field) *PlatformsAccountsSitesDeleteCall
- func (c *PlatformsAccountsSitesDeleteCall) Header() http.Header
- type PlatformsAccountsSitesGetCall
- func (c *PlatformsAccountsSitesGetCall) Context(ctx context.Context) *PlatformsAccountsSitesGetCall
- func (c *PlatformsAccountsSitesGetCall) Do(opts ...googleapi.CallOption) (*Site, error)
- func (c *PlatformsAccountsSitesGetCall) Fields(s ...googleapi.Field) *PlatformsAccountsSitesGetCall
- func (c *PlatformsAccountsSitesGetCall) Header() http.Header
- func (c *PlatformsAccountsSitesGetCall) IfNoneMatch(entityTag string) *PlatformsAccountsSitesGetCall
- type PlatformsAccountsSitesListCall
- func (c *PlatformsAccountsSitesListCall) Context(ctx context.Context) *PlatformsAccountsSitesListCall
- func (c *PlatformsAccountsSitesListCall) Do(opts ...googleapi.CallOption) (*ListSitesResponse, error)
- func (c *PlatformsAccountsSitesListCall) Fields(s ...googleapi.Field) *PlatformsAccountsSitesListCall
- func (c *PlatformsAccountsSitesListCall) Header() http.Header
- func (c *PlatformsAccountsSitesListCall) IfNoneMatch(entityTag string) *PlatformsAccountsSitesListCall
- func (c *PlatformsAccountsSitesListCall) PageSize(pageSize int64) *PlatformsAccountsSitesListCall
- func (c *PlatformsAccountsSitesListCall) PageToken(pageToken string) *PlatformsAccountsSitesListCall
- func (c *PlatformsAccountsSitesListCall) Pages(ctx context.Context, f func(*ListSitesResponse) error) error
- type PlatformsAccountsSitesRequestReviewCall
- func (c *PlatformsAccountsSitesRequestReviewCall) Context(ctx context.Context) *PlatformsAccountsSitesRequestReviewCall
- func (c *PlatformsAccountsSitesRequestReviewCall) Do(opts ...googleapi.CallOption) (*RequestSiteReviewResponse, error)
- func (c *PlatformsAccountsSitesRequestReviewCall) Fields(s ...googleapi.Field) *PlatformsAccountsSitesRequestReviewCall
- func (c *PlatformsAccountsSitesRequestReviewCall) Header() http.Header
- type PlatformsAccountsSitesService
- func (r *PlatformsAccountsSitesService) Create(parent string, site *Site) *PlatformsAccountsSitesCreateCall
- func (r *PlatformsAccountsSitesService) Delete(name string) *PlatformsAccountsSitesDeleteCall
- func (r *PlatformsAccountsSitesService) Get(name string) *PlatformsAccountsSitesGetCall
- func (r *PlatformsAccountsSitesService) List(parent string) *PlatformsAccountsSitesListCall
- func (r *PlatformsAccountsSitesService) RequestReview(name string) *PlatformsAccountsSitesRequestReviewCall
- type PlatformsService
- type RequestSiteReviewResponse
- type Service
- type Site
- type TimeZone
Constants ¶
const ( // View and manage your AdSense data AdsenseScope = "https://www.googleapis.com/auth/adsense" // View your AdSense data AdsenseReadonlyScope = "https://www.googleapis.com/auth/adsense.readonly" )
OAuth2 scopes used by this API.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct { // CreateTime: Output only. Creation time of the account. CreateTime string `json:"createTime,omitempty"` // CreationRequestId: Required. An opaque token that uniquely identifies the // account among all the platform's accounts. This string may contain at most // 64 non-whitespace ASCII characters, but otherwise has no predefined // structure. However, it is expected to be a platform-specific identifier for // the user creating the account, so that only a single account can be created // for any given user. This field must not contain any information that is // recognizable as personally identifiable information. e.g. it should not be // an email address or login name. Once an account has been created, a second // attempt to create an account using the same creation_request_id will result // in an ALREADY_EXISTS error. CreationRequestId string `json:"creationRequestId,omitempty"` // DisplayName: Display name of this account. DisplayName string `json:"displayName,omitempty"` // Name: Output only. Resource name of the account. Format: // platforms/pub-[0-9]+/accounts/pub-[0-9]+ Name string `json:"name,omitempty"` // RegionCode: Required. Input only. CLDR region code of the country/region of // the address. Set this to country code of the child account if known, // otherwise to your own country code. RegionCode string `json:"regionCode,omitempty"` // State: Output only. Approval state of the account. // // Possible values: // "STATE_UNSPECIFIED" - Unspecified. // "UNCHECKED" - Unchecked. // "APPROVED" - The account is ready to serve ads. // "DISAPPROVED" - The account has been blocked from serving ads. State string `json:"state,omitempty"` // TimeZone: Required. The IANA TZ timezone code of this account. For more // information, see // https://en.wikipedia.org/wiki/List_of_tz_database_time_zones. This field is // used for reporting. It is recommended to set it to the same value for all // child accounts. TimeZone *TimeZone `json:"timeZone,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "CreateTime") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkgo.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "CreateTime") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkgo.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
Account: Representation of an Account.
func (Account) MarshalJSON ¶
type AccountsPlatformsChildAccountsService ¶ added in v0.217.0
type AccountsPlatformsChildAccountsService struct { Sites *AccountsPlatformsChildAccountsSitesService // contains filtered or unexported fields }
func NewAccountsPlatformsChildAccountsService ¶ added in v0.217.0
func NewAccountsPlatformsChildAccountsService(s *Service) *AccountsPlatformsChildAccountsService
type AccountsPlatformsChildAccountsSitesListCall ¶ added in v0.217.0
type AccountsPlatformsChildAccountsSitesListCall struct {
// contains filtered or unexported fields
}
func (*AccountsPlatformsChildAccountsSitesListCall) Context ¶ added in v0.217.0
func (c *AccountsPlatformsChildAccountsSitesListCall) Context(ctx context.Context) *AccountsPlatformsChildAccountsSitesListCall
Context sets the context to be used in this call's Do method.
func (*AccountsPlatformsChildAccountsSitesListCall) Do ¶ added in v0.217.0
func (c *AccountsPlatformsChildAccountsSitesListCall) Do(opts ...googleapi.CallOption) (*ListPlatformChildSitesResponse, error)
Do executes the "adsenseplatform.accounts.platforms.childAccounts.sites.list" call. Any non-2xx status code is an error. Response headers are in either *ListPlatformChildSitesResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*AccountsPlatformsChildAccountsSitesListCall) Fields ¶ added in v0.217.0
func (c *AccountsPlatformsChildAccountsSitesListCall) Fields(s ...googleapi.Field) *AccountsPlatformsChildAccountsSitesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*AccountsPlatformsChildAccountsSitesListCall) Header ¶ added in v0.217.0
func (c *AccountsPlatformsChildAccountsSitesListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*AccountsPlatformsChildAccountsSitesListCall) IfNoneMatch ¶ added in v0.217.0
func (c *AccountsPlatformsChildAccountsSitesListCall) IfNoneMatch(entityTag string) *AccountsPlatformsChildAccountsSitesListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*AccountsPlatformsChildAccountsSitesListCall) PageSize ¶ added in v0.217.0
func (c *AccountsPlatformsChildAccountsSitesListCall) PageSize(pageSize int64) *AccountsPlatformsChildAccountsSitesListCall
PageSize sets the optional parameter "pageSize": The maximum number of children to include in the response, used for paging. If unspecified, at most 10000 platforms will be returned. The maximum value is 10000; values above 10000 will be coerced to 10000.
func (*AccountsPlatformsChildAccountsSitesListCall) PageToken ¶ added in v0.217.0
func (c *AccountsPlatformsChildAccountsSitesListCall) PageToken(pageToken string) *AccountsPlatformsChildAccountsSitesListCall
PageToken sets the optional parameter "pageToken": A page token, received from a previous `ListPlatformChildren` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListPlatformChildren` must match the call that provided the page token.
func (*AccountsPlatformsChildAccountsSitesListCall) Pages ¶ added in v0.217.0
func (c *AccountsPlatformsChildAccountsSitesListCall) Pages(ctx context.Context, f func(*ListPlatformChildSitesResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type AccountsPlatformsChildAccountsSitesPatchCall ¶ added in v0.218.0
type AccountsPlatformsChildAccountsSitesPatchCall struct {
// contains filtered or unexported fields
}
func (*AccountsPlatformsChildAccountsSitesPatchCall) Context ¶ added in v0.218.0
func (c *AccountsPlatformsChildAccountsSitesPatchCall) Context(ctx context.Context) *AccountsPlatformsChildAccountsSitesPatchCall
Context sets the context to be used in this call's Do method.
func (*AccountsPlatformsChildAccountsSitesPatchCall) Do ¶ added in v0.218.0
func (c *AccountsPlatformsChildAccountsSitesPatchCall) Do(opts ...googleapi.CallOption) (*PlatformChildSite, error)
Do executes the "adsenseplatform.accounts.platforms.childAccounts.sites.patch" call. Any non-2xx status code is an error. Response headers are in either *PlatformChildSite.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*AccountsPlatformsChildAccountsSitesPatchCall) Fields ¶ added in v0.218.0
func (c *AccountsPlatformsChildAccountsSitesPatchCall) Fields(s ...googleapi.Field) *AccountsPlatformsChildAccountsSitesPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*AccountsPlatformsChildAccountsSitesPatchCall) Header ¶ added in v0.218.0
func (c *AccountsPlatformsChildAccountsSitesPatchCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*AccountsPlatformsChildAccountsSitesPatchCall) UpdateMask ¶ added in v0.218.0
func (c *AccountsPlatformsChildAccountsSitesPatchCall) UpdateMask(updateMask string) *AccountsPlatformsChildAccountsSitesPatchCall
UpdateMask sets the optional parameter "updateMask": The list of fields to update - currently only supports updating the `platform_group` field.
type AccountsPlatformsChildAccountsSitesService ¶ added in v0.217.0
type AccountsPlatformsChildAccountsSitesService struct {
// contains filtered or unexported fields
}
func NewAccountsPlatformsChildAccountsSitesService ¶ added in v0.217.0
func NewAccountsPlatformsChildAccountsSitesService(s *Service) *AccountsPlatformsChildAccountsSitesService
func (*AccountsPlatformsChildAccountsSitesService) List ¶ added in v0.217.0
func (r *AccountsPlatformsChildAccountsSitesService) List(parent string) *AccountsPlatformsChildAccountsSitesListCall
List: Lists Platform Child Sites for a specified Platform Child Account.
- parent: The name of the child account under the given platform which owns the platform child sites. Format: accounts/{account}/platforms/{platform}/childAccounts/{child_account}.
func (*AccountsPlatformsChildAccountsSitesService) Patch ¶ added in v0.218.0
func (r *AccountsPlatformsChildAccountsSitesService) Patch(name string, platformchildsite *PlatformChildSite) *AccountsPlatformsChildAccountsSitesPatchCall
Patch: Update a Platform Child Site.
- name: Identifier. Format: accounts/{account}/platforms/{platform}/childAccounts/{child_account}/sites /{platform_child_site}.
type AccountsPlatformsGetCall ¶ added in v0.216.0
type AccountsPlatformsGetCall struct {
// contains filtered or unexported fields
}
func (*AccountsPlatformsGetCall) Context ¶ added in v0.216.0
func (c *AccountsPlatformsGetCall) Context(ctx context.Context) *AccountsPlatformsGetCall
Context sets the context to be used in this call's Do method.
func (*AccountsPlatformsGetCall) Do ¶ added in v0.216.0
func (c *AccountsPlatformsGetCall) Do(opts ...googleapi.CallOption) (*Platform, error)
Do executes the "adsenseplatform.accounts.platforms.get" call. Any non-2xx status code is an error. Response headers are in either *Platform.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*AccountsPlatformsGetCall) Fields ¶ added in v0.216.0
func (c *AccountsPlatformsGetCall) Fields(s ...googleapi.Field) *AccountsPlatformsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*AccountsPlatformsGetCall) Header ¶ added in v0.216.0
func (c *AccountsPlatformsGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*AccountsPlatformsGetCall) IfNoneMatch ¶ added in v0.216.0
func (c *AccountsPlatformsGetCall) IfNoneMatch(entityTag string) *AccountsPlatformsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type AccountsPlatformsGroupsListCall ¶ added in v0.218.0
type AccountsPlatformsGroupsListCall struct {
// contains filtered or unexported fields
}
func (*AccountsPlatformsGroupsListCall) Context ¶ added in v0.218.0
func (c *AccountsPlatformsGroupsListCall) Context(ctx context.Context) *AccountsPlatformsGroupsListCall
Context sets the context to be used in this call's Do method.
func (*AccountsPlatformsGroupsListCall) Do ¶ added in v0.218.0
func (c *AccountsPlatformsGroupsListCall) Do(opts ...googleapi.CallOption) (*ListPlatformGroupsResponse, error)
Do executes the "adsenseplatform.accounts.platforms.groups.list" call. Any non-2xx status code is an error. Response headers are in either *ListPlatformGroupsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*AccountsPlatformsGroupsListCall) Fields ¶ added in v0.218.0
func (c *AccountsPlatformsGroupsListCall) Fields(s ...googleapi.Field) *AccountsPlatformsGroupsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*AccountsPlatformsGroupsListCall) Header ¶ added in v0.218.0
func (c *AccountsPlatformsGroupsListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*AccountsPlatformsGroupsListCall) IfNoneMatch ¶ added in v0.218.0
func (c *AccountsPlatformsGroupsListCall) IfNoneMatch(entityTag string) *AccountsPlatformsGroupsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*AccountsPlatformsGroupsListCall) PageSize ¶ added in v0.218.0
func (c *AccountsPlatformsGroupsListCall) PageSize(pageSize int64) *AccountsPlatformsGroupsListCall
PageSize sets the optional parameter "pageSize": The maximum number of groups to include in the response, used for paging. If unspecified, at most 10000 groups will be returned. The maximum value is 10000; values above 10000 will be coerced to 10000.
func (*AccountsPlatformsGroupsListCall) PageToken ¶ added in v0.218.0
func (c *AccountsPlatformsGroupsListCall) PageToken(pageToken string) *AccountsPlatformsGroupsListCall
PageToken sets the optional parameter "pageToken": A page token, received from a previous `ListPlatformGroups` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListPlatformGroups` must match the call that provided the page token.
func (*AccountsPlatformsGroupsListCall) Pages ¶ added in v0.218.0
func (c *AccountsPlatformsGroupsListCall) Pages(ctx context.Context, f func(*ListPlatformGroupsResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type AccountsPlatformsGroupsService ¶ added in v0.218.0
type AccountsPlatformsGroupsService struct {
// contains filtered or unexported fields
}
func NewAccountsPlatformsGroupsService ¶ added in v0.218.0
func NewAccountsPlatformsGroupsService(s *Service) *AccountsPlatformsGroupsService
func (*AccountsPlatformsGroupsService) List ¶ added in v0.218.0
func (r *AccountsPlatformsGroupsService) List(parent string) *AccountsPlatformsGroupsListCall
List: Lists Platform Groups for a specified Platform.
- parent: The name of the platform to retrieve. Format: accounts/{account}/platforms/{platform}.
type AccountsPlatformsListCall ¶ added in v0.216.0
type AccountsPlatformsListCall struct {
// contains filtered or unexported fields
}
func (*AccountsPlatformsListCall) Context ¶ added in v0.216.0
func (c *AccountsPlatformsListCall) Context(ctx context.Context) *AccountsPlatformsListCall
Context sets the context to be used in this call's Do method.
func (*AccountsPlatformsListCall) Do ¶ added in v0.216.0
func (c *AccountsPlatformsListCall) Do(opts ...googleapi.CallOption) (*ListPlatformsResponse, error)
Do executes the "adsenseplatform.accounts.platforms.list" call. Any non-2xx status code is an error. Response headers are in either *ListPlatformsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*AccountsPlatformsListCall) Fields ¶ added in v0.216.0
func (c *AccountsPlatformsListCall) Fields(s ...googleapi.Field) *AccountsPlatformsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*AccountsPlatformsListCall) Header ¶ added in v0.216.0
func (c *AccountsPlatformsListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*AccountsPlatformsListCall) IfNoneMatch ¶ added in v0.216.0
func (c *AccountsPlatformsListCall) IfNoneMatch(entityTag string) *AccountsPlatformsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*AccountsPlatformsListCall) PageSize ¶ added in v0.216.0
func (c *AccountsPlatformsListCall) PageSize(pageSize int64) *AccountsPlatformsListCall
PageSize sets the optional parameter "pageSize": The maximum number of platforms to include in the response, used for paging. If unspecified, at most 10000 platforms will be returned. The maximum value is 10000; values above 10000 will be coerced to 10000.
func (*AccountsPlatformsListCall) PageToken ¶ added in v0.216.0
func (c *AccountsPlatformsListCall) PageToken(pageToken string) *AccountsPlatformsListCall
PageToken sets the optional parameter "pageToken": A page token, received from a previous `ListPlatforms` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListPlatforms` must match the call that provided the page token.
func (*AccountsPlatformsListCall) Pages ¶ added in v0.216.0
func (c *AccountsPlatformsListCall) Pages(ctx context.Context, f func(*ListPlatformsResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type AccountsPlatformsService ¶ added in v0.216.0
type AccountsPlatformsService struct { ChildAccounts *AccountsPlatformsChildAccountsService Groups *AccountsPlatformsGroupsService // contains filtered or unexported fields }
func NewAccountsPlatformsService ¶ added in v0.216.0
func NewAccountsPlatformsService(s *Service) *AccountsPlatformsService
func (*AccountsPlatformsService) Get ¶ added in v0.216.0
func (r *AccountsPlatformsService) Get(name string) *AccountsPlatformsGetCall
Get: Gets a platform.
- name: The name of the platform to retrieve. Format: accounts/{account}/platforms/{platform}.
func (*AccountsPlatformsService) List ¶ added in v0.216.0
func (r *AccountsPlatformsService) List(parent string) *AccountsPlatformsListCall
List: Lists platforms for a specified account.
- parent: The account which owns the platforms. Format: accounts/{account}.
type AccountsService ¶ added in v0.216.0
type AccountsService struct { Platforms *AccountsPlatformsService // contains filtered or unexported fields }
func NewAccountsService ¶ added in v0.216.0
func NewAccountsService(s *Service) *AccountsService
type Address ¶
type Address struct { // Address1: First line of address. Max length 64 bytes or 30 characters. Address1 string `json:"address1,omitempty"` // Address2: Second line of address. Max length 64 bytes or 30 characters. Address2 string `json:"address2,omitempty"` // City: City. Max length 60 bytes or 30 characters. City string `json:"city,omitempty"` // Company: Name of the company. Max length 255 bytes or 34 characters. Company string `json:"company,omitempty"` // Contact: Contact name of the company. Max length 128 bytes or 34 characters. Contact string `json:"contact,omitempty"` // Fax: Fax number with international code (i.e. +441234567890). Fax string `json:"fax,omitempty"` // Phone: Phone number with international code (i.e. +441234567890). Phone string `json:"phone,omitempty"` // RegionCode: Country/Region code. The region is specified as a CLDR region // code (e.g. "US", "FR"). RegionCode string `json:"regionCode,omitempty"` // State: State. Max length 60 bytes or 30 characters. State string `json:"state,omitempty"` // Zip: Zip/post code. Max length 10 bytes or 10 characters. Zip string `json:"zip,omitempty"` // ForceSendFields is a list of field names (e.g. "Address1") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkgo.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Address1") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkgo.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
Address: Address data.
func (Address) MarshalJSON ¶
type CloseAccountRequest ¶
type CloseAccountRequest struct { }
CloseAccountRequest: Request definition for the account close rpc.
type CloseAccountResponse ¶
type CloseAccountResponse struct { // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` }
CloseAccountResponse: Response definition for the account close rpc.
type Decimal ¶ added in v0.218.0
type Decimal struct { // Value: The decimal value, as a string. The string representation consists of // an optional sign, `+` (`U+002B`) or `-` (`U+002D`), followed by a sequence // of zero or more decimal digits ("the integer"), optionally followed by a // fraction, optionally followed by an exponent. An empty string **should** be // interpreted as `0`. The fraction consists of a decimal point followed by // zero or more decimal digits. The string must contain at least one digit in // either the integer or the fraction. The number formed by the sign, the // integer and the fraction is referred to as the significand. The exponent // consists of the character `e` (`U+0065`) or `E` (`U+0045`) followed by one // or more decimal digits. Services **should** normalize decimal values before // storing them by: - Removing an explicitly-provided `+` sign (`+2.5` -> // `2.5`). - Replacing a zero-length integer value with `0` (`.5` -> `0.5`). - // Coercing the exponent character to upper-case, with explicit sign (`2.5e8` // -> `2.5E+8`). - Removing an explicitly-provided zero exponent (`2.5E0` -> // `2.5`). Services **may** perform additional normalization based on its own // needs and the internal decimal implementation selected, such as shifting the // decimal point and exponent value together (example: `2.5E-1` <-> `0.25`). // Additionally, services **may** preserve trailing zeroes in the fraction to // indicate increased precision, but are not required to do so. Note that only // the `.` character is supported to divide the integer and the fraction; `,` // **should not** be supported regardless of locale. Additionally, thousand // separators **should not** be supported. If a service does support them, // values **must** be normalized. The ENBF grammar is: DecimalString = ” | // [Sign] Significand [Exponent]; Sign = '+' | '-'; Significand = Digits '.' | // [Digits] '.' Digits; Exponent = ('e' | 'E') [Sign] Digits; Digits = { '0' | // '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' }; Services **should** // clearly document the range of supported values, the maximum supported // precision (total number of digits), and, if applicable, the scale (number of // digits after the decimal point), as well as how it behaves when receiving // out-of-bounds values. Services **may** choose to accept values passed as // input even when the value has a higher precision or scale than the service // supports, and **should** round the value to fit the supported scale. // Alternatively, the service **may** error with `400 Bad Request` // (`INVALID_ARGUMENT` in gRPC) if precision would be lost. Services **should** // error with `400 Bad Request` (`INVALID_ARGUMENT` in gRPC) if the service // receives a value outside of the supported range. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Value") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://pkgo.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Value") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkgo.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
Decimal: A representation of a decimal value, such as 2.5. Clients may convert values into language-native decimal formats, such as Java's BigDecimal (https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/math/BigDecimal.html) or Python's decimal.Decimal (https://docs.python.org/3/library/decimal.html).
func (Decimal) MarshalJSON ¶ added in v0.218.0
type Empty ¶
type Empty struct { // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` }
Empty: A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }
type Event ¶
type Event struct { // EventInfo: Required. Information associated with the event. EventInfo *EventInfo `json:"eventInfo,omitempty"` // EventTime: Required. Event timestamp. EventTime string `json:"eventTime,omitempty"` // EventType: Required. Event type. // // Possible values: // "EVENT_TYPE_UNSPECIFIED" - Do not use. You must set an event type // explicitly. // "LOG_IN_VIA_PLATFORM" - Log in via platform. // "SIGN_UP_VIA_PLATFORM" - Sign up via platform. EventType string `json:"eventType,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "EventInfo") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkgo.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "EventInfo") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkgo.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
Event: A platform sub-account event to record spam signals.
func (Event) MarshalJSON ¶
type EventInfo ¶
type EventInfo struct { // BillingAddress: The billing address of the publisher associated with this // event, if available. BillingAddress *Address `json:"billingAddress,omitempty"` // Email: Required. The email address that is associated with the publisher // when performing the event. Email string `json:"email,omitempty"` // ForceSendFields is a list of field names (e.g. "BillingAddress") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkgo.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "BillingAddress") to include in // API requests with the JSON null value. By default, fields with empty values // are omitted from API requests. See // https://pkgo.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
EventInfo: Private information for partner recorded events (PII).
func (EventInfo) MarshalJSON ¶
type ListAccountsResponse ¶
type ListAccountsResponse struct { // Accounts: The Accounts returned in the list response. Represented by a // partial view of the Account resource, populating `name` and // `creation_request_id`. Accounts []*Account `json:"accounts,omitempty"` // NextPageToken: Continuation token used to page through accounts. To retrieve // the next page of the results, set the next request's "page_token" value to // this. NextPageToken string `json:"nextPageToken,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Accounts") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkgo.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Accounts") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkgo.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
ListAccountsResponse: Response definition for the list accounts rpc.
func (ListAccountsResponse) MarshalJSON ¶
func (s ListAccountsResponse) MarshalJSON() ([]byte, error)
type ListPlatformChildSitesResponse ¶ added in v0.217.0
type ListPlatformChildSitesResponse struct { // NextPageToken: Continuation token used to page through platforms. To // retrieve the next page of the results, set the next request's "page_token" // value to this. NextPageToken string `json:"nextPageToken,omitempty"` // PlatformChildSites: The platform child sites returned in this list response. PlatformChildSites []*PlatformChildSite `json:"platformChildSites,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "NextPageToken") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkgo.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "NextPageToken") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkgo.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
ListPlatformChildSitesResponse: Response definition for the list platform child sites rpc.
func (ListPlatformChildSitesResponse) MarshalJSON ¶ added in v0.217.0
func (s ListPlatformChildSitesResponse) MarshalJSON() ([]byte, error)
type ListPlatformGroupsResponse ¶ added in v0.218.0
type ListPlatformGroupsResponse struct { // NextPageToken: Continuation token used to page through platforms. To // retrieve the next page of the results, set the next request's "page_token" // value to this. NextPageToken string `json:"nextPageToken,omitempty"` // PlatformGroups: The platform groups returned in this list response. PlatformGroups []*PlatformGroup `json:"platformGroups,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "NextPageToken") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkgo.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "NextPageToken") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkgo.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
ListPlatformGroupsResponse: Response definition for the platform groups list rpc.
func (ListPlatformGroupsResponse) MarshalJSON ¶ added in v0.218.0
func (s ListPlatformGroupsResponse) MarshalJSON() ([]byte, error)
type ListPlatformsResponse ¶ added in v0.216.0
type ListPlatformsResponse struct { // NextPageToken: Continuation token used to page through platforms. To // retrieve the next page of the results, set the next request's "page_token" // value to this. NextPageToken string `json:"nextPageToken,omitempty"` // Platforms: The platforms returned in this list response. Platforms []*Platform `json:"platforms,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "NextPageToken") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkgo.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "NextPageToken") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkgo.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
ListPlatformsResponse: Response definition for the platform list rpc.
func (ListPlatformsResponse) MarshalJSON ¶ added in v0.216.0
func (s ListPlatformsResponse) MarshalJSON() ([]byte, error)
type ListSitesResponse ¶
type ListSitesResponse struct { // NextPageToken: Continuation token used to page through sites. To retrieve // the next page of the results, set the next request's "page_token" value to // this. NextPageToken string `json:"nextPageToken,omitempty"` // Sites: The sites returned in this list response. Sites []*Site `json:"sites,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "NextPageToken") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkgo.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "NextPageToken") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkgo.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
ListSitesResponse: Response definition for the site list rpc.
func (ListSitesResponse) MarshalJSON ¶
func (s ListSitesResponse) MarshalJSON() ([]byte, error)
type LookupAccountResponse ¶
type LookupAccountResponse struct { // Name: The name of the Account Format: // platforms/{platform}/accounts/{account_id} Name string `json:"name,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Name") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://pkgo.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Name") to include in API requests // with the JSON null value. By default, fields with empty values are omitted // from API requests. See // https://pkgo.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
LookupAccountResponse: Response definition for the lookup account rpc.
func (LookupAccountResponse) MarshalJSON ¶
func (s LookupAccountResponse) MarshalJSON() ([]byte, error)
type Platform ¶ added in v0.216.0
type Platform struct { // DefaultPlatformGroup: Default platform group for the platform. DefaultPlatformGroup string `json:"defaultPlatformGroup,omitempty"` // Description: Output only. Description of the platform. Description string `json:"description,omitempty"` // Name: Identifier. Resource name of a platform. Format: // accounts/{account}/platforms/{platform} Name string `json:"name,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "DefaultPlatformGroup") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkgo.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "DefaultPlatformGroup") to include // in API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. See // https://pkgo.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
Platform: Representation of a Transparent Platform.
func (Platform) MarshalJSON ¶ added in v0.216.0
type PlatformChildSite ¶ added in v0.217.0
type PlatformChildSite struct { // Domain: Output only. Domain URL of the Platform Child Site. Part of the // PlatformChildSite name. Domain string `json:"domain,omitempty"` // Name: Identifier. Format: // accounts/{account}/platforms/{platform}/childAccounts/{child_account}/sites/{ // platform_child_site} Name string `json:"name,omitempty"` // PlatformGroup: Resource name of the Platform Group of the Platform Child // Site. PlatformGroup string `json:"platformGroup,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Domain") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://pkgo.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Domain") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkgo.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
PlatformChildSite: Representation of a Transparent Platform Child Site.
func (PlatformChildSite) MarshalJSON ¶ added in v0.217.0
func (s PlatformChildSite) MarshalJSON() ([]byte, error)
type PlatformGroup ¶ added in v0.218.0
type PlatformGroup struct { // Description: Output only. Description of the PlatformGroup. Description string `json:"description,omitempty"` // Name: Identifier. Format: // accounts/{account}/platforms/{platform}/groups/{platform_group} Name string `json:"name,omitempty"` // millipercent (e.g. 15000 = 15%). RevshareMillipercent *Decimal `json:"revshareMillipercent,omitempty"` // ForceSendFields is a list of field names (e.g. "Description") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkgo.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Description") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkgo.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
PlatformGroup: Representation of a Transparent Platform Group.
func (PlatformGroup) MarshalJSON ¶ added in v0.218.0
func (s PlatformGroup) MarshalJSON() ([]byte, error)
type PlatformsAccountsCloseCall ¶
type PlatformsAccountsCloseCall struct {
// contains filtered or unexported fields
}
func (*PlatformsAccountsCloseCall) Context ¶
func (c *PlatformsAccountsCloseCall) Context(ctx context.Context) *PlatformsAccountsCloseCall
Context sets the context to be used in this call's Do method.
func (*PlatformsAccountsCloseCall) Do ¶
func (c *PlatformsAccountsCloseCall) Do(opts ...googleapi.CallOption) (*CloseAccountResponse, error)
Do executes the "adsenseplatform.platforms.accounts.close" call. Any non-2xx status code is an error. Response headers are in either *CloseAccountResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*PlatformsAccountsCloseCall) Fields ¶
func (c *PlatformsAccountsCloseCall) Fields(s ...googleapi.Field) *PlatformsAccountsCloseCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*PlatformsAccountsCloseCall) Header ¶
func (c *PlatformsAccountsCloseCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type PlatformsAccountsCreateCall ¶
type PlatformsAccountsCreateCall struct {
// contains filtered or unexported fields
}
func (*PlatformsAccountsCreateCall) Context ¶
func (c *PlatformsAccountsCreateCall) Context(ctx context.Context) *PlatformsAccountsCreateCall
Context sets the context to be used in this call's Do method.
func (*PlatformsAccountsCreateCall) Do ¶
func (c *PlatformsAccountsCreateCall) Do(opts ...googleapi.CallOption) (*Account, error)
Do executes the "adsenseplatform.platforms.accounts.create" call. Any non-2xx status code is an error. Response headers are in either *Account.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*PlatformsAccountsCreateCall) Fields ¶
func (c *PlatformsAccountsCreateCall) Fields(s ...googleapi.Field) *PlatformsAccountsCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*PlatformsAccountsCreateCall) Header ¶
func (c *PlatformsAccountsCreateCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type PlatformsAccountsEventsCreateCall ¶
type PlatformsAccountsEventsCreateCall struct {
// contains filtered or unexported fields
}
func (*PlatformsAccountsEventsCreateCall) Context ¶
func (c *PlatformsAccountsEventsCreateCall) Context(ctx context.Context) *PlatformsAccountsEventsCreateCall
Context sets the context to be used in this call's Do method.
func (*PlatformsAccountsEventsCreateCall) Do ¶
func (c *PlatformsAccountsEventsCreateCall) Do(opts ...googleapi.CallOption) (*Event, error)
Do executes the "adsenseplatform.platforms.accounts.events.create" call. Any non-2xx status code is an error. Response headers are in either *Event.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*PlatformsAccountsEventsCreateCall) Fields ¶
func (c *PlatformsAccountsEventsCreateCall) Fields(s ...googleapi.Field) *PlatformsAccountsEventsCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*PlatformsAccountsEventsCreateCall) Header ¶
func (c *PlatformsAccountsEventsCreateCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type PlatformsAccountsEventsService ¶
type PlatformsAccountsEventsService struct {
// contains filtered or unexported fields
}
func NewPlatformsAccountsEventsService ¶
func NewPlatformsAccountsEventsService(s *Service) *PlatformsAccountsEventsService
func (*PlatformsAccountsEventsService) Create ¶
func (r *PlatformsAccountsEventsService) Create(parent string, event *Event) *PlatformsAccountsEventsCreateCall
Create: Creates an account event.
- parent: Account to log events about. Format: platforms/{platform}/accounts/{account}.
type PlatformsAccountsGetCall ¶
type PlatformsAccountsGetCall struct {
// contains filtered or unexported fields
}
func (*PlatformsAccountsGetCall) Context ¶
func (c *PlatformsAccountsGetCall) Context(ctx context.Context) *PlatformsAccountsGetCall
Context sets the context to be used in this call's Do method.
func (*PlatformsAccountsGetCall) Do ¶
func (c *PlatformsAccountsGetCall) Do(opts ...googleapi.CallOption) (*Account, error)
Do executes the "adsenseplatform.platforms.accounts.get" call. Any non-2xx status code is an error. Response headers are in either *Account.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*PlatformsAccountsGetCall) Fields ¶
func (c *PlatformsAccountsGetCall) Fields(s ...googleapi.Field) *PlatformsAccountsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*PlatformsAccountsGetCall) Header ¶
func (c *PlatformsAccountsGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*PlatformsAccountsGetCall) IfNoneMatch ¶
func (c *PlatformsAccountsGetCall) IfNoneMatch(entityTag string) *PlatformsAccountsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type PlatformsAccountsListCall ¶
type PlatformsAccountsListCall struct {
// contains filtered or unexported fields
}
func (*PlatformsAccountsListCall) Context ¶
func (c *PlatformsAccountsListCall) Context(ctx context.Context) *PlatformsAccountsListCall
Context sets the context to be used in this call's Do method.
func (*PlatformsAccountsListCall) Do ¶
func (c *PlatformsAccountsListCall) Do(opts ...googleapi.CallOption) (*ListAccountsResponse, error)
Do executes the "adsenseplatform.platforms.accounts.list" call. Any non-2xx status code is an error. Response headers are in either *ListAccountsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*PlatformsAccountsListCall) Fields ¶
func (c *PlatformsAccountsListCall) Fields(s ...googleapi.Field) *PlatformsAccountsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*PlatformsAccountsListCall) Header ¶
func (c *PlatformsAccountsListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*PlatformsAccountsListCall) IfNoneMatch ¶
func (c *PlatformsAccountsListCall) IfNoneMatch(entityTag string) *PlatformsAccountsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*PlatformsAccountsListCall) PageSize ¶
func (c *PlatformsAccountsListCall) PageSize(pageSize int64) *PlatformsAccountsListCall
PageSize sets the optional parameter "pageSize": The maximum number of accounts to include in the response, used for paging. If unspecified, at most 10000 accounts will be returned. The maximum value is 10000; values above 10000 will be coerced to 10000.
func (*PlatformsAccountsListCall) PageToken ¶
func (c *PlatformsAccountsListCall) PageToken(pageToken string) *PlatformsAccountsListCall
PageToken sets the optional parameter "pageToken": A page token, received from a previous `ListAccounts` call. Provide this to retrieve the subsequent page.
func (*PlatformsAccountsListCall) Pages ¶
func (c *PlatformsAccountsListCall) Pages(ctx context.Context, f func(*ListAccountsResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type PlatformsAccountsLookupCall ¶
type PlatformsAccountsLookupCall struct {
// contains filtered or unexported fields
}
func (*PlatformsAccountsLookupCall) Context ¶
func (c *PlatformsAccountsLookupCall) Context(ctx context.Context) *PlatformsAccountsLookupCall
Context sets the context to be used in this call's Do method.
func (*PlatformsAccountsLookupCall) CreationRequestId ¶
func (c *PlatformsAccountsLookupCall) CreationRequestId(creationRequestId string) *PlatformsAccountsLookupCall
CreationRequestId sets the optional parameter "creationRequestId": The creation_request_id provided when calling createAccount.
func (*PlatformsAccountsLookupCall) Do ¶
func (c *PlatformsAccountsLookupCall) Do(opts ...googleapi.CallOption) (*LookupAccountResponse, error)
Do executes the "adsenseplatform.platforms.accounts.lookup" call. Any non-2xx status code is an error. Response headers are in either *LookupAccountResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*PlatformsAccountsLookupCall) Fields ¶
func (c *PlatformsAccountsLookupCall) Fields(s ...googleapi.Field) *PlatformsAccountsLookupCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*PlatformsAccountsLookupCall) Header ¶
func (c *PlatformsAccountsLookupCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*PlatformsAccountsLookupCall) IfNoneMatch ¶
func (c *PlatformsAccountsLookupCall) IfNoneMatch(entityTag string) *PlatformsAccountsLookupCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type PlatformsAccountsService ¶
type PlatformsAccountsService struct { Events *PlatformsAccountsEventsService Sites *PlatformsAccountsSitesService // contains filtered or unexported fields }
func NewPlatformsAccountsService ¶
func NewPlatformsAccountsService(s *Service) *PlatformsAccountsService
func (*PlatformsAccountsService) Close ¶
func (r *PlatformsAccountsService) Close(name string, closeaccountrequest *CloseAccountRequest) *PlatformsAccountsCloseCall
Close: Closes a sub-account.
- name: Account to close. Format: platforms/{platform}/accounts/{account_id}.
func (*PlatformsAccountsService) Create ¶
func (r *PlatformsAccountsService) Create(parent string, account *Account) *PlatformsAccountsCreateCall
Create: Creates a sub-account.
- parent: Platform to create an account for. Format: platforms/{platform}.
func (*PlatformsAccountsService) Get ¶
func (r *PlatformsAccountsService) Get(name string) *PlatformsAccountsGetCall
Get: Gets information about the selected sub-account.
- name: Account to get information about. Format: platforms/{platform}/accounts/{account_id}.
func (*PlatformsAccountsService) List ¶
func (r *PlatformsAccountsService) List(parent string) *PlatformsAccountsListCall
List: Lists a partial view of sub-accounts for a specific parent account.
- parent: Platform who parents the accounts. Format: platforms/{platform}.
func (*PlatformsAccountsService) Lookup ¶
func (r *PlatformsAccountsService) Lookup(parent string) *PlatformsAccountsLookupCall
Lookup: Looks up information about a sub-account for a specified creation_request_id. If no account exists for the given creation_request_id, returns 404.
- parent: Platform who parents the account. Format: platforms/{platform}.
type PlatformsAccountsSitesCreateCall ¶
type PlatformsAccountsSitesCreateCall struct {
// contains filtered or unexported fields
}
func (*PlatformsAccountsSitesCreateCall) Context ¶
func (c *PlatformsAccountsSitesCreateCall) Context(ctx context.Context) *PlatformsAccountsSitesCreateCall
Context sets the context to be used in this call's Do method.
func (*PlatformsAccountsSitesCreateCall) Do ¶
func (c *PlatformsAccountsSitesCreateCall) Do(opts ...googleapi.CallOption) (*Site, error)
Do executes the "adsenseplatform.platforms.accounts.sites.create" call. Any non-2xx status code is an error. Response headers are in either *Site.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*PlatformsAccountsSitesCreateCall) Fields ¶
func (c *PlatformsAccountsSitesCreateCall) Fields(s ...googleapi.Field) *PlatformsAccountsSitesCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*PlatformsAccountsSitesCreateCall) Header ¶
func (c *PlatformsAccountsSitesCreateCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type PlatformsAccountsSitesDeleteCall ¶
type PlatformsAccountsSitesDeleteCall struct {
// contains filtered or unexported fields
}
func (*PlatformsAccountsSitesDeleteCall) Context ¶
func (c *PlatformsAccountsSitesDeleteCall) Context(ctx context.Context) *PlatformsAccountsSitesDeleteCall
Context sets the context to be used in this call's Do method.
func (*PlatformsAccountsSitesDeleteCall) Do ¶
func (c *PlatformsAccountsSitesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
Do executes the "adsenseplatform.platforms.accounts.sites.delete" call. Any non-2xx status code is an error. Response headers are in either *Empty.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*PlatformsAccountsSitesDeleteCall) Fields ¶
func (c *PlatformsAccountsSitesDeleteCall) Fields(s ...googleapi.Field) *PlatformsAccountsSitesDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*PlatformsAccountsSitesDeleteCall) Header ¶
func (c *PlatformsAccountsSitesDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type PlatformsAccountsSitesGetCall ¶
type PlatformsAccountsSitesGetCall struct {
// contains filtered or unexported fields
}
func (*PlatformsAccountsSitesGetCall) Context ¶
func (c *PlatformsAccountsSitesGetCall) Context(ctx context.Context) *PlatformsAccountsSitesGetCall
Context sets the context to be used in this call's Do method.
func (*PlatformsAccountsSitesGetCall) Do ¶
func (c *PlatformsAccountsSitesGetCall) Do(opts ...googleapi.CallOption) (*Site, error)
Do executes the "adsenseplatform.platforms.accounts.sites.get" call. Any non-2xx status code is an error. Response headers are in either *Site.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*PlatformsAccountsSitesGetCall) Fields ¶
func (c *PlatformsAccountsSitesGetCall) Fields(s ...googleapi.Field) *PlatformsAccountsSitesGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*PlatformsAccountsSitesGetCall) Header ¶
func (c *PlatformsAccountsSitesGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*PlatformsAccountsSitesGetCall) IfNoneMatch ¶
func (c *PlatformsAccountsSitesGetCall) IfNoneMatch(entityTag string) *PlatformsAccountsSitesGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type PlatformsAccountsSitesListCall ¶
type PlatformsAccountsSitesListCall struct {
// contains filtered or unexported fields
}
func (*PlatformsAccountsSitesListCall) Context ¶
func (c *PlatformsAccountsSitesListCall) Context(ctx context.Context) *PlatformsAccountsSitesListCall
Context sets the context to be used in this call's Do method.
func (*PlatformsAccountsSitesListCall) Do ¶
func (c *PlatformsAccountsSitesListCall) Do(opts ...googleapi.CallOption) (*ListSitesResponse, error)
Do executes the "adsenseplatform.platforms.accounts.sites.list" call. Any non-2xx status code is an error. Response headers are in either *ListSitesResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*PlatformsAccountsSitesListCall) Fields ¶
func (c *PlatformsAccountsSitesListCall) Fields(s ...googleapi.Field) *PlatformsAccountsSitesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*PlatformsAccountsSitesListCall) Header ¶
func (c *PlatformsAccountsSitesListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*PlatformsAccountsSitesListCall) IfNoneMatch ¶
func (c *PlatformsAccountsSitesListCall) IfNoneMatch(entityTag string) *PlatformsAccountsSitesListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*PlatformsAccountsSitesListCall) PageSize ¶
func (c *PlatformsAccountsSitesListCall) PageSize(pageSize int64) *PlatformsAccountsSitesListCall
PageSize sets the optional parameter "pageSize": The maximum number of sites to include in the response, used for paging. If unspecified, at most 10000 sites will be returned. The maximum value is 10000; values above 10000 will be coerced to 10000.
func (*PlatformsAccountsSitesListCall) PageToken ¶
func (c *PlatformsAccountsSitesListCall) PageToken(pageToken string) *PlatformsAccountsSitesListCall
PageToken sets the optional parameter "pageToken": A page token, received from a previous `ListSites` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListSites` must match the call that provided the page token.
func (*PlatformsAccountsSitesListCall) Pages ¶
func (c *PlatformsAccountsSitesListCall) Pages(ctx context.Context, f func(*ListSitesResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type PlatformsAccountsSitesRequestReviewCall ¶
type PlatformsAccountsSitesRequestReviewCall struct {
// contains filtered or unexported fields
}
func (*PlatformsAccountsSitesRequestReviewCall) Context ¶
func (c *PlatformsAccountsSitesRequestReviewCall) Context(ctx context.Context) *PlatformsAccountsSitesRequestReviewCall
Context sets the context to be used in this call's Do method.
func (*PlatformsAccountsSitesRequestReviewCall) Do ¶
func (c *PlatformsAccountsSitesRequestReviewCall) Do(opts ...googleapi.CallOption) (*RequestSiteReviewResponse, error)
Do executes the "adsenseplatform.platforms.accounts.sites.requestReview" call. Any non-2xx status code is an error. Response headers are in either *RequestSiteReviewResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*PlatformsAccountsSitesRequestReviewCall) Fields ¶
func (c *PlatformsAccountsSitesRequestReviewCall) Fields(s ...googleapi.Field) *PlatformsAccountsSitesRequestReviewCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*PlatformsAccountsSitesRequestReviewCall) Header ¶
func (c *PlatformsAccountsSitesRequestReviewCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type PlatformsAccountsSitesService ¶
type PlatformsAccountsSitesService struct {
// contains filtered or unexported fields
}
func NewPlatformsAccountsSitesService ¶
func NewPlatformsAccountsSitesService(s *Service) *PlatformsAccountsSitesService
func (*PlatformsAccountsSitesService) Create ¶
func (r *PlatformsAccountsSitesService) Create(parent string, site *Site) *PlatformsAccountsSitesCreateCall
Create: Creates a site for a specified account.
- parent: Account to create site. Format: platforms/{platform}/accounts/{account_id}.
func (*PlatformsAccountsSitesService) Delete ¶
func (r *PlatformsAccountsSitesService) Delete(name string) *PlatformsAccountsSitesDeleteCall
Delete: Deletes a site from a specified account.
- name: The name of the site to delete. Format: platforms/{platform}/accounts/{account}/sites/{site}.
func (*PlatformsAccountsSitesService) Get ¶
func (r *PlatformsAccountsSitesService) Get(name string) *PlatformsAccountsSitesGetCall
Get: Gets a site from a specified sub-account.
- name: The name of the site to retrieve. Format: platforms/{platform}/accounts/{account}/sites/{site}.
func (*PlatformsAccountsSitesService) List ¶
func (r *PlatformsAccountsSitesService) List(parent string) *PlatformsAccountsSitesListCall
List: Lists sites for a specific account.
- parent: The account which owns the sites. Format: platforms/{platform}/accounts/{account}.
func (*PlatformsAccountsSitesService) RequestReview ¶
func (r *PlatformsAccountsSitesService) RequestReview(name string) *PlatformsAccountsSitesRequestReviewCall
RequestReview: Requests the review of a site. The site should be in REQUIRES_REVIEW or NEEDS_ATTENTION state. Note: Make sure you place an ad tag (https://developers.google.com/adsense/platforms/direct/ad-tags) on your site before requesting a review.
- name: The name of the site to submit for review. Format: platforms/{platform}/accounts/{account}/sites/{site}.
type PlatformsService ¶
type PlatformsService struct { Accounts *PlatformsAccountsService // contains filtered or unexported fields }
func NewPlatformsService ¶
func NewPlatformsService(s *Service) *PlatformsService
type RequestSiteReviewResponse ¶
type RequestSiteReviewResponse struct { // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` }
RequestSiteReviewResponse: Response definition for the site request review rpc.
type Service ¶
type Service struct { BasePath string // API endpoint base URL UserAgent string // optional additional User-Agent fragment Accounts *AccountsService Platforms *PlatformsService // contains filtered or unexported fields }
func New
deprecated
New creates a new Service. It uses the provided http.Client for requests.
Deprecated: please use NewService instead. To provide a custom HTTP client, use option.WithHTTPClient. If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.
func NewService ¶
NewService creates a new Service.
type Site ¶
type Site struct { // Domain: Domain/sub-domain of the site. Must be a valid domain complying with // RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt) and formatted as punycode // RFC 3492 (https://www.ietf.org/rfc/rfc3492.txt) in case the domain contains // unicode characters. Domain string `json:"domain,omitempty"` // Name: Output only. Resource name of a site. Format: // platforms/{platform}/accounts/{account}/sites/{site} Name string `json:"name,omitempty"` // State: Output only. State of a site. // // Possible values: // "STATE_UNSPECIFIED" - State unspecified. // "REQUIRES_REVIEW" - Either: - The site hasn't been checked yet. - The site // is inactive and needs another review before it can show ads again. Learn how // to [request a review for an inactive // site](https://support.google.com/adsense/answer/9393996). // "GETTING_READY" - Google is running some checks on the site. This usually // takes a few days, but in some cases it can take two to four weeks. // "READY" - The site is ready to show ads. Learn how to [set up ads on the // site](https://support.google.com/adsense/answer/7037624). // "NEEDS_ATTENTION" - Publisher needs to fix some issues before the site is // ready to show ads. Learn what to do [if a new site isn't // ready](https://support.google.com/adsense/answer/9061852). State string `json:"state,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Domain") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://pkgo.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Domain") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkgo.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
Site: Representation of a Site.
func (Site) MarshalJSON ¶
type TimeZone ¶
type TimeZone struct { // Id: IANA Time Zone Database time zone. For example "America/New_York". Id string `json:"id,omitempty"` // Version: Optional. IANA Time Zone Database version number. For example // "2019a". Version string `json:"version,omitempty"` // ForceSendFields is a list of field names (e.g. "Id") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://pkgo.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Id") to include in API requests // with the JSON null value. By default, fields with empty values are omitted // from API requests. See // https://pkgo.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
TimeZone: Represents a time zone from the IANA Time Zone Database (https://www.iana.org/time-zones).