Get click count and impressions from Google Admanager API

117 views
Skip to first unread message

stagia...@sudouest.fr

unread,
Jan 23, 2019, 10:44:34 AM1/23/19
to Google Ad Manager API Forum
Hello,

I store a line item id in my database. I want using this id, to get the click count and the impressions of my campaign using API.
I saw on different topics that it is possible using a report and getting the information from it, but is there a "faster" way than generating a full report to get these datas ?
thank you

admanagerapi...@google.com

unread,
Jan 23, 2019, 3:20:26 PM1/23/19
to google-doubleclick...@googlegroups.com
Hi Pradeep,

You can use LineItemService.LineItem#deliveryData field from the LineItemService to get the data for total impressions or total clicks. However, we recommend to use the ReportService since it is the best way to pull the delivery metrics.

Hope this helps!

Regards,
Sravani Yelamarthi, Ad Manager API Team
______________________________________________________________________
 An important reminder: v201802 has been deprecated.

 Give us your feedback:
     Feedback Survey

 Also find us on our blog and discussion group:
     http://googleadsdeveloper.blogspot.com/search/label/ad_manager_api
     https://developers.google.com/ad-manager/api/community

--
You received this message because you are subscribed to the Google Groups "Google Ad Manager API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-doubleclick-for-publishers-api+unsubscribe@googlegroups.com.
To post to this group, send email to google-doubleclick-for-publishers-api@googlegroups.com.
Visit this group at https://groups.google.com/group/google-doubleclick-for-publishers-api.
For more options, visit https://groups.google.com/d/optout.

stagia...@sudouest.fr

unread,
Jan 24, 2019, 4:30:48 AM1/24/19
to Google Ad Manager API Forum
thank you for your answer i think i will use the report service then
have a nice day

stagia...@sudouest.fr

unread,
Jan 25, 2019, 4:23:33 AM1/25/19
to Google Ad Manager API Forum
ok i've done it using the report generation but it's quite long
it takes like 30 seconds for a single order, is it normal ?
thank you

Le mercredi 23 janvier 2019 21:20:26 UTC+1, admanagerapi-forumadvisor a écrit :

admanagerapi...@google.com

unread,
Jan 25, 2019, 2:35:27 PM1/25/19
to google-doubleclick...@googlegroups.com
Hello,

It depends on the amount of data you are trying to pull. If it is just one order dimension and one column it should not take that long. I can check from my end, if you can provide the screenshots of the UI query along with the email address making the API call using reply privately to author option.


Regards,
Sravani Yelamarthi, Ad Manager API Team
______________________________________________________________________
 An important reminder: v201802 has been deprecated.

 Give us your feedback:
     Feedback Survey

 Also find us on our blog and discussion group:
     http://googleadsdeveloper.blogspot.com/search/label/ad_manager_api
     https://developers.google.com/ad-manager/api/community

Reply all
Reply to author
Forward
0 new messages