Hi Marc,

unfortunately, AdParamOperations are not (yet?) supported by the 
BulkMutateService, so what I do is use multiple threads to perform these 
types of updates faster. Take note that you'll have to check for 
RateExceededErrors. Also, it's not required to only send operations for a 
single ad group inside a mutate request, so if you have a lot of ad groups 
with only few keywords, there's a potential speedup by combining operations 
for different ad groups and increasing your the number of operations for a 
single Mutate call until you hit REQUEST_SIZE_LIMIT_EXCEEDED (in my 
experience, a few hundred operations are always OK).

Hope this helps, cheers
Dorian

On Monday, July 30, 2012 6:52:39 PM UTC+2, marc wrote:
>
> AdParam Get/Set best practices 
> I am running a script that updates the AdParams for a campaign once a day. 
> There are potentially 90,000 adgroups that could be updated daily. 
>
> This takes forever, when it works without some sort of error occurring. 
>
> I was wondering if anyone had some tips on best practices to use when 
> running adparam updates.
>
> Here's how I perform the updates.
>
>
> $adGroupId = <an adGroup id>;
> $keywordIds = <array of keyword ids associated with $adGroupId>;
> $param1 = <numeric value>;
>
> try { 
>    $operations = array();
>    foreach($keywordIds as $keywordId) {
>       $adParam1 = new AdParam($adGroupId, $keywordId, $param1, 1);
>       
>       // Create operations for the first adparam
>       $adParamOperation = new AdParamOperation();
>       $adParamOperation->operand = $param1;   
>       $adParamOperation->operator = 'SET';
>       $operations[] = $adParamOperation;
>    }
>    
>    if(!empty($operations)) {
>       $adParams = $this->adParamService->mutate($operations);
>    } 
> } 
> catch (Exception $e) {
>  .
>  .
>  . 
> }
>
>
> Thanks
>  
>

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en

Reply via email to