Uncaught SoapFault exception Unmarshalling Error

522 views
Skip to first unread message

myclien...@ozbo.com

unread,
Apr 10, 2014, 11:48:34 AM4/10/14
to adwor...@googlegroups.com
I've downloaded the PHP files for the AdWords API, went through all the steps provided and initially when running the GetCampaigns.php file included, it returned No Campaigns Found, which was puzzling as we have numerous in our AdWords account. Then I proceeded to move to the next step, moving to lib directory over to where I needed it. I created a PHP file called test-campaign.php and copied the code right from the examples to simply create a test campaign and I get a giant error reading:

Fatal error: Uncaught SoapFault exception: [soap:Client] Unmarshalling Error: For input string: "DAILY"  in /public_html/adwords/lib/Google/Api/Ads/Common/Lib/AdsSoapClient.php:216

Stack trace:
#0 /public_html/adwords/lib/Google/Api/Ads/Common/Lib/AdsSoapClient.php(216): SoapClient->__soapCall('mutate', Array, NULL, Array, Array)
#1 /public_html/adwords/lib/Google/Api/Ads/AdWords/v201309/CampaignService.php(7140): AdsSoapClient->__soapCall('mutate', Array)
#2 /public_html/adwords/test-campaign.php(41): CampaignService->mutate(Array)
#3 {main} thrown in /public_html/adwords/lib/Google/Api/Ads/Common/Lib/AdsSoapClient.php on line 216

Does anyone have any advice on what to do?

Danial Klimkin

unread,
Apr 11, 2014, 8:55:50 AM4/11/14
to adwor...@googlegroups.com
Hello,


It sounds like you do not provide a clientCustomerId in the header. In this case your requests hit an MCC account you are authorized against, which contains no campaigns.

Please provide the CID of the target account in your request.


-Danial, AdWords API Team.
Reply all
Reply to author
Forward
0 new messages