We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lib: v201402 PHP: 5.4.7
Error "Unmarshalling Error: cvc-type.2: The type definition cannot be abstract for element ns1:settings" is shown based on the following code:
$adGroup = new AdGroup(); $adGroup->campaignId = SOME_ID; $adGroup->name = SOME_NAME; $adGroup->status = 'ENABLED';
$bid = new CpcBid(); $bid->bid = new Money(1000000); $biddingStrategyConfiguration = new BiddingStrategyConfiguration(); $biddingStrategyConfiguration->bids[] = $bid; $adGroup->biddingStrategyConfiguration = $biddingStrategyConfiguration; $targetingSetting = new TargetingSetting(); $targetingSetting->details[] = new TargetingSettingDetail('PLACEMENT', TRUE); $targetingSetting->details[] = new TargetingSettingDetail('VERTICAL', FALSE); $adGroup->settings[] = $targetingSetting; $operation = new AdGroupOperation(); $operation->operand = $adGroup; $operation->operator = 'ADD'; $operations[] = $operation; $adGroupMutateResult = $adGroupService->mutate($operations);
Campaign exists and is available. This error pops up when trying to add AdGroup to campaign.
Also: setting $addXsiTypes = TRUE; in AdsSoapClient.php results in a different error message:
Unmarshalling Error: cvc-elt.4.2: Cannot resolve 'ns1:CampaignOperation' to a type definition for element 'ns1:operations'.
Any advice?
The text was updated successfully, but these errors were encountered:
I'll take a look at this. thanks for letting us know.
Sorry, something went wrong.
Thanks, please let me know if you need further info.
See #3.
saturnism
No branches or pull requests
lib: v201402
PHP: 5.4.7
Error "Unmarshalling Error: cvc-type.2: The type definition cannot be abstract for element ns1:settings" is shown based on the following code:
$adGroup = new AdGroup();
$adGroup->campaignId = SOME_ID;
$adGroup->name = SOME_NAME;
$adGroup->status = 'ENABLED';
Campaign exists and is available. This error pops up when trying to add AdGroup to campaign.
Also: setting $addXsiTypes = TRUE; in AdsSoapClient.php results in a different error message:
Unmarshalling Error: cvc-elt.4.2: Cannot resolve 'ns1:CampaignOperation' to a type definition for element 'ns1:operations'.
Any advice?
The text was updated successfully, but these errors were encountered: