Returns the AdGroupCriterionCustomizers Resource.
Returns the CampaignGoalConfigs Resource.
Returns the CustomerCustomizers Resource.
Returns the Goals Resource.
Returns the adGroupAdLabels Resource.
Returns the adGroupAds Resource.
Returns the adGroupAssetSets Resource.
Returns the adGroupAssets Resource.
Returns the adGroupBidModifiers Resource.
Returns the adGroupCriteria Resource.
Returns the adGroupCriterionLabels Resource.
Returns the adGroupCustomizers Resource.
Returns the adGroupLabels Resource.
Returns the adGroups Resource.
Returns the adParameters Resource.
Returns the ads Resource.
Returns the assetGroupAssets Resource.
assetGroupListingGroupFilters()
Returns the assetGroupListingGroupFilters Resource.
Returns the assetGroupSignals Resource.
Returns the assetGroups Resource.
Returns the assetSetAssets Resource.
Returns the assetSets Resource.
Returns the assets Resource.
Returns the audiences Resource.
Returns the batchJobs Resource.
Returns the biddingDataExclusions Resource.
biddingSeasonalityAdjustments()
Returns the biddingSeasonalityAdjustments Resource.
Returns the biddingStrategies Resource.
Returns the campaignAssetSets Resource.
Returns the campaignAssets Resource.
Returns the campaignBidModifiers Resource.
Returns the campaignBudgets Resource.
Returns the campaignConversionGoals Resource.
Returns the campaignCriteria Resource.
Returns the campaignCustomizers Resource.
Returns the campaignDrafts Resource.
Returns the campaignGroups Resource.
Returns the campaignLabels Resource.
Returns the campaignLifecycleGoal Resource.
Returns the campaignSharedSets Resource.
Returns the campaigns Resource.
Returns the conversionActions Resource.
Returns the conversionCustomVariables Resource.
conversionGoalCampaignConfigs()
Returns the conversionGoalCampaignConfigs Resource.
Returns the conversionValueRuleSets Resource.
Returns the conversionValueRules Resource.
Returns the customAudiences Resource.
Returns the customColumns Resource.
Returns the customConversionGoals Resource.
Returns the customInterests Resource.
Returns the customerAssetSets Resource.
Returns the customerAssets Resource.
Returns the customerClientLinks Resource.
Returns the customerConversionGoals Resource.
Returns the customerLabels Resource.
Returns the customerLifecycleGoal Resource.
Returns the customerManagerLinks Resource.
Returns the customerNegativeCriteria Resource.
customerSkAdNetworkConversionValueSchemas()
Returns the customerSkAdNetworkConversionValueSchemas Resource.
Returns the customizerAttributes Resource.
Returns the experimentArms Resource.
Returns the experiments Resource.
Returns the labels Resource.
Returns the localServices Resource.
Returns the localServicesLeads Resource.
Returns the operations Resource.
Returns the recommendationSubscriptions Resource.
Returns the remarketingActions Resource.
Returns the searchAds360 Resource.
Returns the searchAds360Campaigns Resource.
Returns the sharedCriteria Resource.
Returns the sharedSets Resource.
Returns the userListCustomerTypes Resource.
Returns the userLists Resource.
Close httplib2 connections.
createCustomerClient(customerId, body=None, x__xgafv=None)
Creates a new client under manager. The new client customer is returned. List of thrown errors: [AccessInvitationError]() [AuthenticationError]() [AuthorizationError]() [CurrencyCodeError]() [HeaderError]() [InternalError]() [ManagerLinkError]() [QuotaError]() [RequestError]() [StringLengthError]() [TimeZoneError]()
listAccessibleCustomers(x__xgafv=None)
Returns resource names of customers directly accessible by the user authenticating the call. List of thrown errors: [AuthenticationError]() [AuthorizationError]() [HeaderError]() [InternalError]() [QuotaError]() [RequestError]()
mutate(customerId, body=None, x__xgafv=None)
Updates a customer. Operation statuses are returned. List of thrown errors: [AuthenticationError]() [AuthorizationError]() [DatabaseError]() [FieldMaskError]() [HeaderError]() [InternalError]() [QuotaError]() [RequestError]() [UrlFieldError]()
removeCampaignAutomaticallyCreatedAsset(customerId, body=None, x__xgafv=None)
Removes automatically created assets from a campaign. List of thrown errors: [AuthenticationError]() [AuthorizationError]() [ContextError]() [FieldError]() [InternalError]() [MutateError]() [PartialFailureError]() [QuotaError]() [RequestError]()
suggestTravelAssets(customerId, body=None, x__xgafv=None)
Returns Travel Asset suggestions. Asset suggestions are returned on a best-effort basis. There are no guarantees that all possible asset types will be returned for any given hotel property.
uploadCallConversions(customerId, body=None, x__xgafv=None)
Processes the given call conversions. List of thrown errors: [AuthenticationError]() [AuthorizationError]() [HeaderError]() [InternalError]() [PartialFailureError]() [QuotaError]() [RequestError]()
uploadClickConversions(customerId, body=None, x__xgafv=None)
Processes the given click conversions. List of thrown errors: [AuthenticationError]() [AuthorizationError]() [ConversionUploadError]() [HeaderError]() [InternalError]() [PartialFailureError]() [QuotaError]() [RequestError]()
uploadConversionAdjustments(customerId, body=None, x__xgafv=None)
Processes the given conversion adjustments. List of thrown errors: [AuthenticationError]() [AuthorizationError]() [HeaderError]() [InternalError]() [PartialFailureError]() [QuotaError]() [RequestError]()
close()
Close httplib2 connections.
createCustomerClient(customerId, body=None, x__xgafv=None)
Creates a new client under manager. The new client customer is returned. List of thrown errors: [AccessInvitationError]() [AuthenticationError]() [AuthorizationError]() [CurrencyCodeError]() [HeaderError]() [InternalError]() [ManagerLinkError]() [QuotaError]() [RequestError]() [StringLengthError]() [TimeZoneError]()
Args:
customerId: string, Required. The ID of the Manager under whom client customer is being created. (required)
body: object, The request body.
The object takes the form of:
{ # Request message for CustomerService.CreateCustomerClient.
"accessRole": "A String", # The proposed role of user on the created client customer. Accessible only to customers on the allow-list.
"customerClient": { # A customer. # Required. The new client customer to create. The resource name on this customer will be ignored.
"accountLevel": "A String", # Output only. The account level of the customer: Manager, Sub-manager, Associate manager, Service account.
"accountStatus": "A String", # Output only. Account status, for example, Enabled, Paused, Removed, etc.
"accountType": "A String", # Output only. Engine account type, for example, Google Ads, Microsoft Advertising, Yahoo Japan, Baidu, Facebook, Engine Track, etc.
"associateManagerDescriptiveName": "A String", # Output only. The descriptive name of the associate manager.
"associateManagerId": "A String", # Output only. The customer ID of the associate manager. A 0 value indicates that the customer has no SA360 associate manager.
"autoTaggingEnabled": True or False, # Whether auto-tagging is enabled for the customer.
"callReportingSetting": { # Call reporting setting for a customer. # Call reporting setting for a customer.
"callConversionAction": "A String", # Customer-level call conversion action to attribute a call conversion to. If not set a default conversion action is used. Only in effect when call_conversion_reporting_enabled is set to true.
"callConversionReportingEnabled": True or False, # Whether to enable call conversion reporting.
"callReportingEnabled": True or False, # Enable reporting of phone call events by redirecting them through Google System.
},
"containsEuPoliticalAdvertising": "A String", # Output only. Returns the advertiser self-declaration status of whether this customer contains political advertising content targeted towards the European Union. You can use the Google Ads UI to update this account-level declaration, or use the API to update the self-declaration status of individual campaigns.
"conversionTrackingSetting": { # A collection of customer-wide settings related to Search Ads 360 Conversion Tracking. # Conversion tracking setting for a customer.
"acceptedCustomerDataTerms": True or False, # Output only. Whether the customer has accepted customer data terms. If using cross-account conversion tracking, this value is inherited from the manager. This field is read-only. For more information, see https://support.google.com/adspolicy/answer/7475709.
"conversionTrackingId": "A String", # Output only. The conversion tracking id used for this account. This id doesn't indicate whether the customer uses conversion tracking (conversion_tracking_status does). This field is read-only.
"conversionTrackingStatus": "A String", # Output only. Conversion tracking status. It indicates whether the customer is using conversion tracking, and who is the conversion tracking owner of this customer. If this customer is using cross-account conversion tracking, the value returned will differ based on the `login-customer-id` of the request.
"crossAccountConversionTrackingId": "A String", # Output only. The conversion tracking id of the customer's manager. This is set when the customer is opted into cross-account conversion tracking, and it overrides conversion_tracking_id.
"enhancedConversionsForLeadsEnabled": True or False, # Output only. Whether the customer is opted-in for enhanced conversions for leads. If using cross-account conversion tracking, this value is inherited from the manager. This field is read-only.
"googleAdsConversionCustomer": "A String", # The resource name of the customer where conversions are created and managed. This field is read-only.
"googleAdsCrossAccountConversionTrackingId": "A String", # Output only. The conversion tracking id of the customer's manager. This is set when the customer is opted into conversion tracking, and it overrides conversion_tracking_id. This field can only be managed through the Google Ads UI. This field is read-only.
},
"creationTime": "A String", # Output only. The timestamp when this customer was created. The timestamp is in the customer's time zone and in "yyyy-MM-dd HH:mm:ss" format.
"currencyCode": "A String", # Immutable. The currency in which the account operates. A subset of the currency codes from the ISO 4217 standard is supported.
"customerAgreementSetting": { # Customer Agreement Setting for a customer. # Output only. Customer Agreement Setting for a customer.
"acceptedLeadFormTerms": True or False, # Output only. Whether the customer has accepted lead form term of service.
},
"descriptiveName": "A String", # Optional, non-unique descriptive name of the customer.
"doubleClickCampaignManagerSetting": { # DoubleClick Campaign Manager (DCM) setting for a manager customer. # Output only. DoubleClick Campaign Manager (DCM) setting for a manager customer.
"advertiserId": "A String", # Output only. ID of the Campaign Manager advertiser associated with this customer.
"networkId": "A String", # Output only. ID of the Campaign Manager network associated with this customer.
"timeZone": "A String", # Output only. Time zone of the Campaign Manager network associated with this customer in IANA Time Zone Database format, such as America/New_York.
},
"engineId": "A String", # Output only. ID of the account in the external engine account.
"finalUrlSuffix": "A String", # The URL template for appending params to the final URL.
"hasPartnersBadge": True or False, # Output only. Whether the Customer has a Partners program badge. If the Customer is not associated with the Partners program, this will be false. For more information, see https://support.google.com/partners/answer/3125774.
"id": "A String", # Output only. The ID of the customer.
"imageAssetAutoMigrationDone": True or False, # Output only. True if feed based image has been migrated to asset based image.
"imageAssetAutoMigrationDoneDateTime": "A String", # Output only. Timestamp of migration from feed based image to asset base image in yyyy-MM-dd HH:mm:ss format.
"lastModifiedTime": "A String", # Output only. The datetime when this customer was last modified. The datetime is in the customer's time zone and in "yyyy-MM-dd HH:mm:ss.ssssss" format.
"localServicesSettings": { # Settings for Local Services customer. # Output only. Settings for Local Services customer.
"granularInsuranceStatuses": [ # Output only. A read-only list of geo vertical level insurance statuses.
{ # Insurance status at geo + vertical level.
"categoryId": "A String", # Output only. Service category associated with the status. For example, xcat:service_area_business_plumber. For more details see: https://developers.google.com/google-ads/api/data/codes-formats#local_services_ids
"geoCriterionId": "A String", # Output only. Geotarget criterion ID associated with the status. Can be on country or state/province geo level, depending on requirements and location. See https://developers.google.com/google-ads/api/data/geotargets for more information.
"verificationStatus": "A String", # Output only. Granular insurance status, per geo + vertical.
},
],
"granularLicenseStatuses": [ # Output only. A read-only list of geo vertical level license statuses.
{ # License status at geo + vertical level.
"categoryId": "A String", # Output only. Service category associated with the status. For example, xcat:service_area_business_plumber. For more details see: https://developers.google.com/google-ads/api/data/codes-formats#local_services_ids
"geoCriterionId": "A String", # Output only. Geotarget criterion ID associated with the status. Can be on country or state/province geo level, depending on requirements and location. See https://developers.google.com/google-ads/api/data/geotargets for more information.
"verificationStatus": "A String", # Output only. Granular license status, per geo + vertical.
},
],
},
"locationAssetAutoMigrationDone": True or False, # Output only. True if feed based location has been migrated to asset based location.
"locationAssetAutoMigrationDoneDateTime": "A String", # Output only. Timestamp of migration from feed based location to asset base location in yyyy-MM-dd HH:mm:ss format.
"manager": True or False, # Output only. Whether the customer is a manager.
"managerDescriptiveName": "A String", # Output only. The descriptive name of the manager.
"managerId": "A String", # Output only. The customer ID of the manager. A 0 value indicates that the customer has no SA360 manager.
"optimizationScore": 3.14, # Output only. Optimization score of the customer. Optimization score is an estimate of how well a customer's campaigns are set to perform. It ranges from 0% (0.0) to 100% (1.0). This field is null for all manager customers, and for unscored non-manager customers. See "About optimization score" at https://support.google.com/google-ads/answer/9061546. This field is read-only.
"optimizationScoreWeight": 3.14, # Output only. Optimization score weight of the customer. Optimization score weight can be used to compare/aggregate optimization scores across multiple non-manager customers. The aggregate optimization score of a manager is computed as the sum over all of their customers of `Customer.optimization_score * Customer.optimization_score_weight`. This field is 0 for all manager customers, and for unscored non-manager customers. This field is read-only.
"payPerConversionEligibilityFailureReasons": [ # Output only. Reasons why the customer is not eligible to use PaymentMode.CONVERSIONS. If the list is empty, the customer is eligible. This field is read-only.
"A String",
],
"remarketingSetting": { # Remarketing setting for a customer. # Output only. Remarketing setting for a customer.
"googleGlobalSiteTag": "A String", # Output only. The Google tag.
},
"resourceName": "A String", # Immutable. The resource name of the customer. Customer resource names have the form: `customers/{customer_id}`
"status": "A String", # Output only. The status of the customer.
"subManagerDescriptiveName": "A String", # Output only. The descriptive name of the sub manager.
"subManagerId": "A String", # Output only. The customer ID of the sub manager. A 0 value indicates that the customer has no sub SA360 manager.
"testAccount": True or False, # Output only. Whether the customer is a test account.
"timeZone": "A String", # Immutable. The local timezone ID of the customer.
"trackingUrlTemplate": "A String", # The URL template for constructing a tracking URL out of parameters.
"videoBrandSafetySuitability": "A String", # Brand Safety setting at the account level. Allows for selecting an inventory type to show your ads on content that is the right fit for your brand. See https://support.google.com/google-ads/answer/7515513.
"videoCustomer": { # Video specific information about a Customer. # Video specific information about a Customer.
"thirdPartyIntegrationPartners": { # Container for Customer level third party integration partners. # Third Party integration partners.
"brandLiftIntegrationPartners": [ # Allowed third party integration partners for Brand Lift verification.
{ # Container for third party Brand Lift integration data for Customer.
"allowShareCost": True or False, # If true, cost data can be shared with this vendor.
"brandLiftIntegrationPartner": "A String", # Allowed Third Party integration partners for Brand Lift verification.
},
],
"brandSafetyIntegrationPartners": [ # Allowed third party integration partners for brand safety verification.
{ # Container for third party brand safety integration data for Customer.
"brandSafetyIntegrationPartner": "A String", # Allowed third party integration partners for brand safety verification.
},
],
"reachIntegrationPartners": [ # Allowed third party integration partners for reach verification.
{ # Container for third party reach integration data for Customer.
"allowShareCost": True or False, # If true, cost data can be shared with this vendor.
"reachIntegrationPartner": "A String", # Allowed Third Party integration partners for reach verification.
},
],
"viewabilityIntegrationPartners": [ # Allowed third party integration partners for YouTube viewability verification.
{ # Container for third party viewability integration data for Customer.
"allowShareCost": True or False, # If true, cost data can be shared with this vendor.
"viewabilityIntegrationPartner": "A String", # Allowed third party integration partners for YouTube viewability verification.
},
],
},
},
},
"emailAddress": "A String", # Email address of the user who should be invited on the created client customer. Accessible only to customers on the allow-list.
"validateOnly": True or False, # If true, the request is validated but not executed. Only errors are returned, not results.
}
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
2 - v2 error format
Returns:
An object of the form:
{ # Response message for CreateCustomerClient mutate.
"invitationLink": "A String", # Link for inviting user to access the created customer. Accessible to allowlisted customers only.
"resourceName": "A String", # The resource name of the newly created customer. Customer resource names have the form: `customers/{customer_id}`.
}
listAccessibleCustomers(x__xgafv=None)
Returns resource names of customers directly accessible by the user authenticating the call. List of thrown errors: [AuthenticationError]() [AuthorizationError]() [HeaderError]() [InternalError]() [QuotaError]() [RequestError]()
Args:
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
2 - v2 error format
Returns:
An object of the form:
{ # Response message for CustomerService.ListAccessibleCustomers.
"resourceNames": [ # Resource name of customers directly accessible by the user authenticating the call.
"A String",
],
}
mutate(customerId, body=None, x__xgafv=None)
Updates a customer. Operation statuses are returned. List of thrown errors: [AuthenticationError]() [AuthorizationError]() [DatabaseError]() [FieldMaskError]() [HeaderError]() [InternalError]() [QuotaError]() [RequestError]() [UrlFieldError]()
Args:
customerId: string, Required. The ID of the customer being modified. (required)
body: object, The request body.
The object takes the form of:
{ # Request message for CustomerService.MutateCustomer.
"operation": { # A single update on a customer. # Required. The operation to perform on the customer
"update": { # A customer. # Mutate operation. Only updates are supported for customer.
"accountLevel": "A String", # Output only. The account level of the customer: Manager, Sub-manager, Associate manager, Service account.
"accountStatus": "A String", # Output only. Account status, for example, Enabled, Paused, Removed, etc.
"accountType": "A String", # Output only. Engine account type, for example, Google Ads, Microsoft Advertising, Yahoo Japan, Baidu, Facebook, Engine Track, etc.
"associateManagerDescriptiveName": "A String", # Output only. The descriptive name of the associate manager.
"associateManagerId": "A String", # Output only. The customer ID of the associate manager. A 0 value indicates that the customer has no SA360 associate manager.
"autoTaggingEnabled": True or False, # Whether auto-tagging is enabled for the customer.
"callReportingSetting": { # Call reporting setting for a customer. # Call reporting setting for a customer.
"callConversionAction": "A String", # Customer-level call conversion action to attribute a call conversion to. If not set a default conversion action is used. Only in effect when call_conversion_reporting_enabled is set to true.
"callConversionReportingEnabled": True or False, # Whether to enable call conversion reporting.
"callReportingEnabled": True or False, # Enable reporting of phone call events by redirecting them through Google System.
},
"containsEuPoliticalAdvertising": "A String", # Output only. Returns the advertiser self-declaration status of whether this customer contains political advertising content targeted towards the European Union. You can use the Google Ads UI to update this account-level declaration, or use the API to update the self-declaration status of individual campaigns.
"conversionTrackingSetting": { # A collection of customer-wide settings related to Search Ads 360 Conversion Tracking. # Conversion tracking setting for a customer.
"acceptedCustomerDataTerms": True or False, # Output only. Whether the customer has accepted customer data terms. If using cross-account conversion tracking, this value is inherited from the manager. This field is read-only. For more information, see https://support.google.com/adspolicy/answer/7475709.
"conversionTrackingId": "A String", # Output only. The conversion tracking id used for this account. This id doesn't indicate whether the customer uses conversion tracking (conversion_tracking_status does). This field is read-only.
"conversionTrackingStatus": "A String", # Output only. Conversion tracking status. It indicates whether the customer is using conversion tracking, and who is the conversion tracking owner of this customer. If this customer is using cross-account conversion tracking, the value returned will differ based on the `login-customer-id` of the request.
"crossAccountConversionTrackingId": "A String", # Output only. The conversion tracking id of the customer's manager. This is set when the customer is opted into cross-account conversion tracking, and it overrides conversion_tracking_id.
"enhancedConversionsForLeadsEnabled": True or False, # Output only. Whether the customer is opted-in for enhanced conversions for leads. If using cross-account conversion tracking, this value is inherited from the manager. This field is read-only.
"googleAdsConversionCustomer": "A String", # The resource name of the customer where conversions are created and managed. This field is read-only.
"googleAdsCrossAccountConversionTrackingId": "A String", # Output only. The conversion tracking id of the customer's manager. This is set when the customer is opted into conversion tracking, and it overrides conversion_tracking_id. This field can only be managed through the Google Ads UI. This field is read-only.
},
"creationTime": "A String", # Output only. The timestamp when this customer was created. The timestamp is in the customer's time zone and in "yyyy-MM-dd HH:mm:ss" format.
"currencyCode": "A String", # Immutable. The currency in which the account operates. A subset of the currency codes from the ISO 4217 standard is supported.
"customerAgreementSetting": { # Customer Agreement Setting for a customer. # Output only. Customer Agreement Setting for a customer.
"acceptedLeadFormTerms": True or False, # Output only. Whether the customer has accepted lead form term of service.
},
"descriptiveName": "A String", # Optional, non-unique descriptive name of the customer.
"doubleClickCampaignManagerSetting": { # DoubleClick Campaign Manager (DCM) setting for a manager customer. # Output only. DoubleClick Campaign Manager (DCM) setting for a manager customer.
"advertiserId": "A String", # Output only. ID of the Campaign Manager advertiser associated with this customer.
"networkId": "A String", # Output only. ID of the Campaign Manager network associated with this customer.
"timeZone": "A String", # Output only. Time zone of the Campaign Manager network associated with this customer in IANA Time Zone Database format, such as America/New_York.
},
"engineId": "A String", # Output only. ID of the account in the external engine account.
"finalUrlSuffix": "A String", # The URL template for appending params to the final URL.
"hasPartnersBadge": True or False, # Output only. Whether the Customer has a Partners program badge. If the Customer is not associated with the Partners program, this will be false. For more information, see https://support.google.com/partners/answer/3125774.
"id": "A String", # Output only. The ID of the customer.
"imageAssetAutoMigrationDone": True or False, # Output only. True if feed based image has been migrated to asset based image.
"imageAssetAutoMigrationDoneDateTime": "A String", # Output only. Timestamp of migration from feed based image to asset base image in yyyy-MM-dd HH:mm:ss format.
"lastModifiedTime": "A String", # Output only. The datetime when this customer was last modified. The datetime is in the customer's time zone and in "yyyy-MM-dd HH:mm:ss.ssssss" format.
"localServicesSettings": { # Settings for Local Services customer. # Output only. Settings for Local Services customer.
"granularInsuranceStatuses": [ # Output only. A read-only list of geo vertical level insurance statuses.
{ # Insurance status at geo + vertical level.
"categoryId": "A String", # Output only. Service category associated with the status. For example, xcat:service_area_business_plumber. For more details see: https://developers.google.com/google-ads/api/data/codes-formats#local_services_ids
"geoCriterionId": "A String", # Output only. Geotarget criterion ID associated with the status. Can be on country or state/province geo level, depending on requirements and location. See https://developers.google.com/google-ads/api/data/geotargets for more information.
"verificationStatus": "A String", # Output only. Granular insurance status, per geo + vertical.
},
],
"granularLicenseStatuses": [ # Output only. A read-only list of geo vertical level license statuses.
{ # License status at geo + vertical level.
"categoryId": "A String", # Output only. Service category associated with the status. For example, xcat:service_area_business_plumber. For more details see: https://developers.google.com/google-ads/api/data/codes-formats#local_services_ids
"geoCriterionId": "A String", # Output only. Geotarget criterion ID associated with the status. Can be on country or state/province geo level, depending on requirements and location. See https://developers.google.com/google-ads/api/data/geotargets for more information.
"verificationStatus": "A String", # Output only. Granular license status, per geo + vertical.
},
],
},
"locationAssetAutoMigrationDone": True or False, # Output only. True if feed based location has been migrated to asset based location.
"locationAssetAutoMigrationDoneDateTime": "A String", # Output only. Timestamp of migration from feed based location to asset base location in yyyy-MM-dd HH:mm:ss format.
"manager": True or False, # Output only. Whether the customer is a manager.
"managerDescriptiveName": "A String", # Output only. The descriptive name of the manager.
"managerId": "A String", # Output only. The customer ID of the manager. A 0 value indicates that the customer has no SA360 manager.
"optimizationScore": 3.14, # Output only. Optimization score of the customer. Optimization score is an estimate of how well a customer's campaigns are set to perform. It ranges from 0% (0.0) to 100% (1.0). This field is null for all manager customers, and for unscored non-manager customers. See "About optimization score" at https://support.google.com/google-ads/answer/9061546. This field is read-only.
"optimizationScoreWeight": 3.14, # Output only. Optimization score weight of the customer. Optimization score weight can be used to compare/aggregate optimization scores across multiple non-manager customers. The aggregate optimization score of a manager is computed as the sum over all of their customers of `Customer.optimization_score * Customer.optimization_score_weight`. This field is 0 for all manager customers, and for unscored non-manager customers. This field is read-only.
"payPerConversionEligibilityFailureReasons": [ # Output only. Reasons why the customer is not eligible to use PaymentMode.CONVERSIONS. If the list is empty, the customer is eligible. This field is read-only.
"A String",
],
"remarketingSetting": { # Remarketing setting for a customer. # Output only. Remarketing setting for a customer.
"googleGlobalSiteTag": "A String", # Output only. The Google tag.
},
"resourceName": "A String", # Immutable. The resource name of the customer. Customer resource names have the form: `customers/{customer_id}`
"status": "A String", # Output only. The status of the customer.
"subManagerDescriptiveName": "A String", # Output only. The descriptive name of the sub manager.
"subManagerId": "A String", # Output only. The customer ID of the sub manager. A 0 value indicates that the customer has no sub SA360 manager.
"testAccount": True or False, # Output only. Whether the customer is a test account.
"timeZone": "A String", # Immutable. The local timezone ID of the customer.
"trackingUrlTemplate": "A String", # The URL template for constructing a tracking URL out of parameters.
"videoBrandSafetySuitability": "A String", # Brand Safety setting at the account level. Allows for selecting an inventory type to show your ads on content that is the right fit for your brand. See https://support.google.com/google-ads/answer/7515513.
"videoCustomer": { # Video specific information about a Customer. # Video specific information about a Customer.
"thirdPartyIntegrationPartners": { # Container for Customer level third party integration partners. # Third Party integration partners.
"brandLiftIntegrationPartners": [ # Allowed third party integration partners for Brand Lift verification.
{ # Container for third party Brand Lift integration data for Customer.
"allowShareCost": True or False, # If true, cost data can be shared with this vendor.
"brandLiftIntegrationPartner": "A String", # Allowed Third Party integration partners for Brand Lift verification.
},
],
"brandSafetyIntegrationPartners": [ # Allowed third party integration partners for brand safety verification.
{ # Container for third party brand safety integration data for Customer.
"brandSafetyIntegrationPartner": "A String", # Allowed third party integration partners for brand safety verification.
},
],
"reachIntegrationPartners": [ # Allowed third party integration partners for reach verification.
{ # Container for third party reach integration data for Customer.
"allowShareCost": True or False, # If true, cost data can be shared with this vendor.
"reachIntegrationPartner": "A String", # Allowed Third Party integration partners for reach verification.
},
],
"viewabilityIntegrationPartners": [ # Allowed third party integration partners for YouTube viewability verification.
{ # Container for third party viewability integration data for Customer.
"allowShareCost": True or False, # If true, cost data can be shared with this vendor.
"viewabilityIntegrationPartner": "A String", # Allowed third party integration partners for YouTube viewability verification.
},
],
},
},
},
"updateMask": "A String", # FieldMask that determines which resource fields are modified in an update.
},
"responseContentType": "A String", # The response content type setting. Determines whether the mutable resource or just the resource name should be returned post mutation.
"validateOnly": True or False, # If true, the request is validated but not executed. Only errors are returned, not results.
}
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
2 - v2 error format
Returns:
An object of the form:
{ # Response message for customer mutate.
"result": { # The result for the customer mutate. # Result for the mutate.
"customer": { # A customer. # The mutated customer with only mutable fields after mutate. The fields will only be returned when response_content_type is set to "MUTABLE_RESOURCE".
"accountLevel": "A String", # Output only. The account level of the customer: Manager, Sub-manager, Associate manager, Service account.
"accountStatus": "A String", # Output only. Account status, for example, Enabled, Paused, Removed, etc.
"accountType": "A String", # Output only. Engine account type, for example, Google Ads, Microsoft Advertising, Yahoo Japan, Baidu, Facebook, Engine Track, etc.
"associateManagerDescriptiveName": "A String", # Output only. The descriptive name of the associate manager.
"associateManagerId": "A String", # Output only. The customer ID of the associate manager. A 0 value indicates that the customer has no SA360 associate manager.
"autoTaggingEnabled": True or False, # Whether auto-tagging is enabled for the customer.
"callReportingSetting": { # Call reporting setting for a customer. # Call reporting setting for a customer.
"callConversionAction": "A String", # Customer-level call conversion action to attribute a call conversion to. If not set a default conversion action is used. Only in effect when call_conversion_reporting_enabled is set to true.
"callConversionReportingEnabled": True or False, # Whether to enable call conversion reporting.
"callReportingEnabled": True or False, # Enable reporting of phone call events by redirecting them through Google System.
},
"containsEuPoliticalAdvertising": "A String", # Output only. Returns the advertiser self-declaration status of whether this customer contains political advertising content targeted towards the European Union. You can use the Google Ads UI to update this account-level declaration, or use the API to update the self-declaration status of individual campaigns.
"conversionTrackingSetting": { # A collection of customer-wide settings related to Search Ads 360 Conversion Tracking. # Conversion tracking setting for a customer.
"acceptedCustomerDataTerms": True or False, # Output only. Whether the customer has accepted customer data terms. If using cross-account conversion tracking, this value is inherited from the manager. This field is read-only. For more information, see https://support.google.com/adspolicy/answer/7475709.
"conversionTrackingId": "A String", # Output only. The conversion tracking id used for this account. This id doesn't indicate whether the customer uses conversion tracking (conversion_tracking_status does). This field is read-only.
"conversionTrackingStatus": "A String", # Output only. Conversion tracking status. It indicates whether the customer is using conversion tracking, and who is the conversion tracking owner of this customer. If this customer is using cross-account conversion tracking, the value returned will differ based on the `login-customer-id` of the request.
"crossAccountConversionTrackingId": "A String", # Output only. The conversion tracking id of the customer's manager. This is set when the customer is opted into cross-account conversion tracking, and it overrides conversion_tracking_id.
"enhancedConversionsForLeadsEnabled": True or False, # Output only. Whether the customer is opted-in for enhanced conversions for leads. If using cross-account conversion tracking, this value is inherited from the manager. This field is read-only.
"googleAdsConversionCustomer": "A String", # The resource name of the customer where conversions are created and managed. This field is read-only.
"googleAdsCrossAccountConversionTrackingId": "A String", # Output only. The conversion tracking id of the customer's manager. This is set when the customer is opted into conversion tracking, and it overrides conversion_tracking_id. This field can only be managed through the Google Ads UI. This field is read-only.
},
"creationTime": "A String", # Output only. The timestamp when this customer was created. The timestamp is in the customer's time zone and in "yyyy-MM-dd HH:mm:ss" format.
"currencyCode": "A String", # Immutable. The currency in which the account operates. A subset of the currency codes from the ISO 4217 standard is supported.
"customerAgreementSetting": { # Customer Agreement Setting for a customer. # Output only. Customer Agreement Setting for a customer.
"acceptedLeadFormTerms": True or False, # Output only. Whether the customer has accepted lead form term of service.
},
"descriptiveName": "A String", # Optional, non-unique descriptive name of the customer.
"doubleClickCampaignManagerSetting": { # DoubleClick Campaign Manager (DCM) setting for a manager customer. # Output only. DoubleClick Campaign Manager (DCM) setting for a manager customer.
"advertiserId": "A String", # Output only. ID of the Campaign Manager advertiser associated with this customer.
"networkId": "A String", # Output only. ID of the Campaign Manager network associated with this customer.
"timeZone": "A String", # Output only. Time zone of the Campaign Manager network associated with this customer in IANA Time Zone Database format, such as America/New_York.
},
"engineId": "A String", # Output only. ID of the account in the external engine account.
"finalUrlSuffix": "A String", # The URL template for appending params to the final URL.
"hasPartnersBadge": True or False, # Output only. Whether the Customer has a Partners program badge. If the Customer is not associated with the Partners program, this will be false. For more information, see https://support.google.com/partners/answer/3125774.
"id": "A String", # Output only. The ID of the customer.
"imageAssetAutoMigrationDone": True or False, # Output only. True if feed based image has been migrated to asset based image.
"imageAssetAutoMigrationDoneDateTime": "A String", # Output only. Timestamp of migration from feed based image to asset base image in yyyy-MM-dd HH:mm:ss format.
"lastModifiedTime": "A String", # Output only. The datetime when this customer was last modified. The datetime is in the customer's time zone and in "yyyy-MM-dd HH:mm:ss.ssssss" format.
"localServicesSettings": { # Settings for Local Services customer. # Output only. Settings for Local Services customer.
"granularInsuranceStatuses": [ # Output only. A read-only list of geo vertical level insurance statuses.
{ # Insurance status at geo + vertical level.
"categoryId": "A String", # Output only. Service category associated with the status. For example, xcat:service_area_business_plumber. For more details see: https://developers.google.com/google-ads/api/data/codes-formats#local_services_ids
"geoCriterionId": "A String", # Output only. Geotarget criterion ID associated with the status. Can be on country or state/province geo level, depending on requirements and location. See https://developers.google.com/google-ads/api/data/geotargets for more information.
"verificationStatus": "A String", # Output only. Granular insurance status, per geo + vertical.
},
],
"granularLicenseStatuses": [ # Output only. A read-only list of geo vertical level license statuses.
{ # License status at geo + vertical level.
"categoryId": "A String", # Output only. Service category associated with the status. For example, xcat:service_area_business_plumber. For more details see: https://developers.google.com/google-ads/api/data/codes-formats#local_services_ids
"geoCriterionId": "A String", # Output only. Geotarget criterion ID associated with the status. Can be on country or state/province geo level, depending on requirements and location. See https://developers.google.com/google-ads/api/data/geotargets for more information.
"verificationStatus": "A String", # Output only. Granular license status, per geo + vertical.
},
],
},
"locationAssetAutoMigrationDone": True or False, # Output only. True if feed based location has been migrated to asset based location.
"locationAssetAutoMigrationDoneDateTime": "A String", # Output only. Timestamp of migration from feed based location to asset base location in yyyy-MM-dd HH:mm:ss format.
"manager": True or False, # Output only. Whether the customer is a manager.
"managerDescriptiveName": "A String", # Output only. The descriptive name of the manager.
"managerId": "A String", # Output only. The customer ID of the manager. A 0 value indicates that the customer has no SA360 manager.
"optimizationScore": 3.14, # Output only. Optimization score of the customer. Optimization score is an estimate of how well a customer's campaigns are set to perform. It ranges from 0% (0.0) to 100% (1.0). This field is null for all manager customers, and for unscored non-manager customers. See "About optimization score" at https://support.google.com/google-ads/answer/9061546. This field is read-only.
"optimizationScoreWeight": 3.14, # Output only. Optimization score weight of the customer. Optimization score weight can be used to compare/aggregate optimization scores across multiple non-manager customers. The aggregate optimization score of a manager is computed as the sum over all of their customers of `Customer.optimization_score * Customer.optimization_score_weight`. This field is 0 for all manager customers, and for unscored non-manager customers. This field is read-only.
"payPerConversionEligibilityFailureReasons": [ # Output only. Reasons why the customer is not eligible to use PaymentMode.CONVERSIONS. If the list is empty, the customer is eligible. This field is read-only.
"A String",
],
"remarketingSetting": { # Remarketing setting for a customer. # Output only. Remarketing setting for a customer.
"googleGlobalSiteTag": "A String", # Output only. The Google tag.
},
"resourceName": "A String", # Immutable. The resource name of the customer. Customer resource names have the form: `customers/{customer_id}`
"status": "A String", # Output only. The status of the customer.
"subManagerDescriptiveName": "A String", # Output only. The descriptive name of the sub manager.
"subManagerId": "A String", # Output only. The customer ID of the sub manager. A 0 value indicates that the customer has no sub SA360 manager.
"testAccount": True or False, # Output only. Whether the customer is a test account.
"timeZone": "A String", # Immutable. The local timezone ID of the customer.
"trackingUrlTemplate": "A String", # The URL template for constructing a tracking URL out of parameters.
"videoBrandSafetySuitability": "A String", # Brand Safety setting at the account level. Allows for selecting an inventory type to show your ads on content that is the right fit for your brand. See https://support.google.com/google-ads/answer/7515513.
"videoCustomer": { # Video specific information about a Customer. # Video specific information about a Customer.
"thirdPartyIntegrationPartners": { # Container for Customer level third party integration partners. # Third Party integration partners.
"brandLiftIntegrationPartners": [ # Allowed third party integration partners for Brand Lift verification.
{ # Container for third party Brand Lift integration data for Customer.
"allowShareCost": True or False, # If true, cost data can be shared with this vendor.
"brandLiftIntegrationPartner": "A String", # Allowed Third Party integration partners for Brand Lift verification.
},
],
"brandSafetyIntegrationPartners": [ # Allowed third party integration partners for brand safety verification.
{ # Container for third party brand safety integration data for Customer.
"brandSafetyIntegrationPartner": "A String", # Allowed third party integration partners for brand safety verification.
},
],
"reachIntegrationPartners": [ # Allowed third party integration partners for reach verification.
{ # Container for third party reach integration data for Customer.
"allowShareCost": True or False, # If true, cost data can be shared with this vendor.
"reachIntegrationPartner": "A String", # Allowed Third Party integration partners for reach verification.
},
],
"viewabilityIntegrationPartners": [ # Allowed third party integration partners for YouTube viewability verification.
{ # Container for third party viewability integration data for Customer.
"allowShareCost": True or False, # If true, cost data can be shared with this vendor.
"viewabilityIntegrationPartner": "A String", # Allowed third party integration partners for YouTube viewability verification.
},
],
},
},
},
"resourceName": "A String", # Returned for successful operations.
},
}
removeCampaignAutomaticallyCreatedAsset(customerId, body=None, x__xgafv=None)
Removes automatically created assets from a campaign. List of thrown errors: [AuthenticationError]() [AuthorizationError]() [ContextError]() [FieldError]() [InternalError]() [MutateError]() [PartialFailureError]() [QuotaError]() [RequestError]()
Args:
customerId: string, Required. The ID of the customer whose assets are being removed. (required)
body: object, The request body.
The object takes the form of:
{ # Request message for AutomaticallyCreatedAssetRemovalService.RemoveCampaignAutomaticallyCreatedAsset.
"operations": [ # Required. The list of operations.
{ # A single operation to remove an automatically created asset from a campaign.
"asset": "A String", # Required. The resource name of the asset to remove.
"campaign": "A String", # Required. The resource name of the campaign.
"fieldType": "A String", # Required. The field type of the asset to remove.
},
],
"partialFailure": True or False, # Required. If true, successful operations will be carried out and invalid operations will return errors. If false, all operations will be carried out in one transaction if and only if they are all valid.
}
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
2 - v2 error format
Returns:
An object of the form:
{ # Response message for AutomaticallyCreatedAssetRemovalService.RemoveCampaignAutomaticallyCreatedAsset.
"partialFailureError": { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # Errors that pertain to AutomaticallyCreatedAssetRemoval failures in the partial failure mode. Returned when all errors occur inside the operations. If any errors occur outside the operations (for example, auth errors), RPC level error will be returned. See https://developers.google.com/google-ads/api/docs/best-practices/partial-failures for more information about partial failure.
"code": 42, # The status code, which should be an enum value of google.rpc.Code.
"details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
{
"a_key": "", # Properties of the object. Contains field @type with type URL.
},
],
"message": "A String", # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
},
}
suggestTravelAssets(customerId, body=None, x__xgafv=None)
Returns Travel Asset suggestions. Asset suggestions are returned on a best-effort basis. There are no guarantees that all possible asset types will be returned for any given hotel property.
Args:
customerId: string, Required. The ID of the customer. (required)
body: object, The request body.
The object takes the form of:
{ # Request message for TravelAssetSuggestionService.SuggestTravelAssets.
"languageOption": "A String", # Required. The language specifications in BCP 47 format (for example, en-US, zh-CN, etc.) for the asset suggestions. Text will be in this language. Usually matches one of the campaign target languages.
"placeIds": [ # The Google Maps Place IDs of hotels for which assets are requested. See https://developers.google.com/places/web-service/place-id for more information.
"A String",
],
}
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
2 - v2 error format
Returns:
An object of the form:
{ # Response message for TravelAssetSuggestionService.SuggestTravelAssets.
"hotelAssetSuggestions": [ # Asset suggestions for each place ID submitted in the request.
{ # Message containing the asset suggestions for a hotel.
"callToAction": "A String", # Call to action type.
"finalUrl": "A String", # Suggested final URL for an AssetGroup.
"hotelName": "A String", # Hotel name in requested language.
"imageAssets": [ # Image assets such as landscape/portrait/square, etc.
{ # A single image asset suggestion for a hotel.
"assetFieldType": "A String", # The Image asset type. For example, MARKETING_IMAGE, PORTRAIT_MARKETING_IMAGE, etc.
"uri": "A String", # URI for the image.
},
],
"placeId": "A String", # Google Places ID of the hotel.
"status": "A String", # The status of the hotel asset suggestion.
"textAssets": [ # Text assets such as headline, description, etc.
{ # A single text asset suggestion for a hotel.
"assetFieldType": "A String", # The text asset type. For example, HEADLINE, DESCRIPTION, etc.
"text": "A String", # Asset text in requested language.
},
],
},
],
}
uploadCallConversions(customerId, body=None, x__xgafv=None)
Processes the given call conversions. List of thrown errors: [AuthenticationError]() [AuthorizationError]() [HeaderError]() [InternalError]() [PartialFailureError]() [QuotaError]() [RequestError]()
Args:
customerId: string, Required. The ID of the customer performing the upload. (required)
body: object, The request body.
The object takes the form of:
{ # Request message for ConversionUploadService.UploadCallConversions.
"conversions": [ # Required. The conversions that are being uploaded.
{ # A call conversion.
"callStartDateTime": "A String", # The date time at which the call occurred. The timezone must be specified. The format is "yyyy-mm-dd hh:mm:ss+|-hh:mm", for example, "2019-01-01 12:32:45-08:00".
"callerId": "A String", # The caller id from which this call was placed. Caller id is expected to be in E.164 format with preceding '+' sign, for example, "+16502531234".
"consent": { # Consent # The consent setting for the event.
"adPersonalization": "A String", # This represents consent for ad personalization. This can only be set for OfflineUserDataJobService and UserDataService.
"adUserData": "A String", # This represents consent for ad user data.
},
"conversionAction": "A String", # Resource name of the conversion action associated with this conversion. Note: Although this resource name consists of a customer id and a conversion action id, validation will ignore the customer id and use the conversion action id as the sole identifier of the conversion action.
"conversionDateTime": "A String", # The date time at which the conversion occurred. Must be after the call time. The timezone must be specified. The format is "yyyy-mm-dd hh:mm:ss+|-hh:mm", for example, "2019-01-01 12:32:45-08:00".
"conversionValue": 3.14, # The value of the conversion for the advertiser.
"currencyCode": "A String", # Currency associated with the conversion value. This is the ISO 4217 3-character currency code. For example: USD, EUR.
"customVariables": [ # The custom variables associated with this conversion.
{ # A custom variable.
"conversionCustomVariable": "A String", # Resource name of the custom variable associated with this conversion. Note: Although this resource name consists of a customer id and a conversion custom variable id, validation will ignore the customer id and use the conversion custom variable id as the sole identifier of the conversion custom variable.
"value": "A String", # The value string of this custom variable. The value of the custom variable should not contain private customer data, such as email addresses or phone numbers.
},
],
},
],
"partialFailure": True or False, # Required. If `true`, successful operations will be carried out and invalid operations will return errors. If `false`, all operations will be carried out in one transaction if and only if they are all valid. This should always be set to `true`.
"validateOnly": True or False, # If true, the request is validated but not executed. Only errors are returned, not results.
}
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
2 - v2 error format
Returns:
An object of the form:
{ # Response message for ConversionUploadService.UploadCallConversions.
"partialFailureError": { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # Errors that pertain to conversion failures in the partial failure mode. Returned when all errors occur inside the conversions. If any errors occur outside the conversions (for example, auth errors), we return an RPC level error.
"code": 42, # The status code, which should be an enum value of google.rpc.Code.
"details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
{
"a_key": "", # Properties of the object. Contains field @type with type URL.
},
],
"message": "A String", # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
},
"results": [ # Returned for successfully processed conversions. Proto will be empty for rows that received an error. Results are not returned when `validate_only` is `true`.
{ # Identifying information for a successfully processed CallConversionUpload.
"callStartDateTime": "A String", # The date time at which the call occurred. The format is "yyyy-mm-dd hh:mm:ss+|-hh:mm", for example, "2019-01-01 12:32:45-08:00".
"callerId": "A String", # The caller id from which this call was placed. Caller id is expected to be in E.164 format with preceding '+' sign.
"conversionAction": "A String", # Resource name of the conversion action associated with this conversion.
"conversionDateTime": "A String", # The date time at which the conversion occurred. The format is "yyyy-mm-dd hh:mm:ss+|-hh:mm", for example, "2019-01-01 12:32:45-08:00".
},
],
}
uploadClickConversions(customerId, body=None, x__xgafv=None)
Processes the given click conversions. List of thrown errors: [AuthenticationError]() [AuthorizationError]() [ConversionUploadError]() [HeaderError]() [InternalError]() [PartialFailureError]() [QuotaError]() [RequestError]()
Args:
customerId: string, Required. The ID of the customer performing the upload. (required)
body: object, The request body.
The object takes the form of:
{ # Request message for ConversionUploadService.UploadClickConversions.
"conversions": [ # Required. The conversions that are being uploaded.
{ # A click conversion.
"cartData": { # Contains additional information about cart data. # The cart data associated with this conversion.
"feedCountryCode": "A String", # The country code associated with the feed where the items are uploaded.
"feedLanguageCode": "A String", # The language code associated with the feed where the items are uploaded.
"items": [ # Data of the items purchased.
{ # Contains data of the items purchased.
"productId": "A String", # The shopping id of the item. Must be equal to the Merchant Center product identifier.
"quantity": 42, # Number of items sold.
"unitPrice": 3.14, # Unit price excluding tax, shipping, and any transaction level discounts. The currency code is the same as that in the `ClickConversion` message.
},
],
"localTransactionCost": 3.14, # Sum of all transaction level discounts, such as free shipping and coupon discounts for the whole cart. The currency code is the same as that in the `ClickConversion` message.
"merchantId": "A String", # The Merchant Center ID where the items are uploaded.
},
"consent": { # Consent # The consent setting for the event.
"adPersonalization": "A String", # This represents consent for ad personalization. This can only be set for OfflineUserDataJobService and UserDataService.
"adUserData": "A String", # This represents consent for ad user data.
},
"conversionAction": "A String", # Resource name of the conversion action associated with this conversion. Note: Although this resource name consists of a customer id and a conversion action id, validation will ignore the customer id and use the conversion action id as the sole identifier of the conversion action.
"conversionDateTime": "A String", # The date time at which the conversion occurred. Must be after the click time. The timezone must be specified. The format is "yyyy-mm-dd hh:mm:ss+|-hh:mm", for example, "2019-01-01 12:32:45-08:00".
"conversionEnvironment": "A String", # The environment this conversion was recorded on, for example, App or Web.
"conversionValue": 3.14, # The value of the conversion for the advertiser.
"currencyCode": "A String", # Currency associated with the conversion value. This is the ISO 4217 3-character currency code. For example: USD, EUR.
"customVariables": [ # The custom variables associated with this conversion.
{ # A custom variable.
"conversionCustomVariable": "A String", # Resource name of the custom variable associated with this conversion. Note: Although this resource name consists of a customer id and a conversion custom variable id, validation will ignore the customer id and use the conversion custom variable id as the sole identifier of the conversion custom variable.
"value": "A String", # The value string of this custom variable. The value of the custom variable should not contain private customer data, such as email addresses or phone numbers.
},
],
"customerType": "A String", # Type of the customer associated with the conversion (new or returning).
"externalAttributionData": { # Contains additional information about externally attributed conversions. # Additional data about externally attributed conversions. This field is required for conversions with an externally attributed conversion action, but should not be set otherwise.
"externalAttributionCredit": 3.14, # Represents the fraction of the conversion that is attributed to the Google Ads click.
"externalAttributionModel": "A String", # Specifies the attribution model name.
},
"gbraid": "A String", # The URL parameter for clicks associated with app conversions.
"gclid": "A String", # The Google click ID (gclid) associated with this conversion.
"orderId": "A String", # The order ID associated with the conversion. An order id can only be used for one conversion per conversion action.
"sessionAttributesEncoded": "A String", # The session attributes for the event, represented as a base64-encoded JSON string. The content should be generated by Google-provided library. To set session attributes individually, use session_attributes_key_value_pairs instead. This field is only available to allowlisted users. To include this field in conversion imports, upgrade to the Data Manager API.
"sessionAttributesKeyValuePairs": { # Contains session attributes of the conversion, represented as key-value pairs. # The session attributes for the event, represented as key-value pairs. This field is only available to allowlisted users. To include this field in conversion imports, upgrade to the Data Manager API.
"keyValuePairs": [ # Required. The session attributes for the conversion.
{ # Contains one session attribute of the conversion.
"sessionAttributeKey": "A String", # Required. The name of the session attribute.
"sessionAttributeValue": "A String", # Required. The value of the session attribute.
},
],
},
"userIdentifiers": [ # The user identifiers associated with this conversion. Only hashed_email and hashed_phone_number are supported for conversion uploads. The maximum number of user identifiers for each conversion is 5.
{ # identifying information.
"addressInfo": { # Address identifier of offline data. # Address information.
"city": "A String", # City of the address. Only accepted for Store Sales.
"countryCode": "A String", # 2-letter country code in ISO-3166-1 alpha-2 of the user's address.
"hashedFirstName": "A String", # First name of the user, which is hashed as SHA-256 after normalized (Lowercase all characters; Remove any extra spaces before, after, and in between).
"hashedLastName": "A String", # Last name of the user, which is hashed as SHA-256 after normalized (lower case only and no punctuation).
"hashedStreetAddress": "A String", # The street address of the user hashed using SHA-256 hash function after normalization (lower case only). Only accepted for ConversionAdjustmentUploadService.
"postalCode": "A String", # Postal code of the user's address.
"state": "A String", # State code of the address. Only accepted for Store Sales.
},
"hashedEmail": "A String", # Hashed email address using SHA-256 hash function after normalization.
"hashedPhoneNumber": "A String", # Hashed phone number using SHA-256 hash function after normalization (E164 standard).
"mobileId": "A String", # Mobile device ID (advertising ID/IDFA).
"thirdPartyUserId": "A String", # Advertiser-assigned user ID for Customer Match upload, or third-party-assigned user ID for
"userIdentifierSource": "A String", # Source of the user identifier when the upload is from Store Sales
},
],
"userIpAddress": "A String", # The IP address of the customer when they arrived on the landing page after an ad click but before a conversion event. This is the IP address of the customer's device, not the advertiser's server. Google Ads does not support IP address matching for end users in the European Economic Area (EEA), United Kingdom (UK), or Switzerland (CH). Add logic to conditionally exclude sharing IP addresses from users from these regions and ensure that you provide users with clear and comprehensive information about the data you collect on your sites, apps, and other properties and get consent where required by law or any applicable Google policies. See [About offline conversion imports](//support.google.com/google-ads/answer/2998031) page for more details. This field is only available to allowlisted users. To include this field in conversion imports, upgrade to the Data Manager API.
"wbraid": "A String", # The URL parameter for clicks associated with web conversions.
},
],
"jobId": 42, # Optional. Optional input to set job ID. Must be a non-negative number that is less than 2^31 if provided. If this field is not provided, the API will generate a job ID in the range [2^31, (2^63)-1]. The API will return the value for this request in the `job_id` field of the `UploadClickConversionsResponse`.
"partialFailure": True or False, # Required. If `true`, successful operations will be carried out and invalid operations will return errors. If `false`, all operations will be carried out in one transaction if and only if they are all valid. This should always be set to `true`.
"validateOnly": True or False, # If `true`, the request is validated but not executed. Only errors are returned, not results.
}
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
2 - v2 error format
Returns:
An object of the form:
{ # Response message for ConversionUploadService.UploadClickConversions.
"jobId": "A String", # Job ID for the upload batch.
"partialFailureError": { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # Errors that pertain to conversion failures in the partial failure mode. Returned when all errors occur inside the conversions. If any errors occur outside the conversions (for example, auth errors), we return an RPC level error.
"code": 42, # The status code, which should be an enum value of google.rpc.Code.
"details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
{
"a_key": "", # Properties of the object. Contains field @type with type URL.
},
],
"message": "A String", # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
},
"results": [ # Returned for successfully processed conversions. Proto will be empty for rows that received an error. Results are not returned when `validate_only` is `true`.
{ # Identifying information for a successfully processed `ClickConversion`.
"conversionAction": "A String", # Resource name of the conversion action associated with this conversion.
"conversionDateTime": "A String", # The date time at which the conversion occurred. The format is "yyyy-mm-dd hh:mm:ss+|-hh:mm", for example, "2019-01-01 12:32:45-08:00".
"gbraid": "A String", # The URL parameter for clicks associated with app conversions.
"gclid": "A String", # The Google Click ID (gclid) associated with this conversion.
"userIdentifiers": [ # The user identifiers associated with this conversion. Only hashed_email and hashed_phone_number are supported for conversion uploads. The maximum number of user identifiers for each conversion is 5.
{ # identifying information.
"addressInfo": { # Address identifier of offline data. # Address information.
"city": "A String", # City of the address. Only accepted for Store Sales.
"countryCode": "A String", # 2-letter country code in ISO-3166-1 alpha-2 of the user's address.
"hashedFirstName": "A String", # First name of the user, which is hashed as SHA-256 after normalized (Lowercase all characters; Remove any extra spaces before, after, and in between).
"hashedLastName": "A String", # Last name of the user, which is hashed as SHA-256 after normalized (lower case only and no punctuation).
"hashedStreetAddress": "A String", # The street address of the user hashed using SHA-256 hash function after normalization (lower case only). Only accepted for ConversionAdjustmentUploadService.
"postalCode": "A String", # Postal code of the user's address.
"state": "A String", # State code of the address. Only accepted for Store Sales.
},
"hashedEmail": "A String", # Hashed email address using SHA-256 hash function after normalization.
"hashedPhoneNumber": "A String", # Hashed phone number using SHA-256 hash function after normalization (E164 standard).
"mobileId": "A String", # Mobile device ID (advertising ID/IDFA).
"thirdPartyUserId": "A String", # Advertiser-assigned user ID for Customer Match upload, or third-party-assigned user ID for
"userIdentifierSource": "A String", # Source of the user identifier when the upload is from Store Sales
},
],
"wbraid": "A String", # The URL parameter for clicks associated with web conversions.
},
],
}
uploadConversionAdjustments(customerId, body=None, x__xgafv=None)
Processes the given conversion adjustments. List of thrown errors: [AuthenticationError]() [AuthorizationError]() [HeaderError]() [InternalError]() [PartialFailureError]() [QuotaError]() [RequestError]()
Args:
customerId: string, Required. The ID of the customer performing the upload. (required)
body: object, The request body.
The object takes the form of:
{ # Request message for ConversionAdjustmentUploadService.UploadConversionAdjustments.
"conversionAdjustments": [ # Required. The conversion adjustments that are being uploaded.
{ # A conversion adjustment.
"adjustmentDateTime": "A String", # The date time at which the adjustment occurred. Must be after the conversion_date_time. The timezone must be specified. The format is "yyyy-mm-dd hh:mm:ss+|-hh:mm", for example, "2019-01-01 12:32:45-08:00".
"adjustmentType": "A String", # The adjustment type.
"conversionAction": "A String", # Resource name of the conversion action associated with this conversion adjustment. Note: Although this resource name consists of a customer id and a conversion action id, validation will ignore the customer id and use the conversion action id as the sole identifier of the conversion action.
"gclidDateTimePair": { # Uniquely identifies a conversion that was reported without an order ID specified. # For adjustments, uniquely identifies a conversion that was reported without an order ID specified. If the adjustment_type is ENHANCEMENT, this value is optional but may be set in addition to the order_id.
"conversionDateTime": "A String", # The date time at which the original conversion for this adjustment occurred. The timezone must be specified. The format is "yyyy-mm-dd hh:mm:ss+|-hh:mm", for example, "2019-01-01 12:32:45-08:00".
"gclid": "A String", # Google click ID (gclid) associated with the original conversion for this adjustment.
},
"orderId": "A String", # The order ID of the conversion to be adjusted. If the conversion was reported with an order ID specified, that order ID must be used as the identifier here. The order ID is required for enhancements.
"restatementValue": { # Contains information needed to restate a conversion's value. # Information needed to restate the conversion's value. Required for restatements. Should not be supplied for retractions. An error will be returned if provided for a retraction. NOTE: If you want to upload a second restatement with a different adjusted value, it must have a new, more recent, adjustment occurrence time. Otherwise, it will be treated as a duplicate of the previous restatement and ignored.
"adjustedValue": 3.14, # The restated conversion value. This is the value of the conversion after restatement. For example, to change the value of a conversion from 100 to 70, an adjusted value of 70 should be reported. NOTE: If you want to upload a second restatement with a different adjusted value, it must have a new, more recent, adjustment occurrence time. Otherwise, it will be treated as a duplicate of the previous restatement and ignored.
"currencyCode": "A String", # The currency of the restated value. If not provided, then the default currency from the conversion action is used, and if that is not set then the account currency is used. This is the ISO 4217 3-character currency code for example, USD or EUR.
},
"userAgent": "A String", # The user agent to enhance the original conversion. This can be found in your user's HTTP request header when they convert on your web page. Example, "Mozilla/5.0 (iPhone; CPU iPhone OS 12_2 like Mac OS X)". User agent can only be specified in enhancements with user identifiers.
"userIdentifiers": [ # The user identifiers to enhance the original conversion. ConversionAdjustmentUploadService only accepts user identifiers in enhancements. The maximum number of user identifiers for each enhancement is 5.
{ # identifying information.
"addressInfo": { # Address identifier of offline data. # Address information.
"city": "A String", # City of the address. Only accepted for Store Sales.
"countryCode": "A String", # 2-letter country code in ISO-3166-1 alpha-2 of the user's address.
"hashedFirstName": "A String", # First name of the user, which is hashed as SHA-256 after normalized (Lowercase all characters; Remove any extra spaces before, after, and in between).
"hashedLastName": "A String", # Last name of the user, which is hashed as SHA-256 after normalized (lower case only and no punctuation).
"hashedStreetAddress": "A String", # The street address of the user hashed using SHA-256 hash function after normalization (lower case only). Only accepted for ConversionAdjustmentUploadService.
"postalCode": "A String", # Postal code of the user's address.
"state": "A String", # State code of the address. Only accepted for Store Sales.
},
"hashedEmail": "A String", # Hashed email address using SHA-256 hash function after normalization.
"hashedPhoneNumber": "A String", # Hashed phone number using SHA-256 hash function after normalization (E164 standard).
"mobileId": "A String", # Mobile device ID (advertising ID/IDFA).
"thirdPartyUserId": "A String", # Advertiser-assigned user ID for Customer Match upload, or third-party-assigned user ID for
"userIdentifierSource": "A String", # Source of the user identifier when the upload is from Store Sales
},
],
},
],
"jobId": 42, # Optional. Optional input to set job ID. Must be a non-negative number that is less than 2^31 if provided. If this field is not provided, the API will generate a job ID in the range [2^31, (2^63)-1]. The API will return the value for this request in the `job_id` field of the `UploadConversionAdjustmentsResponse`.
"partialFailure": True or False, # Required. If true, successful operations will be carried out and invalid operations will return errors. If false, all operations will be carried out in one transaction if and only if they are all valid. This should always be set to true. See https://developers.google.com/google-ads/api/docs/best-practices/partial-failures for more information about partial failure.
"validateOnly": True or False, # If true, the request is validated but not executed. Only errors are returned, not results.
}
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
2 - v2 error format
Returns:
An object of the form:
{ # Response message for ConversionAdjustmentUploadService.UploadConversionAdjustments.
"jobId": "A String", # Job ID for the upload batch.
"partialFailureError": { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # Errors that pertain to conversion adjustment failures in the partial failure mode. Returned when all errors occur inside the adjustments. If any errors occur outside the adjustments (for example, auth errors), we return an RPC level error. See https://developers.google.com/google-ads/api/docs/best-practices/partial-failures for more information about partial failure.
"code": 42, # The status code, which should be an enum value of google.rpc.Code.
"details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
{
"a_key": "", # Properties of the object. Contains field @type with type URL.
},
],
"message": "A String", # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
},
"results": [ # Returned for successfully processed conversion adjustments. Proto will be empty for rows that received an error. Results are not returned when validate_only is true.
{ # Information identifying a successfully processed ConversionAdjustment.
"adjustmentDateTime": "A String", # The date time at which the adjustment occurred. The format is "yyyy-mm-dd hh:mm:ss+|-hh:mm", for example, "2019-01-01 12:32:45-08:00".
"adjustmentType": "A String", # The adjustment type.
"conversionAction": "A String", # Resource name of the conversion action associated with this conversion adjustment.
"gclidDateTimePair": { # Uniquely identifies a conversion that was reported without an order ID specified. # The gclid and conversion date time of the conversion.
"conversionDateTime": "A String", # The date time at which the original conversion for this adjustment occurred. The timezone must be specified. The format is "yyyy-mm-dd hh:mm:ss+|-hh:mm", for example, "2019-01-01 12:32:45-08:00".
"gclid": "A String", # Google click ID (gclid) associated with the original conversion for this adjustment.
},
"orderId": "A String", # The order ID of the conversion to be adjusted.
},
],
}