Hi Google Adwords Team

While doing Polygon Targeting , i got an error like this.

        *TargetError.POLYGON_TOO_FEW_VERTICES*

I am defining a part of my code herewith

      $campaignId = '8053';
      $geoTargetList = new GeoTargetList();
      $geoTargetList->campaignId = $campaignId;
      $geoTargetList->targets =    new PolygonTarget();

      $legeopoint= new GeoPoint();
      $legeopoint->latitudeInMicroDegrees    ='39925066';
      $legeopoint->longitudeInMicroDegrees    ='116409055';
      $geoTargetList->targets->vertices = $legeopoint;
      $geoTargetOperation = new CampaignTargetOperation();
      $geoTargetOperation->operand = $geoTargetList;
      $geoTargetOperation->operator = 'SET';
      $operations = $geoTargetOperation;
      $result = $campaignTargetService->mutate($operations);

I hope the latitudeInMicroDegrees and longitudeInMicroDegrees which i have
given here is correct as
 i got this value from compiling Geolocation.php sample API code.

Please help me out of this situation


-- 
Remya Mohan
Software Engineer
http://SparkSupport.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

Reply via email to