RE: AdwordAPIからAdsAPIへの移行について

2019-08-23 Thread Google Ads API Forum Advisor Prod
Hello Masa,

If you want to get the keyword ideas like Tageting IdeaService.Get you could 
use KeywordPlanIdeaService.generateKeywordIdeas in Google Ads API. Here is the 
code sample that you can use to fetch the keywords ideas. Also, you could refer 
here(Keyword Planning section) to know more information on different services 
related to the keywords

Regards,
Sai Teja, Google Ads API Team
ref:_00D1U1174p._5001UHET6R: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/WYUV00PWPJHN00GvwKGYxfQEKt7O8n9KJFxQ%40sfdc.net.


RE: Dynamic HTML5 Ad preview

2019-08-23 Thread Google Ads API Forum Advisor Prod
Hello Justin,

The Ad Preview feature is not yet supported through the API. Please keep an eye 
on our blog for future updates.

Thanks,
Bharani, Google Ads API Team
ref:_00D1U1174p._5001UHEVyk: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/PJz3i0PWPJEY0063sqsWw5QVKYUjKLRjhmmw%40sfdc.net.


RE: Custom intent audiences. Audience size

2019-08-23 Thread Google Ads API Forum Advisor Prod
Hi Lubov,

You can get the audience size from AdWords API using the AdWordsUserListService 
and the UserListService for Google Ads API.

Regards,
Anthony
Google Ads API Team
ref:_00D1U1174p._5001UHETve: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/nOKSg0PWPEGU00OxWD35q3Qh28PjB_BLGtqA%40sfdc.net.


Re: BidModifier Guide

2019-08-23 Thread Google Ads API Forum Advisor Prod
Hi Chirag,

Apologies for the confusion here. I checked with my team internally and they 
confirmed that it is not possible to modify the bids for demographics using 
AdGroupBidModifierService /CampaignBidModifierService. Please refer to this 
guide for the supported criteria using these services. You could use 
AdGroupCriterionService to modify the bids for age range criteria at ad group 
level by setting the type of criterion, say age_range field of AdGroupCriterion 
and then set the bid_modifier as desired. Also, it is not possible to target 
the age range criteria at campaign level as mentioned in this guide. Hence, 
modifying bids for age_range criteria at campaign level is also not supported. 
Please let us know if you have any concerns.

Regards,
Nikisha Patel, Google Ads API Team
ref:_00D1U1174p._5001UEJHgX: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/2vGAM0PWPBWK000Ds_9cpSSEuyrSlf4b3DaA%40sfdc.net.


Re: Downloading Ads report with includeZeroImpressions = false still downloads the creative with impression = 0

2019-08-23 Thread Kain
Hi Hiroyuki,

Thank you so much for your answer.

Best,
Kain

On Thursday, August 22, 2019 at 12:26:57 AM UTC-7, adsapiforumadvisor wrote:
>
> Hi Kain,
>
> Thank you for posting your concern.
>
> *> From the above test result. I have a feeling that in order to exclude 
> the object with impression = 0 in the report, besides setting 
> includeZeroImpressions = false, we also need to include the "Impressions" 
> field into the report download request. So is this expected? *
>
> Could you confirm if you are using any metric fields in the SELECT clause? 
> If yes, could you also confirm if the values for the metric fields have 
> zero values? If the values aren't zero, this is the expected behavior. 
> Please note that excluding zero impressions with *includeZeroImpressions 
> = false* has a side effect in that rows are excluded only if all 
> specified metric fields in the query have zero values.
>
>
> *> In Case 1, actually I'm expecting the creative with impression = 0 
> should NOT appear in the report. If this is expected, besides "Impressions" 
> field, is there any other fields having the similar behavior that affect 
> the report?*
>
> If you have any other metric fields in the SELECT clause in your query and 
> if they have values, they will affect the report.
>
> You may refer to this guide 
> 
>  for 
> more details about zero Impression.
>
>
> If this doesn't help to resolve your issue, so I can further investigate, 
> could you provide the complete report definition 
> 
>  together 
> with your Client customer ID 
> 
> ?
>
> Regards,
> Hiroyuki
> Google Ads API Team
>
>
> ref:_00D1U1174p._5001UHEJrK: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/f1066ebc-f7cb-4316-bfa2-3100224fce07%40googlegroups.com.


Re: Dynamic HTML5 Ad preview

2019-08-23 Thread Justin Coon
Still not available? So there is no way to get a preview of a template ad 
(HTML5 ad) from the API??

On Thursday, March 28, 2019 at 12:50:21 PM UTC-5, googleadsapi-forumadvisor 
wrote:
>
> Hello Lorand, 
>
> Through the API, the Ad preview option is currently not available. We have 
> raised a feature request with the team. We will not be able to share a 
> definite timeline of when this feature will be available. Please keep an 
> eye on our blog 
>  for 
> more updates. To explore other options, you could try posting the concern 
> on the Advertisers Community form 
> 
>  to 
> see if the product experts have any suggestions. 
>
> Thanks,
> Bharani, Google Ads API Team
>
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
> Also find us on our blog and discussion group:
> http://googleadsdeveloper.blogspot.com/search/label/adwords_api
> https://developers.google.com/adwords/api/community/
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
>
> Was your question answered? Please rate your experience with us by taking 
> a short survey.
> If not -- reply to this email and tell us what else we can do to help.
>
> Take Survey 
> 
>
> Also find us on our blog and discussion group:
> http://googleadsdeveloper.blogspot.com/search/label/adwords_api
> https://developers.google.com/adwords/api/community/
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/03273365-29b9-4714-9c7c-d5989390640b%40googlegroups.com.


RE: Search Impr Share metric for Campaign/Ad Group Audience View (Google Ads API)

2019-08-23 Thread Leon Lei
Thanks for the quick response Bharani. Unfortunate that it isn’t currently 
available.

The attached shared guide is a great resource to see what metrics are available 
for each service.

Please consider the thread closed.

Leon

Leon Lei | Developer, Product & Analytics| O: 212-220-7363 | C: 646-596-6335 | 
l...@horizonmedia.com

From: Google Ads API Forum Advisor Prod 
Sent: Friday, August 23, 2019 10:58 AM
To: Leon Lei 
Cc: adwords-api@googlegroups.com
Subject: RE: Search Impr Share metric for Campaign/Ad Group Audience View 
(Google Ads API)

Hi Leon,

The SearchImpressionShare metrics is not available for the Campaign or Ad Group 
audience resource. This is not available in the AdWords API Audience 
Performance Report too. The 
SearchImpressionShare
 is supported for the report types in the shared guide. The 
metrics.search_impression_share is supported for these report types in Ads API 
too. Please refer to our migration 
guide for 
your reference. Let me know if you have any further questions.

Thanks,
Bharani, Google Ads API Team

 [Image removed by sender.]

ref:_00D1U1174p._5001UHEOp4:ref

One paper at a time. Think before you print. This email and any files 
transmitted with it are confidential and intended solely for the use of the 
individual or entity to whom it is addressed. If you are not the named 
addressee or you believe you received this email in error, you should not 
disseminate, distribute or copy this email. Please notify the sender 
immediately by return email if you have received this email by mistake and 
delete it from your system. If you are not the intended recipient, please be 
advised that disseminating, distributing or copying this email, or disclosing 
or taking any other action in reliance on the contents of this email is 
strictly prohibited.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/SN6PR16MB2448154ADB2A810BDF02BAD5BAA40%40SN6PR16MB2448.namprd16.prod.outlook.com.


RE: Search Impr Share metric for Campaign/Ad Group Audience View (Google Ads API)

2019-08-23 Thread Google Ads API Forum Advisor Prod
Hi Leon,

The SearchImpressionShare metrics is not available for the Campaign or Ad Group 
audience resource. This is not available in the AdWords API Audience 
Performance Report too. The SearchImpressionShare is supported for the report 
types in the shared guide. The metrics.search_impression_share is supported for 
these report types in Ads API too. Please refer to our migration guide for your 
reference. Let me know if you have any further questions.

Thanks,
Bharani, Google Ads API Team
ref:_00D1U1174p._5001UHEOp4: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/MErh-0PWP2WQ00E-6MMkvsQ7KpiNnvTs-pRQ%40sfdc.net.


Re: AUTHENTICATION_ERROR when initialize a GoogleAdsClient

2019-08-23 Thread Google Ads API Forum Advisor Prod
Hi Jia,

Could you please verify your credentials by using the OAuth doctor? This tool 
will help you determine if your OAuth2 credentials are configured correctly, 
and if they are ready to make API calls. It will also guide you through fixing 
any OAuth2 problems it detects and verify the corrected configuration. Please 
give this a try and let us know if you have any issues.

Regards,
Nikisha Patel, Google Ads API Team
ref:_00D1U1174p._5001UHEN2K: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/qMslx0PWP1VT00ehFibS1sQWupDRdUm_cidQ%40sfdc.net.


AttributeError: results while link_manager_to_client by google-ads-api

2019-08-23 Thread jia Jimmy
I'm following link_manager_to_client codes example 

. 

