Hi Flint,
Could you please confirm if you are looking for the ad type or the campaign type? You could use the value track parameters: {adgroupid}, {campaignid} and {creative} to get the Ids of the AdGroup, Campaign and Ad. Using
AdGroupAdService.get() and
CampaignService.get() API calls, you could retrieve the ad type and the campaign type. If you would like to know where the click came from: "g" for Google search, "s" for a search partner, or "d" for the Display Network, then you could use {network} parameter. For more information, please check the
guide on ValueTrack parameters.
Let me know if you have further questions.
Thanks,Milind, AdWords API Team.