Google Ads API : Get Impress and click by Campaign ID

81 views
Skip to first unread message

Rokad Naina

unread,
Jul 9, 2021, 11:02:14 AM7/9/21
to AdWords API and Google Ads API Forum
Hello,

I am working on google Ads PHP API. I have call GetCampaign, AddCampaign and same Adgroups, Ads create get example call into basic API document (below link).

My Account token and key are also updated because campaign create and get working successfully for me.

https://developers.google.com/google-ads/api/docs/samples/get-campaigns

Now i have try to get Impress, click, budget and other parameters into campaign but it is not working for me.

Can you please provide me any document or examples call.

Thank you for your help in advance.

Regards,
Naina Rokad

Google Ads API Forum Advisor

unread,
Jul 12, 2021, 4:38:11 AM7/12/21
to rokad8...@gmail.com, adwor...@googlegroups.com

Hi Naina,

Thanks for reaching out to the Google Ads API Support.

You may include the metrics.impressionsmetrics.clickscampaign_budget.amount_micros fields and other parameters in your SELECT query by using a campaign report. Once you’ve constructed a GAQL query, you may use our reporting example here for the PHP client library.

Hope this helps. Let us know if you have any questions.

Regards,

Google Logo
Yasar
Google Ads API Team
 


 



ref:_00D1U1174p._5004Q2Ja1ih:ref

Rokad Naina

unread,
Jul 13, 2021, 11:14:41 AM7/13/21
to AdWords API and Google Ads API Forum
Hello,

You reply is really helpful for me. Thank you so much for it.

I want one more help for Video Campaign create.

I am trying to create Video Ads using the Google Ads API, I have tried below document but it's not work for me.
https://developers.google.com/google-ads/api/fields/v8/video
https://developers.google.com/google-ads/scripts/docs/features/video-campaigns


Can you please provide me any document or examples call.
Thank you for your help in advance.

Regards,
Naina Rokad

Google Ads API Forum Advisor

unread,
Jul 14, 2021, 11:36:28 AM7/14/21
to rokad8...@gmail.com, adwor...@googlegroups.com
Hi Naina,

I work with Yasar and will assist you. Here's a quote from Ad Types - "The Google Ads API permits only reporting of video ads. Video campaigns must be created using the UI or Google Ads scripts."

Regards,

Google Logo
Aryeh Baker
Google Ads API Team
 


ref:_00D1U1174p._5004Q2Ja1ih:ref

Rokad Naina

unread,
Jul 15, 2021, 11:04:52 AM7/15/21
to AdWords API and Google Ads API Forum
Hello,
I have check Google Ads API script document but how can i run those script in my Wordpress site page. 
I have tried script in ads manager-> tools& setting->script window see below screenshot. 
https://prnt.sc/1bg3c0a
Fetching error to  videoAdGroup is  is not defined.

https://developers.google.com/google-ads/scripts/docs/features/video-campaigns#video_targeting

I have also tried to run script in PHP file on my site but it is also occurred error. 
https://prnt.sc/1bg3qm2

I am very confused too how to use and run script to create video Campaign.
Can you please help here to clear confusion.

Thank you in advance.

Regards,
Naina Rokad

Google Ads API Forum Advisor

unread,
Jul 19, 2021, 1:27:56 AM7/19/21
to rokad8...@gmail.com, adwor...@googlegroups.com

Hello Naina,

Thanks for getting back to us.

Please note that this forum channel can only provide assistance to issues/concerns related to the AdWords API / Google Ads API.

As previously mentioned by Aryeh, the Google Ads API permits only reporting of video ads. Video campaigns must be created using the UI or Google Ads scripts.

With regard to the creation of Video Campaigns via Google Ads scripts, I'm afraid that this is already of our team's expertise. What you can do instead is to raise your concern to this Google Ads Scripts Forum channel instead.

Regards,

Google Logo
Mark Kevin Albios
Google Ads API Team
 


ref:_00D1U1174p._5004Q2Ja1ih:ref
Reply all
Reply to author
Forward
0 new messages