Dear AdWords API team,
1. Can I retrieve the location data of airports?
I can see them on
https://developers.google.com/adwords/api/docs/appendix/geotargeting.
Their "TargetType" is "Airport".
Besides, if we can't get them, what kind of Location criteria can I get?
2. Is PricingMode of ConversionOptimizerBiddingScheme always null?
3. Is the type of Bid of the keyword under a ConversionOptimizer campaign
CpcBid?
4. Can I get "CpaBid" field of ConversionOptimizerBiddingScheme?
The document says we can get the bid of CpaBid by setting the field :
"TargetCpaBid". But I can see the following error :
※ERROR:
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server
faultSubcode:
faultString: [SelectorError.INVALID_FIELD_NAME @ serviceSelector;
trigger:'TargetCpaBid']
faultActor:
faultNode:
faultDetail:
{https://adwords.google.com/api/adwords/cm/v201302}ApiExceptionFault:<message>[SelectorError.INVALID_FIELD_NAME
@ serviceSelector;
trigger:'TargetCpaBid']</message><ApplicationException.Type>ApiException</ApplicationException.Type><errors
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="SelectorError"><fieldPath>serviceSelector</fieldPath><trigger>TargetCpaBid</trigger><errorString>SelectorError.INVALID_FIELD_NAME</errorString><ApiError.Type>SelectorError</ApiError.Type><reason>INVALID_FIELD_NAME</reason></errors>
[SelectorError.INVALID_FIELD_NAME @ serviceSelector; trigger:'TargetCpaBid']
...
※The code I used is below:
public void testGetKeyword() {
// Get the AdGroupCriterionService.
AdGroupCriterionServiceInterface adGroupCriterionService =
adWordsServices.get(session, AdGroupCriterionServiceInterface.class);
// Create selector.
Selector selector = new Selector();
selector.setFields(new String[] {"Id", "AdGroupId", "MatchType",
"KeywordText", "BiddingStrategyType", "BidType", "TargetCpaBid"});
selector.setOrdering(new OrderBy[] {new OrderBy("AdGroupId",
SortOrder.ASCENDING)});
selector.setPaging(new Paging(0, PAGE_SIZE));
// Create predicates.
Predicate adGroupIdPredicate =
new Predicate("AdGroupId", PredicateOperator.IN, new String[]
{adGroupId.toString()});
Predicate criteriaTypePredicate =
new Predicate("CriteriaType", PredicateOperator.EQUALS, new
String[] {"KEYWORD"});
selector.setPredicates(new Predicate[] {adGroupIdPredicate,
criteriaTypePredicate});
// Get all ad group criteria.
AdGroupCriterionPage page = null;
try {
page = adGroupCriterionService.get(selector);
} catch (ApiException e) {
e.printStackTrace();
} catch (RemoteException e) {
e.printStackTrace();
}
// Display ad group criteria.
if (page.getEntries() != null && page.getEntries().length > 0) {
// Display results.
for (AdGroupCriterion adGroupCriterionResult :
page.getEntries()) {
System.out.println("Keyword ad group criterion with ad
group id \""
+ adGroupCriterionResult.getAdGroupId() + "\", criterion
id \""
+ adGroupCriterionResult.getCriterion().getId() + "\",
text \""
+ ((Keyword)
adGroupCriterionResult.getCriterion()).getText()
+ "\" and match type \""
+ ((Keyword)
adGroupCriterionResult.getCriterion()).getMatchType() + "\" was found.");
}
} else {
System.out.println("No ad group criteria were found.");
}
}
Best Regards,
Yu
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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
---
You received this message because you are subscribed to the Google Groups
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.