Hi, I'm in the process of updating the Sandbox Getting Started guide<https://developers.google.com/adwords/api/docs/sandbox#getting-started>to better emphasize use of the client libraries.
1. To access the sandbox, first you need is a Google account (if you don't have one, create a new account<https://www.google.com/accounts/NewAccount>). You will use this account's email address and password to set the sandbox-specific request headers. 2. Edit your client library’s configuration to use your google account username and password (e.g. email: [email protected], password: mys3cr3t). Set the developer token to email++currencycode (this is a magic value for the sandbox only). Example: [email protected]++USD. Leave the clientCustomerId blank for now, we’ll come back and edit it later. 1. Some libraries configure the environment/endpoint in the config file. We want to make sure we use the SANDBOX environment - the server is located at 3. Run your client library’s GetCampaigns code example. Since we left the clientCustomerId blank, this will request the campaigns for a new Sandbox My Client Center (MCC) account (for which your google account is used to authenticate). MCC accounts don’t have any Campaigns - this is a special hook that the server uses to initialize your account. 1. This is not the same as the account you’ll sign up for accessing the API with. The google account you use for the sandbox can be an MCC, regular client account, or even a google account that has no AdWords product associated with it. 4. Now that your sandbox account has been initialized with 5 client accounts, we need to know the clientCustomerId of them to make requests. Run the GetAccountHierarchy example. This will print out the ID of client account(s) managed by your sandbox MCC. Edit your configuration file (see step 2) and insert your clientCustomerId of the client account. This tells the API you are going to authenticate with your google account (which is an MCC in the sandbox) and target the client account corresponding to the clientCustomerId. 5. Now we can start making requests. Run the AddCampaigns example followed by the GetCampaigns example. We’re now specifying a clientCustomerId, so AddCampaigns creates campaigns for the client account and GetCampaigns prints them out. Try out more code examples to see what they do! Please let me know if you feel any step needs more/less explanation. - Kevin Winter AdWords API Team On Wednesday, July 11, 2012 9:38:35 AM UTC-4, Francois Sivade wrote: > > > Hello, I try to use the API Google Adwords. I follow the instructions of > the gettin started > video<http://code.google.com/p/google-api-adwords-dotnet/>, > but when i put the "addCampaign" command in the debugguer of my exemple > project, i have this error: > > v201109_1.GetAdGroups : This code example illustrates how to retrieve all > the ad > groups for a campaign. To create an ad group, run AddAdGroup.cs. > v201109_1.GetAccountAlerts : This code example gets all alerts for all > clients o > f an MCC account. The effective user (ClientCustomerId or AuthToken) must > be an > MCC user to get results. > > It's strange because in the app.config, i've filled the corresponding tag. > Do you have an idea of the problem ? > > Thank's for you're attention. > > PS: Sorry for my language, i'm French :-) > -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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
