RE: Why does the java sdk always print error messages and cannot capture the error

2021-08-16 Thread Google Ads API Forum Advisor
Hi Xu, Thanks for reaching out to us. Upon checking the error log screenshot you’ve provided with us, it appears that you've encountered an invalid_grant error. Kindly note that the invalid_grant usually indicates an issue with the refresh token. That said, you’ll need to regenerate credential

Re: Why does the java sdk always print error messages and cannot capture the error

2021-08-16 Thread xu leo
thank you for your reply. I know that my token has expired. I mean, how can I get this error when the token has expired. Now as long as the token expires, this log will always be printed when requesting any interface (because the request will be repeated all the time), but I cannot catch the t

Configure "Conversion Account" and "Audience Manager Account" through Google Ads API

2021-08-16 Thread Léon Gersen
Hello Google Ads Team, I've recently automated the creation of Google Ads Accounts in our product. The workflow currently requires a message at the end, prompting users to log into the Google Ads UI to configure the "Conversion Account" and "Audience Manager Account", as these settings are not

RE: How to set Audience Manager Account for sub-account via Google Ads API?

2021-08-16 Thread Google Ads API Forum Advisor
Hello, Thank you for reaching out to us. Are you referring to the list sharing feature as discussed here? If yes, then I'm afraid that it's not possible in the API. Our team had already raised a feature request for this; however, there is no guarantee if this will be supported in the API soon.

RE: To extract information from Audience Manager > Insights from Audience

2021-08-16 Thread Google Ads API Forum Advisor
Hello Cris, Thank you for reaching out to us. As for your concern regarding Audience Insights, I'm afraid that this is still not available in the API. We had raised a feature request for this; however, there is no guarantee if this will be supported in the API soon. In the meantime, we suggest

Re: OPERATION_NOT_PERMITTED_FOR_CONTEXT with PHP examples AddCampaigns.php

2021-08-16 Thread Matěj Humpál , Follow Bubble
Hi Ernie, yes, I have followed all the steps you mention before and as I mention in the previous message, I was able to make the API work after I accepted the invitation to the client account I myself created a few moments before. My concern is: Do I have to be explicitly invited to all clie

php how to specify login-customer-id in the request

