[PHP API] - Time elapsed to set a new bid really long by using "AdGroupCriterionService" method

29 views
Skip to first unread message

Pierre Augereau

unread,
Jan 23, 2015, 6:29:02 AM1/23/15
to adwor...@googlegroups.com
Good morning,

I'm using the AdWords PHP Api (v201406) to update the price of many keywords.
But, when I'm using the function "AdGroupCriterionService" to set the new bid, there is always some calls (from the sending request to the response with "$adGroupCriterionService->mutate($operations)") that lasts at least 30 seconds, even more sometimes...
However, some calls are done in less of 1 second o_O 

When I have to update at least 100 keywords, that's kind of a huge issue...

I do not have any firewall set on the port 80.

Do I need to use an other method / function to have more reactivity ?
Does it exist a function to send all news bid in once ?
Can I send, to your server, a multi-calls in parallel ?


By thanking you in advance,
Best regards

Josh Radcliff (AdWords API Team)

unread,
Jan 23, 2015, 5:18:41 PM1/23/15
to adwor...@googlegroups.com
Hi,

All of the mutate methods in the API take a collection of operations as their argument. This means you can (and should) batch multiple operations in a single mutate call whenever possible. See our Best Practices guide for more details.

Thanks,
Josh, AdWords API Team

Pierre Augereau

unread,
Feb 3, 2015, 4:44:38 AM2/3/15
to adwor...@googlegroups.com
Hi,
Thank you a lot for your answer.
Do you have some examples to how to use a collection of opérations with mutate method ? Because, I didn't find anything in the "Best practices guide" and in API examples...
Moreover, if I use a collection of operations (to set new BID), does it count for 1 operation for all new BID or each BID in the collection count as 1 operation ? Same question with "get" methods ?

Best regards.

Josh Radcliff (AdWords API Team)

unread,
Feb 3, 2015, 10:19:51 AM2/3/15
to adwor...@googlegroups.com
Hi,

Here are some examples that submit multiple operations in a single mutate call:
Regarding operation counts, please see our FAQ.

Thanks,
Josh, AdWords API Team
Reply all
Reply to author
Forward
0 new messages