使用 LocationSearchParameter 进行 TargetingIdeaService v201109
我正在尝试将 LocationSearchParameter 与 TargetingIdeaService (v201109) 一起使用。我正在努力解决 Invalid_Criterion_ID 错误。我可以请求一些帮助吗?这是我在 php 中设置 LocationSearchParameter 的方法
$locationTargetParameter = new LocationSearchParameter();
$locationTargetParameter->locations=$LocArray; // $LocArray is array of IDs 2840 for US
I am trying to use LocationSearchParameter with TargetingIdeaService (v201109). I am struggling with an Invalid_Criterion_ID error. May I request some help with that? Here is how I am setting LocationSearchParameter in php
$locationTargetParameter = new LocationSearchParameter();
$locationTargetParameter->locations=$LocArray; // $LocArray is array of IDs 2840 for US
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
自 v201702 起。这是一个工作示例。
另外,如果您要复制找到的示例文件 在这里。不要忘记添加
use Google\AdsApi\AdWords\v201702\o\LocationSearchParameter;
因为这是
LocationSearchParameter
正常工作所必需的。有关文档和位置 ID,请查看此处< /a>.
As of v201702. Here's a working example.
Also if you're copying the example file found here. Don't forget to include
use Google\AdsApi\AdWords\v201702\o\LocationSearchParameter;
Since this is needed for the
LocationSearchParameter
to work.As for documentation and location IDs, check here.
以下是对我有用的方法,以防其他人想做同样的事情:
Here is what worked for me in case there are others looking to do the same thing: