Re: how to decrease the response time to creation of campaign and adgroups
Hi Krish, You can definitely submit concurrent requests to the API, although you'll want to watch out for a few things. 1. You may start encountering rate limits. Please see the Rate Limits guide https://developers.google.com/adwords/api/docs/guides/rate-limits for tips on handling rate limit errors. 2. You'll want to follow our Best Practices https://developers.google.com/adwords/api/docs/guides/bestpractices, particularly with regards to sharing OAuth credentials and grouping operations. 3. If you try to update the same object in multiple concurrent requests you will encounter CONCURRENT_MODIFICATION errors https://developers.google.com/adwords/api/docs/common-errors#DatabaseError . 4. Read the documentation for the client library https://developers.google.com/adwords/api/docs/clientlibraries you are using. Each client library should have information on which objects are thread-safe and which are not within the library. Keep in mind that concurrency will only help if the objects you are trying to ADD are not dependent on each other. For example, if you need to create a campaign, its ad group, and its keywords, then concurrency won't help because you need to create the campaign first, then the ad group, and then the keywords. Finally, you could also implement an approach that uses Batch Processing https://developers.google.com/adwords/api/docs/guides/batch-processing via the MutateJobService https://developers.google.com/adwords/api/docs/reference/v201406/MutateJobService. However, that doesn't sound like a great fit for your use case because it seems that you need to execute your requests synchronously and wait for each reply, while the *MutateJobService* is meant for asynchronous processing, and may even make requests run a bit longer due to scheduling and job overhead. Hope that helps! Cheers, Josh, AdWords API Team On Tuesday, August 26, 2014 2:22:36 PM UTC-4, krish wrote: Hi In my project i need to create bulk number of the campaigns, adgroups,adds, keywords and negative keywords at campaign level and adgroup level one by one in single click from my web page . now i am able to do this task by adwords api . but the response time is getting very high . can i implement multi threading concept for this or anybody have idea to decrease the response time .could please share the example codes. Appreciate your help Thanks, krish -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and Google+: https://googleadsdeveloper.blogspot.com/ https://plus.google.com/+GoogleAdsDevelopers/posts =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups AdWords API Forum group. To post to this group, send email to adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en --- You received this message because you are subscribed to the Google Groups AdWords API Forum group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/adwords-api. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/66d2e26e-b4b6-47ee-9752-8d3a68fe7029%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: how to decrease the response time to creation of campaign and adgroups
Thank You so Much josh On Wed, Aug 27, 2014 at 7:50 PM, Josh Radcliff (AdWords API Team) adwordsapiadvisor+j...@google.com wrote: Hi Krish, You can definitely submit concurrent requests to the API, although you'll want to watch out for a few things. 1. You may start encountering rate limits. Please see the Rate Limits guide https://developers.google.com/adwords/api/docs/guides/rate-limits for tips on handling rate limit errors. 2. You'll want to follow our Best Practices https://developers.google.com/adwords/api/docs/guides/bestpractices, particularly with regards to sharing OAuth credentials and grouping operations. 3. If you try to update the same object in multiple concurrent requests you will encounter CONCURRENT_MODIFICATION errors https://developers.google.com/adwords/api/docs/common-errors#DatabaseError . 4. Read the documentation for the client library https://developers.google.com/adwords/api/docs/clientlibraries you are using. Each client library should have information on which objects are thread-safe and which are not within the library. Keep in mind that concurrency will only help if the objects you are trying to ADD are not dependent on each other. For example, if you need to create a campaign, its ad group, and its keywords, then concurrency won't help because you need to create the campaign first, then the ad group, and then the keywords. Finally, you could also implement an approach that uses Batch Processing https://developers.google.com/adwords/api/docs/guides/batch-processing via the MutateJobService https://developers.google.com/adwords/api/docs/reference/v201406/MutateJobService. However, that doesn't sound like a great fit for your use case because it seems that you need to execute your requests synchronously and wait for each reply, while the *MutateJobService* is meant for asynchronous processing, and may even make requests run a bit longer due to scheduling and job overhead. Hope that helps! Cheers, Josh, AdWords API Team On Tuesday, August 26, 2014 2:22:36 PM UTC-4, krish wrote: Hi In my project i need to create bulk number of the campaigns, adgroups,adds, keywords and negative keywords at campaign level and adgroup level one by one in single click from my web page . now i am able to do this task by adwords api . but the response time is getting very high . can i implement multi threading concept for this or anybody have idea to decrease the response time .could please share the example codes. Appreciate your help Thanks, krish -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and Google+: https://googleadsdeveloper.blogspot.com/ https://plus.google.com/+GoogleAdsDevelopers/posts =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups AdWords API Forum group. To post to this group, send email to adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en --- You received this message because you are subscribed to a topic in the Google Groups AdWords API Forum group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/adwords-api/kdCIoNoxf3s/unsubscribe. To unsubscribe from this group and all its topics, send an email to adwords-api+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/adwords-api. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/66d2e26e-b4b6-47ee-9752-8d3a68fe7029%40googlegroups.com https://groups.google.com/d/msgid/adwords-api/66d2e26e-b4b6-47ee-9752-8d3a68fe7029%40googlegroups.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and Google+: https://googleadsdeveloper.blogspot.com/ https://plus.google.com/+GoogleAdsDevelopers/posts =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups AdWords API Forum group. To post to this group, send email to adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en --- You received this message because you are subscribed to the Google Groups AdWords API Forum group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/adwords-api. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/CAHEe0UnFho1XJXD4k%2B1zzxbRR6qj6gKW3uJWqN%2BS3wcWJ77EjA%40mail.gmail.com.
how to decrease the response time to creation of campaign and adgroups
Hi In my project i need to create bulk number of the campaigns, adgroups,adds, keywords and negative keywords at campaign level and adgroup level one by one in single click from my web page . now i am able to do this task by adwords api . but the response time is getting very high . can i implement multi threading concept for this or anybody have idea to decrease the response time .could please share the example codes. Appreciate your help Thanks, krish -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and Google+: https://googleadsdeveloper.blogspot.com/ https://plus.google.com/+GoogleAdsDevelopers/posts =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups AdWords API Forum group. To post to this group, send email to adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en --- You received this message because you are subscribed to the Google Groups AdWords API Forum group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/adwords-api. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/90b5d2f9-7281-43f0-be28-71e1e8a583f6%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.