Re: Edit Geo BId Adjustment (Required Minimum functionality) PHP v201306

2013-11-01 Thread MWA
Thanx, but it gives me an array of several Locations,

I want to know what action do i need to perform Geo Bid Adjustment  
'Required Minimum Functionality'?
What to Edit here since everything is read only?

On Monday, October 28, 2013 9:31:41 PM UTC+5, MWA wrote:

 Hi There,

 Can some one guide me how to Edit geo bid adjustment using PHP  API

 I tried using the following code but no avail, firstly I am trying to get 
 the Location Info then add/Set/Edit them.

 $user = new AdWordsUser(null,null,null,null,null,null,$adwordId);
 $user-LogDefaults();
 
 $LocationService = $user-GetService('LocationCriterionService', 
 ADWORDS_VERSION);
 
   ` $selector = new Selector();
 $selector-fields = array( LocationName, DisplayType, 
 TargetingStatus, ParentLocations);
 $selector-predicates[] = new Predicate('Id', 'IN', 
 array($criterionId));
  
 
 $data = $LocationService-get($selector);
 
 
 if(isset($data-entries))
 {
 $entries = $data-entries[0];
 $amount = $entries-bids-maxCpc-amount-microAmount;
 }
 

 unset($selector);
 echo pre; print_r($data);die;

 Also if you go through this page for Geo Bid Adjustment  'Required Minimum 
 Functionality' under Location 
 https://developers.google.com/adwords/api/docs/reference/v201306/CampaignCriterionService.Location

 all of the elements such as 'locationName', 'displayType', 
 'targetingStatus'  etc are read only, so how come I an 'Edit' those? Isn't 
 it about adding/setting up new locations?

 Warm Regards


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://googleadsdeveloper.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.


Re: Edit Geo BId Adjustment (Required Minimum functionality) PHP v201306

2013-10-30 Thread Paul Matthews (AdWords API Team)
Hi MWA,

When you say to no avail, can you explain what issues you're running into?

There is an example on how to query for Locations in the v201309/Targeting 
examples, called 
LookupLocation.phphttps://code.google.com/p/google-api-adwords-php/source/browse/examples/AdWords/v201309/Targeting/LookupLocation.php

Regards,

- Paul, AdWords API Team.

On Monday, 28 October 2013 16:31:41 UTC, MWA wrote:

 Hi There,

 Can some one guide me how to Edit geo bid adjustment using PHP  API

 I tried using the following code but no avail, firstly I am trying to get 
 the Location Info then add/Set/Edit them.

 $user = new AdWordsUser(null,null,null,null,null,null,$adwordId);
 $user-LogDefaults();
 
 $LocationService = $user-GetService('LocationCriterionService', 
 ADWORDS_VERSION);
 
   ` $selector = new Selector();
 $selector-fields = array( LocationName, DisplayType, 
 TargetingStatus, ParentLocations);
 $selector-predicates[] = new Predicate('Id', 'IN', 
 array($criterionId));
  
 
 $data = $LocationService-get($selector);
 
 
 if(isset($data-entries))
 {
 $entries = $data-entries[0];
 $amount = $entries-bids-maxCpc-amount-microAmount;
 }
 

 unset($selector);
 echo pre; print_r($data);die;

 Also if you go through this page for Geo Bid Adjustment  'Required Minimum 
 Functionality' under Location 
 https://developers.google.com/adwords/api/docs/reference/v201306/CampaignCriterionService.Location

 all of the elements such as 'locationName', 'displayType', 
 'targetingStatus'  etc are read only, so how come I an 'Edit' those? Isn't 
 it about adding/setting up new locations?

 Warm Regards


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.