How to use a test account to test.

2021-06-18 Thread yushan mu
Hi,I  have a problem about how to use the Java development library to 
obtain the operating data of the specified user under googleAds (the amount 
of advertisements and the amount of clicks on the advertisements, etc.). We 
are currently using official documents to transfer to google Ads through 
Oauth service, but we have not obtained any data. When trying to use the 
official account to create a campaign, I found that I need to pay. However, 
when I used the test account to create it, it prompted me that the current 
account status cannot create a campaign. How should we operate, whether we 
need to purchase the corresponding service products.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/1fbedaae-a53f-42ee-af26-061e7c677587n%40googlegroups.com.


Re: 有没有中文技术支持?我们遇到了invalid_grant的错误!

2021-06-18 Thread yushan mu

你好,能留一个微信或其他的联系方式么。我使用java语言也无法正常执行GetCampaigns 能否帮我看看在基础配置中我哪里是否有问题
在2021年6月16日星期三 UTC+8 下午3:10:01 写道:

> 谷歌的技术人员你好:
>
> 我们在使用GoogleAds 
> php客户端库时遇到了invalid_grant的错误,我们已经获取了refreshToken,并将clientId,clientSecret,developerToken,customerId,refreshToken都已经配置到了google_ads_php.ini中,google_ads_php.ini配置文件也已经存放在当前用户的home目录下。
> 我们在调用php客户端库中的例子程序GetCampaigns.php时,遇到了如下错误
>
> [root@iZj6cjfcqhdx9dq7v068syZ BasicOperations]# php GetCampaigns.php 
> --customerId=8989099376
> PHP Fatal error:  Uncaught GuzzleHttp\Exception\ClientException: Client 
> error: `POST https://oauth2.googleapis.com/token` 
>  resulted in a `400 Bad Request` 
> response:
> {
>   "error": "invalid_grant",
>   "error_description": "Bad Request"
> }
>  in 
> /home/gg/google-ads-php/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:113
> Stack trace:
> #0 
> /home/gg/google-ads-php/vendor/guzzlehttp/guzzle/src/Middleware.php(69): 
> GuzzleHttp\Exception\RequestException::create(Object(GuzzleHttp\Psr7\Request),
>  
> Object(GuzzleHttp\Psr7\Response), NULL, Array, NULL)
> #1 
> /home/gg/google-ads-php/vendor/guzzlehttp/promises/src/Promise.php(204): 
> GuzzleHttp\Middleware::GuzzleHttp\{closure}(Object(GuzzleHttp\Psr7\Response))
> #2 
> /home/gg/google-ads-php/vendor/guzzlehttp/promises/src/Promise.php(153): 
> GuzzleHttp\Promise\Promise::callHandler(1, 
> Object(GuzzleHttp\Psr7\Response), NULL)
> #3 
> /home/gg/google-ads-php/vendor/guzzlehttp/promises/src/TaskQueue.php(48): 
> GuzzleHttp\Promise\Promise::GuzzleHttp\Promise\{closure}()
> #4 /home/gg/google-ads-php/vendor/guzzlehttp/pr in 
> /home/gg/google-ads-php/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php
>  
> on line 113
>
>
>
> 之前也有求助过谷歌技术,但也没有解决问题,之前的回复有让我再继续核实一遍quickstart的内容,我也重新确认过,没有发现遗漏的地方,也有技术同学让我打开客户端库的Logging功能,打开后,我调用接口例子程序却没有任何日志记录下来。
>
> 上面的错误是发生在我们的生产账户中,我用自己的个人账户创建了一个test 
> account,也是用同样的方法配置客户端库,最终可以成功调用接口,下面是我之前用test account调用成功的内容
>
> [root@iZj6cjfcqhdx9dq7v068syZ BasicOperations]# php GetCampaigns.php 
> --customerId=3602938739 <(360)%20293-8739>
> Campaign with ID 13322273954 <(332)%20227-3954> and name 'App 
> promotion-App-1' was found.
> [2021-06-16T15:03:18.234321+08:00] google-ads.INFO: Request made: Host: "
> googleads.googleapis.com", Method: 
> "/google.ads.googleads.v6.services.GoogleAdsService/SearchStream", 
> CustomerId: 3602938739 <(360)%20293-8739>, RequestId: 
> "Vb4tDxILqxAYcOq41nZQ3g", IsFault: 0, FaultMessage: "None"
>
> 所以这也是一个很大的疑问,为什么我们的test 
> account可以成功调用接口,而production account却不能调用成功呢?用得还是同样的配置方法,到底是哪里不对呢?
>
> 希望能有技术支持可以帮忙解决我们的问题,多谢了!
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/1dcbf831-c822-4a01-a1e1-a9a7a36b5a97n%40googlegroups.com.


