Re: Can I use the Customer Sync Service to find newly created ads?

2012-11-11 Thread pj
He Orangevn,
you check only ads in adgroups, where 
changedAdGroup.adGroupChangeStatus == ChangeStatus.FIELDS_CHANGED, 
but not in adgroups where
changedAdGroup.adGroupChangeStatus == ChangeStatus.FIELDS_UNCHANGED

=) pj


Am Dienstag, 6. November 2012 05:28:20 UTC+1 schrieb Orangevn:

 I was update Api v201209, now i can not get ChangeAds when using Customer 
 Sync Service.

 ChangeAds  always return null?

 if (changedAdGroup.adGroupChangeStatus == ChangeStatus.FIELDS_CHANGED)
 {
 changedAdGroupIds.Add(changedAdGroup.adGroupId);

 if (changedAdGroup.changedCriteria != null)
 {
 
 changedAdGroupCriteriaIds.Add(changedAdGroup.adGroupId, 
 changedAdGroup.changedCriteria.ToList());

 if 
 (!campaignAdGroupCriteriaChanged.ContainsKey(campaignId))
 {
 campaignAdGroupCriteriaChanged[campaignId] = 
 new Listlong();
 }

 // Tracking AdGroup Id based on Campaign that it 
 is belong to for Changed Criteria IDs 
 
 campaignAdGroupCriteriaChanged[campaignId].Add(changedAdGroup.adGroupId);
 }

 if (changedAdGroup.deletedCriteria != null)
 {
 
 deletedAdGroupCriteriaIds.Add(changedAdGroup.adGroupId, 
 changedAdGroup.deletedCriteria.ToList());
 }

 if (changedAdGroup.changedAds != null)
 {
 changedAdIds.Add(changedAdGroup.adGroupId, 
 changedAdGroup.changedAds.ToList());

 if 
 (!campaignAdGroupAdChanged.ContainsKey(campaignId))
 {
 campaignAdGroupAdChanged[campaignId] = new 
 Listlong();
 }

 //Tracking AdGroup Id based on Campaign that it 
 belong to for changed Ad IDs
 
 campaignAdGroupAdChanged[campaignId].Add(changedAdGroup.adGroupId);
 }
 }

 Thanks


-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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


Re: Selector field to retrieve campaign's targeting mode

2012-11-11 Thread Eugene
When I go to campaign settings through Adwords Web interface I have 
Automatic campaign optimization section which can take one of two 
following values:
1. Standard: Show ads based on targeting elements such as keywords and 
placements.
2. Auto-optimized: Find conversions automatically on additional placements 
(Display Campaign Optimizer)

I need to get status of this optimization through API.

Currently I have two different campaigns. One is standard and second one is 
auto-optimized however I cannot find how to fetch the status it through API

On Thursday, November 8, 2012 8:11:14 PM UTC+2, Oliver wrote:

 An adwords campaign can be using one of 3 bidding strategies; Manual CPC, 
 Conversion optimizer or Budget optimizer.   I am not sure what you mean by 
 DCO?

 When you get a campaign through CampaignService you can call 
 *getBiddingStrategy() 
 *on it to get the bidding strateg this camapign is using.  You can do 
 something like this:

 BiddingStrategy bs = campaign.getBiddingStrategy();
 if (bs instanceof ManualCPC){}
 else if (bs instanceof BudgetOptimizer) {...}
 else if (bs instanceof ConversionOptimizer) {...}

 HTH

 Oliver
 


 On Thursday, November 8, 2012 12:52:00 PM UTC, Eugene wrote:

 Hello.

 I want to retrieve campaigns data with CampaignService and cannot find 
 selector's field indicating whether a campaign in auto-optimized (DCO) 
 mode or standard one.
 How can I retrieve this campaign's attribute?

 Thank you.



-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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


Re: URL should end in a valid domain extension, such as .com or .net - Error

2012-11-11 Thread much muchyiddin


Pada Jumat, 13 Juni 2008 21:19:53 UTC+7, Siddharth menulis:

 Hi 

 I am using GOOGLE ADWORD API for CriterionService V12 and I find the 
 following detail in my response. 

  ns1:detailURL should end in a valid domain extension, such as .com 
 or .net/ns1:detail 

 http://localhost/Havana/HavanaWebLayer/Interaction.aspx?DID=15CID=34587031http://localhost/Havana/HavanaWebLayer/Interaction.aspx?DID=15CID=34587031
  


 Now my URL is dynamically generated with querystring parameters and 
 hence does not end with .COM or .NET 

 eg. my URL generated is as follow 


 http://localhost/Havana/HavanaWebLayer/Interaction.aspx?DID=15CID=34587031http://localhost/Havana/HavanaWebLayer/Interaction.aspx?DID=15CID=34587031
  
 while in development environment. 

 Can you suggest a way to bypass or overrule this rule? 

 Thanks 
 Siddharth

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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


Content Keyword - Invalid ID error

2012-11-11 Thread alok
Hi API Team,

I am getting lot of Invalid ID errors during redeployment of few accounts 
(around 200 accounts).The error is for keyword=Content, 
keywordIdentifier/id=300, 
keywordType='Broad',status='Active',isNegative='False'

I understand that this keyword ('Content') is used to represent the 
clicks/impressions/etc associated with the sum of all keywords in an 
adgroup that caused it to trigger on Content/Display networks.But is there 
any known issue(s) which is causing Invalid ID errors during redeployment 
for this keyword or in which scenario this keyword can throw such an error.

During redeployment,It tries to delete this keword in adwords and fails 
with invalid ID error.

we get this keyword when we download keyword performance report although 
its not there in adwords UI report.Is there any work around to fix this 
issue.

-Thanks,
Alok

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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