function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
ikapikap 

How to obtain Lead Source details for Google Adwords using API?

I have to implement custom WebToLead landing page.

Standard SalesForce page submits lead form data over WevToLead servlet where the information is being stored in the database.
At the same time SalesForce populates Lead Source Details record with Campaign name, Ad Group, Keyword, Keyword phrase etc in case of Google ad lead source, or Referring Url, search engine and keyword phrase in case of organic lead source.

There is no problem to insert/update new lead information using API.

The problem is to to retrieve Lead Source Details information.

Is there any way to get Lead Source Details information using API?

Thanks,

-igor
ksks
Hi igor -

The "Lead Source Details" is an activity record associated to the lead that is created approx 5 mins after the lead is submitted fcrom the website (and only created for those leads that contain the salesforce javascript tracking code)

Therefore, you should be able to access the Lead Source Details record via the API.

-Kraig
ikapikap
Hi Kraig,

Thank you for the prompt response,

I am lookling the way to populate 'Lead Source Details' without usage of web2lead servlet.

I could include __sfga call into my custom lead form.
Is there any way to pass the generated tracking variables to the server during upsert  API call for lead object?

Thank you,

- igor
dhongdhong
were you able to figure out a solution for this?


Message Edited by dhong on 11-14-2008 09:19 PM
mshelmanmshelman
Perhaps this is what you're looking for:

Submitting Lead to Salesforce using PHP w/ cURL