RE: Google Ads cannot create refresh token

2022-03-07 Thread 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
Hi Oliver,

Thank you for raising this concern to Google Ads Api Forum.
I see that the issue here is Python client library related. I would suggest to 
trying this guide that will walk you through how to set up OAuth2 for API 
access using your own credentials.Yet, if the error still occurs after trying 
this guide,you may directly reach out to the client library owner by filing an 
issue in the Issue tab of github.

Let us know if you have further questions.

Regards,

Carmela
Google Ads API Team
ref:_00D1U1174p._5004Q2XmAn3: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 
"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/SB8qZ0R8EZZI00UyyCjCZ7Q_SvLdPGE0mJeg%40sfdc.net.


RE: Google Ads Migration for AUDIENCE_PERFORMANCE_REPORT

2022-03-07 Thread 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
Hi Hao,

Thank you for posting your concern.

I would like to inform you first that I am going to delete your initial post as 
it contains generated logs. However, I will specify below the copy of your 
concern with redacted logs and some details.

Moving forward, I wasn't able to replicate the issue on my end when I 
impersonated the campaign_audience_view report with your GAQL in your account 
as I can get the 8 campaigns there. However, I can see that logs are truncated 
on your end so you can't see the full API logs of the campaign_audience_view. 
With this, you can follow this guide so that the API logs will not be truncated.

Also, when comparing the reports of the Google Ads API and AdWords API, please 
ensure using the same date range.

"For AUDIENCE_PERFORMANCE_REPORT we have two download jobs depend on Google 
Adwords API and we are currently work on migrate to Google Ads API.

The two download jobs one for performance and one for structure, and the AWQL 
attached as below:
AWQL here

Base on Google Ads wiki there have two resources(ad_group_audience_view and 
campaign_audience_view) mapped with Google Adwords AUDIENCE_PERFORMANCE_REPORT. 
these two resources identify the audience setup on ad group and campaign level. 
to get the same download data as Google Adwords API we need query these two 
resources at the same time and union the data download from 
ad_group_audience_view and campaign_audience_view. but we found there have some 
data issues when compare the download data from Adwords API and Ads API, detail 
list as below:

let's take structure data on account:redacted Id as example:
we only could download three campaigns(redacted Ids) data from Google Ads API 
campaign_audience_view and empty data from ad_group_audience_view ,but could 
download  8 campaigns(redacted Ids) from Google Adwords API.

Could you please help identify the root cause?"


Regards,

Ernie John
Google Ads API Team
ref:_00D1U1174p._5004Q2Xm3jy: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 
"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/jtvHF0R8EKCN00BAmTDU8xQiqNwJs-Sr3VXA%40sfdc.net.


Re: migrating to the Google Ads API.

2022-03-07 Thread Hwansang Cho
Hi API Team,

Please double check these items which are segments.ad_network_type and 
segments.conversion_action. 
Those caused the same issue of the ad_group_criterion

Thank you

2022년 3월 7일 월요일 오후 7시 27분 27초 UTC+9에 adsapi님이 작성:

> Hi Hwansang,
>
> Thank you for providing more details to your concern.
>
> I tried to use the query validator, GAQL builder for keywords and create a 
> report on my test account which using device segment 
> and ad_group_criterion, and I can see no error with this combination. With 
> this, allow me to create a feature request to my team to update the device 
> segment document to include the ad_group_criterion there, subject for 
> review.
>
> Please keep an eye on that document 
> 
>  
> for this specific update. Please follow our blog 
>  also 
> to receive updates and new releases.
>
> Regards,
> [image: Google Logo] 
> Ernie John 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2XlyzV: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 
"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/c3fd4915-3b7b-4624-89a1-5e76119952b7n%40googlegroups.com.


Re: Not receiving all the columns in the query

2022-03-07 Thread Poojitha Gandra
below is the response for the query: 
*customer id is 2297774595*
*request id is : *5hahIwRH26jj0i8tsCGOaQ

d is  {'results': [{'customer': {'resource_name': 'customers/2297774595', 
'id': '2297774595', 'descriptive_name': 'NerdWallet - Small Business Loans 
- NW', 'currency_code': 'USD', 'time_zone': 'America/Los_Angeles'}, 
'campaign': {'resource_name': 'customers/2297774595/campaigns/16088255717', 
'status': 'ENABLED', 'advertising_channel_type': 'SEARCH', 
'serving_status': 'SERVING', 'bidding_strategy_type': 
'MAXIMIZE_CONVERSIONS', 'name': 
'smb_mktg_paid_020222_businessloans_nw_desktop', 'id': '16088255717', 
'campaign_budget': 'customers/2297774595/campaignBudgets/10297015189', 
'start_date': '2022-02-02', 'end_date': '2037-12-30'}, 'metrics': 
{'active_view_measurability': 0.0}, 'segments': {'device': 'DESKTOP', 
'ad_network_type': 'SEARCH', 'date': '2022-02-17'}}, {'customer': 
{'resource_name': 'customers/2297774595', 'id': '2297774595', 
'descriptive_name': 'NerdWallet - Small Business Loans - NW', 
'currency_code': 'USD', 'time_zone': 'America/Los_Angeles'}, 'campaign': 
{'resource_name': 'customers/2297774595/campaigns/16088255717', 'status': 
'ENABLED', 'advertising_channel_type': 'SEARCH', 'serving_status': 
'SERVING', 'bidding_strategy_type': 'MAXIMIZE_CONVERSIONS', 'name': 
'smb_mktg_paid_020222_businessloans_nw_desktop', 'id': '16088255717', 
'campaign_budget': 'customers/2297774595/campaignBudgets/10297015189', 
'start_date': '2022-02-02', 'end_date': '2037-12-30'}, 'metrics': 
{'active_view_measurability': 0.0}, 'segments': {'device': 'DESKTOP', 
'ad_network_type': 'SEARCH', 'date': '2022-02-18'}}, {'customer': 
{'resource_name': 'customers/2297774595', 'id': '2297774595', 
'descriptive_name': 'NerdWallet - Small Business Loans - NW', 
'currency_code': 'USD', 'time_zone': 'America/Los_Angeles'}, 'campaign': 
{'resource_name': 'customers/2297774595/campaigns/16088255717', 'status': 
'ENABLED', 'advertising_channel_type': 'SEARCH', 'serving_status': 
'SERVING', 'bidding_strategy_type': 'MAXIMIZE_CONVERSIONS', 'name': 
'smb_mktg_paid_020222_businessloans_nw_desktop', 'id': '16088255717', 
'campaign_budget': 'customers/2297774595/campaignBudgets/10297015189', 
'start_date': '2022-02-02', 'end_date': '2037-12-30'}, 'metrics': 
{'active_view_measurability': 0.0}, 'segments': {'device': 'DESKTOP', 
'ad_network_type': 'SEARCH', 'date': '2022-02-21'}}, {'customer': 
{'resource_name': 'customers/2297774595', 'id': '2297774595', 
'descriptive_name': 'NerdWallet - Small Business Loans - NW', 
'currency_code': 'USD', 'time_zone': 'America/Los_Angeles'}, 'campaign': 
{'resource_name': 'customers/2297774595/campaigns/16088255717', 'status': 
'ENABLED', 'advertising_channel_type': 'SEARCH', 'serving_status': 
'SERVING', 'bidding_strategy_type': 'MAXIMIZE_CONVERSIONS', 'name': 
'smb_mktg_paid_020222_businessloans_nw_desktop', 'id': '16088255717', 
'campaign_budget': 'customers/2297774595/campaignBudgets/10297015189', 
'start_date': '2022-02-02', 'end_date': '2037-12-30'}, 'metrics': 
{'active_view_measurability': 0.0}, 'segments': {'device': 'DESKTOP', 
'ad_network_type': 'SEARCH', 'date': '2022-02-22'}}, {'customer': 
{'resource_name': 'customers/2297774595', 'id': '2297774595', 
'descriptive_name': 'NerdWallet - Small Business Loans - NW', 
'currency_code': 'USD', 'time_zone': 'America/Los_Angeles'}, 'campaign': 
{'resource_name': 'customers/2297774595/campaigns/16088255717', 'status': 
'ENABLED', 'advertising_channel_type': 'SEARCH', 'serving_status': 
'SERVING', 'bidding_strategy_type': 'MAXIMIZE_CONVERSIONS', 'name': 
'smb_mktg_paid_020222_businessloans_nw_desktop', 'id': '16088255717', 
'campaign_budget': 'customers/2297774595/campaignBudgets/10297015189', 
'start_date': '2022-02-02', 'end_date': '2037-12-30'}, 'metrics': 
{'active_view_measurability': 0.0}, 'segments': {'device': 'DESKTOP', 
'ad_network_type': 'SEARCH', 'date': '2022-02-23'}}, {'customer': 
{'resource_name': 'customers/2297774595', 'id': '2297774595', 
'descriptive_name': 'NerdWallet - Small Business Loans - NW', 
'currency_code': 'USD', 'time_zone': 'America/Los_Angeles'}, 'campaign': 
{'resource_name': 'customers/2297774595/campaigns/16088255717', 'status': 
'ENABLED', 'advertising_channel_type': 'SEARCH', 'serving_status': 
'SERVING', 'bidding_strategy_type': 'MAXIMIZE_CONVERSIONS', 'name': 
'smb_mktg_paid_020222_businessloans_nw_desktop', 'id': '16088255717', 
'campaign_budget': 'customers/2297774595/campaignBudgets/10297015189', 
'start_date': '2022-02-02', 'end_date': '2037-12-30'}, 'metrics': 
{'active_view_measurability': 0.0}, 'segments': {'device': 'DESKTOP', 
'ad_network_type': 'SEARCH', 'date': '2022-02-24'}}, {'customer': 
{'resource_name': 'customers/2297774595', 'id': '2297774595', 
'descriptive_name': 'NerdWallet - Small Business Loans - NW', 
'currency_code': 'USD', 'time_zone': 'America/Los_Angeles'}, 'campaign': 
{'resource_name': 'customers/2297774595/campaigns/16088255717', 'status': 
'ENABLED', 

RE: 13 INTERNAL

2022-03-07 Thread 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
Hi Diego,

It doesn't look like you are using one of our Client libraries and it appears 
you are using linked customer Id field for a report which is impossible. For us 
to look at this we will need a request and response log API communications at 
'DEBUG' log level generated by one of our client libraries (in Client libraries 
you can click on the library you prefer in the sidebar and then click on 
'Logging') or our REST interface (pasing '-v' or '-i' to a command line curl in 
a Bash terminal will generate the log). You can send this to us privately.

Regards,

Aryeh
Google Ads API Team
ref:_00D1U1174p._5004Q2Xm5kA: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 
"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/vIqBl0R8E6Q700iuWs1-wcRwGlWGlu2d5A1Q%40sfdc.net.


RPC_DEADLINE_TOO_SHORT

2022-03-07 Thread Anahi Martinez
Hi, we are facing some issues when trying to push feed items to a feed (Ad 
Customizers)
We are pushing around 3000 items at a time since the documentation states 
that the limit is 5000 for mutating calls, here's a sample of the Response 
we get

Headers: {
"google.ads.googleads.v9.errors.googleadsfailure-bin": 
"\n\u0001\n\u0002\b!\u0012\u0001The request timed out because the specified 
deadline was too short to complete the request. Please set a larger 
deadline and retry.\u0012\u0016-PTVwZnOG7LJcLPntYXk0A",
"grpc-status-details-bin": "\b\u0003\u0012%Request contains an invalid 
argument.\u001a\u0001\nCtype.googleapis.com/google.ads.googleads.v9.errors.GoogleAdsFailure\u0012\u0001\n\u0001\n\u0002\b!\u0012\u0001The
 
request timed out because the specified deadline was too short to complete 
the request. Please set a larger deadline and 
retry.\u0012\u0016-PTVwZnOG7LJcLPntYXk0A",
"request-id": "-PTVwZnOG7LJcLPntYXk0A"
}
Fault: errors {
error_code {
request_error: RPC_DEADLINE_TOO_SHORT
}
message: "The request timed out because the specified deadline was too 
short to complete the request. Please set a larger deadline and retry."
}
request_id: "-PTVwZnOG7LJcLPntYXk0A"

We tried looking for the error code but there is not much information that 
we could find.
We are using the Python client library

Please let us know, 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/a15e2c3c-3f6a-4332-bb63-c7731983d073n%40googlegroups.com.


Re: Not receiving all the columns in the query

2022-03-07 Thread Poojitha Gandra
Thank you for your response.

I am using python API to run these report queries.
Could you please elaborate on from where i can get the values you are
mentioning?

On Mon, Mar 7, 2022 at 5:38 AM Google Ads API Forum Advisor
 wrote:

> Hi Poojitha,
>
> ​​Thank you for raising this concern to Google Ads API support team.
>
> For a clearer view to these issues, could you provide the complete request
> 
>  and response
> 
>  logs
> with request ID
> 
>  and request header
> 
>  that
> generated on your end? This information will help our team to investigate
> further.
>
> You can provide it via *Reply privately to the author* option. If this
> option is not available, then send it instead on this email address
> googleadsapi-supp...@google.com alias instead.
>
> Best regards,
> [image: Google Logo]
> Jinky
> Google Ads API Team
>
>
> ref:_00D1U1174p._5004Q2XlaSB: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 
"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/CAAKBDikxoBBeF-NofcEA5xswaou-z74rbOJFOfFzywZKXW94hw%40mail.gmail.com.


move account between managers

2022-03-07 Thread ja...@bluecaribu.com
Hi there, I would like to know how to move and account to anohter Manager. 
In the google adwords API I had ManagedCustomerService but a don´t figure 
out how to do the same thing in the Google ads API

*thanks in adavance. *

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/53ef1811-f968-4cfb-869b-a70364382bd3n%40googlegroups.com.


Google Ads cannot create refresh token

2022-03-07 Thread Oliver
Hi,

I've been creating refresh tokens successfully for some time now, but 
suddenly it doesn't work, even though I'm using the same code.

This issue is similar 
to https://groups.google.com/g/adwords-api/c/xEWD6khWmcI/m/_jjTxl3uAgAJ?pli=1 
but seeing as there was no solution there other than "use a different 
computer" or "reinstall your OS", I'm posting again as neither of those 
suggestions are particularly suitable for me.

I'm using the Python client library locally 
(https://developers.google.com/google-ads/api/docs/client-libs)

I'm calling authenticate-in-web-application.py. It gets as far as opening 
the browser: http://localhost:8080 but when it opens I get the following 
error message:












*Waiting for authorization and callback to: 
http://localhost:8080...Traceback (most recent call last):  File 
"/home/.../authenticate_in_web_application.py", line 203, in 
main(args.client_secrets_path, configured_scopes)  File 
"/home/.../authenticate_in_web_application.py", line 81, in maincode = 
_get_authorization_code(passthrough_val)  File 
"/home/.../authenticate_in_web_application.py", line 112, in 
_get_authorization_codeparams = _parse_raw_query_params(data)  File 
"/home/.../authenticate_in_web_application.py", line 160, in 
_parse_raw_query_paramsparams = match.group(1)AttributeError: 
'NoneType' object has no attribute 'group'*
---

On line 157 of the above file, inside the _parse_raw_query_params(data) 
function there is this line:

*decoded = data.decode("utf-8")*

The variable 'decoded' at this point contains the following:















*GET / HTTP/1.1Host: localhost:8080Connection: keep-alivesec-ch-ua: " Not 
A;Brand";v="99", "Chromium";v="99", "Google Chrome";v="99"sec-ch-ua-mobile: 
?0sec-ch-ua-platform: "Linux"Upgrade-Insecure-Requests: 1User-Agent: 
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) 
Chrome/99.0.4844.51 Safari/537.36Accept: 
text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9Sec-Fetch-Site:
 
noneSec-Fetch-Mode: navigateSec-Fetch-User: ?1Sec-Fetch-Dest: 
documentAccept-Encoding: gzip, deflate, brAccept-Language: 
en-GB,en-US;q=0.9,en;q=0.8*

Seems like there should be some args with the GET on the first line?
The next 2 lines are:

*match = re.search("GET\s\/\?(.*) ", decoded)*
*params = match.group(1)* <-- Error here (match is 'NoneType')

I re-downloaded the client libaray, and created a fresh virtual 
environment, but nothing I've tried so far has helped, so if anyone has any 
ideas, I'd be very grateful!!

Python version is 3.9.10 (but this hasn't changed since it was working last 
week)

Oliver

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/d40b5ab5-abfb-4b6b-91a9-ced044edb172n%40googlegroups.com.


Clarification on 'topic_view' 'ad_group_criterion.topic.path' and 'ad_group.targeting_setting.target_restrictions' fields

2022-03-07 Thread 'Oksana Sulyma' via Google Ads API and AdWords API Forum
Hello Google Ads API support team,
I've been following this 
guide 
https://developers.google.com/google-ads/api/docs/migration/mapping?hl=en#display_topics_performance
 
to migrate Display Topics report from Google AdWords API to Google Ads API.
I have 2 questions.
1. Criteria = ad_group_criterion.topic.path.
In Google AdWords API report we had values like "Sports", "News" for this 
field. Running the same request for  Google Ads API I get values like 
"topic":{"path":["","Sports"]}}, "topic":{"path":["","News"]}}. I wonder if 
it will be correct to just extract second element from path array to get 
what we got from Google AdWords API? Wasn't able to find documentation on 
topic structure.
2. IsRestrict = ad_group.targeting_setting.target_restrictions.
In Google Adwords report we got 'true' values as example, but from Google 
Ads I get values like 
[{"targetingDimension":"PLACEMENT","bidOnly":false},{"targetingDimension":"TOPIC","bidOnly":false},{"targetingDimension":"AUDIENCE","bidOnly":false},{"targetingDimension":"GENDER","bidOnly":true},{"targetingDimension":"AGE_RANGE","bidOnly":true},{"targetingDimension":"PARENTAL_STATUS","bidOnly":true},{"targetingDimension":"INCOME_RANGE","bidOnly":true}]
instead. 
Is there any way to get just true or false values similarly to Google 
Adwords? 
Thanks in advance!

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/f61d1d56-88a5-4181-b91f-28132a22a7a0n%40googlegroups.com.


Re: (OAuth) Token has been expired or revoked

2022-03-07 Thread Alex Garcia
For anyone having this problem. You actually need to create NEW OAuth 
credentials, after you have upgraded the OAuth from TESTING to IN 
PRODUCTION.

I did that, and now it works. If you used the old credentials, the Refresh 
Token is going to expire after 7 days.

On Monday, March 7, 2022 at 6:44:12 AM UTC+1 adsapi wrote:

> Hi Alex,
>
> Thank you for reaching out to Google Ads API Forums.
>
> It appears that your concern is related to refresh token expiration. With 
> this, I would recommend posting your concern here 
> , this was also 
> included inside the support link my colleague provided. This is a public 
> forum which is dedicated to Oauth2 and refresh token related questions. I 
> hope this helps.
>
> Let us know if you have any questions.
>
> Regards,
> [image: Google Logo] 
> Carmela 
> Google Ads API Team 
>   
>
>
>
>
>
>
>
>
>  
>
> ref:_00D1U1174p._5004Q2XjtpY: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 
"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/8fb3bd9d-cf88-46e5-a722-e1f8da7b87e0n%40googlegroups.com.


RE: How to get the URL of the displayed image

2022-03-07 Thread 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
Hi Castro,

Thank you for reaching out.

We only provide support related to the AdWords API/Google Ads API on this 
support channel. If you are using our API, can you please share full screen 
screenshot of the UI what you are looking for, so we can further assist to you? 
Please reply privately author option,

Thanks,

Nirmita
Google Ads APi Team
ref:_00D1U1174p._5004Q2Xm2by: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 
"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/FWBxM0R8DRAN002GHdIbavQcq-mvAXHA5hEg%40sfdc.net.


RE: Gender Report Query

2022-03-07 Thread 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
Hi Skander,

Thank you for reaching out to the Google Ads API support team.

To investigate the issue further, could you please provide the complete request 
and response logs, with the request-id? Please reply privately autor option.

Thanks,

Nirmita
Google Ads API Team
ref:_00D1U1174p._5004Q2Xm2Vw: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 
"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/4ewBa0R8DQMF00NmwN6eEtSN2hS1dNocoJMA%40sfdc.net.


Google Ads Api returns different type of ad_network

2022-03-07 Thread 'Ekaterina Gurskaia' via Google Ads API and AdWords API Forum
Hi,

I'm trying to run geographic_view report to see campaign performance by 
location like this:

SELECT geographic_view.country_criterion_id,
campaign.id, campaign.name,
campaign.target_cpa.target_cpa_micros,
segments.ad_network_type,
metrics.all_conversions,
segments.date,
segments.conversion_action_name,
campaign.advertising_channel_sub_type
FROM geographic_view
WHERE campaign.advertising_channel_sub_type = 'APP_CAMPAIGN'
AND segments.date DURING LAST_7_DAYS

For Android app campaigns I get "CONTENT" network type under ad_network_type, 
which I don't have in Google Ads reporting (UI) for my campaigns.
I assumed in the beginning that CONTENT is the same as Display like in UI, 
but the numbers do not match at all.
I see in the documentation that ad_network type could be :
CONTENT
MIXED
SEARCH
SEARCH_PARTNERS
UNKNOWN
UNSPECIFIED
YOUTUBE_SEARCH
YOUTUBE_WATCH

But I don't see "Content" in Google Ads report (UI) screenshot attached. 
What am I missing here:

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/1c080cc4-c0ef-44b7-9fee-6667cd911999n%40googlegroups.com.


13 INTERNAL

2022-03-07 Thread Diego Peralta
Hello, I am trying to execute the following code:

const customer = client.Customer({
customer_account_id: 'xxx-xxx-xxx', 
login_customer_id: 'xxx-xxx-xxx', 
linked_customer_id: 'xxx-xxx-xxx', 
refresh_token: refresh_token,
})
campaigns = await customer.query(`
SELECT 
campaign.name, campaign.status
FROM 
campaign
`)

I get the following error back:

*13 INTERNAL: Internal error encountered.*


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/062f1e15-dd0e-4831-af47-9aa9fde51846n%40googlegroups.com.


Re: how to match ClickView with cost_micros for each type of targeting?

2022-03-07 Thread Inna Keegan
Hello, Yasar

My goal is to match ClickView with another resource (I have no idea which 
one and that's why I text here) to get metrics.cost_micros for this click.
Please, give me the name of the resource I should use to get the 
information about how much money I spent for this click? 


*"gclid": 
"Cj0KCQiA3rKQBhCNARIsACUEW_ZOaWekIc9UT57hToCSGyYoVLy4BnOuGkpB4Dq9lGCOvilcmEK4m_waAo-kEALw_wcB",*
*"campaignLocationTarget": "geoTargetConstants/1392068769249","*userList*": 
"customers/***/userLists/*6963747198*"*

Again, I need to find out exactly this: how much money I spent for this 
exact click?

понедельник, 7 марта 2022 г. в 10:18:12 UTC+3, adsapi: 

> Hi Inna,
>
> Thanks for getting back to us.
>
> Kindly see below responses to your queries:
>
>
>
> 1. Am I right, that two targetings equally initiated the click?
>
> >> Yes. The given gclid is associated with both campaign location target, 
> and user list.
>
>
>
> 2. What report (resource) I should use, to see how much money I spent for 
> this click? 
>
> >> Since click_view does not support metrics.cost_micros, you can use 
> metrics.clicks from click_view resource, and then compare it to the 
> associated metrics.cost_micros.
>
> Let us know if you have any further questions.
>
> Regards,
> [image: Google Logo] 
> Yasar 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2XkSIt: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 
"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/f6a8f6db-a0c5-4edf-a52a-56e68191167fn%40googlegroups.com.


RE: Copy existing ad group to another campaign

2022-03-07 Thread 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
Hi there,

If you still persist with the error, you may then send the requested above logs 
information via the Reply privately to author option. If this option is not 
available, you may send the details directly to our 
googleadsapi-supp...@google.com alias instead.

Regards,

Yasar
Google Ads API Team
ref:_00D1U1174p._5004Q2Xm2B7: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 
"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/dydHj0R8DOGA00DxtCyZckTW2CvToJGPmXDw%40sfdc.net.


RE: Copy existing ad group to another campaign

2022-03-07 Thread 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
Hi there,

Thanks for reaching out to the Google Ads API Forum.

I can see that you have created multiple forum threads for your issue. Kindly 
refrain from opening multiple threads for the same issue.

Moving forward, kindly see below responses to your queries:

1) Is there any method that copy-paste ad group from one campaign to another? 
(like copy paste button in google ads UI)

>> I'm afraid that there's no feature in Google Ads API to directly copy and 
>> paste an Ad Group from one campaign to another. You will have to retrieve 
>> the Ad Group that you'd like to copy and then use its values to add a new Ad 
>> Group associated with another campaign. You may check out the Get Ad Groups 
>> and Add Ad Groups sample codes for reference when building your own 
>> implementation

2) When I try to add existing ads from one ad group to another ad group, with 
IDs retrieved via GAQL like this :

>> I can see that from your logs that you’ve received “Resource was not found.” 
>> error while using AdGroupAdService. That said, I suggest you double check if 
>> provided resources in your request already exist for the said account.

If you still persist with the error then you send to us the complete request 
and response logs with the request-id, so that our team can check better.

Regards,

Yasar
Google Ads API Team
ref:_00D1U1174p._5004Q2Xm2B7: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 
"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/ZNnRT0R8DO6200G69L7OG7Qt6kMggHlcfzkw%40sfdc.net.


RE: ListAccessibleCustomers quota limit - Any alternatives?

2022-03-07 Thread 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
Hi Jun,

Thanks for reaching out. There isn't a similar service/method that iterates 
over accessible accounts. However, you can query the customer resource to 
obtain account information.

Regards,
Matt
Google Ads API Team

Matt
Google Ads API Team
ref:_00D1U1174p._5004Q2XlbGt: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 
"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/xsY7U0R8DM4400wp47Db80QoOS1NN9pE68Gg%40sfdc.net.


Re: Google Ads reporting for device segments doesn't return all values

2022-03-07 Thread 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
Hello Skander,

Thank you for getting back to us, and I'm glad that you were able to resolved 
the issue.

Please let me know if you have any other concerns related to Google Ads API. 
We'll be happy to assist you.

Regards,

Teejay Wennie
Google Ads API Team
ref:_00D1U1174p._5004Q2Xkh51: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 
"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/bS_cA0R8DM0X00VByJW_gUTGORr9tDbepy4w%40sfdc.net.


Re: manager_link_error: INVALID_CHANGE

2022-03-07 Thread 'Kateřina Henzlová' via Google Ads API and AdWords API Forum
Hi there,
 
We have updated the API version but the issue still persists. Do you have 
any updates on this? I'm sending a recent example in the private message.

Thanks,
Katerina

On Friday, March 4, 2022 at 9:15:34 AM UTC+1 Ionut Mihai wrote:

> Hello. Any news on this? It's been another month without any response.
>
> On Tuesday, February 8, 2022 at 10:51:44 AM UTC+2 
> katerina...@roihunter.com wrote:
>
>> Hello Mark,
>>
>> Thanks for your reply. Can you please specify what you mean by updated 
>> API logs? I have sent the full API logs three times already. Will it help 
>> you with the investigation if I send more of them?
>>
>> Regards,
>> Katerina
>>
>> On Tuesday, February 8, 2022 at 4:32:36 AM UTC+1 adsapi wrote:
>>
>>> Hello Katerina,
>>>
>>> Thanks for getting back to us.
>>>
>>> Can you share to us the updated and complete API logs (request 
>>> 
>>>  and response 
>>> 
>>>  with request-id 
>>> )
>>>  
>>> so our team can further check?
>>>
>>> Please send the requested details via the *Reply privately to author* 
>>> option. 
>>> If this option is not available, you may send the details directly to our 
>>> *googleadsa...@google.com* alias instead.
>>>
>>> Regards,
>>> [image: Google Logo] 
>>> Mark Kevin Albios 
>>> Google Ads API Team 
>>>   
>>>
>>> ref:_00D1U1174p._5004Q2UjJFj: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 
"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/08907193-01f5-414a-8e0a-b0cd99d4a1bcn%40googlegroups.com.


Google Ads Migration for AUDIENCE_PERFORMANCE_REPORT

2022-03-07 Thread 'Hao Long' via Google Ads API and AdWords API Forum
Hi Google Ads Support Team,

For AUDIENCE_PERFORMANCE_REPORT 

 
we have two download jobs depend on Google Adwords API and we are currently 
work on migrate to Google Ads API.

The two download jobs one for performance and one for structure, and the 
AWQL attached as below:

Performance report:
select
Date
,AccountCurrencyCode
,Id
,CampaignId
,CampaignName
,Device
,Impressions
,Clicks
,Cost
,UserListName
,BidModifier
,AdGroupId
>From AUDIENCE_PERFORMANCE_REPORT
WHERE Date>='2022-03-01' and Date<='2022-03-05'

Structure Report:
select
Date
, AccountCurrencyCode
, AccountDescriptiveName
, AccountTimeZone
, AdGroupId
, BaseAdGroupId
, BaseCampaignId
, BiddingStrategyId
, BiddingStrategyName
, BiddingStrategyType
, BidModifier
, CampaignId
, CampaignName
, CampaignStatus
, CpcBid
, CpcBidSource
, CpmBid
, CpmBidSource
, Criteria
, CriteriaDestinationUrl
, CriterionAttachmentLevel
, CustomerDescriptiveName
, ExternalCustomerId
, FinalAppUrls
, FinalMobileUrls
, FinalUrls
, Id
, IsRestrict
, Status
, TrackingUrlTemplate
, UrlCustomParameters
, UserListName
>From AUDIENCE_PERFORMANCE_REPORT
WHERE Date>='2022-03-01' and Date<='2022-03-05'

Base on Google Ads wiki there have two resources(ad_group_audience_view and 
campaign_audience_view) mapped with Google 
Adwords AUDIENCE_PERFORMANCE_REPORT. these two resources identify the 
audience setup on ad group and campaign level. to get the same download 
data as Google Adwords API we need query these two resources at the same 
time and union the data download from ad_group_audience_view and 
campaign_audience_view. but we found there have some data issues when 
compare the download data from Adwords API and Ads API, detail list as 
below:

let's take structure data on account:9379591500 as example:
we only could download three campaigns(6627375281,6622894038,6631463241) 
data from Google Ads API campaign_audience_view and empty data from 
ad_group_audience_view ,but could download  8 
campaigns(6620508936,6616615373,6631463241,6613942486,6622894038,6627375281,6616561829,6724550877)
 
from Google Adwords API.

Google Ads API call detail
campaign_audience_view:
Request
---
MethodName: google.ads.googleads.v9.services.GoogleAdsService/SearchStream
Endpoint: googleads.googleapis.com:443
Headers: {developer-token=REDACTED, login-customer-id=5749847778, 
x-goog-api-client=gl-java/1.8.0_252 gccl/task ':google-ads:jar' property 
'archiveVersion' gapic/task ':google-ads:jar' property 'archiveVersion' 
gax/2.6.1 grpc/task ':google-ads:jar' property 'archiveVersion'}
Body: customer_id: "9379591500"
query: "SELECT segments.date, customer.currency_code, 
customer.descriptive_name, customer.time_zone, campaign.base_campaign, 
campaign.bidding_strategy, campaign.name, campaign.status FROM 
campaign_audience_view where segments.date = \'2022-03-05\'  "


Response

Headers: 
Metadata(content-disposition=attachment,content-type=application/grpc,date=Mon, 
07 Mar 2022 06:44:55 GMT,alt-svc=h3=":443"; ma=2592000,h3-29=":443"; 
ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; 
ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43")
Body: results {
  customer {
resource_name: "customers/9379591500"
descriptive_name: "US_Vertical_Null_Exact_30"
currency_code: "USD"
time_zone: "America/Los_Angeles"
  }
  campaign {
resource_name: "customers/9379591500/campaigns/6622894038"
status: ENABLED
base_campaign: "customers/9379591500/campaigns/6622894038"
name: "US Default Campaign (10-01-2019 01:00:29 16831706) abcId: 
1141736"
bidding_strategy: "customers/9379591500/biddingStrategies/7970171881"
  }
  campaign_audience_view {
resource_name: 
"customers/9379591500/campaignAudienceViews/6622894038~622524040998"
  }
  segments {
date: "2022-03-05"
  }
}
results {
  customer {
resource_name: "customers/9379591500"
descriptive_name: "US_Vertical_Null_Exact_30"
currency_code: "USD"
time_zone: "America/Los_Angeles"
  }
  campaign {
resource_name: "customers/9379591500/campaigns/6622894038"
status: ENABLED
base_campaign: "customers/9379591500/campaigns/6622894038"
   
... TRUNCATED. See README.md to configure/disable log truncation.
Failure message: null
Status: Status{code=OK, description=null, cause=null}.

ad_group_audience_view :
Request
---
MethodName: google.ads.googleads.v9.services.GoogleAdsService/SearchStream
Endpoint: googleads.googleapis.com:443
Headers: {developer-token=REDACTED, login-customer-id=5749847778, 
x-goog-api-client=gl-java/1.8.0_252 gccl/task ':google-ads:jar' property 
'archiveVersion' gapic/task ':google-ads:jar' property 'archiveVersion' 
gax/2.6.1 grpc/task ':google-ads:jar' property 'archiveVersion'}
Body: customer_id: "9379591500"
query: "SELECT segments.date, customer.currency_code, 
customer.descriptive_name, customer.time_zone, ad_group.id, 
ad_group.base_ad_group, 

Google Ads API Migration- Feed based extension

2022-03-07 Thread Saurabh Suman
Hi Team,
  Currently we have below set of Feed based get API calls that wre using 
Adwords API. Can you please confirm if Feebased based  Get API calls will 
be supportd till Aug 2022 as we could read that all CREATE AND MUTATE calls 
wiil be sun set on January 10, 2022  . But reporting will be available 
until August 2022.
*Set of current APIs:*

   1. GoogleCallOutsDownload.java
  1. getAPI(acc).getAllExistingFeedMappingsByType(clientEmail, 
  clientCustomerId, PLACEHOLDER_CALLOUTEXTN)
  2. getAPI(acc).getExtensionFeedsById(callOutFeedIds, clientEmail, 
  clientCustomerId);
  3. getAPI(acc).getAllFeedItems(feedIds, clientEmail, 
  clientCustomerId);
  4. getAPI(acc).getAllCustomerFeed(PLACEHOLDER_CALLOUTEXTN, 
  clientEmail, clientCustomerId, feedIds);
  5. getAPI(acc).getAllActiveRemovedFeedItems(feed.getFeedId().toString(), 
  clientEmail, clientCustomerId);
  6. getAPI(acc).getAllCampaignFeeds(cIds, PLACEHOLDER_CALLOUTEXTN, 
  clientEmail, clientCustomerId);
  7. getAPI(acc).getAllActiveRemovedFeedItems(feed.getFeedId().toString(), 
  clientEmail, clientCustomerId);
  8. getAPI(acc).getAllAdGroupFeeds(agIds, PLACEHOLDER_CALLOUTEXTN, 
  clientEmail, clientCustomerId);
  9. getAPI(acc).getAllActiveRemovedFeedItems(feed.getFeedId().toString(), 
  clientEmail, clientCustomerId);
   2. GoogleSiteLinksDownload.java
  1. getAPI(acc).getAllExistingFeedMappingsByType(clientEmail, 
  clientCustomerId, PLACEHOLDER_SILINKEXTN);
  2. getAPI(acc).getExtensionFeedsById(siteLinkFeedIds, clientEmail, 
  clientCustomerId);
  3. getAPI(acc).getAllFeedItems(feedIds, clientEmail, 
  clientCustomerId);
  4. getAPI(acc).getAllCustomerFeed(PLACEHOLDER_SILINKEXTN, 
  clientEmail, clientCustomerId, feedIds);
  5. getAPI(acc).getAllActiveRemovedFeedItems(feed.getFeedId().toString(), 
  clientEmail, clientCustomerId);
  6. getAPI(acc).getAllCampaignFeeds(cIds, PLACEHOLDER_SILINKEXTN, 
  clientEmail, clientCustomerId);
  7. getAPI(acc).getAllActiveRemovedFeedItems(feed.getFeedId().toString(), 
  clientEmail, clientCustomerId);
  8. getAPI(acc).getAllAdGroupFeeds(agIds, PLACEHOLDER_SILINKEXTN, 
  clientEmail, clientCustomerId);
  9. getAPI(acc).getAllActiveRemovedFeedItems(feed.getFeedId().toString(), 
  clientEmail, clientCustomerId);
   


*Ref*.(
https://developers.google.com/google-ads/api/docs/extensions/assets/migrating-extensions
)

All CREATE and MUTATE actions will be disabled for the relevant extension 
types after each auto migration date. You can opt out specific account IDs 
from the first batch of automatic migrations (callout, promotion, sitelink, 
and structured snippet). However, note that these extensions will become 
unavailable for all accounts on February 15, 2022. See this recent blog 
post entry 

 for 
guidance on how to opt out.

Reporting for Feed-based extensions will be available until August 2022.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/5bc65a11-0bdd-43a8-a921-6df5c7c61459n%40googlegroups.com.


How to get the URL of the displayed image

2022-03-07 Thread Gilbert Castro
Hi. I am setting up a remarketing dynamic tag in my ecommerce store. I 
would like to get the product URL (Hosted via my ecommerce platform CDN) of 
the product being viewed. I would like to know what event parameter I can 
use to capture the image URL.

Currently, here's my dynamic remarketing snippet (hosted in Shopify)

{% if template contains 'product' %}  gtag('event', 'view_item', { 
'send_to': 'AW-608659319', 'ecomm_pagetype': 'product', 'ecomm_prodid': '{{ 
product.id }}', 'ecomm_totalvalue': '{{ product.price | 
money_without_currency | remove: ',' }}' 'ecomm_image': '{{ 
variant.image.src | image_url: 'master' }}'' });  {% endif %} 
The ecomm_pagetype, ecomm_prodid and ecomm_totalvalue pull data, but not 
the ecomm_image. Is there a specific parameter I should use for this? 
Thanks in advance.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/6b8957c7-2e58-4341-8792-c7b26c8eef65n%40googlegroups.com.


Gender Report Query

2022-03-07 Thread Skander Mansouri
Hi,

When migrating this query from Adwords API "SELECT Criteria, CampaignId, 
Cost from GENDER_PERFORMANCE_REPORT" I have this query "SELECT 
ad_group_criterion.gender.type, campaign.id, metrics.cost_micros FROM 
gender_view" 

When executing both, I find out that for the Google Ads API, I'm having 
multiple lines for the same campaign. 

Is there a way to change the Google Ads API query in order to have the sum 
of all costs by campaign for a specific gender?

Thanks,
Skander

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/e31ffeb2-e7be-41bc-82c6-40eb12d6n%40googlegroups.com.


copy ads

2022-03-07 Thread SoMin AI
Hello,

I have 2 questions about copy-paste items via API:
1) Is there any method that copy-paste ad group from one campaign to 
another? (like copy paste button in google ads UI)

2) When I try to add existing ads from one ad group to another ad group, 
with IDs retrieved via GAQL like this :
ad_group_ad {
   resource_name: "customers/customer_id/adGroupAds/adgroupid~adid"
   ad {
 resource_name: "customers/customer_id/ads/adid  "
 id:  adid  
   } 
 } 
Then I execute the following code :
ad_group_ad_service = client.get_service("AdGroupAdService")
ad_group_service = client.get_service("AdGroupService")

ad_group_ad_operation = client.get_type("AdGroupAdOperation")
ad_group_ad = ad_group_ad_operation.create
ad_group_ad.ad_group = ad_group_service.ad_group_path(
customer_id, ad_group_id
)
ad_group_ad.status = client.enums.AdGroupAdStatusEnum.PAUSED
ad_group_ad.ad.id = adid

But I got error like this :
Request made: ClientCustomerId: [customer_id], Host: 
googleads.googleapis.com, Method: 
/google.ads.googleads.v8.services.AdGroupAdService/MutateAdGroupAds, 
RequestId: EZTZfFh3UEm3Dgm_Rd8hgw, IsFault: True, FaultMessage: Resource 
was not found.

Could you please tell me what I did wrong?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/e449901c-bc9b-417e-b16d-2c12d1abfcddn%40googlegroups.com.


Copy ads from one ad group to another ad group.

2022-03-07 Thread Qi Yang
Hello,

I have 2 question about copy paste items via API:
1) Is there any method that copy paste ad group from one campaign to 
another? (like copy paste button in google ads UI)

