Hello,

 Off the top of my head I'd say that the problem is the

  'budgetOptimizerSettings' => 100,

line. If you're going to specify a budgetOptimizerSettings key, then I
believe the value should be a hash reference whose keys and values
correspond to the settings in

  
http://code.google.com/apis/adwords/docs/developer/BudgetOptimizerSettings.html

Of course, you could just leave out budgetOptimizerSettings entirely,
which is what the original sample code does.

Cheers,
-Jeff Posnick, AdWords API Team


On Apr 22, 5:51 pm, "[email protected]"
<[email protected]> wrote:
> Hi all;
> I'm using active perl on windows,
> I read the tuto on the site of adwords, to create a new campaign on
> sandbox env.
> My code :
>
> my $campaign = {
>         'name' => 'SampleCampaignV1',
>         'budgetAmount' => 100000,
>         'budgetPeriod' => 'Daily',
>         'budgetOptimizerSettings' => 100,
>         'geoTargeting' => {'countryTargets' => {'countries' => ['US']}},
>         'languageTargeting' => {'languages' => ['en']},
>         'schedule' => $schedule
>
> };
>
> # Add campaign.
> $campaign = $service->addCampaign($campaign, @headers);
>
> But i have this error :
>
>  <faultstring>org.xml.sax.SAXException: No deserializer defined for
> array type {http://www.w3.org/1999/XMLSchema}ur-type</faultstring>
>
> I dont understant it,
> Could someone help me plz
>
> Th x
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to