amzn / amazon-advertising-api-php-sdk

⛔️ DEPRECATED - Amazon Advertising API PHP Client Library
Apache License 2.0
93 stars 66 forks source link

Update Campaign/AdGroup Issue #12

Open ajitpawarink opened 6 years ago

ajitpawarink commented 6 years ago

Using following example to update the campaign, but always getting 422 in response. $client->updateCampaigns( array( array("campaignId" => 173284463890123, "name" => "Update Campaign One", "state" => "enabled", "dailyBudget" => 10.99 ) ) );

Response

Array ( [success] => [code] => 422 [response] => {"code":"422","requestId":"K07CM5C8BS3W78E1ZBAC"} [requestId] => K07CM5C8BS3W78E1ZBAC )

As per Doc this might use PUT request.