如何使用NPM从Ads API中获取广告名称?

问题描述 投票:0回答:1

我在查询中尝试使用google ads api npm

SELECT ad_group_ad.ad.name, ad_group_ad.ad.type , ad_group_ad.ad.app_ad.headlines,ad_group_ad.ad.app_engagement_ad.headlines,ad_group_ad.ad.text_ad.headline FROM ad_group_ad

响应

{ ad: { resource_name: 'customers/xxxxx/ads/xxxxxx', type: 3 }, resource_name: 'customers/xxxxx/adGroupAds/xxxx~xxxxxx }

但是响应中不包含广告名称。广告ID和资源名称在那里。

如何获得广告名称?

google-api google-adwords google-ads-api
1个回答
0
投票
至少在Adwords API(广告API的前身)中,IIRC中只有图像广告才有名称。

在存在图片广告(ad_group_ad.ad.type = IMAGE_AD)的帐户上运行查询,并查看您的回复在该情况下是否包含ad.name字段,可能是值得的。

© www.soinside.com 2019 - 2024. All rights reserved.