Error on .NET BatchJobUtilities instance creation

31 views
Skip to first unread message

Rafael Machado

unread,
Nov 30, 2015, 11:55:50 AM11/30/15
to AdWords API Forum
Hello,

I'm having troubles creating a BatchJobUtilities instance. I followed the code on .NET examples (https://github.com/googleads/googleads-dotnet-lib/blob/master/examples/AdWords/CSharp/v201509/CampaignManagement/AddCompleteCampaignsUsingBatchJob.cs), but when i call 
BatchJobUtilities batchJobUploadHelper = new BatchJobUtilities(user)
I get a StackOverflowException (the AdWordsUser user object is already instantiated and working - i used it on reporting before).

Could you please help me?

Thank you in advance,
Rafael

Nadine Sundquist (AdWords API Team)

unread,
Nov 30, 2015, 5:42:07 PM11/30/15
to AdWords API Forum
Hi Rafael,

I'm having our .NET engineer take a look at this to see if he's seen this before. We'll get back to you soon.

Cheers,
Nadine, AdWords API Team

Rafael Machado

unread,
Nov 30, 2015, 9:49:58 PM11/30/15
to adwordsapiad...@google.com, AdWords API Forum

Nadine,
Thank you for your help! I'll wait for your answer then.

Thank you,
Rafael


--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwor...@googlegroups.com
To unsubscribe from this group, send email to
adwords-api...@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 a topic in the Google Groups "AdWords API Forum" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/adwords-api/Xq5BA_s4SC0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to adwords-api...@googlegroups.com.
Visit this group at http://groups.google.com/group/adwords-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/43b0119f-f92e-4429-a24a-e2cede4205aa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Rafael Machado

unread,
Dec 1, 2015, 3:40:29 PM12/1/15
to adwordsap...@google.com, AdWords API Forum, Nadine Sundquist
Great, it worked! I opened the bug, but for now I'm using the local assembly, thank you for the help!

Thank you,
Rafael

On Tue, Dec 1, 2015 at 5:39 PM, <adwordsap...@google.com> wrote:
Hi Rafael,

Could you open an bug on the issue tracker at https://github.com/googleads/googleads-dotnet-lib/issues? I'll push a fix by next week.

If you could compile the assembly from the source, then you need to fix line 80 in BatchJobUtilities.cs from

    public BatchJobUtilities(AdsUser user, int chunkSize) : this(user) {

to 
    public BatchJobUtilities(AdsUser user, int chunkSize) {

Cheers,
Anash

=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
    http://googleadsdeveloper.blogspot.com/search/label/adwords_api
    https://developers.google.com/adwords/api/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Reply all
Reply to author
Forward
0 new messages