Reputation: 11
Is there anyway to find the id of an ad that has served from GPT?
The ad response contains creativeId
, campaignId
, etc. but I couldn't find anything related to the ad id
I tried reading the docs and ad manager help center issues but I couldn't find any answers
Upvotes: 1
Views: 403
Reputation: 859
Using the googletag.pubads() object, you can retrieve the following informations for each defined slots :
See here for details. To retrieve data from your first adslot in the page :
googletag.pubads().getSlots()[0].getResponseInformation()
Upvotes: 0