but it showed error:
Traceback (most recent call last):
  File "demo.py", line 204, in 
foo4()
  File "demo.py", line 189, in foo4
link_manager_to_client(client, "xxx6739927", "1xxx8517")
  File "demo.py", line 134, in link_manager_to_client
resource_name = response.results[0].resource_name
AttributeError: results
# result is right attribute



and  after GoogleAdsService search

 ga_service = client.get_service('GoogleAdsService', version='v2')
response = ga_service.search(manager_id, query=query)


response has no attribute result as below:



Traceback (most recent call last):
  File "demo.py", line 205, in 
foo4()
  File "demo.py", line 190, in foo4
link_manager_to_client(client, "xxx", "xxx")
  File "demo.py", line 160, in link_manager_to_client
for row in response.result:
AttributeError: 'GRPCIterator' object has no attribute 'result'


after fix it by my hand..another error happened

Traceback (most recent call last):
  File "demo.py", line 203, in 
foo4()
  File "demo.py", line 188, in foo4
link_manager_to_client(client, "", "x")
  File "demo.py", line 166, in link_manager_to_client
client_id, manager_id, manager_link_id))
AttributeError: 'str' object has no attribute 'value'


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/afd0bc45-fe51-4e55-8e23-f31f85f80bad%40googlegroups.com.


RE: Query report, the fields in the query condition contain double quotes, 400

2019-08-23 Thread Google Ads API Forum Advisor Prod
Hello,

I was able to select a campaign from my account with the name 'quote"test' by 
using the following query:
__rdquery=select+CampaignName%2C+CampaignId+from+CAMPAIGN_PERFORMANCE_REPORT+where+CampaignName+%3D+%22quote%5C%22test%22&__fmt=CSV

>From looking at the URL unescaped version of the above, it appears that you're 
>missing a backslash in your attempt. Try manually adding a backslash before 
>the quote in your query.

Regards,
Mike, Google Ads API Team
ref:_00D1U1174p._5001UHET6Q: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/kTjOx0PWOUEL00Mrr6d5XZRDmtXLLQPetucw%40sfdc.net.


Re: When we call the api of 'location' and 'geo', we meet the issues of error data and missing data.

2019-08-23 Thread Google Ads API Forum Advisor Prod
Hi,

I was able to check the account of the previous user and confirmed that this 
was normal behavior as there were no data generated for the Campaign Location 
Target Report in the UI as well.

To help me investigate your issue, could you provide the complete report 
definition and the clientCustomerId you used? Kindly use the reply privately to 
author option.

Regards,
Dannison
Google Ads API Team
ref:_00D1U1174p._5001UEGTFN: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/pBC1N0PWOR0S00tKpyDGTGTTqv567yR9nmuw%40sfdc.net.


Custom intent audiences. Audience size

2019-08-23 Thread lubov fedorinova
Hi.

How can I get audience size from AdWords APO or Google Ads API?

[image: Выделение_485.png]

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/9f101ef2-4b5c-46cb-bacc-f95e311857b0%40googlegroups.com.


Re: AUTHENTICATION_ERROR when initialize a GoogleAdsClient

2019-08-23 Thread jia Jimmy
After followed Quickstart 
 guide, I'm still 
meeting the same error, here's my trial:

# 1) got specified credentials 

  flow = google_auth_oauthlib.flow.Flow.from_client_secrets_file(
  CLIENT_SECRETS_FILE, scopes=SCOPES, state=state)
  flow.redirect_uri = REDIRECT_URL

  authorization_response = REQUEST_URL
  flow.fetch_token(authorization_response=authorization_response)

  # Store credentials 
  credentials = flow.credentials

  # the credentials is like 

  credentials_dict = \
{'token': 'xITMxxQC8wM3VIeG0', 
 'client_secret': 'L3xd7ioxD',
 'scopes': ['https://www.googleapis.com/auth/adwords'],
 'refresh_token': 'xcZox8',
 'token_uri': 'https://oauth2.googleapis.com/token',
 'client_id': '7xogleuserconxxt.coxm'}

...


# 2) got an adsclient using credentials 

  credentials = google.oauth2.credentials.Credentials(credentials)

  adsclient = google.ads.google_ads.client.GoogleAdsClient(
credentials, developer_token)

# 3) do different service by client

   customer_service = adsclient.get_service('CustomerService', version='v2')
   customers = customer_service.list_accessible_customers()
   print(customers)



same error happend when tring to list all customers


