Hi, When you set $adGroupEstimateRequest->maxCpc = new Money(1000000), you are restricting the max bids for estimates for this ad group to $1 ($1 = 10^6 micros). If you change the value to 5000000, then max bid for estimates become $5.
See http://code.google.com/apis/adwords/docs/reference/latest/TrafficEstimatorService.AdGroupEstimateRequest.html#maxCpc for more details. Cheers, Anash P. Oommen, AdWords API Advisor. On Feb 18, 11:33 am, phpfarmer <jewel.cse....@gmail.com> wrote: > Hi, > > Thank you very much for your reply. > Another question please > > If i set > $adGroupEstimateRequest->maxCpc = new Money(1000000); > what does it mean > Maximum CPC (Click Per Cost) for that specific keyword USD 1 or What > else? > > If i set it > $adGroupEstimateRequest->maxCpc = new Money(5000000); > > What will happened? > > Thanks again > > On Feb 18, 4:17 am, AdWords API Advisor <adwordsapiadvi...@google.com> > wrote: > > > > > > > > > Hi, > > > The MaxCPC is set via this line: > > > $adGroupEstimateRequest->maxCpc = new Money(1000000); > > > It's not currently possible to set the budget via the API, and an > > unlimited budget is used for calculations. > > > Best, > > - Eric Koleda, AdWords API Team > > > On Feb 15, 4:57 am, phpfarmer <jewel.cse....@gmail.com> wrote: > > > > Hi, > > > > I am trying to get traffic estimates data using adwords documentations > > > sample code which > > > ishttp://code.google.com/p/google-api-adwords-php/source/browse/trunk/e... > > > > Now please visit this > > > linkhttps://adwords.google.com/select/TrafficEstimatorSandbox > > > > See here are 2 extra fields like > > > Max CPC $ and Daily budget $ > > > > Can anyone please let me know who can I set this 2 conditions for > > > filtering Traffic data? > > > > My Code sample like > > > > try { > > > // Get AdWordsUser from credentials in "../auth.ini" > > > // relative to the AdWordsUser.php file's directory. > > > $user = new AdWordsUser(); > > > > // Log SOAP XML request and response. > > > $user->LogDefaults(); > > > > // Get the TrafficEstimatorService. > > > $trafficEstimatorService = $user- > > > > >GetTrafficEstimatorService('v201008'); > > > > // Create keywords. Up to 2000 keywords can be passed in a single > > > request. > > > $keywords = array(); > > > $keywords[] = new Keyword('mars cruise', 'BROAD'); > > > $keywords[] = new Keyword('cheap cruise', 'PHRASE'); > > > $keywords[] = new Keyword('cruise', 'EXACT'); > > > > // Create a keyword estimate request for each keyword. > > > $keywordEstimateRequests = array(); > > > foreach ($keywords as $keyword) { > > > $keywordEstimateRequest = new KeywordEstimateRequest(); > > > $keywordEstimateRequest->keyword = $keyword; > > > $keywordEstimateRequests[] = $keywordEstimateRequest; > > > } > > > > // Create ad group estimate requests. > > > $adGroupEstimateRequest = new AdGroupEstimateRequest(); > > > $adGroupEstimateRequest->keywordEstimateRequests = > > > $keywordEstimateRequests; > > > $adGroupEstimateRequest->maxCpc = new Money(1000000); > > > $adGroupEstimateRequests = array($adGroupEstimateRequest); > > > > // Create campaign estimate requests. > > > $campaignEstimateRequest = new CampaignEstimateRequest(); > > > $campaignEstimateRequest->adGroupEstimateRequests = > > > $adGroupEstimateRequests; > > > $campaignEstimateRequest->targets = array(new CountryTarget('US'), > > > new LanguageTarget('en')); > > > $campaignEstimateRequests = array($campaignEstimateRequest); > > > > // Create selector. > > > $selector = new TrafficEstimatorSelector(); > > > $selector->campaignEstimateRequests = $campaignEstimateRequests; > > > > // Get traffic estimates. > > > $result = $trafficEstimatorService->get($selector); > > > > // Display traffic estimates. > > > if (isset($result)) { > > > $keywordEstimates = > > > > > > $result->campaignEstimates[0]->adGroupEstimates[0]->keywordEstimates; > > > > for ($i = 0; $i < sizeof($keywordEstimates); $i++) { > > > $keyword = $keywordEstimateRequests[$i]->keyword; > > > $keywordEstimate = $keywordEstimates[$i]; > > > > // Find the mean of the min and max values. > > > $meanAverageCpc = ($keywordEstimate->min->averageCpc->microAmount > > > > + $keywordEstimate->max->averageCpc->microAmount) / 2; > > > $meanAveragePosition = ($keywordEstimate->min->averagePosition > > > + $keywordEstimate->max->averagePosition) / 2; > > > $meanClicks = ($keywordEstimate->min->clicks > > > + $keywordEstimate->max->clicks) / 2; > > > $meanTotalCost = ($keywordEstimate->min->totalCost->microAmount > > > + $keywordEstimate->max->totalCost->microAmount) / 2; > > > > printf("Results for the keyword with text '%s' and match type > > > '%s':\n", > > > $keyword->text, $keyword->matchType); > > > printf(" Estimated average CPC: %.0f\n", $meanAverageCpc); > > > printf(" Estimated ad position: %.2f \n", > > > $meanAveragePosition); > > > printf(" Estimated daily clicks: %d\n", $meanClicks); > > > printf(" Estimated daily cost: %.0f\n\n", $meanTotalCost); > > > } > > > } else { > > > print "No traffic estimates were returned.\n"; > > > }} catch (Exception $e) { > > > > print $e->getMessage(); > > > > } > > > > Thanks in advance -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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