-
Notifications
You must be signed in to change notification settings - Fork 767
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
Getting 2147483647 for all AdGroup->id returned by BatchJob mutateResult #236
Comments
Hello @komirad Did you mean you assigned the negative temporary ID but in the real result, you got only 2147483647? Thanks! |
Hi, I tried many times but the last BatchJob id is 444191858. Yes, I assigned a negative temp id. If I am not wrong the XML returned is ok, but when accessing the mutateResult object, I get 2147483647. I am doing more tests now.
|
Yea I am guessing something went wrong during denormalizing. I tried outputting from \Symfony\Component\Serializer\Serializer::denormalizeObject The data seems ok here.
|
Hello, Thanks for reporting. Best, |
Hi @fiboknacky, Thanks. Do let me know if you can reproduce it. I am stuck here as I need this to work to deploy my app. JC |
Hi JC, It's probably due to this line. Unfortunately, I'll discuss internally what we should do with this case. Best, |
@fiboknacky I think you are right. It's intval. I'll see if it works in my other dev machine running OSX. |
Problem does not occur on OSX. Just Windows (7). |
Thanks @komirad Knack |
Hi @fiboknacky, I haven't had the chance to try creating those using SOAP services. Will report back on that when it happens, but it's not going to happen anytime soon. By the way, my win 7 is 64 bits. Maybe the software is running 32 bits? I am not sure how this works. 😃 |
Hi JC, I think the latter--Probably your PHP on windows running 32 bit? Cheers, |
Yup, looks like it.
|
This is fixed with v25.3.0. |
Fix 32 bit integer issue (googleads#236) for v201609
v201609 was not fixed in new release. |
Hello JC, As this is a deprecated branch, which will go away in months, I've fixed only the latest API version only. Cheers, |
Hmm ok. I am still using v201609. So I was surprised to still get the same issue. By the way if it's ok to ask usage question here. When migrating to a new version, eg, v201609 to v201702, I have to go into every file and change This wasn't a problem with the old library as version can be selected through composer (Kind of. By choosing which directory to load from). Maybe release that only contains one version so that the version does not have to be in namespace? |
Hello, Have you considered using unix command "sed" or similar? For example, going to your project dir, and then run the below command: Cheers, |
Hi, Yes, I know I can also find and replace with my IDE. Just didn't seem like the most optimal way to handle this, having to change every file. Thanks |
Hmm.. Knack |
Yes, I understand the command will change all instances in all files within the directory. Just as find and replace in path using IDE would. Ideally, there's no need to do this at all as there isn't really any code changes. Haven't encountered this with other libraries. Another question: I have to serialize classes (eg. Any chance of implementing something like JsonSerializable/toArray() or similar on the classes? |
Maybe the latest release should only contain the latest API version. Deprecated versions can still be patched in a separate branch. eg. 201609.25.3.0 :) There are pros and cons. |
Hello, Thanks for the feedback. As for your question, our (main branch) library already supports Symfony serializer and as you may notice, we also provide AdWordsNormalizer for this too. Best, |
Thanks! Looks I may have to add a similar About doing the replace from v201609 to v201702. Is it safe to assume nothing will break? |
Hi @komirad About migrating from v201609 to v201702, I recommend you to have a look at our migration guide to see if there are any features you've used in v201609 that would need changes in v201702. As for the library itself, the versioning follows semver closely, so if the major version doesn't change, you can rest assured that it's not breaking anything. Finally, I'm truly sorry for my confusion.
Best, |
2147483647 is the max of a 32 bit integer.
I am running batch jobs to create campaign with adGroups, ads and so on.
The batch job returns results via mutateResult but all AdGroups' ids in mutateResult are maxed out at 2147483647. Please tell me it's not just me! 😆
The text was updated successfully, but these errors were encountered: