List Info

Thread: Re: updateAds call returns "E1018 invalid id"




Re: updateAds call returns "E1018 invalid id"
user name
2007-01-22 13:18:24

Anyone else having this problem with the input ID not equaling what
the API "hears"?

The only solution is to delete the Ad using the ID (which strangely
works) and creating a new one.

--- In yws-searchmarketing%40yahoogroups.com">yws-searchmarketingyahoogroups.com, "zaskar_racer"
<zaskar_racer...> wrote:
&gt;
> To add to the problem, I am finding that updateKeywords/updateKeyword
> also trigger this error. updateAdGroups does not.
>;
>
> --- In yws-searchmarketing%40yahoogroups.com">yws-searchmarketingyahoogroups.com, "zaskar_racer&quot;
> <zaskar_racer> wrote:
&gt; >
>; > When calling updateAds with an array of Ad parameters the ID does not
> > seem to be passed correctly to YSM. The same error occurs with a
> > single updateAd call.
&gt; >
> > Here is a brief example using dummy variables (with the exception of
> > the ID in both the request and response, those are actual ID's).
> > Notice how the request ID and the response ID's do not match up.
> >
> >
> > $params = array(
&gt; > "ID&quot; => 4111210011,
> > "adGroupID" => 1111111111,
> > "accountID" => 2222222222,
> > "description&quot; => "Here is the ad text",
> > "displayUrl"; => www.website.com
&gt; > "name" => "Ad name here"
> > "shortDescription" => "&quot;,
> > "status" => "On&quot;,
>; > "title" => "My Ad Title";,
> > "url&quot; => "http://www.website.com");
> > $result = $this->ad_service->execute('updateAd',array(&quot;ad&quot; => $params,
> > "updateAll" => true));
> >
> >
> > the result will come back with:
&gt; >
> >
> > stdClass Object
&gt; > (
> > [out] => stdClass Object
&gt; > (
> > [ad] => stdClass Object
&gt; > (
> > [ID] => 2147483647
> > [accountID] => 1111111111
> > [adGroupID] => 2222222222
> > [contentMatchQualityScore] =>
> > [createTimestamp] =>
> > [deleteTimestamp] =>
> > [description] => Here is the ad text
>; > [displayUrl] => www.website.com
&gt; > [editorialStatus] =>
> > [lastUpdateTimestamp] =>
> > [name] => Ad Name Here
>; > [shortDescription] =>
> > [sponsoredSearchQualityScore] =>
> > [status] => On
> > [title] => My Ad Title
&gt; > [update] =>
> > [url] => http://www.website.com
> > )
> >
> > [editorialReasons] =>
> > [errors] => stdClass Object
&gt; > (
> > [Error] => stdClass Object
&gt; > (
> > [code] => E1018
&gt; > [message] => Specified ID is invalid.
> > )
> >
> > )
> >
> > [operationSucceeded] =>
> > )
> >
> > )
> >
> > Any ideas? Seems very very strange to me.
> >
>;

__._,_.___
.

__,_._,___
Re: Re: updateAds call returns "E1018 invalid id"
user name
2007-01-22 13:38:55

Is this problem limited to PHP developers? If so, you are hitting a but
in PHP and the SOAP extensions related to 'long' datatyped values.

Try something like this:

$ID = (float) $input['someID'];

Of course modify for your use case. The bug was reported to the PHP
group, but I would suggest that you plan this workaround until then.

-Y!SM Monkey

zaskar_racer wrote:
&gt; Anyone else having this problem with the input ID not equaling what
>; the API "hears"?
>
> The only solution is to delete the Ad using the ID (which strangely
> works) and creating a new one.
>;
>
> --- In yws-searchmarketing%40yahoogroups.com">yws-searchmarketingyahoogroups.com, "zaskar_racer&quot;
> <zaskar_racer...> wrote:
&gt;> To add to the problem, I am finding that updateKeywords/updateKeyword
>> also trigger this error. updateAdGroups does not.
>;>
>;>
>;> --- In yws-searchmarketing%40yahoogroups.com">yws-searchmarketingyahoogroups.com, "zaskar_racer&quot;
>&gt; <zaskar_racer> wrote:
&gt;>> When calling updateAds with an array of Ad parameters the ID does not
>>> seem to be passed correctly to YSM. The same error occurs with a
>&gt;> single updateAd call.
&gt;>>
>>&gt; Here is a brief example using dummy variables (with the exception of
>&gt;> the ID in both the request and response, those are actual ID's).
>>;> Notice how the request ID and the response ID's do not match up.
>>>
>>>;
>>;> $params = array(
&gt;>> "ID&quot; => 4111210011,
>>;> "adGroupID" => 1111111111,
>>;> "accountID" => 2222222222,
>>;> "description&quot; => "Here is the ad text",
>>;> "displayUrl"; => www.website.com
&gt;>> "name" => "Ad name here"
>>> "shortDescription" => "&quot;,
>>;> "status" => "On&quot;,
>;>> "title" => "My Ad Title";,
>&gt;> "url&quot; => "http://www.website.com");
>>> $result = $this->ad_service->execute('updateAd',array(&quot;ad&quot; => $params,
>>&gt; "updateAll" => true));
>>>;
>>;>
>;>> the result will come back with:
&gt;>>
>>&gt;
>&gt;> stdClass Object
&gt;>> (
>&gt;> [out] => stdClass Object
&gt;>> (
>&gt;> [ad] => stdClass Object
&gt;>> (
>&gt;> [ID] => 2147483647
>>> [accountID] => 1111111111
>>> [adGroupID] => 2222222222
>>> [contentMatchQualityScore] =>
>>;> [createTimestamp] =>
>>;> [deleteTimestamp] =>
>>;> [description] => Here is the ad text
>;>> [displayUrl] => www.website.com
&gt;>> [editorialStatus] =>
>>;> [lastUpdateTimestamp] =>
>>;> [name] => Ad Name Here
>;>> [shortDescription] =>
>>;> [sponsoredSearchQualityScore] =>
>>;> [status] => On
>&gt;> [title] => My Ad Title
&gt;>> [update] =>
>>;> [url] => http://www.website.com
>&gt;> )
>&gt;>
&gt;>> [editorialReasons] =>
>>;> [errors] => stdClass Object
&gt;>> (
>&gt;> [Error] => stdClass Object
&gt;>> (
>&gt;> [code] => E1018
&gt;>> [message] => Specified ID is invalid.
>>&gt; )
>&gt;>
&gt;>> )
>&gt;>
&gt;>> [operationSucceeded] =>
>>;> )
>&gt;>
&gt;>> )
>&gt;>
&gt;>> Any ideas? Seems very very strange to me.
>>>
>
>
>
>
>
> Yahoo! Groups Links
&gt;
>
>

__._,_.___
.

__,_._,___
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )