partners
packageThis package is not in the latest version of its module.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
Documentation¶
Overview¶
Package partners provides access to the Google Partners API.
For product documentation, see:https://developers.google.com/partners/
Creating a client¶
Usage example:
import "google.golang.org/api/partners/v2"...ctx := context.Background()partnersService, err := partners.NewService(ctx)
In this example, Google Application Default Credentials are used for authentication.
For information on how to create and obtain Application Default Credentials, seehttps://developers.google.com/identity/protocols/application-default-credentials.
Other authentication options¶
To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey:
partnersService, err := partners.NewService(ctx, option.WithAPIKey("AIza..."))To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource:
config := &oauth2.Config{...}// ...token, err := config.Exchange(ctx, ...)partnersService, err := partners.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))Seehttps://godoc.org/google.golang.org/api/option/ for details on options.
Index¶
- type AdWordsManagerAccountInfo
- type Analytics
- type AnalyticsDataPoint
- type AnalyticsListCall
- func (c *AnalyticsListCall) Context(ctx context.Context) *AnalyticsListCall
- func (c *AnalyticsListCall) Do(opts ...googleapi.CallOption) (*ListAnalyticsResponse, error)
- func (c *AnalyticsListCall) Fields(s ...googleapi.Field) *AnalyticsListCall
- func (c *AnalyticsListCall) Header() http.Header
- func (c *AnalyticsListCall) IfNoneMatch(entityTag string) *AnalyticsListCall
- func (c *AnalyticsListCall) PageSize(pageSize int64) *AnalyticsListCall
- func (c *AnalyticsListCall) PageToken(pageToken string) *AnalyticsListCall
- func (c *AnalyticsListCall) Pages(ctx context.Context, f func(*ListAnalyticsResponse) error) error
- func (c *AnalyticsListCall) RequestMetadataExperimentIds(requestMetadataExperimentIds ...string) *AnalyticsListCall
- func (c *AnalyticsListCall) RequestMetadataLocale(requestMetadataLocale string) *AnalyticsListCall
- func (c *AnalyticsListCall) RequestMetadataPartnersSessionId(requestMetadataPartnersSessionId string) *AnalyticsListCall
- func (c *AnalyticsListCall) RequestMetadataTrafficSourceTrafficSourceId(requestMetadataTrafficSourceTrafficSourceId string) *AnalyticsListCall
- func (c *AnalyticsListCall) RequestMetadataTrafficSourceTrafficSubId(requestMetadataTrafficSourceTrafficSubId string) *AnalyticsListCall
- func (c *AnalyticsListCall) RequestMetadataUserOverridesIpAddress(requestMetadataUserOverridesIpAddress string) *AnalyticsListCall
- func (c *AnalyticsListCall) RequestMetadataUserOverridesUserId(requestMetadataUserOverridesUserId string) *AnalyticsListCall
- type AnalyticsService
- type AnalyticsSummary
- type AvailableOffer
- type Certification
- type CertificationExamStatus
- type CertificationStatus
- type ClientMessagesLogCall
- func (c *ClientMessagesLogCall) Context(ctx context.Context) *ClientMessagesLogCall
- func (c *ClientMessagesLogCall) Do(opts ...googleapi.CallOption) (*LogMessageResponse, error)
- func (c *ClientMessagesLogCall) Fields(s ...googleapi.Field) *ClientMessagesLogCall
- func (c *ClientMessagesLogCall) Header() http.Header
- type ClientMessagesService
- type CompaniesGetCall
- func (c *CompaniesGetCall) Address(address string) *CompaniesGetCall
- func (c *CompaniesGetCall) Context(ctx context.Context) *CompaniesGetCall
- func (c *CompaniesGetCall) CurrencyCode(currencyCode string) *CompaniesGetCall
- func (c *CompaniesGetCall) Do(opts ...googleapi.CallOption) (*GetCompanyResponse, error)
- func (c *CompaniesGetCall) Fields(s ...googleapi.Field) *CompaniesGetCall
- func (c *CompaniesGetCall) Header() http.Header
- func (c *CompaniesGetCall) IfNoneMatch(entityTag string) *CompaniesGetCall
- func (c *CompaniesGetCall) OrderBy(orderBy string) *CompaniesGetCall
- func (c *CompaniesGetCall) RequestMetadataExperimentIds(requestMetadataExperimentIds ...string) *CompaniesGetCall
- func (c *CompaniesGetCall) RequestMetadataLocale(requestMetadataLocale string) *CompaniesGetCall
- func (c *CompaniesGetCall) RequestMetadataPartnersSessionId(requestMetadataPartnersSessionId string) *CompaniesGetCall
- func (c *CompaniesGetCall) RequestMetadataTrafficSourceTrafficSourceId(requestMetadataTrafficSourceTrafficSourceId string) *CompaniesGetCall
- func (c *CompaniesGetCall) RequestMetadataTrafficSourceTrafficSubId(requestMetadataTrafficSourceTrafficSubId string) *CompaniesGetCall
- func (c *CompaniesGetCall) RequestMetadataUserOverridesIpAddress(requestMetadataUserOverridesIpAddress string) *CompaniesGetCall
- func (c *CompaniesGetCall) RequestMetadataUserOverridesUserId(requestMetadataUserOverridesUserId string) *CompaniesGetCall
- func (c *CompaniesGetCall) View(view string) *CompaniesGetCall
- type CompaniesLeadsCreateCall
- func (c *CompaniesLeadsCreateCall) Context(ctx context.Context) *CompaniesLeadsCreateCall
- func (c *CompaniesLeadsCreateCall) Do(opts ...googleapi.CallOption) (*CreateLeadResponse, error)
- func (c *CompaniesLeadsCreateCall) Fields(s ...googleapi.Field) *CompaniesLeadsCreateCall
- func (c *CompaniesLeadsCreateCall) Header() http.Header
- type CompaniesLeadsService
- type CompaniesListCall
- func (c *CompaniesListCall) Address(address string) *CompaniesListCall
- func (c *CompaniesListCall) CompanyName(companyName string) *CompaniesListCall
- func (c *CompaniesListCall) Context(ctx context.Context) *CompaniesListCall
- func (c *CompaniesListCall) Do(opts ...googleapi.CallOption) (*ListCompaniesResponse, error)
- func (c *CompaniesListCall) Fields(s ...googleapi.Field) *CompaniesListCall
- func (c *CompaniesListCall) GpsMotivations(gpsMotivations ...string) *CompaniesListCall
- func (c *CompaniesListCall) Header() http.Header
- func (c *CompaniesListCall) IfNoneMatch(entityTag string) *CompaniesListCall
- func (c *CompaniesListCall) Industries(industries ...string) *CompaniesListCall
- func (c *CompaniesListCall) LanguageCodes(languageCodes ...string) *CompaniesListCall
- func (c *CompaniesListCall) MaxMonthlyBudgetCurrencyCode(maxMonthlyBudgetCurrencyCode string) *CompaniesListCall
- func (c *CompaniesListCall) MaxMonthlyBudgetNanos(maxMonthlyBudgetNanos int64) *CompaniesListCall
- func (c *CompaniesListCall) MaxMonthlyBudgetUnits(maxMonthlyBudgetUnits int64) *CompaniesListCall
- func (c *CompaniesListCall) MinMonthlyBudgetCurrencyCode(minMonthlyBudgetCurrencyCode string) *CompaniesListCall
- func (c *CompaniesListCall) MinMonthlyBudgetNanos(minMonthlyBudgetNanos int64) *CompaniesListCall
- func (c *CompaniesListCall) MinMonthlyBudgetUnits(minMonthlyBudgetUnits int64) *CompaniesListCall
- func (c *CompaniesListCall) OrderBy(orderBy string) *CompaniesListCall
- func (c *CompaniesListCall) PageSize(pageSize int64) *CompaniesListCall
- func (c *CompaniesListCall) PageToken(pageToken string) *CompaniesListCall
- func (c *CompaniesListCall) Pages(ctx context.Context, f func(*ListCompaniesResponse) error) error
- func (c *CompaniesListCall) RequestMetadataExperimentIds(requestMetadataExperimentIds ...string) *CompaniesListCall
- func (c *CompaniesListCall) RequestMetadataLocale(requestMetadataLocale string) *CompaniesListCall
- func (c *CompaniesListCall) RequestMetadataPartnersSessionId(requestMetadataPartnersSessionId string) *CompaniesListCall
- func (c *CompaniesListCall) RequestMetadataTrafficSourceTrafficSourceId(requestMetadataTrafficSourceTrafficSourceId string) *CompaniesListCall
- func (c *CompaniesListCall) RequestMetadataTrafficSourceTrafficSubId(requestMetadataTrafficSourceTrafficSubId string) *CompaniesListCall
- func (c *CompaniesListCall) RequestMetadataUserOverridesIpAddress(requestMetadataUserOverridesIpAddress string) *CompaniesListCall
- func (c *CompaniesListCall) RequestMetadataUserOverridesUserId(requestMetadataUserOverridesUserId string) *CompaniesListCall
- func (c *CompaniesListCall) Services(services ...string) *CompaniesListCall
- func (c *CompaniesListCall) Specializations(specializations ...string) *CompaniesListCall
- func (c *CompaniesListCall) View(view string) *CompaniesListCall
- func (c *CompaniesListCall) WebsiteUrl(websiteUrl string) *CompaniesListCall
- type CompaniesService
- type Company
- type CompanyRelation
- type CountryOfferInfo
- type CreateLeadRequest
- type CreateLeadResponse
- type Date
- type DebugInfo
- type Empty
- type EventData
- type ExamStatus
- type GetCompanyResponse
- type GetPartnersStatusResponse
- type HistoricalOffer
- type LatLng
- type Lead
- type LeadsListCall
- func (c *LeadsListCall) Context(ctx context.Context) *LeadsListCall
- func (c *LeadsListCall) Do(opts ...googleapi.CallOption) (*ListLeadsResponse, error)
- func (c *LeadsListCall) Fields(s ...googleapi.Field) *LeadsListCall
- func (c *LeadsListCall) Header() http.Header
- func (c *LeadsListCall) IfNoneMatch(entityTag string) *LeadsListCall
- func (c *LeadsListCall) OrderBy(orderBy string) *LeadsListCall
- func (c *LeadsListCall) PageSize(pageSize int64) *LeadsListCall
- func (c *LeadsListCall) PageToken(pageToken string) *LeadsListCall
- func (c *LeadsListCall) Pages(ctx context.Context, f func(*ListLeadsResponse) error) error
- func (c *LeadsListCall) RequestMetadataExperimentIds(requestMetadataExperimentIds ...string) *LeadsListCall
- func (c *LeadsListCall) RequestMetadataLocale(requestMetadataLocale string) *LeadsListCall
- func (c *LeadsListCall) RequestMetadataPartnersSessionId(requestMetadataPartnersSessionId string) *LeadsListCall
- func (c *LeadsListCall) RequestMetadataTrafficSourceTrafficSourceId(requestMetadataTrafficSourceTrafficSourceId string) *LeadsListCall
- func (c *LeadsListCall) RequestMetadataTrafficSourceTrafficSubId(requestMetadataTrafficSourceTrafficSubId string) *LeadsListCall
- func (c *LeadsListCall) RequestMetadataUserOverridesIpAddress(requestMetadataUserOverridesIpAddress string) *LeadsListCall
- func (c *LeadsListCall) RequestMetadataUserOverridesUserId(requestMetadataUserOverridesUserId string) *LeadsListCall
- type LeadsService
- type ListAnalyticsResponse
- type ListCompaniesResponse
- type ListLeadsResponse
- type ListOffersHistoryResponse
- type ListOffersResponse
- type ListUserStatesResponse
- type LocalizedCompanyInfo
- type Location
- type LogMessageRequest
- type LogMessageResponse
- type LogUserEventRequest
- type LogUserEventResponse
- type Money
- type OfferCustomer
- type OffersHistoryListCall
- func (c *OffersHistoryListCall) Context(ctx context.Context) *OffersHistoryListCall
- func (c *OffersHistoryListCall) Do(opts ...googleapi.CallOption) (*ListOffersHistoryResponse, error)
- func (c *OffersHistoryListCall) EntireCompany(entireCompany bool) *OffersHistoryListCall
- func (c *OffersHistoryListCall) Fields(s ...googleapi.Field) *OffersHistoryListCall
- func (c *OffersHistoryListCall) Header() http.Header
- func (c *OffersHistoryListCall) IfNoneMatch(entityTag string) *OffersHistoryListCall
- func (c *OffersHistoryListCall) OrderBy(orderBy string) *OffersHistoryListCall
- func (c *OffersHistoryListCall) PageSize(pageSize int64) *OffersHistoryListCall
- func (c *OffersHistoryListCall) PageToken(pageToken string) *OffersHistoryListCall
- func (c *OffersHistoryListCall) Pages(ctx context.Context, f func(*ListOffersHistoryResponse) error) error
- func (c *OffersHistoryListCall) RequestMetadataExperimentIds(requestMetadataExperimentIds ...string) *OffersHistoryListCall
- func (c *OffersHistoryListCall) RequestMetadataLocale(requestMetadataLocale string) *OffersHistoryListCall
- func (c *OffersHistoryListCall) RequestMetadataPartnersSessionId(requestMetadataPartnersSessionId string) *OffersHistoryListCall
- func (c *OffersHistoryListCall) RequestMetadataTrafficSourceTrafficSourceId(requestMetadataTrafficSourceTrafficSourceId string) *OffersHistoryListCall
- func (c *OffersHistoryListCall) RequestMetadataTrafficSourceTrafficSubId(requestMetadataTrafficSourceTrafficSubId string) *OffersHistoryListCall
- func (c *OffersHistoryListCall) RequestMetadataUserOverridesIpAddress(requestMetadataUserOverridesIpAddress string) *OffersHistoryListCall
- func (c *OffersHistoryListCall) RequestMetadataUserOverridesUserId(requestMetadataUserOverridesUserId string) *OffersHistoryListCall
- type OffersHistoryService
- type OffersListCall
- func (c *OffersListCall) Context(ctx context.Context) *OffersListCall
- func (c *OffersListCall) Do(opts ...googleapi.CallOption) (*ListOffersResponse, error)
- func (c *OffersListCall) Fields(s ...googleapi.Field) *OffersListCall
- func (c *OffersListCall) Header() http.Header
- func (c *OffersListCall) IfNoneMatch(entityTag string) *OffersListCall
- func (c *OffersListCall) RequestMetadataExperimentIds(requestMetadataExperimentIds ...string) *OffersListCall
- func (c *OffersListCall) RequestMetadataLocale(requestMetadataLocale string) *OffersListCall
- func (c *OffersListCall) RequestMetadataPartnersSessionId(requestMetadataPartnersSessionId string) *OffersListCall
- func (c *OffersListCall) RequestMetadataTrafficSourceTrafficSourceId(requestMetadataTrafficSourceTrafficSourceId string) *OffersListCall
- func (c *OffersListCall) RequestMetadataTrafficSourceTrafficSubId(requestMetadataTrafficSourceTrafficSubId string) *OffersListCall
- func (c *OffersListCall) RequestMetadataUserOverridesIpAddress(requestMetadataUserOverridesIpAddress string) *OffersListCall
- func (c *OffersListCall) RequestMetadataUserOverridesUserId(requestMetadataUserOverridesUserId string) *OffersListCall
- type OffersService
- type OptIns
- type PublicProfile
- type Rank
- type RecaptchaChallenge
- type RequestMetadata
- type ResponseMetadata
- type Service
- type SpecializationStatus
- type TrafficSource
- type User
- type UserEventsLogCall
- type UserEventsService
- type UserOverrides
- type UserProfile
- type UserStatesListCall
- func (c *UserStatesListCall) Context(ctx context.Context) *UserStatesListCall
- func (c *UserStatesListCall) Do(opts ...googleapi.CallOption) (*ListUserStatesResponse, error)
- func (c *UserStatesListCall) Fields(s ...googleapi.Field) *UserStatesListCall
- func (c *UserStatesListCall) Header() http.Header
- func (c *UserStatesListCall) IfNoneMatch(entityTag string) *UserStatesListCall
- func (c *UserStatesListCall) RequestMetadataExperimentIds(requestMetadataExperimentIds ...string) *UserStatesListCall
- func (c *UserStatesListCall) RequestMetadataLocale(requestMetadataLocale string) *UserStatesListCall
- func (c *UserStatesListCall) RequestMetadataPartnersSessionId(requestMetadataPartnersSessionId string) *UserStatesListCall
- func (c *UserStatesListCall) RequestMetadataTrafficSourceTrafficSourceId(requestMetadataTrafficSourceTrafficSourceId string) *UserStatesListCall
- func (c *UserStatesListCall) RequestMetadataTrafficSourceTrafficSubId(requestMetadataTrafficSourceTrafficSubId string) *UserStatesListCall
- func (c *UserStatesListCall) RequestMetadataUserOverridesIpAddress(requestMetadataUserOverridesIpAddress string) *UserStatesListCall
- func (c *UserStatesListCall) RequestMetadataUserOverridesUserId(requestMetadataUserOverridesUserId string) *UserStatesListCall
- type UserStatesService
- type UsersCreateCompanyRelationCall
- func (c *UsersCreateCompanyRelationCall) Context(ctx context.Context) *UsersCreateCompanyRelationCall
- func (c *UsersCreateCompanyRelationCall) Do(opts ...googleapi.CallOption) (*CompanyRelation, error)
- func (c *UsersCreateCompanyRelationCall) Fields(s ...googleapi.Field) *UsersCreateCompanyRelationCall
- func (c *UsersCreateCompanyRelationCall) Header() http.Header
- func (c *UsersCreateCompanyRelationCall) RequestMetadataExperimentIds(requestMetadataExperimentIds ...string) *UsersCreateCompanyRelationCall
- func (c *UsersCreateCompanyRelationCall) RequestMetadataLocale(requestMetadataLocale string) *UsersCreateCompanyRelationCall
- func (c *UsersCreateCompanyRelationCall) RequestMetadataPartnersSessionId(requestMetadataPartnersSessionId string) *UsersCreateCompanyRelationCall
- func (c *UsersCreateCompanyRelationCall) RequestMetadataTrafficSourceTrafficSourceId(requestMetadataTrafficSourceTrafficSourceId string) *UsersCreateCompanyRelationCall
- func (c *UsersCreateCompanyRelationCall) RequestMetadataTrafficSourceTrafficSubId(requestMetadataTrafficSourceTrafficSubId string) *UsersCreateCompanyRelationCall
- func (c *UsersCreateCompanyRelationCall) RequestMetadataUserOverridesIpAddress(requestMetadataUserOverridesIpAddress string) *UsersCreateCompanyRelationCall
- func (c *UsersCreateCompanyRelationCall) RequestMetadataUserOverridesUserId(requestMetadataUserOverridesUserId string) *UsersCreateCompanyRelationCall
- type UsersDeleteCompanyRelationCall
- func (c *UsersDeleteCompanyRelationCall) Context(ctx context.Context) *UsersDeleteCompanyRelationCall
- func (c *UsersDeleteCompanyRelationCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *UsersDeleteCompanyRelationCall) Fields(s ...googleapi.Field) *UsersDeleteCompanyRelationCall
- func (c *UsersDeleteCompanyRelationCall) Header() http.Header
- func (c *UsersDeleteCompanyRelationCall) RequestMetadataExperimentIds(requestMetadataExperimentIds ...string) *UsersDeleteCompanyRelationCall
- func (c *UsersDeleteCompanyRelationCall) RequestMetadataLocale(requestMetadataLocale string) *UsersDeleteCompanyRelationCall
- func (c *UsersDeleteCompanyRelationCall) RequestMetadataPartnersSessionId(requestMetadataPartnersSessionId string) *UsersDeleteCompanyRelationCall
- func (c *UsersDeleteCompanyRelationCall) RequestMetadataTrafficSourceTrafficSourceId(requestMetadataTrafficSourceTrafficSourceId string) *UsersDeleteCompanyRelationCall
- func (c *UsersDeleteCompanyRelationCall) RequestMetadataTrafficSourceTrafficSubId(requestMetadataTrafficSourceTrafficSubId string) *UsersDeleteCompanyRelationCall
- func (c *UsersDeleteCompanyRelationCall) RequestMetadataUserOverridesIpAddress(requestMetadataUserOverridesIpAddress string) *UsersDeleteCompanyRelationCall
- func (c *UsersDeleteCompanyRelationCall) RequestMetadataUserOverridesUserId(requestMetadataUserOverridesUserId string) *UsersDeleteCompanyRelationCall
- type UsersGetCall
- func (c *UsersGetCall) Context(ctx context.Context) *UsersGetCall
- func (c *UsersGetCall) Do(opts ...googleapi.CallOption) (*User, error)
- func (c *UsersGetCall) Fields(s ...googleapi.Field) *UsersGetCall
- func (c *UsersGetCall) Header() http.Header
- func (c *UsersGetCall) IfNoneMatch(entityTag string) *UsersGetCall
- func (c *UsersGetCall) RequestMetadataExperimentIds(requestMetadataExperimentIds ...string) *UsersGetCall
- func (c *UsersGetCall) RequestMetadataLocale(requestMetadataLocale string) *UsersGetCall
- func (c *UsersGetCall) RequestMetadataPartnersSessionId(requestMetadataPartnersSessionId string) *UsersGetCall
- func (c *UsersGetCall) RequestMetadataTrafficSourceTrafficSourceId(requestMetadataTrafficSourceTrafficSourceId string) *UsersGetCall
- func (c *UsersGetCall) RequestMetadataTrafficSourceTrafficSubId(requestMetadataTrafficSourceTrafficSubId string) *UsersGetCall
- func (c *UsersGetCall) RequestMetadataUserOverridesIpAddress(requestMetadataUserOverridesIpAddress string) *UsersGetCall
- func (c *UsersGetCall) RequestMetadataUserOverridesUserId(requestMetadataUserOverridesUserId string) *UsersGetCall
- func (c *UsersGetCall) UserView(userView string) *UsersGetCall
- type UsersService
- func (r *UsersService) CreateCompanyRelation(userId string, companyrelation *CompanyRelation) *UsersCreateCompanyRelationCall
- func (r *UsersService) DeleteCompanyRelation(userId string) *UsersDeleteCompanyRelationCall
- func (r *UsersService) Get(userId string) *UsersGetCall
- func (r *UsersService) UpdateProfile(userprofile *UserProfile) *UsersUpdateProfileCall
- type UsersUpdateProfileCall
- func (c *UsersUpdateProfileCall) Context(ctx context.Context) *UsersUpdateProfileCall
- func (c *UsersUpdateProfileCall) Do(opts ...googleapi.CallOption) (*UserProfile, error)
- func (c *UsersUpdateProfileCall) Fields(s ...googleapi.Field) *UsersUpdateProfileCall
- func (c *UsersUpdateProfileCall) Header() http.Header
- func (c *UsersUpdateProfileCall) RequestMetadataExperimentIds(requestMetadataExperimentIds ...string) *UsersUpdateProfileCall
- func (c *UsersUpdateProfileCall) RequestMetadataLocale(requestMetadataLocale string) *UsersUpdateProfileCall
- func (c *UsersUpdateProfileCall) RequestMetadataPartnersSessionId(requestMetadataPartnersSessionId string) *UsersUpdateProfileCall
- func (c *UsersUpdateProfileCall) RequestMetadataTrafficSourceTrafficSourceId(requestMetadataTrafficSourceTrafficSourceId string) *UsersUpdateProfileCall
- func (c *UsersUpdateProfileCall) RequestMetadataTrafficSourceTrafficSubId(requestMetadataTrafficSourceTrafficSubId string) *UsersUpdateProfileCall
- func (c *UsersUpdateProfileCall) RequestMetadataUserOverridesIpAddress(requestMetadataUserOverridesIpAddress string) *UsersUpdateProfileCall
- func (c *UsersUpdateProfileCall) RequestMetadataUserOverridesUserId(requestMetadataUserOverridesUserId string) *UsersUpdateProfileCall
- type V2GetPartnersstatusCall
- func (c *V2GetPartnersstatusCall) Context(ctx context.Context) *V2GetPartnersstatusCall
- func (c *V2GetPartnersstatusCall) Do(opts ...googleapi.CallOption) (*GetPartnersStatusResponse, error)
- func (c *V2GetPartnersstatusCall) Fields(s ...googleapi.Field) *V2GetPartnersstatusCall
- func (c *V2GetPartnersstatusCall) Header() http.Header
- func (c *V2GetPartnersstatusCall) IfNoneMatch(entityTag string) *V2GetPartnersstatusCall
- func (c *V2GetPartnersstatusCall) RequestMetadataExperimentIds(requestMetadataExperimentIds ...string) *V2GetPartnersstatusCall
- func (c *V2GetPartnersstatusCall) RequestMetadataLocale(requestMetadataLocale string) *V2GetPartnersstatusCall
- func (c *V2GetPartnersstatusCall) RequestMetadataPartnersSessionId(requestMetadataPartnersSessionId string) *V2GetPartnersstatusCall
- func (c *V2GetPartnersstatusCall) RequestMetadataTrafficSourceTrafficSourceId(requestMetadataTrafficSourceTrafficSourceId string) *V2GetPartnersstatusCall
- func (c *V2GetPartnersstatusCall) RequestMetadataTrafficSourceTrafficSubId(requestMetadataTrafficSourceTrafficSubId string) *V2GetPartnersstatusCall
- func (c *V2GetPartnersstatusCall) RequestMetadataUserOverridesIpAddress(requestMetadataUserOverridesIpAddress string) *V2GetPartnersstatusCall
- func (c *V2GetPartnersstatusCall) RequestMetadataUserOverridesUserId(requestMetadataUserOverridesUserId string) *V2GetPartnersstatusCall
- type V2Service
- type V2UpdateCompaniesCall
- func (c *V2UpdateCompaniesCall) Context(ctx context.Context) *V2UpdateCompaniesCall
- func (c *V2UpdateCompaniesCall) Do(opts ...googleapi.CallOption) (*Company, error)
- func (c *V2UpdateCompaniesCall) Fields(s ...googleapi.Field) *V2UpdateCompaniesCall
- func (c *V2UpdateCompaniesCall) Header() http.Header
- func (c *V2UpdateCompaniesCall) RequestMetadataExperimentIds(requestMetadataExperimentIds ...string) *V2UpdateCompaniesCall
- func (c *V2UpdateCompaniesCall) RequestMetadataLocale(requestMetadataLocale string) *V2UpdateCompaniesCall
- func (c *V2UpdateCompaniesCall) RequestMetadataPartnersSessionId(requestMetadataPartnersSessionId string) *V2UpdateCompaniesCall
- func (c *V2UpdateCompaniesCall) RequestMetadataTrafficSourceTrafficSourceId(requestMetadataTrafficSourceTrafficSourceId string) *V2UpdateCompaniesCall
- func (c *V2UpdateCompaniesCall) RequestMetadataTrafficSourceTrafficSubId(requestMetadataTrafficSourceTrafficSubId string) *V2UpdateCompaniesCall
- func (c *V2UpdateCompaniesCall) RequestMetadataUserOverridesIpAddress(requestMetadataUserOverridesIpAddress string) *V2UpdateCompaniesCall
- func (c *V2UpdateCompaniesCall) RequestMetadataUserOverridesUserId(requestMetadataUserOverridesUserId string) *V2UpdateCompaniesCall
- func (c *V2UpdateCompaniesCall) UpdateMask(updateMask string) *V2UpdateCompaniesCall
- type V2UpdateLeadsCall
- func (c *V2UpdateLeadsCall) Context(ctx context.Context) *V2UpdateLeadsCall
- func (c *V2UpdateLeadsCall) Do(opts ...googleapi.CallOption) (*Lead, error)
- func (c *V2UpdateLeadsCall) Fields(s ...googleapi.Field) *V2UpdateLeadsCall
- func (c *V2UpdateLeadsCall) Header() http.Header
- func (c *V2UpdateLeadsCall) RequestMetadataExperimentIds(requestMetadataExperimentIds ...string) *V2UpdateLeadsCall
- func (c *V2UpdateLeadsCall) RequestMetadataLocale(requestMetadataLocale string) *V2UpdateLeadsCall
- func (c *V2UpdateLeadsCall) RequestMetadataPartnersSessionId(requestMetadataPartnersSessionId string) *V2UpdateLeadsCall
- func (c *V2UpdateLeadsCall) RequestMetadataTrafficSourceTrafficSourceId(requestMetadataTrafficSourceTrafficSourceId string) *V2UpdateLeadsCall
- func (c *V2UpdateLeadsCall) RequestMetadataTrafficSourceTrafficSubId(requestMetadataTrafficSourceTrafficSubId string) *V2UpdateLeadsCall
- func (c *V2UpdateLeadsCall) RequestMetadataUserOverridesIpAddress(requestMetadataUserOverridesIpAddress string) *V2UpdateLeadsCall
- func (c *V2UpdateLeadsCall) RequestMetadataUserOverridesUserId(requestMetadataUserOverridesUserId string) *V2UpdateLeadsCall
- func (c *V2UpdateLeadsCall) UpdateMask(updateMask string) *V2UpdateLeadsCall
Constants¶
This section is empty.
Variables¶
This section is empty.
Functions¶
This section is empty.
Types¶
typeAdWordsManagerAccountInfo¶
type AdWordsManagerAccountInfo struct {// CustomerName: Name of the customer this account represents.CustomerNamestring `json:"customerName,omitempty"`// Id: The AdWords Manager Account id.Idint64 `json:"id,omitempty,string"`// ForceSendFields is a list of field names (e.g. "CustomerName") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CustomerName") to include// in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. However, any field with// an empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}AdWordsManagerAccountInfo: Information about a particular AdWordsManager Account.Read more athttps://support.google.com/adwords/answer/6139186
func (*AdWordsManagerAccountInfo)MarshalJSON¶
func (s *AdWordsManagerAccountInfo) MarshalJSON() ([]byte,error)
typeAnalytics¶
type Analytics struct {// Contacts: Instances of users contacting the `Company`// on the specified date.Contacts *AnalyticsDataPoint `json:"contacts,omitempty"`// EventDate: Date on which these events occurred.EventDate *Date `json:"eventDate,omitempty"`// ProfileViews: Instances of users viewing the `Company` profile// on the specified date.ProfileViews *AnalyticsDataPoint `json:"profileViews,omitempty"`// SearchViews: Instances of users seeing the `Company` in Google// Partners Search results// on the specified date.SearchViews *AnalyticsDataPoint `json:"searchViews,omitempty"`// ForceSendFields is a list of field names (e.g. "Contacts") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Contacts") to include in// API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}Analytics: Analytics data for a `Company` within a single day.
func (*Analytics)MarshalJSON¶
typeAnalyticsDataPoint¶
type AnalyticsDataPoint struct {// EventCount: Number of times the type of event occurred.// Meaning depends on context (e.g. profile views, contacts, etc.).EventCountint64 `json:"eventCount,omitempty"`// EventLocations: Location information of where these events occurred.EventLocations []*LatLng `json:"eventLocations,omitempty"`// ForceSendFields is a list of field names (e.g. "EventCount") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "EventCount") to include in// API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}AnalyticsDataPoint: Details of the analytics events for a `Company`within a single day.
func (*AnalyticsDataPoint)MarshalJSON¶
func (s *AnalyticsDataPoint) MarshalJSON() ([]byte,error)
typeAnalyticsListCall¶
type AnalyticsListCall struct {// contains filtered or unexported fields}func (*AnalyticsListCall)Context¶
func (c *AnalyticsListCall) Context(ctxcontext.Context) *AnalyticsListCall
Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.
func (*AnalyticsListCall)Do¶
func (c *AnalyticsListCall) Do(opts ...googleapi.CallOption) (*ListAnalyticsResponse,error)
Do executes the "partners.analytics.list" call.Exactly one of *ListAnalyticsResponse or error will be non-nil. Anynon-2xx status code is an error. Response headers are in either*ListAnalyticsResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error wasbecause http.StatusNotModified was returned.
func (*AnalyticsListCall)Fields¶
func (c *AnalyticsListCall) Fields(s ...googleapi.Field) *AnalyticsListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.
func (*AnalyticsListCall)Header¶
func (c *AnalyticsListCall) Header()http.Header
Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.
func (*AnalyticsListCall)IfNoneMatch¶
func (c *AnalyticsListCall) IfNoneMatch(entityTagstring) *AnalyticsListCall
IfNoneMatch sets the optional parameter which makes the operationfail if the object's ETag matches the given value. This is useful forgetting updates only after the object has changed since the lastrequest. Use googleapi.IsNotModified to check whether the responseerror from Do is the result of In-None-Match.
func (*AnalyticsListCall)PageSize¶
func (c *AnalyticsListCall) PageSize(pageSizeint64) *AnalyticsListCall
PageSize sets the optional parameter "pageSize": Requested page size.Server may return fewer analytics than requested.If unspecified or set to 0, default value is 30.Specifies the number of days in the date range when queryinganalytics.The `page_token` represents the end date of the date rangeand the start date is calculated using the `page_size` as thenumberof days BEFORE the end date.Must be a non-negative integer.
func (*AnalyticsListCall)PageToken¶
func (c *AnalyticsListCall) PageToken(pageTokenstring) *AnalyticsListCall
PageToken sets the optional parameter "pageToken": A tokenidentifying a page of results that the server returns.Typically, this is the value of`ListAnalyticsResponse.next_page_token`returned from the previous call toListAnalytics.Will be a date string in `YYYY-MM-DD` format representing the enddateof the date range of results to return.If unspecified or set to "", default value is the current date.
func (*AnalyticsListCall)Pages¶
func (c *AnalyticsListCall) Pages(ctxcontext.Context, f func(*ListAnalyticsResponse)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.
func (*AnalyticsListCall)RequestMetadataExperimentIds¶
func (c *AnalyticsListCall) RequestMetadataExperimentIds(requestMetadataExperimentIds ...string) *AnalyticsListCall
RequestMetadataExperimentIds sets the optional parameter"requestMetadata.experimentIds": Experiment IDs the current requestbelongs to.
func (*AnalyticsListCall)RequestMetadataLocale¶
func (c *AnalyticsListCall) RequestMetadataLocale(requestMetadataLocalestring) *AnalyticsListCall
RequestMetadataLocale sets the optional parameter"requestMetadata.locale": Locale to use for the current request.
func (*AnalyticsListCall)RequestMetadataPartnersSessionId¶
func (c *AnalyticsListCall) RequestMetadataPartnersSessionId(requestMetadataPartnersSessionIdstring) *AnalyticsListCall
RequestMetadataPartnersSessionId sets the optional parameter"requestMetadata.partnersSessionId": Google Partners session ID.
func (*AnalyticsListCall)RequestMetadataTrafficSourceTrafficSourceId¶
func (c *AnalyticsListCall) RequestMetadataTrafficSourceTrafficSourceId(requestMetadataTrafficSourceTrafficSourceIdstring) *AnalyticsListCall
RequestMetadataTrafficSourceTrafficSourceId sets the optionalparameter "requestMetadata.trafficSource.trafficSourceId": Identifierto indicate where the traffic comes from.An identifier has multiple letters created by a team which redirectedthetraffic to us.
func (*AnalyticsListCall)RequestMetadataTrafficSourceTrafficSubId¶
func (c *AnalyticsListCall) RequestMetadataTrafficSourceTrafficSubId(requestMetadataTrafficSourceTrafficSubIdstring) *AnalyticsListCall
RequestMetadataTrafficSourceTrafficSubId sets the optional parameter"requestMetadata.trafficSource.trafficSubId": Second level identifierto indicate where the traffic comes from.An identifier has multiple letters created by a team which redirectedthetraffic to us.
func (*AnalyticsListCall)RequestMetadataUserOverridesIpAddress¶
func (c *AnalyticsListCall) RequestMetadataUserOverridesIpAddress(requestMetadataUserOverridesIpAddressstring) *AnalyticsListCall
RequestMetadataUserOverridesIpAddress sets the optional parameter"requestMetadata.userOverrides.ipAddress": IP address to use insteadof the user's geo-located IP address.
func (*AnalyticsListCall)RequestMetadataUserOverridesUserId¶
func (c *AnalyticsListCall) RequestMetadataUserOverridesUserId(requestMetadataUserOverridesUserIdstring) *AnalyticsListCall
RequestMetadataUserOverridesUserId sets the optional parameter"requestMetadata.userOverrides.userId": Logged-in user ID toimpersonate instead of the user's ID.
typeAnalyticsService¶
type AnalyticsService struct {// contains filtered or unexported fields}funcNewAnalyticsService¶
func NewAnalyticsService(s *Service) *AnalyticsService
func (*AnalyticsService)List¶
func (r *AnalyticsService) List() *AnalyticsListCall
List: Lists analytics data for a user's associated company.Should only be called within the context of an authorized logged inuser.
typeAnalyticsSummary¶
type AnalyticsSummary struct {// ContactsCount: Aggregated number of times users contacted the// `Company`// for given date range.ContactsCountint64 `json:"contactsCount,omitempty"`// ProfileViewsCount: Aggregated number of profile views for the// `Company` for given date range.ProfileViewsCountint64 `json:"profileViewsCount,omitempty"`// SearchViewsCount: Aggregated number of times users saw the// `Company`// in Google Partners Search results for given date range.SearchViewsCountint64 `json:"searchViewsCount,omitempty"`// ForceSendFields is a list of field names (e.g. "ContactsCount") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ContactsCount") to include// in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. However, any field with// an empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}AnalyticsSummary: Analytics aggregated data for a `Company` for agiven date range.
func (*AnalyticsSummary)MarshalJSON¶
func (s *AnalyticsSummary) MarshalJSON() ([]byte,error)
typeAvailableOffer¶
type AvailableOffer struct {// Available: The number of codes for this offer that are available for// distribution.Availableint64 `json:"available,omitempty"`// CountryOfferInfos: Offer info by country.CountryOfferInfos []*CountryOfferInfo `json:"countryOfferInfos,omitempty"`// Description: Description of the offer.Descriptionstring `json:"description,omitempty"`// Id: ID of this offer.Idint64 `json:"id,omitempty,string"`// MaxAccountAge: The maximum age of an account [in days] to be// eligible.MaxAccountAgeint64 `json:"maxAccountAge,omitempty"`// Name: Name of the offer.Namestring `json:"name,omitempty"`// OfferLevel: Level of this offer.//// Possible values:// "OFFER_LEVEL_UNSPECIFIED" - Unset.// "OFFER_LEVEL_DENY_PROBLEM" - Users/Agencies that have no offers// because of a problem.// "OFFER_LEVEL_DENY_CONTRACT" - Users/Agencies that have no offers// due to contractural agreements.// "OFFER_LEVEL_MANUAL" - Users/Agencies that have a// manually-configured limit.// "OFFER_LEVEL_LIMIT_0" - Some Agencies don't get any offers.// "OFFER_LEVEL_LIMIT_5" - Basic level gets 5 per month.// "OFFER_LEVEL_LIMIT_15" - Agencies with adequate AHI and spend get// 15/month.// "OFFER_LEVEL_LIMIT_50" - Badged partners (even in grace) get 50 per// month.OfferLevelstring `json:"offerLevel,omitempty"`// OfferType: Type of offer.//// Possible values:// "OFFER_TYPE_UNSPECIFIED" - Unset.// "OFFER_TYPE_SPEND_X_GET_Y" - AdWords spend X get Y.// "OFFER_TYPE_VIDEO" - Youtube video.// "OFFER_TYPE_SPEND_MATCH" - Spend Match up to Y.OfferTypestring `json:"offerType,omitempty"`// QualifiedCustomer: Customers who qualify for this offer.QualifiedCustomer []*OfferCustomer `json:"qualifiedCustomer,omitempty"`// QualifiedCustomersComplete: Whether or not the list of qualified// customers is definitely complete.QualifiedCustomersCompletebool `json:"qualifiedCustomersComplete,omitempty"`// ShowSpecialOfferCopy: Should special text be shown on the offers// page.ShowSpecialOfferCopybool `json:"showSpecialOfferCopy,omitempty"`// Terms: Terms of the offer.Termsstring `json:"terms,omitempty"`// ForceSendFields is a list of field names (e.g. "Available") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Available") to include in// API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}AvailableOffer: Available Offers to be distributed.
func (*AvailableOffer)MarshalJSON¶
func (s *AvailableOffer) MarshalJSON() ([]byte,error)
typeCertification¶
type Certification struct {// Achieved: Whether this certification has been achieved.Achievedbool `json:"achieved,omitempty"`// CertificationType: The type of certification, the area of expertise.//// Possible values:// "CERTIFICATION_TYPE_UNSPECIFIED" - Unchosen.// "CT_ADWORDS" - AdWords certified.// "CT_YOUTUBE" - YouTube certified.// "CT_VIDEOADS" - VideoAds certified.// "CT_ANALYTICS" - Analytics certified.// "CT_DOUBLECLICK" - DoubleClick certified.// "CT_SHOPPING" - Shopping certified.// "CT_MOBILE" - Mobile certified.// "CT_DIGITAL_SALES" - Digital sales certified.// "CT_ADWORDS_SEARCH" - AdWords Search certified.// "CT_ADWORDS_DISPLAY" - AdWords Display certified.// "CT_MOBILE_SITES" - Mobile Sites certified.CertificationTypestring `json:"certificationType,omitempty"`// Expiration: Date this certification is due to expire.Expirationstring `json:"expiration,omitempty"`// LastAchieved: The date the user last achieved certification.LastAchievedstring `json:"lastAchieved,omitempty"`// Warning: Whether this certification is in the state of warning.Warningbool `json:"warning,omitempty"`// ForceSendFields is a list of field names (e.g. "Achieved") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Achieved") to include in// API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}Certification: A user's information on a specific certification.
func (*Certification)MarshalJSON¶
func (s *Certification) MarshalJSON() ([]byte,error)
typeCertificationExamStatus¶
type CertificationExamStatus struct {// NumberUsersPass: The number of people who have passed the// certification exam.NumberUsersPassint64 `json:"numberUsersPass,omitempty"`// Type: The type of certification exam.//// Possible values:// "CERTIFICATION_EXAM_TYPE_UNSPECIFIED" - Unchosen.// "CET_ADWORDS_FUNDAMENTALS" - Adwords Fundamentals exam.// "CET_ADWORDS_ADVANCED_SEARCH" - AdWords advanced search exam.// "CET_ADWORDS_ADVANCED_DISPLAY" - AdWords advanced display exam.// "CET_VIDEO_ADS" - VideoAds exam.// "CET_DOUBLECLICK" - DoubleClick exam.// "CET_ANALYTICS" - Analytics exam.// "CET_SHOPPING" - Shopping exam.// "CET_MOBILE" - Mobile exam.// "CET_DIGITAL_SALES" - Digital Sales exam.// "CET_MOBILE_SITES" - Mobile Sites exam.Typestring `json:"type,omitempty"`// ForceSendFields is a list of field names (e.g. "NumberUsersPass") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "NumberUsersPass") to// include in API requests with the JSON null value. By default, fields// with empty values are omitted from API requests. However, any field// with an empty value appearing in NullFields will be sent to the// server as null. It is an error if a field in this list has a// non-empty value. This may be used to include null fields in Patch// requests.NullFields []string `json:"-"`}CertificationExamStatus: Status for a Google Partners certificationexam.
func (*CertificationExamStatus)MarshalJSON¶
func (s *CertificationExamStatus) MarshalJSON() ([]byte,error)
typeCertificationStatus¶
type CertificationStatus struct {// ExamStatuses: List of certification exam statuses.ExamStatuses []*CertificationExamStatus `json:"examStatuses,omitempty"`// IsCertified: Whether certification is passing.IsCertifiedbool `json:"isCertified,omitempty"`// Type: The type of the certification.//// Possible values:// "CERTIFICATION_TYPE_UNSPECIFIED" - Unchosen.// "CT_ADWORDS" - AdWords certified.// "CT_YOUTUBE" - YouTube certified.// "CT_VIDEOADS" - VideoAds certified.// "CT_ANALYTICS" - Analytics certified.// "CT_DOUBLECLICK" - DoubleClick certified.// "CT_SHOPPING" - Shopping certified.// "CT_MOBILE" - Mobile certified.// "CT_DIGITAL_SALES" - Digital sales certified.// "CT_ADWORDS_SEARCH" - AdWords Search certified.// "CT_ADWORDS_DISPLAY" - AdWords Display certified.// "CT_MOBILE_SITES" - Mobile Sites certified.Typestring `json:"type,omitempty"`// UserCount: Number of people who are certified,UserCountint64 `json:"userCount,omitempty"`// ForceSendFields is a list of field names (e.g. "ExamStatuses") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ExamStatuses") to include// in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. However, any field with// an empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}CertificationStatus: Google Partners certification status.
func (*CertificationStatus)MarshalJSON¶
func (s *CertificationStatus) MarshalJSON() ([]byte,error)
typeClientMessagesLogCall¶
type ClientMessagesLogCall struct {// contains filtered or unexported fields}func (*ClientMessagesLogCall)Context¶
func (c *ClientMessagesLogCall) Context(ctxcontext.Context) *ClientMessagesLogCall
Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.
func (*ClientMessagesLogCall)Do¶
func (c *ClientMessagesLogCall) Do(opts ...googleapi.CallOption) (*LogMessageResponse,error)
Do executes the "partners.clientMessages.log" call.Exactly one of *LogMessageResponse or error will be non-nil. Anynon-2xx status code is an error. Response headers are in either*LogMessageResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error wasbecause http.StatusNotModified was returned.
func (*ClientMessagesLogCall)Fields¶
func (c *ClientMessagesLogCall) Fields(s ...googleapi.Field) *ClientMessagesLogCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.
func (*ClientMessagesLogCall)Header¶
func (c *ClientMessagesLogCall) Header()http.Header
Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.
typeClientMessagesService¶
type ClientMessagesService struct {// contains filtered or unexported fields}funcNewClientMessagesService¶
func NewClientMessagesService(s *Service) *ClientMessagesService
func (*ClientMessagesService)Log¶
func (r *ClientMessagesService) Log(logmessagerequest *LogMessageRequest) *ClientMessagesLogCall
Log: Logs a generic message from the client, such as`Failed to render component`, `Profile page is running slow`,`More than 500 users have accessed this result.`, etc.
typeCompaniesGetCall¶
type CompaniesGetCall struct {// contains filtered or unexported fields}func (*CompaniesGetCall)Address¶
func (c *CompaniesGetCall) Address(addressstring) *CompaniesGetCall
Address sets the optional parameter "address": The address to use forsorting the company's addresses by proximity.If not given, the geo-located address of the request is used.Used when order_by is set.
func (*CompaniesGetCall)Context¶
func (c *CompaniesGetCall) Context(ctxcontext.Context) *CompaniesGetCall
Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.
func (*CompaniesGetCall)CurrencyCode¶
func (c *CompaniesGetCall) CurrencyCode(currencyCodestring) *CompaniesGetCall
CurrencyCode sets the optional parameter "currencyCode": If thecompany's budget is in a different currency code than this one,thenthe converted budget is converted to this currency code.
func (*CompaniesGetCall)Do¶
func (c *CompaniesGetCall) Do(opts ...googleapi.CallOption) (*GetCompanyResponse,error)
Do executes the "partners.companies.get" call.Exactly one of *GetCompanyResponse or error will be non-nil. Anynon-2xx status code is an error. Response headers are in either*GetCompanyResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error wasbecause http.StatusNotModified was returned.
func (*CompaniesGetCall)Fields¶
func (c *CompaniesGetCall) Fields(s ...googleapi.Field) *CompaniesGetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.
func (*CompaniesGetCall)Header¶
func (c *CompaniesGetCall) Header()http.Header
Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.
func (*CompaniesGetCall)IfNoneMatch¶
func (c *CompaniesGetCall) IfNoneMatch(entityTagstring) *CompaniesGetCall
IfNoneMatch sets the optional parameter which makes the operationfail if the object's ETag matches the given value. This is useful forgetting updates only after the object has changed since the lastrequest. Use googleapi.IsNotModified to check whether the responseerror from Do is the result of In-None-Match.
func (*CompaniesGetCall)OrderBy¶
func (c *CompaniesGetCall) OrderBy(orderBystring) *CompaniesGetCall
OrderBy sets the optional parameter "orderBy": How to order addresseswithin the returned company. Currently, only`address` and `address desc` is supported which will sorted byclosest tofarthest in distance from given address and farthest to closestdistancefrom given address respectively.
func (*CompaniesGetCall)RequestMetadataExperimentIds¶
func (c *CompaniesGetCall) RequestMetadataExperimentIds(requestMetadataExperimentIds ...string) *CompaniesGetCall
RequestMetadataExperimentIds sets the optional parameter"requestMetadata.experimentIds": Experiment IDs the current requestbelongs to.
func (*CompaniesGetCall)RequestMetadataLocale¶
func (c *CompaniesGetCall) RequestMetadataLocale(requestMetadataLocalestring) *CompaniesGetCall
RequestMetadataLocale sets the optional parameter"requestMetadata.locale": Locale to use for the current request.
func (*CompaniesGetCall)RequestMetadataPartnersSessionId¶
func (c *CompaniesGetCall) RequestMetadataPartnersSessionId(requestMetadataPartnersSessionIdstring) *CompaniesGetCall
RequestMetadataPartnersSessionId sets the optional parameter"requestMetadata.partnersSessionId": Google Partners session ID.
func (*CompaniesGetCall)RequestMetadataTrafficSourceTrafficSourceId¶
func (c *CompaniesGetCall) RequestMetadataTrafficSourceTrafficSourceId(requestMetadataTrafficSourceTrafficSourceIdstring) *CompaniesGetCall
RequestMetadataTrafficSourceTrafficSourceId sets the optionalparameter "requestMetadata.trafficSource.trafficSourceId": Identifierto indicate where the traffic comes from.An identifier has multiple letters created by a team which redirectedthetraffic to us.
func (*CompaniesGetCall)RequestMetadataTrafficSourceTrafficSubId¶
func (c *CompaniesGetCall) RequestMetadataTrafficSourceTrafficSubId(requestMetadataTrafficSourceTrafficSubIdstring) *CompaniesGetCall
RequestMetadataTrafficSourceTrafficSubId sets the optional parameter"requestMetadata.trafficSource.trafficSubId": Second level identifierto indicate where the traffic comes from.An identifier has multiple letters created by a team which redirectedthetraffic to us.
func (*CompaniesGetCall)RequestMetadataUserOverridesIpAddress¶
func (c *CompaniesGetCall) RequestMetadataUserOverridesIpAddress(requestMetadataUserOverridesIpAddressstring) *CompaniesGetCall
RequestMetadataUserOverridesIpAddress sets the optional parameter"requestMetadata.userOverrides.ipAddress": IP address to use insteadof the user's geo-located IP address.
func (*CompaniesGetCall)RequestMetadataUserOverridesUserId¶
func (c *CompaniesGetCall) RequestMetadataUserOverridesUserId(requestMetadataUserOverridesUserIdstring) *CompaniesGetCall
RequestMetadataUserOverridesUserId sets the optional parameter"requestMetadata.userOverrides.userId": Logged-in user ID toimpersonate instead of the user's ID.
func (*CompaniesGetCall)View¶
func (c *CompaniesGetCall) View(viewstring) *CompaniesGetCall
View sets the optional parameter "view": The view of `Company`resource to be returned. This must not be`COMPANY_VIEW_UNSPECIFIED`.
Possible values:
"COMPANY_VIEW_UNSPECIFIED""CV_GOOGLE_PARTNER_SEARCH"
typeCompaniesLeadsCreateCall¶
type CompaniesLeadsCreateCall struct {// contains filtered or unexported fields}func (*CompaniesLeadsCreateCall)Context¶
func (c *CompaniesLeadsCreateCall) Context(ctxcontext.Context) *CompaniesLeadsCreateCall
Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.
func (*CompaniesLeadsCreateCall)Do¶
func (c *CompaniesLeadsCreateCall) Do(opts ...googleapi.CallOption) (*CreateLeadResponse,error)
Do executes the "partners.companies.leads.create" call.Exactly one of *CreateLeadResponse or error will be non-nil. Anynon-2xx status code is an error. Response headers are in either*CreateLeadResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error wasbecause http.StatusNotModified was returned.
func (*CompaniesLeadsCreateCall)Fields¶
func (c *CompaniesLeadsCreateCall) Fields(s ...googleapi.Field) *CompaniesLeadsCreateCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.
func (*CompaniesLeadsCreateCall)Header¶
func (c *CompaniesLeadsCreateCall) Header()http.Header
Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.
typeCompaniesLeadsService¶
type CompaniesLeadsService struct {// contains filtered or unexported fields}funcNewCompaniesLeadsService¶
func NewCompaniesLeadsService(s *Service) *CompaniesLeadsService
func (*CompaniesLeadsService)Create¶
func (r *CompaniesLeadsService) Create(companyIdstring, createleadrequest *CreateLeadRequest) *CompaniesLeadsCreateCall
Create: Creates an advertiser lead for the given company ID.
typeCompaniesListCall¶
type CompaniesListCall struct {// contains filtered or unexported fields}func (*CompaniesListCall)Address¶
func (c *CompaniesListCall) Address(addressstring) *CompaniesListCall
Address sets the optional parameter "address": The address to usewhen searching for companies.If not given, the geo-located address of the request is used.
func (*CompaniesListCall)CompanyName¶
func (c *CompaniesListCall) CompanyName(companyNamestring) *CompaniesListCall
CompanyName sets the optional parameter "companyName": Company nameto search for.
func (*CompaniesListCall)Context¶
func (c *CompaniesListCall) Context(ctxcontext.Context) *CompaniesListCall
Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.
func (*CompaniesListCall)Do¶
func (c *CompaniesListCall) Do(opts ...googleapi.CallOption) (*ListCompaniesResponse,error)
Do executes the "partners.companies.list" call.Exactly one of *ListCompaniesResponse or error will be non-nil. Anynon-2xx status code is an error. Response headers are in either*ListCompaniesResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error wasbecause http.StatusNotModified was returned.
func (*CompaniesListCall)Fields¶
func (c *CompaniesListCall) Fields(s ...googleapi.Field) *CompaniesListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.
func (*CompaniesListCall)GpsMotivations¶
func (c *CompaniesListCall) GpsMotivations(gpsMotivations ...string) *CompaniesListCall
GpsMotivations sets the optional parameter "gpsMotivations": List ofreasons for using Google Partner Search to get companies.
Possible values:
"GPS_MOTIVATION_UNSPECIFIED""GPSM_HELP_WITH_ADVERTISING""GPSM_HELP_WITH_WEBSITE""GPSM_NO_WEBSITE"
func (*CompaniesListCall)Header¶
func (c *CompaniesListCall) Header()http.Header
Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.
func (*CompaniesListCall)IfNoneMatch¶
func (c *CompaniesListCall) IfNoneMatch(entityTagstring) *CompaniesListCall
IfNoneMatch sets the optional parameter which makes the operationfail if the object's ETag matches the given value. This is useful forgetting updates only after the object has changed since the lastrequest. Use googleapi.IsNotModified to check whether the responseerror from Do is the result of In-None-Match.
func (*CompaniesListCall)Industries¶
func (c *CompaniesListCall) Industries(industries ...string) *CompaniesListCall
Industries sets the optional parameter "industries": List ofindustries the company can help with.
Possible values:
"INDUSTRY_UNSPECIFIED""I_AUTOMOTIVE""I_BUSINESS_TO_BUSINESS""I_CONSUMER_PACKAGED_GOODS""I_EDUCATION""I_FINANCE""I_HEALTHCARE""I_MEDIA_AND_ENTERTAINMENT""I_RETAIL""I_TECHNOLOGY""I_TRAVEL"
func (*CompaniesListCall)LanguageCodes¶
func (c *CompaniesListCall) LanguageCodes(languageCodes ...string) *CompaniesListCall
LanguageCodes sets the optional parameter "languageCodes": List oflanguage codes that company can support. Only primarylanguagesubtags are accepted as defined by<a href="https://tools.ietf.org/html/bcp47">BCP 47</a>(IETF BCP 47, "Tags for Identifying Languages").
func (*CompaniesListCall)MaxMonthlyBudgetCurrencyCode¶
func (c *CompaniesListCall) MaxMonthlyBudgetCurrencyCode(maxMonthlyBudgetCurrencyCodestring) *CompaniesListCall
MaxMonthlyBudgetCurrencyCode sets the optional parameter"maxMonthlyBudget.currencyCode": The 3-letter currency code definedin ISO 4217.
func (*CompaniesListCall)MaxMonthlyBudgetNanos¶
func (c *CompaniesListCall) MaxMonthlyBudgetNanos(maxMonthlyBudgetNanosint64) *CompaniesListCall
MaxMonthlyBudgetNanos sets the optional parameter"maxMonthlyBudget.nanos": Number of nano (10^-9) units of theamount.The value must be between -999,999,999 and +999,999,999 inclusive.If `units` is positive, `nanos` must be positive or zero.If `units` is zero, `nanos` can be positive, zero, or negative.If `units` is negative, `nanos` must be negative or zero.For example $-1.75 is represented as `units`=-1 and`nanos`=-750,000,000.
func (*CompaniesListCall)MaxMonthlyBudgetUnits¶
func (c *CompaniesListCall) MaxMonthlyBudgetUnits(maxMonthlyBudgetUnitsint64) *CompaniesListCall
MaxMonthlyBudgetUnits sets the optional parameter"maxMonthlyBudget.units": The whole units of the amount.For example if `currencyCode` is "USD", then 1 unit is one USdollar.
func (*CompaniesListCall)MinMonthlyBudgetCurrencyCode¶
func (c *CompaniesListCall) MinMonthlyBudgetCurrencyCode(minMonthlyBudgetCurrencyCodestring) *CompaniesListCall
MinMonthlyBudgetCurrencyCode sets the optional parameter"minMonthlyBudget.currencyCode": The 3-letter currency code definedin ISO 4217.
func (*CompaniesListCall)MinMonthlyBudgetNanos¶
func (c *CompaniesListCall) MinMonthlyBudgetNanos(minMonthlyBudgetNanosint64) *CompaniesListCall
MinMonthlyBudgetNanos sets the optional parameter"minMonthlyBudget.nanos": Number of nano (10^-9) units of theamount.The value must be between -999,999,999 and +999,999,999 inclusive.If `units` is positive, `nanos` must be positive or zero.If `units` is zero, `nanos` can be positive, zero, or negative.If `units` is negative, `nanos` must be negative or zero.For example $-1.75 is represented as `units`=-1 and`nanos`=-750,000,000.
func (*CompaniesListCall)MinMonthlyBudgetUnits¶
func (c *CompaniesListCall) MinMonthlyBudgetUnits(minMonthlyBudgetUnitsint64) *CompaniesListCall
MinMonthlyBudgetUnits sets the optional parameter"minMonthlyBudget.units": The whole units of the amount.For example if `currencyCode` is "USD", then 1 unit is one USdollar.
func (*CompaniesListCall)OrderBy¶
func (c *CompaniesListCall) OrderBy(orderBystring) *CompaniesListCall
OrderBy sets the optional parameter "orderBy": How to order addresseswithin the returned companies. Currently, only`address` and `address desc` is supported which will sorted byclosest tofarthest in distance from given address and farthest to closestdistancefrom given address respectively.
func (*CompaniesListCall)PageSize¶
func (c *CompaniesListCall) PageSize(pageSizeint64) *CompaniesListCall
PageSize sets the optional parameter "pageSize": Requested page size.Server may return fewer companies than requested.If unspecified, server picks an appropriate default.
func (*CompaniesListCall)PageToken¶
func (c *CompaniesListCall) PageToken(pageTokenstring) *CompaniesListCall
PageToken sets the optional parameter "pageToken": A tokenidentifying a page of results that the server returns.Typically, this is the value of`ListCompaniesResponse.next_page_token`returned from the previous call toListCompanies.
func (*CompaniesListCall)Pages¶
func (c *CompaniesListCall) Pages(ctxcontext.Context, f func(*ListCompaniesResponse)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.
func (*CompaniesListCall)RequestMetadataExperimentIds¶
func (c *CompaniesListCall) RequestMetadataExperimentIds(requestMetadataExperimentIds ...string) *CompaniesListCall
RequestMetadataExperimentIds sets the optional parameter"requestMetadata.experimentIds": Experiment IDs the current requestbelongs to.
func (*CompaniesListCall)RequestMetadataLocale¶
func (c *CompaniesListCall) RequestMetadataLocale(requestMetadataLocalestring) *CompaniesListCall
RequestMetadataLocale sets the optional parameter"requestMetadata.locale": Locale to use for the current request.
func (*CompaniesListCall)RequestMetadataPartnersSessionId¶
func (c *CompaniesListCall) RequestMetadataPartnersSessionId(requestMetadataPartnersSessionIdstring) *CompaniesListCall
RequestMetadataPartnersSessionId sets the optional parameter"requestMetadata.partnersSessionId": Google Partners session ID.
func (*CompaniesListCall)RequestMetadataTrafficSourceTrafficSourceId¶
func (c *CompaniesListCall) RequestMetadataTrafficSourceTrafficSourceId(requestMetadataTrafficSourceTrafficSourceIdstring) *CompaniesListCall
RequestMetadataTrafficSourceTrafficSourceId sets the optionalparameter "requestMetadata.trafficSource.trafficSourceId": Identifierto indicate where the traffic comes from.An identifier has multiple letters created by a team which redirectedthetraffic to us.
func (*CompaniesListCall)RequestMetadataTrafficSourceTrafficSubId¶
func (c *CompaniesListCall) RequestMetadataTrafficSourceTrafficSubId(requestMetadataTrafficSourceTrafficSubIdstring) *CompaniesListCall
RequestMetadataTrafficSourceTrafficSubId sets the optional parameter"requestMetadata.trafficSource.trafficSubId": Second level identifierto indicate where the traffic comes from.An identifier has multiple letters created by a team which redirectedthetraffic to us.
func (*CompaniesListCall)RequestMetadataUserOverridesIpAddress¶
func (c *CompaniesListCall) RequestMetadataUserOverridesIpAddress(requestMetadataUserOverridesIpAddressstring) *CompaniesListCall
RequestMetadataUserOverridesIpAddress sets the optional parameter"requestMetadata.userOverrides.ipAddress": IP address to use insteadof the user's geo-located IP address.
func (*CompaniesListCall)RequestMetadataUserOverridesUserId¶
func (c *CompaniesListCall) RequestMetadataUserOverridesUserId(requestMetadataUserOverridesUserIdstring) *CompaniesListCall
RequestMetadataUserOverridesUserId sets the optional parameter"requestMetadata.userOverrides.userId": Logged-in user ID toimpersonate instead of the user's ID.
func (*CompaniesListCall)Services¶
func (c *CompaniesListCall) Services(services ...string) *CompaniesListCall
Services sets the optional parameter "services": List of servicesthat the returned agencies should provide. If this isnot empty, any returned agency must have at least one of theseservices,or one of the specializations in the "specializations" field.
Possible values:
"SERVICE_UNSPECIFIED""S_ADVANCED_ADWORDS_SUPPORT""S_ADVERTISING_ON_GOOGLE""S_AN_ENHANCED_WEBSITE""S_AN_ONLINE_MARKETING_PLAN""S_MOBILE_AND_VIDEO_ADS""S_MOBILE_WEBSITE_SERVICES"
func (*CompaniesListCall)Specializations¶
func (c *CompaniesListCall) Specializations(specializations ...string) *CompaniesListCall
Specializations sets the optional parameter "specializations": Listof specializations that the returned agencies should provide. Ifthisis not empty, any returned agency must have at least one ofthesespecializations, or one of the services in the "services" field.
Possible values:
"BADGE_SPECIALIZATION_UNKNOWN""BADGE_SPECIALIZATION_ADWORDS_SEARCH""BADGE_SPECIALIZATION_ADWORDS_DISPLAY""BADGE_SPECIALIZATION_ADWORDS_MOBILE""BADGE_SPECIALIZATION_ADWORDS_VIDEO""BADGE_SPECIALIZATION_ADWORDS_SHOPPING"
func (*CompaniesListCall)View¶
func (c *CompaniesListCall) View(viewstring) *CompaniesListCall
View sets the optional parameter "view": The view of the `Company`resource to be returned. This must not be`COMPANY_VIEW_UNSPECIFIED`.
Possible values:
"COMPANY_VIEW_UNSPECIFIED""CV_GOOGLE_PARTNER_SEARCH"
func (*CompaniesListCall)WebsiteUrl¶
func (c *CompaniesListCall) WebsiteUrl(websiteUrlstring) *CompaniesListCall
WebsiteUrl sets the optional parameter "websiteUrl": Website URL thatwill help to find a better matched company..
typeCompaniesService¶
type CompaniesService struct {Leads *CompaniesLeadsService// contains filtered or unexported fields}funcNewCompaniesService¶
func NewCompaniesService(s *Service) *CompaniesService
func (*CompaniesService)Get¶
func (r *CompaniesService) Get(companyIdstring) *CompaniesGetCall
Get: Gets a company.
func (*CompaniesService)List¶
func (r *CompaniesService) List() *CompaniesListCall
List: Lists companies.
typeCompany¶
type Company struct {// AdditionalWebsites: URL of the company's additional websites used to// verify the dynamic badges.// These are stored as full URLs as entered by the user, but only the// TLD will// be used for the actual verification.AdditionalWebsites []string `json:"additionalWebsites,omitempty"`// AutoApprovalEmailDomains: Email domains that allow users with a// matching email address to get// auto-approved for associating with this company.AutoApprovalEmailDomains []string `json:"autoApprovalEmailDomains,omitempty"`// BadgeAuthorityInAwn: Whether the company's badge authority is in AWNBadgeAuthorityInAwnbool `json:"badgeAuthorityInAwn,omitempty"`// BadgeTier: Partner badge tier//// Possible values:// "BADGE_TIER_NONE" - Tier badge is not set.// "BADGE_TIER_REGULAR" - Agency has regular partner badge.// "BADGE_TIER_PREMIER" - Agency has premier badge.BadgeTierstring `json:"badgeTier,omitempty"`// CertificationStatuses: The list of Google Partners certification// statuses for the company.CertificationStatuses []*CertificationStatus `json:"certificationStatuses,omitempty"`// CompanyTypes: Company type labels listed on the company's profile.//// Possible values:// "COMPANY_TYPE_UNSPECIFIED" - Unchosen.// "FULL_SERVICE_AGENCY" - Handles all aspects of the advertising// process.// "MEDIA_AGENCY" - Focuses solely on an advertiser's media placement.// "CREATIVE_AGENCY" - Plans/executes advertising campaigns.// "CDIGITAL_AGENCY" - Like a// FULL_SERVICE_AGENCY,// but specializing in digital.// "SEM_SEO" - Increases visibility in search engine result pages.// "PERFORMANCE_MARKETING" - Drives promotional efforts for immediate// impact.// "ADVERTISING_TOOL_DEVELOPMENT" - Focuses on bid management,// conversion, reporting.// "PR" - Establishes favorable relationship with public through// low/no-cost// communications.// "SELF_MANAGED" - Does not manage other company's accounts, manages// own marketing programs.// "RESELLER" - Full-service AdWords account management for local// businesses.CompanyTypes []string `json:"companyTypes,omitempty"`// ConvertedMinMonthlyBudget: The minimum monthly budget that the// company accepts for partner business,// converted to the requested currency code.ConvertedMinMonthlyBudget *Money `json:"convertedMinMonthlyBudget,omitempty"`// Id: The ID of the company.Idstring `json:"id,omitempty"`// Industries: Industries the company can help with.//// Possible values:// "INDUSTRY_UNSPECIFIED" - Unchosen.// "I_AUTOMOTIVE" - The automotive industry.// "I_BUSINESS_TO_BUSINESS" - The business-to-business industry.// "I_CONSUMER_PACKAGED_GOODS" - The consumer packaged goods industry.// "I_EDUCATION" - The education industry.// "I_FINANCE" - The finance industry.// "I_HEALTHCARE" - The healthcare industry.// "I_MEDIA_AND_ENTERTAINMENT" - The media and entertainment industry.// "I_RETAIL" - The retail industry.// "I_TECHNOLOGY" - The technology industry.// "I_TRAVEL" - The travel industry.Industries []string `json:"industries,omitempty"`// LocalizedInfos: The list of localized info for the company.LocalizedInfos []*LocalizedCompanyInfo `json:"localizedInfos,omitempty"`// Locations: The list of all company locations.// If set, must include the// primary_location// in the list.Locations []*Location `json:"locations,omitempty"`// Name: The name of the company.Namestring `json:"name,omitempty"`// OriginalMinMonthlyBudget: The unconverted minimum monthly budget that// the company accepts for partner// business.OriginalMinMonthlyBudget *Money `json:"originalMinMonthlyBudget,omitempty"`// PrimaryAdwordsManagerAccountId: The Primary AdWords Manager Account// id.PrimaryAdwordsManagerAccountIdint64 `json:"primaryAdwordsManagerAccountId,omitempty,string"`// PrimaryLanguageCode: The primary language code of the company, as// defined by// <a href="https://tools.ietf.org/html/bcp47">BCP 47</a>// (IETF BCP 47, "Tags for Identifying Languages").PrimaryLanguageCodestring `json:"primaryLanguageCode,omitempty"`// PrimaryLocation: The primary location of the company.PrimaryLocation *Location `json:"primaryLocation,omitempty"`// ProfileStatus: The public viewability status of the company's// profile.//// Possible values:// "COMPANY_PROFILE_STATUS_UNSPECIFIED" - Unchosen.// "HIDDEN" - Company profile does not show up publicly.// "PUBLISHED" - Company profile can only be viewed by the profile's// URL// and not by Google Partner Search.// "SEARCHABLE" - Company profile can be viewed by the profile's// URL// and by Google Partner Search.ProfileStatusstring `json:"profileStatus,omitempty"`// PublicProfile: Basic information from the company's public profile.PublicProfile *PublicProfile `json:"publicProfile,omitempty"`// Ranks: Information related to the ranking of the company within the// list of// companies.Ranks []*Rank `json:"ranks,omitempty"`// Services: Services the company can help with.//// Possible values:// "SERVICE_UNSPECIFIED" - Unchosen.// "S_ADVANCED_ADWORDS_SUPPORT" - Help with advanced AdWords support.// "S_ADVERTISING_ON_GOOGLE" - Help with advertising on Google.// "S_AN_ENHANCED_WEBSITE" - Help with an enhanced website.// "S_AN_ONLINE_MARKETING_PLAN" - Help with an online marketing plan.// "S_MOBILE_AND_VIDEO_ADS" - Help with mobile and video ads.// "S_MOBILE_WEBSITE_SERVICES" - Help with mobile websites.Services []string `json:"services,omitempty"`// SpecializationStatus: The list of Google Partners specialization// statuses for the company.SpecializationStatus []*SpecializationStatus `json:"specializationStatus,omitempty"`// WebsiteUrl: URL of the company's website.WebsiteUrlstring `json:"websiteUrl,omitempty"`// ServerResponse contains the HTTP response code and headers from the// server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "AdditionalWebsites")// to unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AdditionalWebsites") to// include in API requests with the JSON null value. By default, fields// with empty values are omitted from API requests. However, any field// with an empty value appearing in NullFields will be sent to the// server as null. It is an error if a field in this list has a// non-empty value. This may be used to include null fields in Patch// requests.NullFields []string `json:"-"`}Company: A company resource in the Google Partners API. Oncecertified, it qualifiesfor being searched by advertisers.
func (*Company)MarshalJSON¶
typeCompanyRelation¶
type CompanyRelation struct {// Address: The primary address for this company.Addressstring `json:"address,omitempty"`// BadgeTier: Whether the company is a Partner.//// Possible values:// "BADGE_TIER_NONE" - Tier badge is not set.// "BADGE_TIER_REGULAR" - Agency has regular partner badge.// "BADGE_TIER_PREMIER" - Agency has premier badge.BadgeTierstring `json:"badgeTier,omitempty"`// CompanyAdmin: Indicates if the user is an admin for this company.CompanyAdminbool `json:"companyAdmin,omitempty"`// CompanyId: The ID of the company. There may be no id if this is// a// pending company.5CompanyIdstring `json:"companyId,omitempty"`// CreationTime: The timestamp of when affiliation was// requested.// @OutputOnlyCreationTimestring `json:"creationTime,omitempty"`// InternalCompanyId: The internal company ID.// Only available for a whitelisted set of api clients.InternalCompanyIdstring `json:"internalCompanyId,omitempty"`// IsPending: The flag that indicates if the company is pending// verification.IsPendingbool `json:"isPending,omitempty"`// LogoUrl: A URL to a profile photo, e.g. a G+ profile photo.LogoUrlstring `json:"logoUrl,omitempty"`// ManagerAccount: The AdWords manager account # associated this// company.ManagerAccountint64 `json:"managerAccount,omitempty,string"`// Name: The name (in the company's primary language) for the company.Namestring `json:"name,omitempty"`// PhoneNumber: The phone number for the company's primary address.PhoneNumberstring `json:"phoneNumber,omitempty"`// PrimaryAddress: The primary location of the company.PrimaryAddress *Location `json:"primaryAddress,omitempty"`// PrimaryCountryCode: The primary country code of the company.PrimaryCountryCodestring `json:"primaryCountryCode,omitempty"`// PrimaryLanguageCode: The primary language code of the company.PrimaryLanguageCodestring `json:"primaryLanguageCode,omitempty"`// ResolvedTimestamp: The timestamp when the user was// approved.// @OutputOnlyResolvedTimestampstring `json:"resolvedTimestamp,omitempty"`// Segment: The segment the company is classified as.//// Possible values:// "COMPANY_SEGMENT_UNKNOWN" - Default segment indicates an unknown.// "COMPANY_SEGMENT_NAL" - Segment representing a selected group of// Partners// "COMPANY_SEGMENT_PSP" - Segment representing Premier SMB Partners,// an AdWords partnership program.// "COMPANY_SEGMENT_PPSP" - A segment of Premier SMB Partners that// have relationship with Google.Segment []string `json:"segment,omitempty"`// SpecializationStatus: The list of Google Partners specialization// statuses for the company.SpecializationStatus []*SpecializationStatus `json:"specializationStatus,omitempty"`// State: The state of relationship, in terms of approvals.//// Possible values:// "USER_COMPANY_REATION_STATE_NONE_SPECIFIED" - Default unspecified// value.// "USER_COMPANY_RELATION_STATE_AWAIT_EMAIL" - User has filled in a// request to be associated with an company.// Now waiting email confirmation.// "USER_COMPANY_RELATION_STATE_AWAIT_ADMIN" - Pending approval from// company.// Email confirmation will not approve this one.// "USER_COMPANY_RELATION_STATE_APPROVED" - Approved by company.Statestring `json:"state,omitempty"`// Website: The website URL for this company.Websitestring `json:"website,omitempty"`// ServerResponse contains the HTTP response code and headers from the// server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Address") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Address") to include in// API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}CompanyRelation: A CompanyRelation resource representing informationabout a user'saffiliation and standing with a company in Partners.
func (*CompanyRelation)MarshalJSON¶
func (s *CompanyRelation) MarshalJSON() ([]byte,error)
typeCountryOfferInfo¶
type CountryOfferInfo struct {// GetYAmount: (localized) Get Y amount for that country's offer.GetYAmountstring `json:"getYAmount,omitempty"`// OfferCountryCode: Country code for which offer codes may be// requested.OfferCountryCodestring `json:"offerCountryCode,omitempty"`// OfferType: Type of offer country is eligible for.//// Possible values:// "OFFER_TYPE_UNSPECIFIED" - Unset.// "OFFER_TYPE_SPEND_X_GET_Y" - AdWords spend X get Y.// "OFFER_TYPE_VIDEO" - Youtube video.// "OFFER_TYPE_SPEND_MATCH" - Spend Match up to Y.OfferTypestring `json:"offerType,omitempty"`// SpendXAmount: (localized) Spend X amount for that country's offer.SpendXAmountstring `json:"spendXAmount,omitempty"`// ForceSendFields is a list of field names (e.g. "GetYAmount") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "GetYAmount") to include in// API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}CountryOfferInfo: Offer info by country.
func (*CountryOfferInfo)MarshalJSON¶
func (s *CountryOfferInfo) MarshalJSON() ([]byte,error)
typeCreateLeadRequest¶
type CreateLeadRequest struct {// Lead: The lead resource. The `LeadType` must not be// `LEAD_TYPE_UNSPECIFIED`// and either `email` or `phone_number` must be provided.Lead *Lead `json:"lead,omitempty"`// RecaptchaChallenge: <a// href="https://www.google.com/recaptcha/">reCaptcha</a> challenge// info.RecaptchaChallenge *RecaptchaChallenge `json:"recaptchaChallenge,omitempty"`// RequestMetadata: Current request metadata.RequestMetadata *RequestMetadata `json:"requestMetadata,omitempty"`// ForceSendFields is a list of field names (e.g. "Lead") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Lead") to include in API// requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}CreateLeadRequest: Request message for CreateLead.
func (*CreateLeadRequest)MarshalJSON¶
func (s *CreateLeadRequest) MarshalJSON() ([]byte,error)
typeCreateLeadResponse¶
type CreateLeadResponse struct {// Lead: Lead that was created depending on the outcome of// <a href="https://www.google.com/recaptcha/">reCaptcha</a> validation.Lead *Lead `json:"lead,omitempty"`// RecaptchaStatus: The outcome of <a// href="https://www.google.com/recaptcha/">reCaptcha</a>// validation.//// Possible values:// "RECAPTCHA_STATUS_UNSPECIFIED" - Unchosen.// "RS_NOT_NEEDED" - No reCaptcha validation needed.// "RS_PASSED" - reCaptcha challenge passed.// "RS_FAILED" - reCaptcha challenge failed.RecaptchaStatusstring `json:"recaptchaStatus,omitempty"`// ResponseMetadata: Current response metadata.ResponseMetadata *ResponseMetadata `json:"responseMetadata,omitempty"`// ServerResponse contains the HTTP response code and headers from the// server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Lead") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Lead") to include in API// requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}CreateLeadResponse: Response message for CreateLead.
func (*CreateLeadResponse)MarshalJSON¶
func (s *CreateLeadResponse) MarshalJSON() ([]byte,error)
typeDate¶
type Date struct {// Day: Day of month. Must be from 1 to 31 and valid for the year and// month, or 0// if specifying a year by itself or a year and month where the day is// not// significant.Dayint64 `json:"day,omitempty"`// Month: Month of year. Must be from 1 to 12, or 0 if specifying a year// without a// month and day.Monthint64 `json:"month,omitempty"`// Year: Year of date. Must be from 1 to 9999, or 0 if specifying a date// without// a year.Yearint64 `json:"year,omitempty"`// ForceSendFields is a list of field names (e.g. "Day") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Day") to include in API// requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}Date: Represents a whole or partial calendar date, e.g. a birthday.The time of dayand time zone are either specified elsewhere or are not significant.The dateis relative to the Proleptic Gregorian Calendar. This canrepresent:
* A full date, with non-zero year, month and day values* A month and day value, with a zero year, e.g. an anniversary* A year on its own, with zero month and day values* A year and month value, with a zero day, e.g. a credit cardexpiration date
Related types are google.type.TimeOfDay and`google.protobuf.Timestamp`.
func (*Date)MarshalJSON¶
typeDebugInfo¶
type DebugInfo struct {// ServerInfo: Info about the server that serviced this request.ServerInfostring `json:"serverInfo,omitempty"`// ServerTraceInfo: Server-side debug stack trace.ServerTraceInfostring `json:"serverTraceInfo,omitempty"`// ServiceUrl: URL of the service that handled this request.ServiceUrlstring `json:"serviceUrl,omitempty"`// ForceSendFields is a list of field names (e.g. "ServerInfo") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ServerInfo") to include in// API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}DebugInfo: Debug information about this request.
func (*DebugInfo)MarshalJSON¶
typeEmpty¶
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 definingduplicatedempty messages in your APIs. A typical example is to use it as therequestor the response type of an API method. For instance:
service Foo { rpc Bar(google.protobuf.Empty) returns(google.protobuf.Empty);
}
The JSON representation for `Empty` is empty JSON object `{}`.
typeEventData¶
type EventData struct {// Key: Data type.//// Possible values:// "EVENT_DATA_TYPE_UNSPECIFIED" - Unchosen.// "ACTION" - Action data.// "AGENCY_ID" - Agency ID data.// "AGENCY_NAME" - Agency name data.// "AGENCY_PHONE_NUMBER" - Agency phone number data.// "AGENCY_WEBSITE" - Agency website data.// "BUDGET" - Budget data.// "CENTER_POINT" - Center-point data.// "CERTIFICATION" - Certification data.// "COMMENT" - Comment data.// "COUNTRY" - Country data.// "CURRENCY" - Currency data.// "CURRENTLY_VIEWED_AGENCY_ID" - Currently viewed agency ID data.// "DISTANCE" - Distance data.// "DISTANCE_TYPE" - Distance type data.// "EXAM" - Exam data.// "HISTORY_TOKEN" - History token data.// "ID" - Identifier data.// "INDUSTRY" - Industry data.// "INSIGHT_TAG" - Insight tag data.// "LANGUAGE" - Language data.// "LOCATION" - Location data.// "MARKETING_OPT_IN" - Marketing opt-in data.// "QUERY" - Query data.// "SEARCH_START_INDEX" - Search start index data.// "SERVICE" - Service data.// "SHOW_VOW" - Show vow data.// "SOLUTION" - Solution data.// "TRAFFIC_SOURCE_ID" - Traffic source ID data.// "TRAFFIC_SUB_ID" - Traffic sub ID data.// "VIEW_PORT" - Viewport data.// "WEBSITE" - Website data.// "DETAILS" - Details data.// "EXPERIMENT_ID" - Experiment ID data.// "GPS_MOTIVATION" - Google Partner Search motivation data.// "URL" - URL data.// "ELEMENT_FOCUS" - Element we wanted user to focus on.// "PROGRESS" - Progress when viewing an item \[0-100\].Keystring `json:"key,omitempty"`// Values: Data values.Values []string `json:"values,omitempty"`// ForceSendFields is a list of field names (e.g. "Key") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Key") to include in API// requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}EventData: Key value data pair for an event.
func (*EventData)MarshalJSON¶
typeExamStatus¶
type ExamStatus struct {// ExamType: The type of the exam.//// Possible values:// "CERTIFICATION_EXAM_TYPE_UNSPECIFIED" - Unchosen.// "CET_ADWORDS_FUNDAMENTALS" - Adwords Fundamentals exam.// "CET_ADWORDS_ADVANCED_SEARCH" - AdWords advanced search exam.// "CET_ADWORDS_ADVANCED_DISPLAY" - AdWords advanced display exam.// "CET_VIDEO_ADS" - VideoAds exam.// "CET_DOUBLECLICK" - DoubleClick exam.// "CET_ANALYTICS" - Analytics exam.// "CET_SHOPPING" - Shopping exam.// "CET_MOBILE" - Mobile exam.// "CET_DIGITAL_SALES" - Digital Sales exam.// "CET_MOBILE_SITES" - Mobile Sites exam.ExamTypestring `json:"examType,omitempty"`// Expiration: Date this exam is due to expire.Expirationstring `json:"expiration,omitempty"`// LastPassed: The date the user last passed this exam.LastPassedstring `json:"lastPassed,omitempty"`// Passed: Whether this exam has been passed and not expired.Passedbool `json:"passed,omitempty"`// Taken: The date the user last taken this exam.Takenstring `json:"taken,omitempty"`// Warning: Whether this exam is in the state of warning.Warningbool `json:"warning,omitempty"`// ForceSendFields is a list of field names (e.g. "ExamType") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ExamType") to include in// API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}ExamStatus: A user's information on a specific exam.
func (*ExamStatus)MarshalJSON¶
func (s *ExamStatus) MarshalJSON() ([]byte,error)
typeGetCompanyResponse¶
type GetCompanyResponse struct {// Company: The company.Company *Company `json:"company,omitempty"`// ResponseMetadata: Current response metadata.ResponseMetadata *ResponseMetadata `json:"responseMetadata,omitempty"`// ServerResponse contains the HTTP response code and headers from the// server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Company") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Company") to include in// API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}GetCompanyResponse: Response message for GetCompany.
func (*GetCompanyResponse)MarshalJSON¶
func (s *GetCompanyResponse) MarshalJSON() ([]byte,error)
typeGetPartnersStatusResponse¶
type GetPartnersStatusResponse struct {// ResponseMetadata: Current response metadata.ResponseMetadata *ResponseMetadata `json:"responseMetadata,omitempty"`// ServerResponse contains the HTTP response code and headers from the// server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "ResponseMetadata") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ResponseMetadata") to// include in API requests with the JSON null value. By default, fields// with empty values are omitted from API requests. However, any field// with an empty value appearing in NullFields will be sent to the// server as null. It is an error if a field in this list has a// non-empty value. This may be used to include null fields in Patch// requests.NullFields []string `json:"-"`}GetPartnersStatusResponse: Response message forGetPartnersStatus.
func (*GetPartnersStatusResponse)MarshalJSON¶
func (s *GetPartnersStatusResponse) MarshalJSON() ([]byte,error)
typeHistoricalOffer¶
type HistoricalOffer struct {// AdwordsUrl: Client's AdWords page URL.AdwordsUrlstring `json:"adwordsUrl,omitempty"`// ClientEmail: Email address for client.ClientEmailstring `json:"clientEmail,omitempty"`// ClientId: ID of client.ClientIdint64 `json:"clientId,omitempty,string"`// ClientName: Name of the client.ClientNamestring `json:"clientName,omitempty"`// CreationTime: Time offer was first created.CreationTimestring `json:"creationTime,omitempty"`// ExpirationTime: Time this offer expires.ExpirationTimestring `json:"expirationTime,omitempty"`// LastModifiedTime: Time last action was taken.LastModifiedTimestring `json:"lastModifiedTime,omitempty"`// OfferCode: Offer code.OfferCodestring `json:"offerCode,omitempty"`// OfferCountryCode: Country Code for the offer country.OfferCountryCodestring `json:"offerCountryCode,omitempty"`// OfferType: Type of offer.//// Possible values:// "OFFER_TYPE_UNSPECIFIED" - Unset.// "OFFER_TYPE_SPEND_X_GET_Y" - AdWords spend X get Y.// "OFFER_TYPE_VIDEO" - Youtube video.// "OFFER_TYPE_SPEND_MATCH" - Spend Match up to Y.OfferTypestring `json:"offerType,omitempty"`// SenderName: Name (First + Last) of the partners user to whom the// incentive is allocated.SenderNamestring `json:"senderName,omitempty"`// Status: Status of the offer.//// Possible values:// "OFFER_STATUS_UNSPECIFIED" - Unset.// "OFFER_STATUS_DISTRIBUTED" - Offer distributed.// "OFFER_STATUS_REDEEMED" - Offer redeemed.// "OFFER_STATUS_AWARDED" - Offer awarded.// "OFFER_STATUS_EXPIRED" - Offer expired.Statusstring `json:"status,omitempty"`// ForceSendFields is a list of field names (e.g. "AdwordsUrl") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AdwordsUrl") to include in// API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}HistoricalOffer: Historical information about a Google PartnersOffer.
func (*HistoricalOffer)MarshalJSON¶
func (s *HistoricalOffer) MarshalJSON() ([]byte,error)
typeLatLng¶
type LatLng struct {// Latitude: The latitude in degrees. It must be in the range [-90.0,// +90.0].Latitudefloat64 `json:"latitude,omitempty"`// Longitude: The longitude in degrees. It must be in the range [-180.0,// +180.0].Longitudefloat64 `json:"longitude,omitempty"`// ForceSendFields is a list of field names (e.g. "Latitude") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Latitude") to include in// API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}LatLng: An object representing a latitude/longitude pair. This isexpressed as a pairof doubles representing degrees latitude and degrees longitude.Unlessspecified otherwise, this must conform to the<ahref="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84standard</a>. Values must be within normalized ranges.
func (*LatLng)MarshalJSON¶
func (*LatLng)UnmarshalJSON¶
typeLead¶
type Lead struct {// AdwordsCustomerId: The AdWords Customer ID of the lead.AdwordsCustomerIdint64 `json:"adwordsCustomerId,omitempty,string"`// Comments: Comments lead source gave.Commentsstring `json:"comments,omitempty"`// CreateTime: Timestamp of when this lead was created.CreateTimestring `json:"createTime,omitempty"`// Email: Email address of lead source.Emailstring `json:"email,omitempty"`// FamilyName: Last name of lead source.FamilyNamestring `json:"familyName,omitempty"`// GivenName: First name of lead source.GivenNamestring `json:"givenName,omitempty"`// GpsMotivations: List of reasons for using Google Partner Search and// creating a lead.//// Possible values:// "GPS_MOTIVATION_UNSPECIFIED" - Unchosen.// "GPSM_HELP_WITH_ADVERTISING" - Advertiser needs help with their// advertising.// "GPSM_HELP_WITH_WEBSITE" - Advertiser needs help with their// website.// "GPSM_NO_WEBSITE" - Advertiser does not have a website.GpsMotivations []string `json:"gpsMotivations,omitempty"`// Id: ID of the lead.Idstring `json:"id,omitempty"`// LanguageCode: Language code of the lead's language preference, as// defined by// <a href="https://tools.ietf.org/html/bcp47">BCP 47</a>// (IETF BCP 47, "Tags for Identifying Languages").LanguageCodestring `json:"languageCode,omitempty"`// MarketingOptIn: Whether or not the lead signed up for marketing// emailsMarketingOptInbool `json:"marketingOptIn,omitempty"`// MinMonthlyBudget: The minimum monthly budget lead source is willing// to spend.MinMonthlyBudget *Money `json:"minMonthlyBudget,omitempty"`// PhoneNumber: Phone number of lead source.PhoneNumberstring `json:"phoneNumber,omitempty"`// State: The lead's state in relation to the company.//// Possible values:// "LEAD_STATE_UNSPECIFIED" - Unchosen.// "LEAD" - Lead not yet contacted.// "CONTACTED" - Lead has been contacted.// "CLIENT" - Lead has become a client.// "OTHER" - Lead in a state not covered by other options.Statestring `json:"state,omitempty"`// Type: Type of lead.//// Possible values:// "LEAD_TYPE_UNSPECIFIED" - Unchosen.// "LT_GPS" - Google Partner Search.Typestring `json:"type,omitempty"`// WebsiteUrl: Website URL of lead source.WebsiteUrlstring `json:"websiteUrl,omitempty"`// ServerResponse contains the HTTP response code and headers from the// server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "AdwordsCustomerId")// to unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AdwordsCustomerId") to// include in API requests with the JSON null value. By default, fields// with empty values are omitted from API requests. However, any field// with an empty value appearing in NullFields will be sent to the// server as null. It is an error if a field in this list has a// non-empty value. This may be used to include null fields in Patch// requests.NullFields []string `json:"-"`}Lead: A lead resource that represents an advertiser contact for a`Company`. Theseare usually generated via Google Partner Search (the advertiserportal).
func (*Lead)MarshalJSON¶
typeLeadsListCall¶
type LeadsListCall struct {// contains filtered or unexported fields}func (*LeadsListCall)Context¶
func (c *LeadsListCall) Context(ctxcontext.Context) *LeadsListCall
Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.
func (*LeadsListCall)Do¶
func (c *LeadsListCall) Do(opts ...googleapi.CallOption) (*ListLeadsResponse,error)
Do executes the "partners.leads.list" call.Exactly one of *ListLeadsResponse or error will be non-nil. Anynon-2xx status code is an error. Response headers are in either*ListLeadsResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error wasbecause http.StatusNotModified was returned.
func (*LeadsListCall)Fields¶
func (c *LeadsListCall) Fields(s ...googleapi.Field) *LeadsListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.
func (*LeadsListCall)Header¶
func (c *LeadsListCall) Header()http.Header
Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.
func (*LeadsListCall)IfNoneMatch¶
func (c *LeadsListCall) IfNoneMatch(entityTagstring) *LeadsListCall
IfNoneMatch sets the optional parameter which makes the operationfail if the object's ETag matches the given value. This is useful forgetting updates only after the object has changed since the lastrequest. Use googleapi.IsNotModified to check whether the responseerror from Do is the result of In-None-Match.
func (*LeadsListCall)OrderBy¶
func (c *LeadsListCall) OrderBy(orderBystring) *LeadsListCall
OrderBy sets the optional parameter "orderBy": How to order Leads.Currently, only `create_time`and `create_time desc` are supported
func (*LeadsListCall)PageSize¶
func (c *LeadsListCall) PageSize(pageSizeint64) *LeadsListCall
PageSize sets the optional parameter "pageSize": Requested page size.Server may return fewer leads than requested.If unspecified, server picks an appropriate default.
func (*LeadsListCall)PageToken¶
func (c *LeadsListCall) PageToken(pageTokenstring) *LeadsListCall
PageToken sets the optional parameter "pageToken": A tokenidentifying a page of results that the server returns.Typically, this is the value of`ListLeadsResponse.next_page_token`returned from the previous call toListLeads.
func (*LeadsListCall)Pages¶
func (c *LeadsListCall) Pages(ctxcontext.Context, f func(*ListLeadsResponse)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.
func (*LeadsListCall)RequestMetadataExperimentIds¶
func (c *LeadsListCall) RequestMetadataExperimentIds(requestMetadataExperimentIds ...string) *LeadsListCall
RequestMetadataExperimentIds sets the optional parameter"requestMetadata.experimentIds": Experiment IDs the current requestbelongs to.
func (*LeadsListCall)RequestMetadataLocale¶
func (c *LeadsListCall) RequestMetadataLocale(requestMetadataLocalestring) *LeadsListCall
RequestMetadataLocale sets the optional parameter"requestMetadata.locale": Locale to use for the current request.
func (*LeadsListCall)RequestMetadataPartnersSessionId¶
func (c *LeadsListCall) RequestMetadataPartnersSessionId(requestMetadataPartnersSessionIdstring) *LeadsListCall
RequestMetadataPartnersSessionId sets the optional parameter"requestMetadata.partnersSessionId": Google Partners session ID.
func (*LeadsListCall)RequestMetadataTrafficSourceTrafficSourceId¶
func (c *LeadsListCall) RequestMetadataTrafficSourceTrafficSourceId(requestMetadataTrafficSourceTrafficSourceIdstring) *LeadsListCall
RequestMetadataTrafficSourceTrafficSourceId sets the optionalparameter "requestMetadata.trafficSource.trafficSourceId": Identifierto indicate where the traffic comes from.An identifier has multiple letters created by a team which redirectedthetraffic to us.
func (*LeadsListCall)RequestMetadataTrafficSourceTrafficSubId¶
func (c *LeadsListCall) RequestMetadataTrafficSourceTrafficSubId(requestMetadataTrafficSourceTrafficSubIdstring) *LeadsListCall
RequestMetadataTrafficSourceTrafficSubId sets the optional parameter"requestMetadata.trafficSource.trafficSubId": Second level identifierto indicate where the traffic comes from.An identifier has multiple letters created by a team which redirectedthetraffic to us.
func (*LeadsListCall)RequestMetadataUserOverridesIpAddress¶
func (c *LeadsListCall) RequestMetadataUserOverridesIpAddress(requestMetadataUserOverridesIpAddressstring) *LeadsListCall
RequestMetadataUserOverridesIpAddress sets the optional parameter"requestMetadata.userOverrides.ipAddress": IP address to use insteadof the user's geo-located IP address.
func (*LeadsListCall)RequestMetadataUserOverridesUserId¶
func (c *LeadsListCall) RequestMetadataUserOverridesUserId(requestMetadataUserOverridesUserIdstring) *LeadsListCall
RequestMetadataUserOverridesUserId sets the optional parameter"requestMetadata.userOverrides.userId": Logged-in user ID toimpersonate instead of the user's ID.
typeLeadsService¶
type LeadsService struct {// contains filtered or unexported fields}funcNewLeadsService¶
func NewLeadsService(s *Service) *LeadsService
func (*LeadsService)List¶
func (r *LeadsService) List() *LeadsListCall
List: Lists advertiser leads for a user's associated company.Should only be called within the context of an authorized logged inuser.
typeListAnalyticsResponse¶
type ListAnalyticsResponse struct {// Analytics: The list of analytics.// Sorted in ascending order of// Analytics.event_date.Analytics []*Analytics `json:"analytics,omitempty"`// AnalyticsSummary: Aggregated information across the// response's// analytics.AnalyticsSummary *AnalyticsSummary `json:"analyticsSummary,omitempty"`// NextPageToken: A token to retrieve next page of results.// Pass this value in the `ListAnalyticsRequest.page_token` field in// the// subsequent call to// ListAnalytics to retrieve the// next page of results.NextPageTokenstring `json:"nextPageToken,omitempty"`// ResponseMetadata: Current response metadata.ResponseMetadata *ResponseMetadata `json:"responseMetadata,omitempty"`// ServerResponse contains the HTTP response code and headers from the// server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Analytics") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Analytics") to include in// API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}ListAnalyticsResponse: Response message forListAnalytics.
func (*ListAnalyticsResponse)MarshalJSON¶
func (s *ListAnalyticsResponse) MarshalJSON() ([]byte,error)
typeListCompaniesResponse¶
type ListCompaniesResponse struct {// Companies: The list of companies.Companies []*Company `json:"companies,omitempty"`// NextPageToken: A token to retrieve next page of results.// Pass this value in the `ListCompaniesRequest.page_token` field in// the// subsequent call to// ListCompanies to retrieve the// next page of results.NextPageTokenstring `json:"nextPageToken,omitempty"`// ResponseMetadata: Current response metadata.ResponseMetadata *ResponseMetadata `json:"responseMetadata,omitempty"`// ServerResponse contains the HTTP response code and headers from the// server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Companies") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Companies") to include in// API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}ListCompaniesResponse: Response message forListCompanies.
func (*ListCompaniesResponse)MarshalJSON¶
func (s *ListCompaniesResponse) MarshalJSON() ([]byte,error)
typeListLeadsResponse¶
type ListLeadsResponse struct {// Leads: The list of leads.Leads []*Lead `json:"leads,omitempty"`// NextPageToken: A token to retrieve next page of results.// Pass this value in the `ListLeadsRequest.page_token` field in// the// subsequent call to// ListLeads to retrieve the// next page of results.NextPageTokenstring `json:"nextPageToken,omitempty"`// ResponseMetadata: Current response metadata.ResponseMetadata *ResponseMetadata `json:"responseMetadata,omitempty"`// TotalSize: The total count of leads for the given company.TotalSizeint64 `json:"totalSize,omitempty"`// ServerResponse contains the HTTP response code and headers from the// server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Leads") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Leads") to include in API// requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}ListLeadsResponse: Response message for ListLeads.
func (*ListLeadsResponse)MarshalJSON¶
func (s *ListLeadsResponse) MarshalJSON() ([]byte,error)
typeListOffersHistoryResponse¶
type ListOffersHistoryResponse struct {// CanShowEntireCompany: True if the user has the option to show entire// company history.CanShowEntireCompanybool `json:"canShowEntireCompany,omitempty"`// NextPageToken: Supply this token in a ListOffersHistoryRequest to// retrieve the next page.NextPageTokenstring `json:"nextPageToken,omitempty"`// Offers: Historical offers meeting request.Offers []*HistoricalOffer `json:"offers,omitempty"`// ResponseMetadata: Current response metadata.ResponseMetadata *ResponseMetadata `json:"responseMetadata,omitempty"`// ShowingEntireCompany: True if this response is showing entire company// history.ShowingEntireCompanybool `json:"showingEntireCompany,omitempty"`// TotalResults: Number of results across all pages.TotalResultsint64 `json:"totalResults,omitempty"`// ServerResponse contains the HTTP response code and headers from the// server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g.// "CanShowEntireCompany") to unconditionally include in API requests.// By default, fields with empty values are omitted from API requests.// However, any non-pointer, non-interface field appearing in// ForceSendFields will be sent to the server regardless of whether the// field is empty or not. This may be used to include empty fields in// Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CanShowEntireCompany") to// include in API requests with the JSON null value. By default, fields// with empty values are omitted from API requests. However, any field// with an empty value appearing in NullFields will be sent to the// server as null. It is an error if a field in this list has a// non-empty value. This may be used to include null fields in Patch// requests.NullFields []string `json:"-"`}ListOffersHistoryResponse: Response for ListOfferHistory.
func (*ListOffersHistoryResponse)MarshalJSON¶
func (s *ListOffersHistoryResponse) MarshalJSON() ([]byte,error)
typeListOffersResponse¶
type ListOffersResponse struct {// AvailableOffers: Available Offers to be distributed.AvailableOffers []*AvailableOffer `json:"availableOffers,omitempty"`// NoOfferReason: Reason why no Offers are available.//// Possible values:// "NO_OFFER_REASON_UNSPECIFIED" - Unset.// "NO_OFFER_REASON_NO_MCC" - Not an MCC.// "NO_OFFER_REASON_LIMIT_REACHED" - Offer limit has been reached.// "NO_OFFER_REASON_INELIGIBLE" - Ineligible for offers.NoOfferReasonstring `json:"noOfferReason,omitempty"`// ResponseMetadata: Current response metadata.ResponseMetadata *ResponseMetadata `json:"responseMetadata,omitempty"`// ServerResponse contains the HTTP response code and headers from the// server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "AvailableOffers") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AvailableOffers") to// include in API requests with the JSON null value. By default, fields// with empty values are omitted from API requests. However, any field// with an empty value appearing in NullFields will be sent to the// server as null. It is an error if a field in this list has a// non-empty value. This may be used to include null fields in Patch// requests.NullFields []string `json:"-"`}ListOffersResponse: Response for ListOffer.
func (*ListOffersResponse)MarshalJSON¶
func (s *ListOffersResponse) MarshalJSON() ([]byte,error)
typeListUserStatesResponse¶
type ListUserStatesResponse struct {// ResponseMetadata: Current response metadata.ResponseMetadata *ResponseMetadata `json:"responseMetadata,omitempty"`// UserStates: User's states.//// Possible values:// "USER_STATE_UNSPECIFIED" - Unchosen.// "US_REQUIRES_RECAPTCHA_FOR_GPS_CONTACT" - User must pass <a// href="https://www.google.com/recaptcha/">reCaptcha</a> to// contact a Partner via Google Partner Search.UserStates []string `json:"userStates,omitempty"`// ServerResponse contains the HTTP response code and headers from the// server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "ResponseMetadata") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ResponseMetadata") to// include in API requests with the JSON null value. By default, fields// with empty values are omitted from API requests. However, any field// with an empty value appearing in NullFields will be sent to the// server as null. It is an error if a field in this list has a// non-empty value. This may be used to include null fields in Patch// requests.NullFields []string `json:"-"`}ListUserStatesResponse: Response message forListUserStates.
func (*ListUserStatesResponse)MarshalJSON¶
func (s *ListUserStatesResponse) MarshalJSON() ([]byte,error)
typeLocalizedCompanyInfo¶
type LocalizedCompanyInfo struct {// CountryCodes: List of country codes for the localized company info.CountryCodes []string `json:"countryCodes,omitempty"`// DisplayName: Localized display name.DisplayNamestring `json:"displayName,omitempty"`// LanguageCode: Language code of the localized company info, as defined// by// <a href="https://tools.ietf.org/html/bcp47">BCP 47</a>// (IETF BCP 47, "Tags for Identifying Languages").LanguageCodestring `json:"languageCode,omitempty"`// Overview: Localized brief description that the company uses to// advertise themselves.Overviewstring `json:"overview,omitempty"`// ForceSendFields is a list of field names (e.g. "CountryCodes") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CountryCodes") to include// in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. However, any field with// an empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}LocalizedCompanyInfo: The localized company information.
func (*LocalizedCompanyInfo)MarshalJSON¶
func (s *LocalizedCompanyInfo) MarshalJSON() ([]byte,error)
typeLocation¶
type Location struct {// Address: The single string version of the address.Addressstring `json:"address,omitempty"`// AddressLine: The following address lines represent the most specific// part of any// address.AddressLine []string `json:"addressLine,omitempty"`// AdministrativeArea: Top-level administrative subdivision of this// country.AdministrativeAreastring `json:"administrativeArea,omitempty"`// DependentLocality: Dependent locality or sublocality. Used for UK// dependent localities, or// neighborhoods or boroughs in other locations.DependentLocalitystring `json:"dependentLocality,omitempty"`// LanguageCode: Language code of the address. Should be in BCP 47// format.LanguageCodestring `json:"languageCode,omitempty"`// LatLng: The latitude and longitude of the location, in degrees.LatLng *LatLng `json:"latLng,omitempty"`// Locality: Generally refers to the city/town portion of an address.Localitystring `json:"locality,omitempty"`// PostalCode: Values are frequently alphanumeric.PostalCodestring `json:"postalCode,omitempty"`// RegionCode: CLDR (Common Locale Data Repository) region code .RegionCodestring `json:"regionCode,omitempty"`// SortingCode: Use of this code is very country-specific, but will// refer to a secondary// classification code for sorting mail.SortingCodestring `json:"sortingCode,omitempty"`// ForceSendFields is a list of field names (e.g. "Address") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Address") to include in// API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}Location: A location with address and geographic coordinates. Mayoptionally contain adetailed (multi-field) version of the address.
func (*Location)MarshalJSON¶
typeLogMessageRequest¶
type LogMessageRequest struct {// ClientInfo: Map of client info, such as URL, browser navigator,// browser platform, etc.ClientInfo map[string]string `json:"clientInfo,omitempty"`// Details: Details about the client message.Detailsstring `json:"details,omitempty"`// Level: Message level of client message.//// Possible values:// "MESSAGE_LEVEL_UNSPECIFIED" - Unchosen.// "ML_FINE" - Message level for tracing information.// "ML_INFO" - Message level for informational messages.// "ML_WARNING" - Message level for potential problems.// "ML_SEVERE" - Message level for serious failures.Levelstring `json:"level,omitempty"`// RequestMetadata: Current request metadata.RequestMetadata *RequestMetadata `json:"requestMetadata,omitempty"`// ForceSendFields is a list of field names (e.g. "ClientInfo") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ClientInfo") to include in// API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}LogMessageRequest: Request message forLogClientMessage.
func (*LogMessageRequest)MarshalJSON¶
func (s *LogMessageRequest) MarshalJSON() ([]byte,error)
typeLogMessageResponse¶
type LogMessageResponse struct {// ResponseMetadata: Current response metadata.ResponseMetadata *ResponseMetadata `json:"responseMetadata,omitempty"`// ServerResponse contains the HTTP response code and headers from the// server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "ResponseMetadata") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ResponseMetadata") to// include in API requests with the JSON null value. By default, fields// with empty values are omitted from API requests. However, any field// with an empty value appearing in NullFields will be sent to the// server as null. It is an error if a field in this list has a// non-empty value. This may be used to include null fields in Patch// requests.NullFields []string `json:"-"`}LogMessageResponse: Response message forLogClientMessage.
func (*LogMessageResponse)MarshalJSON¶
func (s *LogMessageResponse) MarshalJSON() ([]byte,error)
typeLogUserEventRequest¶
type LogUserEventRequest struct {// EventAction: The action that occurred.//// Possible values:// "EVENT_ACTION_UNSPECIFIED" - Unchosen.// "SMB_CLICKED_FIND_A_PARTNER_BUTTON_BOTTOM" - Advertiser clicked// `Find a partner` bottom button.// "SMB_CLICKED_FIND_A_PARTNER_BUTTON_TOP" - Advertiser clicked `Find// a partner` top button.// "AGENCY_CLICKED_JOIN_NOW_BUTTON_BOTTOM" - Agency clicked `Join now`// bottom button.// "AGENCY_CLICKED_JOIN_NOW_BUTTON_TOP" - Agency clicked `Join now`// top button.// "SMB_CANCELED_PARTNER_CONTACT_FORM" - Advertiser canceled partner// contact form.// "SMB_CLICKED_CONTACT_A_PARTNER" - Advertiser started partner// contact form.// "SMB_COMPLETED_PARTNER_CONTACT_FORM" - Advertiser completed partner// contact form.// "SMB_ENTERED_EMAIL_IN_CONTACT_PARTNER_FORM" - Advertiser entered// email in contact form.// "SMB_ENTERED_NAME_IN_CONTACT_PARTNER_FORM" - Advertiser entered// name in contact form.// "SMB_ENTERED_PHONE_IN_CONTACT_PARTNER_FORM" - Advertiser entered// phone in contact form.// "SMB_FAILED_RECAPTCHA_IN_CONTACT_PARTNER_FORM" - Advertiser failed// <a href="https://www.google.com/recaptcha/">reCaptcha</a>// in contact form.// "PARTNER_VIEWED_BY_SMB" - Company viewed by advertiser.// "SMB_CANCELED_PARTNER_CONTACT_FORM_ON_GPS" - Advertiser canceled// partner contact form on Google Partner Search.// "SMB_CHANGED_A_SEARCH_PARAMETER_TOP" - Advertiser changed a top// search parameter.// "SMB_CLICKED_CONTACT_A_PARTNER_ON_GPS" - Advertiser started partner// contact form on Google Partner Search.// "SMB_CLICKED_SHOW_MORE_PARTNERS_BUTTON_BOTTOM" - Advertiser clicked// `Show more partners` bottom button.// "SMB_COMPLETED_PARTNER_CONTACT_FORM_ON_GPS" - Advertiser completed// partner contact form on Google Partner Search.// "SMB_NO_PARTNERS_AVAILABLE_WITH_SEARCH_CRITERIA" - Advertiser saw// no partners available with search criteria.// "SMB_PERFORMED_SEARCH_ON_GPS" - Advertiser performed search on// Google Partner Search.// "SMB_VIEWED_A_PARTNER_ON_GPS" - Advertiser viewed a partner on// Google Partner Search.// "SMB_CANCELED_PARTNER_CONTACT_FORM_ON_PROFILE_PAGE" - Advertiser// canceled partner contact form on profile page.// "SMB_CLICKED_CONTACT_A_PARTNER_ON_PROFILE_PAGE" - Advertiser// started partner contact form on profile page.// "SMB_CLICKED_PARTNER_WEBSITE" - Advertiser clicked partner website.// "SMB_COMPLETED_PARTNER_CONTACT_FORM_ON_PROFILE_PAGE" - Advertiser// completed contact form on profile page.// "SMB_VIEWED_A_PARTNER_PROFILE" - Advertiser viewed a partner// profile.// "AGENCY_CLICKED_ACCEPT_TOS_BUTTON" - Agency clicked `accept Terms// Of Service` button.// "AGENCY_CHANGED_TOS_COUNTRY" - Agency changed Terms Of Service// country.// "AGENCY_ADDED_ADDRESS_IN_MY_PROFILE_PORTAL" - Agency added address// in profile portal.// "AGENCY_ADDED_PHONE_NUMBER_IN_MY_PROFILE_PORTAL" - Agency added// phone number in profile portal.// "AGENCY_CHANGED_PRIMARY_ACCOUNT_ASSOCIATION" - Agency changed// primary account association.// "AGENCY_CHANGED_PRIMARY_COUNTRY_ASSOCIATION" - Agency changed// primary country association.// "AGENCY_CLICKED_AFFILIATE_BUTTON_IN_MY_PROFILE_IN_PORTAL" - Agency// clicked `affiliate` button in profile portal.// "AGENCY_CLICKED_GIVE_EDIT_ACCESS_IN_MY_PROFILE_PORTAL" - Agency// clicked `give edit access` in profile portal.// "AGENCY_CLICKED_LOG_OUT_IN_MY_PROFILE_PORTAL" - Agency clicked `log// out` in profile portal.// "AGENCY_CLICKED_MY_PROFILE_LEFT_NAV_IN_PORTAL" - Agency clicked// profile portal left nav.// "AGENCY_CLICKED_SAVE_AND_CONTINUE_AT_BOT_OF_COMPLETE_PROFILE" -// Agency clicked `save and continue` at bottom of complete profile.// "AGENCY_CLICKED_UNAFFILIATE_IN_MY_PROFILE_PORTAL" - Agency clicked// `unaffiliate` in profile portal.// "AGENCY_FILLED_OUT_COMP_AFFILIATION_IN_MY_PROFILE_PORTAL" - Agency// filled out company affiliation in profile portal.// "AGENCY_SUCCESSFULLY_CONNECTED_WITH_COMPANY_IN_MY_PROFILE" - Agency// successfully connected with company in profile portal.// "AGENCY_CLICKED_CREATE_MCC_IN_MY_PROFILE_PORTAL" - Agency clicked// create MCC in profile portal.// "AGENCY_DIDNT_HAVE_AN_MCC_ASSOCIATED_ON_COMPLETE_PROFILE" - Agency// did not have an MCC associated on profile portal.// "AGENCY_HAD_AN_MCC_ASSOCIATED_ON_COMPLETE_PROFILE" - Agency had an// MCC associated on profile portal.// "AGENCY_ADDED_JOB_FUNCTION_IN_MY_PROFILE_PORTAL" - Agency added job// function in profile portal.// "AGENCY_LOOKED_AT_JOB_FUNCTION_DROP_DOWN" - Agency looked at job// function drop-down.// "AGENCY_SELECTED_ACCOUNT_MANAGER_AS_JOB_FUNCTION" - Agency selected// `account manage` as job function.// "AGENCY_SELECTED_ACCOUNT_PLANNER_AS_JOB_FUNCTION" - Agency selected// `account planner` as job function.// "AGENCY_SELECTED_ANALYTICS_AS_JOB_FUNCTION" - Agency selected// `Analytics` as job function.// "AGENCY_SELECTED_CREATIVE_AS_JOB_FUNCTION" - Agency selected// `creative` as job function.// "AGENCY_SELECTED_MEDIA_BUYER_AS_JOB_FUNCTION" - Agency selected// `media buyer` as job function.// "AGENCY_SELECTED_MEDIA_PLANNER_AS_JOB_FUNCTION" - Agency selected// `media planner` as job function.// "AGENCY_SELECTED_OTHER_AS_JOB_FUNCTION" - Agency selected `other`// as job function.// "AGENCY_SELECTED_PRODUCTION_AS_JOB_FUNCTION" - Agency selected// `production` as job function.// "AGENCY_SELECTED_SEO_AS_JOB_FUNCTION" - Agency selected `SEO` as// job function.// "AGENCY_SELECTED_SALES_REP_AS_JOB_FUNCTION" - Agency selected// `sales rep` as job function.// "AGENCY_SELECTED_SEARCH_SPECIALIST_AS_JOB_FUNCTION" - Agency// selected `search specialist` as job function.// "AGENCY_ADDED_CHANNELS_IN_MY_PROFILE_PORTAL" - Agency added// channels in profile portal.// "AGENCY_LOOKED_AT_ADD_CHANNEL_DROP_DOWN" - Agency looked at `add// channel` drop-down.// "AGENCY_SELECTED_CROSS_CHANNEL_FROM_ADD_CHANNEL" - Agency selected// `cross channel` from add channel drop-down.// "AGENCY_SELECTED_DISPLAY_FROM_ADD_CHANNEL" - Agency selected// `display` from add channel drop-down.// "AGENCY_SELECTED_MOBILE_FROM_ADD_CHANNEL" - Agency selected// `mobile` from add channel drop-down.// "AGENCY_SELECTED_SEARCH_FROM_ADD_CHANNEL" - Agency selected// `search` from add channel drop-down.// "AGENCY_SELECTED_SOCIAL_FROM_ADD_CHANNEL" - Agency selected// `social` from add channel drop-down.// "AGENCY_SELECTED_TOOLS_FROM_ADD_CHANNEL" - Agency selected `tools`// from add channel drop-down.// "AGENCY_SELECTED_YOUTUBE_FROM_ADD_CHANNEL" - Agency selected// `YouTube` from add channel drop-down.// "AGENCY_ADDED_INDUSTRIES_IN_MY_PROFILE_PORTAL" - Agency added// industries in profile portal.// "AGENCY_CHANGED_ADD_INDUSTRIES_DROP_DOWN" - Agency changed `add// industries` drop-down.// "AGENCY_ADDED_MARKETS_IN_MY_PROFILE_PORTAL" - Agency added markets// in profile portal.// "AGENCY_CHANGED_ADD_MARKETS_DROP_DOWN" - Agency changed `add// markets` drop-down.// "AGENCY_CHECKED_RECIEVE_MAIL_PROMOTIONS_MYPROFILE" - Agency checked// `recieve mail promotions` in profile portal.// "AGENCY_CHECKED_RECIEVE_MAIL_PROMOTIONS_SIGNUP" - Agency checked// `recieve mail promotions` in sign-up.// "AGENCY_SELECTED_OPT_IN_BETA_TESTS_AND_MKT_RESEARCH" - Agency// selected `opt-in beta tests and market research`.// "AGENCY_SELECTED_OPT_IN_BETA_TESTS_IN_MY_PROFILE_PORTAL" - Agency// selected `opt-in beta tests` in profile portal.// "AGENCY_SELECTED_OPT_IN_NEWS_IN_MY_PROFILE_PORTAL" - Agency// selected `opt-in news` in profile portal.// "AGENCY_SELECTED_OPT_IN_NEWS_INVITATIONS_AND_PROMOS" - Agency// selected `opt-in news invitations and promotions`.// "AGENCY_SELECTED_OPT_IN_PERFORMANCE_SUG_IN_MY_PROFILE_PORTAL" -// Agency selected `opt-in performance SUG` in profile portal.// "AGENCY_SELECTED_OPT_IN_PERFORMANCE_SUGGESTIONS" - Agency selected// `opt-in performance suggestions`.// "AGENCY_SELECTED_OPT_IN_SELECT_ALL_EMAIL_NOTIFICATIONS" - Agency// selected `opt-in select all email notifications`.// "AGENCY_SELECTED_SELECT_ALL_OPT_INS_IN_MY_PROFILE_PORTAL" - Agency// selected `select all opt-ins` in profile portal.// "AGENCY_CLICKED_BACK_BUTTON_ON_CONNECT_WITH_COMPANY" - Agency// clicked back button on `connect with company`.// "AGENCY_CLICKED_CONTINUE_TO_OVERVIEW_ON_CONNECT_WITH_COMPANY" -// Agency clicked continue to overview on `connect with company`.// "AGECNY_CLICKED_CREATE_MCC_CONNECT_WITH_COMPANY_NOT_FOUND" - Agency// clicked `create MCC connect with company not found`.// "AGECNY_CLICKED_GIVE_EDIT_ACCESS_CONNECT_WITH_COMPANY_NOT_FOUND" -// Agency clicked `give edit access connect with company not found`.// "AGECNY_CLICKED_LOG_OUT_CONNECT_WITH_COMPANY_NOT_FOUND" - Agency// clicked `log out connect with company not found`.// "AGENCY_CLICKED_SKIP_FOR_NOW_ON_CONNECT_WITH_COMPANY_PAGE" - Agency// clicked `skip for now on connect with company page`.// "AGENCY_CLOSED_CONNECTED_TO_COMPANY_X_BUTTON_WRONG_COMPANY" -// Agency closed connection to company.// "AGENCY_COMPLETED_FIELD_CONNECT_WITH_COMPANY" - Agency completed// field connect with company.// "AGECNY_FOUND_COMPANY_TO_CONNECT_WITH" - Agency found company to// connect with.// "AGENCY_SUCCESSFULLY_CREATED_COMPANY" - Agency successfully created// company.// "AGENCY_ADDED_NEW_COMPANY_LOCATION" - Agency added new company// location.// "AGENCY_CLICKED_COMMUNITY_JOIN_NOW_LINK_IN_PORTAL_NOTIFICATIONS" -// Agency clicked community `join now link` in portal notifications.// "AGENCY_CLICKED_CONNECT_TO_COMPANY_LINK_IN_PORTAL_NOTIFICATIONS" -// Agency clicked `connect to company` link in portal notifications.// "AGENCY_CLICKED_GET_CERTIFIED_LINK_IN_PORTAL_NOTIFICATIONS" -// Agency cliecked `get certified` link in portal notifications.//// "AGENCY_CLICKED_GET_VIDEO_ADS_CERTIFIED_LINK_IN_PORTAL_NOTIFICATIONS"// - Agency clicked `get VideoAds certified` link in portal// notifications.// "AGENCY_CLICKED_LINK_TO_MCC_LINK_IN_PORTAL_NOTIFICATIONS" - Agency// clicked `link to MCC` link in portal notifications.// "AGENCY_CLICKED_INSIGHT_CONTENT_IN_PORTAL" - Agency clicked// `insight content` in portal.// "AGENCY_CLICKED_INSIGHTS_VIEW_NOW_PITCH_DECKS_IN_PORTAL" - Agency// clicked `insights view now pitch decks` in portal.// "AGENCY_CLICKED_INSIGHTS_LEFT_NAV_IN_PORTAL" - Agency clicked// `insights` left nav in portal.// "AGENCY_CLICKED_INSIGHTS_UPLOAD_CONTENT" - Agency clicked `insights// upload content`.// "AGENCY_CLICKED_INSIGHTS_VIEWED_DEPRECATED" - Agency clicked// `insights viewed deprecated`.// "AGENCY_CLICKED_COMMUNITY_LEFT_NAV_IN_PORTAL" - Agency clicked// `community` left nav in portal.// "AGENCY_CLICKED_JOIN_COMMUNITY_BUTTON_COMMUNITY_PORTAL" - Agency// clicked `join community` button in community portal.// "AGENCY_CLICKED_CERTIFICATIONS_LEFT_NAV_IN_PORTAL" - Agency clicked// `certifications` left nav in portal.// "AGENCY_CLICKED_CERTIFICATIONS_PRODUCT_LEFT_NAV_IN_PORTAL" - Agency// clicked `certifications product` left nav in portal.// "AGENCY_CLICKED_PARTNER_STATUS_LEFT_NAV_IN_PORTAL" - Agency clicked// `partner status` left nav in portal.// "AGENCY_CLICKED_PARTNER_STATUS_PRODUCT_LEFT_NAV_IN_PORTAL" - Agency// clicked `partner status product` left nav in portal.// "AGENCY_CLICKED_OFFERS_LEFT_NAV_IN_PORTAL" - Agency clicked// `offers` left nav in portal.// "AGENCY_CLICKED_SEND_BUTTON_ON_OFFERS_PAGE" - Agency clicked `send`// button on offers page.// "AGENCY_CLICKED_EXAM_DETAILS_ON_CERT_ADWORDS_PAGE" - Agency clicked// `exam details` on certifications AdWords page.// "AGENCY_CLICKED_SEE_EXAMS_CERTIFICATION_MAIN_PAGE" - Agency clicked// `see exams` certifications main page.// "AGENCY_CLICKED_TAKE_EXAM_ON_CERT_EXAM_PAGE" - Agency clicked `take// exam` on certifications exam page.// "AGENCY_OPENED_LAST_ADMIN_DIALOG" - Agency opened `last admin`// dialog.// "AGENCY_OPENED_DIALOG_WITH_NO_USERS" - Agency opened dialog with no// users.// "AGENCY_PROMOTED_USER_TO_ADMIN" - Agency promoted user to admin.// "AGENCY_UNAFFILIATED" - Agency unaffiliated.// "AGENCY_CHANGED_ROLES" - Agency changed roles.// "SMB_CLICKED_COMPANY_NAME_LINK_TO_PROFILE" - Advertiser clicked// `company name` link to profile.// "SMB_VIEWED_ADWORDS_CERTIFICATE" - Advertiser viewed AdWords// certificate.// "SMB_VIEWED_ADWORDS_SEARCH_CERTIFICATE" - Advertiser viewed AdWords// Search certificate.// "SMB_VIEWED_ADWORDS_DISPLAY_CERTIFICATE" - Advertiser viewed// AdWords Display certificate.// "SMB_CLICKED_ADWORDS_CERTIFICATE_HELP_ICON" - Advertiser clicked// AdWords certificate help icon.// "SMB_VIEWED_ANALYTICS_CERTIFICATE" - Advertiser viewed Analytics// certificate.// "SMB_VIEWED_DOUBLECLICK_CERTIFICATE" - Advertiser viewed// DoubleClick certificate.// "SMB_VIEWED_MOBILE_SITES_CERTIFICATE" - Advertiser viewed Mobile// Sites certificate.// "SMB_VIEWED_VIDEO_ADS_CERTIFICATE" - Advertiser viewed VideoAds// certificate.// "SMB_VIEWED_SHOPPING_CERTIFICATE" - Advertiser clicked Shopping// certificate help icon.// "SMB_CLICKED_VIDEO_ADS_CERTIFICATE_HELP_ICON" - Advertiser clicked// VideoAds certificate help icon.// "SMB_VIEWED_DIGITAL_SALES_CERTIFICATE" - Advertiser viewed Digital// Sales certificate.// "CLICKED_HELP_AT_BOTTOM" - Clicked `help` at bottom.// "CLICKED_HELP_AT_TOP" - Clicked `help` at top.// "CLIENT_ERROR" - Client error occurred.// "AGENCY_CLICKED_LEFT_NAV_STORIES" - Agency clicked left nav// `stories`.// "CLICKED" - Click occured.// "SMB_VIEWED_MOBILE_CERTIFICATE" - Advertiser clicked Mobile// certificate help icon.// "AGENCY_FAILED_COMPANY_VERIFICATION" - Agency failed the company// verification.// "VISITED_LANDING" - User visited the landing portion of Google// Partners.// "VISITED_GPS" - User visited the Google Partner Search portion of// Google Partners.// "VISITED_AGENCY_PORTAL" - User visited the agency portal portion of// Google Partners.// "CANCELLED_INDIVIDUAL_SIGN_UP" - User cancelled signing up.// "CANCELLED_COMPANY_SIGN_UP" - User cancelled signing up their// company.// "AGENCY_CLICKED_SIGN_IN_BUTTON_TOP" - Agency clicked `Sign in` top// button.// "AGENCY_CLICKED_SAVE_AND_CONTINUE_AT_BOT_OF_INCOMPLETE_PROFILE" -// Agency clicked `save and continue` at bottom of incomplete profile.// "AGENCY_UNSELECTED_OPT_IN_NEWS_INVITATIONS_AND_PROMOS" - Agency// unselected `opt-in news invitations and promotions`.// "AGENCY_UNSELECTED_OPT_IN_BETA_TESTS_AND_MKT_RESEARCH" - Agency// unselected `opt-in beta tests and market research`.// "AGENCY_UNSELECTED_OPT_IN_PERFORMANCE_SUGGESTIONS" - Agency// unselected `opt-in performance suggestions`.// "AGENCY_SELECTED_OPT_OUT_UNSELECT_ALL_EMAIL_NOTIFICATIONS" - Agency// selected `opt-out unselect all email notifications`.// "AGENCY_LINKED_INDIVIDUAL_MCC" - Agency linked their individual// MCC.// "AGENCY_SUGGESTED_TO_USER" - Agency was suggested to user for// affiliation.// "AGENCY_IGNORED_SUGGESTED_AGENCIES_AND_SEARCHED" - Agency ignored// suggested agencies and begin searching.// "AGENCY_PICKED_SUGGESTED_AGENCY" - Agency picked a suggested// agency.// "AGENCY_SEARCHED_FOR_AGENCIES" - Agency searched for agencies.// "AGENCY_PICKED_SEARCHED_AGENCY" - Agency picked a searched agency.// "AGENCY_DISMISSED_AFFILIATION_WIDGET" - Agency dismissed// affiliation widget.// "AGENCY_CLICKED_INSIGHTS_DOWNLOAD_CONTENT" - Agency clicked on the// download link for downloading content.// "AGENCY_PROGRESS_INSIGHTS_VIEW_CONTENT" - Agency user is maklingg// progress viewing a content item.// "AGENCY_CLICKED_CANCEL_ACCEPT_TOS_BUTTON" - Agency clicked `cancel// Terms Of Service` button.// "SMB_ENTERED_WEBSITE_IN_CONTACT_PARTNER_FORM" - Advertiser entered// website in contact form.// "AGENCY_SELECTED_OPT_IN_AFA_MIGRATION" - Agency opted in for// migrating their exams to Academy for Ads.// "AGENCY_SELECTED_OPT_OUT_AFA_MIGRATION" - Agency opted out for// migrating their exams to Academy for Ads.EventActionstring `json:"eventAction,omitempty"`// EventCategory: The category the action belongs to.//// Possible values:// "EVENT_CATEGORY_UNSPECIFIED" - Unchosen.// "GOOGLE_PARTNER_SEARCH" - Google Partner Search category.// "GOOGLE_PARTNER_SIGNUP_FLOW" - Google Partner sign-up flow// category.// "GOOGLE_PARTNER_PORTAL" - Google Partner portal category.// "GOOGLE_PARTNER_PORTAL_MY_PROFILE" - Google Partner portal// my-profile category.// "GOOGLE_PARTNER_PORTAL_CERTIFICATIONS" - Google Partner portal// certifications category.// "GOOGLE_PARTNER_PORTAL_COMMUNITY" - Google Partner portal community// category.// "GOOGLE_PARTNER_PORTAL_INSIGHTS" - Google Partner portal insights// category.// "GOOGLE_PARTNER_PORTAL_CLIENTS" - Google Partner portal clients// category.// "GOOGLE_PARTNER_PUBLIC_USER_PROFILE" - Google Partner portal public// user profile category.// "GOOGLE_PARTNER_PANEL" - Google Partner panel category.// "GOOGLE_PARTNER_PORTAL_LAST_ADMIN_DIALOG" - Google Partner portal// last admin dialog category.// "GOOGLE_PARTNER_CLIENT" - Google Partner client category.// "GOOGLE_PARTNER_PORTAL_COMPANY_PROFILE" - Google Partner portal// company profile category.// "EXTERNAL_LINKS" - External links category.// "GOOGLE_PARTNER_LANDING" - Google Partner landing category.EventCategorystring `json:"eventCategory,omitempty"`// EventDatas: List of event data for the event.EventDatas []*EventData `json:"eventDatas,omitempty"`// EventScope: The scope of the event.//// Possible values:// "EVENT_SCOPE_UNSPECIFIED" - Unchosen.// "VISITOR" - Based on visitor.// "SESSION" - Based on session.// "PAGE" - Based on page visit.EventScopestring `json:"eventScope,omitempty"`// Lead: Advertiser lead information.Lead *Lead `json:"lead,omitempty"`// RequestMetadata: Current request metadata.RequestMetadata *RequestMetadata `json:"requestMetadata,omitempty"`// Url: The URL where the event occurred.Urlstring `json:"url,omitempty"`// ForceSendFields is a list of field names (e.g. "EventAction") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "EventAction") to include// in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. However, any field with// an empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}LogUserEventRequest: Request message forLogUserEvent.
func (*LogUserEventRequest)MarshalJSON¶
func (s *LogUserEventRequest) MarshalJSON() ([]byte,error)
typeLogUserEventResponse¶
type LogUserEventResponse struct {// ResponseMetadata: Current response metadata.ResponseMetadata *ResponseMetadata `json:"responseMetadata,omitempty"`// ServerResponse contains the HTTP response code and headers from the// server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "ResponseMetadata") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ResponseMetadata") to// include in API requests with the JSON null value. By default, fields// with empty values are omitted from API requests. However, any field// with an empty value appearing in NullFields will be sent to the// server as null. It is an error if a field in this list has a// non-empty value. This may be used to include null fields in Patch// requests.NullFields []string `json:"-"`}LogUserEventResponse: Response message forLogUserEvent.
func (*LogUserEventResponse)MarshalJSON¶
func (s *LogUserEventResponse) MarshalJSON() ([]byte,error)
typeMoney¶
type Money struct {// CurrencyCode: The 3-letter currency code defined in ISO 4217.CurrencyCodestring `json:"currencyCode,omitempty"`// Nanos: Number of nano (10^-9) units of the amount.// The value must be between -999,999,999 and +999,999,999 inclusive.// If `units` is positive, `nanos` must be positive or zero.// If `units` is zero, `nanos` can be positive, zero, or negative.// If `units` is negative, `nanos` must be negative or zero.// For example $-1.75 is represented as `units`=-1 and// `nanos`=-750,000,000.Nanosint64 `json:"nanos,omitempty"`// Units: The whole units of the amount.// For example if `currencyCode` is "USD", then 1 unit is one US// dollar.Unitsint64 `json:"units,omitempty,string"`// ForceSendFields is a list of field names (e.g. "CurrencyCode") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CurrencyCode") to include// in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. However, any field with// an empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}Money: Represents an amount of money with its currency type.
func (*Money)MarshalJSON¶
typeOfferCustomer¶
type OfferCustomer struct {// AdwordsUrl: URL to the customer's AdWords page.AdwordsUrlstring `json:"adwordsUrl,omitempty"`// CountryCode: Country code of the customer.CountryCodestring `json:"countryCode,omitempty"`// CreationTime: Time the customer was created.CreationTimestring `json:"creationTime,omitempty"`// EligibilityDaysLeft: Days the customer is still eligible.EligibilityDaysLeftint64 `json:"eligibilityDaysLeft,omitempty"`// ExternalCid: External CID for the customer.ExternalCidint64 `json:"externalCid,omitempty,string"`// GetYAmount: Formatted Get Y amount with currency code.GetYAmountstring `json:"getYAmount,omitempty"`// Name: Name of the customer.Namestring `json:"name,omitempty"`// OfferType: Type of the offer//// Possible values:// "OFFER_TYPE_UNSPECIFIED" - Unset.// "OFFER_TYPE_SPEND_X_GET_Y" - AdWords spend X get Y.// "OFFER_TYPE_VIDEO" - Youtube video.// "OFFER_TYPE_SPEND_MATCH" - Spend Match up to Y.OfferTypestring `json:"offerType,omitempty"`// SpendXAmount: Formatted Spend X amount with currency code.SpendXAmountstring `json:"spendXAmount,omitempty"`// ForceSendFields is a list of field names (e.g. "AdwordsUrl") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AdwordsUrl") to include in// API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}OfferCustomer: Customers qualified for an offer.
func (*OfferCustomer)MarshalJSON¶
func (s *OfferCustomer) MarshalJSON() ([]byte,error)
typeOffersHistoryListCall¶
type OffersHistoryListCall struct {// contains filtered or unexported fields}func (*OffersHistoryListCall)Context¶
func (c *OffersHistoryListCall) Context(ctxcontext.Context) *OffersHistoryListCall
Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.
func (*OffersHistoryListCall)Do¶
func (c *OffersHistoryListCall) Do(opts ...googleapi.CallOption) (*ListOffersHistoryResponse,error)
Do executes the "partners.offers.history.list" call.Exactly one of *ListOffersHistoryResponse or error will be non-nil.Any non-2xx status code is an error. Response headers are in either*ListOffersHistoryResponse.ServerResponse.Header or (if a responsewas returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error wasbecause http.StatusNotModified was returned.
func (*OffersHistoryListCall)EntireCompany¶
func (c *OffersHistoryListCall) EntireCompany(entireCompanybool) *OffersHistoryListCall
EntireCompany sets the optional parameter "entireCompany": if true,show history for the entire company. Requires user to be admin.
func (*OffersHistoryListCall)Fields¶
func (c *OffersHistoryListCall) Fields(s ...googleapi.Field) *OffersHistoryListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.
func (*OffersHistoryListCall)Header¶
func (c *OffersHistoryListCall) Header()http.Header
Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.
func (*OffersHistoryListCall)IfNoneMatch¶
func (c *OffersHistoryListCall) IfNoneMatch(entityTagstring) *OffersHistoryListCall
IfNoneMatch sets the optional parameter which makes the operationfail if the object's ETag matches the given value. This is useful forgetting updates only after the object has changed since the lastrequest. Use googleapi.IsNotModified to check whether the responseerror from Do is the result of In-None-Match.
func (*OffersHistoryListCall)OrderBy¶
func (c *OffersHistoryListCall) OrderBy(orderBystring) *OffersHistoryListCall
OrderBy sets the optional parameter "orderBy": Comma-separated listof fields to order by, e.g.: "foo,bar,baz".Use "foo desc" to sort descending.List of valid field names is: name, offer_code, expiration_time,status,
last_modified_time, sender_name, creation_time, country_code,offer_type.
func (*OffersHistoryListCall)PageSize¶
func (c *OffersHistoryListCall) PageSize(pageSizeint64) *OffersHistoryListCall
PageSize sets the optional parameter "pageSize": Maximum number ofrows to return per page.
func (*OffersHistoryListCall)PageToken¶
func (c *OffersHistoryListCall) PageToken(pageTokenstring) *OffersHistoryListCall
PageToken sets the optional parameter "pageToken": Token to retrievea specific page.
func (*OffersHistoryListCall)Pages¶
func (c *OffersHistoryListCall) Pages(ctxcontext.Context, f func(*ListOffersHistoryResponse)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.
func (*OffersHistoryListCall)RequestMetadataExperimentIds¶
func (c *OffersHistoryListCall) RequestMetadataExperimentIds(requestMetadataExperimentIds ...string) *OffersHistoryListCall
RequestMetadataExperimentIds sets the optional parameter"requestMetadata.experimentIds": Experiment IDs the current requestbelongs to.
func (*OffersHistoryListCall)RequestMetadataLocale¶
func (c *OffersHistoryListCall) RequestMetadataLocale(requestMetadataLocalestring) *OffersHistoryListCall
RequestMetadataLocale sets the optional parameter"requestMetadata.locale": Locale to use for the current request.
func (*OffersHistoryListCall)RequestMetadataPartnersSessionId¶
func (c *OffersHistoryListCall) RequestMetadataPartnersSessionId(requestMetadataPartnersSessionIdstring) *OffersHistoryListCall
RequestMetadataPartnersSessionId sets the optional parameter"requestMetadata.partnersSessionId": Google Partners session ID.
func (*OffersHistoryListCall)RequestMetadataTrafficSourceTrafficSourceId¶
func (c *OffersHistoryListCall) RequestMetadataTrafficSourceTrafficSourceId(requestMetadataTrafficSourceTrafficSourceIdstring) *OffersHistoryListCall
RequestMetadataTrafficSourceTrafficSourceId sets the optionalparameter "requestMetadata.trafficSource.trafficSourceId": Identifierto indicate where the traffic comes from.An identifier has multiple letters created by a team which redirectedthetraffic to us.
func (*OffersHistoryListCall)RequestMetadataTrafficSourceTrafficSubId¶
func (c *OffersHistoryListCall) RequestMetadataTrafficSourceTrafficSubId(requestMetadataTrafficSourceTrafficSubIdstring) *OffersHistoryListCall
RequestMetadataTrafficSourceTrafficSubId sets the optional parameter"requestMetadata.trafficSource.trafficSubId": Second level identifierto indicate where the traffic comes from.An identifier has multiple letters created by a team which redirectedthetraffic to us.
func (*OffersHistoryListCall)RequestMetadataUserOverridesIpAddress¶
func (c *OffersHistoryListCall) RequestMetadataUserOverridesIpAddress(requestMetadataUserOverridesIpAddressstring) *OffersHistoryListCall
RequestMetadataUserOverridesIpAddress sets the optional parameter"requestMetadata.userOverrides.ipAddress": IP address to use insteadof the user's geo-located IP address.
func (*OffersHistoryListCall)RequestMetadataUserOverridesUserId¶
func (c *OffersHistoryListCall) RequestMetadataUserOverridesUserId(requestMetadataUserOverridesUserIdstring) *OffersHistoryListCall
RequestMetadataUserOverridesUserId sets the optional parameter"requestMetadata.userOverrides.userId": Logged-in user ID toimpersonate instead of the user's ID.
typeOffersHistoryService¶
type OffersHistoryService struct {// contains filtered or unexported fields}funcNewOffersHistoryService¶
func NewOffersHistoryService(s *Service) *OffersHistoryService
func (*OffersHistoryService)List¶
func (r *OffersHistoryService) List() *OffersHistoryListCall
List: Lists the Historical Offers for the current user (or user'sentire company)
typeOffersListCall¶
type OffersListCall struct {// contains filtered or unexported fields}func (*OffersListCall)Context¶
func (c *OffersListCall) Context(ctxcontext.Context) *OffersListCall
Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.
func (*OffersListCall)Do¶
func (c *OffersListCall) Do(opts ...googleapi.CallOption) (*ListOffersResponse,error)
Do executes the "partners.offers.list" call.Exactly one of *ListOffersResponse or error will be non-nil. Anynon-2xx status code is an error. Response headers are in either*ListOffersResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error wasbecause http.StatusNotModified was returned.
func (*OffersListCall)Fields¶
func (c *OffersListCall) Fields(s ...googleapi.Field) *OffersListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.
func (*OffersListCall)Header¶
func (c *OffersListCall) Header()http.Header
Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.
func (*OffersListCall)IfNoneMatch¶
func (c *OffersListCall) IfNoneMatch(entityTagstring) *OffersListCall
IfNoneMatch sets the optional parameter which makes the operationfail if the object's ETag matches the given value. This is useful forgetting updates only after the object has changed since the lastrequest. Use googleapi.IsNotModified to check whether the responseerror from Do is the result of In-None-Match.
func (*OffersListCall)RequestMetadataExperimentIds¶
func (c *OffersListCall) RequestMetadataExperimentIds(requestMetadataExperimentIds ...string) *OffersListCall
RequestMetadataExperimentIds sets the optional parameter"requestMetadata.experimentIds": Experiment IDs the current requestbelongs to.
func (*OffersListCall)RequestMetadataLocale¶
func (c *OffersListCall) RequestMetadataLocale(requestMetadataLocalestring) *OffersListCall
RequestMetadataLocale sets the optional parameter"requestMetadata.locale": Locale to use for the current request.
func (*OffersListCall)RequestMetadataPartnersSessionId¶
func (c *OffersListCall) RequestMetadataPartnersSessionId(requestMetadataPartnersSessionIdstring) *OffersListCall
RequestMetadataPartnersSessionId sets the optional parameter"requestMetadata.partnersSessionId": Google Partners session ID.
func (*OffersListCall)RequestMetadataTrafficSourceTrafficSourceId¶
func (c *OffersListCall) RequestMetadataTrafficSourceTrafficSourceId(requestMetadataTrafficSourceTrafficSourceIdstring) *OffersListCall
RequestMetadataTrafficSourceTrafficSourceId sets the optionalparameter "requestMetadata.trafficSource.trafficSourceId": Identifierto indicate where the traffic comes from.An identifier has multiple letters created by a team which redirectedthetraffic to us.
func (*OffersListCall)RequestMetadataTrafficSourceTrafficSubId¶
func (c *OffersListCall) RequestMetadataTrafficSourceTrafficSubId(requestMetadataTrafficSourceTrafficSubIdstring) *OffersListCall
RequestMetadataTrafficSourceTrafficSubId sets the optional parameter"requestMetadata.trafficSource.trafficSubId": Second level identifierto indicate where the traffic comes from.An identifier has multiple letters created by a team which redirectedthetraffic to us.
func (*OffersListCall)RequestMetadataUserOverridesIpAddress¶
func (c *OffersListCall) RequestMetadataUserOverridesIpAddress(requestMetadataUserOverridesIpAddressstring) *OffersListCall
RequestMetadataUserOverridesIpAddress sets the optional parameter"requestMetadata.userOverrides.ipAddress": IP address to use insteadof the user's geo-located IP address.
func (*OffersListCall)RequestMetadataUserOverridesUserId¶
func (c *OffersListCall) RequestMetadataUserOverridesUserId(requestMetadataUserOverridesUserIdstring) *OffersListCall
RequestMetadataUserOverridesUserId sets the optional parameter"requestMetadata.userOverrides.userId": Logged-in user ID toimpersonate instead of the user's ID.
typeOffersService¶
type OffersService struct {History *OffersHistoryService// contains filtered or unexported fields}funcNewOffersService¶
func NewOffersService(s *Service) *OffersService
func (*OffersService)List¶
func (r *OffersService) List() *OffersListCall
List: Lists the Offers available for the current user
typeOptIns¶
type OptIns struct {// MarketComm: An opt-in about receiving email from Partners marketing// teams. Includes// member-only events and special promotional offers for Google// products.MarketCommbool `json:"marketComm,omitempty"`// PerformanceSuggestions: An opt-in about receiving email with// customized AdWords campaign management// tips.PerformanceSuggestionsbool `json:"performanceSuggestions,omitempty"`// PhoneContact: An opt-in to allow recieivng phone calls about their// Partners account.PhoneContactbool `json:"phoneContact,omitempty"`// PhysicalMail: An opt-in to receive special promotional gifts and// material in the mail.PhysicalMailbool `json:"physicalMail,omitempty"`// SpecialOffers: An opt-in about receiving email regarding new features// and products.SpecialOffersbool `json:"specialOffers,omitempty"`// ForceSendFields is a list of field names (e.g. "MarketComm") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "MarketComm") to include in// API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}OptIns: A set of opt-ins for a user.
func (*OptIns)MarshalJSON¶
typePublicProfile¶
type PublicProfile struct {// DisplayImageUrl: The URL to the main display image of the public// profile. Being deprecated.DisplayImageUrlstring `json:"displayImageUrl,omitempty"`// DisplayName: The display name of the public profile.DisplayNamestring `json:"displayName,omitempty"`// Id: The ID which can be used to retrieve more details about the// public profile.Idstring `json:"id,omitempty"`// ProfileImage: The URL to the main profile image of the public// profile.ProfileImagestring `json:"profileImage,omitempty"`// Url: The URL of the public profile.Urlstring `json:"url,omitempty"`// ForceSendFields is a list of field names (e.g. "DisplayImageUrl") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "DisplayImageUrl") to// include in API requests with the JSON null value. By default, fields// with empty values are omitted from API requests. However, any field// with an empty value appearing in NullFields will be sent to the// server as null. It is an error if a field in this list has a// non-empty value. This may be used to include null fields in Patch// requests.NullFields []string `json:"-"`}PublicProfile: Basic information from a public profile.
func (*PublicProfile)MarshalJSON¶
func (s *PublicProfile) MarshalJSON() ([]byte,error)
typeRank¶
type Rank struct {// Type: The type of rank.//// Possible values:// "RANK_TYPE_UNSPECIFIED" - Unchosen.// "RT_FINAL_SCORE" - Total final score.Typestring `json:"type,omitempty"`// Value: The numerical value of the rank.Valuefloat64 `json:"value,omitempty"`// ForceSendFields is a list of field names (e.g. "Type") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Type") to include in API// requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}Rank: Information related to ranking of results.
func (*Rank)MarshalJSON¶
func (*Rank)UnmarshalJSON¶
typeRecaptchaChallenge¶
type RecaptchaChallenge struct {// Id: The ID of the reCaptcha challenge.Idstring `json:"id,omitempty"`// Response: The response to the reCaptcha challenge.Responsestring `json:"response,omitempty"`// ForceSendFields is a list of field names (e.g. "Id") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.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. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}RecaptchaChallenge: <ahref="https://www.google.com/recaptcha/">reCaptcha</a> challengeinfo.
func (*RecaptchaChallenge)MarshalJSON¶
func (s *RecaptchaChallenge) MarshalJSON() ([]byte,error)
typeRequestMetadata¶
type RequestMetadata struct {// ExperimentIds: Experiment IDs the current request belongs to.ExperimentIds []string `json:"experimentIds,omitempty"`// Locale: Locale to use for the current request.Localestring `json:"locale,omitempty"`// PartnersSessionId: Google Partners session ID.PartnersSessionIdstring `json:"partnersSessionId,omitempty"`// TrafficSource: Source of traffic for the current request.TrafficSource *TrafficSource `json:"trafficSource,omitempty"`// UserOverrides: Values to use instead of the user's respective// defaults for the current// request. These are only honored by whitelisted products.UserOverrides *UserOverrides `json:"userOverrides,omitempty"`// ForceSendFields is a list of field names (e.g. "ExperimentIds") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ExperimentIds") to include// in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. However, any field with// an empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}RequestMetadata: Common data that is in each API request.
func (*RequestMetadata)MarshalJSON¶
func (s *RequestMetadata) MarshalJSON() ([]byte,error)
typeResponseMetadata¶
type ResponseMetadata struct {// DebugInfo: Debug information about this request.DebugInfo *DebugInfo `json:"debugInfo,omitempty"`// ForceSendFields is a list of field names (e.g. "DebugInfo") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "DebugInfo") to include in// API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}ResponseMetadata: Common data that is in each API response.
func (*ResponseMetadata)MarshalJSON¶
func (s *ResponseMetadata) MarshalJSON() ([]byte,error)
typeService¶
type Service struct {BasePathstring// API endpoint base URLUserAgentstring// optional additional User-Agent fragmentAnalytics *AnalyticsServiceClientMessages *ClientMessagesServiceCompanies *CompaniesServiceLeads *LeadsServiceOffers *OffersServiceUserEvents *UserEventsServiceUserStates *UserStatesServiceUsers *UsersServiceV2 *V2Service// contains filtered or unexported fields} funcNewdeprecated
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.
funcNewService¶added inv0.5.0
NewService creates a new Service.
typeSpecializationStatus¶
type SpecializationStatus struct {// BadgeSpecialization: The specialization this status is for.//// Possible values:// "BADGE_SPECIALIZATION_UNKNOWN" - Unknown specialization// "BADGE_SPECIALIZATION_ADWORDS_SEARCH" - AdWords Search// specialization// "BADGE_SPECIALIZATION_ADWORDS_DISPLAY" - AdWords Display// specialization// "BADGE_SPECIALIZATION_ADWORDS_MOBILE" - AdWords Mobile// specialization// "BADGE_SPECIALIZATION_ADWORDS_VIDEO" - AdWords Video specialization// "BADGE_SPECIALIZATION_ADWORDS_SHOPPING" - AdWords Shopping// specializationBadgeSpecializationstring `json:"badgeSpecialization,omitempty"`// BadgeSpecializationState: State of agency specialization.//// Possible values:// "BADGE_SPECIALIZATION_STATE_UNKNOWN" - Unknown state// "BADGE_SPECIALIZATION_STATE_PASSED" - Specialization passed// "BADGE_SPECIALIZATION_STATE_NOT_PASSED" - Specialization not passed// "BADGE_SPECIALIZATION_STATE_IN_GRACE" - Specialization in graceBadgeSpecializationStatestring `json:"badgeSpecializationState,omitempty"`// ForceSendFields is a list of field names (e.g. "BadgeSpecialization")// to unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "BadgeSpecialization") to// include in API requests with the JSON null value. By default, fields// with empty values are omitted from API requests. However, any field// with an empty value appearing in NullFields will be sent to the// server as null. It is an error if a field in this list has a// non-empty value. This may be used to include null fields in Patch// requests.NullFields []string `json:"-"`}SpecializationStatus: Agency specialization status
func (*SpecializationStatus)MarshalJSON¶
func (s *SpecializationStatus) MarshalJSON() ([]byte,error)
typeTrafficSource¶
type TrafficSource struct {// TrafficSourceId: Identifier to indicate where the traffic comes// from.// An identifier has multiple letters created by a team which redirected// the// traffic to us.TrafficSourceIdstring `json:"trafficSourceId,omitempty"`// TrafficSubId: Second level identifier to indicate where the traffic// comes from.// An identifier has multiple letters created by a team which redirected// the// traffic to us.TrafficSubIdstring `json:"trafficSubId,omitempty"`// ForceSendFields is a list of field names (e.g. "TrafficSourceId") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "TrafficSourceId") to// include in API requests with the JSON null value. By default, fields// with empty values are omitted from API requests. However, any field// with an empty value appearing in NullFields will be sent to the// server as null. It is an error if a field in this list has a// non-empty value. This may be used to include null fields in Patch// requests.NullFields []string `json:"-"`}TrafficSource: Source of traffic for the current request.
func (*TrafficSource)MarshalJSON¶
func (s *TrafficSource) MarshalJSON() ([]byte,error)
typeUser¶
type User struct {// AfaInfoShared: Whether or not the user has opted to share their// Academy for Ads info with// Google Partners.AfaInfoSharedbool `json:"afaInfoShared,omitempty"`// AvailableAdwordsManagerAccounts: This is the list of AdWords Manager// Accounts the user has edit access to.// If the user has edit access to multiple accounts, the user can choose// the// preferred account and we use this when a personal account is needed.// Can// be empty meaning the user has access to no accounts.// @OutputOnlyAvailableAdwordsManagerAccounts []*AdWordsManagerAccountInfo `json:"availableAdwordsManagerAccounts,omitempty"`// CertificationStatus: The list of achieved certifications. These are// calculated based on exam// results and other requirements.// @OutputOnlyCertificationStatus []*Certification `json:"certificationStatus,omitempty"`// Company: The company that the user is associated with.// If not present, the user is not associated with any company.Company *CompanyRelation `json:"company,omitempty"`// CompanyVerificationEmail: The email address used by the user used for// company verification.// @OutputOnlyCompanyVerificationEmailstring `json:"companyVerificationEmail,omitempty"`// ExamStatus: The list of exams the user ever taken. For each type of// exam, only one// entry is listed.ExamStatus []*ExamStatus `json:"examStatus,omitempty"`// Id: The ID of the user.Idstring `json:"id,omitempty"`// InternalId: The internal user ID.// Only available for a whitelisted set of api clients.InternalIdstring `json:"internalId,omitempty"`// LastAccessTime: The most recent time the user interacted with the// Partners site.// @OutputOnlyLastAccessTimestring `json:"lastAccessTime,omitempty"`// PrimaryEmails: The list of emails the user has access to/can select// as primary.// @OutputOnlyPrimaryEmails []string `json:"primaryEmails,omitempty"`// Profile: The profile information of a Partners user, contains all the// directly// editable user information.Profile *UserProfile `json:"profile,omitempty"`// PublicProfile: Information about a user's external public profile// outside Google Partners.PublicProfile *PublicProfile `json:"publicProfile,omitempty"`// ServerResponse contains the HTTP response code and headers from the// server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "AfaInfoShared") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AfaInfoShared") to include// in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. However, any field with// an empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}User: A resource representing a user of the Partners platform.
func (*User)MarshalJSON¶
typeUserEventsLogCall¶
type UserEventsLogCall struct {// contains filtered or unexported fields}func (*UserEventsLogCall)Context¶
func (c *UserEventsLogCall) Context(ctxcontext.Context) *UserEventsLogCall
Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.
func (*UserEventsLogCall)Do¶
func (c *UserEventsLogCall) Do(opts ...googleapi.CallOption) (*LogUserEventResponse,error)
Do executes the "partners.userEvents.log" call.Exactly one of *LogUserEventResponse or error will be non-nil. Anynon-2xx status code is an error. Response headers are in either*LogUserEventResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error wasbecause http.StatusNotModified was returned.
func (*UserEventsLogCall)Fields¶
func (c *UserEventsLogCall) Fields(s ...googleapi.Field) *UserEventsLogCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.
func (*UserEventsLogCall)Header¶
func (c *UserEventsLogCall) Header()http.Header
Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.
typeUserEventsService¶
type UserEventsService struct {// contains filtered or unexported fields}funcNewUserEventsService¶
func NewUserEventsService(s *Service) *UserEventsService
func (*UserEventsService)Log¶
func (r *UserEventsService) Log(logusereventrequest *LogUserEventRequest) *UserEventsLogCall
Log: Logs a user event.
typeUserOverrides¶
type UserOverrides struct {// IpAddress: IP address to use instead of the user's geo-located IP// address.IpAddressstring `json:"ipAddress,omitempty"`// UserId: Logged-in user ID to impersonate instead of the user's ID.UserIdstring `json:"userId,omitempty"`// ForceSendFields is a list of field names (e.g. "IpAddress") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "IpAddress") to include in// API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}UserOverrides: Values to use instead of the user's respectivedefaults. These are onlyhonored by whitelisted products.
func (*UserOverrides)MarshalJSON¶
func (s *UserOverrides) MarshalJSON() ([]byte,error)
typeUserProfile¶
type UserProfile struct {// Address: The user's mailing address, contains multiple fields.Address *Location `json:"address,omitempty"`// AdwordsManagerAccount: If the user has edit access to multiple// accounts, the user can choose the// preferred account and it is used when a personal account is needed.// Can// be empty.AdwordsManagerAccountint64 `json:"adwordsManagerAccount,omitempty,string"`// Channels: A list of ids representing which channels the user selected// they were in.Channels []string `json:"channels,omitempty"`// EmailAddress: The email address the user has selected on the Partners// site as primary.EmailAddressstring `json:"emailAddress,omitempty"`// EmailOptIns: The list of opt-ins for the user, related to// communication preferences.EmailOptIns *OptIns `json:"emailOptIns,omitempty"`// FamilyName: The user's family name.FamilyNamestring `json:"familyName,omitempty"`// GivenName: The user's given name.GivenNamestring `json:"givenName,omitempty"`// Industries: A list of ids representing which industries the user// selected.Industries []string `json:"industries,omitempty"`// JobFunctions: A list of ids represnting which job categories the user// selected.JobFunctions []string `json:"jobFunctions,omitempty"`// Languages: The list of languages this user understands.Languages []string `json:"languages,omitempty"`// Markets: A list of ids representing which markets the user was// interested in.Markets []string `json:"markets,omitempty"`// MigrateToAfa: Whether or not to migrate the user's exam data to// Academy for Ads.MigrateToAfabool `json:"migrateToAfa,omitempty"`// PhoneNumber: The user's phone number.PhoneNumberstring `json:"phoneNumber,omitempty"`// PrimaryCountryCode: The user's primary country, an ISO 2-character// code.PrimaryCountryCodestring `json:"primaryCountryCode,omitempty"`// ProfilePublic: Whether the user's public profile is visible to anyone// with the URL.ProfilePublicbool `json:"profilePublic,omitempty"`// ServerResponse contains the HTTP response code and headers from the// server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Address") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Address") to include in// API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}UserProfile: The profile information of a Partners user.
func (*UserProfile)MarshalJSON¶
func (s *UserProfile) MarshalJSON() ([]byte,error)
typeUserStatesListCall¶
type UserStatesListCall struct {// contains filtered or unexported fields}func (*UserStatesListCall)Context¶
func (c *UserStatesListCall) Context(ctxcontext.Context) *UserStatesListCall
Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.
func (*UserStatesListCall)Do¶
func (c *UserStatesListCall) Do(opts ...googleapi.CallOption) (*ListUserStatesResponse,error)
Do executes the "partners.userStates.list" call.Exactly one of *ListUserStatesResponse or error will be non-nil. Anynon-2xx status code is an error. Response headers are in either*ListUserStatesResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error wasbecause http.StatusNotModified was returned.
func (*UserStatesListCall)Fields¶
func (c *UserStatesListCall) Fields(s ...googleapi.Field) *UserStatesListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.
func (*UserStatesListCall)Header¶
func (c *UserStatesListCall) Header()http.Header
Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.
func (*UserStatesListCall)IfNoneMatch¶
func (c *UserStatesListCall) IfNoneMatch(entityTagstring) *UserStatesListCall
IfNoneMatch sets the optional parameter which makes the operationfail if the object's ETag matches the given value. This is useful forgetting updates only after the object has changed since the lastrequest. Use googleapi.IsNotModified to check whether the responseerror from Do is the result of In-None-Match.
func (*UserStatesListCall)RequestMetadataExperimentIds¶
func (c *UserStatesListCall) RequestMetadataExperimentIds(requestMetadataExperimentIds ...string) *UserStatesListCall
RequestMetadataExperimentIds sets the optional parameter"requestMetadata.experimentIds": Experiment IDs the current requestbelongs to.
func (*UserStatesListCall)RequestMetadataLocale¶
func (c *UserStatesListCall) RequestMetadataLocale(requestMetadataLocalestring) *UserStatesListCall
RequestMetadataLocale sets the optional parameter"requestMetadata.locale": Locale to use for the current request.
func (*UserStatesListCall)RequestMetadataPartnersSessionId¶
func (c *UserStatesListCall) RequestMetadataPartnersSessionId(requestMetadataPartnersSessionIdstring) *UserStatesListCall
RequestMetadataPartnersSessionId sets the optional parameter"requestMetadata.partnersSessionId": Google Partners session ID.
func (*UserStatesListCall)RequestMetadataTrafficSourceTrafficSourceId¶
func (c *UserStatesListCall) RequestMetadataTrafficSourceTrafficSourceId(requestMetadataTrafficSourceTrafficSourceIdstring) *UserStatesListCall
RequestMetadataTrafficSourceTrafficSourceId sets the optionalparameter "requestMetadata.trafficSource.trafficSourceId": Identifierto indicate where the traffic comes from.An identifier has multiple letters created by a team which redirectedthetraffic to us.
func (*UserStatesListCall)RequestMetadataTrafficSourceTrafficSubId¶
func (c *UserStatesListCall) RequestMetadataTrafficSourceTrafficSubId(requestMetadataTrafficSourceTrafficSubIdstring) *UserStatesListCall
RequestMetadataTrafficSourceTrafficSubId sets the optional parameter"requestMetadata.trafficSource.trafficSubId": Second level identifierto indicate where the traffic comes from.An identifier has multiple letters created by a team which redirectedthetraffic to us.
func (*UserStatesListCall)RequestMetadataUserOverridesIpAddress¶
func (c *UserStatesListCall) RequestMetadataUserOverridesIpAddress(requestMetadataUserOverridesIpAddressstring) *UserStatesListCall
RequestMetadataUserOverridesIpAddress sets the optional parameter"requestMetadata.userOverrides.ipAddress": IP address to use insteadof the user's geo-located IP address.
func (*UserStatesListCall)RequestMetadataUserOverridesUserId¶
func (c *UserStatesListCall) RequestMetadataUserOverridesUserId(requestMetadataUserOverridesUserIdstring) *UserStatesListCall
RequestMetadataUserOverridesUserId sets the optional parameter"requestMetadata.userOverrides.userId": Logged-in user ID toimpersonate instead of the user's ID.
typeUserStatesService¶
type UserStatesService struct {// contains filtered or unexported fields}funcNewUserStatesService¶
func NewUserStatesService(s *Service) *UserStatesService
func (*UserStatesService)List¶
func (r *UserStatesService) List() *UserStatesListCall
List: Lists states for current user.
typeUsersCreateCompanyRelationCall¶
type UsersCreateCompanyRelationCall struct {// contains filtered or unexported fields}func (*UsersCreateCompanyRelationCall)Context¶
func (c *UsersCreateCompanyRelationCall) Context(ctxcontext.Context) *UsersCreateCompanyRelationCall
Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.
func (*UsersCreateCompanyRelationCall)Do¶
func (c *UsersCreateCompanyRelationCall) Do(opts ...googleapi.CallOption) (*CompanyRelation,error)
Do executes the "partners.users.createCompanyRelation" call.Exactly one of *CompanyRelation or error will be non-nil. Any non-2xxstatus code is an error. Response headers are in either*CompanyRelation.ServerResponse.Header or (if a response was returnedat all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error wasbecause http.StatusNotModified was returned.
func (*UsersCreateCompanyRelationCall)Fields¶
func (c *UsersCreateCompanyRelationCall) Fields(s ...googleapi.Field) *UsersCreateCompanyRelationCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.
func (*UsersCreateCompanyRelationCall)Header¶
func (c *UsersCreateCompanyRelationCall) Header()http.Header
Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.
func (*UsersCreateCompanyRelationCall)RequestMetadataExperimentIds¶
func (c *UsersCreateCompanyRelationCall) RequestMetadataExperimentIds(requestMetadataExperimentIds ...string) *UsersCreateCompanyRelationCall
RequestMetadataExperimentIds sets the optional parameter"requestMetadata.experimentIds": Experiment IDs the current requestbelongs to.
func (*UsersCreateCompanyRelationCall)RequestMetadataLocale¶
func (c *UsersCreateCompanyRelationCall) RequestMetadataLocale(requestMetadataLocalestring) *UsersCreateCompanyRelationCall
RequestMetadataLocale sets the optional parameter"requestMetadata.locale": Locale to use for the current request.
func (*UsersCreateCompanyRelationCall)RequestMetadataPartnersSessionId¶
func (c *UsersCreateCompanyRelationCall) RequestMetadataPartnersSessionId(requestMetadataPartnersSessionIdstring) *UsersCreateCompanyRelationCall
RequestMetadataPartnersSessionId sets the optional parameter"requestMetadata.partnersSessionId": Google Partners session ID.
func (*UsersCreateCompanyRelationCall)RequestMetadataTrafficSourceTrafficSourceId¶
func (c *UsersCreateCompanyRelationCall) RequestMetadataTrafficSourceTrafficSourceId(requestMetadataTrafficSourceTrafficSourceIdstring) *UsersCreateCompanyRelationCall
RequestMetadataTrafficSourceTrafficSourceId sets the optionalparameter "requestMetadata.trafficSource.trafficSourceId": Identifierto indicate where the traffic comes from.An identifier has multiple letters created by a team which redirectedthetraffic to us.
func (*UsersCreateCompanyRelationCall)RequestMetadataTrafficSourceTrafficSubId¶
func (c *UsersCreateCompanyRelationCall) RequestMetadataTrafficSourceTrafficSubId(requestMetadataTrafficSourceTrafficSubIdstring) *UsersCreateCompanyRelationCall
RequestMetadataTrafficSourceTrafficSubId sets the optional parameter"requestMetadata.trafficSource.trafficSubId": Second level identifierto indicate where the traffic comes from.An identifier has multiple letters created by a team which redirectedthetraffic to us.
func (*UsersCreateCompanyRelationCall)RequestMetadataUserOverridesIpAddress¶
func (c *UsersCreateCompanyRelationCall) RequestMetadataUserOverridesIpAddress(requestMetadataUserOverridesIpAddressstring) *UsersCreateCompanyRelationCall
RequestMetadataUserOverridesIpAddress sets the optional parameter"requestMetadata.userOverrides.ipAddress": IP address to use insteadof the user's geo-located IP address.
func (*UsersCreateCompanyRelationCall)RequestMetadataUserOverridesUserId¶
func (c *UsersCreateCompanyRelationCall) RequestMetadataUserOverridesUserId(requestMetadataUserOverridesUserIdstring) *UsersCreateCompanyRelationCall
RequestMetadataUserOverridesUserId sets the optional parameter"requestMetadata.userOverrides.userId": Logged-in user ID toimpersonate instead of the user's ID.
typeUsersDeleteCompanyRelationCall¶
type UsersDeleteCompanyRelationCall struct {// contains filtered or unexported fields}func (*UsersDeleteCompanyRelationCall)Context¶
func (c *UsersDeleteCompanyRelationCall) Context(ctxcontext.Context) *UsersDeleteCompanyRelationCall
Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.
func (*UsersDeleteCompanyRelationCall)Do¶
func (c *UsersDeleteCompanyRelationCall) Do(opts ...googleapi.CallOption) (*Empty,error)
Do executes the "partners.users.deleteCompanyRelation" call.Exactly one of *Empty or error will be non-nil. Any non-2xx statuscode 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 tocheck whether the returned error was because http.StatusNotModifiedwas returned.
func (*UsersDeleteCompanyRelationCall)Fields¶
func (c *UsersDeleteCompanyRelationCall) Fields(s ...googleapi.Field) *UsersDeleteCompanyRelationCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.
func (*UsersDeleteCompanyRelationCall)Header¶
func (c *UsersDeleteCompanyRelationCall) Header()http.Header
Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.
func (*UsersDeleteCompanyRelationCall)RequestMetadataExperimentIds¶
func (c *UsersDeleteCompanyRelationCall) RequestMetadataExperimentIds(requestMetadataExperimentIds ...string) *UsersDeleteCompanyRelationCall
RequestMetadataExperimentIds sets the optional parameter"requestMetadata.experimentIds": Experiment IDs the current requestbelongs to.
func (*UsersDeleteCompanyRelationCall)RequestMetadataLocale¶
func (c *UsersDeleteCompanyRelationCall) RequestMetadataLocale(requestMetadataLocalestring) *UsersDeleteCompanyRelationCall
RequestMetadataLocale sets the optional parameter"requestMetadata.locale": Locale to use for the current request.
func (*UsersDeleteCompanyRelationCall)RequestMetadataPartnersSessionId¶
func (c *UsersDeleteCompanyRelationCall) RequestMetadataPartnersSessionId(requestMetadataPartnersSessionIdstring) *UsersDeleteCompanyRelationCall
RequestMetadataPartnersSessionId sets the optional parameter"requestMetadata.partnersSessionId": Google Partners session ID.
func (*UsersDeleteCompanyRelationCall)RequestMetadataTrafficSourceTrafficSourceId¶
func (c *UsersDeleteCompanyRelationCall) RequestMetadataTrafficSourceTrafficSourceId(requestMetadataTrafficSourceTrafficSourceIdstring) *UsersDeleteCompanyRelationCall
RequestMetadataTrafficSourceTrafficSourceId sets the optionalparameter "requestMetadata.trafficSource.trafficSourceId": Identifierto indicate where the traffic comes from.An identifier has multiple letters created by a team which redirectedthetraffic to us.
func (*UsersDeleteCompanyRelationCall)RequestMetadataTrafficSourceTrafficSubId¶
func (c *UsersDeleteCompanyRelationCall) RequestMetadataTrafficSourceTrafficSubId(requestMetadataTrafficSourceTrafficSubIdstring) *UsersDeleteCompanyRelationCall
RequestMetadataTrafficSourceTrafficSubId sets the optional parameter"requestMetadata.trafficSource.trafficSubId": Second level identifierto indicate where the traffic comes from.An identifier has multiple letters created by a team which redirectedthetraffic to us.
func (*UsersDeleteCompanyRelationCall)RequestMetadataUserOverridesIpAddress¶
func (c *UsersDeleteCompanyRelationCall) RequestMetadataUserOverridesIpAddress(requestMetadataUserOverridesIpAddressstring) *UsersDeleteCompanyRelationCall
RequestMetadataUserOverridesIpAddress sets the optional parameter"requestMetadata.userOverrides.ipAddress": IP address to use insteadof the user's geo-located IP address.
func (*UsersDeleteCompanyRelationCall)RequestMetadataUserOverridesUserId¶
func (c *UsersDeleteCompanyRelationCall) RequestMetadataUserOverridesUserId(requestMetadataUserOverridesUserIdstring) *UsersDeleteCompanyRelationCall
RequestMetadataUserOverridesUserId sets the optional parameter"requestMetadata.userOverrides.userId": Logged-in user ID toimpersonate instead of the user's ID.
typeUsersGetCall¶
type UsersGetCall struct {// contains filtered or unexported fields}func (*UsersGetCall)Context¶
func (c *UsersGetCall) Context(ctxcontext.Context) *UsersGetCall
Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.
func (*UsersGetCall)Do¶
func (c *UsersGetCall) Do(opts ...googleapi.CallOption) (*User,error)
Do executes the "partners.users.get" call.Exactly one of *User or error will be non-nil. Any non-2xx statuscode is an error. Response headers are in either*User.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified wasreturned.
func (*UsersGetCall)Fields¶
func (c *UsersGetCall) Fields(s ...googleapi.Field) *UsersGetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.
func (*UsersGetCall)Header¶
func (c *UsersGetCall) Header()http.Header
Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.
func (*UsersGetCall)IfNoneMatch¶
func (c *UsersGetCall) IfNoneMatch(entityTagstring) *UsersGetCall
IfNoneMatch sets the optional parameter which makes the operationfail if the object's ETag matches the given value. This is useful forgetting updates only after the object has changed since the lastrequest. Use googleapi.IsNotModified to check whether the responseerror from Do is the result of In-None-Match.
func (*UsersGetCall)RequestMetadataExperimentIds¶
func (c *UsersGetCall) RequestMetadataExperimentIds(requestMetadataExperimentIds ...string) *UsersGetCall
RequestMetadataExperimentIds sets the optional parameter"requestMetadata.experimentIds": Experiment IDs the current requestbelongs to.
func (*UsersGetCall)RequestMetadataLocale¶
func (c *UsersGetCall) RequestMetadataLocale(requestMetadataLocalestring) *UsersGetCall
RequestMetadataLocale sets the optional parameter"requestMetadata.locale": Locale to use for the current request.
func (*UsersGetCall)RequestMetadataPartnersSessionId¶
func (c *UsersGetCall) RequestMetadataPartnersSessionId(requestMetadataPartnersSessionIdstring) *UsersGetCall
RequestMetadataPartnersSessionId sets the optional parameter"requestMetadata.partnersSessionId": Google Partners session ID.
func (*UsersGetCall)RequestMetadataTrafficSourceTrafficSourceId¶
func (c *UsersGetCall) RequestMetadataTrafficSourceTrafficSourceId(requestMetadataTrafficSourceTrafficSourceIdstring) *UsersGetCall
RequestMetadataTrafficSourceTrafficSourceId sets the optionalparameter "requestMetadata.trafficSource.trafficSourceId": Identifierto indicate where the traffic comes from.An identifier has multiple letters created by a team which redirectedthetraffic to us.
func (*UsersGetCall)RequestMetadataTrafficSourceTrafficSubId¶
func (c *UsersGetCall) RequestMetadataTrafficSourceTrafficSubId(requestMetadataTrafficSourceTrafficSubIdstring) *UsersGetCall
RequestMetadataTrafficSourceTrafficSubId sets the optional parameter"requestMetadata.trafficSource.trafficSubId": Second level identifierto indicate where the traffic comes from.An identifier has multiple letters created by a team which redirectedthetraffic to us.
func (*UsersGetCall)RequestMetadataUserOverridesIpAddress¶
func (c *UsersGetCall) RequestMetadataUserOverridesIpAddress(requestMetadataUserOverridesIpAddressstring) *UsersGetCall
RequestMetadataUserOverridesIpAddress sets the optional parameter"requestMetadata.userOverrides.ipAddress": IP address to use insteadof the user's geo-located IP address.
func (*UsersGetCall)RequestMetadataUserOverridesUserId¶
func (c *UsersGetCall) RequestMetadataUserOverridesUserId(requestMetadataUserOverridesUserIdstring) *UsersGetCall
RequestMetadataUserOverridesUserId sets the optional parameter"requestMetadata.userOverrides.userId": Logged-in user ID toimpersonate instead of the user's ID.
func (*UsersGetCall)UserView¶
func (c *UsersGetCall) UserView(userViewstring) *UsersGetCall
UserView sets the optional parameter "userView": Specifies what partsof the user information to return.
Possible values:
"BASIC""PROFILE""PUBLIC_PROFILE"
typeUsersService¶
type UsersService struct {// contains filtered or unexported fields}funcNewUsersService¶
func NewUsersService(s *Service) *UsersService
func (*UsersService)CreateCompanyRelation¶
func (r *UsersService) CreateCompanyRelation(userIdstring, companyrelation *CompanyRelation) *UsersCreateCompanyRelationCall
CreateCompanyRelation: Creates a user's company relation. Affiliatesthe user to a company.
func (*UsersService)DeleteCompanyRelation¶
func (r *UsersService) DeleteCompanyRelation(userIdstring) *UsersDeleteCompanyRelationCall
DeleteCompanyRelation: Deletes a user's company relation.Unaffiliaites the user from a company.
func (*UsersService)UpdateProfile¶
func (r *UsersService) UpdateProfile(userprofile *UserProfile) *UsersUpdateProfileCall
UpdateProfile: Updates a user's profile. A user can only update theirown profile andshould only be called within the context of a logged in user.
typeUsersUpdateProfileCall¶
type UsersUpdateProfileCall struct {// contains filtered or unexported fields}func (*UsersUpdateProfileCall)Context¶
func (c *UsersUpdateProfileCall) Context(ctxcontext.Context) *UsersUpdateProfileCall
Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.
func (*UsersUpdateProfileCall)Do¶
func (c *UsersUpdateProfileCall) Do(opts ...googleapi.CallOption) (*UserProfile,error)
Do executes the "partners.users.updateProfile" call.Exactly one of *UserProfile or error will be non-nil. Any non-2xxstatus code is an error. Response headers are in either*UserProfile.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModifiedto check whether the returned error was becausehttp.StatusNotModified was returned.
func (*UsersUpdateProfileCall)Fields¶
func (c *UsersUpdateProfileCall) Fields(s ...googleapi.Field) *UsersUpdateProfileCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.
func (*UsersUpdateProfileCall)Header¶
func (c *UsersUpdateProfileCall) Header()http.Header
Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.
func (*UsersUpdateProfileCall)RequestMetadataExperimentIds¶
func (c *UsersUpdateProfileCall) RequestMetadataExperimentIds(requestMetadataExperimentIds ...string) *UsersUpdateProfileCall
RequestMetadataExperimentIds sets the optional parameter"requestMetadata.experimentIds": Experiment IDs the current requestbelongs to.
func (*UsersUpdateProfileCall)RequestMetadataLocale¶
func (c *UsersUpdateProfileCall) RequestMetadataLocale(requestMetadataLocalestring) *UsersUpdateProfileCall
RequestMetadataLocale sets the optional parameter"requestMetadata.locale": Locale to use for the current request.
func (*UsersUpdateProfileCall)RequestMetadataPartnersSessionId¶
func (c *UsersUpdateProfileCall) RequestMetadataPartnersSessionId(requestMetadataPartnersSessionIdstring) *UsersUpdateProfileCall
RequestMetadataPartnersSessionId sets the optional parameter"requestMetadata.partnersSessionId": Google Partners session ID.
func (*UsersUpdateProfileCall)RequestMetadataTrafficSourceTrafficSourceId¶
func (c *UsersUpdateProfileCall) RequestMetadataTrafficSourceTrafficSourceId(requestMetadataTrafficSourceTrafficSourceIdstring) *UsersUpdateProfileCall
RequestMetadataTrafficSourceTrafficSourceId sets the optionalparameter "requestMetadata.trafficSource.trafficSourceId": Identifierto indicate where the traffic comes from.An identifier has multiple letters created by a team which redirectedthetraffic to us.
func (*UsersUpdateProfileCall)RequestMetadataTrafficSourceTrafficSubId¶
func (c *UsersUpdateProfileCall) RequestMetadataTrafficSourceTrafficSubId(requestMetadataTrafficSourceTrafficSubIdstring) *UsersUpdateProfileCall
RequestMetadataTrafficSourceTrafficSubId sets the optional parameter"requestMetadata.trafficSource.trafficSubId": Second level identifierto indicate where the traffic comes from.An identifier has multiple letters created by a team which redirectedthetraffic to us.
func (*UsersUpdateProfileCall)RequestMetadataUserOverridesIpAddress¶
func (c *UsersUpdateProfileCall) RequestMetadataUserOverridesIpAddress(requestMetadataUserOverridesIpAddressstring) *UsersUpdateProfileCall
RequestMetadataUserOverridesIpAddress sets the optional parameter"requestMetadata.userOverrides.ipAddress": IP address to use insteadof the user's geo-located IP address.
func (*UsersUpdateProfileCall)RequestMetadataUserOverridesUserId¶
func (c *UsersUpdateProfileCall) RequestMetadataUserOverridesUserId(requestMetadataUserOverridesUserIdstring) *UsersUpdateProfileCall
RequestMetadataUserOverridesUserId sets the optional parameter"requestMetadata.userOverrides.userId": Logged-in user ID toimpersonate instead of the user's ID.
typeV2GetPartnersstatusCall¶
type V2GetPartnersstatusCall struct {// contains filtered or unexported fields}func (*V2GetPartnersstatusCall)Context¶
func (c *V2GetPartnersstatusCall) Context(ctxcontext.Context) *V2GetPartnersstatusCall
Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.
func (*V2GetPartnersstatusCall)Do¶
func (c *V2GetPartnersstatusCall) Do(opts ...googleapi.CallOption) (*GetPartnersStatusResponse,error)
Do executes the "partners.getPartnersstatus" call.Exactly one of *GetPartnersStatusResponse or error will be non-nil.Any non-2xx status code is an error. Response headers are in either*GetPartnersStatusResponse.ServerResponse.Header or (if a responsewas returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error wasbecause http.StatusNotModified was returned.
func (*V2GetPartnersstatusCall)Fields¶
func (c *V2GetPartnersstatusCall) Fields(s ...googleapi.Field) *V2GetPartnersstatusCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.
func (*V2GetPartnersstatusCall)Header¶
func (c *V2GetPartnersstatusCall) Header()http.Header
Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.
func (*V2GetPartnersstatusCall)IfNoneMatch¶
func (c *V2GetPartnersstatusCall) IfNoneMatch(entityTagstring) *V2GetPartnersstatusCall
IfNoneMatch sets the optional parameter which makes the operationfail if the object's ETag matches the given value. This is useful forgetting updates only after the object has changed since the lastrequest. Use googleapi.IsNotModified to check whether the responseerror from Do is the result of In-None-Match.
func (*V2GetPartnersstatusCall)RequestMetadataExperimentIds¶
func (c *V2GetPartnersstatusCall) RequestMetadataExperimentIds(requestMetadataExperimentIds ...string) *V2GetPartnersstatusCall
RequestMetadataExperimentIds sets the optional parameter"requestMetadata.experimentIds": Experiment IDs the current requestbelongs to.
func (*V2GetPartnersstatusCall)RequestMetadataLocale¶
func (c *V2GetPartnersstatusCall) RequestMetadataLocale(requestMetadataLocalestring) *V2GetPartnersstatusCall
RequestMetadataLocale sets the optional parameter"requestMetadata.locale": Locale to use for the current request.
func (*V2GetPartnersstatusCall)RequestMetadataPartnersSessionId¶
func (c *V2GetPartnersstatusCall) RequestMetadataPartnersSessionId(requestMetadataPartnersSessionIdstring) *V2GetPartnersstatusCall
RequestMetadataPartnersSessionId sets the optional parameter"requestMetadata.partnersSessionId": Google Partners session ID.
func (*V2GetPartnersstatusCall)RequestMetadataTrafficSourceTrafficSourceId¶
func (c *V2GetPartnersstatusCall) RequestMetadataTrafficSourceTrafficSourceId(requestMetadataTrafficSourceTrafficSourceIdstring) *V2GetPartnersstatusCall
RequestMetadataTrafficSourceTrafficSourceId sets the optionalparameter "requestMetadata.trafficSource.trafficSourceId": Identifierto indicate where the traffic comes from.An identifier has multiple letters created by a team which redirectedthetraffic to us.
func (*V2GetPartnersstatusCall)RequestMetadataTrafficSourceTrafficSubId¶
func (c *V2GetPartnersstatusCall) RequestMetadataTrafficSourceTrafficSubId(requestMetadataTrafficSourceTrafficSubIdstring) *V2GetPartnersstatusCall
RequestMetadataTrafficSourceTrafficSubId sets the optional parameter"requestMetadata.trafficSource.trafficSubId": Second level identifierto indicate where the traffic comes from.An identifier has multiple letters created by a team which redirectedthetraffic to us.
func (*V2GetPartnersstatusCall)RequestMetadataUserOverridesIpAddress¶
func (c *V2GetPartnersstatusCall) RequestMetadataUserOverridesIpAddress(requestMetadataUserOverridesIpAddressstring) *V2GetPartnersstatusCall
RequestMetadataUserOverridesIpAddress sets the optional parameter"requestMetadata.userOverrides.ipAddress": IP address to use insteadof the user's geo-located IP address.
func (*V2GetPartnersstatusCall)RequestMetadataUserOverridesUserId¶
func (c *V2GetPartnersstatusCall) RequestMetadataUserOverridesUserId(requestMetadataUserOverridesUserIdstring) *V2GetPartnersstatusCall
RequestMetadataUserOverridesUserId sets the optional parameter"requestMetadata.userOverrides.userId": Logged-in user ID toimpersonate instead of the user's ID.
typeV2Service¶
type V2Service struct {// contains filtered or unexported fields}funcNewV2Service¶
func (*V2Service)GetPartnersstatus¶
func (r *V2Service) GetPartnersstatus() *V2GetPartnersstatusCall
GetPartnersstatus: Gets Partners Status of the logged in user'sagency.Should only be called if the logged in user is the admin of theagency.
func (*V2Service)UpdateCompanies¶
func (r *V2Service) UpdateCompanies(company *Company) *V2UpdateCompaniesCall
UpdateCompanies: Update company.Should only be called within the context of an authorized logged inuser.
func (*V2Service)UpdateLeads¶
func (r *V2Service) UpdateLeads(lead *Lead) *V2UpdateLeadsCall
UpdateLeads: Updates the specified lead.
typeV2UpdateCompaniesCall¶
type V2UpdateCompaniesCall struct {// contains filtered or unexported fields}func (*V2UpdateCompaniesCall)Context¶
func (c *V2UpdateCompaniesCall) Context(ctxcontext.Context) *V2UpdateCompaniesCall
Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.
func (*V2UpdateCompaniesCall)Do¶
func (c *V2UpdateCompaniesCall) Do(opts ...googleapi.CallOption) (*Company,error)
Do executes the "partners.updateCompanies" call.Exactly one of *Company or error will be non-nil. Any non-2xx statuscode is an error. Response headers are in either*Company.ServerResponse.Header or (if a response was returned at all)in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModifiedwas returned.
func (*V2UpdateCompaniesCall)Fields¶
func (c *V2UpdateCompaniesCall) Fields(s ...googleapi.Field) *V2UpdateCompaniesCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.
func (*V2UpdateCompaniesCall)Header¶
func (c *V2UpdateCompaniesCall) Header()http.Header
Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.
func (*V2UpdateCompaniesCall)RequestMetadataExperimentIds¶
func (c *V2UpdateCompaniesCall) RequestMetadataExperimentIds(requestMetadataExperimentIds ...string) *V2UpdateCompaniesCall
RequestMetadataExperimentIds sets the optional parameter"requestMetadata.experimentIds": Experiment IDs the current requestbelongs to.
func (*V2UpdateCompaniesCall)RequestMetadataLocale¶
func (c *V2UpdateCompaniesCall) RequestMetadataLocale(requestMetadataLocalestring) *V2UpdateCompaniesCall
RequestMetadataLocale sets the optional parameter"requestMetadata.locale": Locale to use for the current request.
func (*V2UpdateCompaniesCall)RequestMetadataPartnersSessionId¶
func (c *V2UpdateCompaniesCall) RequestMetadataPartnersSessionId(requestMetadataPartnersSessionIdstring) *V2UpdateCompaniesCall
RequestMetadataPartnersSessionId sets the optional parameter"requestMetadata.partnersSessionId": Google Partners session ID.
func (*V2UpdateCompaniesCall)RequestMetadataTrafficSourceTrafficSourceId¶
func (c *V2UpdateCompaniesCall) RequestMetadataTrafficSourceTrafficSourceId(requestMetadataTrafficSourceTrafficSourceIdstring) *V2UpdateCompaniesCall
RequestMetadataTrafficSourceTrafficSourceId sets the optionalparameter "requestMetadata.trafficSource.trafficSourceId": Identifierto indicate where the traffic comes from.An identifier has multiple letters created by a team which redirectedthetraffic to us.
func (*V2UpdateCompaniesCall)RequestMetadataTrafficSourceTrafficSubId¶
func (c *V2UpdateCompaniesCall) RequestMetadataTrafficSourceTrafficSubId(requestMetadataTrafficSourceTrafficSubIdstring) *V2UpdateCompaniesCall
RequestMetadataTrafficSourceTrafficSubId sets the optional parameter"requestMetadata.trafficSource.trafficSubId": Second level identifierto indicate where the traffic comes from.An identifier has multiple letters created by a team which redirectedthetraffic to us.
func (*V2UpdateCompaniesCall)RequestMetadataUserOverridesIpAddress¶
func (c *V2UpdateCompaniesCall) RequestMetadataUserOverridesIpAddress(requestMetadataUserOverridesIpAddressstring) *V2UpdateCompaniesCall
RequestMetadataUserOverridesIpAddress sets the optional parameter"requestMetadata.userOverrides.ipAddress": IP address to use insteadof the user's geo-located IP address.
func (*V2UpdateCompaniesCall)RequestMetadataUserOverridesUserId¶
func (c *V2UpdateCompaniesCall) RequestMetadataUserOverridesUserId(requestMetadataUserOverridesUserIdstring) *V2UpdateCompaniesCall
RequestMetadataUserOverridesUserId sets the optional parameter"requestMetadata.userOverrides.userId": Logged-in user ID toimpersonate instead of the user's ID.
func (*V2UpdateCompaniesCall)UpdateMask¶
func (c *V2UpdateCompaniesCall) UpdateMask(updateMaskstring) *V2UpdateCompaniesCall
UpdateMask sets the optional parameter "updateMask": Standard fieldmask for the set of fields to be updated.Required with at least 1 value in FieldMask's paths.
typeV2UpdateLeadsCall¶
type V2UpdateLeadsCall struct {// contains filtered or unexported fields}func (*V2UpdateLeadsCall)Context¶
func (c *V2UpdateLeadsCall) Context(ctxcontext.Context) *V2UpdateLeadsCall
Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.
func (*V2UpdateLeadsCall)Do¶
func (c *V2UpdateLeadsCall) Do(opts ...googleapi.CallOption) (*Lead,error)
Do executes the "partners.updateLeads" call.Exactly one of *Lead or error will be non-nil. Any non-2xx statuscode is an error. Response headers are in either*Lead.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified wasreturned.
func (*V2UpdateLeadsCall)Fields¶
func (c *V2UpdateLeadsCall) Fields(s ...googleapi.Field) *V2UpdateLeadsCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.
func (*V2UpdateLeadsCall)Header¶
func (c *V2UpdateLeadsCall) Header()http.Header
Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.
func (*V2UpdateLeadsCall)RequestMetadataExperimentIds¶
func (c *V2UpdateLeadsCall) RequestMetadataExperimentIds(requestMetadataExperimentIds ...string) *V2UpdateLeadsCall
RequestMetadataExperimentIds sets the optional parameter"requestMetadata.experimentIds": Experiment IDs the current requestbelongs to.
func (*V2UpdateLeadsCall)RequestMetadataLocale¶
func (c *V2UpdateLeadsCall) RequestMetadataLocale(requestMetadataLocalestring) *V2UpdateLeadsCall
RequestMetadataLocale sets the optional parameter"requestMetadata.locale": Locale to use for the current request.
func (*V2UpdateLeadsCall)RequestMetadataPartnersSessionId¶
func (c *V2UpdateLeadsCall) RequestMetadataPartnersSessionId(requestMetadataPartnersSessionIdstring) *V2UpdateLeadsCall
RequestMetadataPartnersSessionId sets the optional parameter"requestMetadata.partnersSessionId": Google Partners session ID.
func (*V2UpdateLeadsCall)RequestMetadataTrafficSourceTrafficSourceId¶
func (c *V2UpdateLeadsCall) RequestMetadataTrafficSourceTrafficSourceId(requestMetadataTrafficSourceTrafficSourceIdstring) *V2UpdateLeadsCall
RequestMetadataTrafficSourceTrafficSourceId sets the optionalparameter "requestMetadata.trafficSource.trafficSourceId": Identifierto indicate where the traffic comes from.An identifier has multiple letters created by a team which redirectedthetraffic to us.
func (*V2UpdateLeadsCall)RequestMetadataTrafficSourceTrafficSubId¶
func (c *V2UpdateLeadsCall) RequestMetadataTrafficSourceTrafficSubId(requestMetadataTrafficSourceTrafficSubIdstring) *V2UpdateLeadsCall
RequestMetadataTrafficSourceTrafficSubId sets the optional parameter"requestMetadata.trafficSource.trafficSubId": Second level identifierto indicate where the traffic comes from.An identifier has multiple letters created by a team which redirectedthetraffic to us.
func (*V2UpdateLeadsCall)RequestMetadataUserOverridesIpAddress¶
func (c *V2UpdateLeadsCall) RequestMetadataUserOverridesIpAddress(requestMetadataUserOverridesIpAddressstring) *V2UpdateLeadsCall
RequestMetadataUserOverridesIpAddress sets the optional parameter"requestMetadata.userOverrides.ipAddress": IP address to use insteadof the user's geo-located IP address.
func (*V2UpdateLeadsCall)RequestMetadataUserOverridesUserId¶
func (c *V2UpdateLeadsCall) RequestMetadataUserOverridesUserId(requestMetadataUserOverridesUserIdstring) *V2UpdateLeadsCall
RequestMetadataUserOverridesUserId sets the optional parameter"requestMetadata.userOverrides.userId": Logged-in user ID toimpersonate instead of the user's ID.
func (*V2UpdateLeadsCall)UpdateMask¶
func (c *V2UpdateLeadsCall) UpdateMask(updateMaskstring) *V2UpdateLeadsCall
UpdateMask sets the optional parameter "updateMask": Standard fieldmask for the set of fields to be updated.Required with at least 1 value in FieldMask's paths.Only `state` and `adwords_customer_id` are currently supported.