2) When I try to add existing ads from one ad group to another ad group, 
with IDs retrieved via GAQL like this :
ad_group_ad { resource_name: 
"customers/customer_id/adGroupAds/57529009819~282776892873" ad { 
resource_name: "customers/customer_id /ads/282776892873" id: 282776892873 } 
} 
Then I execute the following code :
ad_group_ad_service = client.get_service("AdGroupAdService")
ad_group_service = client.get_service("AdGroupService")

ad_group_ad_operation = client.get_type("AdGroupAdOperation")
ad_group_ad = ad_group_ad_operation.create
ad_group_ad.ad_group = ad_group_service.ad_group_path(
customer_id, ad_group_id
)
ad_group_ad.status = client.enums.AdGroupAdStatusEnum.PAUSED
ad_group_ad.ad.id = 282776892873

But I got error like this :
Request made: ClientCustomerId: [customer_id], Host: 
googleads.googleapis.com, Method: 
/google.ads.googleads.v8.services.AdGroupAdService/MutateAdGroupAds, 
RequestId: EZTZfFh3UEm3Dgm_Rd8hgw, IsFault: True, FaultMessage: Resource 
was not found.

Could you please tell me what I did wrong?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/cc0744a4-69f4-4fde-bf8f-de71f97046cbn%40googlegroups.com.


