Upsert conversion
PUT/ad-publishing/google/conversions
Create or update a Google Ads conversion action
Request
Version stringrequired
API Version
Available options
v3- application/json
- Body
- Example (auto)
Bodyrequired
locationIdstringrequired
Location identifier
conversionIdstring
Conversion identifier
namestringrequired
Conversion name
typestringrequired
Conversion action type. Only UPLOAD_CLICKS is supported — the conversion list endpoint reads back UPLOAD_CLICKS actions only, so a conversion created with any other type would never be returned.
Available options
UPLOAD_CLICKScategorystringrequired
Conversion action category
Available options
DEFAULTPAGE_VIEWPURCHASESIGNUPLEADDOWNLOADADD_TO_CARTBEGIN_CHECKOUTSUBSCRIBE_PAIDPHONE_CALL_LEADIMPORTED_LEADSUBMIT_LEAD_FORMvalueSettingsobjectrequired
Value settings that control how monetary value is attributed to conversions
countingTypestringrequired
How conversions are counted per interaction
Available options
ONE_PER_CLICKMANY_PER_CLICKattributionModelstringrequired
Attribution model used to credit conversions
Available options
GOOGLE_SEARCH_ATTRIBUTION_DATA_DRIVENGOOGLE_ADS_LAST_CLICKclickThroughWindownumberrequired
Click-through conversion window in days
{
"locationId": "loc_abc123",
"conversionId": "conv_456",
"name": "Purchase Conversion",
"type": "UPLOAD_CLICKS",
"category": "PURCHASE",
"valueSettings": {
"defaultValue": "10.00",
"defaultCurrencyCode": "USD",
"alwaysUseDefaultValue": false
},
"countingType": "ONE_PER_CLICK",
"attributionModel": "GOOGLE_ADS_LAST_CLICK",
"clickThroughWindow": 30
}
Resource name of the created or updated conversion action
- application/json
- Schema
- Example (auto)
Schema
resourceNamestringrequired
Resource name of the created or updated record
{
"resourceName": "customers/6776452901/conversionActions/7142718149"
}