Re: getFirstPageCpc() of BiddableAdGroupCriterion returns null
Duplicate of https://groups.google.com/forum/#!topic/adwords-api/cX_4WRnXpJg On Friday, April 26, 2013 3:55:49 AM UTC+4, Etienne Lawlor wrote: > > I tried setting my selector like that but am not able to get the > FirstPageCpc. It looks like the documentation has not changed : > > > https://developers.google.com/adwords/api/docs/appendix/selectorfields#v201302-AdGroupCriterionService > > my @predicates; > > my $keyword_predicate = > Google::Ads::AdWords::v201302::Predicate->new( > { > field=> "Id", > operator => "IN", > values => [$keyword_id] > } > ); > > push( @predicates, $keyword_predicate ); > > my $adgroup_predicate = > Google::Ads::AdWords::v201302::Predicate->new( > { > field=> "AdGroupId", > operator => "IN", > values => [$google_adgroup_id] > } > ); > > push( @predicates, $adgroup_predicate ); > > # Create selector. > my $selector = > Google::Ads::AdWords::v201302::Selector->new( > { > fields => [ "QualityScore", > "FirstPageCpc","Id","AdGroupId" ], > predicates => \@predicates > } > ); > > my $res = > $client->AdGroupCriterionService() > ->get( { serviceSelector => $selector } ); > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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.
Re: getFirstPageCpc() of BiddableAdGroupCriterion returns null
I tried setting my selector like that but am not able to get the FirstPageCpc. It looks like the documentation has not changed : https://developers.google.com/adwords/api/docs/appendix/selectorfields#v201302-AdGroupCriterionService my @predicates; my $keyword_predicate = Google::Ads::AdWords::v201302::Predicate->new( { field=> "Id", operator => "IN", values => [$keyword_id] } ); push( @predicates, $keyword_predicate ); my $adgroup_predicate = Google::Ads::AdWords::v201302::Predicate->new( { field=> "AdGroupId", operator => "IN", values => [$google_adgroup_id] } ); push( @predicates, $adgroup_predicate ); # Create selector. my $selector = Google::Ads::AdWords::v201302::Selector->new( { fields => [ "QualityScore", "FirstPageCpc","Id","AdGroupId" ], predicates => \@predicates } ); my $res = $client->AdGroupCriterionService() ->get( { serviceSelector => $selector } ); -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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.
Re: getFirstPageCpc() of BiddableAdGroupCriterion returns null
Sorry, I have found the problem, I just had to use in the Selector the proper field: selector.setFields(new String[] {"Id", "AdGroupId", "MatchType", "KeywordText", "FirstPageCpc"}); On Tuesday, July 10, 2012 6:37:41 PM UTC+3, Stamatina Thomaidou wrote: > > Hello everyone, > > I'm trying to retrieve an estimated first page cpc for a completely new > keyword, but when I use getFirstPageCpc() it returns null as a result, thus > I cannot understand what I'm doing wrong. > > I use v201109 of AdWords API Java. > -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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
getFirstPageCpc() of BiddableAdGroupCriterion returns null
Hello everyone, I'm trying to retrieve an estimated first page cpc for a completely new keyword, but when I use getFirstPageCpc() it returns null as a result, thus I cannot understand what I'm doing wrong. I use v201109 of AdWords API Java. -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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