copy paste ads from one ad group to another

2022-03-07 Thread Qi Yang
Hello,

I have 2 question about copy paste items via API:
1) Is there any method that copy paste ad group from one campaign to 
another? (like copy paste button in google ads UI)

2) When I try to add existing ads from one ad group to another ad group, 
with IDs retrieved via GAQL like this :
ad_group_ad { resource_name: 
"customers/customer_id/adGroupAds/adgroupid~adid" ad { resource_name: 
"customers/customer_id/ads/adid  " id: adid   } 
} 
Then I execute the following code :
ad_group_ad_service = client.get_service("AdGroupAdService")
ad_group_service = client.get_service("AdGroupService")

ad_group_ad_operation = client.get_type("AdGroupAdOperation")
ad_group_ad = ad_group_ad_operation.create
ad_group_ad.ad_group = ad_group_service.ad_group_path(
customer_id, ad_group_id
)
ad_group_ad.status = client.enums.AdGroupAdStatusEnum.PAUSED
ad_group_ad.ad.id = adid

But I got error like this :
Request made: ClientCustomerId: [customer_id], Host: 
googleads.googleapis.com, Method: 
/google.ads.googleads.v8.services.AdGroupAdService/MutateAdGroupAds, 
RequestId: EZTZfFh3UEm3Dgm_Rd8hgw, IsFault: True, FaultMessage: Resource 
was not found.

