Thank you for clarification, I have one more related question, how do I 
download the ad URL? I have tried using CampaignExtensionSettingService, 
AdGroupAdService services
and PLACEHOLDER_FEED_ITEM_REPORT, AD_PERFORMANCE_REPORT, 
CLICK_PERFORMANCE_REPORT reports, neither of them are providing the ad URL 
for call extension ad. 

On Thursday, November 2, 2017 at 6:20:05 PM UTC+5, MWA wrote:
>
> Hi, 
>
> I'm trying to download call extensions from my account via code given below
>
>
>         $oAuth2Credential = (new 
> OAuth2TokenBuilder())->fromFile()->build();        
>         $session = (new 
> AdWordsSessionBuilder())->fromFile()->withOAuth2Credential($oAuth2Credential)->withClientCustomerId($customerid)->build();
>
>         $adWordsServices=new AdWordsServices();
>         $adGroupAdService = $adWordsServices->get($session, 
> AdGroupAdService::class);
>         
>         $selector = new Selector();
>         
>         $selectorFields = array('Id', 'AdGroupId', 'BaseAdGroupId', 
> 'BaseCampaignId', 'Status', 'DisplayUrl', 'Headline', 'Description1', 
> 'Description2', 'ImageCreativeName', 'MobileAdDescription', 
> 'MobileAdMarkupLanguages', 'MobileAdMobileCarriers', 
> 'MobileAdBusinessName', 'MobileAdCountryCode', 'MobileAdPhoneNumber', 
> 'MediaId', 'Dimensions', 'Urls', 'MimeType', 'SourceUrl', 'FileSize', 
> 'CreationTime', 'ReferenceId', 'TemplateId', 'TemplateAdUnionId', 
> 'UniqueName', 'TemplateElementFieldName', 'TemplateElementFieldType', 
> 'TemplateElementFieldText', 'CreativeFinalUrls', 'CreativeFinalMobileUrls', 
> 'CreativeFinalAppUrls', 'HeadlinePart1', 'HeadlinePart2', 'Description', 
> 'Path1', 'Path2');
>         $selector->setFields($selectorFields);
>         $selector->setOrdering([new OrderBy('Id', SortOrder::ASCENDING)]);
>         $selector->setPaging(new Paging(0, PAGE_SIZE));
>
>
>         $selector->setPredicates([new Predicate('Status', 
> PredicateOperator::IN, ['ENABLED', 'PAUSED', 'DISABLED'])]);
>
>         $dateRange = new DateRange();        
>         $dateRange->setMin(date('Ymd', strtotime($sdt)));
>         $dateRange->setMax(date('Ymd', strtotime($edt)));
>         $selector->setDateRange($dateRange);
>     
>         $selector->setPredicates([new Predicate('AdType', 
> PredicateOperator::EQUALS, ['CALL_ONLY_AD'])]);
>         $page = $adGroupAdService->get($selector);
>
>
>
> But API is returning nothing
>
> Google\AdsApi\AdWords\v201708\cm\AdGroupAdPage Object
> (
>     [entries:protected] => 
>     [totalNumEntries:protected] => 0
>     [PageType:protected] => AdGroupAdPage
>     [parameterMap:Google\AdsApi\AdWords\v201708\cm\Page:private] => Array
>         (
>             [Page.Type] => PageType
>         )
>
> )
>
>
>
> And also report is not returning any data
>
> My report query
>
> SELECT 
> Id,AdGroupId,CampaignId,AveragePosition,AverageCpc,AverageCpm,Impressions,Clicks,Cost,Ctr,Conversions,
>         ConversionRate, CostPerConversion,AdNetworkType1
>         FROM AD_PERFORMANCE_REPORT
>         WHERE AdType=CALL_ONLY_AD  AND Status IN [DISABLED, ENABLED, PAUSED] 
> AND Clicks>0 
>         DURING 20171031,20171031
>
>
> Please help what's wrong with this.
>
> P.S: Ad Extension snapshot from my account is attached.
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/b1fe9157-9039-4653-8bf6-04f787c4dfe8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to