Re: Unable to get FinalUrls of keyword using API

2017-08-14 Thread 'Vincent Racaza (AdWords API Team)' via AdWords API Forum
Hi Sarvagya,

A gentle follow up on this.

Could you confirm if you are still facing this issue? If you can confirm 
this, then kindly provide your clientCustomerID as well as your SOAP 
request and response logs (*Reply privately to author*).

Thanks,
Vincent
AdWords API Team

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/052f4745-f88d-4018-88fd-9296b6ce08c8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Unable to get FinalUrls of keyword using API

2017-08-08 Thread 'Vincent Racaza (AdWords API Team)' via AdWords API Forum
Hi Sarvagya,

Could you provide your clientCustomerId and SOAP request and response logs 
so I can check this issue further? If you haven't enabled the SOAP logs 
yet, you can enable it by following the 'Configure logging' section of this 
document 
. 
Please use the *Reply privately to author* option when replying.

Thanks,
Vincent
AdWords API Team

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/a3fd733b-439b-43d5-98cf-5bbe017bb354%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Unable to get FinalUrls of keyword using API

2017-08-08 Thread Sarvagya Pandey
Hi,

I am using PHP Adwords APIs to fetch the final urls of keywords but it 
always returns null

*Code I am using:*

// Get the service, which loads the required classes.
$adGroupCriterionService = $adWordsServices->get($session, 
AdGroupCriterionService::class);
// Create selector.
$selector = new Selector();
$selector->setFields(['KeywordText', 'KeywordMatchType', 
'Id','Status','TopOfPageCpc','CpcBid','FinalUrls']);
$selector->setOrdering([new OrderBy('KeywordText', 'ASCENDING')]);
// Create predicates.
$selector->setPredicates([new Predicate('AdGroupId', PredicateOperator::IN, 
[$adGroupId]  )] );
$selector->setPredicates([new Predicate('CriteriaType', 
PredicateOperator::IN, ['KEYWORD']  )] );
$selector->setPredicates([new Predicate('Id', PredicateOperator::IN, 
[$keywordId]  )] );

// Make the get request.
$page = $adGroupCriterionService->get($selector);
foreach ($page->getEntries() as $adGroupCriterion) {
   var_dump($adGroupCriterion);
}


*Response :*

Google\AdsApi\AdWords\v201609\cm\BiddableAdGroupCriterion Object
(
[userStatus:protected] => ENABLED
[systemServingStatus:protected] => 
[approvalStatus:protected] => 
[disapprovalReasons:protected] => 
[destinationUrl:protected] => 
[firstPageCpc:protected] => 
[topOfPageCpc:protected] => Google\AdsApi\AdWords\v201609\cm\Bid Object
(
[amount:protected] => Google\AdsApi\AdWords\v201609\cm\Money 
Object
(
[microAmount:protected] => 123456
[ComparableValueType:protected] => 
[ComparableValue.Type] => Money
)

)

[firstPositionCpc:protected] => 
[qualityInfo:protected] => 
[biddingStrategyConfiguration:protected] => 
Google\AdsApi\AdWords\v201609\cm\BiddingStrategyConfiguration Object
(
[biddingStrategyId:protected] => 
[biddingStrategyName:protected] => 
[biddingStrategyType:protected] => MANUAL_CPC
[biddingStrategySource:protected] => 
[biddingScheme:protected] => 
[bids:protected] => Array
(
[0] => Google\AdsApi\AdWords\v201609\cm\CpcBid Object
(
[bid:protected] => 
Google\AdsApi\AdWords\v201609\cm\Money Object
(
[microAmount:protected] => 1234
[ComparableValueType:protected] => 
[ComparableValue.Type] => Money
)

[cpcBidSource:protected] => CRITERION
[BidsType:protected] => 
[Bids.Type] => CpcBid
)

)

)

[bidModifier:protected] => 
[finalUrls:protected] => 
[finalMobileUrls:protected] => 
[finalAppUrls:protected] => 
[trackingUrlTemplate:protected] => 
[urlCustomParameters:protected] => 
[adGroupId:protected] => 12343924932
[criterionUse:protected] => BIDDABLE
[criterion:protected] => Google\AdsApi\AdWords\v201609\cm\Keyword Object
(
[text:protected] => Test Keyword ABCD
[matchType:protected] => PHRASE
[id:protected] => 12343743102
[type:protected] => KEYWORD
[CriterionType:protected] => 
[Criterion.Type] => Keyword
)

[labels:protected] => 
[forwardCompatibilityMap:protected] => 
[baseCampaignId:protected] => 
[baseAdGroupId:protected] => 
[AdGroupCriterionType:protected] => 
[AdGroupCriterion.Type] => BiddableAdGroupCriterion
)

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/c7e47e70-8bc8-40ed-85fc-3d57fd45af8e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.