Google Ads API: Campaign Criterion contains campaign.id that does not exist

110 views
Skip to first unread message

TUNG NGUYEN THANH

unread,
Aug 22, 2023, 12:59:50 AM8/22/23
to Google Ads API and AdWords API Forum
Hello,

Currently, I am utilizing the Google Ads API to retrieve the Campaign Criteria structure and Campaign structure.

Within the Campaign Criteria structure, I have acquired campaign.id associated with the criteria. However, upon querying the campaign ID via the campaign service, it returns an empty value. Even upon verifying the campaign on the interface, it appears to be non-existent.

Link to the Campaign Criteria structure: https://developers.google.com/google-ads/api/fields/v14/campaign_criterion#campaign_criterion.campaign
Link to the campaign: https://developers.google.com/google-ads/api/fields/v14/campaign

My question is: Is it normal for campaign.id within the Campaign Criteria structure to not exist in the Campaign structure? If so, what is the reason behind this occurrence? Additionally, what type of criteria can contain a campaign.id that does not exist?

Best regards.

Google Ads API Forum Advisor

unread,
Aug 22, 2023, 2:10:44 PM8/22/23
to tung...@flinters.co.jp, adwor...@googlegroups.com

Hi,

Thank you for reaching out to Google Ads API Forum.

I understand that you have acquired campaign id associated with the criteria but it appears to be non-existent when querying via API and verifying in the interface. With this, could you provide us with the complete API logs (request and response with request-id and request headergenerated on your end for retrieving this via API? This is so we could further check on our end and provide more appropriate guidance regarding this issue.

If you haven't enabled the logging yet, logging can be enabled by navigating to the Client libraries > Your client library (ex. Java) > Logging documentation, which you can access from this link (https://developers.google.com/google-ads/api/docs/client-libs?hl=en). For REST interface requests, you can enable logging via the curl command by using the -i flag.

You may then send the requested information privately via the Reply to author option. If this option is not available, you may send the details directly to our googleadsa...@google.com  alias instead.

Reference Links:

This message is in relation to case "ref:_00D1U1174p._5004Q2o7CYj:ref"

Thanks,
 
Google Logo Google Ads API Team


TUNG NGUYEN THANH

unread,
Aug 24, 2023, 3:31:35 AM8/24/23
to Google Ads API and AdWords API Forum
Hi

I sent privately request logs for this problem, please check it for me. 

Regards. 

Google Ads API Forum Advisor

unread,
Aug 24, 2023, 5:41:26 AM8/24/23
to tung...@flinters.co.jp, adwor...@googlegroups.com

Hi,

Thank you for the reply.

Upon trying on my end the query where you filtered the campaign ID 14932720065 from the customer ID 2665495182, I could confirm that I'm also not getting results. However, upon checking the customer ID 2665495182 in the Google Ads UI, I'm afraid that the campaign ID 14932720065 is indeed not existing. With this being said, could you kindly provide us the entire Google Ads UI without cropping, including its customer ID, where you can see that this campaign ID 14932720065 exists, so that we can further check this and provide appropriate recommendations to you? Kindly note that the Google Ads API mirrors the Google Ads UI. Whatever data shows on the Ads UI report, the API should pull or have it the same, and if this is not showing in the Ads UI, then I'm afraid that it will also not show in the API.

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.



 
This message is in relation to case "ref:_00D1U1174p._5004Q2o7CYj:ref"

TUNG NGUYEN THANH

unread,
Aug 24, 2023, 5:52:22 AM8/24/23
to Google Ads API and AdWords API Forum
Hi 

I also cannot find that campaign listed on the Ads UI. However, my question is why does that ID exist in the response when I retrieve the campaign criteria structure? (You can check the file "response1.json".)
As far as I understand, even if the campaign was deleted or removed, its ID and structure can still be obtained through the API.

Regard.

Google Ads API Forum Advisor

unread,
Aug 24, 2023, 9:47:42 AM8/24/23
to tung...@flinters.co.jp, adwor...@googlegroups.com

Hi,

Thanks for getting back to us.

Allow me to share this concern with the rest of our team for further insights. Rest assured that we will get back to you as soon as we have some updates.
 

Google Ads API Forum Advisor

unread,
Aug 24, 2023, 7:06:51 PM8/24/23
to tung...@flinters.co.jp, adwor...@googlegroups.com
Hello - 

I'm a developer relations engineer jumping in to help here. Just letting you know that I'm coordinating internally to answer your question, and I hope to have more details soon. I'll follow up here as soon as possible.
 
This message is in relation to case "ref:_00D1U1174p._5004Q2o7CYj:ref"

Thanks,
 
Google Logo
Ben Karl
Google Ads API Team
 

 

Reply all
Reply to author
Forward
0 new messages