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:
|
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
|