Wednesday, 13 January 2016

Re: Uniqueness of CampaignName

Hi Mark,

You'd probably be better off identifying a Campaign by its ID, then there's no ambiguity. Also, if your campaign name changes in the GUI, any AdWords application that uses that name probably will cease to identify it.

Shown here in the Campaign Remove example.

```
function RemoveCampaignExample(AdWordsUser $user, $campaignId) {
  // Get the service, which loads the required classes.
  $campaignService = $user->GetService('CampaignService', ADWORDS_VERSION);

  // Create campaign with REMOVED status.
  $campaign = new Campaign();
  $campaign->id = $campaignId;
  $campaign->status = 'REMOVED';
```

Thanks

On Wednesday, January 13, 2016 at 4:14:46 PM UTC, Mark Hansen wrote:
Is the field CampaignName (https://developers.google.com/adwords/api/docs/appendix/reports/campaign-performance-report#campaignname) in the Campaign Performance Report unique?

Specifically, can I use it in a query to uniquely identify a campaign, or might I get more than one result back?

Finally, how can I tell from the documentation whether or no a report field is a unique identifier?

Thanks,

Mark

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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+unsubscribe@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+unsubscribe@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/ac001b87-7cc7-4ee8-a0f0-8b2f38b7c7d4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment