Hello,

I want to add Proximity to my campaign. but I'm 
getting INVALID_PROXIMITY_ADDRESS when i'm adding new address.


$addres = new Address();
$addres->setStreetAddress("Şanlıurfa");
$addres->setCityName("Şanlıurfa Merkez");
$addres->setProvinceName("Şanlıurfa Province");
$addres->setCountryCode("TR");

$proximity = new Proximity();
$proximity->setAddress($addres);
$proximity->setradiusDistanceUnits(ProximityDistanceUnits::KILOMETERS);
$proximity->setRadiusInUnits($around);
$campaignCriteria[] = new CampaignCriterion($campaignId, null, $proximity);


When i add this address from adwords panel, everything is normal but with 
api it gives me error. What is my fault, can you help me please?

Google\AdsApi\AdWords\v201705\cm\CampaignCriterion Object
                (
                    [campaignId:protected] => 732545709
                    [isNegative:protected] => 
                    [criterion:protected] => 
Google\AdsApi\AdWords\v201705\cm\Proximity Object
                        (
                            [geoPoint:protected] => 
Google\AdsApi\AdWords\v201705\cm\GeoPoint Object
                                (
                                    [latitudeInMicroDegrees:protected] => 
37167403
                                    [longitudeInMicroDegrees:protected] => 
38795514
                                )

                            [radiusDistanceUnits:protected] => KILOMETERS
                            [radiusInUnits:protected] => 10
                            [address:protected] => 
Google\AdsApi\AdWords\v201705\cm\Address Object
                                (
                                    [streetAddress:protected] => Şanlıurfa
                                    [streetAddress2:protected] => 
                                    [cityName:protected] => Şanlıurfa Merkez
                                    [provinceCode:protected] => 
                                    [provinceName:protected] => Şanlıurfa 
Province
                                    [postalCode:protected] => 
                                    [countryCode:protected] => TR
                                )

                            [id:protected] => 335477874888
                            [type:protected] => PROXIMITY
                            [CriterionType:protected] => Proximity
                            
[parameterMap:Google\AdsApi\AdWords\v201705\cm\Criterion:private] => Array
                                (
                                    [Criterion.Type] => CriterionType
                                )

                        )

                    [bidModifier:protected] => 
                    [campaignCriterionStatus:protected] => 
                    [baseCampaignId:protected] => 
                    [forwardCompatibilityMap:protected] => 
                    [CampaignCriterionType:protected] => CampaignCriterion
                    
[parameterMap:Google\AdsApi\AdWords\v201705\cm\CampaignCriterion:private] 
=> Array
                        (
                            [CampaignCriterion.Type] => 
CampaignCriterionType
                        )

                )

        )




-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/3fd322f7-3fcc-4e61-bb6e-79dbb174300c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • CriterionError.... Aliko
    • Re: Criter... 'Shwetha Vastrad (AdWords API Team)' via AdWords API Forum

Reply via email to