Re: Digest for adwords-api@googlegroups.com - 21 updates in 9 topics

276 views
Skip to first unread message

Rungrot Oranon

unread,
Jul 26, 2022, 7:13:29 AM7/26/22
to adwor...@googlegroups.com
Thanks you bro top

[[Rungrot_Saibutdee]]

ในวันที่ ส. 23 ก.ค. 2022 17:58 น. <adwor...@googlegroups.com> เขียนว่า:
Jose Luis Petracca <jlpet...@nwa.digital>: Jul 22 08:01AM -0700

No, the problem isnt fix and this is the problem
 
 
=====START HERE ====
 
*System information:*
 
- python 3.9.9
- package version google-ads==17.0.0
- using service account
 
 
*The Code*
 
 
from google.ads.googleads.client import GoogleAdsClient
from google.ads.googleads.errors import GoogleAdsException
 
credentials = {
"developer_token": "devELOPERTOkeen",
"json_key_file_path" : PATH_TO_SERVICE_ACCOUNT_JSON,
"impersonated_email":"serviceacc...@email.iam.gserviceaccount.com
<https://groups.google.com/>",
"use_proto_plus": True,
'login_customer_id' : '1111111122' #MMC ID
}

googleads_client = GoogleAdsClient.load_from_dict(credentials)
 
 
def stream_response(client, customer_id, query):
return
client.get_service("GoogleAdsService").search_stream(customer_id,
query=query)
 
def main(client, customer_id):
query = "SELECT campaign.name FROM campaign LIMIT 10"
response = stream_response(client, customer_id, query=query)
for batch in response:
print(batch)
 
 
customer_id = '1223334445'
main(googleads_client, customer_id)
 
*The Response /error*
GoogleAdsException: (<_SingleThreadedRendezvous 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":"@1658341926.845702000","description":"Error received from peer
ipv6:[2800:3f0:4002:80c::200a]:443","file":"src/core/lib/surface/call.cc","file_line":967,"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}" >,
<_SingleThreadedRendezvous 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":"@1658341926.845702000","description":"Error received from peer
ipv6:[2800:3f0:4002:80c::200a]:443","file":"src/core/lib/surface/call.cc","file_line":967,"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: NOT_ADS_USER } message: "User
in the cookie is not a valid Ads user." } request_id:
"8ykzEeM7wVjZoJ1VDI54aw" , '8ykzEeM7wVjZoJ1VDI54aw')
 
 
 
 
==== ENDS HERE ===
On Friday, July 22, 2022 at 1:00:27 AM UTC-3 adsapi wrote:
 
Google Ads API Forum Advisor <ads...@forumsupport.google>: Jul 22 03:46PM

Hi Jose,
 
Thank you for the reply. Allow me to assist you here.
 
To further address the issue, I would suggest checking on your end if you already met the Prerequisites mentioned on this document. Also, you can double-check the configuration of your service account based on this guide to address the issue. Lastly, you will need to ensure as well that the user account you used in configuring service account should have access or added to the Google Ads account where you are requesting the API calls.
 
 
Best,
 
Anthony Cyril
Google Ads API Team
ref:_00D1U1174p._5004Q2bm7gu:ref
Jose Luis Petracca <jlpet...@nwa.digital>: Jul 22 09:02PM -0700

I did all what documentation said.
 
Also I did the Wide delegation to the service account
 
On Friday, July 22, 2022 at 12:47:06 PM UTC-3 adsapi wrote:
 
Walter Bodwell <wbod...@ftoptimize.com>: Jul 22 12:58PM -0700

I'm trying to upload an offline conversion. I'm using a manager account to
make the changes (9567076910). The conversion action has an owner_customer
of "customers/6141913992". That's the customer_id I'm using.
 
Here is the customer.conversion_tracking_setting:
customer {
resource_name: "customers/6141913992"
conversion_tracking_setting {
conversion_tracking_id: 810169330
google_ads_conversion_customer: "customers/6141913992"
}
}
So according
to https://developers.google.com/google-ads/api/docs/conversions/overview#effective_conversion_account,
the account is not using cross-account conversion tracking, and conversion
tracking is enabled.
 
# Here's the operation:
conversion = client.get_type("ClickConversion")
conversion.conversion_action =
'customers/6141913992/conversionActions/971368021'
conversion.gclid = '
CjwKCAjwx46TBhBhEiwArA_DjNNPxXwY-SFHyPPRWkaLHJUE_0bsXrRb3hpISdpoJwtYRM3bCW2LhRoCnPAQAvD_BwE'
conversion.conversion_value = 4.2300000000000004
conversion.conversion_date_time = '2022-04-23 10:52:00-07:00'
conversion.currency_code = 'GBP'
 
# And the upload
conversion_upload_service = client.get_service("ConversionUploadService")
request = client.get_type("UploadClickConversionsRequest")
request.customer_id = '6141913992'
request.conversions.append(conversion)
request.partial_failure = True
conversion_upload_service.upload_click_conversions(request=request)
 
I'm getting the following error response:
partial_failure_error {
code: 3
message: "The click associated with the given identifier or iOS URL
parameter isn\'t from the account where conversion tracking is set up., at
conversions[0].gclid"
details {
type_url:
"type.googleapis.com/google.ads.googleads.v10.errors.GoogleAdsFailure"
value: "\n\201\002\n\003\370\006\036\022\177The click associated with
the given identifier or iOS URL parameter isn\'t from the account where
conversion tracking is set
up.\032]*[CjwKCAjwx46TBhBhEiwArA_DjNNPxXwY-SFHyPPRWkaLHJUE_0bsXrRb3hpISdpoJwtYRM3bCW2LhRoCnPAQAvD_BwE\"\032\022\017\n\013conversions\030\000\022\007\n\005gclid"
}
}
results {
}
 
We have another customer with similar settings (using the same manager
account, not using cross-account conversion tracking, conversion tracking
enabled, owner is the same as the account) and it is not seeing similar
issues.
 
Any suggestions on what I need to look at to address the issue?
Thanks,
Walter
Akash Dave <kshda...@gmail.com>: Jul 22 12:56PM -0700

My company has a developer token. Now I want to give read-only access to a
non-member of our organization. I have couple of questions regarding the
process:
1. Can I use the same developer token or have to generate a new one?
2. Do I need to generate new set of credentials (ClientID/ClientSecret)
from the manager account ? Or it has be generated from the third party
account?
3. Does changing the login customer id will affect the authorization?
 
Note: I do have read-only access to the manager account.
 
 
Thanks
Ilan Alexandrov <ilan...@gmail.com>: Jul 22 10:32AM -0700

Hi,
 
My main topic is to create a performance max campaign and filter from all
the products of the shop only a few of the products.
I'm coding via Java.
 
 
- I have users who are creating performance max campaign - they choose from
their products *only the products they would like to advertise * (for
example a user with 50 products would like to advertise only 10% of his
products and I have this list of product ids)
- I'm creating successfully the performance max campaign through my code,
and I'm able to create the asset group as well ( but it's empty for now)
- I'm trying to create the listing group (from this
<https://developers.google.com/google-ads/api/docs/performance-max/listing-groups> link
and from this
<https://github.com/googleads/google-ads-java/blob/cc595f07816a26b76f5136121b185b9a057a2da1/google-ads-examples/src/main/java/com/google/ads/googleads/examples/advancedoperations/AddPerformanceMaxCampaign.java#L343-L368> code
helper), so for example i just tried to create a dimension:
as this picture shows, the output I'm getting is the error:
 
[image: thread-171991382-4237830526620232199.jpg]error_code {
asset_group_listing_group_filter_error:
SUBDIVISION_MUST_HAVE_EVERYTHING_ELSE_CHILD } message: "Listing Group
SUBDIVISION node must have everything else child." trigger { int64_value:
-1 }
 
 
Another problem is that I don't understand even after adding this division,
where is the place I set the desired product IDs..
 
