When retrieving AdWordsUser, you should specify clientCustomerId (When you
filled in when you applied for test accounts).
and the developerToken is also the one you filled in the
form<https://docs.google.com/forms/d/1ERbljbb88ceyqU1gw2zN0KNI8Ltu5ASwo17M0wp0Ztg/viewform?id=1ERbljbb88ceyqU1gw2zN0KNI8Ltu5ASwo17M0wp0Ztg>
.
You'll make a request toward production environment, the way constructing
the AdWordsUser is different from the way of sandbox.
So the example snippet goes like this
AdWordsUser(username, passcode, <clientCustomerId(You filled in when you
applied for test accounts)>, "",
<Your developer token>, true)
You can confirm whether you are using test accounts, you see api cost is 0
in your response.
Best,
- Takeshi, AdWords API Team
2012年12月3日月曜日 23時11分45秒 UTC-8 apier:
>
> I've problem too, I search the entire forum/google, no working example for
> test account, here is my code to try to get advertiser account, it throws
> java.net.MalformedURLException: no protocol:
> v201209/api/adwords/cm/v201209/CampaignService:
>
> -----------------------------------------
> try {
> // Log SOAP XML request and response.
> AdWordsServiceLogger.log();
>
> // Get AdWordsUser from "~/adwords.properties".
> AdWordsUser user = new AdWordsUser(username, passcode, "", "",
> username + "++" + currencyCode, true);
>
> AdWordsService service =
> AdWordsService.V201209.CAMPAIGN_SERVICE;
> CampaignServiceInterface campaignService =
> user.getService(service,
> "v201209");
>
> ----------------------------------------------------------------------
>
> On Tuesday, November 20, 2012 8:25:57 AM UTC-8, Nick Yurov wrote:
>>
>> Who can explain step by step how to start developing with Test Acounts
>> (how to get developer key, mcc)?
>> I'm very confused with taking credentials to Api
>> Thanks.
>>
>
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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