I am trying to get mobile results back from the TrafficEstimatorService, but 
when I set the PlatformTarget in the CampaignEstimateRequest it comes back 
with an error: RequestError.UNSUPPORTED_TYPE_IS_USED

>From what I can tell in the documentation the platform target is listed as a 
target for CampaignEstimateRequest.

http://code.google.com/apis/adwords/docs/reference/latest/TrafficEstimatorService.CampaignEstimateRequest.html

The code that I am using:

CampaignEstimateRequest campaignEstimateRequest = new 
CampaignEstimateRequest();

LanguageTarget languageTarget = new LanguageTarget();

languageTarget.languageCode = "en";

CountryTarget countryTarget = new CountryTarget();

countryTarget.countryCode = "US";

PlatformTarget platformTarget = new PlatformTarget();

platformTarget.platformType = PlatformType.HIGH_END_MOBILE;

campaignEstimateRequest.targets = new Target[] { languageTarget, 
countryTarget, platformTarget };

Am I implementing the platform request incorrectly or is there another 
issue?

Also as a quick test I tried to set the platform type as DESKTOP and that 
failed as well.

Here is the full error:

[RequestError.UNSUPPORTED_TYPE_IS_USED @ 
selector.campaignEstimateRequests[0].targets.targets[2]; 
trigger:'com.google.ads.api.services.campaignmgmt.common.target.PlatformTarget']ApiExceptionselector.campaignEstimateRequests[0].targets.targets[2]com.google.ads.api.services.campaignmgmt.common.target.PlatformTargetRequestError.UNSUPPORTED_TYPE_IS_USEDRequestErrorINVALID_INPUT


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