如何按名称获取广告组ID? [英] How to get ad group ids by names?

查看:142
本文介绍了如何按名称获取广告组ID?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有几百到几千个广告组名称,需要检查它们是否已存在并获取其实体(如果已存在)。什么是最好的选择?


我尝试了以下内容,但它们都不适合我的情况。


1。使用批量服务下载所有广告组,但显然这太过分了,需要花费大量时间。


2。在所有广告系列中逐个使用广告系列管理服务的GetAdGroupsByCampaignId来获取所有广告组,但就性能而言,这并不比#1好。


是否有类似于Google广告中的选择器我们可以按特定字段过滤实体吗?我找不到官方文档中的任何内容,但想知道我是否错过了任何重要内容。

解决方案

好问题。不支持在服务请求中按名称过滤。虽然你已经尝试过,我会建议批量服务。如果所有广告组都在同一帐户中,则只需要下载一次。 


祝你好运,


Eric


I have several hundreds to thousands of ad group names and need to check if they already exist and get their entities if so. What is the best option?

I tried the following and neither of them is ideal for my case.

1. Use Bulk Service to download all ad groups, but apparently that's very much an overkill and takes a lot of time.

2. Use Campaign Management Service's GetAdGroupsByCampaignId on all campaigns one by one to get all ad groups, but this is not better than #1 in terms of the performance.

Is there anything similar to the concept of Selector in Google Ads that we can filter entities by certain fields? I couldn't find anything from the official docs, but wonder if I missed anything important.

解决方案

Good question. Filter by name in the service request is not supported. I would suggest the Bulk service, although you already tried it. If all of the ad groups are in the same account it should only require one download. 

Best regards,

Eric


这篇关于如何按名称获取广告组ID?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