googleadsapi-support@google.com

260 views
Skip to first unread message

eftikhar emad

unread,
May 18, 2022, 4:27:43 AM5/18/22
to Google Ads API and AdWords API Forum
Hello Team, 
I keep getting `resource was not found. mutating` as partial error on Mutating Add operator for campaign_criterion, check : 
resource was not found. mutating: ADD for the listed criterions ids:[9014038, 9014040, 9025836, 1013194, 9025971, 9025972, 1013221, 9025988, 9053954, 1013303, 9025995, 9025999, 9026001, 1013345]
I already checked ids from latest files https://developers.google.com/adwords/api/docs/appendix/geotargeting and all are active ids .

can you please advise

Google Ads API Forum Advisor

unread,
May 18, 2022, 11:14:37 PM5/18/22
to eeabu...@gmail.com, adwor...@googlegroups.com
Hi Eftikhar,

Thank you for reaching out to us.

With regards to your concern, you’ve encountered RESOURCE_NOT_FOUND error, this means that the requested resource is not found.

For our team to better check it, could you please provide to us privately the complete API logs (request and response with request-id ) so our team can try and replicate the report and issue you are encountering?

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.

Best regards,
Google Logo
Heidi
Google Ads API Team
 


ref:_00D1U1174p._5004Q2atpfB:ref

eftikhar emad

unread,
May 19, 2022, 3:50:17 AM5/19/22
to Google Ads API and AdWords API Forum
I try to add them again 
google_operations = [
{:operator=>"ADD", :operand=>{:campaign_id=>XXXXXXXXX, :criterion=>{:xsi_type=>"Location", :id=>9014038}}},
{:operator=>"ADD", :operand=>{:campaign_id=>XXXXXXXXX, :criterion=>{:xsi_type=>"Location", :id=>9014040}}},
{:operator=>"ADD", :operand=>{:campaign_id=>XXXXXXXXX, :criterion=>{:xsi_type=>"Location", :id=>9025836}}},
{:operator=>"ADD", :operand=>{:campaign_id=>XXXXXXXXX, :criterion=>{:xsi_type=>"Location", :id=>1013194}}},
{:operator=>"ADD", :operand=>{:campaign_id=>XXXXXXXXX, :criterion=>{:xsi_type=>"Location", :id=>9025971}}},
{:operator=>"ADD", :operand=>{:campaign_id=>XXXXXXXXX, :criterion=>{:xsi_type=>"Location", :id=>9025972}}},
{:operator=>"ADD", :operand=>{:campaign_id=>XXXXXXXXX, :criterion=>{:xsi_type=>"Location", :id=>1013221}}},
{:operator=>"ADD", :operand=>{:campaign_id=>XXXXXXXXX, :criterion=>{:xsi_type=>"Location", :id=>9025988}}},
{:operator=>"ADD", :operand=>{:campaign_id=>XXXXXXXXX, :criterion=>{:xsi_type=>"Location", :id=>9053954}}},
{:operator=>"ADD", :operand=>{:campaign_id=>XXXXXXXXX, :criterion=>{:xsi_type=>"Location", :id=>1013303}}},
{:operator=>"ADD", :operand=>{:campaign_id=>XXXXXXXXX, :criterion=>{:xsi_type=>"Location", :id=>9025995}}},
{:operator=>"ADD", :operand=>{:campaign_id=>XXXXXXXXX, :criterion=>{:xsi_type=>"Location", :id=>9025999}}},
{:operator=>"ADD", :operand=>{:campaign_id=>XXXXXXXXX, :criterion=>{:xsi_type=>"Location", :id=>9026001}}},
{:operator=>"ADD", :operand=>{:campaign_id=>XXXXXXXXX, :criterion=>{:xsi_type=>"Location", :id=>1013345}}}
]

response = @client.service.campaign_criterion.mutate_campaign_criteria(customer_id: @customer_id.to_s, operations: google_operations, partial_failure: true)

Response:
<Google::Ads::GoogleAds::V10::Services::MutateCampaignCriteriaResponse: results: [
  <Google::Ads::GoogleAds::V10::Services::MutateCampaignCriterionResult:  resource_name: "customers/----/campaignCriteria/XXXXXXXXX~9014038">,
  <Google::Ads::GoogleAds::V10::Services::MutateCampaignCriterionResult:  resource_name: "customers/----/campaignCriteria/XXXXXXXXX~9014040">,
  <Google::Ads::GoogleAds::V10::Services::MutateCampaignCriterionResult:  resource_name: "customers/----/campaignCriteria/XXXXXXXXX~9025836">,
  <Google::Ads::GoogleAds::V10::Services::MutateCampaignCriterionResult:  resource_name: "customers/----/campaignCriteria/XXXXXXXXX~1013194">,
  <Google::Ads::GoogleAds::V10::Services::MutateCampaignCriterionResult:  resource_name: "customers/----/campaignCriteria/XXXXXXXXX~9025971">,
  <Google::Ads::GoogleAds::V10::Services::MutateCampaignCriterionResult:  resource_name: "customers/----/campaignCriteria/XXXXXXXXX~9025972">,
  <Google::Ads::GoogleAds::V10::Services::MutateCampaignCriterionResult:  resource_name: "customers/----/campaignCriteria/XXXXXXXXX~1013221">,
  <Google::Ads::GoogleAds::V10::Services::MutateCampaignCriterionResult:  resource_name: "customers/----/campaignCriteria/XXXXXXXXX~9025988">,
  <Google::Ads::GoogleAds::V10::Services::MutateCampaignCriterionResult:  resource_name: "customers/----/campaignCriteria/XXXXXXXXX~9053954">,
  <Google::Ads::GoogleAds::V10::Services::MutateCampaignCriterionResult:  resource_name: "customers/----/campaignCriteria/XXXXXXXXX~1013303">,
  <Google::Ads::GoogleAds::V10::Services::MutateCampaignCriterionResult:  resource_name: "customers/----/campaignCriteria/XXXXXXXXX~9025995">,
  <Google::Ads::GoogleAds::V10::Services::MutateCampaignCriterionResult:  resource_name: "customers/----/campaignCriteria/XXXXXXXXX~9025999">,
  <Google::Ads::GoogleAds::V10::Services::MutateCampaignCriterionResult:  resource_name: "customers/----/campaignCriteria/XXXXXXXXX~9026001">,
  <Google::Ads::GoogleAds::V10::Services::MutateCampaignCriterionResult:  resource_name: "customers/----/campaignCriteria/XXXXXXXXX~1013345">
]>
and they were added normally 

eftikhar emad

unread,
May 19, 2022, 5:21:04 AM5/19/22
to Google Ads API and AdWords API Forum
BTW, these list returned after partial_failure of 5000, does it mean one ID failed then mutating the next ids halted ? 

Google Ads API Forum Advisor

unread,
May 20, 2022, 3:06:02 AM5/20/22
to eeabu...@gmail.com, adwor...@googlegroups.com
Hi Eftikhar,

Thank you for your reply.

This guide contains our general documentation for partial failures and how to handle them.

That said, so our team can have a better picture of your concern "returned after partial_failure of 5000", could you also share the complete request and response logs, and request-id, generated when you encountered the partial failure?

Also, you may note that if partial_failure has been enabled or set to true in your CampaignCriterionService requests, then successful operations will be carried out and invalid operations will return errors. If false, all operations will be carried out in one transaction if and only if they are all valid. Default is false.


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.

Best regards,

Google Logo
Peter Laurence
Google Ads API Team
 


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