2021-08-16 Thread ma zhiwei
Hi, I am using google-ads-api to fetch campaign performance data, but I was stop by the following error. "message": "The caller does not have permission", "code": 7, "status": "PERMISSION_DENIED" My PHP code: ``` $customerId = "Manager ID"; $oAuth2Credential = (new OAuth2TokenBuilder())->from

Re: Developer token prohibited

2021-08-16 Thread rahul...@decision-tree.com
Hi, We are facing a similar problem with GoogleAds api. We are using the same project and developer token for both GoogleAdwords and GoogleAds API. For GoogleAdwords, it is working perfectly but with GoogleAds, it throws the DEVELOPER_TOKEN_PROHIBITED error saying that "message: "Developer toke

RE: Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential

2021-08-16 Thread Google Ads API Forum Advisor
Hi, Thanks for reaching out to us. Could you provide us with the complete request and response logs with the request-id, so our team can better check? If you haven't yet, logging can be enabled by navigating to the Client libraries > Your client library (ex. Java) > Logging documentation, whic

criterionError - FIELD_INCOMPATIBLE_WITH_NEGATIVE_TARGETING

2021-08-16 Thread Javokhir Rakhimov
I am creating plain new campaign through api and want to apply gender criterion (negative: false) but getting error: "errors": [ { "error_code": { "criterion_error": "FIELD_INCOMPATIBLE_WITH_NEGATIVE_TARGETING" }, "message": "The field is not allowed to be set when

Re: curl for location targeting

2021-08-16 Thread Wayne
Hi, thanks for the reply. I have a question, when sending locations in batch through Google Ads API (https://developers.google.com/google-ads/api/docs/targeting/location-targeting#look_up_by_location_name) We can send only 25 locations at once, however for every location, only 10 results are retu

RE: php how to specify login-customer-id in the request

2021-08-16 Thread Google Ads API Forum Advisor
Hi, Thanks for reaching out to us. Upon checking the error logs, it seems that the issue ‘USER_PERMISSION_DENIED’ occurred due to incorrectly setting the 'login-customer-id’ in the request. Note that when a user doesn't have permission to access a customer and you’re accessing a client custome

How can I get each asset‘s name,id,impression,cost and click data

2021-08-16 Thread 晓薇陈
How can I get each asset‘s name,id,impression,cost and click data?Now my result returns empty. [image: 1.jpg] -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog: https://googleadsdeveloper.blogspot.com/ =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received

How to extract search volume for a list of keywords using the news ads api

2021-08-16 Thread shoaib....@gmail.com
Hey, With google adwords api, we were able to extract the google search volume for a list of keywords. We could that with TargetingIdeaService and selecting STATS instead of IDEAS in the selector as follows. selector = { 'ideaType': 'KEYWORD', 'requestType': 'STATS'} How can we achieve the s

Re: curl for location targeting

2021-08-16 Thread Wayne
Hi, thanks for the reply. I have a question, when sending locations in batch through Google Ads API ( https://developers.google.com/google-ads/api/docs/targeting/location-targeting#look_up_by_location_name ) We can send only 25 locations at once, however for every location, only 10 results are ret

How to link account to manager account

2021-08-16 Thread Thien Tran
Hi, I'm following the Google Ads Api document to upload click offline conversions . I followed the step to link account to manager account but didn't see the sub-accounts menu in Settings as document wrote. 1. Sign in to your Google Ads manager account. 2. From the page menu on the left,

How to get audience id - no0 way to query

2021-08-16 Thread Monty808
hello Google Well I can create audiences using the example from here: https://developers.google.com/google-ads/api/docs/remarketing/audience-types/custom-audiences Wonderful but no example how to get the id of the audience created for use at a latter date. GoogleHow do I query to get the a

Re: Unknown targeting value

2021-08-16 Thread Zakwan Alhajjar
I am facing the same issue. Any idea?? On Thursday, August 5, 2021 at 11:58:40 AM UTC-4 as3...@gmail.com wrote: > Hello Matt > > I have replied privately, can you please confirm that you got my reply. > p.s: I've searched for the unknown location value in the latest geo > targets locations CSV f

Adwords CampaignCriteriaOperator API can not fetch negative keywords if they are part of a list

2021-08-16 Thread Deepak Rane
We use campaignCriterionService to fetch all campaign criteria's of any campaign. Negative keywords are also part of campaign criteria so ideally those should be fetched as part of this API. we observed that if the negative keywords are not part of list then they are fetched via API but if those

Re: Developer token prohibited

2021-08-16 Thread Google Ads API Forum Advisor
Hi Rahul, Please refer to the common error documentation for more information regarding common causes and how to prevent this error: https://developers.google.com/google-ads/api/docs/best-practices/common-errors?hl=en#developer_token_prohibited Thanks, Lakshmi Prathipati Google Ads API Team ref

Re: To extract information from Audience Manager > Insights from Audience

2021-08-16 Thread 'Cristiano Costa Santos' via AdWords API and Google Ads API Forum
Hello Mark, Thanks for the answer. Regards, On Monday, August 16, 2021 at 5:19:32 AM UTC-3 adsapi wrote: > Hello Cris, > > Thank you for reaching out to us. > > As for your concern regarding Audience Insights, I'm afraid that this is > still not available in the API. We had raised a feature r

Script got added to my account without permission

2021-08-16 Thread Md Kamruzzaman Shishir
Somebody hacked my account , disabled 2fa , mimicing my pc and ip adress, then adding some scripts to my ad account and run ad behind my back without me knowing, I only got to know after the bill was due and my account got suspended, what to do, they added an unknown back account which I do not

Re: how to summary data in account level?

2021-08-16 Thread Google Ads API Forum Advisor
Hi Ewin, I work with Peter and will assist you. I raised with my team your request for a summary row of non filtered entire account metrics on each API view that corresponds to a UI view that has an account summary. You may monitor our blog for an update. Regards, Aryeh Baker Google Ads API T

Golang API

2021-08-16 Thread Miki Haiat
Hi, Is there any reason why golang is not included in the supported clients? It looks like the only way to use it i add golang to the bazel build ? Thnaks, Miki -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog: https://googleadsdeveloper.blogspot.com/ =~=~=

RE: Google Ads API

2021-08-16 Thread Google Ads API Forum Advisor
Hi Vladyslav, Could you send a screenshot of the UI where you can get total reach value based on audience targeting characteristics such as interests, age, gender? Regards, Aryeh Baker Google Ads API Team ref:_00D1U1174p._5004Q2Iwlk4:ref -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

Re: How to query all devices List in Google Ads

2021-08-16 Thread Google Ads API Forum Advisor
Hello, Your screenshot appears to be showing a list of ad group bid simulations. You can use the ad group bid simulation resource to obtain various metric simulations for a series of bid settings. Please see this page for a more general guide on retrieving bid simulations. Can you please clari

RE: Script got added to my account without permission

2021-08-16 Thread Google Ads API Forum Advisor
Hi, When you mentioned scripts, is it Google Ads Scripts? Please add more details to the concern using 'Reply privately to author' option. Thanks, Lakshmi Prathipati Google Ads API Team ref:_00D1U1174p._5004Q2LneCV:ref -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on ou

RE: YOUTUBE_URL_UNSUPPORTED when excluding youtube.com from placement.

2021-08-16 Thread Google Ads API Forum Advisor
Hi Boris, If you can exclude the Youtube website in the UI, could you send send us a screenshot how you do it? If this cannot be done in the UI you can get help from product support. Regards, Aryeh Baker Google Ads API Team ref:_00D1U1174p._5004Q2LmvhE:ref -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=

RE: Golang API

2021-08-16 Thread Google Ads API Forum Advisor
Hi Miki, The supported languages are listed in the link: https://developers.google.com/google-ads/api/docs/client-libs?hl=en I forwarded your concern to the rest of the team. Please keep an eye on our blog for future releases: https://ads-developers.googleblog.com/ Let us know if you have any q

Re: Query "Ad customizer attributes"

2021-08-16 Thread Gavin
Thanks for the reply. >From the API that you suggested, I am able to find the Ad Customizer Feed that I added. However, what I am looking for is what I set in the Ad Customizer Attributes page. I don't think that page is related to the "Ad Customizer Feed". It is more like a property that can b

RE: Budget Limits

2021-08-16 Thread Google Ads API Forum Advisor
Hello, Thank you for reaching out to us. You can check on this guide on how to retrieve account budgets in an account. Hope this helps. Regards, Mark Kevin Albios Google Ads API Team ref:_00D1U1174p._5004Q2Ln1L4:ref -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our

Re: Python Google Ads: Escape user input for GAQL queries

2021-08-16 Thread Google Ads API Forum Advisor
Hello Alex, Thanks for getting back to us. You can utilize this Google Ads Query Builder to validate your query. With regard to those escape characters inputted by users, you can use regular expressions to validate user inputs. As an aside, we suggest that you raise this to the client library

Re: language

2021-08-16 Thread Google Ads API Forum Advisor
Hello, Thank you for getting back to us. As mentioned by Yasar on the previous thread, you can use this guide to get the Criterion IDs for your specified language. Regards, Mark Kevin Albios Google Ads API Team ref:_00D1U1174p._5004Q2Lmiud:ref -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=

Re: php how to specify login-customer-id in the request

2021-08-16 Thread ma zhiwei
Hi, Thanks for your response. My question is how to specify login-customer-id in the request by php, like this: header("login-customer-id: 1234567890"); ? I have specified the login-customer-id when I built googleAdsClient object, like this: $googleAdsClient = (new GoogleAdsClientBuilder())-

Re: How can we query ad customizer values via AWQL?

2021-08-16 Thread Google Ads API Forum Advisor
Hi Radoslav, Thank you for providing further details to your concern. I work with Mark and let me provide support to your concern. Please note that the AD_CUSTOMIZERS_FEED_ITEM_REPORT provides statistics for feed items used in Ad Customizers. However, when I checked your account, I did not see

RE: What's the ads-script equivalent for "all disapproved apps" GAds-API?

2021-08-16 Thread Google Ads API Forum Advisor
Hello Elad, Thank you for reaching out to us. Please see our responses to your questions below: Since you're referring to the python guide, you can setup the Python client library via this guide. As for the authentication, you can also refer to that guide. Here is an example on how to setup th

RE: Device view in ads api

2021-08-16 Thread Google Ads API Forum Advisor
Hello, Thank you for reaching out to us. So our team can better assist you, can you provide us the full Google Ads UI screenshot (in English language)? Please send the requested details via the Reply privately to author option. If this option is not available, you may send the details directly

RE: Google Ads API Structured Snippet Asset

2021-08-16 Thread Google Ads API Forum Advisor
Hi KDJ, Thank you for posting your concern. According to this document of AssetService.MutateAssets, structured_snippet_asset can be mutated so it should also be possible in the code. With this, since the issue was encountered in the code, then I would suggest raising this concern to the autho

Cannot access to table "Video" since days before

2021-08-16 Thread 'Pan Liu' via AdWords API and Google Ads API Forum
Dear Ads API team, We purpose to synchronize metrics from google Ads API into our database for our employees and ad managers to view. However, a problem was found when requesting video data ( https://developers.google.com/google-ads/api/fields/v8/video_query_builder). We got empty result withou

{ "error": "unauthorized_client", "error_description": "Unauthorized" }

2021-08-16 Thread Nobuyoshi Shimmen
Hi, When we make a post request for `https://oauth2.googleapis.com/token` to generate an access token, we get an error like this: `401 Unauthorized` response: { "error": "unauthorized_client", "error_description": "Unauthorized" } in our app in production. We are using a refresh token obtained

Re: OPERATION_NOT_PERMITTED_FOR_CONTEXT with PHP examples AddCampaigns.php

2021-08-16 Thread Google Ads API Forum Advisor
Hi Matěj, Thank you for the reply. You need to link the client accounts to your manager account, which your user account have an access, and follow the call structure that I've mentioned on my previous email. You may check this document as it discussed the suggestion that I provided. Let me k