将LocationSearchParameter用于TargetingIdeaService v201109 [英] Using LocationSearchParameter for TargetingIdeaService v201109
本文介绍了将LocationSearchParameter用于TargetingIdeaService v201109的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试将LocationSearchParameter与TargetingIdeaService(v201109)一起使用.我正在努力处理Invalid_Criterion_ID错误.我可以要求一些帮助吗?这是我在php中设置LocationSearchParameter的方法
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
推荐答案
如果其他人希望做同样的事情,这对我有用:
Here is what worked for me in case there are others looking to do the same thing:
$loc = array();
$location = new location();
$location->id = '2840';
$loc[]=$location;
$locationTargetParameter = new LocationSearchParameter();
$locationTargetParameter->locations=$loc;
这篇关于将LocationSearchParameter用于TargetingIdeaService v201109的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文