C# Setup - Assembly Errors

19 views
Skip to first unread message

otct...@gmail.com

unread,
Feb 7, 2018, 2:24:38 AM2/7/18
to AdWords API Forum
I am attempting to access a test account using the Adwords API with the C# client libraries. 


I'm to the point where I want to run the GetCampaigns.cs example and I'm getting 9 compile errors.  1 in CSC and 8 in each of the years GetKeywordIdeas.cs file.

I have a google doc with screenprints and my project setups steps and App.config file if someone wants to look at it.  I'll grant you access to view it.

Can someone help me get the example working etc - I've been trying this in Java and C# for nearly 2 days now.

Thanks






otct...@gmail.com

unread,
Feb 7, 2018, 4:56:58 PM2/7/18
to AdWords API Forum


On Wednesday, February 7, 2018 at 1:24:38 AM UTC-6, otct...@gmail.com wrote:

Note:  I finally got a basic getcampaign pull to work using Python.  Even then there were syntax errors I had to correct - in a print statement for example.

Quite frankly, I'm astonished at how poorly this code base is maintained - I expected Google to have a very mature API.  I couldn't get Java or C Sharp to run the getcampaign example or a couple other get examples.  Note - all of them worked when executing the refresh token example.   

I suspect some of the issues are client version related, but the documentation is pretty obscure about exactly which versions are really required - and it doesn't appear the code base is up to snuff for the most recent version of <insert combination of infinite number of client dependencies>.

Sreelakshmi Sasidharan (AdWords API Team)

unread,
Feb 7, 2018, 6:12:21 PM2/7/18
to AdWords API Forum
Hi, 

Sorry to hear that you have been facing issues while setting up the client library. Let me help you sort it out. I see that you have already tried Java and C# and Python client library. Which library would you like to setup first? I can guide you based on your choice. 

Thanks,
Sreelakshmi, AdWords API Team

otct...@gmail.com

unread,
Feb 7, 2018, 10:01:59 PM2/7/18
to AdWords API Forum
I think I'll stick with Python for now since I've been able to get it to work for the most part.  Do you guys not have troubles executing your own examples?  Every print statement I've had to add parenthesis around so far.  In the get_report_fields.py example, the REPORT_TYPE field isn't passing into main correctly, but in the download_criteria_report_with_awql.py which USES get_report_fields - it works fine.

I downloaded the most recent version of everything - Python, pip, etc.  I did use my own virtual environment in Python as well.  I'll mark this post closed and if I encounter anything else I can't fix, I'll open another post.  Thanks for the offer to help.

otct...@gmail.com

unread,
Feb 7, 2018, 10:02:30 PM2/7/18
to AdWords API Forum


On Wednesday, February 7, 2018 at 1:24:38 AM UTC-6, otct...@gmail.com wrote:

Sreelakshmi Sasidharan (AdWords API Team)

unread,
Feb 8, 2018, 11:53:57 AM2/8/18
to AdWords API Forum
Hi, 

Glad to know that you were able to resolve the issue. Ideally, by following the steps in the getting started guide here, you should be able to get the library work without any issues. From your description, I am suspecting there could be some version mismatches resulting in the syntax issues. As you said, if you face any further issues, let us know. 
Reply all
Reply to author
Forward
0 new messages