Hello, You're not passing in the correct parameters to the addCampaign() call. Please see APIlity's documentation for a description of the parameters and a sample invocation of addCampaign():
http://google-apility.sourceforge.net/reference.html Cheers, -Jeff Posnick, AdWords API Team On Dec 29, 2:17 pm, Newbie <[email protected]> wrote: > I am new to the API and am just trying to connect and create a sample > campaign. I seem to connect fine with PHP but am getting an error when > I try and create a campaign. Any ideas? > > the error is > > N/A soapenv:Server.userException: > com.google.ads.netapi.services.errors.InvalidEnumValue: > java.lang.IllegalArgumentException: No enum const class > com.google.ads.netapi.services.datamodel.BudgetPeriod.Array N/A / > PHPAPI/apility_1.13.1/project.php:addCampaign() 5000000ArraySample > Campaign - 1230574625Active > > the code I'm using is > > $newCampaign = addCampaign( > "Sample Campaign - " . time(), > "Active", > null, > null, > 500 * 10000, > array("SearchNetwork"), > array(), > null, > null, > null, > null > ); > $campaignId = $newCampaign->getId(); > > $campaigns = getAllCampaigns(); --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
