-
Notifications
You must be signed in to change notification settings - Fork 769
New issue
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
Campaign Targeting Soap Client Error (Unmarshalling Error: cvc-elt.4.3) #473
Comments
Hi James, Could you please post your full code snippet so I can reproduce? Best, |
Hello, I have took the example from AddCampaignTargetingCriteria.php and slimmed it down to what i want it to do. All i have done to this example is removed some of the parts i didnt want. I haven't edited any of the location code. I have ran this script and it still gives me the same error.
I because i ran this in the console it has given me a soap log i think. see below. I have removed my client id from the log and replaced it with ##CLIENT_ID_REMOVED## ;
The full code i ran, with the soap error.
James |
Hello James, I found that there is a mistake in our code, which I will push the change in the later release. $distance = new LocationExtensionOperand();
$distance->setRadius($radius); Best, |
Fixed with release v35.0.0. |
Hello,
I am trying to add a radius location to a campaign using the api and i am getting a soap error.
Fault String: Unmarshalling Error: cvc-elt.4.3: Type 'ns1:ConstantOperand' is not validly derived from the type definition, 'string', of element 'ns1:FunctionArgumentOperand.Type'.
Fault Code: soap:Client
googleads/googleads-php-lib/src/Google/AdsApi/Common/AdsSoapClient.php
Line 152
I have used the code from Add Campaign Targeting Criteria as an example but i still get the error.
My Code
I know my campaign criterion service is correct because i can set languages, ad schedules and ip blocks using the same service.
I have tried this code in both v201710 and v201802 and i get the same error. I am unsure if it is my code that is at fault our something at your end.
Any help would be amazing.
James
The text was updated successfully, but these errors were encountered: