Hi Support,

We are trying to migrate our application from AdWords API to Google Ads. We 
follow the wiki: Migration 
<https://developers.google.com/google-ads/api/docs/client-libs/java/getting-started>.
 
and download the sample code 
<https://github.com/googleads/google-ads-java/tree/master/google-ads-examples/src/main/java/com/google/ads/googleads/examples>
. 


Then follow below steps:
1. create ads.properties in my home directory, fill all the required fields 
like clientSecret, developerToken etc
2. cd google-ads-examples
3. run mvn exec:java 
-Dexec.mainClass="com.google.ads.googleads.examples.basicoperations.GetCampaigns"
 
\
    -Dexec.args="--customerId INSERT_CUSTOMER_ID_HERE"

I passed one customerId which we use in current AdWords version, but it 
reported error:
*[ERROR] Failed to execute goal 
org.codehaus.mojo:exec-maven-plugin:1.6.0:java (default-cli) on project 
google-ads-examples: An exception occured while executing the Java class. 
io.grpc.StatusRuntimeException: PERMISSION_DENIED: Google Ads API has not 
been used in project 213105517664 before or it is disabled. Enable it by 
visiting 
https://console.developers.google.com/apis/api/googleads.googleapis.com/overview?project=213105517664
 
then retry. If you enabled this API recently, wait a few minutes for the 
action to propagate to our systems and retry. -> [Help 1]*

Could you help me find the root cause?  Meanwhile i also have no access to 
access the website in error message.  

Another question is, There is one file called ads.properties.sample in the 
Sample Java Project,  i saw it has one config called 
*api.googleads.loginCustomerId,*  what does it mean?  is it mandatory to 
run the App? I try to comment or add that field in my ads.properties file, 
but nothing helps. still no permission issue reported.

Thank you for your help and support!


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/2a774a67-d175-42c5-95be-f03edb783f21n%40googlegroups.com.
  • Permissoned denied whe... 'Chong Li' via AdWords API and Google Ads API Forum

Reply via email to