google.ads.google_ads.errors.GoogleAdsException: (<_Rendezvous of RPC that 
terminated with:
status = StatusCode.UNAUTHENTICATED
details = "Request is missing required authentication credential. 
Expected OAuth 2 access token, login cookie or other valid authentication 
credential. See 
https://developers.google.com/identity/sign-in/web/devconsole-project.;
debug_error_string = 
"{"created":"@1566544852.226886110","description":"Error received from peer 
ipv4:17d.1d:443","file":"src/core/lib/surface/call.cc","file_line":1052,"grpc_message":"Request
 is missing required authentication credential. Expected OAuth 2 access token, 
login cookie or other valid authentication credential. See 
https://developers.google.com/identity/sign-in/web/devconsole-project.","grpc_status":16};
>, <_Rendezvous of RPC that terminated with:
status = StatusCode.UNAUTHENTICATED
details = "Request is missing required authentication credential. 
Expected OAuth 2 access token, login cookie or other valid authentication 
credential. See 
https://developers.google.com/identity/sign-in/web/devconsole-project.;
debug_error_string = 
"{"created":"@1566544852.226886110","description":"Error received from peer 
ipv4:1dd:4d3","file":"src/core/lib/surface/call.cc","file_line":1052,"grpc_message":"Request
 is missing required authentication credential. Expected OAuth 2 access token, 
login cookie or other valid authentication credential. See 
https://developers.google.com/identity/sign-in/web/devconsole-project.","grpc_status":16};
>, errors {
  error_code {
authentication_error: AUTHENTICATION_ERROR
  }
  message: "Authentication of the request failed."
}
, 'IOPV3IUx7wLHzHQbbEH6WQ')



Can you help me about my problem?


在 2019年8月23日星期五 UTC+8上午4:51:26,adsapiforumadvisor写道:
>
> Hi Jia,
>
> Thank you for reaching support. With regards to your concern, it looks 
> like you have sent invalid authentication credentials while making call to 
> API. This is the reason you are getting StatusCode.UNAUTHENTICATED error. 
> Could you please verify if the correct credentials are used while making 
> API call. You might find our Quickstart 
>  guide useful 
> for the process of acquiring the correct set of credentials needed to make 
> call to the API. Let us know if you are still facing issue.
>
> Regards,
> Nikisha Patel, Google Ads API Team
>
>
> ref:_00D1U1174p._5001UHEN2K: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/7de962d7-08c3-4efc-adc3-6bdfb682caaa%40googlegroups.com.


RE: Correlation between mediaId and assetId (for media bundle assets)

2019-08-23 Thread Google Ads API Forum Advisor Prod
Hi,

Thanks for raising your concern.

My apologies for the delayed response as I discussed your issue to the rest of 
the team.

If you will create HTML5 using MediaService, you should use the created media 
bundle to the Media type object of AdGroupAdService not as an Asset type and 
vice versa as they are two different types.

Let me know if you have further questions.

Regards,
Ejay
Google Ads API Team
ref:_00D1U1174p._5001UHEFRv: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/pwXxe0PWOJAD002wlB9KwiSi6-D6veLvhZbA%40sfdc.net.


Re: AUTHENTICATION_ERROR when initialize a GoogleAdsClient

2019-08-23 Thread jia Jimmy
Thanks for your replying, Nikisha. What I'm confused is  that I can get a 
credentials 
object with refresh_token in the earlier steps, for refresh_token will 
automaticly generate access_token, then I could initialize a client onject. 
Am I right?

# refresh_token Got in earlier steps
# client_id  from  settings file
# client_secret  from settings  file
# do not need access_token, for with refresh_token access_token will 
automaticly generated

credentials = google.oauth2.credentials.Credentials(
 None,
 refresh_token=refresh_token,
 client_id=client_id,
 client_secret=client_secret,
 token_uri='https://accounts.google.com/o/oauth2/token')

# Initialize the GoogleAdsClient.
client = google.ads.google_ads.client.GoogleAdsClient(
credentials, developer_token)





在 2019年8月23日星期五 UTC+8上午4:51:26,adsapiforumadvisor写道:
>
> Hi Jia,
>
> Thank you for reaching support. With regards to your concern, it looks 
> like you have sent invalid authentication credentials while making call to 
> API. This is the reason you are getting StatusCode.UNAUTHENTICATED error. 
> Could you please verify if the correct credentials are used while making 
> API call. You might find our Quickstart 
>  guide useful 
> for the process of acquiring the correct set of credentials needed to make 
> call to the API. Let us know if you are still facing issue.
>
> Regards,
> Nikisha Patel, Google Ads API Team
>
>
> ref:_00D1U1174p._5001UHEN2K: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/7a1e57ad-790d-4233-8cd1-0a5d74cae30d%40googlegroups.com.


