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="100000"/> -->

    <!-- 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="100000"/>

    <!-- 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

Reply via email to