Could you please tell me what I did wrong?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/4b986433-3666-4b0e-8650-4ce7227c456an%40googlegroups.com.


Copy items from one ad group to another

2022-03-07 Thread SoMin AI
Hello,

I have 2 questions about copy-paste items via API:
1) Is there any method that copy-paste ad group from one campaign to 
another? (like copy paste button in google ads UI)

2) When I try to add existing ads from one ad group to another ad group, 
with IDs retrieved via GAQL like this :
ad_group_ad {
   resource_name: "customers/customer_id/adGroupAds/adgroupid~adid"
   ad {
 resource_name: "customers/customer_id/ads/adid  "
 id:  adid  
   } 
 } 
Then I execute the following code :
ad_group_ad_service = client.get_service("AdGroupAdService")
ad_group_service = client.get_service("AdGroupService")

ad_group_ad_operation = client.get_type("AdGroupAdOperation")
ad_group_ad = ad_group_ad_operation.create
ad_group_ad.ad_group = ad_group_service.ad_group_path(
customer_id, ad_group_id
)
ad_group_ad.status = client.enums.AdGroupAdStatusEnum.PAUSED
ad_group_ad.ad.id = adid

But I got error like this :
Request made: ClientCustomerId: [customer_id], Host: 
googleads.googleapis.com, Method: 
/google.ads.googleads.v8.services.AdGroupAdService/MutateAdGroupAds, 
RequestId: EZTZfFh3UEm3Dgm_Rd8hgw, IsFault: True, FaultMessage: Resource 
was not found.

