madhabkirank / google-api-adwords-php

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

TargetingIdeaService intialization conflicts with CampaignCriterionService intialization #69

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Library version: 2.7.2

PHP version: 5.3.8

Edit examples/v201109/AddCampaignTargetingCriteria.php
with string:

$user->GetService('TargetingIdeaService', 'v201109');

before: 
$user->GetService('CampaignCriterionService', 'v201109');

And run script

Example will fail with messages like:
Undefined index: name in
Cannot access empty property in

Expected result is script should work without any problems.

If you will move $user->GetService('TargetingIdeaService', 'v201109');
under $user->GetService('CampaignCriterionService', 'v201109');
script will work like a charmed.

Original issue reported on code.google.com by e.bogda...@biz-systems.ru on 22 Jan 2012 at 11:51

Attachments:

GoogleCodeExporter commented 8 years ago
Looks to be a problem with the generated classes.  I'll work on a fix.

Original comment by ekoleda+devrel@googlers.com on 10 Feb 2012 at 8:11

GoogleCodeExporter commented 8 years ago
Fixed in r251.

Original comment by ekoleda+devrel@googlers.com on 23 Feb 2012 at 7:44