AdwordAPIからAdsAPIへの移行について

2019-08-23 Thread masa hassy
以前使用していたAdwordAPIからAdsAPIへ移行調査をしています。

AdwordAPIではTargetingIdeaServiceを使用していましたが
AdsAPIではKeywordPlanIdeaServiceに変更するときに
TargetingIdeaServiceで以下の設定をする場合、
KeywordPlanIdeaServiceではどのように設定するのでしょうか?
*具体的なコードの例で教えて下さい。*


   - TargetingIdeaService


$targetingIdeaService = new AdWordsServices()->get(SESSION, 
TargetingIdeaService::class);
$selector = new TargetingIdeaSelector();
$selector->setRequestType(RequestType::STATS);
$selector->setIdeaType(IdeaType::KEYWORD);
$selector->setRequestedAttributeTypes([
AttributeType::KEYWORD_TEXT,
AttributeType::SEARCH_VOLUME,
AttributeType::COMPETITION,
AttributeType::TARGETED_MONTHLY_SEARCHES]);

// Create related to query search parameter.
$relatedToQuerySearchParameter = new RelatedToQuerySearchParameter();
$relatedToQuerySearchParameter->setQueries(['KEYWORD']);
$searchParameters[] = $relatedToQuerySearchParameter;

// 関連ワード「入力した語句を含む候補のみを表示」の設定
$ideatextfilterSearchParameter = new IdeaTextFilterSearchParameter();
$ideatextfilterSearchParameter->setIncluded(array($keyword));
$searchParameters[] = $ideatextfilterSearchParameter;

// 関連ワード「アダルト関連の候補を表示」の設定
$includeadultcontentSearchParameter = new IncludeAdultContentSearchParameter
();
$searchParameters[] = $includeadultcontentSearchParameter;
$selector->setSearchParameters($searchParameters);

$targetingIdeaService->get($selector);



-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/ed3edea4-b37d-4eba-b0d4-f32f21482aba%40googlegroups.com.


Query report, the fields in the query condition contain double quotes, 400

2019-08-23 Thread li qian
Query the ad based on the ad group name and get the following results:

HTTP Response Code: 400
, Type: QueryError.PARSING_FAILED

Content:
__rdquery: SELECT CampaignName, AdGroupName, AdType FROM 
AD_PERFORMANCE_REPORT WHERE Status IN ["ENABLED", "PAUSED"] AND AdGroupName 
= "55" led tv" DURING LAST_7_DAYS
__fmt: CSV


I guess because the ad group name has double quotes, How should I solve 
him? I am using a java client

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/78a2530c-e4b1-4aff-8868-a40ff0b16364%40googlegroups.com.


Re: When we call the api of 'location' and 'geo', we meet the issues of error data and missing data.

2019-08-23 Thread 李鑫
Is there any answer about this qusetion? 
We also encountered this problem .
Did you solve it ?

在 2019年8月5日星期一 UTC+8下午8:56:51,ggg freak写道:
>
>
> in web page , at the User location report. I can see the data,
> Thank you.
>
> But use the php SDK, we still can't get the data we need.
>
> For example, the following account:
> Mcc : 237-147-9138
> Account_id : 9893975029
>
> By using the report of type SDK, CAMPAIGN_LOCATION_TARGET_REPORT, the data 
> location obtained is "--"
>
> And with the GEO_PERFORMANCE_REPORT type,  return  nothing .
>
>
> But I can see the report data on the web page through the Geographic 
> report and User location report.
>
>
> [image: 1.png]
>
>
> How can we use SDK to get  data include different countries ?
>
>
> 在 2019年8月5日星期一 UTC+8上午10:20:43,adsapiforumadvisor写道:
>>
>> Hi,
>>
>> My apologies as I have removed some of your screenshots and IDs as it 
>> contained sensitive information.
>>
>> Upon checking the screenshots you have provided, the report that you are 
>> looking at is not the equivalent of the Campaign Location Target Report. If 
>> you wish to see the equivalent report for this in the UI, navigate to the 
>> *Locations* menu on the left, then click the *MORE* tab on the top bar, 
>> finally click *User location report*. (Refer to screenshot)
>>
>> You will notice that rows that returned two dashes (--) does not show in 
>> this report. This is because no location was triggered for this particular 
>> row.
>>
>> Let me know if you have further clarifications.
>>
>> Regards,
>> Dannison
>> Google Ads API Team
>>
>> ref:_00D1U1174p._5001UEGTFN: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/39ada34b-a182-4bee-80e2-0754fa1f20e8%40googlegroups.com.