I think I don't understand completely how I am supposed to filter all the
products of the store and take only some of them to be shown in the listing
group finally (as in google shopping ads there were ad Groups, I'm trying
to do the same in the performance max campaigns)
How should I approach this problem?
 
Thank you very much for the help!
Google Ads API Forum Advisor <ads...@forumsupport.google>: Jul 22 07:07PM

Hi Ilan,
 
Thank you for reaching out to our API support team.
 
This example should already provide information on who to create your listing group tree. Could you share our complete request and response logs and request-id, so our team can take a closer look at the error you are encountering?
 
If you haven't yet, logging can be enabled by navigating to the Client libraries > Your client library (ex. Java) > Logging documentation. You may then send the requested information 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.
 
As for the products, you will need to extract them from a separate source and include their details in any of the dimensions listed here. As to how to identify which products to include, you may discuss this further with your users.
 
This is because the Google Ads API does not have a feature to directly extract the products that are from an advertiser's website or inventory.
 
Best regards,
 
Peter Laurence
Google Ads API Team
ref:_00D1U1174p._5004Q2bmqWG:ref
"pn...@yrglm-vn.com" <pn...@yrglm-vn.com>: Jul 20 09:53PM -0700

Hi Google ads api team,
 
Thank you so much for your answer. I'm so sorry about long content but
please support me. About your suggestion:
 
> *However, you can utilize the ad group id which can be returned using
the ad_group_ad.ad.id <http://ad_group_ad.ad.id/> field as it id the common
field for those ads. Let me know if this will work with you.*
 
I use Google ads api V10 to update tracking_template URL for Ads except
Variations AD & its parent Ad (original ad).
Problem that I got is:
 
- within API response' AD attribute, *I can know Variations AD but can't
not find which one is it's parent AD (original ad)*
 
 
* Example here:
 
Group:
|_ A1 (It's not a variations ad)
|_ A2 (It's not a variations ad)
|_ A1' (It's a variations ad. It's create from original ad A1)
|_ B (It's not a variations ad)
|_ C (It's not a variations ad)
 
*Please let me know there are any way to find a parent ad (original ad) of
an Variations AD ?* I could not use comparing condition like the same
headline1,2 to find parent ad.
 
Thank you so much.
 
 
On Tuesday, July 19, 2022 at 11:33:08 PM UTC+7 adsapi wrote:
 
"pn...@yrglm-vn.com" <pn...@yrglm-vn.com>: Jul 20 09:55PM -0700

Hi Google ads api team,
 
Thank you so much for your answer. I'm so sorry about long content but
please support me. About your suggestion:
 
> *However, you can utilize the ad group id which can be returned using
the ad_group_ad.ad.id <http://ad_group_ad.ad.id/> field as it id the common
field for those ads. Let me know if this will work with you.*
 
I use Google ads api V10 to update tracking_template URL for Ads except
Variations AD & its parent Ad (original ad).
Problem that I got is:
 
- within API response' AD attribute, *I can know Variations AD but can't
not find which one is it's parent AD (original ad)*
 
 
* Example here:
 
Group:
|_ A1 (It's not a variations ad)
|_ A2 (It's not a variations ad)
|_ A1' (It's a variations ad. It's create from original ad A1)
|_ B (It's not a variations ad)
|_ C (It's not a variations ad)
 
*Please let me know there are any way to find a parent ad (original ad) of
an Variations AD ?* I could not use comparing condition like the same
headline1,2 to find parent ad.
 
Thank you so much.
 
On Tuesday, July 19, 2022 at 11:33:08 PM UTC+7 adsapi wrote:
 
"pn...@yrglm-vn.com" <pn...@yrglm-vn.com>: Jul 20 10:01PM -0700

Hi Google ads api team,
 
Thank you so much for your answer. I'm so sorry about long content but
please support me. About your suggestion:
 
> *However, you can utilize the ad group id which can be returned using
the ad_group_ad.ad.id <http://ad_group_ad.ad.id/> field as it id the common
field for those ads. Let me know if this will work with you.*
 
I use Google ads api V10 to update tracking_template URL for Ads except
Variations AD & its parent Ad (original ad).
Problem that I got is:
 
- within API response' AD attribute, *I can know Variations AD but can't
not find which one is it's parent AD (original ad)*
 
 
* Example here:
 
Group:
|_ A1 (It's not a variations ad)
|_ A2 (It's not a variations ad)
|_ A1' (It's a variations ad. It's create from original ad A1)
|_ B (It's not a variations ad)
|_ C (It's not a variations ad)
 
*Please let me know there are any way to find a parent ad (original ad) of
an Variations AD ?* I could not use comparing condition like the same
headline1,2 to find parent ad.
 
Thank you so much.
"tanph...@gmail.com" <tanph...@gmail.com>: Jul 20 10:08PM -0700

Hi Google ads api team,
 
Thank you so much for your answer. I'm so sorry about long content but
please support me. About your suggestion:
 
> However, you can utilize the ad group id which can be returned using the
ad_group_ad.ad.id field as it id the common field for those ads. Let me
know if this will work with you.
 
I use Google ads api V10 to update tracking_template URL for Ads except
Variations AD & its parent Ad (original ad).
Problem that I got is:
*within API response' AD attribute, I can know Variations AD but can't not
find which one is it's parent AD (original ad)*
 
* Example here:
 
Group:
|_ A1 (It's not a variations ad)
|_ A2 (It's not a variations ad)
|_ A1' (It's a variations ad. It's create from original ad A1)
|_ B (It's not a variations ad)
|_ C (It's not a variations ad)
 
*Please let me know there are any way to find a parent ad (original ad) of
an Variations AD **?* I could not use comparing condition like the same
headline1,2 to find parent ad.
 
Thank you so much.
 
On Tuesday, July 19, 2022 at 11:33:08 PM UTC+7 adsapi wrote:
 
"pn...@yrglm-vn.com" <pn...@yrglm-vn.com>: Jul 21 03:58AM -0700

Hi Google ads api team,
 
Thank you so much for your answer. I am so sorry about long content but
please support me. About your suggestion:
 
*However, you can utilize the ad group id which can be returned using the
ad_group_ad.ad.id field as it id the common field for those ads. Let me
know if this will work with you.*
 
I used Google ads api V10 to update tracking template URL for ads except
variations ads and its parent ad (original ad).
Problem that I got is:
*within API response ad attributes, I can know variations ad but can not
find which one is its parent ad (original ad)*
 
* Example here:
 
Group:
|_ A
|_ B
|_ A' (It is a variations ad. It was created from original ad A)
|_ C
|_ D
 
Please let me know there are any way to find a parent ad (original ad) of
an Variations ad ? I could not use comparing condition like the same
headline1, 2 to find parent ad.
 
Thank you so much.
 
On Tuesday, July 19, 2022 at 11:33:08 PM UTC+7 adsapi wrote:
 
"pn...@yrglm-vn.com" <pn...@yrglm-vn.com>: Jul 21 03:42AM -0700

Hi Google ads api team,
 
Thank you so much for your answer. I'm so sorry about long content but
please support me. About your suggestion:
 
I use Google ads api V10 to update tracking_template URL for Ads except
Variations AD & its parent Ad (original ad).
Problem that I got is:
*within API response' AD attribute, I can know Variations AD but can't not
find which one is it's parent AD (original ad)*
 
* Example here:
 
Group:
|_ A1 (It's not a variations ad)
|_ A2 (It's not a variations ad)
|_ A1' (It's a variations ad. It's create from original ad A1)
|_ B (It's not a variations ad)
|_ C (It's not a variations ad)
 
*Please let me know there are any way to find a parent ad (original ad) of
an Variations AD ? *I could not use comparing condition like the same
headline1,2 to find parent ad.
 
Thank you so much.
 
On Tuesday, July 19, 2022 at 11:33:08 PM UTC+7 adsapi wrote:
 
"pn...@yrglm-vn.com" <pn...@yrglm-vn.com>: Jul 21 03:38AM -0700

Hi Google ads api team,
 
Thank you so much for your answer. I'm so sorry about long content but
please support me. About your suggestion:
 
*"However, you can utilize the ad group id which can be returned using the
ad_group_ad.ad.id field as it id the common field for those ads. Let me
know if this will work with you."*
 
I use Google ads api V10 to update tracking_template URL for Ads except
Variations AD & its parent Ad (original ad).
Problem that I got is:
*within API response' AD attribute, I can know Variations AD but can't not
find which one is it's parent AD (original ad)*
 
* Example here:
 
Group:
|_ A1 (It's not a variations ad)
|_ A2 (It's not a variations ad)
|_ A1' (It's a variations ad. It's create from original ad A1)
|_ B (It's not a variations ad)
|_ C (It's not a variations ad)
 
Please let me know there are any way to find a parent ad (original ad) of
an Variations AD ? I could not use comparing condition like the same
headline1,2 to find parent ad.
 
Thank you so much.
 
On Tuesday, July 19, 2022 at 11:33:08 PM UTC+7 adsapi wrote:
 
"pn...@yrglm-vn.com" <pn...@yrglm-vn.com>: Jul 21 12:00AM -0700

Hi Google ads api team,
 
Thank you so much for your answer. I'm so sorry about long content but
please support me. About your suggestion:
 
*> However, you can utilize the ad group id which can be returned using the
ad_group_ad.ad.id field as it id the common field for those ads. Let me
know if this will work with you.*
 
I use Google ads api V10 to update tracking_template URL for Ads except
Variations AD & its parent Ad (original ad).
Problem that I got is:
within API response' AD attribute, I can know Variations AD but can't not
find which one is it's parent AD (original ad)
 
* Example here:
 
Group:
|_ A1 (It's not a variations ad)
|_ A2 (It's not a variations ad)
|_ A1' (It's a variations ad. It's create from original ad A1)
|_ B (It's not a variations ad)
|_ C (It's not a variations ad)
 
*Please let me know there are any way to find a parent ad (original ad) of
an Variations AD ?* I could not use comparing condition like the same
headline1,2 to find parent ad.
 
Thank you so much.
 
On Tuesday, July 19, 2022 at 11:33:08 PM UTC+7 adsapi wrote:
 
"pn...@yrglm-vn.com" <pn...@yrglm-vn.com>: Jul 20 10:16PM -0700

Hi Google ads api team,
 
Thank you so much for your answer. I'm so sorry about long content but
please support me. About your suggestion:
 
*However, you can utilize the ad group id which can be returned using the
ad_group_ad.ad.id field as it id the common field for those ads. Let me
know if this will work with you.*
 
I use Google ads api V10 to update tracking_template URL for Ads except
Variations AD & its parent Ad (original ad).
Problem that I got is:
within API response' AD attribute, I can know Variations AD but can't not
find which one is it's parent AD (original ad)
 
* Example here:
 
[image: ask_gg_20220721.png]
 
*Please let me know there are any way to find a parent ad (original ad) of
an Variations AD ?* I could not use comparing condition like the same
headline1,2 to find parent ad.
 
Thank you so much.
 
 
On Tuesday, July 19, 2022 at 11:33:08 PM UTC+7 adsapi wrote:
 
Google Ads API Forum Advisor <ads...@forumsupport.google>: Jul 22 02:06PM

Hi,
 
Thank you for your reply.
 
Extracting the relationship or association of the parent ad and its variation is unfortunately not currently supported in the Google Ads API. My colleagues have already raised a feature request for this information's availability in the ad_group_ad report.
 
For now, we recommend that you keep an eye on our blog for updates and announcements.
 
Best regards,
 
Peter Laurence
Google Ads API Team
ref:_00D1U1174p._5004Q2cVXpX:ref
Google Ads API Forum Advisor <ads...@forumsupport.google>: Jul 22 01:17PM

Hi Martin,
 
Thanks for getting back to us.
 
You may use the ad_group_ad.ad.shopping_smart_ad, ad_group_ad.ad.smart_campaign_ad.descriptions, and ad_group_ad.ad.smart_campaign_ad.headlines fields from ad_group_ad report.
 
You may use the below query to get headline and description as ad details for the smart shopping ad.
 
SELECT ad_group_ad.ad.id, ad_group_ad.ad.resource_name, ad_group_ad.ad.shopping_smart_ad, ad_group_ad.ad.smart_campaign_ad.descriptions, ad_group_ad.ad.smart_campaign_ad.headlines FROM ad_group_ad
 
Moving forward, since you mentioned that there is nothing in "ad_group_ad.ad.shopping_smart_ad", then for us to investigate further, could you please provide a privately complete Google Ads UI screenshot without cropping, so that we can check better?
 
Regards,
 
Yasar
Google Ads API Team
ref:_00D1U1174p._5004Q2JWkIA:ref
Google Ads API Forum Advisor <ads...@forumsupport.google>: Jul 22 12:24PM

Hi,
 
Thank you for raising this concern to the Google Ads API team.
 
Moving forward, "is there a way to use BigQuery to read all of these offline conversions from the api ? That would help to pinpoint where is this discrepancy coming from. So far Ive looked through the docs but I cant anything.", our team won't able to comment on the use of BigQuery to read all of these offline conversions since our team's expertise is limited to Google Ads API. However, you may note that BigQuery concerns are handled by a separate team and that being said, I would suggest to their support team via this link.
 
Furthermore, if you've used Google ads API to upload conversions, and seeing discrepancies, then so our team can better check, you may provide us complete logs ( request and response logs with request ID and request header ) and you can provide it via Reply privately to author option. If this option is not available, then send it instead on this email address googleadsa...@google.com.
 
Regards,
 
Carmela
Google Ads API Team
ref:_00D1U1174p._5004Q2bmgF6:ref
Google Ads API Forum Advisor <ads...@forumsupport.google>: Jul 22 12:11PM

Hi Miguel,
 
Thank you for raising your concern to my team. Allow me to provide support here.
 
For setting ad rotation at campaign level, I am afraid that this is not possible as this is already deprecated. As for the issue encountered with AdGroupAdRotationMode, would you be able to provide more details here such as how you encountered it and the complete request and response logs with request ID and request header generated on your end?
 
You can provide it via Reply privately to author option. If this option is not available, then send it instead on this email address googleadsa...@google.com.
 
Regards,
 
Ernie John
Google Ads API Team
ref:_00D1U1174p._5004Q2bmgP0:ref
Google Ads API Forum Advisor <ads...@forumsupport.google>: Jul 20 02:25AM

Hello,
 
Thank you for getting back to us. I am Sherwin from Google Ads API and I work with Yasar and Peter. I hope that you are doing well today.
 
This sounds like the feature the HistoricalMetricsOptions feature that allows users to specify the Year/Month range of the historical stats to retrieve. Based on this document about the HistoricalMetricsOptions, the year month range for historical metrics. If not specified the searches will be returned for past 12 months. Searches data is available for the past 4 years. If the search volume is not available for the entire year_month_range provided, the subset of the year month range for which search volume is available will be returned.
 
If you have other concerns, feel free to reply in this thread.
 
Kind regards,
 
Sherwin Vincent
Google Ads API Team
ref:_00D1U1174p._5004Q2cG8O0:ref
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page.
To unsubscribe from this group and stop receiving emails from it send an email to adwords-api...@googlegroups.com.

Google Ads API Forum Advisor

unread,
Jul 26, 2022, 9:44:22 AM7/26/22
to rungro...@gmail.com, adwor...@googlegroups.com

Hi Rungrot,



Thank you for reaching out to our API support team.

It appears that you are interested in this thread. Do you have any follow-up questions to Aryeh's response?


Best,

Google Logo
Anthony Cyril
Google Ads API Team
 


ref:_00D1U1174p._5004Q2bm7gu:ref
Reply all
Reply to author
Forward
0 new messages