Need to fetch campaign/ad-group for a given user list

70 views
Skip to first unread message

Parag Sabnis

unread,
Oct 10, 2022, 10:52:31 AM10/10/22
to Google Ads API and AdWords API Forum
Hi,

I am trying to fetch campaign/ad-group for a user list but search API using campaign_audience_view or ad_group_audience_view is not returning the campaign/ad-group I am looking for.

Account Id: 2527638028
User list Id: 6873190031
Associated campaign Ids: 12024233721, 11025223855

Please check & let me know why I am not seeing the same in search API response.

Regards,
Parag Sabnis
 

Google Ads API Forum Advisor

unread,
Oct 10, 2022, 2:18:35 PM10/10/22
to adwor...@googlegroups.com
Hi Parag,

Thank you for reaching out to us.

For our team to further validate why you are not getting your expected data on the reports you are using and provide appropriate recommendations, could you please provide us with the complete API logs (request and response with request-id) generated on your end and the whole Google Ads UI screenshot where you can see the data you want to retrieve?

Note that the logs can be requested or provided to the developer handling the Google Ads API transactions when logging of the API requests has been enabled. You may check here and click your client library for the specific guideline to enable it.

You may then send the requested logs 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.

Best regards,
Google Logo
Heidi
Google Ads API Team
 


ref:_00D1U1174p._5004Q2f4Sed:ref

Parag Sabnis

unread,
Oct 11, 2022, 3:14:54 AM10/11/22
to Google Ads API and AdWords API Forum
Hi, 
Please find requested details as below - 

[2022-10-11 12:14:46,415] [DEBUG] [google.ads.googleads.client] [245] [MainThread] - Request
-------
Method: /google.ads.googleads.v10.services.GoogleAdsService/Search
Host: googleads.googleapis.com
Headers: {
  "developer-token": "REDACTED",
  "x-goog-api-client": "gl-python/3.8.10 grpc/1.44.0 gax/2.7.1 gccl/15.0.0",
  "x-goog-request-params": "customer_id=2527638028"
}
Request: customer_id: "2527638028"
query: "\n            SELECT \n                campaign_audience_view.resource_name,\n                user_list.id, \n                user_list.name, \n                user_list.integration_code, \n                user_list.resource_name, \n                user_list.type, \n                campaign.id, \n                campaign.name, \n                campaign.status, \n                campaign.campaign_group, \n                campaign.resource_name, \n                campaign.serving_status, \n                campaign.start_date,\n                campaign.end_date,\n                campaign.targeting_setting.target_restrictions \n            FROM campaign_audience_view \n            WHERE \n                customer.id = 2527638028\n        \n                AND user_list.id = 6873190031\n            "


Response
-------
Headers: {
  "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\"",
  "content-disposition": "attachment",
  "date": "Tue, 11 Oct 2022 06:44:46 GMT",
  "request-id": "vr1GMNEGvhoApPJ0ck1GMg"
}
Response: field_mask {
  paths: "campaign_audience_view.resource_name"
  paths: "user_list.id"
  paths: "user_list.name"
  paths: "user_list.integration_code"
  paths: "user_list.resource_name"
  paths: "user_list.type"
  paths: "campaign.id"
  paths: "campaign.name"
  paths: "campaign.status"
  paths: "campaign.campaign_group"
  paths: "campaign.resource_name"
  paths: "campaign.serving_status"
  paths: "campaign.start_date"
  paths: "campaign.end_date"
  paths: "campaign.targeting_setting.target_restrictions"
}


[2022-10-11 12:14:46,416] [INFO] [google.ads.googleads.client] [256] [MainThread] - Request made: ClientCustomerId: 2527638028, Host: googleads.googleapis.com, Method: /google.ads.googleads.v10.services.GoogleAdsService/Search, RequestId: vr1GMNEGvhoApPJ0ck1GMg, IsFault: False, FaultMessage: None

Please let me know why I am not able to fetch any details here.

Regards,
Parag 

Parag Sabnis

unread,
Oct 12, 2022, 2:43:48 AM10/12/22
to Google Ads API and AdWords API Forum
Hi,

This is on high priority for us, can we please get an update here?

Regards,
Parag

Parag Sabnis

unread,
Nov 1, 2022, 2:15:14 AM11/1/22
to Google Ads API and AdWords API Forum
Hi Team,

Can I please get an update here??

Thanks

Reply all
Reply to author
Forward
0 new messages