simbor / google-api-adwords-php

Automatically exported from code.google.com/p/google-api-adwords-php
Apache License 2.0
0 stars 0 forks source link

Running AddCampaignExample.php from aw_api_php_lib_1.0.0 results in error #1

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I get the following error trying to create a campaign:

Unmarshalling Error: Unable to create an instance of 
com.google.ads.api.services.campaignmgmt.campaign.v200909.jaxbgen.BiddingSt
rategy 

Here the part from the AddCampaignExample.php
Yes, I did change the name of the campaign.

<snip>
// Get the CampaignService.
      $campaignService = $user->GetCampaignService();

      // Create new campaign structure.
      $campaign = new Campaign();
      $campaign->name = 'Testcampaign #' . time();
      $campaign->status = 'PAUSED';
      $campaign->biddingStrategy = new ManualCPC();
      $campaign->budget = new Budget('DAILY', new Money
(50000000), 'STANDARD');

      $operations = array(new CampaignOperation(NULL, $campaign, 'ADD'));

      // Add campaign.
      $campaignReturnValue = $campaignService->mutate($operations);
</snip>

Thanks and best from the baltic,
Norb

Original issue reported on code.google.com by no.sieb...@gmail.com on 22 Oct 2009 at 9:10

Attachments:

GoogleCodeExporter commented 8 years ago
Hi Norb,

Which version of PHP are you using (i.e. version and OS)?

Original comment by api.arogal@gmail.com on 22 Oct 2009 at 12:35

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Hi.

that's PHP 5.2.5 on SLES 10 SP 2. The standard rpm shipped from Novell.

Complete details attached.

Original comment by no.sieb...@gmail.com on 22 Oct 2009 at 8:35

Attachments:

GoogleCodeExporter commented 8 years ago
Oops, just saw that

"Important: for now only PHP 5.2.7+ is supported. 5.3.0 is also not supported 
at 
this time."

Bummer.

How do I close issue this?

Original comment by no.sieb...@gmail.com on 22 Oct 2009 at 8:37

GoogleCodeExporter commented 8 years ago
Hi Norb,

Just added that today after doing some investigation. It seems the issue is 
that for 
versions below 5.2.7 the xsi:type is not being set correctly. We are working 
hard on 
fixing this and our preliminary tests show that we can support some versions 
below 
5.2.7 including 5.2.5. 

Please comment on this wiki page on your version and OS.

We'll keep that page updated with our progress as well.

Thanks.

Original comment by api.arogal@gmail.com on 22 Oct 2009 at 8:51

GoogleCodeExporter commented 8 years ago
Changes will be made on separate branch: 5.2.3+ support

See issue 2 for current progress.

Original comment by api.arogal@gmail.com on 23 Oct 2009 at 8:10

GoogleCodeExporter commented 8 years ago
Hi Norb,

This should now be fixed in the v1.1.0 release. Please verify.

Thanks.

Original comment by api.arogal@gmail.com on 27 Oct 2009 at 2:05