MutateAdGroupCriteriaResponse

50 views
Skip to first unread message

Darren Shirley

unread,
Jan 18, 2023, 7:05:53 AM1/18/23
to Google Ads API and AdWords API Forum
Hi,

Is there an issue with this code?

  MutateAdGroupCriteriaResponse retVal = service.MutateAdGroupCriteria(
                    new MutateAdGroupCriteriaRequest()
                    {
                        CustomerId = clientId.ToString(),
                        Operations = { operationsGA },
                        PartialFailure = false,
                        ValidateOnly = false,
                        ResponseContentType = ResponseContentTypeEnum.Types.ResponseContentType.MutableResource // required to bring back a complete mutated object to report on.
                    });

I can see it is synchronising from the change history in google ads but it just hangs and doesn't return a response. Any ideas what the issue is? (This is on V12)

Thanks,

Darren

Google Ads API Forum Advisor

unread,
Jan 18, 2023, 1:42:34 PM1/18/23
to darren....@onefeed.co.uk, adwor...@googlegroups.com
Hi Darren,

Thank you for reaching out to the Google Ads API support team.

You may refer this code example. Let me know if you have any questions.

Thanks,
Google Logo
Nirmita
Google Ads API Team
 


ref:_00D1U1174p._5004Q2hzjpx:ref

Darren Shirley

unread,
Jan 19, 2023, 7:23:56 AM1/19/23
to Google Ads API Forum Advisor, adwor...@googlegroups.com

Hi Nirmita,

 

Unfortunately this hasn’t helped. I have looked into the mutate operation changed it to the exact example for budget

 

                    // Create the campaign budget.

                    CampaignBudget budget = new CampaignBudget()

                    {

                        Name = ResourceNames.CampaignBudget(clientId, item.operand.budgetId),

                        DeliveryMethod = BudgetDeliveryMethod.Standard,

                        AmountMicros = 100000000

                    };

 

                    // Create the operation.

                    CampaignBudgetOperation budgetOperation = new CampaignBudgetOperation()

                    {

                        Update = budget,

                        UpdateMask = FieldMasks.AllSetFieldsOf(budget)

                    };

 

                    // Create the campaign budget.

                    MutateCampaignBudgetsResponse response = service.MutateCampaignBudgets(

                        clientId.ToString(), new CampaignBudgetOperation[] { budgetOperation });

 

 

and it just hangs I can’t even get it to populate the log files using:

 

// Detailed logs.

TraceUtilities.Configure(TraceUtilities.DETAILED_REQUEST_LOGS_SOURCE,

"D:\\logs\\details.log", System.Diagnostics.SourceLevels.All);

 

// Summary logs.

TraceUtilities.Configure(TraceUtilities.SUMMARY_REQUEST_LOGS_SOURCE,

"D:\\logs\\Summary.log", System.Diagnostics.SourceLevels.All);

 

 

This code works fine on Version 10 but version 11 and 12 it just hangs with no error. It’s as if it is going through some sort of continuous loop.


Thanks,


Darren

 

 

From: Google Ads API Forum Advisor <ads...@forumsupport.google>
Sent: 18 January 2023 18:42
To: Darren Shirley <darren....@onefeed.co.uk>
Cc: adwor...@googlegroups.com
Subject: RE: MutateAdGroupCriteriaResponse

 

Hi Darren,

Thank you for reaching out to the Google Ads API support team.

You may refer thttps://developers.google.com/google-ads/api/sampleshis code example. Let me know if you have any questions.

Thanks,

Google Ads API Forum Advisor

unread,
Jan 19, 2023, 11:26:52 AM1/19/23
to darren....@onefeed.co.uk, adwor...@googlegroups.com
Hi Darren,

Thank you for your response.

I performed a similar mutate request using the OAuth playground, using my own test account, and was not able to encounter the hanging issue.

Since there appears to be no issues with the API's services, this indicates a possible issue with the client library you are using. Looking at the logging configuration you provided, it seems that you are using .NET as seen here.

That said, I would recommend that you also raise this issue to the .NET client library owners, via this link. Should they determine that this is indeed an issue with the API, feel free to write back so we can raise this to the rest of our API support team.

Best regards,

Google Logo
Peter Laurence
Google Ads API Team
 


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