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. On Thursday, April 10, 2014 7:48:34 PM UTC+4, [email protected] wrote: > > 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? > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and Google+: https://googleadsdeveloper.blogspot.com/ https://plus.google.com/+GoogleAdsDevelopers/posts =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API Forum" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en --- You received this message because you are subscribed to the Google Groups "AdWords API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
