I have a problem with the Campaign/AdGroup/Customer/ExtensionSettingService 
while requesting price extensions. I have few accounts where it returns 
nothing, but I have price extensions on the account and everything is 
configured well (I have impressions and clicks on it). The same code 
snippet works on all my other accounts ! Here it is (C#) :

Code Snippet (C#)
====================================
CampaignExtensionSettingService service = adwuser.GetService(AdWordsService.
v201702.CampaignExtensionSettingService) as CampaignExtensionSettingService;


Selector selector = new Selector()
{
    fields = new string[] { ExtensionSetting.Fields.Extensions },
    paging = new Paging() { startIndex = 0, numberResults = 10000 },
    predicates = new Predicate[]
    {
        new Predicate()
        {
            field = CampaignExtensionSetting.Fields.ExtensionType,
            @operator = Google.Api.Ads.AdWords.v201702.PredicateOperator.
EQUALS,
            values = new string[] { "PRICE" }
        }
    }
};


CampaignExtensionSettingPage page = service.get(selector);


Console.WriteLine(page.totalNumEntries);



SOAP REQUEST
===============================
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance";>
 <soap:Header>
 <RequestHeader xmlns="https://adwords.google.com/api/adwords/cm/v201702";>
 <developerToken xmlns="https://adwords.google.com/api/adwords/cm/v201702";>
XXXXXXXXXXXXXXXXXXXXXX</developerToken>
 <clientCustomerId xmlns="https://adwords.google.com/api/adwords/cm/v201702";
>7286690375</clientCustomerId>
 <userAgent xmlns="https://adwords.google.com/api/adwords/cm/v201702";>JVWEB 
(AwApi-DotNet/20.0.0, Common-Dotnet/5.0.0, .NET CLR/4.0.30319.42000, 
SelectorField, gzip)</userAgent>
 </RequestHeader>
 </soap:Header>
 <soap:Body>
 <get xmlns="https://adwords.google.com/api/adwords/cm/v201702";>
 <selector>
 <fields>Extensions</fields>
 <predicates>
 <field>ExtensionType</field>
 <operator>EQUALS</operator>
 <values>PRICE</values>
 </predicates>
 <paging>
 <startIndex>0</startIndex>
 <numberResults>10000</numberResults>
 </paging>
 </selector>
 </get>
 </soap:Body>
</soap:Envelope>



SOAP RESPONSE
=============================
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";>
 <soap:Header>
 <ResponseHeader xmlns="https://adwords.google.com/api/adwords/cm/v201702";>
 <requestId>00054fa0120661790a371544560406f6</requestId>
 <serviceName>CampaignExtensionSettingService</serviceName>
 <methodName>get</methodName>
 <operations>0</operations>
 <responseTime>592</responseTime>
 </ResponseHeader>
 </soap:Header>
 <soap:Body>
 <getResponse xmlns="https://adwords.google.com/api/adwords/cm/v201702";>
 <rval>
 <totalNumEntries>0</totalNumEntries>
 <Page.Type>CampaignExtensionSettingPage</Page.Type>
 </rval>
 </getResponse>
 </soap:Body>
</soap:Envelope>

If I remove the predicate on the request, I get a result with all my other 
ad extensions (sitelinks and structured snippets), but the price extensions 
are missing like if they don't exist.

I tried to put it on adgroup and customer level, still can't get them from 
the API. Tried to create from Editor and from the web interface, still the 
same. I think something is wrong with the API.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/18526e60-b0c8-4707-a789-e682dd55529d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to