Hi, Could you please confirm if you receive any error after running the report? I'm not quite sure on what you meant by "fix the code to make it work". Based from the original post in this thread, you were asking how to get the balance of an account, and that, I responded that there is no AdWords API service or report that will return the balance, what I suggested is to run the Account Performance Report and get the Cost field value and then perform a subtract on your side from the original budget so you will get the balance of the account.
In your most recent post, you are generating an AdGroup Performance Report and that you are using a very old version (v201506). Could you please clarify what specific issue you are running into? Also, I highly recommend that you migrate to the latest version <https://developers.google.com/adwords/api/docs/guides/migration/v201607> (v201607) to avoid any issues. Thanks, Joyce, AdWords API Team -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and Google+: https://googleadsdeveloper.blogspot.com/ https://plus.google.com/+GoogleAdsDevelopers/posts =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API Forum" group. To post to this group, send email to adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en --- You received this message because you are subscribed to the Google Groups "AdWords API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. Visit this group at https://groups.google.com/group/adwords-api. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/67aa80a7-3b57-4caa-bc65-dbada70b6dea%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.