Could you please tell me what I did wrong?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/5f4b9ced-b2ff-40f9-a283-b12d14794bf1n%40googlegroups.com.


Copy existing ad group to another campaign

2022-03-07 Thread Qi Yang
Hello, 
I need to perform the operation that copy and paste ad group from one 
campaign to another via API. Is there any method to call (just like the 
google ads UI)?

Also, can I copy ads to new ad group with their ads ID?
For example, I have retrieved ads via Query with the following result:

[ad_group_ad { resource_name: 
"customers/customer_id/adGroupAds/57529009819~282776892873" ad { 
resource_name: "customers/customer_id/ads/282776892873" id: 282776892873 } 
}]

then I execute following code:

ad_group_ad_service = client.get_service("AdGroupAdService")
ad_group_service = client.get_service("AdGroupService")
ad_group_ad_operation = client.get_type("AdGroupAdOperation")
ad_group_ad = ad_group_ad_operation.create
ad_group_ad.ad_group = ad_group_service.ad_group_path(
customer_id, ad_group_id)
ad_group_ad.status = client.enums.AdGroupAdStatusEnum.PAUSED
ad_group_ad.ad.id = 282776892873

but I got error like this :
Request made: ClientCustomerId: [customer_id] , Host: 
googleads.googleapis.com, Method: 
/google.ads.googleads.v8.services.AdGroupAdService/MutateAdGroupAds, 
RequestId: EZTZfFh3UEm3Dgm_Rd8hgw, IsFault: True, FaultMessage: *Resource 
was not found.*  

