Hi, I tried replying privately to Anash last week, but I haven't heard back from him yet, and I can't seem to find any confirmation that my private post actually went through yet, so let me know if I need to re-send my information, or if there is anyone else I should talk to instead.
Thanks, Mike On Thursday, February 5, 2015 at 11:54:41 AM UTC-5, Anash P. Oommen (AdWords API Team) wrote: > > Hi Mike, > > So, I assume you are trying to get something as simple as a GetCampaigns > example to work. If that's the case, then only an advertiser account can > have campaigns, MCC accounts cannot. But based on your description alone, I > cannot tell for sure if the child accounts under your MCC are advertiser > accounts, or MCC accounts themselves. > > My suggestion is this: > > 1. Set ClientCustomerID to the customer id of your MCC account (it is on > the top right corner of the website once you login into the MCC account. > 2. Run > https://github.com/googleads/googleads-dotnet-lib/blob/master/examples/AdWords/CSharp/v201409/AccountManagement/GetAccountHierarchy.cs. > > It is available as part of the client library distribution. > > The script will print your account's hierarchical structure. The accounts > at the leaf level are usually advertiser accounts, but you can also > navigate to these accounts by clicking the account listed under My Client > Center tab of your MCC account. > > 3. Keep looking until you find an account with campaigns in it. Copy its > customerId to ClientCustomerId. Now run GetCampaigns.cs, and you should get > the campaigns within that account. > > If none of this works, then follow the instructions on > https://github.com/googleads/googleads-dotnet-lib/wiki/How-to-capture-SOAP-messages > > to send me the SOAP logs for a call that didn't work. Make sure you use the > "Reply to Author" option. Also provide your MCC customer ID. I'll > investigate this further. > > Cheers, > Anash > > On Thursday, February 5, 2015 at 10:00:50 PM UTC+5:30, [email protected] > wrote: >> >> Thanks for the reply, but I'm still not perfectly clear on this. I used >> an MCC account to create the OAuth2RefreshToken, so I'm not sure what the >> account "under that MCC account" would be. When I'm logged in as the MCC >> account that created the OAuth2RefreshToken, in the MCC environment (in the >> Client column of the Performance tab), I see a list of 30 clients, each >> with an account ID. In the Budget tab, I see these same 30 clients with >> the account IDs, and more account IDs in the Budget account column. None >> of the IDs I've tried from any of these sources seem to work. Are all of >> these IDs the wrong thing to try, and is there somewhere else I should look >> for an account ID? >> >> >> >> On Thursday, February 5, 2015 at 7:18:00 AM UTC-5, Anash P. Oommen >> (AdWords API Team) wrote: >>> >>> Hi Mike, >>> >>> The value you give for ClientCustomerId depends on what value you have >>> the OAuth2RefreshToken for. If OAuth2RefreshToken is for an MCC account, >>> then you can provide ClientCustomerId for any account under that MCC >>> account. If it is for an individual Advertiser account, >>> then ClientCustomerId should be the customer id for that account. >>> >>> Cheers, >>> Anash P. Oommen, >>> AdWords API Advisor. >>> >>> On Thursday, February 5, 2015 at 9:18:27 AM UTC+5:30, [email protected] >>> wrote: >>>> >>>> Hi, >>>> >>>> I'm new to the API and AdWords in general. I'm trying to get all of >>>> the campaign data for a number of advertisers. When I'm in the MCC site, >>>> I >>>> can see all of these advertisers and their IDs. I see my ID in the top of >>>> the screen. I created a test account with another ID. The App.config >>>> file >>>> asks for ClientCustomerId, but none of the IDs I send it seem to work. I >>>> talked to the MCC help hotline, and they said the developer token looked >>>> good, and the MCC was linked to the API app. My gmail account which I use >>>> for the MCC was used to create the OAuth data. Do I somehow need to >>>> create >>>> another ID with which to create OAuth data, and how would I give this >>>> account access to the adwords data if not in MCC? >>>> >>>> I have also tried some of the IDs I got from a downloaded report in the >>>> MCC ui. When I rolled back to the v201406 client library, I was able to >>>> find 2 campaigns if I didn't set ClientCustomerId, but I couldn't figure >>>> out where these came from. >>>> >>>> <add key="DeveloperToken" value="xxxxxxxxxxxxxxxxxxxxxx"/> >>>> <add key="ClientCustomerId" value="xxx-xxx-xxxx"/>--> >>>> >>>> <!-- OAuth2 configuration --> >>>> <add key='AuthorizationMethod' value='OAuth2' /> >>>> <add key='OAuth2ClientId' value=' >>>> xxxxxxxxxxxx-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.apps.googleusercontent.com' >>>> /> >>>> <add key='OAuth2ClientSecret' value='xxxxxxxxx-xxxxxxxxxxxxxx' /> >>>> <add key='OAuth2RefreshToken' >>>> value='1/xxxxxxxxx_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx_xxxxxxxxxx' >>>> /> >>>> >>>> >>>> Thanks, >>>> Mike >>>> >>> -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 [email protected] To unsubscribe from this group, send email to [email protected] 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 [email protected]. 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/68e0138f-50eb-40aa-a0ad-9a918f77a0a6%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
