campaign.advertising_channel_type returns number

54 views
Skip to first unread message

Harshad GoogleAds

unread,
Sep 26, 2020, 1:25:26 PM9/26/20
to AdWords API and Google Ads API Forum
Hi ,

When I pull  campaign.advertising_channel_type  using google ads api it returns the numeric values ( eg. 2,6, etc). 

How do get corresponding values for these numbers ( i.e. "Display", "Video")

Google Ads API Forum Advisor Prod

unread,
Sep 28, 2020, 1:56:37 PM9/28/20
to harshad...@gmail.com, adwor...@googlegroups.com
Hi Harshad,

Thank you for reaching out to us. I see that you're encountering an issue with obtaining the channel type. Could you provide me with the request and response log for where this error occurs? For privacy, you can respond using "Reply privately to author".

Thank you,

Google Logo
Bryan Li
Google Ads API Team
 


ref:_00D1U1174p._5004Q25XAWa:ref

Harshad GoogleAds

unread,
Sep 29, 2020, 4:43:07 AM9/29/20
to AdWords API and Google Ads API Forum
can you share the steps to collect the logs

Google Ads API Forum Advisor Prod

unread,
Sep 29, 2020, 1:21:35 PM9/29/20
to harshad...@gmail.com, adwor...@googlegroups.com
Hi Harshad,

The steps to logging are listed here. Let me know if you have further questions.

Mat

unread,
Sep 30, 2020, 5:49:48 AM9/30/20
to AdWords API and Google Ads API Forum
Hi Harshad,

the client libraries offer modules/methods to fetch the enum names out of these numbers. You'll find some examples here:
https://developers.google.com/google-ads/api/docs/samples/get-account-changes

BTW: I' m under the impression that the quality of the answers from the members of the Google Ads API team has been decreasing significantly lately.

Regards
Mat

Harshad GoogleAds

unread,
Oct 4, 2020, 8:31:53 AM10/4/20
to AdWords API and Google Ads API Forum
Thanks for the help Mat. Appreciate it. 

I totally agree about Google Ads API team, sometimes refrain posting queries just because I feel team won't go through the details and just reply with a generic answer.  

Reply all
Reply to author
Forward
0 new messages