Could you please tell me what I did wrong?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/cad42289-d876-4655-bba7-445fc40689adn%40googlegroups.com.


copy paste ads from one ad group to another

2022-03-07 Thread Qi Yang
Hello,

I have 2 questions about copy-paste items via API:
1) Is there any method that copy-paste ad group from one campaign to 
another? (like copy paste button in google ads UI)

2) When I try to add existing ads from one ad group to another ad group, 
with IDs retrieved via GAQL like this :
ad_group_ad {
   resource_name: "customers/customer_id/adGroupAds/adgroupid~adid"
   ad {
 resource_name: "customers/customer_id/ads/adid  "
 id:  adid  
   } 
 } 
Then I execute the following code :
ad_group_ad_service = client.get_service("AdGroupAdService")
ad_group_service = client.get_service("AdGroupService")

ad_group_ad_operation = client.get_type("AdGroupAdOperation")
ad_group_ad = ad_group_ad_operation.create
ad_group_ad.ad_group = ad_group_service.ad_group_path(
customer_id, ad_group_id
)
ad_group_ad.status = client.enums.AdGroupAdStatusEnum.PAUSED
ad_group_ad.ad.id = adid

But I got error like this :
Request made: ClientCustomerId: [customer_id], Host: 
googleads.googleapis.com, Method: 
/google.ads.googleads.v8.services.AdGroupAdService/MutateAdGroupAds, 
RequestId: EZTZfFh3UEm3Dgm_Rd8hgw, IsFault: True, FaultMessage: Resource 
was not found.

Could you please tell me what I did wrong?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/a42fd09c-b495-474e-98a9-df9113372b3en%40googlegroups.com.