Re: micros to dollar

2022-12-18 Thread 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
Hi Chaitali,

Thank you for reaching out to our team.

Please note that we removed your message in the forum because it contains logs 
and screenshots which is prohibited for security reasons.

Moving forward to your concern, I understand you are encountering data 
discrepancies between UI and API. With this, in order for us to investigate the 
error, would you be able to provide the following data?

Screenshot of the UI where you downloaded the report and compared it to the API.
Complete request and response logs with request ID and request header generated 
on your end.
Sample comparison of the screenshot of the UI and the API where we can see the 
discrepancies.


While gathering the data that we are requesting, I would like to specify first 
the following when comparing the value of the UI and API:

Comparing the API and UI on the same level as possible.
The segments and fields of the API and UI should be the same.
The date range is also the same.


The report of the API and UI should be generated at the same time. The reason 
for this is that both API and UI follow the data freshness whose statistics 
might be updated or adjusted. With this, if generated at different times, then 
one of them is updated and one is not so data discrepancies might occur.

You can provide it via Reply privately to the author option. If this option is 
not available, then send it instead on this email address 
googleadsapi-supp...@google.com.

Kind regards,

Sherwin Vincent
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 
"Google Ads API and AdWords 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/K9r0h0RN4CBO00B7bnPZZ8RuajHuiGBp2dEQ%40sfdc.net.


Re: micros to dollar

2021-10-25 Thread 'Google Ads API Forum Advisor' via AdWords API and Google Ads API Forum
Hi Oleg,

Glad to hear you found a solution. Please let us know if we can help with 
anything else.

Regards,
Matt
Google Ads API Team

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/oPqXz0R1JF2V007Qsp1wJCQa2LI_lWRsWSGQ%40sfdc.net.


Re: micros to dollar

2021-10-24 Thread Oleg Disrupt
I fixed it

On Saturday, October 23, 2021 at 10:36:23 AM UTC+9 Oleg Disrupt wrote:

> In google ads keywordplanner I tried to search with my keywords and 
> customer id, language us(1000), location : united state
> But as I mentioned above it was different result between my app and google 
> keywordplans
>
> On Saturday, October 23, 2021 at 7:07:45 AM UTC+9 Oleg Disrupt wrote:
>
>> 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 
>>> .
>>>  
>>> 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/17153fa5-0c41-43f2-827e-65da3bb42117n%40googlegroups.com.


Re: micros to dollar

2021-10-22 Thread Oleg Disrupt
In google ads keywordplanner I tried to search with my keywords and 
customer id, language us(1000), location : united state
But as I mentioned above it was different result between my app and google 
keywordplans

On Saturday, October 23, 2021 at 7:07:45 AM UTC+9 Oleg Disrupt wrote:

> 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 
>> .
>>  
>> 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/7dc71fd7-13ab-4e5f-9559-cfa5aaca7c0cn%40googlegroups.com.


Re: micros to dollar

2021-10-22 Thread Oleg Disrupt
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 
> .
>  
> 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.


RE: micros to dollar

2021-10-22 Thread 'Google Ads API Forum Advisor' via AdWords API and Google Ads API Forum
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. 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

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/IBmyg0R1E1O7008CVTH94vTDePqnpic8WoTg%40sfdc.net.


micros to dollar

2021-10-21 Thread Oleg Disrupt
Hello
I got the
high_top_of_page_bid_micros using 
getKeywordIdeaMetrics
api function.
It shows big number like 86.
I can see it as $value as shown in google keywordplan.
How can I get this value?
Thanks

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/da9ef601-901c-4317-b6af-e53d18165f49n%40googlegroups.com.