Thank you for your reply

One question:
I am using a verified adwords account to use this API.

When I search data using
https://adwords.google.com/select/TrafficEstimatorSandbox

also at the same time when I search same data using my script

The result from my script and TrafficEstimatorSandbox is not same

Can you please confirm me is there any difference for returning
result?

I used $5 as maxCPC without setting any daily budgets.
for TrafficEstimatorSandbox i used $5 as maxCPC with submitting blank
field on daily budgets.

is there any filtering condition on adwords verified account? I am
using same geo info for both.

Thanks




On Feb 21, 4:31 pm, AdWords API Advisor <adwordsapiadvi...@google.com>
wrote:
> 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.
>
> Seehttp://code.google.com/apis/adwords/docs/reference/latest/TrafficEsti...
> 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

Reply via email to