What's wrong with the request?Please help me!!!!

2021-06-19 Thread yushan mu
I was trying use the Googles Ads Api ,in the part of document First Call: 
Get Campaigns.
I got an error .

Request
---
MethodName: google.ads.googleads.v7.services.GoogleAdsService/SearchStream
Endpoint: googleads.googleapis.com:443
Headers: {developer-token=REDACTED, x-goog-api-client=gl-java/1.8.0_112-ea 
gapic/ gax/1.63.0 grpc/1.36.0}
Body: customer_id: "1303449992"
query: "SELECT campaign.id, campaign.name FROM campaign ORDER BY 
campaign.id"


Response

Headers: null
Body: null
Failure message: null
Status: Status{code=INTERNAL, description=channelRead() missed by 
ProtocolNegotiator handler: PooledUnsafeDirectByteBuf(ridx: 0, widx: 2, 
cap: 1024)
Channel Pipeline: [HttpProxyHandler$HttpClientCodecWrapper#0, 
HttpProxyHandler#0, ProtocolNegotiators$ProxyProtocolNegotiationHandler#0, 
WriteBufferingAndExceptionHandler#0, DefaultChannelPipeline$TailContext#0], 
cause=null}.
Exception in thread "main" com.google.api.gax.rpc.InternalException: 
io.grpc.StatusRuntimeException: INTERNAL: channelRead() missed by 
ProtocolNegotiator handler: PooledUnsafeDirectByteBuf(ridx: 0, widx: 2, 
cap: 1024)
Channel Pipeline: [HttpProxyHandler$HttpClientCodecWrapper#0, 
HttpProxyHandler#0, ProtocolNegotiators$ProxyProtocolNegotiationHandler#0, 
WriteBufferingAndExceptionHandler#0, DefaultChannelPipeline$TailContext#0]
at 
com.google.api.gax.rpc.ApiExceptionFactory.createException(ApiExceptionFactory.java:67)
at 
com.google.api.gax.grpc.GrpcApiExceptionFactory.create(GrpcApiExceptionFactory.java:72)
at 
com.google.api.gax.grpc.GrpcApiExceptionFactory.create(GrpcApiExceptionFactory.java:60)
at 
com.google.api.gax.grpc.ExceptionResponseObserver.onErrorImpl(ExceptionResponseObserver.java:82)
at 
com.google.api.gax.rpc.StateCheckingResponseObserver.onError(StateCheckingResponseObserver.java:86)
at 
com.google.api.gax.grpc.GrpcDirectStreamController$ResponseObserverAdapter.onClose(GrpcDirectStreamController.java:149)
at 
io.grpc.PartialForwardingClientCallListener.onClose(PartialForwardingClientCallListener.java:39)
at 
io.grpc.ForwardingClientCallListener.onClose(ForwardingClientCallListener.java:23)
at 
io.grpc.ForwardingClientCallListener$SimpleForwardingClientCallListener.onClose(ForwardingClientCallListener.java:40)
at 
com.google.ads.googleads.lib.logging.LoggingInterceptor$1$1.onClose(LoggingInterceptor.java:113)
at 
io.grpc.internal.DelayedClientCall$DelayedListener$3.run(DelayedClientCall.java:464)
at 
io.grpc.internal.DelayedClientCall$DelayedListener.delayOrExecute(DelayedClientCall.java:428)
at 
io.grpc.internal.DelayedClientCall$DelayedListener.onClose(DelayedClientCall.java:461)
at io.grpc.internal.ClientCallImpl.closeObserver(ClientCallImpl.java:553)
at io.grpc.internal.ClientCallImpl.access$300(ClientCallImpl.java:68)
at 
io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1StreamClosed.runInternal(ClientCallImpl.java:739)
at 
io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1StreamClosed.runInContext(ClientCallImpl.java:718)
at io.grpc.internal.ContextRunnable.run(ContextRunnable.java:37)
at io.grpc.internal.SerializingExecutor.run(SerializingExecutor.java:123)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Suppressed: java.lang.RuntimeException: Asynchronous task failed
at 
com.google.api.gax.rpc.ServerStreamIterator.hasNext(ServerStreamIterator.java:105)
at GetCampaigns.runExample(GetCampaigns.java:97)
at GetCampaigns.main(GetCampaigns.java:57)
Caused by: io.grpc.StatusRuntimeException: INTERNAL: channelRead() missed 
by ProtocolNegotiator handler: PooledUnsafeDirectByteBuf(ridx: 0, widx: 2, 
cap: 1024)
Channel Pipeline: [HttpProxyHandler$HttpClientCodecWrapper#0, 
HttpProxyHandler#0, ProtocolNegotiators$ProxyProtocolNegotiationHandler#0, 
WriteBufferingAndExceptionHandler#0, DefaultChannelPipeline$TailContext#0]
at io.grpc.Status.asRuntimeException(Status.java:535)
... 21 more
please tell me what should i do.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 m

No functional channel service provider found. Try adding a dependency on the grpc-okhttp, grpc-netty, or grpc-netty-shaded artifact

2021-06-22 Thread yushan mu
Hello Ads API Team,
 when I use the google-ads java library of the version  13.0.0 in my pom 
 and try to run the sample code "GetCampaigns" .I got an error :

-
Exception in thread "main" 
io.grpc.ManagedChannelProvider$ProviderNotFoundException: No functional 
channel service provider found. *Try adding a dependency on the 
grpc-okhttp, grpc-netty, or grpc-netty-shaded artifact*
at io.grpc.ManagedChannelProvider.provider(ManagedChannelProvider.java:43)
at io.grpc.ManagedChannelBuilder.forAddress(ManagedChannelBuilder.java:39)
at 
com.google.api.gax.grpc.InstantiatingGrpcChannelProvider.createSingleChannel(InstantiatingGrpcChannelProvider.java:325)
at 
com.google.api.gax.grpc.InstantiatingGrpcChannelProvider.access$1800(InstantiatingGrpcChannelProvider.java:81)
at 
com.google.api.gax.grpc.InstantiatingGrpcChannelProvider$1.createSingleChannel(InstantiatingGrpcChannelProvider.java:231)
at com.google.api.gax.grpc.ChannelPool.create(ChannelPool.java:72)
at 
com.google.api.gax.grpc.InstantiatingGrpcChannelProvider.createChannel(InstantiatingGrpcChannelProvider.java:241)
at 
com.google.api.gax.grpc.InstantiatingGrpcChannelProvider.getTransportChannel(InstantiatingGrpcChannelProvider.java:219)
at com.google.api.gax.rpc.ClientContext.create(ClientContext.java:199)
at 
com.google.ads.googleads.v8.services.stub.GrpcGoogleAdsServiceStub.create(GrpcGoogleAdsServiceStub.java:97)
at 
com.google.ads.googleads.v8.services.stub.GoogleAdsServiceStubSettings.createStub(GoogleAdsServiceStubSettings.java:185)
at 
com.google.ads.googleads.v8.services.GoogleAdsServiceClient.(GoogleAdsServiceClient.java:138)
at 
com.google.ads.googleads.v8.services.GoogleAdsServiceClient.create(GoogleAdsServiceClient.java:119)
at 
com.google.ads.googleads.lib.catalog.GeneratedCatalog$V8Client.createGoogleAdsServiceClient(GeneratedCatalog.java:6882)
at GetCampaigns.runExample(GetCampaigns.java:84)
at GetCampaigns.main(GetCampaigns.java:58)

Process finished with exit code 1

How can I do  to solve the issue.
 Please give me some idea .

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/59cbc91e-73e7-4ffc-ad2b-f25dbb6cba6an%40googlegroups.com.