Re: [5-9473000000757] Questions about migration to v201302 : Location, Bidding for CvOptimizer
萩倉様 ご回答ありがとうございます。 よくわかりました。 CVオプティマイザ配下にキーワードを追加する際、キーワードに対してBidを設定する必要がないということですね。 EnhancedCampaign対応に関して、実装上の疑問点がすべて解決しました。 ありがとうございました。 今後ともよろしくお願いいたします。 澤井 2013/4/16 adwords-api@googlegroups.com 澤井さん 1 についてはバグのようです。 バグとして登録しました。KeywordMatchType を含めるようにしていただけますでしょうか。 2 CpaBid に関してはキーワードレベルでなく AdGroup レベルで設定します。 AdGroup レベルでCpaBid を設定して取得するときは TargetCpa で取得いただけますでしょうか。 TargetCpa と MaxCpa を切り替えるときは bidType で切り替えができます。 https://developers.google.com/adwords/api/docs/reference/v201302/AdGroupService.ConversionOptimizerBiddingScheme 萩倉 =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and discussion group: http://googleadsdeveloper.blogspot.com/search/label/adwords_api https://developers.google.com/adwords/api/community/ =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ On 04/15/13 20:18:32 澤井悠 yu_sa...@lockon.co.jp wrote: 萩倉さん ご回答ありがとうございます。 1,2について、了解いたしました。 3についてですが、 お送りしたのは、**既存のレガシーかつCVオプティマイザのキャンペーンのキーワー**ドを取得するリクエストとレスポンスです。 3点の問題があります。 �2件のキーワードに対して、**まったく同一のEntriesが3件ずつ、計6件取得されている ⇒この件、直接原因の特定に至りました。 Selectorのフィールドとして、 ”MatchTypeを指定すると、**同一キーワードのレコードが3件とれます。 ”KeywordMatchType”**の場合は1件だけが正しくとれます。 これは正しい仕様でしょうか。 �CVオプティマイザキャンペーン配下のキーワードですが、**CpcBid型のBidsしか取得されない ⇒この件も、ほぼ原因が分かっています。 SelectorのフィールドにCpaBidを指定していないた**めです。 CpaBidを取得するためのフィールド名は何でしょうか? ※”TargetCpaBid, CpaBidはいずれもAPIエラーが返されます。 ※CpaBid, CpmBidはそれぞれCpcBid, CpmBidを指定することで、取得に成功しています。 �**CVオプティマイザキャンペーン配下にキーワードを追加する際、**CpaBidをセットできるのか? CpaBidをセットするとAPIエラーが返ってきます。 セットの仕方を教えていただくことは可能でしょうか? 上記3点、ご確認いただけますと大変助かります。 お手数ですがどうぞよろしくお願いいたします。 澤井 On Mon, Apr 15, 2013 at 5:39 PM, adwords-api@googlegroups.com wrote: 澤井さん 返信遅くなってすみません。 こちらに届いていることに気づいていませんでした。 英語には問題ないので、**フォーラム上で返信していただいても問題ないです。 1. について、はい Beta feature であることが関係しています。 これらの機能については、 一部の Beta として invite されているお客様のみ使用可能です。 2. すみません、このフィールドの用途について確認させてください。 ドキュメントの記述間違いで使われないフィールドが残っている可**能性があります。 3. BiddingStrategyConfiguration.**Bids の中に CpaBid をセットしていたでしょうか? Bids の中に同時に CpcBid も CpaBid もセットすることができます。 BiddingStrategyType または、 BiddingStrategyScheme を切り替えることによって、どの Bids が有効になるかが決まります。 萩倉 =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~**=~=~=~=~=~=~=~=~=~ Also find us on our blog and discussion group: http://googleadsdeveloper.**blogspot.com/search/label/**adwords_apihttp://googleadsdeveloper.blogspot.com/search/label/adwords_api https://developers.google.**com/adwords/api/community/https://developers.google.com/adwords/api/community/ =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~**=~=~=~=~=~=~=~=~=~ On 04/15/13 13:49:30 澤井悠 yu_sa...@lockon.co.jp wrote: 萩倉さん 補足のため adwordsapiadvisor+takeshi ...宛にメールを送らせて頂きましたが、**届いていますでしょう**か。 (誤解なきよう、すべて日本語で詳細やりとりしたいためです。) 恐れ入りますがご確認のほどよろしくお願いいたします。 澤井 2013年4月9日火曜日 13時53分04秒 UTC+9 Takeshi Hagikura (AdWords API Team): Hi, Yu-san, 1. Using geo performance reporthttps://developers.google.com/adwords/api/docs/appendix/reports#geo, you can retrieve the performance stats based on user's physical location or locations users are interested in including airport. 2. I don't think so. If there is something wrong, can you please make another thread including request/response xml logs? 3. I believe it's CpaBid 4. The document should be fixed. TargetCpaBid is not available in AdGroupCriterionService. We're fixing the document. Best, - Takeshi On Thursday, April 4, 2013 8:45:45 PM UTC+9, 澤井悠 wrote: Dear AdWords API team, 1. Can I retrieve the location data of airports? I can see them on https://developers.google.**c om/adwords/api/docs/appendix/**geotargetinghttps://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 ConversionOptimizerBiddingSche**me always null? 3. Is the type of Bid of the keyword under a ConversionOptimizer campaign CpcBid? 4. Can I get CpaBid field of ConversionOptimizerBiddingSche**me? 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/}Serverhttp://schemas.xmlsoap.org/soap/envelope/%7DServer faultSubcode: faultString: [SelectorError.INVALID_FIELD_**NAME @ serviceSelector; trigger:'TargetCpaBid'] faultActor: faultNode: faultDetail: {https://adwords.google.com/**api/adwords/cm/v201302}**ApiExcept ionFaulthttps://adwords.google.com/api/adwords/cm/v201302%7DApiExceptionFault :message[**SelectorError.INVALID_FIELD_**NAME @ serviceSelector; trigger:'TargetCpaBid']/**messageApplicationException.**Type ApiException/**ApplicationException.Type**errors xmlns:xsi= http://www.w3.org/**2001/XMLSchema-instancehttp://www.w3.org/2001/XMLSchema-instance xsi:type=SelectorError**fieldPathserviceSelector/**fieldPa
Re: [5-9473000000757] Questions about migration to v201302 : Location, Bidding for CvOptimizer
萩倉さん ご回答ありがとうございます。 1,2について、了解いたしました。 3についてですが、 お送りしたのは、既存のレガシーかつCVオプティマイザのキャンペーンのキーワードを取得するリクエストとレスポンスです。 3点の問題があります。 ①2件のキーワードに対して、まったく同一のEntriesが3件ずつ、計6件取得されている ⇒この件、直接原因の特定に至りました。 Selectorのフィールドとして、 ”MatchTypeを指定すると、同一キーワードのレコードが3件とれます。 ”KeywordMatchType”の場合は1件だけが正しくとれます。 これは正しい仕様でしょうか。 ②CVオプティマイザキャンペーン配下のキーワードですが、CpcBid型のBidsしか取得されない ⇒この件も、ほぼ原因が分かっています。 SelectorのフィールドにCpaBidを指定していないためです。 CpaBidを取得するためのフィールド名は何でしょうか? ※”TargetCpaBid, CpaBidはいずれもAPIエラーが返されます。 ※CpaBid, CpmBidはそれぞれCpcBid, CpmBidを指定することで、取得に成功しています。 ③CVオプティマイザキャンペーン配下にキーワードを追加する際、CpaBidをセットできるのか? CpaBidをセットするとAPIエラーが返ってきます。 セットの仕方を教えていただくことは可能でしょうか? 上記3点、ご確認いただけますと大変助かります。 お手数ですがどうぞよろしくお願いいたします。 澤井 On Mon, Apr 15, 2013 at 5:39 PM, adwords-api@googlegroups.com wrote: 澤井さん 返信遅くなってすみません。 こちらに届いていることに気づいていませんでした。 英語には問題ないので、フォーラム上で返信していただいても問題ないです。 1. について、はい Beta feature であることが関係しています。 これらの機能については、 一部の Beta として invite されているお客様のみ使用可能です。 2. すみません、このフィールドの用途について確認させてください。 ドキュメントの記述間違いで使われないフィールドが残っている可能性があります。 3. BiddingStrategyConfiguration.Bids の中に CpaBid をセットしていたでしょうか? Bids の中に同時に CpcBid も CpaBid もセットすることができます。 BiddingStrategyType または、 BiddingStrategyScheme を切り替えることによって、どの Bids が有効になるかが決まります。 萩倉 =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and discussion group: http://googleadsdeveloper.blogspot.com/search/label/adwords_api https://developers.google.com/adwords/api/community/ =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ On 04/15/13 13:49:30 澤井悠 yu_sa...@lockon.co.jp wrote: 萩倉さん 補足のため adwordsapiadvisor+takeshi ...宛にメールを送らせて頂きましたが、**届いていますでしょうか。 (誤解なきよう、すべて日本語で詳細やりとりしたいためです。) 恐れ入りますがご確認のほどよろしくお願いいたします。 澤井 2013年4月9日火曜日 13時53分04秒 UTC+9 Takeshi Hagikura (AdWords API Team): Hi, Yu-san, 1. Using geo performance reporthttps://developers.google.com/adwords/api/docs/appendix/reports#geo, you can retrieve the performance stats based on user's physical location or locations users are interested in including airport. 2. I don't think so. If there is something wrong, can you please make another thread including request/response xml logs? 3. I believe it's CpaBid 4. The document should be fixed. TargetCpaBid is not available in AdGroupCriterionService. We're fixing the document. Best, - Takeshi On Thursday, April 4, 2013 8:45:45 PM UTC+9, 澤井悠 wrote: Dear AdWords API team, 1. Can I retrieve the location data of airports? I can see them on https://developers.google.**c** om/adwords/api/docs/appendix/**g**eotargetinghttps://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/**so**ap/envelope/}Serverhttp://schemas.xmlsoap.org/soap/envelope/%7DServer faultSubcode: faultString: [SelectorError.INVALID_FIELD_**N**AME @ serviceSelector; trigger:'TargetCpaBid'] faultActor: faultNode: faultDetail: {https://adwords.google.com/**ap**i/adwords/cm/v201302}**ApiExcept** ionFaulthttps://adwords.google.com/api/adwords/cm/v201302%7DApiExceptionFault :message[**SelectorErr**or.INVALID_FIELD_**NAME @ serviceSelector; trigger:'TargetCpaBid']/**messa**geApplicationException.**Type** ApiException/**ApplicationExcep**tion.Type**errors xmlns:xsi= http://www.w3.org/**2**001/XMLSchema-instancehttp://www.w3.org/2001/XMLSchema-instance xsi:type=SelectorError**fiel**dPathserviceSelector/**fieldPa** thtrigger**TargetCpaBid/**trigger**errorString**SelectorError.** INVALID_FIELD_**NAME/**errorStringApiError.**Type** SelectorError/ApiError.**Type**reasonINVALID_FIELD_**NAME/** reason/errors [SelectorError.INVALID_FIELD_**N**AME @ 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 =
Re: Questions about migration to v201302 : Location, Bidding for CvOptimizer
萩倉さん 補足のため adwordsapiadvisor+takeshi ...宛にメールを送らせて頂きましたが、届いていますでしょうか。 (誤解なきよう、すべて日本語で詳細やりとりしたいためです。) 恐れ入りますがご確認のほどよろしくお願いいたします。 澤井 2013年4月9日火曜日 13時53分04秒 UTC+9 Takeshi Hagikura (AdWords API Team): Hi, Yu-san, 1. Using geo performance reporthttps://developers.google.com/adwords/api/docs/appendix/reports#geo, you can retrieve the performance stats based on user's physical location or locations users are interested in including airport. 2. I don't think so. If there is something wrong, can you please make another thread including request/response xml logs? 3. I believe it's CpaBid 4. The document should be fixed. TargetCpaBid is not available in AdGroupCriterionService. We're fixing the document. Best, - Takeshi On Thursday, April 4, 2013 8:45:45 PM UTC+9, 澤井悠 wrote: 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']/messageApplicationException.TypeApiException/ApplicationException.Typeerrors xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:type=SelectorErrorfieldPathserviceSelector/fieldPathtriggerTargetCpaBid/triggererrorStringSelectorError.INVALID_FIELD_NAME/errorStringApiError.TypeSelectorError/ApiError.TypereasonINVALID_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 adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at
Re: Questions about migration to v201302 : Location, Bidding for CvOptimizer
Hi, Yu-san, 1. Using geo performance reporthttps://developers.google.com/adwords/api/docs/appendix/reports#geo, you can retrieve the performance stats based on user's physical location or locations users are interested in including airport. 2. I don't think so. If there is something wrong, can you please make another thread including request/response xml logs? 3. I believe it's CpaBid 4. The document should be fixed. TargetCpaBid is not available in AdGroupCriterionService. We're fixing the document. Best, - Takeshi On Thursday, April 4, 2013 8:45:45 PM UTC+9, 澤井悠 wrote: 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']/messageApplicationException.TypeApiException/ApplicationException.Typeerrors xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:type=SelectorErrorfieldPathserviceSelector/fieldPathtriggerTargetCpaBid/triggererrorStringSelectorError.INVALID_FIELD_NAME/errorStringApiError.TypeSelectorError/ApiError.TypereasonINVALID_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 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 --- 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
Questions about migration to v201302 : Location, Bidding for CvOptimizer
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']/messageApplicationException.TypeApiException/ApplicationException.Typeerrors xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:type=SelectorErrorfieldPathserviceSelector/fieldPathtriggerTargetCpaBid/triggererrorStringSelectorError.INVALID_FIELD_NAME/errorStringApiError.TypeSelectorError/ApiError.TypereasonINVALID_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 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 --- 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 adwords-api+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.