Re: Cant get Campaigs in sandbox Adwords

2011-12-01 Thread Anash P. Oommen
Hi Morteza,

The configuration is almost fine, here's what you need to do to make calls 
to sandbox.

1. Run GetAllCampaigns.cs. This initializes the sandbox with 5 test 
accounts, but since you haven't added any campaigns, you will get an empty 
list.
2. Run GetAccountHierarchy.cs. This will give you the sandbox account 
structure and the customer ids of the 5 newly created accounts.
3. Pick any one of those customer ids, uncomment the ClientCustomerId field 
in your App.config and put the value there.
4. Now run AddCampaign.cs. It should work fine.

Let me know if you have more questions.

Cheers,
Anash P. Oommen,
AdWords API Advisor.

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 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


Cant get Campaigs in sandbox Adwords

2011-11-30 Thread Morteza
Hello,

i have trouble getting campaigns in the sandbox enviroment of Google 
Adwords. When i run getAllCampaigns.cs example, I get the message no 
campaigns were found. I  cant add campaigns either and i get an api 
exception. What could de problem with is. I am using v201109 and my config 
file looks like this: 

?xml version=1.0 encoding=utf-8 ?
configuration
  configSections
section name=AdWordsApi 
type=System.Configuration.DictionarySectionHandler/
  /configSections
  AdWordsApi
!-- Change the appropriate flags to turn on SOAP logging. --
add key=LogPath value=C:\Logs\/
add key=LogToConsole value=false/
add key=LogToFile value=false/
add key=MaskCredentials value=true/
add key=LogErrorsOnly value=false/

!-- Set the service timeout in milliseconds. --
!-- add key=Timeout value=10/ --

!-- Fill the following values if you plan to use a proxy server.--
add key=ProxyServer value=/
add key=ProxyUser value=/
add key=ProxyPassword value=/
add key=ProxyDomain value=/

!-- Use this key to change the default timeout for Ads services
(in milliseconds.)--
add key=Timeout value=10/

!-- Use this key to enable or disable gzip compression in SOAP 
requests.--
add key=EnableGzipCompression value=true/

!-- Fill the header values. --
add key=UserAgent value=../
!--add key=ClientEmail value=INSERT_YOUR_CLIENT_EMAIL_HERE/--
add key=DeveloperToken value=/
!-- Uncomment this key and comment ClientEmail if you want to specify
 customer id instead of customer email. --
!-- add key=ClientCustomerId
 value=INSERT_YOUR_CLIENT_CUSTOMER_ID_HERE/ --
!-- Application token is now optional and will be ignored by the 
server.--
!-- add key=ApplicationToken
 value=INSERT_YOUR_APPLICATION_TOKEN_HERE/ --

!-- Set the Authorization method to be used with the client library. 
--
!-- To use ClientLogin as authentication mechanism, uncomment the 
following
 section and comment the OAuth section below. --
add key=AuthorizationMethod value=ClientLogin /
add key=Email value=ap...@...com/
add key=Password value=../
!-- Optional: uncomment this if you want to reuse an authToken multiple
 times. --
!-- add key=AuthToken value=INSERT_YOUR_AUTH_TOKEN_HERE/ --

!-- To use OAuth as authentication mechanism, uncomment the following
 section and comment the AuthToken section above. --
!-- Note: For testing purposes, you can use the OAuth consumer 
key/secret
 as anonymous/anonymous.--
!--
add key=AuthorizationMethod value=OAuth /
add key=OAuthConsumerKey value=INSERT_YOUR_OAUTH_CONSUMER_KEY_HERE 
/
add key=OAuthConsumerSecret
 value=INSERT_YOUR_OAUTH_CONSUMER_SECRET_HERE /
--

!-- Uncomment this key if you want to use v13 sandbox. --
!-- add key=LegacyAdWordsApi.Server
 value=https://sandbox.google.com/ --

!-- Uncomment this key if you want to use AdWords API sandbox. --
add key=AdWordsApi.Server
value=https://adwords-sandbox.google.com/
  /AdWordsApi
  system.web
webServices
  soapExtensionTypes
add type=Google.Api.Ads.Common.Lib.SoapListenerExtension, 
Google.AdWords
 priority=1 group=0/
  /soapExtensionTypes
/webServices
  /system.web
  system.net
settings
  httpWebRequest maximumErrorResponseLength=-1  /
/settings
  /system.net
/configuration


I hope you can help me. Are there any other tutorials of how you can use de 
sandbox. 

Thank you in advance 

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 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