谷歌ads script 中获取广告系列类型怎么获取

27 views
Skip to first unread message

HXJQ Ore Processing Plant

unread,
Mar 6, 2025, 12:38:29 AM3/6/25
to Google Ads Scripts Forum
Google Ads Scripts自定义脚本  中获取广告系列类型怎么获取,广告系列类型是哪个字段

Google Ads Scripts Forum Advisor

unread,
Mar 6, 2025, 3:03:41 AM3/6/25
to adwords...@googlegroups.com
Hi,

Thank you for reaching out to the Google Ads Scripts Support team.

We would like to inform you that this product officially offers support in English and it would be great if you can reply in English.  If required, we will use Google Translate to support/assist you in the best manner possible.

I would recommend you to use the reporting option available in Google Ads Scripts. You can refer to the below code to get the campaign data. You can add additional fields by using the campaign query builder to retrieve the campaign data.
function main() {

  const searchResults = AdsApp.search(
      'SELECT campaign.name,campaign.advertising_channel_type FROM campaign');

  for (const row of searchResults) {
    const campaignName = row.campaign.name;
    const campaignType = row.campaign.advertisingChannelType;
    console.log(`${campaignName}, ${campaignType}`);
  }
}
Feel free to get back in case of any further queries.
 

Thanks,
 
Google Logo Google Ads Scripts Team

Feedback
How was our support today?

rating1    rating2    rating3    rating4    rating5
[2025-03-06 08:03:15Z GMT] This message is in relation to case "ref:!00D1U01174p.!5004Q02vH6aY:ref" (ADR-00291851)



Reply all
Reply to author
Forward
0 new messages