Re: error:"unauthorized_client"

2024-05-16 Thread Alex Gunner
OAuth verification does not need to be completed for this. Are you using a 
MCC test account with your test developer token?

On Thursday, May 16, 2024 at 12:56:20 AM UTC+3 Google Ads API Forum Advisor 
wrote:

> Hi,
>
> Thank you for reaching out to the Google Ads API support team.
>
> To analyse this 'Authorization 
> ' issue 
> further could you please provide us with the below details. 
>
>- Can you please execute customers.listAccessibleCustomers 
>
> 
>  and 
>provide us complete API request and response logs, you may also check this 
> API 
>documentation 
>
> 
>  for 
>more information. If you are using any programming language please check 
>sample code for List Accessible Customers 
>
> 
> here. 
>- The user email you used for authentication. 
>- Provide the Google Ads API endpoint that you are using. 
>
> You can send the details via Reply privately to the author option, or 
> direct private reply to this email.
>   
> This message is in relation to case 
> "ref:!00D1U01174p.!5004Q02tIzOV:ref" (ADR-00235180)
>
> Thanks,
>   
> [image: Google Logo] Google Ads API Team 
>
>  
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/d05f14d7-f2df-44a8-a296-5a79e82d519en%40googlegroups.com.


getAvgMonthlySearches returning incorrect values?

2024-04-24 Thread Alex Gunner
Hello,

Is it possible that GenerateKeywordIdeas - getAvgMonthlySearches() returns 
bogus values? 

I used the GenerateKeywordIdeas sample for a bunch of keywords and it 
returned 0 for a certain keyword. 

I retried the same batch today and poof, it now says that the same keyword 
has 3600 searches and according 
to getKeywordMetrics().getMonthlySearchVolumesList() - it never had 0 
average monthly searches.

Is this a known issue, should I only rely on what I see in the web UI and 
not the API? 

Thank you.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/e0f2ef68-9d87-4b28-aa53-d45547d8b517n%40googlegroups.com.


specifying the CPC currency for GenerateKeywordHistoricalMetricsRequest

2024-02-28 Thread Alex Gunner
Hi,

I'm using the V15 / v29 Google Ads API Client Library for Java and running 
this sample to get a CPC figure for a keyword I'm interested in: 

HistoricalMetricsOptions options = HistoricalMetricsOptions.newBuilder
().setIncludeAverageCpc(true).build();


GenerateKeywordHistoricalMetricsRequest request = 
GenerateKeywordHistoricalMetricsRequest.newBuilder()

.setCustomerId(String.valueOf(customerId))

.addAllKeywords(Arrays.asList("tennis racquets"))

.addGeoTargetConstants(ResourceNames.geoTargetConstant(2036)) // australia

.setKeywordPlanNetwork(KeywordPlanNetwork.GOOGLE_SEARCH)

.setHistoricalMetricsOptions(options)

.build();

try (KeywordPlanIdeaServiceClient keywordPlanIdeaServiceClient = 
googleAdsClient.getLatestVersion().createKeywordPlanIdeaServiceClient())

{

GenerateKeywordHistoricalMetricsResponse response = 
keywordPlanIdeaServiceClient.generateKeywordHistoricalMetrics(request);

for (GenerateKeywordHistoricalMetricsResult result : 
response.getResultsList())

{

KeywordPlanHistoricalMetrics metrics = result.getKeywordMetrics();


System.out.println("cpc: " + metrics.getAverageCpcMicros() / 100f);


What currency do the results use?


How do I specify I want the CPC value to be expressed in USD or AUD?


Thank you.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/93cc75c7-f59d-4c2f-9a16-76e2272ecd2fn%40googlegroups.com.