Hi Adeel,

You should be using AdGroupService. See 
https://code.google.com/p/google-api-adwords-php/source/browse/examples/AdWords/v201306/BasicOperations/UpdateAdGroup.php
 for 
an example.

Cheers,
Anash P. Oommen,
AdWords API Advisor

On Saturday, September 28, 2013 9:20:13 PM UTC+5:30, Adeel Ahmed wrote:
>
> Hi,
>
> First off all, I am fetching AdGroup's details using custom made PHP 
> script.
>
> I am pasting only few lines to make you understand first.
>
> define("ADWORDS_API_VERSION", "v201306");
> define("ADWORDS_API_SERVER", "https://adwords.google.com";); 
> define("ADWORDS_API_ADGROUP_SERVICE", ADWORDS_API_SERVER . 
> "/api/adwords/cm/" . ADWORDS_API_VERSION . "/AdGroupService");
> define("ADWORDS_API_NAMESPACE", "
> https://adwords.google.com/api/adwords/cm/"; . ADWORDS_API_VERSION);
> ...
> //auth
> //---using auth in $header with other details...
> ...
>
>     $encodedHeaders = new SoapHeader(ADWORDS_API_NAMESPACE, 
> "RequestHeader", $headers, false);
>
>     // Create the selector
>     $request = array(
>         "get" => array(
>             "serviceSelector" => array(
>                 "fields" => 
> array("Id","Name","Status","CampaignId","CampaignName","AverageCpc","AverageCpm",
> "Clicks","ContentBid","Cost","CpcBid","CpmBid","Impressions","BidStatus"
> ,"BiddingStrategyType"
> ,"ContentBidCriterionTypeGroup"
> ,"EnhancedCpcEnabled"
> ),
>                 "dateRange" => array("min"=>date("Y"."m"."d",$todayMin), 
> "max"=>date("Y"."m"."d",$todayMin)),
>
>             )
>         )
>     );
>
>
>     // Create the SOAP client
>     $client = new SoapClient(ADWORDS_API_ADGROUP_SERVICE . "?wsdl", 
> array("trace" => true));
>  
>     // Get the campaigns
>     $resultX = $client->__soapCall("get", $request, null, $encodedHeaders);
>  
>     // Output the results
>     $adgroups = $resultX->rval->entries;
>
> if($adgroups)
> {
>  //----do some work here and get bids----
>
> }
>
>
> NOW Questions is... I need to change cpcBids for selected AdGroups by 
> using AdGroupIDs...
> I need to know which service should I use? please help me out in creating 
> * $request *array (like above)..
>
> *Adeel Ahmed*
> PHP Developer
> http://adiie9.com/
>
>
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 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.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to