Hi Conor,

The UI won't provide you with the campaign ID, so developers usually use 
the CampaignService 
<https://developers.google.com/adwords/api/docs/reference/v201406/CampaignService>
 to 
get the list of campaigns and IDs, as you mentioned.

If you're having trouble setting up the *AdWordsUser*, I'd recommend 
reading through the client library's README.md and accompanying OAuth 2.0 
page, which will walk you through the process of configuring your 
environment.

I'm guessing based on the type name that you are either using the PHP 
library or the .NET library. The relevant pages for those libraries are:

.NET: README <https://github.com/googleads/googleads-dotnet-lib>, OAuth 2.0 
<https://github.com/googleads/googleads-dotnet-lib/wiki/Using-OAuth2>
PHP: README <https://github.com/googleads/googleads-php-lib>, OAuth 2.0 
<https://github.com/googleads/googleads-php-lib/wiki/Using-OAuth-2.0>

Once you have everything configured, each library contains a *GetCampaigns* 
example 
that will give you the list of campaigns, along with their IDs.

Cheers,
Josh, AdWords API Team

On Monday, September 22, 2014 5:31:00 AM UTC-4, testa...@geeks.ltd.uk wrote:
>
> Hi All,
>
> I am new to the AdWords API and need to get my Campaign Id so that I can 
> connect with my account but am having difficulties getting hold of it. I 
> can't find the campaign id anywhere on the AdWords UI (I tried using the 
> number in the query string with key '__c' but no luck).
>
> How do I get hold of it? One way seems to be to use an AdWordsUser 
> instance to get all the campaigns they are associated with and then 
> filtering by name. The problem with this is that I don't know how to set 
> the instance up correctly; in the examples with the AdWords documentation, 
> they just instantiate a new instance and leave it at that.
>
> Can anyone help me? If there is more than one way to do this, I would be 
> very grateful for knowing all of them, as I would like to have a better 
> understanding of how AdWords works on the whole.
>
> Thanks,
> Conor
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/bdb78797-a650-4480-b2ca-21ae2252479e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to