-
Notifications
You must be signed in to change notification settings - Fork 768
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
ConvertObjectToXml does not convert $campaign->biddingStrategyConfiguration #191
Comments
Hi @komirad Could you please share your code snippet that generates the XML sent to BatchJobService? Thanks in advance! Cheers, |
Hi @fiboknacky Batch job id should be: 416060804 (There are more if you need them) The snippet (with the added dump() functions) used to generate the above:
This is traced back to my code:
Full XML output: http://pastebin.com/jm8Y9aj2 (notice the BiddingStrategyConfiguration are there for AdGroupOperations) Let me know if you need me to serialize the $operations param for you. |
Hello @komirad Thanks for the batch job ID. Could you please provide that too? Best, |
Hi @fiboknacky It's in OOP so it's broken up into many files but I'll extract the methods and relevant parts here.
Uploading the operation using the library:
Here I build the operation and take the Campaign object from the model:
Here I create the Campaign object from my model:
Here's the relevant portion that is used to convert the array stored in the model to biddingStrategyConfiguration attribute:
Not sure how helpful the above is. From the dump of the |
Hello @komirad I could reproduce this issue as you reported. Thanks for this. As for your information, our new Best, |
FYI, this issues was fixed with v16.1.0. |
Hi,
I am using BatchJobUtils->UploadBatchJobOperations() to batch create my campaign (with other entities).
Api version v201609, googleads-php-lib 13.1.0
I am getting this in response to my campaign operation:
In my campaign operation, the operand does have biddingStrategyConfiguration (I am using scheme in place of type). However, I noticed the xml output from XmlSerializer->ConvertObjectToXml() does not.
Also note that when I use CampaignService to ADD my campaign, it goes through with no problem.
Here's a dump of the campaign operation and its corresponding XML output taken from
googleads/googleads-php-lib/src/Google/Api/Ads/AdWords/Util/XmlSerializer->ConvertObjectToXml():
The text was updated successfully, but these errors were encountered: