Hi Matt, Thank you for your help. I have one thing to ask you. when i call generateKeywordIdeas method in this KeywordPlanIdeaServiceGrpcClient, it requires geoTargetConstants (locations array). I got the all locations from geotarget.csv and created the array. It required max 10 value in array but I can see 60 locations id(Parent ID) so I created 6 vars in array. like this private const LOC_IDS = array( array(21132,21133,21135,21136,21137,21138,21139,21140,21141), array(21142,21143,21144,21145,21146,21147,21148,21149,21150), array(21151,21152,21153,21154,21155,21156,21157,21158,21159), array(21160,21161,21162,21163,21164,21165,21166,21167,21168), array(21169,21170,21171,21172,21173,21174,21175,21176,21177), array(21178,21179,21180,21182,21183,21184) ); I run generateKeywordIdeas function with above location ids, it shows a little different with google keywordideas. for example when I enter the keyword("rare books"), google shows (avg month search: 6,600, High bid — $0.41) but my app shows avg month search :7390, high bid: $6.24(micro value is 6248351) I got the result after tried to sum each it's value from 6 times searching. foreach ($response->iterateAllElements() as $result) { $avg = (is_null($result->getKeywordIdeaMetrics()) ? 0 : $result->getKeywordIdeaMetrics()->getAvgMonthlySearches()); $bid = (is_null($result->getKeywordIdeaMetrics()) ? 0 : $result->getKeywordIdeaMetrics()->getHighTopOfPageBidMicros()); $comp = (is_null($result->getKeywordIdeaMetrics()) ? 0 : $result->getKeywordIdeaMetrics()->getCompetition()); if ($comp > 3 && $bid > 0) { for ($j=0; $j<$cnt; $j++) { if ($res[$j]["keyword"] == $result->getText()) { $flag = true; break; } }
if ($flag) { $res[$j]["avgmonth"] += $avg; $res[$j]["highbid"] += $bid; $flag = false; } else { ... } } } what is my issue? Thanks On Saturday, October 23, 2021 at 1:55:38 AM UTC+9 adsapi wrote: > Hi Oleg, > > Thanks for reaching out. I assume you are referring to > either low_top_of_page_bid_micros or high_top_of_page_bid_micros fields in > the KeywordPlanHistoricalMetrics > <https://developers.google.com/google-ads/api/reference/rpc/v8/KeywordPlanHistoricalMetrics>. > > These fields can only return values in terms of micros, not account > currency. Micros are defined as the account currency multiplied by > 1,000,000. > > Regards, > Matt > Google Ads API Team > > [image: Google Logo] > Matt > Google Ads API Team > > > ref:_00D1U1174p._5004Q2QEIU5:ref > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog: https://googleadsdeveloper.blogspot.com/ =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API and Google Ads 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 and Google Ads API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/3e0b2936-1df9-4f8e-bf66-138b4c31b342n%40googlegroups.com.