Lead form submission data comes too late to webhook

99 views
Skip to first unread message

Anna Lysak

unread,
Dec 12, 2023, 3:51:44 PM12/12/23
to Google Ads API and AdWords API Forum
Hi Google Support Team, 

We have running ad campaign (id is 20526134860) and lead form asset attached to this campaign (lead form id is 116586680033). According to current campaign statistics we have 173 leads (interactions), but only 20 leads came to our webhook that is set in this lead form.
If I run query to get lead_form_submission_data using google ads api for this campaign I still receive 20 leads in response. 
Is this expected behavior that leads are available later than we have interactions value in statistics? Why do we have such delays for getting leads?

Request
-------
Method: /google.ads.googleads.v15.services.GoogleAdsService/Search
Headers: {
  "developer-token": "REDACTED",
  "login-customer-id": "9618896025",
  "x-goog-api-client": "gl-python/3.10.12 grpc/1.58.0 gax/2.11.0 gccl/22.1.0 pb/4.24.3",
  "x-goog-request-params": "customer_id=9609770250"
}
Request: customer_id: "9609770250"
query: "\n            SELECT asset.id, \n                asset.name, \n                asset.type, \n                metrics.ctr,\n                metrics.average_cpc,\n                metrics.impressions,\n                metrics.clicks,\n                metrics.interactions,\n                metrics.interaction_rate,\n                metrics.average_cost,\n                metrics.phone_through_rate,\n                metrics.phone_calls,\n                metrics.phone_impressions,\n                metrics.conversions,\n                metrics.cost_per_conversion,\n                metrics.all_conversions,\n                metrics.value_per_all_conversions,\n                metrics.cross_device_conversions,\n                metrics.all_conversions_value,\n                metrics.cost_per_all_conversions,\n                metrics.conversions_value,\n                metrics.cost_micros,\n                segments.date,\n                campaign.id\n           FROM campaign_asset \n           WHERE asset.id=116586680033 AND asset.type=\'LEAD_FORM\'\n                AND campaign.id IN (20526134860)\n         AND segments.date >= \'2023-09-05\' AND segments.date <= \'2037-12-30\'"


Response
-------
Headers: {
  "alt-svc": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000",
  "content-disposition": "attachment",
  "date": "Tue, 12 Dec 2023 20:06:45 GMT",
  "request-id": "VQ1CG4w0yTzgMaO4Bzy-3A"
}
Response: results {
  metrics {
    all_conversions_value: 24
    all_conversions: 34.466542
    average_cost: 1702485.549132948
    average_cpc: 1702485.549132948
    clicks: 173
    conversions_value: 6
    conversions: 11.466542
    cost_micros: 294530000
    cost_per_all_conversions: 8545388.7425086051
    cost_per_conversion: 25686035.074916221
    cross_device_conversions: 0
    ctr: 0.043002734277902063
    impressions: 4023
    interaction_rate: 0.043002734277902063
    interactions: 173
    phone_calls: 0
    phone_impressions: 0
    value_per_all_conversions: 0.69632747027537611
  }
  segments {
    date: "2023-12-12"
  }
}

Then I run request to get leads:
Method: /google.ads.googleads.v15.services.GoogleAdsService/Search
Headers: {
  "developer-token": "REDACTED",
  "login-customer-id": "9618896025",
  "x-goog-api-client": "gl-python/3.10.12 grpc/1.58.0 gax/2.11.0 gccl/22.1.0 pb/4.24.3",
  "x-goog-request-params": "customer_id=9609770250"
}
Request: customer_id: "9609770250"
query: "\n            SELECT lead_form_submission_data.lead_form_submission_fields,\n                lead_form_submission_data.id,\n                lead_form_submission_data.submission_date_time,\n                campaign.id,\n                asset.id\n            FROM lead_form_submission_data\n            WHERE asset.id = 116586680033 AND asset.type = \'LEAD_FORM\'\n                AND campaign.id IN (20526134860)    \n         AND lead_form_submission_data.submission_date_time >= \'2023-09-05 00:00:00\' AND lead_form_submission_data.submission_date_time <= \'2037-12-30 00:00:00\'"


Response
-------
Headers: {
  "alt-svc": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000",
  "content-disposition": "attachment",
  "date": "Tue, 12 Dec 2023 20:06:48 GMT",
  "request-id": "2WsaCnrcpKla_lufXpMjAQ"
}
Response: results {
  asset {
    resource_name: "customers/9609770250/assets/116586680033"
    id: 116586680033
  }
  campaign {
    resource_name: "customers/9609770250/campaigns/20526134860"
    id: 20526134860
  }
  lead_form_submission_data {
    ...... only 20 leads
}

Is it possible to get leads to webhook faster? 
Thanks!

Google Ads API Forum Advisor

unread,
Dec 12, 2023, 10:41:46 PM12/12/23
to an...@odore.com, adwor...@googlegroups.com
Hi,

Thank you for reaching out to the Google Ads API support team.

By reviewing your query, I understand that you would like to know why there was a delay in getting leads when running the query. In order to assist you further, kindly provide us with the uncropped UI screenshot of the Google Ads account by highlighting the number of rows that you can see in the UI.

You can send the details via Reply privately to the author option, or direct private reply to this email.
 
This message is in relation to case "ref:!00D1U01174p.!5004Q02r1SPg:ref"

Thanks,
 
Google Logo Google Ads API Team


Anna Lysak

unread,
Dec 13, 2023, 4:20:02 PM12/13/23
to Google Ads API and AdWords API Forum
Hi I replied privately, but no response, so I am writing to you here..

Could you please investigate why we have such a big delay of receiving leads to webhook?
Thanks in advance.

Screenshot at 2023-12-13 09-31-04.png

Anna Lysak

unread,
Dec 15, 2023, 5:44:43 AM12/15/23
to Google Ads API and AdWords API Forum
Hi !
Do you have any updates on this? This is very important campaign for us, we still have much less leads sent on webhook than value in statistics

Thanks.

Anna Lysak

unread,
Dec 15, 2023, 5:46:47 AM12/15/23
to Google Ads API and AdWords API Forum
Hi, I close this request, as number of interactions in statistics != number of leads.
Could you please tell us which metric shows number of leads?
Thanks!

Google Ads API Forum Advisor

unread,
Dec 15, 2023, 8:58:04 AM12/15/23
to gann...@gmail.com, adwor...@googlegroups.com
Hi Anna,

Thank you for getting back to us. 

As stated in the earlier email, we are getting a successful run on the same query that you have provided to us by obtaining 207 interactions from the API. I recommend retrying the API request at your end.

If the issue still persists, kindly provide us with the complete updated API logs (request and response logs with request-id and request header) generated at your end to assist you further. 

If you are using a client library and haven't enabled the logging yet, I would request you to enable logging for the specific client library that you are using. You can refer to the guides Java.NetPHPPythonRuby or Perl to enable logging at your end. For REST interface requests, you can enable logging via the curl command by using the -i flag.
Reply all
Reply to author
Forward
0 new messages