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:
> 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-searchmarketing
yahoogroups.com, "zaskar_racer"
> <zaskar_racer
...> wrote:
>> To add to the problem, I am finding that updateKeywords/updateKeyword
>> also trigger this error. updateAdGroups does not.
>>
>>
>> --- In yws-searchmarketing%40yahoogroups.com">yws-searchmarketing
yahoogroups.com, "zaskar_racer"
>> <zaskar_racer
> wrote:
>>> 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.
>>>
>>> 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(
>>> "ID" => 4111210011,
>>> "adGroupID" => 1111111111,
>>> "accountID" => 2222222222,
>>> "description" => "Here is the ad text",
>>> "displayUrl" => www.website.com
>>> "name" => "Ad name here"
>>> "shortDescription" => "",
>>> "status" => "On",
>>> "title" => "My Ad Title",
>>> "url" => "http://www.website.com");
>>> $result = $this->ad_service->execute('updateAd',array("ad" => $params,
>>> "updateAll" => true));
>>>
>>>
>>> the result will come back with:
>>>
>>>
>>> stdClass Object
>>> (
>>> [out] => stdClass Object
>>> (
>>> [ad] => stdClass Object
>>> (
>>> [ID] => 2147483647
>>> [accountID] => 1111111111
>>> [adGroupID] => 2222222222
>>> [contentMatchQualityScore] =>
>>> [createTimestamp] =>
>>> [deleteTimestamp] =>
>>> [description] => Here is the ad text
>>> [displayUrl] => www.website.com
>>> [editorialStatus] =>
>>> [lastUpdateTimestamp] =>
>>> [name] => Ad Name Here
>>> [shortDescription] =>
>>> [sponsoredSearchQualityScore] =>
>>> [status] => On
>>> [title] => My Ad Title
>>> [update] =>
>>> [url] => http://www.website.com
>>> )
>>>
>>> [editorialReasons] =>
>>> [errors] => stdClass Object
>>> (
>>> [Error] => stdClass Object
>>> (
>>> [code] => E1018
>>> [message] => Specified ID is invalid.
>>> )
>>>
>>> )
>>>
>>> [operationSucceeded] =>
>>> )
>>>
>>> )
>>>
>>> Any ideas? Seems very very strange to me.
>>>
>
>
>
>
>
> Yahoo! Groups Links
>
>
>
.