Documentation ¶
Index ¶
- type ApiError
- type ApiException
- type ApplicationException
- type AttributeFieldMapping
- type AuthenticationError
- type AuthenticationErrorReason
- type AuthorizationError
- type AuthorizationErrorReason
- type ClientTermsError
- type ClientTermsErrorReason
- type DatabaseError
- type DatabaseErrorReason
- type DateRange
- type DistinctError
- type DistinctErrorReason
- type EntityNotFound
- type EntityNotFoundReason
- type FeedMapping
- type FeedMappingError
- type FeedMappingErrorReason
- type FeedMappingOperation
- type FeedMappingPage
- type FeedMappingReturnValue
- type FeedMappingServiceInterface
- type FeedMappingStatus
- type FieldPathElement
- type Get
- type GetResponse
- type IdError
- type IdErrorReason
- type InternalApiError
- type InternalApiErrorReason
- type ListReturnValue
- type Mutate
- type MutateResponse
- type NotEmptyError
- type NotEmptyErrorReason
- type NullStatsPage
- type Operation
- type OperationAccessDenied
- type OperationAccessDeniedReason
- type Operator
- type OperatorError
- type OperatorErrorReason
- type OrderBy
- type Page
- type Paging
- type Predicate
- type PredicateOperator
- type Query
- type QueryError
- type QueryErrorReason
- type QueryResponse
- type QuotaCheckError
- type QuotaCheckErrorReason
- type RangeError
- type RangeErrorReason
- type RateExceededError
- type RateExceededErrorReason
- type ReadOnlyError
- type ReadOnlyErrorReason
- type RejectedError
- type RejectedErrorReason
- type RequestError
- type RequestErrorReason
- type RequiredError
- type RequiredErrorReason
- type Selector
- type SelectorError
- type SelectorErrorReason
- type SizeLimitError
- type SizeLimitErrorReason
- type SoapHeader
- type SoapResponseHeader
- type SortOrder
- type StringFormatError
- type StringFormatErrorReason
- type StringLengthError
- type StringLengthErrorReason
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiError ¶
type ApiError struct { // // The OGNL field path to identify cause of error. // FieldPath string `xml:"fieldPath,omitempty"` // // A parsed copy of the field path. For example, the field path "operations[1].operand" // corresponds to this list: {FieldPathElement(field = "operations", index = 1), // FieldPathElement(field = "operand", index = null)}. // FieldPathElements []*FieldPathElement `xml:"fieldPathElements,omitempty"` // // The data that caused the error. // Trigger string `xml:"trigger,omitempty"` // // A simple string representation of the error and reason. // ErrorString string `xml:"errorString,omitempty"` // // Indicates that this instance is a subtype of ApiError. // Although this field is returned in the response, it is ignored on input // and cannot be selected. Specify xsi:type instead. // ApiErrorType string `xml:"ApiError.Type,omitempty"` }
type ApiException ¶
type ApiException struct { XMLName xml.Name `xml:"https://adwords.google.com/api/adwords/cm/v201809 ApiExceptionFault"` *ApplicationException // // List of errors. // Errors []*ApiError `xml:"errors,omitempty"` }
type ApplicationException ¶
type ApplicationException struct { // // Error message. // Message string `xml:"message,omitempty"` // // Indicates that this instance is a subtype of ApplicationException. // Although this field is returned in the response, it is ignored on input // and cannot be selected. Specify xsi:type instead. // ApplicationExceptionType string `xml:"ApplicationException.Type,omitempty"` }
type AttributeFieldMapping ¶
type AttributeFieldMapping struct { // // The feed attribute that this mapping references. // <span class="constraint Required">This field is required and should not be {@code null}.</span> // FeedAttributeId int64 `xml:"feedAttributeId,omitempty"` // // The constant placeholder field that this mapping references. // <span class="constraint Required">This field is required and should not be {@code null}.</span> // FieldId int32 `xml:"fieldId,omitempty"` }
type AuthenticationError ¶
type AuthenticationError struct { *ApiError // // The error reason represented by an enum. // Reason *AuthenticationErrorReason `xml:"reason,omitempty"` }
type AuthenticationErrorReason ¶
type AuthenticationErrorReason string
The single reason for the authentication failure.
const ( // // Authentication of the request failed. // AuthenticationErrorReasonAUTHENTICATION_FAILED AuthenticationErrorReason = "AUTHENTICATION_FAILED" // // Client Customer Id is required if CustomerIdMode is set to CLIENT_EXTERNAL_CUSTOMER_ID. // Starting version V201409 ClientCustomerId will be required for all requests except // for {@link CustomerService#get} // AuthenticationErrorReasonCLIENT_CUSTOMER_ID_IS_REQUIRED AuthenticationErrorReason = "CLIENT_CUSTOMER_ID_IS_REQUIRED" // // Client Email is required if CustomerIdMode is set to CLIENT_EXTERNAL_EMAIL_FIELD. // AuthenticationErrorReasonCLIENT_EMAIL_REQUIRED AuthenticationErrorReason = "CLIENT_EMAIL_REQUIRED" // // Client customer Id is not a number. // AuthenticationErrorReasonCLIENT_CUSTOMER_ID_INVALID AuthenticationErrorReason = "CLIENT_CUSTOMER_ID_INVALID" // // Client customer Id is not a number. // AuthenticationErrorReasonCLIENT_EMAIL_INVALID AuthenticationErrorReason = "CLIENT_EMAIL_INVALID" // // Client email is not a valid customer email. // AuthenticationErrorReasonCLIENT_EMAIL_FAILED_TO_AUTHENTICATE AuthenticationErrorReason = "CLIENT_EMAIL_FAILED_TO_AUTHENTICATE" // // No customer found for the customer id provided in the header. // AuthenticationErrorReasonCUSTOMER_NOT_FOUND AuthenticationErrorReason = "CUSTOMER_NOT_FOUND" // // Client's Google Account is deleted. // AuthenticationErrorReasonGOOGLE_ACCOUNT_DELETED AuthenticationErrorReason = "GOOGLE_ACCOUNT_DELETED" // // Google account login token in the cookie is invalid. // AuthenticationErrorReasonGOOGLE_ACCOUNT_COOKIE_INVALID AuthenticationErrorReason = "GOOGLE_ACCOUNT_COOKIE_INVALID" // // problem occurred during Google account authentication. // AuthenticationErrorReasonFAILED_TO_AUTHENTICATE_GOOGLE_ACCOUNT AuthenticationErrorReason = "FAILED_TO_AUTHENTICATE_GOOGLE_ACCOUNT" // // The user in the google account login token does not match the UserId in the cookie. // AuthenticationErrorReasonGOOGLE_ACCOUNT_USER_AND_ADS_USER_MISMATCH AuthenticationErrorReason = "GOOGLE_ACCOUNT_USER_AND_ADS_USER_MISMATCH" // // Login cookie is required for authentication. // AuthenticationErrorReasonLOGIN_COOKIE_REQUIRED AuthenticationErrorReason = "LOGIN_COOKIE_REQUIRED" // // User in the cookie is not a valid Ads user. // AuthenticationErrorReasonNOT_ADS_USER AuthenticationErrorReason = "NOT_ADS_USER" // // Oauth token in the header is not valid. // AuthenticationErrorReasonOAUTH_TOKEN_INVALID AuthenticationErrorReason = "OAUTH_TOKEN_INVALID" // // Oauth token in the header has expired. // AuthenticationErrorReasonOAUTH_TOKEN_EXPIRED AuthenticationErrorReason = "OAUTH_TOKEN_EXPIRED" // // Oauth token in the header has been disabled. // AuthenticationErrorReasonOAUTH_TOKEN_DISABLED AuthenticationErrorReason = "OAUTH_TOKEN_DISABLED" // // Oauth token in the header has been revoked. // AuthenticationErrorReasonOAUTH_TOKEN_REVOKED AuthenticationErrorReason = "OAUTH_TOKEN_REVOKED" // // Oauth token HTTP header is malformed. // AuthenticationErrorReasonOAUTH_TOKEN_HEADER_INVALID AuthenticationErrorReason = "OAUTH_TOKEN_HEADER_INVALID" // // Login cookie is not valid. // AuthenticationErrorReasonLOGIN_COOKIE_INVALID AuthenticationErrorReason = "LOGIN_COOKIE_INVALID" // // Failed to decrypt the login cookie. // AuthenticationErrorReasonFAILED_TO_RETRIEVE_LOGIN_COOKIE AuthenticationErrorReason = "FAILED_TO_RETRIEVE_LOGIN_COOKIE" // // User Id in the header is not a valid id. // AuthenticationErrorReasonUSER_ID_INVALID AuthenticationErrorReason = "USER_ID_INVALID" )
type AuthorizationError ¶
type AuthorizationError struct { *ApiError // // The error reason represented by an enum. // Reason *AuthorizationErrorReason `xml:"reason,omitempty"` }
type AuthorizationErrorReason ¶
type AuthorizationErrorReason string
The reasons for the authorization error.
const ( // // Could not complete authorization due to an internal problem. // AuthorizationErrorReasonUNABLE_TO_AUTHORIZE AuthorizationErrorReason = "UNABLE_TO_AUTHORIZE" // // Customer has no AdWords account. // AuthorizationErrorReasonNO_ADWORDS_ACCOUNT_FOR_CUSTOMER AuthorizationErrorReason = "NO_ADWORDS_ACCOUNT_FOR_CUSTOMER" // // User doesn't have permission to access customer. // AuthorizationErrorReasonUSER_PERMISSION_DENIED AuthorizationErrorReason = "USER_PERMISSION_DENIED" // // Effective user doesn't have permission to access this customer. // AuthorizationErrorReasonEFFECTIVE_USER_PERMISSION_DENIED AuthorizationErrorReason = "EFFECTIVE_USER_PERMISSION_DENIED" // // Access denied since the customer is not active. // AuthorizationErrorReasonCUSTOMER_NOT_ACTIVE AuthorizationErrorReason = "CUSTOMER_NOT_ACTIVE" // // User has read-only permission cannot mutate. // AuthorizationErrorReasonUSER_HAS_READONLY_PERMISSION AuthorizationErrorReason = "USER_HAS_READONLY_PERMISSION" // // No customer found. // AuthorizationErrorReasonNO_CUSTOMER_FOUND AuthorizationErrorReason = "NO_CUSTOMER_FOUND" // // Developer doesn't have permission to access service. // AuthorizationErrorReasonSERVICE_ACCESS_DENIED AuthorizationErrorReason = "SERVICE_ACCESS_DENIED" // // The customer has a policy to enforce 2-Step Verification, but the user is not enrolled. // AuthorizationErrorReasonTWO_STEP_VERIFICATION_NOT_ENROLLED AuthorizationErrorReason = "TWO_STEP_VERIFICATION_NOT_ENROLLED" // // The customer has a policy to enforce enrollment in the Advanced Protection Program, but // the user is not enrolled. // AuthorizationErrorReasonADVANCED_PROTECTION_NOT_ENROLLED AuthorizationErrorReason = "ADVANCED_PROTECTION_NOT_ENROLLED" )
type ClientTermsError ¶
type ClientTermsError struct { *ApiError Reason *ClientTermsErrorReason `xml:"reason,omitempty"` }
type ClientTermsErrorReason ¶
type ClientTermsErrorReason string
Enums for the various reasons an error can be thrown as a result of ClientTerms violation.
const ( // // Customer has not agreed to the latest AdWords Terms & Conditions // ClientTermsErrorReasonINCOMPLETE_SIGNUP_CURRENT_ADWORDS_TNC_NOT_AGREED ClientTermsErrorReason = "INCOMPLETE_SIGNUP_CURRENT_ADWORDS_TNC_NOT_AGREED" )
type DatabaseError ¶
type DatabaseError struct { *ApiError // // The error reason represented by an enum. // Reason *DatabaseErrorReason `xml:"reason,omitempty"` }
type DatabaseErrorReason ¶
type DatabaseErrorReason string
The reasons for the database error.
const ( // // A concurrency problem occurred as two threads were attempting to modify same object. // DatabaseErrorReasonCONCURRENT_MODIFICATION DatabaseErrorReason = "CONCURRENT_MODIFICATION" // // The permission was denied to access an object. // DatabaseErrorReasonPERMISSION_DENIED DatabaseErrorReason = "PERMISSION_DENIED" // // The user's access to an object has been prohibited. // DatabaseErrorReasonACCESS_PROHIBITED DatabaseErrorReason = "ACCESS_PROHIBITED" // // Requested campaign belongs to a product that is not supported by the api. // DatabaseErrorReasonCAMPAIGN_PRODUCT_NOT_SUPPORTED DatabaseErrorReason = "CAMPAIGN_PRODUCT_NOT_SUPPORTED" // // a duplicate key was detected upon insertion // DatabaseErrorReasonDUPLICATE_KEY DatabaseErrorReason = "DUPLICATE_KEY" // // a database error has occurred // DatabaseErrorReasonDATABASE_ERROR DatabaseErrorReason = "DATABASE_ERROR" // // an unknown error has occurred // DatabaseErrorReasonUNKNOWN DatabaseErrorReason = "UNKNOWN" )
type DistinctError ¶
type DistinctError struct { *ApiError // // The error reason represented by an enum. // Reason *DistinctErrorReason `xml:"reason,omitempty"` }
type DistinctErrorReason ¶
type DistinctErrorReason string
The reasons for the validation error.
const ( DistinctErrorReasonDUPLICATE_ELEMENT DistinctErrorReason = "DUPLICATE_ELEMENT" DistinctErrorReasonDUPLICATE_TYPE DistinctErrorReason = "DUPLICATE_TYPE" )
type EntityNotFound ¶
type EntityNotFound struct { *ApiError // // Reason for this error. // Reason *EntityNotFoundReason `xml:"reason,omitempty"` }
type EntityNotFoundReason ¶
type EntityNotFoundReason string
const ( // // The specified id refered to an entity which either doesn't exist or is not accessible to the // customer. e.g. campaign belongs to another customer. // EntityNotFoundReasonINVALID_ID EntityNotFoundReason = "INVALID_ID" )
type FeedMapping ¶
type FeedMapping struct { // // ID of this FeedMapping. // <span class="constraint Selectable">This field can be selected using the value "FeedMappingId".</span><span class="constraint Filterable">This field can be filtered on.</span> // <span class="constraint ReadOnly">This field is read only and will be ignored when sent to the API for the following {@link Operator}s: ADD.</span> // <span class="constraint Required">This field is required and should not be {@code null} when it is contained within {@link Operator}s : REMOVE.</span> // FeedMappingId int64 `xml:"feedMappingId,omitempty"` // // ID of the Feed that is mapped by this mapping. // <span class="constraint Selectable">This field can be selected using the value "FeedId".</span><span class="constraint Filterable">This field can be filtered on.</span> // <span class="constraint Required">This field is required and should not be {@code null}.</span> // FeedId int64 `xml:"feedId,omitempty"` // // The placeholder type for this mapping. // <span class="constraint Selectable">This field can be selected using the value "PlaceholderType".</span><span class="constraint Filterable">This field can be filtered on.</span> // PlaceholderType int32 `xml:"placeholderType,omitempty"` // // Status of the mapping. // <span class="constraint Selectable">This field can be selected using the value "Status".</span><span class="constraint Filterable">This field can be filtered on.</span> // <span class="constraint ReadOnly">This field is read only and will be ignored when sent to the API.</span> // Status *FeedMappingStatus `xml:"status,omitempty"` // // The list of feed attributes to placeholder fields mappings. // <span class="constraint Selectable">This field can be selected using the value "AttributeFieldMappings".</span> // <span class="constraint Required">This field is required and should not be {@code null} when it is contained within {@link Operator}s : ADD.</span> // AttributeFieldMappings []*AttributeFieldMapping `xml:"attributeFieldMappings,omitempty"` // // The criterion type for this mapping. This field is mutually exclusive with placeholderType. // <span class="constraint Selectable">This field can be selected using the value "CriterionType".</span><span class="constraint Filterable">This field can be filtered on.</span> // CriterionType int32 `xml:"criterionType,omitempty"` }
type FeedMappingError ¶
type FeedMappingError struct { *ApiError // // The cause of the error. // Reason *FeedMappingErrorReason `xml:"reason,omitempty"` }
type FeedMappingErrorReason ¶
type FeedMappingErrorReason string
const ( // // The given placeholder field does not exist. // FeedMappingErrorReasonINVALID_PLACEHOLDER_FIELD FeedMappingErrorReason = "INVALID_PLACEHOLDER_FIELD" // // The given criterion field does not exist. // FeedMappingErrorReasonINVALID_CRITERION_FIELD FeedMappingErrorReason = "INVALID_CRITERION_FIELD" // // The given placeholder type does not exist. // FeedMappingErrorReasonINVALID_PLACEHOLDER_TYPE FeedMappingErrorReason = "INVALID_PLACEHOLDER_TYPE" // // The given criterion type does not exist. // FeedMappingErrorReasonINVALID_CRITERION_TYPE FeedMappingErrorReason = "INVALID_CRITERION_TYPE" // // Cannot specify both placeholder type and criterion type. // FeedMappingErrorReasonCANNOT_SET_PLACEHOLDER_TYPE_AND_CRITERION_TYPE FeedMappingErrorReason = "CANNOT_SET_PLACEHOLDER_TYPE_AND_CRITERION_TYPE" // // A feed mapping must contain at least one attribute field mapping. // FeedMappingErrorReasonNO_ATTRIBUTE_FIELD_MAPPINGS FeedMappingErrorReason = "NO_ATTRIBUTE_FIELD_MAPPINGS" // // The type of the feed attribute referenced in the attribute field mapping must match // the type of the placeholder field. // FeedMappingErrorReasonFEED_ATTRIBUTE_TYPE_MISMATCH FeedMappingErrorReason = "FEED_ATTRIBUTE_TYPE_MISMATCH" // // A feed mapping for a system generated feed cannot be operated on. // FeedMappingErrorReasonCANNOT_OPERATE_ON_MAPPINGS_FOR_SYSTEM_GENERATED_FEED FeedMappingErrorReason = "CANNOT_OPERATE_ON_MAPPINGS_FOR_SYSTEM_GENERATED_FEED" // // Only one feed mapping for a placeholder type is allowed per feed or customer // (depending on the placeholder type). // FeedMappingErrorReasonMULTIPLE_MAPPINGS_FOR_PLACEHOLDER_TYPE FeedMappingErrorReason = "MULTIPLE_MAPPINGS_FOR_PLACEHOLDER_TYPE" // // Only one feed mapping for a criterion type is allowed per customer. // FeedMappingErrorReasonMULTIPLE_MAPPINGS_FOR_CRITERION_TYPE FeedMappingErrorReason = "MULTIPLE_MAPPINGS_FOR_CRITERION_TYPE" // // Only one feed attribute mapping for a placeholder field is allowed // (depending on the placeholder type). // FeedMappingErrorReasonMULTIPLE_MAPPINGS_FOR_PLACEHOLDER_FIELD FeedMappingErrorReason = "MULTIPLE_MAPPINGS_FOR_PLACEHOLDER_FIELD" // // Only one feed attribute mapping for a criterion field is allowed // (depending on the criterion type). // FeedMappingErrorReasonMULTIPLE_MAPPINGS_FOR_CRITERION_FIELD FeedMappingErrorReason = "MULTIPLE_MAPPINGS_FOR_CRITERION_FIELD" // // This feed mapping may not contain any explicit attribute field mappings. // FeedMappingErrorReasonUNEXPECTED_ATTRIBUTE_FIELD_MAPPINGS FeedMappingErrorReason = "UNEXPECTED_ATTRIBUTE_FIELD_MAPPINGS" // // Location placeholder feedmappings can only be created for Places feeds. // FeedMappingErrorReasonLOCATION_PLACEHOLDER_ONLY_FOR_PLACES_FEEDS FeedMappingErrorReason = "LOCATION_PLACEHOLDER_ONLY_FOR_PLACES_FEEDS" // // Mappings for typed feeds cannot be modified. // FeedMappingErrorReasonCANNOT_MODIFY_MAPPINGS_FOR_TYPED_FEED FeedMappingErrorReason = "CANNOT_MODIFY_MAPPINGS_FOR_TYPED_FEED" // // The given placeholder type can only be mapped to system generated feeds. // FeedMappingErrorReasonINVALID_PLACEHOLDER_TYPE_FOR_NON_SYSTEM_GENERATED_FEED FeedMappingErrorReason = "INVALID_PLACEHOLDER_TYPE_FOR_NON_SYSTEM_GENERATED_FEED" // // The given placeholder type cannot be mapped to a system generated feed with the given type. // FeedMappingErrorReasonINVALID_PLACEHOLDER_TYPE_FOR_SYSTEM_GENERATED_FEED_TYPE FeedMappingErrorReason = "INVALID_PLACEHOLDER_TYPE_FOR_SYSTEM_GENERATED_FEED_TYPE" FeedMappingErrorReasonUNKNOWN FeedMappingErrorReason = "UNKNOWN" )
type FeedMappingOperation ¶
type FeedMappingOperation struct { *Operation // // The FeedMapping to create // <span class="constraint Required">This field is required and should not be {@code null}.</span> // Operand *FeedMapping `xml:"operand,omitempty"` }
type FeedMappingPage ¶
type FeedMappingPage struct { *NullStatsPage // // The resulting FeedMappings // Entries []*FeedMapping `xml:"entries,omitempty"` }
type FeedMappingReturnValue ¶
type FeedMappingReturnValue struct { *ListReturnValue // // The resulting FeedMappings. // Value []*FeedMapping `xml:"value,omitempty"` }
type FeedMappingServiceInterface ¶
type FeedMappingServiceInterface interface { // Error can be either of the following types: // // - ApiException /* Returns a list of FeedMappings that meet the selector criteria. @param selector Determines which FeedMappings to return. If empty all FeedMappings are returned. @return The list of FeedMappings. @throws ApiException indicates a problem with the request. */ Get(request *Get) (*GetResponse, error) // Error can be either of the following types: // // - ApiException /* Add and remove FeedMappings. The following {@link Operator}s are supported: ADD, REMOVE. @param operations The operations to apply. @return The resulting FeedMappings. @throws ApiException indicates a problem with the request. */ Mutate(request *Mutate) (*MutateResponse, error) // Error can be either of the following types: // // - ApiException /* Returns the list of FeedMappings that match the query. @param query The SQL-like AWQL query string @returns The list of FeedMappings @throws ApiException when the query is invalid or there are errors processing the request. */ Query(request *Query) (*QueryResponse, error) }
func NewFeedMappingServiceInterface ¶
func NewFeedMappingServiceInterface(client *soap.Client) FeedMappingServiceInterface
type FeedMappingStatus ¶
type FeedMappingStatus string
const ( // // This mapping is used in feeds. // FeedMappingStatusENABLED FeedMappingStatus = "ENABLED" // // This mapping is not used anymore. // FeedMappingStatusREMOVED FeedMappingStatus = "REMOVED" // // <span class="constraint Rejected">Used for return value only. An enumeration could not be processed, typically due to incompatibility with your WSDL version.</span> // FeedMappingStatusUNKNOWN FeedMappingStatus = "UNKNOWN" )
type FieldPathElement ¶
type GetResponse ¶
type GetResponse struct { XMLName xml.Name `xml:"https://adwords.google.com/api/adwords/cm/v201809 getResponse"` Rval *FeedMappingPage `xml:"rval,omitempty"` }
type IdError ¶
type IdError struct { *ApiError // // The error reason represented by an enum. // Reason *IdErrorReason `xml:"reason,omitempty"` }
type IdErrorReason ¶
type IdErrorReason string
The reasons for the target error.
const ( // // Id not found // IdErrorReasonNOT_FOUND IdErrorReason = "NOT_FOUND" )
type InternalApiError ¶
type InternalApiError struct { *ApiError // // The error reason represented by an enum. // Reason *InternalApiErrorReason `xml:"reason,omitempty"` }
type InternalApiErrorReason ¶
type InternalApiErrorReason string
The single reason for the internal API error.
const ( // // API encountered an unexpected internal error. // InternalApiErrorReasonUNEXPECTED_INTERNAL_API_ERROR InternalApiErrorReason = "UNEXPECTED_INTERNAL_API_ERROR" // // A temporary error occurred during the request. Please retry. // InternalApiErrorReasonTRANSIENT_ERROR InternalApiErrorReason = "TRANSIENT_ERROR" // // The cause of the error is not known or only defined in newer versions. // InternalApiErrorReasonUNKNOWN InternalApiErrorReason = "UNKNOWN" // // The API is currently unavailable for a planned downtime. // InternalApiErrorReasonDOWNTIME InternalApiErrorReason = "DOWNTIME" // // Mutate succeeded but server was unable to build response. Client should not retry mutate. // InternalApiErrorReasonERROR_GENERATING_RESPONSE InternalApiErrorReason = "ERROR_GENERATING_RESPONSE" )
type ListReturnValue ¶
type ListReturnValue struct { // // Indicates that this instance is a subtype of ListReturnValue. // Although this field is returned in the response, it is ignored on input // and cannot be selected. Specify xsi:type instead. // ListReturnValueType string `xml:"ListReturnValue.Type,omitempty"` }
type Mutate ¶
type Mutate struct { XMLName xml.Name `xml:"https://adwords.google.com/api/adwords/cm/v201809 mutate"` // // <span class="constraint ContentsNotNull">This field must not contain {@code null} elements.</span> // <span class="constraint DistinctIds">Elements in this field must have distinct IDs for following {@link Operator}s : SET, REMOVE.</span> // <span class="constraint NotEmpty">This field must contain at least one element.</span> // <span class="constraint Required">This field is required and should not be {@code null}.</span> // Operations []*FeedMappingOperation `xml:"operations,omitempty"` }
type MutateResponse ¶
type MutateResponse struct { XMLName xml.Name `xml:"https://adwords.google.com/api/adwords/cm/v201809 mutateResponse"` Rval *FeedMappingReturnValue `xml:"rval,omitempty"` }
type NotEmptyError ¶
type NotEmptyError struct { *ApiError // // The error reason represented by an enum. // Reason *NotEmptyErrorReason `xml:"reason,omitempty"` }
type NotEmptyErrorReason ¶
type NotEmptyErrorReason string
The reasons for the validation error.
const (
NotEmptyErrorReasonEMPTY_LIST NotEmptyErrorReason = "EMPTY_LIST"
)
type NullStatsPage ¶
type NullStatsPage struct {
*Page
}
type Operation ¶
type Operation struct { // // Operator. // <span class="constraint Required">This field is required and should not be {@code null}.</span> // Operator *Operator `xml:"operator,omitempty"` // // Indicates that this instance is a subtype of Operation. // Although this field is returned in the response, it is ignored on input // and cannot be selected. Specify xsi:type instead. // OperationType string `xml:"Operation.Type,omitempty"` }
type OperationAccessDenied ¶
type OperationAccessDenied struct { *ApiError Reason *OperationAccessDeniedReason `xml:"reason,omitempty"` }
type OperationAccessDeniedReason ¶
type OperationAccessDeniedReason string
The reasons for the operation access error.
const ( // // Unauthorized invocation of a service's method (get, mutate, etc.) // OperationAccessDeniedReasonACTION_NOT_PERMITTED OperationAccessDeniedReason = "ACTION_NOT_PERMITTED" // // Unauthorized ADD operation in invoking a service's mutate method. // OperationAccessDeniedReasonADD_OPERATION_NOT_PERMITTED OperationAccessDeniedReason = "ADD_OPERATION_NOT_PERMITTED" // // Unauthorized REMOVE operation in invoking a service's mutate method. // OperationAccessDeniedReasonREMOVE_OPERATION_NOT_PERMITTED OperationAccessDeniedReason = "REMOVE_OPERATION_NOT_PERMITTED" // // Unauthorized SET operation in invoking a service's mutate method. // OperationAccessDeniedReasonSET_OPERATION_NOT_PERMITTED OperationAccessDeniedReason = "SET_OPERATION_NOT_PERMITTED" // // A mutate action is not allowed on this campaign, from this client. // OperationAccessDeniedReasonMUTATE_ACTION_NOT_PERMITTED_FOR_CLIENT OperationAccessDeniedReason = "MUTATE_ACTION_NOT_PERMITTED_FOR_CLIENT" // // This operation is not permitted on this campaign type // OperationAccessDeniedReasonOPERATION_NOT_PERMITTED_FOR_CAMPAIGN_TYPE OperationAccessDeniedReason = "OPERATION_NOT_PERMITTED_FOR_CAMPAIGN_TYPE" // // An ADD operation may not set status to REMOVED. // OperationAccessDeniedReasonADD_AS_REMOVED_NOT_PERMITTED OperationAccessDeniedReason = "ADD_AS_REMOVED_NOT_PERMITTED" // // This operation is not allowed because the campaign or adgroup is removed. // OperationAccessDeniedReasonOPERATION_NOT_PERMITTED_FOR_REMOVED_ENTITY OperationAccessDeniedReason = "OPERATION_NOT_PERMITTED_FOR_REMOVED_ENTITY" // // This operation is not permitted on this ad group type. // OperationAccessDeniedReasonOPERATION_NOT_PERMITTED_FOR_AD_GROUP_TYPE OperationAccessDeniedReason = "OPERATION_NOT_PERMITTED_FOR_AD_GROUP_TYPE" // // The reason the invoked method or operation is prohibited is not known // (the client may be of an older version than the server). // OperationAccessDeniedReasonUNKNOWN OperationAccessDeniedReason = "UNKNOWN" )
type Operator ¶
type Operator string
This represents an operator that may be presented to an adsapi service.
type OperatorError ¶
type OperatorError struct { *ApiError // // The error reason represented by an enum. // Reason *OperatorErrorReason `xml:"reason,omitempty"` }
type OperatorErrorReason ¶
type OperatorErrorReason string
The reasons for the validation error.
const (
OperatorErrorReasonOPERATOR_NOT_SUPPORTED OperatorErrorReason = "OPERATOR_NOT_SUPPORTED"
)
type OrderBy ¶
type OrderBy struct { // // The field to sort the results on. // <span class="constraint Required">This field is required and should not be {@code null}.</span> // Field string `xml:"field,omitempty"` // // The order to sort the results on. The default sort order is {@link SortOrder#ASCENDING}. // SortOrder *SortOrder `xml:"sortOrder,omitempty"` }
type Page ¶
type Page struct { // // Total number of entries in the result that this page is a part of. // TotalNumEntries int32 `xml:"totalNumEntries,omitempty"` // // Indicates that this instance is a subtype of Page. // Although this field is returned in the response, it is ignored on input // and cannot be selected. Specify xsi:type instead. // PageType string `xml:"Page.Type,omitempty"` }
type Paging ¶
type Paging struct { // // Index of the first result to return in this page. // <span class="constraint InRange">This field must be greater than or equal to 0.</span> // StartIndex int32 `xml:"startIndex,omitempty"` // // Maximum number of results to return in this page. Set this to a reasonable value to limit // the number of results returned per page. // <span class="constraint InRange">This field must be greater than or equal to 0.</span> // NumberResults int32 `xml:"numberResults,omitempty"` }
type Predicate ¶
type Predicate struct { // // The field by which to filter the returned data. Possible values are marked Filterable on // the entity's reference page. For example, for predicates for the // CampaignService {@link Selector selector}, refer to the filterable fields from the // {@link Campaign} reference page. // <span class="constraint Required">This field is required and should not be {@code null}.</span> // Field string `xml:"field,omitempty"` // // The operator to use for filtering the data returned. // <span class="constraint Required">This field is required and should not be {@code null}.</span> // Operator *PredicateOperator `xml:"operator,omitempty"` // // The values by which to filter the field. The {@link Operator#CONTAINS_ALL}, // {@link Operator#CONTAINS_ANY}, {@link Operator#CONTAINS_NONE}, {@link Operator#IN} // and {@link Operator#NOT_IN} take multiple values. All others take a single value. // <span class="constraint ContentsNotNull">This field must not contain {@code null} elements.</span> // <span class="constraint Required">This field is required and should not be {@code null}.</span> // Values []string `xml:"values,omitempty"` }
type PredicateOperator ¶
type PredicateOperator string
Defines the valid set of operators.
const ( // // Checks if the field is equal to the given value. // // <p>This operator is used with integers, dates, booleans, strings, // enums, and sets. // PredicateOperatorEQUALS PredicateOperator = "EQUALS" // // Checks if the field does not equal the given value. // // <p>This operator is used with integers, booleans, strings, enums, // and sets. // PredicateOperatorNOT_EQUALS PredicateOperator = "NOT_EQUALS" // // Checks if the field is equal to one of the given values. // // <p>This operator accepts multiple operands and is used with // integers, booleans, strings, and enums. // PredicateOperatorIN PredicateOperator = "IN" // // Checks if the field does not equal any of the given values. // // <p>This operator accepts multiple operands and is used with // integers, booleans, strings, and enums. // PredicateOperatorNOT_IN PredicateOperator = "NOT_IN" // // Checks if the field is greater than the given value. // // <p>This operator is used with numbers and dates. // PredicateOperatorGREATER_THAN PredicateOperator = "GREATER_THAN" // // Checks if the field is greater or equal to the given value. // // <p>This operator is used with numbers and dates. // PredicateOperatorGREATER_THAN_EQUALS PredicateOperator = "GREATER_THAN_EQUALS" // // Checks if the field is less than the given value. // // <p>This operator is used with numbers and dates. // PredicateOperatorLESS_THAN PredicateOperator = "LESS_THAN" // // Checks if the field is less or equal to than the given value. // // <p>This operator is used with numbers and dates. // PredicateOperatorLESS_THAN_EQUALS PredicateOperator = "LESS_THAN_EQUALS" // // Checks if the field starts with the given value. // // <p>This operator is used with strings. // PredicateOperatorSTARTS_WITH PredicateOperator = "STARTS_WITH" // // Checks if the field starts with the given value, ignoring case. // // <p>This operator is used with strings. // PredicateOperatorSTARTS_WITH_IGNORE_CASE PredicateOperator = "STARTS_WITH_IGNORE_CASE" // // Checks if the field contains the given value as a substring. // // <p>This operator is used with strings. // PredicateOperatorCONTAINS PredicateOperator = "CONTAINS" // // Checks if the field contains the given value as a substring, ignoring // case. // // <p>This operator is used with strings. // PredicateOperatorCONTAINS_IGNORE_CASE PredicateOperator = "CONTAINS_IGNORE_CASE" // // Checks if the field does not contain the given value as a substring. // // <p>This operator is used with strings. // PredicateOperatorDOES_NOT_CONTAIN PredicateOperator = "DOES_NOT_CONTAIN" // // Checks if the field does not contain the given value as a substring, // ignoring case. // // <p>This operator is used with strings. // PredicateOperatorDOES_NOT_CONTAIN_IGNORE_CASE PredicateOperator = "DOES_NOT_CONTAIN_IGNORE_CASE" // // Checks if the field contains <em>any</em> of the given values. // // <p>This operator accepts multiple values and is used on sets of numbers // or strings. // PredicateOperatorCONTAINS_ANY PredicateOperator = "CONTAINS_ANY" // // Checks if the field contains <em>all</em> of the given values. // // <p>This operator accepts multiple values and is used on sets of numbers // or strings. // PredicateOperatorCONTAINS_ALL PredicateOperator = "CONTAINS_ALL" // // Checks if the field contains <em>none</em> of the given values. // // <p>This operator accepts multiple values and is used on sets of numbers // or strings. // PredicateOperatorCONTAINS_NONE PredicateOperator = "CONTAINS_NONE" // // <span class="constraint Rejected">Used for return value only. An enumeration could not be processed, typically due to incompatibility with your WSDL version.</span> // PredicateOperatorUNKNOWN PredicateOperator = "UNKNOWN" )
type QueryError ¶
type QueryError struct { *ApiError Reason *QueryErrorReason `xml:"reason,omitempty"` Message string `xml:"message,omitempty"` }
type QueryErrorReason ¶
type QueryErrorReason string
The reason for the query error.
const ( // // Exception that happens when trying to parse a query that doesn't match the AWQL grammar. // QueryErrorReasonPARSING_FAILED QueryErrorReason = "PARSING_FAILED" // // The provided query is an empty string. // QueryErrorReasonMISSING_QUERY QueryErrorReason = "MISSING_QUERY" // // The query does not contain the required SELECT clause or it is not in the // correct location. // QueryErrorReasonMISSING_SELECT_CLAUSE QueryErrorReason = "MISSING_SELECT_CLAUSE" // // The query does not contain the required FROM clause or it is not in the correct location. // QueryErrorReasonMISSING_FROM_CLAUSE QueryErrorReason = "MISSING_FROM_CLAUSE" // // The SELECT clause could not be parsed. // QueryErrorReasonINVALID_SELECT_CLAUSE QueryErrorReason = "INVALID_SELECT_CLAUSE" // // The FROM clause could not be parsed. // QueryErrorReasonINVALID_FROM_CLAUSE QueryErrorReason = "INVALID_FROM_CLAUSE" // // The WHERE clause could not be parsed. // QueryErrorReasonINVALID_WHERE_CLAUSE QueryErrorReason = "INVALID_WHERE_CLAUSE" // // The ORDER BY clause could not be parsed. // QueryErrorReasonINVALID_ORDER_BY_CLAUSE QueryErrorReason = "INVALID_ORDER_BY_CLAUSE" // // The LIMIT clause could not be parsed. // QueryErrorReasonINVALID_LIMIT_CLAUSE QueryErrorReason = "INVALID_LIMIT_CLAUSE" // // The startIndex in the LIMIT clause does not contain a valid integer. // QueryErrorReasonINVALID_START_INDEX_IN_LIMIT_CLAUSE QueryErrorReason = "INVALID_START_INDEX_IN_LIMIT_CLAUSE" // // The pageSize in the LIMIT clause does not contain a valid integer. // QueryErrorReasonINVALID_PAGE_SIZE_IN_LIMIT_CLAUSE QueryErrorReason = "INVALID_PAGE_SIZE_IN_LIMIT_CLAUSE" // // The DURING clause could not be parsed. // QueryErrorReasonINVALID_DURING_CLAUSE QueryErrorReason = "INVALID_DURING_CLAUSE" // // The minimum date in the DURING clause is not a valid date in YYYYMMDD format. // QueryErrorReasonINVALID_MIN_DATE_IN_DURING_CLAUSE QueryErrorReason = "INVALID_MIN_DATE_IN_DURING_CLAUSE" // // The maximum date in the DURING clause is not a valid date in YYYYMMDD format. // QueryErrorReasonINVALID_MAX_DATE_IN_DURING_CLAUSE QueryErrorReason = "INVALID_MAX_DATE_IN_DURING_CLAUSE" // // The minimum date in the DURING is after the maximum date. // QueryErrorReasonMAX_LESS_THAN_MIN_IN_DURING_CLAUSE QueryErrorReason = "MAX_LESS_THAN_MIN_IN_DURING_CLAUSE" // // The query matched the grammar, but is invalid in some way such as using a service that // isn't supported. // QueryErrorReasonVALIDATION_FAILED QueryErrorReason = "VALIDATION_FAILED" )
type QueryResponse ¶
type QueryResponse struct { XMLName xml.Name `xml:"https://adwords.google.com/api/adwords/cm/v201809 queryResponse"` Rval *FeedMappingPage `xml:"rval,omitempty"` }
type QuotaCheckError ¶
type QuotaCheckError struct { *ApiError Reason *QuotaCheckErrorReason `xml:"reason,omitempty"` }
type QuotaCheckErrorReason ¶
type QuotaCheckErrorReason string
Enums for all the reasons an error can be thrown to the user during billing quota checks.
const ( // // Customer passed in an invalid token in the header. // QuotaCheckErrorReasonINVALID_TOKEN_HEADER QuotaCheckErrorReason = "INVALID_TOKEN_HEADER" // // Customer is marked delinquent. // QuotaCheckErrorReasonACCOUNT_DELINQUENT QuotaCheckErrorReason = "ACCOUNT_DELINQUENT" // // Customer is a fraudulent. // QuotaCheckErrorReasonACCOUNT_INACCESSIBLE QuotaCheckErrorReason = "ACCOUNT_INACCESSIBLE" // // Inactive Account. // QuotaCheckErrorReasonACCOUNT_INACTIVE QuotaCheckErrorReason = "ACCOUNT_INACTIVE" // // Signup not complete // QuotaCheckErrorReasonINCOMPLETE_SIGNUP QuotaCheckErrorReason = "INCOMPLETE_SIGNUP" // // Developer token is not approved for production access, and the customer // is attempting to access a production account. // QuotaCheckErrorReasonDEVELOPER_TOKEN_NOT_APPROVED QuotaCheckErrorReason = "DEVELOPER_TOKEN_NOT_APPROVED" // // Terms and conditions are not signed. // QuotaCheckErrorReasonTERMS_AND_CONDITIONS_NOT_SIGNED QuotaCheckErrorReason = "TERMS_AND_CONDITIONS_NOT_SIGNED" // // Monthly budget quota reached. // QuotaCheckErrorReasonMONTHLY_BUDGET_REACHED QuotaCheckErrorReason = "MONTHLY_BUDGET_REACHED" // // Monthly budget quota exceeded. // QuotaCheckErrorReasonQUOTA_EXCEEDED QuotaCheckErrorReason = "QUOTA_EXCEEDED" )
type RangeError ¶
type RangeError struct { *ApiError // // The error reason represented by an enum. // Reason *RangeErrorReason `xml:"reason,omitempty"` }
type RangeErrorReason ¶
type RangeErrorReason string
The reasons for the target error.
const ( RangeErrorReasonTOO_LOW RangeErrorReason = "TOO_LOW" RangeErrorReasonTOO_HIGH RangeErrorReason = "TOO_HIGH" )
type RateExceededError ¶
type RateExceededError struct { *ApiError // // The error reason represented by an enum. // Reason *RateExceededErrorReason `xml:"reason,omitempty"` // // Cause of the rate exceeded error. // RateName string `xml:"rateName,omitempty"` // // The scope of the rate (ACCOUNT/DEVELOPER). // RateScope string `xml:"rateScope,omitempty"` // // The amount of time (in seconds) the client should wait before retrying the request. // RetryAfterSeconds int32 `xml:"retryAfterSeconds,omitempty"` }
type RateExceededErrorReason ¶
type RateExceededErrorReason string
The reason for the rate exceeded error.
const ( // // Rate exceeded. // RateExceededErrorReasonRATE_EXCEEDED RateExceededErrorReason = "RATE_EXCEEDED" )
type ReadOnlyError ¶
type ReadOnlyError struct { *ApiError // // The error reason represented by an enum. // Reason *ReadOnlyErrorReason `xml:"reason,omitempty"` }
type ReadOnlyErrorReason ¶
type ReadOnlyErrorReason string
The reasons for the target error.
const (
ReadOnlyErrorReasonREAD_ONLY ReadOnlyErrorReason = "READ_ONLY"
)
type RejectedError ¶
type RejectedError struct { *ApiError // // The error reason represented by an enum. // Reason *RejectedErrorReason `xml:"reason,omitempty"` }
type RejectedErrorReason ¶
type RejectedErrorReason string
The reasons for the target error.
const ( // // Unknown value encountered // RejectedErrorReasonUNKNOWN_VALUE RejectedErrorReason = "UNKNOWN_VALUE" )
type RequestError ¶
type RequestError struct { *ApiError Reason *RequestErrorReason `xml:"reason,omitempty"` }
type RequestErrorReason ¶
type RequestErrorReason string
const ( // // Error reason is unknown. // RequestErrorReasonUNKNOWN RequestErrorReason = "UNKNOWN" // // Invalid input. // RequestErrorReasonINVALID_INPUT RequestErrorReason = "INVALID_INPUT" // // The api version in the request has been discontinued. Please update // to the new AdWords API version. // RequestErrorReasonUNSUPPORTED_VERSION RequestErrorReason = "UNSUPPORTED_VERSION" )
type RequiredError ¶
type RequiredError struct { *ApiError // // The error reason represented by an enum. // Reason *RequiredErrorReason `xml:"reason,omitempty"` }
type RequiredErrorReason ¶
type RequiredErrorReason string
The reasons for the target error.
const ( // // Missing required field. // RequiredErrorReasonREQUIRED RequiredErrorReason = "REQUIRED" )
type Selector ¶
type Selector struct { // // List of fields to select. // <a href="/adwords/api/docs/appendix/selectorfields">Possible values</a> // are marked {@code Selectable} on the entity's reference page. // For example, for the {@code CampaignService} selector, refer to the // selectable fields from the {@link Campaign} reference page. // <span class="constraint ContentsDistinct">This field must contain distinct elements.</span> // <span class="constraint ContentsNotNull">This field must not contain {@code null} elements.</span> // <span class="constraint Required">This field is required and should not be {@code null}.</span> // Fields []string `xml:"fields,omitempty"` // // Specifies how an entity (eg. adgroup, campaign, criterion, ad) should be filtered. // <span class="constraint ContentsNotNull">This field must not contain {@code null} elements.</span> // Predicates []*Predicate `xml:"predicates,omitempty"` // // Range of dates for which you want to include data. If this value is omitted, // results for all dates are returned. // <p class="note"><b>Note:</b> This field is only used by the report download // service. For all other services, it is ignored.</p> // <span class="constraint DateRangeWithinRange">This range must be contained within the range [19700101, 20380101].</span> // DateRange *DateRange `xml:"dateRange,omitempty"` // // The fields on which you want to sort, and the sort order. The order in the list is // significant: The first element in the list indicates the primary sort order, the next // specifies the secondary sort order and so on. // Ordering []*OrderBy `xml:"ordering,omitempty"` // // Pagination information. // Paging *Paging `xml:"paging,omitempty"` }
type SelectorError ¶
type SelectorError struct { *ApiError // // The error reason represented by enum. // Reason *SelectorErrorReason `xml:"reason,omitempty"` }
type SelectorErrorReason ¶
type SelectorErrorReason string
The reasons for the target error.
const ( // // The field name is not valid. // SelectorErrorReasonINVALID_FIELD_NAME SelectorErrorReason = "INVALID_FIELD_NAME" // // The list of fields is null or empty. // SelectorErrorReasonMISSING_FIELDS SelectorErrorReason = "MISSING_FIELDS" // // The list of predicates is null or empty. // SelectorErrorReasonMISSING_PREDICATES SelectorErrorReason = "MISSING_PREDICATES" // // Predicate operator does not support multiple values. Multiple values are // supported only for {@link Predicate.Operator#IN} and {@link Predicate.Operator#NOT_IN}. // SelectorErrorReasonOPERATOR_DOES_NOT_SUPPORT_MULTIPLE_VALUES SelectorErrorReason = "OPERATOR_DOES_NOT_SUPPORT_MULTIPLE_VALUES" // // The predicate enum value is not valid. // SelectorErrorReasonINVALID_PREDICATE_ENUM_VALUE SelectorErrorReason = "INVALID_PREDICATE_ENUM_VALUE" // // The predicate operator is empty. // SelectorErrorReasonMISSING_PREDICATE_OPERATOR SelectorErrorReason = "MISSING_PREDICATE_OPERATOR" // // The predicate values are empty. // SelectorErrorReasonMISSING_PREDICATE_VALUES SelectorErrorReason = "MISSING_PREDICATE_VALUES" // // The predicate field name is not valid. // SelectorErrorReasonINVALID_PREDICATE_FIELD_NAME SelectorErrorReason = "INVALID_PREDICATE_FIELD_NAME" // // The predicate operator is not valid. // SelectorErrorReasonINVALID_PREDICATE_OPERATOR SelectorErrorReason = "INVALID_PREDICATE_OPERATOR" // // Invalid selection of fields. // SelectorErrorReasonINVALID_FIELD_SELECTION SelectorErrorReason = "INVALID_FIELD_SELECTION" // // The predicate value is not valid. // SelectorErrorReasonINVALID_PREDICATE_VALUE SelectorErrorReason = "INVALID_PREDICATE_VALUE" // // The sort field name is not valid or the field is not sortable. // SelectorErrorReasonINVALID_SORT_FIELD_NAME SelectorErrorReason = "INVALID_SORT_FIELD_NAME" // // Standard error. // SelectorErrorReasonSELECTOR_ERROR SelectorErrorReason = "SELECTOR_ERROR" // // Filtering by date range is not supported. // SelectorErrorReasonFILTER_BY_DATE_RANGE_NOT_SUPPORTED SelectorErrorReason = "FILTER_BY_DATE_RANGE_NOT_SUPPORTED" // // Selector paging start index is too high. // SelectorErrorReasonSTART_INDEX_IS_TOO_HIGH SelectorErrorReason = "START_INDEX_IS_TOO_HIGH" // // The values list in a predicate was too long. // SelectorErrorReasonTOO_MANY_PREDICATE_VALUES SelectorErrorReason = "TOO_MANY_PREDICATE_VALUES" // // <span class="constraint Rejected">Used for return value only. An enumeration could not be processed, typically due to incompatibility with your WSDL version.</span> // SelectorErrorReasonUNKNOWN_ERROR SelectorErrorReason = "UNKNOWN_ERROR" )
type SizeLimitError ¶
type SizeLimitError struct { *ApiError // // The error reason represented by an enum. // Reason *SizeLimitErrorReason `xml:"reason,omitempty"` }
type SizeLimitErrorReason ¶
type SizeLimitErrorReason string
The reasons for Ad Scheduling errors.
const ( // // The number of entries in the request exceeds the system limit. // SizeLimitErrorReasonREQUEST_SIZE_LIMIT_EXCEEDED SizeLimitErrorReason = "REQUEST_SIZE_LIMIT_EXCEEDED" // // The number of entries in the response exceeds the system limit. // SizeLimitErrorReasonRESPONSE_SIZE_LIMIT_EXCEEDED SizeLimitErrorReason = "RESPONSE_SIZE_LIMIT_EXCEEDED" // // The account is too large to load. // SizeLimitErrorReasonINTERNAL_STORAGE_ERROR SizeLimitErrorReason = "INTERNAL_STORAGE_ERROR" // // <span class="constraint Rejected">Used for return value only. An enumeration could not be processed, typically due to incompatibility with your WSDL version.</span> // SizeLimitErrorReasonUNKNOWN SizeLimitErrorReason = "UNKNOWN" )
type SoapHeader ¶
type SoapHeader struct { XMLName xml.Name `xml:"https://adwords.google.com/api/adwords/cm/v201809 RequestHeader"` // // The header identifies the customer id of the client of the AdWords manager, if an AdWords // manager is acting on behalf of their client or the customer id of the advertiser managing their // own account. // ClientCustomerId string `xml:"clientCustomerId,omitempty"` // // Developer token to identify that the person making the call has enough // quota. // DeveloperToken string `xml:"developerToken,omitempty"` // // UserAgent is used to track distribution of API client programs and // application usage. The client is responsible for putting in a meaningful // value for tracking purposes. To be clear this is not the same as an HTTP // user agent. // UserAgent string `xml:"userAgent,omitempty"` // // Used to validate the request without executing it. // ValidateOnly bool `xml:"validateOnly,omitempty"` // // If true, API will try to commit as many error free operations as possible and // report the other operations' errors. // // <p>Ignored for non-mutate calls. // PartialFailure bool `xml:"partialFailure,omitempty"` }
type SoapResponseHeader ¶
type SoapResponseHeader struct { XMLName xml.Name `xml:"https://adwords.google.com/api/adwords/cm/v201809 ResponseHeader"` // // Unique id that identifies this request. If developers have any support issues, sending us // this id will enable us to find their request more easily. // RequestId string `xml:"requestId,omitempty"` // // The name of the service being invoked. // ServiceName string `xml:"serviceName,omitempty"` // // The name of the method being invoked. // MethodName string `xml:"methodName,omitempty"` // // Number of operations performed for this SOAP request. // Operations int64 `xml:"operations,omitempty"` // // Elapsed time in milliseconds between the AdWords API receiving the request and sending the // response. // ResponseTime int64 `xml:"responseTime,omitempty"` }
type StringFormatError ¶
type StringFormatError struct { *ApiError Reason *StringFormatErrorReason `xml:"reason,omitempty"` }
type StringFormatErrorReason ¶
type StringFormatErrorReason string
The reasons for the target error.
const ( StringFormatErrorReasonUNKNOWN StringFormatErrorReason = "UNKNOWN" // // The input string value contains disallowed characters. // StringFormatErrorReasonILLEGAL_CHARS StringFormatErrorReason = "ILLEGAL_CHARS" // // The input string value is invalid for the associated field. // StringFormatErrorReasonINVALID_FORMAT StringFormatErrorReason = "INVALID_FORMAT" )
type StringLengthError ¶
type StringLengthError struct { *ApiError // // The error reason represented by an enum. // Reason *StringLengthErrorReason `xml:"reason,omitempty"` }
type StringLengthErrorReason ¶
type StringLengthErrorReason string
The reasons for the target error.
const ( StringLengthErrorReasonTOO_SHORT StringLengthErrorReason = "TOO_SHORT" StringLengthErrorReasonTOO_LONG StringLengthErrorReason = "TOO_LONG" )