Reputation: 4646
I'm about to create my first HTML5 ad and to upload it to my AdWords campaign. Any chance I can somehow get AdID of the device that reuqests my HTML5 ad? I wonder if I can achieve it with my ad's Javascript code.
Upvotes: 3
Views: 1979
Reputation: 978
<script type="text/javascript">
function trackConv(google_conversion_id, google_conversion_label) {
var image = new Image(1, 1);
image.src = "//www.googleadservices.com/pagead/conversion/" + google_conversion_id + "/?label=" + google_conversion_label + "&script=0";
}
</script>
<a onclick="trackConv(1234567890, 'LQV8CNq6RxCKlPbvAw');" href="http://www.example.com">Link</a>
Upvotes: 0
Reputation: 183
Maybe you can skip doing it in the ad itself, and add a value track parameter to your tracking template? e.g. {lpurl}?adid={criteria}
https://support.google.com/adwords/answer/2375447?co=ADWORDS.IsAWNCustomer%3Dfalse&hl=en#
Upvotes: 3